Debian Codegraph @

cextern/cfitsio/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for cfitsio 4.6.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='cfitsio'
613 PACKAGE_TARNAME='cfitsio'
614 PACKAGE_VERSION='4.6.3'
615 PACKAGE_STRING='cfitsio 4.6.3'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="fitscore.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_default_prefix=`pwd`
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 my_shmem
658 LIBPRE
659 FC
660 ARCH
661 LIBS_CURL
662 CURLCONFIG
663 GCCVERSION
664 SSE_FLAGS
665 ARCHIVE
666 NOFORTRAN_FALSE
667 NOFORTRAN_TRUE
668 ac_ct_F77
669 FFLAGS
670 F77
671 INSTALL_ROOT
672 NOGSIFTP_FALSE
673 NOGSIFTP_TRUE
674 version_info
675 LT_SYS_LIBRARY_PATH
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 RANLIB
683 ac_ct_AR
684 AR
685 DLLTOOL
686 OBJDUMP
687 FILECMD
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 LIBTOOL
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 am__xargs_n
718 am__rm_f_notfound
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 CSCOPE
724 ETAGS
725 CTAGS
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 runstatedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL
800 am__quote'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_silent_rules
805 enable_maintainer_mode
806 enable_shared
807 enable_static
808 enable_pic
809 with_pic
810 enable_fast_install
811 enable_aix_soname
812 with_aix_soname
813 enable_dependency_tracking
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_curl
818 enable_reentrant
819 enable_sse2
820 enable_ssse3
821 enable_symbols
822 enable_hera
823 with_bzip2
824 with_gsiftp
825 with_gsiftp_flavour
826 with_zlib_check
827 with_fortran
828 '
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 LT_SYS_LIBRARY_PATH
838 F77
839 FFLAGS'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 runstatedir='${localstatedir}/run'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: '$ac_useropt'"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: '$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -runstatedir | --runstatedir | --runstatedi | --runstated \
1130 | --runstate | --runstat | --runsta | --runst | --runs \
1131 | --run | --ru | --r)
1132 ac_prev=runstatedir ;;
1133 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1134 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1135 | --run=* | --ru=* | --r=*)
1136 runstatedir=$ac_optarg ;;
1137
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1143
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1154
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1159
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1164
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1171
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1176
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1179
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1182
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: '$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: '$ac_useropt'"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) as_fn_error $? "unrecognized option: '$ac_option'
1234 Try '$0 --help' for more information"
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error $? "missing argument to $ac_option"
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1269 fi
1270
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir runstatedir
1276 do
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1291
1292 # There might be people who depend on the old broken behavior: '$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error $? "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error $? "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 printf "%s\n" X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 'configure' configures cfitsio 4.6.3 to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print 'checking ...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for '--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or '..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, 'make install' will install all the files in
1415 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than '$ac_default_prefix' using '--prefix',
1417 for instance '--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/cfitsio]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of cfitsio 4.6.3:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-silent-rules less verbose build output (undo: "make V=1")
1469 --disable-silent-rules verbose build output (undo: "make V=0")
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --enable-aix-soname=aix|svr4|both
1480 shared library versioning (aka "SONAME") variant to
1481 provide on AIX, [default=aix].
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --disable-curl Disable linking with the curl library. Disables
1488 remote file i/o support
1489 --enable-reentrant Enable reentrant multithreading
1490 --enable-sse2 Enable use of instructions in the SSE2 extended
1491 instruction set
1492 --enable-ssse3 Enable use of instructions in the SSSE3 extended
1493 instruction set
1494 --enable-symbols Enable debugging symbols by turning optimization off
1495 --enable-hera Build for HERA (ASD use only)
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1502 compiler's sysroot if not specified).
1503 --with-bzip2[=PATH] Enable bzip2 support. Optional path to the location
1504 of include/bzlib.h and lib/libbz2
1505 --with-gsiftp[=PATH] Enable Globus Toolkit gsiftp protocol support
1506 --with-gsiftp-flavour[=PATH]
1507 Define Globus Toolkit gsiftp protocol flavour
1508 --without-zlib-check Disable check for zlib compression library e.g. for
1509 cross-compilers
1510 --without-fortran Build package without Fortran support
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 LT_SYS_LIBRARY_PATH
1521 User-defined run-time library search path.
1522 F77 Fortran 77 compiler command
1523 FFLAGS Fortran 77 compiler flags
1524
1525 Use these variables to override the choices made by 'configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1527
1528 Report bugs to the package provider.
1529 _ACEOF
1530 ac_status=$?
1531 fi
1532
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for configure.gnu first; this name is used for a wrapper for
1575 # Metaconfig's "Configure" on case-insensitive file systems.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591 cat <<\_ACEOF
1592 cfitsio configure 4.6.3
1593 generated by GNU Autoconf 2.72
1594
1595 Copyright (C) 2023 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest.beam
1613 if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 printf "%s\n" "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext
1632 then :
1633 ac_retval=0
1634 else case e in #(
1635 e) printf "%s\n" "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1 ;;
1639 esac
1640 fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_compile
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 printf "%s\n" "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1674 }
1675 then :
1676 ac_retval=0
1677 else case e in #(
1678 e) printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1 ;;
1682 esac
1683 fi
1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686 # interfere with the next link command; also delete a directory that is
1687 # left behind by Apple's compiler. We do this before executing the actions.
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_link
1693
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 printf %s "checking for $2... " >&6; }
1703 if eval test \${$3+y}
1704 then :
1705 printf %s "(cached) " >&6
1706 else case e in #(
1707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"
1713 then :
1714 eval "$3=yes"
1715 else case e in #(
1716 e) eval "$3=no" ;;
1717 esac
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1720 esac
1721 fi
1722 eval ac_res=\$$3
1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 printf "%s\n" "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727 } # ac_fn_c_check_header_compile
1728
1729 # ac_fn_c_check_func LINENO FUNC VAR
1730 # ----------------------------------
1731 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1732 ac_fn_c_check_func ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 printf %s "checking for $2... " >&6; }
1737 if eval test \${$3+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else case e in #(
1741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (void); below. */
1749
1750 #include <limits.h>
1751 #undef $2
1752
1753 /* Override any GCC internal prototype to avoid an error.
1754 Use char because int might match the return type of a GCC
1755 builtin and then its argument prototype would still apply. */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 char $2 (void);
1760 /* The GNU C library defines this for functions which it implements
1761 to always fail with ENOSYS. Some functions are actually named
1762 something starting with __ and the normal name is an alias. */
1763 #if defined __stub_$2 || defined __stub___$2
1764 choke me
1765 #endif
1766
1767 int
1768 main (void)
1769 {
1770 return $2 ();
1771 ;
1772 return 0;
1773 }
1774 _ACEOF
1775 if ac_fn_c_try_link "$LINENO"
1776 then :
1777 eval "$3=yes"
1778 else case e in #(
1779 e) eval "$3=no" ;;
1780 esac
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1783 conftest$ac_exeext conftest.$ac_ext ;;
1784 esac
1785 fi
1786 eval ac_res=\$$3
1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 printf "%s\n" "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_func
1792
1793 # ac_fn_f77_try_compile LINENO
1794 # ----------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_f77_try_compile ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest.beam
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 printf "%s\n" "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_f77_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext
1819 then :
1820 ac_retval=0
1821 else case e in #(
1822 e) printf "%s\n" "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1 ;;
1826 esac
1827 fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_f77_try_compile
1832
1833 # ac_fn_f77_try_link LINENO
1834 # -------------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_f77_try_link ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 printf "%s\n" "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_f77_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 test -x conftest$ac_exeext
1861 }
1862 then :
1863 ac_retval=0
1864 else case e in #(
1865 e) printf "%s\n" "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1 ;;
1869 esac
1870 fi
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_f77_try_link
1880 ac_configure_args_raw=
1881 for ac_arg
1882 do
1883 case $ac_arg in
1884 *\'*)
1885 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 esac
1887 as_fn_append ac_configure_args_raw " '$ac_arg'"
1888 done
1889
1890 case $ac_configure_args_raw in
1891 *$as_nl*)
1892 ac_safe_unquote= ;;
1893 *)
1894 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1895 ac_unsafe_a="$ac_unsafe_z#~"
1896 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1897 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1898 esac
1899
1900 cat >config.log <<_ACEOF
1901 This file contains any messages produced by compilers while
1902 running configure, to aid debugging if configure makes a mistake.
1903
1904 It was created by cfitsio $as_me 4.6.3, which was
1905 generated by GNU Autoconf 2.72. Invocation command line was
1906
1907 $ $0$ac_configure_args_raw
1908
1909 _ACEOF
1910 exec 5>>config.log
1911 {
1912 cat <<_ASUNAME
1913 ## --------- ##
1914 ## Platform. ##
1915 ## --------- ##
1916
1917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922
1923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1924 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1925
1926 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1927 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1929 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1930 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1931 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1932 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1933
1934 _ASUNAME
1935
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939 IFS=$as_save_IFS
1940 case $as_dir in #(((
1941 '') as_dir=./ ;;
1942 */) ;;
1943 *) as_dir=$as_dir/ ;;
1944 esac
1945 printf "%s\n" "PATH: $as_dir"
1946 done
1947 IFS=$as_save_IFS
1948
1949 } >&5
1950
1951 cat >&5 <<_ACEOF
1952
1953
1954 ## ----------- ##
1955 ## Core tests. ##
1956 ## ----------- ##
1957
1958 _ACEOF
1959
1960
1961 # Keep a trace of the command line.
1962 # Strip out --no-create and --no-recursion so they do not pile up.
1963 # Strip out --silent because we don't want to record it for future runs.
1964 # Also quote any args containing shell meta-characters.
1965 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_configure_args=
1967 ac_configure_args0=
1968 ac_configure_args1=
1969 ac_must_keep_next=false
1970 for ac_pass in 1 2
1971 do
1972 for ac_arg
1973 do
1974 case $ac_arg in
1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977 | -silent | --silent | --silen | --sile | --sil)
1978 continue ;;
1979 *\'*)
1980 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1981 esac
1982 case $ac_pass in
1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1984 2)
1985 as_fn_append ac_configure_args1 " '$ac_arg'"
1986 if test $ac_must_keep_next = true; then
1987 ac_must_keep_next=false # Got value, back to normal.
1988 else
1989 case $ac_arg in
1990 *=* | --config-cache | -C | -disable-* | --disable-* \
1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993 | -with-* | --with-* | -without-* | --without-* | --x)
1994 case "$ac_configure_args0 " in
1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996 esac
1997 ;;
1998 -* ) ac_must_keep_next=true ;;
1999 esac
2000 fi
2001 as_fn_append ac_configure_args " '$ac_arg'"
2002 ;;
2003 esac
2004 done
2005 done
2006 { ac_configure_args0=; unset ac_configure_args0;}
2007 { ac_configure_args1=; unset ac_configure_args1;}
2008
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log. We remove comments because anyway the quotes in there
2011 # would cause problems or look ugly.
2012 # WARNING: Use '\'' to represent an apostrophe within the trap.
2013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2014 trap 'exit_status=$?
2015 # Sanitize IFS.
2016 IFS=" "" $as_nl"
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 printf "%s\n" "## ---------------- ##
2022 ## Cache variables. ##
2023 ## ---------------- ##"
2024 echo
2025 # The following way of writing the cache mishandles newlines in values,
2026 (
2027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in #(
2030 *${as_nl}*)
2031 case $ac_var in #(
2032 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2033 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2034 esac
2035 case $ac_var in #(
2036 _ | IFS | as_nl) ;; #(
2037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2038 *) { eval $ac_var=; unset $ac_var;} ;;
2039 esac ;;
2040 esac
2041 done
2042 (set) 2>&1 |
2043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2044 *${as_nl}ac_space=\ *)
2045 sed -n \
2046 "s/'\''/'\''\\\\'\'''\''/g;
2047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2048 ;; #(
2049 *)
2050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2051 ;;
2052 esac |
2053 sort
2054 )
2055 echo
2056
2057 printf "%s\n" "## ----------------- ##
2058 ## Output variables. ##
2059 ## ----------------- ##"
2060 echo
2061 for ac_var in $ac_subst_vars
2062 do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in
2065 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 esac
2067 printf "%s\n" "$ac_var='\''$ac_val'\''"
2068 done | sort
2069 echo
2070
2071 if test -n "$ac_subst_files"; then
2072 printf "%s\n" "## ------------------- ##
2073 ## File substitutions. ##
2074 ## ------------------- ##"
2075 echo
2076 for ac_var in $ac_subst_files
2077 do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 printf "%s\n" "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2085 fi
2086
2087 if test -s confdefs.h; then
2088 printf "%s\n" "## ----------- ##
2089 ## confdefs.h. ##
2090 ## ----------- ##"
2091 echo
2092 cat confdefs.h
2093 echo
2094 fi
2095 test "$ac_signal" != 0 &&
2096 printf "%s\n" "$as_me: caught signal $ac_signal"
2097 printf "%s\n" "$as_me: exit $exit_status"
2098 } >&5
2099 rm -f core *.core core.conftest.* &&
2100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2101 exit $exit_status
2102 ' 0
2103 for ac_signal in 1 2 13 15; do
2104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2105 done
2106 ac_signal=0
2107
2108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2109 rm -f -r conftest* confdefs.h
2110
2111 printf "%s\n" "/* confdefs.h */" > confdefs.h
2112
2113 # Predefined preprocessor variables.
2114
2115 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2116
2117 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2118
2119 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2120
2121 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2122
2123 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2124
2125 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2126
2127
2128 # Let the site file select an alternate cache file if it wants to.
2129 # Prefer an explicitly selected file to automatically selected ones.
2130 if test -n "$CONFIG_SITE"; then
2131 ac_site_files="$CONFIG_SITE"
2132 elif test "x$prefix" != xNONE; then
2133 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2134 else
2135 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2136 fi
2137
2138 for ac_site_file in $ac_site_files
2139 do
2140 case $ac_site_file in #(
2141 */*) :
2142 ;; #(
2143 *) :
2144 ac_site_file=./$ac_site_file ;;
2145 esac
2146 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2148 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2149 sed 's/^/| /' "$ac_site_file" >&5
2150 . "$ac_site_file" \
2151 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2152 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2153 as_fn_error $? "failed to load site script $ac_site_file
2154 See 'config.log' for more details" "$LINENO" 5; }
2155 fi
2156 done
2157
2158 if test -r "$cache_file"; then
2159 # Some versions of bash will fail to source /dev/null (special files
2160 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2161 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2163 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2164 case $cache_file in
2165 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2166 *) . "./$cache_file";;
2167 esac
2168 fi
2169 else
2170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2171 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2172 >$cache_file
2173 fi
2174
2175 # Test code for whether the C compiler supports C89 (global declarations)
2176 ac_c_conftest_c89_globals='
2177 /* Does the compiler advertise C89 conformance?
2178 Do not test the value of __STDC__, because some compilers set it to 0
2179 while being otherwise adequately conformant. */
2180 #if !defined __STDC__
2181 # error "Compiler does not advertise C89 conformance"
2182 #endif
2183
2184 #include <stddef.h>
2185 #include <stdarg.h>
2186 struct stat;
2187 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2188 struct buf { int x; };
2189 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (char **p, int i)
2191 {
2192 return p[i];
2193 }
2194 static char *f (char * (*g) (char **, int), char **p, ...)
2195 {
2196 char *s;
2197 va_list v;
2198 va_start (v,p);
2199 s = g (p, va_arg (v,int));
2200 va_end (v);
2201 return s;
2202 }
2203
2204 /* C89 style stringification. */
2205 #define noexpand_stringify(a) #a
2206 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2207
2208 /* C89 style token pasting. Exercises some of the corner cases that
2209 e.g. old MSVC gets wrong, but not very hard. */
2210 #define noexpand_concat(a,b) a##b
2211 #define expand_concat(a,b) noexpand_concat(a,b)
2212 extern int vA;
2213 extern int vbee;
2214 #define aye A
2215 #define bee B
2216 int *pvA = &expand_concat(v,aye);
2217 int *pvbee = &noexpand_concat(v,bee);
2218
2219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2220 function prototypes and stuff, but not \xHH hex character constants.
2221 These do not provoke an error unfortunately, instead are silently treated
2222 as an "x". The following induces an error, until -std is added to get
2223 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2224 array size at least. It is necessary to write \x00 == 0 to get something
2225 that is true only with -std. */
2226 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2227
2228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2229 inside strings and character constants. */
2230 #define FOO(x) '\''x'\''
2231 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2232
2233 int test (int i, double x);
2234 struct s1 {int (*f) (int a);};
2235 struct s2 {int (*f) (double a);};
2236 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2237 int, int);'
2238
2239 # Test code for whether the C compiler supports C89 (body of main).
2240 ac_c_conftest_c89_main='
2241 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2242 '
2243
2244 # Test code for whether the C compiler supports C99 (global declarations)
2245 ac_c_conftest_c99_globals='
2246 /* Does the compiler advertise C99 conformance? */
2247 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2248 # error "Compiler does not advertise C99 conformance"
2249 #endif
2250
2251 // See if C++-style comments work.
2252
2253 #include <stdbool.h>
2254 extern int puts (const char *);
2255 extern int printf (const char *, ...);
2256 extern int dprintf (int, const char *, ...);
2257 extern void *malloc (size_t);
2258 extern void free (void *);
2259
2260 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2261 // dprintf is used instead of fprintf to avoid needing to declare
2262 // FILE and stderr.
2263 #define debug(...) dprintf (2, __VA_ARGS__)
2264 #define showlist(...) puts (#__VA_ARGS__)
2265 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2266 static void
2267 test_varargs_macros (void)
2268 {
2269 int x = 1234;
2270 int y = 5678;
2271 debug ("Flag");
2272 debug ("X = %d\n", x);
2273 showlist (The first, second, and third items.);
2274 report (x>y, "x is %d but y is %d", x, y);
2275 }
2276
2277 // Check long long types.
2278 #define BIG64 18446744073709551615ull
2279 #define BIG32 4294967295ul
2280 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2281 #if !BIG_OK
2282 #error "your preprocessor is broken"
2283 #endif
2284 #if BIG_OK
2285 #else
2286 #error "your preprocessor is broken"
2287 #endif
2288 static long long int bignum = -9223372036854775807LL;
2289 static unsigned long long int ubignum = BIG64;
2290
2291 struct incomplete_array
2292 {
2293 int datasize;
2294 double data[];
2295 };
2296
2297 struct named_init {
2298 int number;
2299 const wchar_t *name;
2300 double average;
2301 };
2302
2303 typedef const char *ccp;
2304
2305 static inline int
2306 test_restrict (ccp restrict text)
2307 {
2308 // Iterate through items via the restricted pointer.
2309 // Also check for declarations in for loops.
2310 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2311 continue;
2312 return 0;
2313 }
2314
2315 // Check varargs and va_copy.
2316 static bool
2317 test_varargs (const char *format, ...)
2318 {
2319 va_list args;
2320 va_start (args, format);
2321 va_list args_copy;
2322 va_copy (args_copy, args);
2323
2324 const char *str = "";
2325 int number = 0;
2326 float fnumber = 0;
2327
2328 while (*format)
2329 {
2330 switch (*format++)
2331 {
2332 case '\''s'\'': // string
2333 str = va_arg (args_copy, const char *);
2334 break;
2335 case '\''d'\'': // int
2336 number = va_arg (args_copy, int);
2337 break;
2338 case '\''f'\'': // float
2339 fnumber = va_arg (args_copy, double);
2340 break;
2341 default:
2342 break;
2343 }
2344 }
2345 va_end (args_copy);
2346 va_end (args);
2347
2348 return *str && number && fnumber;
2349 }
2350 '
2351
2352 # Test code for whether the C compiler supports C99 (body of main).
2353 ac_c_conftest_c99_main='
2354 // Check bool.
2355 _Bool success = false;
2356 success |= (argc != 0);
2357
2358 // Check restrict.
2359 if (test_restrict ("String literal") == 0)
2360 success = true;
2361 char *restrict newvar = "Another string";
2362
2363 // Check varargs.
2364 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2365 test_varargs_macros ();
2366
2367 // Check flexible array members.
2368 struct incomplete_array *ia =
2369 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2370 ia->datasize = 10;
2371 for (int i = 0; i < ia->datasize; ++i)
2372 ia->data[i] = i * 1.234;
2373 // Work around memory leak warnings.
2374 free (ia);
2375
2376 // Check named initializers.
2377 struct named_init ni = {
2378 .number = 34,
2379 .name = L"Test wide string",
2380 .average = 543.34343,
2381 };
2382
2383 ni.number = 58;
2384
2385 int dynamic_array[ni.number];
2386 dynamic_array[0] = argv[0][0];
2387 dynamic_array[ni.number - 1] = 543;
2388
2389 // work around unused variable warnings
2390 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2391 || dynamic_array[ni.number - 1] != 543);
2392 '
2393
2394 # Test code for whether the C compiler supports C11 (global declarations)
2395 ac_c_conftest_c11_globals='
2396 /* Does the compiler advertise C11 conformance? */
2397 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2398 # error "Compiler does not advertise C11 conformance"
2399 #endif
2400
2401 // Check _Alignas.
2402 char _Alignas (double) aligned_as_double;
2403 char _Alignas (0) no_special_alignment;
2404 extern char aligned_as_int;
2405 char _Alignas (0) _Alignas (int) aligned_as_int;
2406
2407 // Check _Alignof.
2408 enum
2409 {
2410 int_alignment = _Alignof (int),
2411 int_array_alignment = _Alignof (int[100]),
2412 char_alignment = _Alignof (char)
2413 };
2414 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2415
2416 // Check _Noreturn.
2417 int _Noreturn does_not_return (void) { for (;;) continue; }
2418
2419 // Check _Static_assert.
2420 struct test_static_assert
2421 {
2422 int x;
2423 _Static_assert (sizeof (int) <= sizeof (long int),
2424 "_Static_assert does not work in struct");
2425 long int y;
2426 };
2427
2428 // Check UTF-8 literals.
2429 #define u8 syntax error!
2430 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2431
2432 // Check duplicate typedefs.
2433 typedef long *long_ptr;
2434 typedef long int *long_ptr;
2435 typedef long_ptr long_ptr;
2436
2437 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2438 struct anonymous
2439 {
2440 union {
2441 struct { int i; int j; };
2442 struct { int k; long int l; } w;
2443 };
2444 int m;
2445 } v1;
2446 '
2447
2448 # Test code for whether the C compiler supports C11 (body of main).
2449 ac_c_conftest_c11_main='
2450 _Static_assert ((offsetof (struct anonymous, i)
2451 == offsetof (struct anonymous, w.k)),
2452 "Anonymous union alignment botch");
2453 v1.i = 2;
2454 v1.w.k = 5;
2455 ok |= v1.i != 5;
2456 '
2457
2458 # Test code for whether the C compiler supports C11 (complete).
2459 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2460 ${ac_c_conftest_c99_globals}
2461 ${ac_c_conftest_c11_globals}
2462
2463 int
2464 main (int argc, char **argv)
2465 {
2466 int ok = 0;
2467 ${ac_c_conftest_c89_main}
2468 ${ac_c_conftest_c99_main}
2469 ${ac_c_conftest_c11_main}
2470 return ok;
2471 }
2472 "
2473
2474 # Test code for whether the C compiler supports C99 (complete).
2475 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2476 ${ac_c_conftest_c99_globals}
2477
2478 int
2479 main (int argc, char **argv)
2480 {
2481 int ok = 0;
2482 ${ac_c_conftest_c89_main}
2483 ${ac_c_conftest_c99_main}
2484 return ok;
2485 }
2486 "
2487
2488 # Test code for whether the C compiler supports C89 (complete).
2489 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2490
2491 int
2492 main (int argc, char **argv)
2493 {
2494 int ok = 0;
2495 ${ac_c_conftest_c89_main}
2496 return ok;
2497 }
2498 "
2499
2500 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2501 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2502 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2503 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2504 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2505 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2506 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2507 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2508 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2509
2510 # Auxiliary files required by this configure script.
2511 ac_aux_files="compile ltmain.sh missing install-sh config.guess config.sub"
2512
2513 # Locations in which to look for auxiliary files.
2514 ac_aux_dir_candidates="${srcdir}/config"
2515
2516 # Search for a directory containing all of the required auxiliary files,
2517 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2518 # If we don't find one directory that contains all the files we need,
2519 # we report the set of missing files from the *first* directory in
2520 # $ac_aux_dir_candidates and give up.
2521 ac_missing_aux_files=""
2522 ac_first_candidate=:
2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 as_found=false
2526 for as_dir in $ac_aux_dir_candidates
2527 do
2528 IFS=$as_save_IFS
2529 case $as_dir in #(((
2530 '') as_dir=./ ;;
2531 */) ;;
2532 *) as_dir=$as_dir/ ;;
2533 esac
2534 as_found=:
2535
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2537 ac_aux_dir_found=yes
2538 ac_install_sh=
2539 for ac_aux in $ac_aux_files
2540 do
2541 # As a special case, if "install-sh" is required, that requirement
2542 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2543 # and $ac_install_sh is set appropriately for whichever one is found.
2544 if test x"$ac_aux" = x"install-sh"
2545 then
2546 if test -f "${as_dir}install-sh"; then
2547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2548 ac_install_sh="${as_dir}install-sh -c"
2549 elif test -f "${as_dir}install.sh"; then
2550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2551 ac_install_sh="${as_dir}install.sh -c"
2552 elif test -f "${as_dir}shtool"; then
2553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2554 ac_install_sh="${as_dir}shtool install -c"
2555 else
2556 ac_aux_dir_found=no
2557 if $ac_first_candidate; then
2558 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2559 else
2560 break
2561 fi
2562 fi
2563 else
2564 if test -f "${as_dir}${ac_aux}"; then
2565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2566 else
2567 ac_aux_dir_found=no
2568 if $ac_first_candidate; then
2569 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2570 else
2571 break
2572 fi
2573 fi
2574 fi
2575 done
2576 if test "$ac_aux_dir_found" = yes; then
2577 ac_aux_dir="$as_dir"
2578 break
2579 fi
2580 ac_first_candidate=false
2581
2582 as_found=false
2583 done
2584 IFS=$as_save_IFS
2585 if $as_found
2586 then :
2587
2588 else case e in #(
2589 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2590 esac
2591 fi
2592
2593
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 if test -f "${ac_aux_dir}config.guess"; then
2599 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2600 fi
2601 if test -f "${ac_aux_dir}config.sub"; then
2602 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2603 fi
2604 if test -f "$ac_aux_dir/configure"; then
2605 ac_configure="$SHELL ${ac_aux_dir}configure"
2606 fi
2607
2608 # Check that the precious variables saved in the cache have kept the same
2609 # value.
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613 eval ac_new_set=\$ac_env_${ac_var}_set
2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615 eval ac_new_val=\$ac_env_${ac_var}_value
2616 case $ac_old_set,$ac_new_set in
2617 set,)
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2619 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2621 ,set)
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2623 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,);;
2626 *)
2627 if test "x$ac_old_val" != "x$ac_new_val"; then
2628 # differences in whitespace do not lead to failure.
2629 ac_old_val_w=`echo x $ac_old_val`
2630 ac_new_val_w=`echo x $ac_new_val`
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2633 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2635 else
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2637 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2639 fi
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2641 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2643 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2644 fi;;
2645 esac
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2648 case $ac_new_val in
2649 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2651 esac
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655 esac
2656 fi
2657 done
2658 if $ac_cache_corrupted; then
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2660 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2664 and start over" "$LINENO" 5
2665 fi
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2669
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676
2677 #AC_INIT([cfitsio], [project_version], [[email protected]], [tarname], [url])
2678
2679 # Shared library versioning, passed to the linker using
2680 # "-version-info lt_cur:lt_rev:lt_age", where:
2681 # lt_cur = current: The most recent interface number that this
2682 # library implements.
2683 # lt_rev = revision: The implementation number of the current interface.
2684 # lt_age = age: The difference between the newest and oldest interfaces
2685 # that this library implements. In other words, the library
2686 # implements all the interface numbers in the range from number
2687 # current - age to current.
2688
2689
2690 #m4_define([lt_rev], [v_mic])
2691 #m4_define([lt_age], [v_min])
2692 #version_info="lt_cur:lt_rev:lt_age"
2693 version_info="10"
2694
2695
2696
2697
2698
2699
2700
2701 # Make sure we can run config.sub.
2702 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2703 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2704
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2706 printf %s "checking build system type... " >&6; }
2707 if test ${ac_cv_build+y}
2708 then :
2709 printf %s "(cached) " >&6
2710 else case e in #(
2711 e) ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2718 ;;
2719 esac
2720 fi
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 printf "%s\n" "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2724 *-*-*) ;;
2725 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2726 esac
2727 build=$ac_cv_build
2728 ac_save_IFS=$IFS; IFS='-'
2729 set x $ac_cv_build
2730 shift
2731 build_cpu=$1
2732 build_vendor=$2
2733 shift; shift
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2736 build_os=$*
2737 IFS=$ac_save_IFS
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2739
2740
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 printf %s "checking host system type... " >&6; }
2743 if test ${ac_cv_host+y}
2744 then :
2745 printf %s "(cached) " >&6
2746 else case e in #(
2747 e) if test "x$host_alias" = x; then
2748 ac_cv_host=$ac_cv_build
2749 else
2750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2752 fi
2753 ;;
2754 esac
2755 fi
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2757 printf "%s\n" "$ac_cv_host" >&6; }
2758 case $ac_cv_host in
2759 *-*-*) ;;
2760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2761 esac
2762 host=$ac_cv_host
2763 ac_save_IFS=$IFS; IFS='-'
2764 set x $ac_cv_host
2765 shift
2766 host_cpu=$1
2767 host_vendor=$2
2768 shift; shift
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2771 host_os=$*
2772 IFS=$ac_save_IFS
2773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774
2775
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2777 printf %s "checking target system type... " >&6; }
2778 if test ${ac_cv_target+y}
2779 then :
2780 printf %s "(cached) " >&6
2781 else case e in #(
2782 e) if test "x$target_alias" = x; then
2783 ac_cv_target=$ac_cv_host
2784 else
2785 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2786 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2787 fi
2788 ;;
2789 esac
2790 fi
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2792 printf "%s\n" "$ac_cv_target" >&6; }
2793 case $ac_cv_target in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2796 esac
2797 target=$ac_cv_target
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_target
2800 shift
2801 target_cpu=$1
2802 target_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 target_os=$*
2807 IFS=$ac_save_IFS
2808 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2809
2810
2811 # The aliases save the names the user supplied, while $host etc.
2812 # will get canonicalized.
2813 test -n "$target_alias" &&
2814 test "$program_prefix$program_suffix$program_transform_name" = \
2815 NONENONEs,x,x, &&
2816 program_prefix=${target_alias}-
2817
2818 #AC_CONFIG_HEADERS(config.h)
2819
2820 am__api_version='1.17'
2821
2822
2823 # Find a good install program. We prefer a C program (faster),
2824 # so one script is as good as another. But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2829 # AIX /bin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # OS/2's system install, which has a completely different semantic
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 # Reject install programs that cannot install multiple files.
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2838 printf %s "checking for a BSD-compatible install... " >&6; }
2839 if test -z "$INSTALL"; then
2840 if test ${ac_cv_path_install+y}
2841 then :
2842 printf %s "(cached) " >&6
2843 else case e in #(
2844 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 case $as_dir in #(((
2849 '') as_dir=./ ;;
2850 */) ;;
2851 *) as_dir=$as_dir/ ;;
2852 esac
2853 # Account for fact that we put trailing slashes in our PATH walk.
2854 case $as_dir in #((
2855 ./ | /[cC]/* | \
2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2857 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2858 /usr/ucb/* ) ;;
2859 *)
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2862 # by default.
2863 for ac_prog in ginstall scoinst install; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2866 if test $ac_prog = install &&
2867 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # AIX install. It has an incompatible calling convention.
2869 :
2870 elif test $ac_prog = install &&
2871 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # program-specific install script used by HP pwplus--don't use.
2873 :
2874 else
2875 rm -rf conftest.one conftest.two conftest.dir
2876 echo one > conftest.one
2877 echo two > conftest.two
2878 mkdir conftest.dir
2879 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2880 test -s conftest.one && test -s conftest.two &&
2881 test -s conftest.dir/conftest.one &&
2882 test -s conftest.dir/conftest.two
2883 then
2884 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2885 break 3
2886 fi
2887 fi
2888 fi
2889 done
2890 done
2891 ;;
2892 esac
2893
2894 done
2895 IFS=$as_save_IFS
2896
2897 rm -rf conftest.one conftest.two conftest.dir
2898 ;;
2899 esac
2900 fi
2901 if test ${ac_cv_path_install+y}; then
2902 INSTALL=$ac_cv_path_install
2903 else
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for INSTALL within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 INSTALL=$ac_install_sh
2909 fi
2910 fi
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2912 printf "%s\n" "$INSTALL" >&6; }
2913
2914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2915 # It thinks the first close brace ends the variable substitution.
2916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2917
2918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2919
2920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2923 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2924 if test ${am_cv_sleep_fractional_seconds+y}
2925 then :
2926 printf %s "(cached) " >&6
2927 else case e in #(
2928 e) if sleep 0.001 2>/dev/null
2929 then :
2930 am_cv_sleep_fractional_seconds=yes
2931 else case e in #(
2932 e) am_cv_sleep_fractional_seconds=no ;;
2933 esac
2934 fi
2935 ;;
2936 esac
2937 fi
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2939 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2940
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2942 printf %s "checking filesystem timestamp resolution... " >&6; }
2943 if test ${am_cv_filesystem_timestamp_resolution+y}
2944 then :
2945 printf %s "(cached) " >&6
2946 else case e in #(
2947 e) # Default to the worst case.
2948 am_cv_filesystem_timestamp_resolution=2
2949
2950 # Only try to go finer than 1 sec if sleep can do it.
2951 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2952 # - 1 sec is not much of a win compared to 2 sec, and
2953 # - it takes 2 seconds to perform the test whether 1 sec works.
2954 #
2955 # Instead, just use the default 2s on platforms that have 1s resolution,
2956 # accept the extra 1s delay when using $sleep in the Automake tests, in
2957 # exchange for not incurring the 2s delay for running the test for all
2958 # packages.
2959 #
2960 am_try_resolutions=
2961 if test "$am_cv_sleep_fractional_seconds" = yes; then
2962 # Even a millisecond often causes a bunch of false positives,
2963 # so just try a hundredth of a second. The time saved between .001 and
2964 # .01 is not terribly consequential.
2965 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2966 fi
2967
2968 # In order to catch current-generation FAT out, we must *modify* files
2969 # that already exist; the *creation* timestamp is finer. Use names
2970 # that make ls -t sort them differently when they have equal
2971 # timestamps than when they have distinct timestamps, keeping
2972 # in mind that ls -t prints the *newest* file first.
2973 rm -f conftest.ts?
2974 : > conftest.ts1
2975 : > conftest.ts2
2976 : > conftest.ts3
2977
2978 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2979 # clobber the current shell's arguments. (Outer-level square brackets
2980 # are removed by m4; they're present so that m4 does not expand
2981 # <dollar><star>; be careful, easy to get confused.)
2982 if (
2983 set X `ls -t conftest.ts[12]` &&
2984 {
2985 test "$*" != "X conftest.ts1 conftest.ts2" ||
2986 test "$*" != "X conftest.ts2 conftest.ts1";
2987 }
2988 ); then :; else
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2995 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2996 as_fn_error $? "ls -t produces unexpected output.
2997 Make sure there is not a broken ls alias in your environment.
2998 See 'config.log' for more details" "$LINENO" 5; }
2999 fi
3000
3001 for am_try_res in $am_try_resolutions; do
3002 # Any one fine-grained sleep might happen to cross the boundary
3003 # between two values of a coarser actual resolution, but if we do
3004 # two fine-grained sleeps in a row, at least one of them will fall
3005 # entirely within a coarse interval.
3006 echo alpha > conftest.ts1
3007 sleep $am_try_res
3008 echo beta > conftest.ts2
3009 sleep $am_try_res
3010 echo gamma > conftest.ts3
3011
3012 # We assume that 'ls -t' will make use of high-resolution
3013 # timestamps if the operating system supports them at all.
3014 if (set X `ls -t conftest.ts?` &&
3015 test "$2" = conftest.ts3 &&
3016 test "$3" = conftest.ts2 &&
3017 test "$4" = conftest.ts1); then
3018 #
3019 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3020 # because we don't need to test make.
3021 make_ok=true
3022 if test $am_try_res != 1; then
3023 # But if we've succeeded so far with a subsecond resolution, we
3024 # have one more thing to check: make. It can happen that
3025 # everything else supports the subsecond mtimes, but make doesn't;
3026 # notably on macOS, which ships make 3.81 from 2006 (the last one
3027 # released under GPLv2). https://bugs.gnu.org/68808
3028 #
3029 # We test $MAKE if it is defined in the environment, else "make".
3030 # It might get overridden later, but our hope is that in practice
3031 # it does not matter: it is the system "make" which is (by far)
3032 # the most likely to be broken, whereas if the user overrides it,
3033 # probably they did so with a better, or at least not worse, make.
3034 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3035 #
3036 # Create a Makefile (real tab character here):
3037 rm -f conftest.mk
3038 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3039 echo ' touch conftest.ts2' >>conftest.mk
3040 #
3041 # Now, running
3042 # touch conftest.ts1; touch conftest.ts2; make
3043 # should touch ts1 because ts2 is newer. This could happen by luck,
3044 # but most often, it will fail if make's support is insufficient. So
3045 # test for several consecutive successes.
3046 #
3047 # (We reuse conftest.ts[12] because we still want to modify existing
3048 # files, not create new ones, per above.)
3049 n=0
3050 make=${MAKE-make}
3051 until test $n -eq 3; do
3052 echo one > conftest.ts1
3053 sleep $am_try_res
3054 echo two > conftest.ts2 # ts2 should now be newer than ts1
3055 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3056 make_ok=false
3057 break # out of $n loop
3058 fi
3059 n=`expr $n + 1`
3060 done
3061 fi
3062 #
3063 if $make_ok; then
3064 # Everything we know to check worked out, so call this resolution good.
3065 am_cv_filesystem_timestamp_resolution=$am_try_res
3066 break # out of $am_try_res loop
3067 fi
3068 # Otherwise, we'll go on to check the next resolution.
3069 fi
3070 done
3071 rm -f conftest.ts?
3072 # (end _am_filesystem_timestamp_resolution)
3073 ;;
3074 esac
3075 fi
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3077 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3078
3079 # This check should not be cached, as it may vary across builds of
3080 # different projects.
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3082 printf %s "checking whether build environment is sane... " >&6; }
3083 # Reject unsafe characters in $srcdir or the absolute working directory
3084 # name. Accept space and tab only in the latter.
3085 am_lf='
3086 '
3087 case `pwd` in
3088 *[\\\"\#\$\&\'\`$am_lf]*)
3089 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3090 esac
3091 case $srcdir in
3092 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3093 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3094 esac
3095
3096 # Do 'set' in a subshell so we don't clobber the current shell's
3097 # arguments. Must try -L first in case configure is actually a
3098 # symlink; some systems play weird games with the mod time of symlinks
3099 # (eg FreeBSD returns the mod time of the symlink's containing
3100 # directory).
3101 am_build_env_is_sane=no
3102 am_has_slept=no
3103 rm -f conftest.file
3104 for am_try in 1 2; do
3105 echo "timestamp, slept: $am_has_slept" > conftest.file
3106 if (
3107 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3108 if test "$*" = "X"; then
3109 # -L didn't work.
3110 set X `ls -t "$srcdir/configure" conftest.file`
3111 fi
3112 test "$2" = conftest.file
3113 ); then
3114 am_build_env_is_sane=yes
3115 break
3116 fi
3117 # Just in case.
3118 sleep "$am_cv_filesystem_timestamp_resolution"
3119 am_has_slept=yes
3120 done
3121
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3123 printf "%s\n" "$am_build_env_is_sane" >&6; }
3124 if test "$am_build_env_is_sane" = no; then
3125 as_fn_error $? "newly created file is older than distributed files!
3126 Check your system clock" "$LINENO" 5
3127 fi
3128
3129 # If we didn't sleep, we still need to ensure time stamps of config.status and
3130 # generated files are strictly newer.
3131 am_sleep_pid=
3132 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3133 then :
3134
3135 else case e in #(
3136 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3137 am_sleep_pid=$!
3138 ;;
3139 esac
3140 fi
3141
3142 rm -f conftest.file
3143
3144 test "$program_prefix" != NONE &&
3145 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3146 # Use a double $ so make ignores it.
3147 test "$program_suffix" != NONE &&
3148 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3149 # Double any \ or $.
3150 # By default was 's,x,x', remove it if useless.
3151 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3152 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3153
3154
3155 # Expand $ac_aux_dir to an absolute path.
3156 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3157
3158
3159 if test x"${MISSING+set}" != xset; then
3160 MISSING="\${SHELL} '$am_aux_dir/missing'"
3161 fi
3162 # Use eval to expand $SHELL
3163 if eval "$MISSING --is-lightweight"; then
3164 am_missing_run="$MISSING "
3165 else
3166 am_missing_run=
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3168 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3169 fi
3170
3171 if test x"${install_sh+set}" != xset; then
3172 case $am_aux_dir in
3173 *\ * | *\ *)
3174 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3175 *)
3176 install_sh="\${SHELL} $am_aux_dir/install-sh"
3177 esac
3178 fi
3179
3180 # Installed binaries are usually stripped using 'strip' when the user
3181 # run "make install-strip". However 'strip' might not be the right
3182 # tool to use in cross-compilation environments, therefore Automake
3183 # will honor the 'STRIP' environment variable to overrule this program.
3184 if test "$cross_compiling" != no; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}strip; ac_word=$2
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 printf %s "checking for $ac_word... " >&6; }
3190 if test ${ac_cv_prog_STRIP+y}
3191 then :
3192 printf %s "(cached) " >&6
3193 else case e in #(
3194 e) if test -n "$STRIP"; then
3195 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 case $as_dir in #(((
3202 '') as_dir=./ ;;
3203 */) ;;
3204 *) as_dir=$as_dir/ ;;
3205 esac
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212 done
3213 done
3214 IFS=$as_save_IFS
3215
3216 fi ;;
3217 esac
3218 fi
3219 STRIP=$ac_cv_prog_STRIP
3220 if test -n "$STRIP"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3222 printf "%s\n" "$STRIP" >&6; }
3223 else
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3226 fi
3227
3228
3229 fi
3230 if test -z "$ac_cv_prog_STRIP"; then
3231 ac_ct_STRIP=$STRIP
3232 # Extract the first word of "strip", so it can be a program name with args.
3233 set dummy strip; ac_word=$2
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 printf %s "checking for $ac_word... " >&6; }
3236 if test ${ac_cv_prog_ac_ct_STRIP+y}
3237 then :
3238 printf %s "(cached) " >&6
3239 else case e in #(
3240 e) if test -n "$ac_ct_STRIP"; then
3241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 case $as_dir in #(((
3248 '') as_dir=./ ;;
3249 */) ;;
3250 *) as_dir=$as_dir/ ;;
3251 esac
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_ac_ct_STRIP="strip"
3255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi ;;
3263 esac
3264 fi
3265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3266 if test -n "$ac_ct_STRIP"; then
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3268 printf "%s\n" "$ac_ct_STRIP" >&6; }
3269 else
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 printf "%s\n" "no" >&6; }
3272 fi
3273
3274 if test "x$ac_ct_STRIP" = x; then
3275 STRIP=":"
3276 else
3277 case $cross_compiling:$ac_tool_warned in
3278 yes:)
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3281 ac_tool_warned=yes ;;
3282 esac
3283 STRIP=$ac_ct_STRIP
3284 fi
3285 else
3286 STRIP="$ac_cv_prog_STRIP"
3287 fi
3288
3289 fi
3290 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3291
3292
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3294 printf %s "checking for a race-free mkdir -p... " >&6; }
3295 if test -z "$MKDIR_P"; then
3296 if test ${ac_cv_path_mkdir+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else case e in #(
3300 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3302 do
3303 IFS=$as_save_IFS
3304 case $as_dir in #(((
3305 '') as_dir=./ ;;
3306 */) ;;
3307 *) as_dir=$as_dir/ ;;
3308 esac
3309 for ac_prog in mkdir gmkdir; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3312 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3313 'mkdir ('*'coreutils) '* | \
3314 *'BusyBox '* | \
3315 'mkdir (fileutils) '4.1*)
3316 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3317 break 3;;
3318 esac
3319 done
3320 done
3321 done
3322 IFS=$as_save_IFS
3323 ;;
3324 esac
3325 fi
3326
3327 test -d ./--version && rmdir ./--version
3328 if test ${ac_cv_path_mkdir+y}; then
3329 MKDIR_P="$ac_cv_path_mkdir -p"
3330 else
3331 # As a last resort, use plain mkdir -p,
3332 # in the hope it doesn't have the bugs of ancient mkdir.
3333 MKDIR_P='mkdir -p'
3334 fi
3335 fi
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3337 printf "%s\n" "$MKDIR_P" >&6; }
3338
3339 for ac_prog in gawk mawk nawk awk
3340 do
3341 # Extract the first word of "$ac_prog", so it can be a program name with args.
3342 set dummy $ac_prog; ac_word=$2
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 printf %s "checking for $ac_word... " >&6; }
3345 if test ${ac_cv_prog_AWK+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else case e in #(
3349 e) if test -n "$AWK"; then
3350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355 IFS=$as_save_IFS
3356 case $as_dir in #(((
3357 '') as_dir=./ ;;
3358 */) ;;
3359 *) as_dir=$as_dir/ ;;
3360 esac
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_AWK="$ac_prog"
3364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi ;;
3372 esac
3373 fi
3374 AWK=$ac_cv_prog_AWK
3375 if test -n "$AWK"; then
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3377 printf "%s\n" "$AWK" >&6; }
3378 else
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 printf "%s\n" "no" >&6; }
3381 fi
3382
3383
3384 test -n "$AWK" && break
3385 done
3386
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3388 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3389 set x ${MAKE-make}
3390 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3391 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else case e in #(
3395 e) cat >conftest.make <<\_ACEOF
3396 SHELL = /bin/sh
3397 all:
3398 @echo '@@@%%%=$(MAKE)=@@@%%%'
3399 _ACEOF
3400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3401 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3402 *@@@%%%=?*=@@@%%%*)
3403 eval ac_cv_prog_make_${ac_make}_set=yes;;
3404 *)
3405 eval ac_cv_prog_make_${ac_make}_set=no;;
3406 esac
3407 rm -f conftest.make ;;
3408 esac
3409 fi
3410 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3412 printf "%s\n" "yes" >&6; }
3413 SET_MAKE=
3414 else
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 printf "%s\n" "no" >&6; }
3417 SET_MAKE="MAKE=${MAKE-make}"
3418 fi
3419
3420 rm -rf .tst 2>/dev/null
3421 mkdir .tst 2>/dev/null
3422 if test -d .tst; then
3423 am__leading_dot=.
3424 else
3425 am__leading_dot=_
3426 fi
3427 rmdir .tst 2>/dev/null
3428
3429 AM_DEFAULT_VERBOSITY=1
3430 # Check whether --enable-silent-rules was given.
3431 if test ${enable_silent_rules+y}
3432 then :
3433 enableval=$enable_silent_rules;
3434 fi
3435
3436 am_make=${MAKE-make}
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3438 printf %s "checking whether $am_make supports nested variables... " >&6; }
3439 if test ${am_cv_make_support_nested_variables+y}
3440 then :
3441 printf %s "(cached) " >&6
3442 else case e in #(
3443 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3444 BAR0=false
3445 BAR1=true
3446 V=1
3447 am__doit:
3448 @$(TRUE)
3449 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3450 am_cv_make_support_nested_variables=yes
3451 else
3452 am_cv_make_support_nested_variables=no
3453 fi ;;
3454 esac
3455 fi
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3457 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3458 AM_BACKSLASH='\'
3459
3460 am__rm_f_notfound=
3461 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3462 then :
3463
3464 else case e in #(
3465 e) am__rm_f_notfound='""' ;;
3466 esac
3467 fi
3468
3469
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3471 printf %s "checking xargs -n works... " >&6; }
3472 if test ${am_cv_xargs_n_works+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else case e in #(
3476 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3477 3"
3478 then :
3479 am_cv_xargs_n_works=yes
3480 else case e in #(
3481 e) am_cv_xargs_n_works=no ;;
3482 esac
3483 fi ;;
3484 esac
3485 fi
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3487 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3488 if test "$am_cv_xargs_n_works" = yes
3489 then :
3490 am__xargs_n='xargs -n'
3491 else case e in #(
3492 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3493 ;;
3494 esac
3495 fi
3496
3497 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3498 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3499 # is not polluted with repeated "-I."
3500 am__isrc=' -I$(srcdir)'
3501 # test to see if srcdir already configured
3502 if test -f $srcdir/config.status; then
3503 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3504 fi
3505 fi
3506
3507 # test whether we have cygpath
3508 if test -z "$CYGPATH_W"; then
3509 if (cygpath --version) >/dev/null 2>/dev/null; then
3510 CYGPATH_W='cygpath -w'
3511 else
3512 CYGPATH_W=echo
3513 fi
3514 fi
3515
3516
3517 # Define the identity of the package.
3518 PACKAGE='cfitsio'
3519 VERSION='4.6.3'
3520
3521
3522 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3523
3524
3525 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3526
3527 # Some tools Automake needs.
3528
3529 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3530
3531
3532 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3533
3534
3535 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3536
3537
3538 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3539
3540
3541 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3542
3543 # For better backward compatibility. To be removed once Automake 1.9.x
3544 # dies out for good. For more background, see:
3545 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3546 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3547 mkdir_p='$(MKDIR_P)'
3548
3549 # We need awk for the "check" target (and possibly the TAP driver). The
3550 # system "awk" is bad on some platforms.
3551 # Always define AMTAR for backward compatibility. Yes, it's still used
3552 # in the wild :-( We should find a proper way to deprecate it ...
3553 AMTAR='$${TAR-tar}'
3554
3555
3556 # We'll loop over all known methods to create a tar archive until one works.
3557 _am_tools='gnutar pax cpio none'
3558
3559 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3560
3561
3562
3563
3564
3565 # Variables for tags utilities; see am/tags.am
3566 if test -z "$CTAGS"; then
3567 CTAGS=ctags
3568 fi
3569
3570 if test -z "$ETAGS"; then
3571 ETAGS=etags
3572 fi
3573
3574 if test -z "$CSCOPE"; then
3575 CSCOPE=cscope
3576 fi
3577
3578
3579
3580
3581
3582
3583
3584
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3586 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3587 # Check whether --enable-maintainer-mode was given.
3588 if test ${enable_maintainer_mode+y}
3589 then :
3590 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3591 else case e in #(
3592 e) USE_MAINTAINER_MODE=no ;;
3593 esac
3594 fi
3595
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3597 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3598 if test $USE_MAINTAINER_MODE = yes; then
3599 MAINTAINER_MODE_TRUE=
3600 MAINTAINER_MODE_FALSE='#'
3601 else
3602 MAINTAINER_MODE_TRUE='#'
3603 MAINTAINER_MODE_FALSE=
3604 fi
3605
3606 MAINT=$MAINTAINER_MODE_TRUE
3607
3608
3609
3610 case `pwd` in
3611 *\ * | *\ *)
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3613 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3614 esac
3615
3616
3617
3618 macro_version='2.5.4'
3619 macro_revision='2.5.4'
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634 ltmain=$ac_aux_dir/ltmain.sh
3635
3636 # Backslashify metacharacters that are still active within
3637 # double-quoted strings.
3638 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3639
3640 # Same as above, but do not quote variable references.
3641 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3642
3643 # Sed substitution to delay expansion of an escaped shell variable in a
3644 # double_quote_subst'ed string.
3645 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3646
3647 # Sed substitution to delay expansion of an escaped single quote.
3648 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3649
3650 # Sed substitution to avoid accidental globbing in evaled expressions
3651 no_glob_subst='s/\*/\\\*/g'
3652
3653 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3654 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3656
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3658 printf %s "checking how to print strings... " >&6; }
3659 # Test print first, because it will be a builtin if present.
3660 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3661 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3662 ECHO='print -r --'
3663 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3664 ECHO='printf %s\n'
3665 else
3666 # Use this function as a fallback that always works.
3667 func_fallback_echo ()
3668 {
3669 eval 'cat <<_LTECHO_EOF
3670 $1
3671 _LTECHO_EOF'
3672 }
3673 ECHO='func_fallback_echo'
3674 fi
3675
3676 # func_echo_all arg...
3677 # Invoke $ECHO with all args, space-separated.
3678 func_echo_all ()
3679 {
3680 $ECHO ""
3681 }
3682
3683 case $ECHO in
3684 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3685 printf "%s\n" "printf" >&6; } ;;
3686 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3687 printf "%s\n" "print -r" >&6; } ;;
3688 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3689 printf "%s\n" "cat" >&6; } ;;
3690 esac
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714 DEPDIR="${am__leading_dot}deps"
3715
3716 ac_config_commands="$ac_config_commands depfiles"
3717
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3719 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3720 cat > confinc.mk << 'END'
3721 am__doit:
3722 @echo this is the am__doit target >confinc.out
3723 .PHONY: am__doit
3724 END
3725 am__include="#"
3726 am__quote=
3727 # BSD make does it like this.
3728 echo '.include "confinc.mk" # ignored' > confmf.BSD
3729 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3730 echo 'include confinc.mk # ignored' > confmf.GNU
3731 _am_result=no
3732 for s in GNU BSD; do
3733 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3734 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }
3738 case $?:`cat confinc.out 2>/dev/null` in #(
3739 '0:this is the am__doit target') :
3740 case $s in #(
3741 BSD) :
3742 am__include='.include' am__quote='"' ;; #(
3743 *) :
3744 am__include='include' am__quote='' ;;
3745 esac ;; #(
3746 *) :
3747 ;;
3748 esac
3749 if test "$am__include" != "#"; then
3750 _am_result="yes ($s style)"
3751 break
3752 fi
3753 done
3754 rm -f confinc.* confmf.*
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3756 printf "%s\n" "${_am_result}" >&6; }
3757
3758 # Check whether --enable-dependency-tracking was given.
3759 if test ${enable_dependency_tracking+y}
3760 then :
3761 enableval=$enable_dependency_tracking;
3762 fi
3763
3764 if test "x$enable_dependency_tracking" != xno; then
3765 am_depcomp="$ac_aux_dir/depcomp"
3766 AMDEPBACKSLASH='\'
3767 am__nodep='_no'
3768 fi
3769 if test "x$enable_dependency_tracking" != xno; then
3770 AMDEP_TRUE=
3771 AMDEP_FALSE='#'
3772 else
3773 AMDEP_TRUE='#'
3774 AMDEP_FALSE=
3775 fi
3776
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 printf %s "checking for $ac_word... " >&6; }
3788 if test ${ac_cv_prog_CC+y}
3789 then :
3790 printf %s "(cached) " >&6
3791 else case e in #(
3792 e) if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798 IFS=$as_save_IFS
3799 case $as_dir in #(((
3800 '') as_dir=./ ;;
3801 */) ;;
3802 *) as_dir=$as_dir/ ;;
3803 esac
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810 done
3811 done
3812 IFS=$as_save_IFS
3813
3814 fi ;;
3815 esac
3816 fi
3817 CC=$ac_cv_prog_CC
3818 if test -n "$CC"; then
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 printf "%s\n" "$CC" >&6; }
3821 else
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 printf "%s\n" "no" >&6; }
3824 fi
3825
3826
3827 fi
3828 if test -z "$ac_cv_prog_CC"; then
3829 ac_ct_CC=$CC
3830 # Extract the first word of "gcc", so it can be a program name with args.
3831 set dummy gcc; ac_word=$2
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 printf %s "checking for $ac_word... " >&6; }
3834 if test ${ac_cv_prog_ac_ct_CC+y}
3835 then :
3836 printf %s "(cached) " >&6
3837 else case e in #(
3838 e) if test -n "$ac_ct_CC"; then
3839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844 IFS=$as_save_IFS
3845 case $as_dir in #(((
3846 '') as_dir=./ ;;
3847 */) ;;
3848 *) as_dir=$as_dir/ ;;
3849 esac
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_ac_ct_CC="gcc"
3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3854 break 2
3855 fi
3856 done
3857 done
3858 IFS=$as_save_IFS
3859
3860 fi ;;
3861 esac
3862 fi
3863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864 if test -n "$ac_ct_CC"; then
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866 printf "%s\n" "$ac_ct_CC" >&6; }
3867 else
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 printf "%s\n" "no" >&6; }
3870 fi
3871
3872 if test "x$ac_ct_CC" = x; then
3873 CC=""
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876 yes:)
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879 ac_tool_warned=yes ;;
3880 esac
3881 CC=$ac_ct_CC
3882 fi
3883 else
3884 CC="$ac_cv_prog_CC"
3885 fi
3886
3887 if test -z "$CC"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}cc; ac_word=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s "checking for $ac_word... " >&6; }
3893 if test ${ac_cv_prog_CC+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else case e in #(
3897 e) if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 case $as_dir in #(((
3905 '') as_dir=./ ;;
3906 */) ;;
3907 *) as_dir=$as_dir/ ;;
3908 esac
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CC="${ac_tool_prefix}cc"
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 fi ;;
3920 esac
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 printf "%s\n" "$CC" >&6; }
3926 else
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 printf "%s\n" "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 fi
3934 if test -z "$CC"; then
3935 # Extract the first word of "cc", so it can be a program name with args.
3936 set dummy cc; ac_word=$2
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 printf %s "checking for $ac_word... " >&6; }
3939 if test ${ac_cv_prog_CC+y}
3940 then :
3941 printf %s "(cached) " >&6
3942 else case e in #(
3943 e) if test -n "$CC"; then
3944 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 else
3946 ac_prog_rejected=no
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 case $as_dir in #(((
3952 '') as_dir=./ ;;
3953 */) ;;
3954 *) as_dir=$as_dir/ ;;
3955 esac
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3958 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3959 ac_prog_rejected=yes
3960 continue
3961 fi
3962 ac_cv_prog_CC="cc"
3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966 done
3967 done
3968 IFS=$as_save_IFS
3969
3970 if test $ac_prog_rejected = yes; then
3971 # We found a bogon in the path, so make sure we never use it.
3972 set dummy $ac_cv_prog_CC
3973 shift
3974 if test $# != 0; then
3975 # We chose a different compiler from the bogus one.
3976 # However, it has the same basename, so the bogon will be chosen
3977 # first if we set CC to just the basename; use the full file name.
3978 shift
3979 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3980 fi
3981 fi
3982 fi ;;
3983 esac
3984 fi
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 printf "%s\n" "$CC" >&6; }
3989 else
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 printf "%s\n" "no" >&6; }
3992 fi
3993
3994
3995 fi
3996 if test -z "$CC"; then
3997 if test -n "$ac_tool_prefix"; then
3998 for ac_prog in cl.exe
3999 do
4000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 printf %s "checking for $ac_word... " >&6; }
4004 if test ${ac_cv_prog_CC+y}
4005 then :
4006 printf %s "(cached) " >&6
4007 else case e in #(
4008 e) if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014 IFS=$as_save_IFS
4015 case $as_dir in #(((
4016 '') as_dir=./ ;;
4017 */) ;;
4018 *) as_dir=$as_dir/ ;;
4019 esac
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026 done
4027 done
4028 IFS=$as_save_IFS
4029
4030 fi ;;
4031 esac
4032 fi
4033 CC=$ac_cv_prog_CC
4034 if test -n "$CC"; then
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 printf "%s\n" "$CC" >&6; }
4037 else
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 printf "%s\n" "no" >&6; }
4040 fi
4041
4042
4043 test -n "$CC" && break
4044 done
4045 fi
4046 if test -z "$CC"; then
4047 ac_ct_CC=$CC
4048 for ac_prog in cl.exe
4049 do
4050 # Extract the first word of "$ac_prog", so it can be a program name with args.
4051 set dummy $ac_prog; ac_word=$2
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 printf %s "checking for $ac_word... " >&6; }
4054 if test ${ac_cv_prog_ac_ct_CC+y}
4055 then :
4056 printf %s "(cached) " >&6
4057 else case e in #(
4058 e) if test -n "$ac_ct_CC"; then
4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064 IFS=$as_save_IFS
4065 case $as_dir in #(((
4066 '') as_dir=./ ;;
4067 */) ;;
4068 *) as_dir=$as_dir/ ;;
4069 esac
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_ac_ct_CC="$ac_prog"
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi ;;
4081 esac
4082 fi
4083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4084 if test -n "$ac_ct_CC"; then
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4086 printf "%s\n" "$ac_ct_CC" >&6; }
4087 else
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 printf "%s\n" "no" >&6; }
4090 fi
4091
4092
4093 test -n "$ac_ct_CC" && break
4094 done
4095
4096 if test "x$ac_ct_CC" = x; then
4097 CC=""
4098 else
4099 case $cross_compiling:$ac_tool_warned in
4100 yes:)
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4103 ac_tool_warned=yes ;;
4104 esac
4105 CC=$ac_ct_CC
4106 fi
4107 fi
4108
4109 fi
4110 if test -z "$CC"; then
4111 if test -n "$ac_tool_prefix"; then
4112 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}clang; ac_word=$2
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 printf %s "checking for $ac_word... " >&6; }
4116 if test ${ac_cv_prog_CC+y}
4117 then :
4118 printf %s "(cached) " >&6
4119 else case e in #(
4120 e) if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 case $as_dir in #(((
4128 '') as_dir=./ ;;
4129 */) ;;
4130 *) as_dir=$as_dir/ ;;
4131 esac
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CC="${ac_tool_prefix}clang"
4135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi ;;
4143 esac
4144 fi
4145 CC=$ac_cv_prog_CC
4146 if test -n "$CC"; then
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148 printf "%s\n" "$CC" >&6; }
4149 else
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 printf "%s\n" "no" >&6; }
4152 fi
4153
4154
4155 fi
4156 if test -z "$ac_cv_prog_CC"; then
4157 ac_ct_CC=$CC
4158 # Extract the first word of "clang", so it can be a program name with args.
4159 set dummy clang; ac_word=$2
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 printf %s "checking for $ac_word... " >&6; }
4162 if test ${ac_cv_prog_ac_ct_CC+y}
4163 then :
4164 printf %s "(cached) " >&6
4165 else case e in #(
4166 e) if test -n "$ac_ct_CC"; then
4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 case $as_dir in #(((
4174 '') as_dir=./ ;;
4175 */) ;;
4176 *) as_dir=$as_dir/ ;;
4177 esac
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_CC="clang"
4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184 done
4185 done
4186 IFS=$as_save_IFS
4187
4188 fi ;;
4189 esac
4190 fi
4191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4192 if test -n "$ac_ct_CC"; then
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4194 printf "%s\n" "$ac_ct_CC" >&6; }
4195 else
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 printf "%s\n" "no" >&6; }
4198 fi
4199
4200 if test "x$ac_ct_CC" = x; then
4201 CC=""
4202 else
4203 case $cross_compiling:$ac_tool_warned in
4204 yes:)
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4206 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4207 ac_tool_warned=yes ;;
4208 esac
4209 CC=$ac_ct_CC
4210 fi
4211 else
4212 CC="$ac_cv_prog_CC"
4213 fi
4214
4215 fi
4216
4217
4218 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4219 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4220 as_fn_error $? "no acceptable C compiler found in \$PATH
4221 See 'config.log' for more details" "$LINENO" 5; }
4222
4223 # Provide some information about the compiler.
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4225 set X $ac_compile
4226 ac_compiler=$2
4227 for ac_option in --version -v -V -qversion -version; do
4228 { { ac_try="$ac_compiler $ac_option >&5"
4229 case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 printf "%s\n" "$ac_try_echo"; } >&5
4235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4236 ac_status=$?
4237 if test -s conftest.err; then
4238 sed '10a\
4239 ... rest of stderr output deleted ...
4240 10q' conftest.err >conftest.er1
4241 cat conftest.er1 >&5
4242 fi
4243 rm -f conftest.er1 conftest.err
4244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }
4246 done
4247
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main (void)
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 ac_clean_files_save=$ac_clean_files
4260 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4261 # Try to create an executable without -o first, disregard a.out.
4262 # It will help us diagnose broken compilers, and finding out an intuition
4263 # of exeext.
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4265 printf %s "checking whether the C compiler works... " >&6; }
4266 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4267
4268 # The possible output files:
4269 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4270
4271 ac_rmfiles=
4272 for ac_file in $ac_files
4273 do
4274 case $ac_file in
4275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4277 esac
4278 done
4279 rm -f $ac_rmfiles
4280
4281 if { { ac_try="$ac_link_default"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 printf "%s\n" "$ac_try_echo"; } >&5
4288 (eval "$ac_link_default") 2>&5
4289 ac_status=$?
4290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292 then :
4293 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4294 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4296 # so that the user can short-circuit this test for compilers unknown to
4297 # Autoconf.
4298 for ac_file in $ac_files ''
4299 do
4300 test -f "$ac_file" || continue
4301 case $ac_file in
4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4303 ;;
4304 [ab].out )
4305 # We found the default executable, but exeext='' is most
4306 # certainly right.
4307 break;;
4308 *.* )
4309 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4310 then :; else
4311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4312 fi
4313 # We set ac_cv_exeext here because the later test for it is not
4314 # safe: cross compilers may not add the suffix if given an '-o'
4315 # argument, so we may need to know it at that point already.
4316 # Even if this section looks crufty: it has the advantage of
4317 # actually working.
4318 break;;
4319 * )
4320 break;;
4321 esac
4322 done
4323 test "$ac_cv_exeext" = no && ac_cv_exeext=
4324
4325 else case e in #(
4326 e) ac_file='' ;;
4327 esac
4328 fi
4329 if test -z "$ac_file"
4330 then :
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 printf "%s\n" "no" >&6; }
4333 printf "%s\n" "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4337 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4338 as_fn_error 77 "C compiler cannot create executables
4339 See 'config.log' for more details" "$LINENO" 5; }
4340 else case e in #(
4341 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4342 printf "%s\n" "yes" >&6; } ;;
4343 esac
4344 fi
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4346 printf %s "checking for C compiler default output file name... " >&6; }
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4348 printf "%s\n" "$ac_file" >&6; }
4349 ac_exeext=$ac_cv_exeext
4350
4351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4352 ac_clean_files=$ac_clean_files_save
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4354 printf %s "checking for suffix of executables... " >&6; }
4355 if { { ac_try="$ac_link"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 printf "%s\n" "$ac_try_echo"; } >&5
4362 (eval "$ac_link") 2>&5
4363 ac_status=$?
4364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4366 then :
4367 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4368 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4369 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4370 # 'rm'.
4371 for ac_file in conftest.exe conftest conftest.*; do
4372 test -f "$ac_file" || continue
4373 case $ac_file in
4374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4376 break;;
4377 * ) break;;
4378 esac
4379 done
4380 else case e in #(
4381 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4382 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4384 See 'config.log' for more details" "$LINENO" 5; } ;;
4385 esac
4386 fi
4387 rm -f conftest conftest$ac_cv_exeext
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4389 printf "%s\n" "$ac_cv_exeext" >&6; }
4390
4391 rm -f conftest.$ac_ext
4392 EXEEXT=$ac_cv_exeext
4393 ac_exeext=$EXEEXT
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #include <stdio.h>
4397 int
4398 main (void)
4399 {
4400 FILE *f = fopen ("conftest.out", "w");
4401 if (!f)
4402 return 1;
4403 return ferror (f) || fclose (f) != 0;
4404
4405 ;
4406 return 0;
4407 }
4408 _ACEOF
4409 ac_clean_files="$ac_clean_files conftest.out"
4410 # Check that the compiler produces executables we can run. If not, either
4411 # the compiler is broken, or we cross compile.
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4413 printf %s "checking whether we are cross compiling... " >&6; }
4414 if test "$cross_compiling" != yes; then
4415 { { ac_try="$ac_link"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 printf "%s\n" "$ac_try_echo"; } >&5
4422 (eval "$ac_link") 2>&5
4423 ac_status=$?
4424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4426 if { ac_try='./conftest$ac_cv_exeext'
4427 { { case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 printf "%s\n" "$ac_try_echo"; } >&5
4433 (eval "$ac_try") 2>&5
4434 ac_status=$?
4435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; }; then
4437 cross_compiling=no
4438 else
4439 if test "$cross_compiling" = maybe; then
4440 cross_compiling=yes
4441 else
4442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4443 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4444 as_fn_error 77 "cannot run C compiled programs.
4445 If you meant to cross compile, use '--host'.
4446 See 'config.log' for more details" "$LINENO" 5; }
4447 fi
4448 fi
4449 fi
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451 printf "%s\n" "$cross_compiling" >&6; }
4452
4453 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4454 conftest.o conftest.obj conftest.out
4455 ac_clean_files=$ac_clean_files_save
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4457 printf %s "checking for suffix of object files... " >&6; }
4458 if test ${ac_cv_objext+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else case e in #(
4462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464
4465 int
4466 main (void)
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.o conftest.obj
4474 if { { ac_try="$ac_compile"
4475 case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 printf "%s\n" "$ac_try_echo"; } >&5
4481 (eval "$ac_compile") 2>&5
4482 ac_status=$?
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; }
4485 then :
4486 for ac_file in conftest.o conftest.obj conftest.*; do
4487 test -f "$ac_file" || continue;
4488 case $ac_file in
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4491 break;;
4492 esac
4493 done
4494 else case e in #(
4495 e) printf "%s\n" "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4499 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4500 as_fn_error $? "cannot compute suffix of object files: cannot compile
4501 See 'config.log' for more details" "$LINENO" 5; } ;;
4502 esac
4503 fi
4504 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4505 esac
4506 fi
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4508 printf "%s\n" "$ac_cv_objext" >&6; }
4509 OBJEXT=$ac_cv_objext
4510 ac_objext=$OBJEXT
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4512 printf %s "checking whether the compiler supports GNU C... " >&6; }
4513 if test ${ac_cv_c_compiler_gnu+y}
4514 then :
4515 printf %s "(cached) " >&6
4516 else case e in #(
4517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519
4520 int
4521 main (void)
4522 {
4523 #ifndef __GNUC__
4524 choke me
4525 #endif
4526
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 if ac_fn_c_try_compile "$LINENO"
4532 then :
4533 ac_compiler_gnu=yes
4534 else case e in #(
4535 e) ac_compiler_gnu=no ;;
4536 esac
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4540 ;;
4541 esac
4542 fi
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4544 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
4547 if test $ac_compiler_gnu = yes; then
4548 GCC=yes
4549 else
4550 GCC=
4551 fi
4552 ac_test_CFLAGS=${CFLAGS+y}
4553 ac_save_CFLAGS=$CFLAGS
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4555 printf %s "checking whether $CC accepts -g... " >&6; }
4556 if test ${ac_cv_prog_cc_g+y}
4557 then :
4558 printf %s "(cached) " >&6
4559 else case e in #(
4560 e) ac_save_c_werror_flag=$ac_c_werror_flag
4561 ac_c_werror_flag=yes
4562 ac_cv_prog_cc_g=no
4563 CFLAGS="-g"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main (void)
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"
4576 then :
4577 ac_cv_prog_cc_g=yes
4578 else case e in #(
4579 e) CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main (void)
4585 {
4586
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"
4592 then :
4593
4594 else case e in #(
4595 e) ac_c_werror_flag=$ac_save_c_werror_flag
4596 CFLAGS="-g"
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599
4600 int
4601 main (void)
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"
4609 then :
4610 ac_cv_prog_cc_g=yes
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4613 esac
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4616 esac
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4620 esac
4621 fi
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4623 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4624 if test $ac_test_CFLAGS; then
4625 CFLAGS=$ac_save_CFLAGS
4626 elif test $ac_cv_prog_cc_g = yes; then
4627 if test "$GCC" = yes; then
4628 CFLAGS="-g -O2"
4629 else
4630 CFLAGS="-g"
4631 fi
4632 else
4633 if test "$GCC" = yes; then
4634 CFLAGS="-O2"
4635 else
4636 CFLAGS=
4637 fi
4638 fi
4639 ac_prog_cc_stdc=no
4640 if test x$ac_prog_cc_stdc = xno
4641 then :
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4643 printf %s "checking for $CC option to enable C11 features... " >&6; }
4644 if test ${ac_cv_prog_cc_c11+y}
4645 then :
4646 printf %s "(cached) " >&6
4647 else case e in #(
4648 e) ac_cv_prog_cc_c11=no
4649 ac_save_CC=$CC
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 $ac_c_conftest_c11_program
4653 _ACEOF
4654 for ac_arg in '' -std=gnu11
4655 do
4656 CC="$ac_save_CC $ac_arg"
4657 if ac_fn_c_try_compile "$LINENO"
4658 then :
4659 ac_cv_prog_cc_c11=$ac_arg
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.beam
4662 test "x$ac_cv_prog_cc_c11" != "xno" && break
4663 done
4664 rm -f conftest.$ac_ext
4665 CC=$ac_save_CC ;;
4666 esac
4667 fi
4668
4669 if test "x$ac_cv_prog_cc_c11" = xno
4670 then :
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4672 printf "%s\n" "unsupported" >&6; }
4673 else case e in #(
4674 e) if test "x$ac_cv_prog_cc_c11" = x
4675 then :
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4677 printf "%s\n" "none needed" >&6; }
4678 else case e in #(
4679 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4680 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4681 CC="$CC $ac_cv_prog_cc_c11" ;;
4682 esac
4683 fi
4684 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4685 ac_prog_cc_stdc=c11 ;;
4686 esac
4687 fi
4688 fi
4689 if test x$ac_prog_cc_stdc = xno
4690 then :
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4692 printf %s "checking for $CC option to enable C99 features... " >&6; }
4693 if test ${ac_cv_prog_cc_c99+y}
4694 then :
4695 printf %s "(cached) " >&6
4696 else case e in #(
4697 e) ac_cv_prog_cc_c99=no
4698 ac_save_CC=$CC
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 $ac_c_conftest_c99_program
4702 _ACEOF
4703 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4704 do
4705 CC="$ac_save_CC $ac_arg"
4706 if ac_fn_c_try_compile "$LINENO"
4707 then :
4708 ac_cv_prog_cc_c99=$ac_arg
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.beam
4711 test "x$ac_cv_prog_cc_c99" != "xno" && break
4712 done
4713 rm -f conftest.$ac_ext
4714 CC=$ac_save_CC ;;
4715 esac
4716 fi
4717
4718 if test "x$ac_cv_prog_cc_c99" = xno
4719 then :
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4721 printf "%s\n" "unsupported" >&6; }
4722 else case e in #(
4723 e) if test "x$ac_cv_prog_cc_c99" = x
4724 then :
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4726 printf "%s\n" "none needed" >&6; }
4727 else case e in #(
4728 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4729 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4730 CC="$CC $ac_cv_prog_cc_c99" ;;
4731 esac
4732 fi
4733 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4734 ac_prog_cc_stdc=c99 ;;
4735 esac
4736 fi
4737 fi
4738 if test x$ac_prog_cc_stdc = xno
4739 then :
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4741 printf %s "checking for $CC option to enable C89 features... " >&6; }
4742 if test ${ac_cv_prog_cc_c89+y}
4743 then :
4744 printf %s "(cached) " >&6
4745 else case e in #(
4746 e) ac_cv_prog_cc_c89=no
4747 ac_save_CC=$CC
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 $ac_c_conftest_c89_program
4751 _ACEOF
4752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4753 do
4754 CC="$ac_save_CC $ac_arg"
4755 if ac_fn_c_try_compile "$LINENO"
4756 then :
4757 ac_cv_prog_cc_c89=$ac_arg
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.beam
4760 test "x$ac_cv_prog_cc_c89" != "xno" && break
4761 done
4762 rm -f conftest.$ac_ext
4763 CC=$ac_save_CC ;;
4764 esac
4765 fi
4766
4767 if test "x$ac_cv_prog_cc_c89" = xno
4768 then :
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 printf "%s\n" "unsupported" >&6; }
4771 else case e in #(
4772 e) if test "x$ac_cv_prog_cc_c89" = x
4773 then :
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775 printf "%s\n" "none needed" >&6; }
4776 else case e in #(
4777 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4778 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4779 CC="$CC $ac_cv_prog_cc_c89" ;;
4780 esac
4781 fi
4782 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4783 ac_prog_cc_stdc=c89 ;;
4784 esac
4785 fi
4786 fi
4787
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795 ac_ext=c
4796 ac_cpp='$CPP $CPPFLAGS'
4797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4801 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4802 if test ${am_cv_prog_cc_c_o+y}
4803 then :
4804 printf %s "(cached) " >&6
4805 else case e in #(
4806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 int
4810 main (void)
4811 {
4812
4813 ;
4814 return 0;
4815 }
4816 _ACEOF
4817 # Make sure it works both with $CC and with simple cc.
4818 # Following AC_PROG_CC_C_O, we do the test twice because some
4819 # compilers refuse to overwrite an existing .o file with -o,
4820 # though they will create one.
4821 am_cv_prog_cc_c_o=yes
4822 for am_i in 1 2; do
4823 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4824 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } \
4828 && test -f conftest2.$ac_objext; then
4829 : OK
4830 else
4831 am_cv_prog_cc_c_o=no
4832 break
4833 fi
4834 done
4835 rm -f core conftest*
4836 unset am_i ;;
4837 esac
4838 fi
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4840 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4841 if test "$am_cv_prog_cc_c_o" != yes; then
4842 # Losing compiler, so override with the script.
4843 # FIXME: It is wrong to rewrite CC.
4844 # But if we don't then we get into trouble of one sort or another.
4845 # A longer-term fix would be to have automake use am__CC in this case,
4846 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4847 CC="$am_aux_dir/compile $CC"
4848 fi
4849 ac_ext=c
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855
4856 depcc="$CC" am_compiler_list=
4857
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4859 printf %s "checking dependency style of $depcc... " >&6; }
4860 if test ${am_cv_CC_dependencies_compiler_type+y}
4861 then :
4862 printf %s "(cached) " >&6
4863 else case e in #(
4864 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4865 # We make a subdir and do the tests there. Otherwise we can end up
4866 # making bogus files that we don't know about and never remove. For
4867 # instance it was reported that on HP-UX the gcc test will end up
4868 # making a dummy file named 'D' -- because '-MD' means "put the output
4869 # in D".
4870 rm -rf conftest.dir
4871 mkdir conftest.dir
4872 # Copy depcomp to subdir because otherwise we won't find it if we're
4873 # using a relative directory.
4874 cp "$am_depcomp" conftest.dir
4875 cd conftest.dir
4876 # We will build objects and dependencies in a subdirectory because
4877 # it helps to detect inapplicable dependency modes. For instance
4878 # both Tru64's cc and ICC support -MD to output dependencies as a
4879 # side effect of compilation, but ICC will put the dependencies in
4880 # the current directory while Tru64 will put them in the object
4881 # directory.
4882 mkdir sub
4883
4884 am_cv_CC_dependencies_compiler_type=none
4885 if test "$am_compiler_list" = ""; then
4886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4887 fi
4888 am__universal=false
4889 case " $depcc " in #(
4890 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4891 esac
4892
4893 for depmode in $am_compiler_list; do
4894 # Setup a source with many dependencies, because some compilers
4895 # like to wrap large dependency lists on column 80 (with \), and
4896 # we should not choose a depcomp mode which is confused by this.
4897 #
4898 # We need to recreate these files for each test, as the compiler may
4899 # overwrite some of them when testing with obscure command lines.
4900 # This happens at least with the AIX C compiler.
4901 : > sub/conftest.c
4902 for i in 1 2 3 4 5 6; do
4903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4904 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4905 # Solaris 10 /bin/sh.
4906 echo '/* dummy */' > sub/conftst$i.h
4907 done
4908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4909
4910 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4911 # mode. It turns out that the SunPro C++ compiler does not properly
4912 # handle '-M -o', and we need to detect this. Also, some Intel
4913 # versions had trouble with output in subdirs.
4914 am__obj=sub/conftest.${OBJEXT-o}
4915 am__minus_obj="-o $am__obj"
4916 case $depmode in
4917 gcc)
4918 # This depmode causes a compiler race in universal mode.
4919 test "$am__universal" = false || continue
4920 ;;
4921 nosideeffect)
4922 # After this tag, mechanisms are not by side-effect, so they'll
4923 # only be used when explicitly requested.
4924 if test "x$enable_dependency_tracking" = xyes; then
4925 continue
4926 else
4927 break
4928 fi
4929 ;;
4930 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4931 # This compiler won't grok '-c -o', but also, the minuso test has
4932 # not run yet. These depmodes are late enough in the game, and
4933 # so weak that their functioning should not be impacted.
4934 am__obj=conftest.${OBJEXT-o}
4935 am__minus_obj=
4936 ;;
4937 none) break ;;
4938 esac
4939 if depmode=$depmode \
4940 source=sub/conftest.c object=$am__obj \
4941 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4942 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4943 >/dev/null 2>conftest.err &&
4944 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4945 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4946 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4947 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4948 # icc doesn't choke on unknown options, it will just issue warnings
4949 # or remarks (even with -Werror). So we grep stderr for any message
4950 # that says an option was ignored or not supported.
4951 # When given -MP, icc 7.0 and 7.1 complain thus:
4952 # icc: Command line warning: ignoring option '-M'; no argument required
4953 # The diagnosis changed in icc 8.0:
4954 # icc: Command line remark: option '-MP' not supported
4955 if (grep 'ignoring option' conftest.err ||
4956 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4957 am_cv_CC_dependencies_compiler_type=$depmode
4958 break
4959 fi
4960 fi
4961 done
4962
4963 cd ..
4964 rm -rf conftest.dir
4965 else
4966 am_cv_CC_dependencies_compiler_type=none
4967 fi
4968 ;;
4969 esac
4970 fi
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4972 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4974
4975 if
4976 test "x$enable_dependency_tracking" != xno \
4977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4978 am__fastdepCC_TRUE=
4979 am__fastdepCC_FALSE='#'
4980 else
4981 am__fastdepCC_TRUE='#'
4982 am__fastdepCC_FALSE=
4983 fi
4984
4985
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4987 printf %s "checking for a sed that does not truncate output... " >&6; }
4988 if test ${ac_cv_path_SED+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else case e in #(
4992 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993 for ac_i in 1 2 3 4 5 6 7; do
4994 ac_script="$ac_script$as_nl$ac_script"
4995 done
4996 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997 { ac_script=; unset ac_script;}
4998 if test -z "$SED"; then
4999 ac_path_SED_found=false
5000 # Loop through the user's path and test for each of PROGNAME-LIST
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 case $as_dir in #(((
5006 '') as_dir=./ ;;
5007 */) ;;
5008 *) as_dir=$as_dir/ ;;
5009 esac
5010 for ac_prog in sed gsed
5011 do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5014 as_fn_executable_p "$ac_path_SED" || continue
5015 # Check for GNU ac_path_SED and select it if it is found.
5016 # Check for GNU $ac_path_SED
5017 case `"$ac_path_SED" --version 2>&1` in #(
5018 *GNU*)
5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020 #(
5021 *)
5022 ac_count=0
5023 printf %s 0123456789 >"conftest.in"
5024 while :
5025 do
5026 cat "conftest.in" "conftest.in" >"conftest.tmp"
5027 mv "conftest.tmp" "conftest.in"
5028 cp "conftest.in" "conftest.nl"
5029 printf "%s\n" '' >> "conftest.nl"
5030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5032 as_fn_arith $ac_count + 1 && ac_count=$as_val
5033 if test $ac_count -gt ${ac_path_SED_max-0}; then
5034 # Best one so far, save it but keep looking for a better one
5035 ac_cv_path_SED="$ac_path_SED"
5036 ac_path_SED_max=$ac_count
5037 fi
5038 # 10*(2^10) chars as input seems more than enough
5039 test $ac_count -gt 10 && break
5040 done
5041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042 esac
5043
5044 $ac_path_SED_found && break 3
5045 done
5046 done
5047 done
5048 IFS=$as_save_IFS
5049 if test -z "$ac_cv_path_SED"; then
5050 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5051 fi
5052 else
5053 ac_cv_path_SED=$SED
5054 fi
5055 ;;
5056 esac
5057 fi
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059 printf "%s\n" "$ac_cv_path_SED" >&6; }
5060 SED="$ac_cv_path_SED"
5061 rm -f conftest.sed
5062
5063 test -z "$SED" && SED=sed
5064 Xsed="$SED -e 1s/^X//"
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5077 printf %s "checking for grep that handles long lines and -e... " >&6; }
5078 if test ${ac_cv_path_GREP+y}
5079 then :
5080 printf %s "(cached) " >&6
5081 else case e in #(
5082 e) if test -z "$GREP"; then
5083 ac_path_GREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088 IFS=$as_save_IFS
5089 case $as_dir in #(((
5090 '') as_dir=./ ;;
5091 */) ;;
5092 *) as_dir=$as_dir/ ;;
5093 esac
5094 for ac_prog in grep ggrep
5095 do
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5098 as_fn_executable_p "$ac_path_GREP" || continue
5099 # Check for GNU ac_path_GREP and select it if it is found.
5100 # Check for GNU $ac_path_GREP
5101 case `"$ac_path_GREP" --version 2>&1` in #(
5102 *GNU*)
5103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5104 #(
5105 *)
5106 ac_count=0
5107 printf %s 0123456789 >"conftest.in"
5108 while :
5109 do
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 printf "%s\n" 'GREP' >> "conftest.nl"
5114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_GREP="$ac_path_GREP"
5120 ac_path_GREP_max=$ac_count
5121 fi
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5127
5128 $ac_path_GREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_GREP"; then
5134 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135 fi
5136 else
5137 ac_cv_path_GREP=$GREP
5138 fi
5139 ;;
5140 esac
5141 fi
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5143 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5144 GREP="$ac_cv_path_GREP"
5145
5146
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5148 printf %s "checking for egrep... " >&6; }
5149 if test ${ac_cv_path_EGREP+y}
5150 then :
5151 printf %s "(cached) " >&6
5152 else case e in #(
5153 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5154 then ac_cv_path_EGREP="$GREP -E"
5155 else
5156 if test -z "$EGREP"; then
5157 ac_path_EGREP_found=false
5158 # Loop through the user's path and test for each of PROGNAME-LIST
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 do
5162 IFS=$as_save_IFS
5163 case $as_dir in #(((
5164 '') as_dir=./ ;;
5165 */) ;;
5166 *) as_dir=$as_dir/ ;;
5167 esac
5168 for ac_prog in egrep
5169 do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5172 as_fn_executable_p "$ac_path_EGREP" || continue
5173 # Check for GNU ac_path_EGREP and select it if it is found.
5174 # Check for GNU $ac_path_EGREP
5175 case `"$ac_path_EGREP" --version 2>&1` in #(
5176 *GNU*)
5177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5178 #(
5179 *)
5180 ac_count=0
5181 printf %s 0123456789 >"conftest.in"
5182 while :
5183 do
5184 cat "conftest.in" "conftest.in" >"conftest.tmp"
5185 mv "conftest.tmp" "conftest.in"
5186 cp "conftest.in" "conftest.nl"
5187 printf "%s\n" 'EGREP' >> "conftest.nl"
5188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5190 as_fn_arith $ac_count + 1 && ac_count=$as_val
5191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5192 # Best one so far, save it but keep looking for a better one
5193 ac_cv_path_EGREP="$ac_path_EGREP"
5194 ac_path_EGREP_max=$ac_count
5195 fi
5196 # 10*(2^10) chars as input seems more than enough
5197 test $ac_count -gt 10 && break
5198 done
5199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200 esac
5201
5202 $ac_path_EGREP_found && break 3
5203 done
5204 done
5205 done
5206 IFS=$as_save_IFS
5207 if test -z "$ac_cv_path_EGREP"; then
5208 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5209 fi
5210 else
5211 ac_cv_path_EGREP=$EGREP
5212 fi
5213
5214 fi ;;
5215 esac
5216 fi
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5218 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5219 EGREP="$ac_cv_path_EGREP"
5220
5221 EGREP_TRADITIONAL=$EGREP
5222 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5223
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5225 printf %s "checking for fgrep... " >&6; }
5226 if test ${ac_cv_path_FGREP+y}
5227 then :
5228 printf %s "(cached) " >&6
5229 else case e in #(
5230 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5231 then ac_cv_path_FGREP="$GREP -F"
5232 else
5233 if test -z "$FGREP"; then
5234 ac_path_FGREP_found=false
5235 # Loop through the user's path and test for each of PROGNAME-LIST
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5238 do
5239 IFS=$as_save_IFS
5240 case $as_dir in #(((
5241 '') as_dir=./ ;;
5242 */) ;;
5243 *) as_dir=$as_dir/ ;;
5244 esac
5245 for ac_prog in fgrep
5246 do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5249 as_fn_executable_p "$ac_path_FGREP" || continue
5250 # Check for GNU ac_path_FGREP and select it if it is found.
5251 # Check for GNU $ac_path_FGREP
5252 case `"$ac_path_FGREP" --version 2>&1` in #(
5253 *GNU*)
5254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5255 #(
5256 *)
5257 ac_count=0
5258 printf %s 0123456789 >"conftest.in"
5259 while :
5260 do
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 printf "%s\n" 'FGREP' >> "conftest.nl"
5265 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_FGREP="$ac_path_FGREP"
5271 ac_path_FGREP_max=$ac_count
5272 fi
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5278
5279 $ac_path_FGREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_FGREP"; then
5285 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5286 fi
5287 else
5288 ac_cv_path_FGREP=$FGREP
5289 fi
5290
5291 fi ;;
5292 esac
5293 fi
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5295 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5296 FGREP="$ac_cv_path_FGREP"
5297
5298
5299 test -z "$GREP" && GREP=grep
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 # Check whether --with-gnu-ld was given.
5320 if test ${with_gnu_ld+y}
5321 then :
5322 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5323 else case e in #(
5324 e) with_gnu_ld=no ;;
5325 esac
5326 fi
5327
5328 ac_prog=ld
5329 if test yes = "$GCC"; then
5330 # Check if gcc -print-prog-name=ld gives a path.
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5332 printf %s "checking for ld used by $CC... " >&6; }
5333 case $host in
5334 *-*-mingw* | *-*-windows*)
5335 # gcc leaves a trailing carriage return, which upsets mingw
5336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5337 *)
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5339 esac
5340 case $ac_prog in
5341 # Accept absolute paths.
5342 [\\/]* | ?:[\\/]*)
5343 re_direlt='/[^/][^/]*/\.\./'
5344 # Canonicalize the pathname of ld
5345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5347 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5348 done
5349 test -z "$LD" && LD=$ac_prog
5350 ;;
5351 "")
5352 # If it fails, then pretend we aren't using GCC.
5353 ac_prog=ld
5354 ;;
5355 *)
5356 # If it is relative, then search for the first ld in PATH.
5357 with_gnu_ld=unknown
5358 ;;
5359 esac
5360 elif test yes = "$with_gnu_ld"; then
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5362 printf %s "checking for GNU ld... " >&6; }
5363 else
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5365 printf %s "checking for non-GNU ld... " >&6; }
5366 fi
5367 if test ${lt_cv_path_LD+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else case e in #(
5371 e) if test -z "$LD"; then
5372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5373 for ac_dir in $PATH; do
5374 IFS=$lt_save_ifs
5375 test -z "$ac_dir" && ac_dir=.
5376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5377 lt_cv_path_LD=$ac_dir/$ac_prog
5378 # Check to see if the program is GNU ld. I'd rather use --version,
5379 # but apparently some variants of GNU ld only accept -v.
5380 # Break only if it was the GNU/non-GNU ld that we prefer.
5381 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5382 *GNU* | *'with BFD'*)
5383 test no != "$with_gnu_ld" && break
5384 ;;
5385 *)
5386 test yes != "$with_gnu_ld" && break
5387 ;;
5388 esac
5389 fi
5390 done
5391 IFS=$lt_save_ifs
5392 else
5393 lt_cv_path_LD=$LD # Let the user override the test with a path.
5394 fi ;;
5395 esac
5396 fi
5397
5398 LD=$lt_cv_path_LD
5399 if test -n "$LD"; then
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5401 printf "%s\n" "$LD" >&6; }
5402 else
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 printf "%s\n" "no" >&6; }
5405 fi
5406 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5408 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5409 if test ${lt_cv_prog_gnu_ld+y}
5410 then :
5411 printf %s "(cached) " >&6
5412 else case e in #(
5413 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5414 case `$LD -v 2>&1 </dev/null` in
5415 *GNU* | *'with BFD'*)
5416 lt_cv_prog_gnu_ld=yes
5417 ;;
5418 *)
5419 lt_cv_prog_gnu_ld=no
5420 ;;
5421 esac ;;
5422 esac
5423 fi
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5425 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5426 with_gnu_ld=$lt_cv_prog_gnu_ld
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5437 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5438 if test ${lt_cv_path_NM+y}
5439 then :
5440 printf %s "(cached) " >&6
5441 else case e in #(
5442 e) if test -n "$NM"; then
5443 # Let the user override the test.
5444 lt_cv_path_NM=$NM
5445 else
5446 lt_nm_to_check=${ac_tool_prefix}nm
5447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5448 lt_nm_to_check="$lt_nm_to_check nm"
5449 fi
5450 for lt_tmp_nm in $lt_nm_to_check; do
5451 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5453 IFS=$lt_save_ifs
5454 test -z "$ac_dir" && ac_dir=.
5455 tmp_nm=$ac_dir/$lt_tmp_nm
5456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5457 # Check to see if the nm accepts a BSD-compat flag.
5458 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5459 # nm: unknown option "B" ignored
5460 # Tru64's nm complains that /dev/null is an invalid object file
5461 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5462 case $build_os in
5463 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5464 *) lt_bad_file=/dev/null ;;
5465 esac
5466 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5467 *$lt_bad_file* | *'Invalid file or object type'*)
5468 lt_cv_path_NM="$tmp_nm -B"
5469 break 2
5470 ;;
5471 *)
5472 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5473 */dev/null*)
5474 lt_cv_path_NM="$tmp_nm -p"
5475 break 2
5476 ;;
5477 *)
5478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5479 continue # so that we can try to find one that supports BSD flags
5480 ;;
5481 esac
5482 ;;
5483 esac
5484 fi
5485 done
5486 IFS=$lt_save_ifs
5487 done
5488 : ${lt_cv_path_NM=no}
5489 fi ;;
5490 esac
5491 fi
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5493 printf "%s\n" "$lt_cv_path_NM" >&6; }
5494 if test no != "$lt_cv_path_NM"; then
5495 NM=$lt_cv_path_NM
5496 else
5497 # Didn't find any BSD compatible name lister, look for dumpbin.
5498 if test -n "$DUMPBIN"; then :
5499 # Let the user override the test.
5500 else
5501 if test -n "$ac_tool_prefix"; then
5502 for ac_prog in dumpbin "link -dump"
5503 do
5504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 printf %s "checking for $ac_word... " >&6; }
5508 if test ${ac_cv_prog_DUMPBIN+y}
5509 then :
5510 printf %s "(cached) " >&6
5511 else case e in #(
5512 e) if test -n "$DUMPBIN"; then
5513 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 case $as_dir in #(((
5520 '') as_dir=./ ;;
5521 */) ;;
5522 *) as_dir=$as_dir/ ;;
5523 esac
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi ;;
5535 esac
5536 fi
5537 DUMPBIN=$ac_cv_prog_DUMPBIN
5538 if test -n "$DUMPBIN"; then
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5540 printf "%s\n" "$DUMPBIN" >&6; }
5541 else
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 printf "%s\n" "no" >&6; }
5544 fi
5545
5546
5547 test -n "$DUMPBIN" && break
5548 done
5549 fi
5550 if test -z "$DUMPBIN"; then
5551 ac_ct_DUMPBIN=$DUMPBIN
5552 for ac_prog in dumpbin "link -dump"
5553 do
5554 # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 printf %s "checking for $ac_word... " >&6; }
5558 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5559 then :
5560 printf %s "(cached) " >&6
5561 else case e in #(
5562 e) if test -n "$ac_ct_DUMPBIN"; then
5563 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 case $as_dir in #(((
5570 '') as_dir=./ ;;
5571 */) ;;
5572 *) as_dir=$as_dir/ ;;
5573 esac
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi ;;
5585 esac
5586 fi
5587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5588 if test -n "$ac_ct_DUMPBIN"; then
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5590 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5591 else
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 printf "%s\n" "no" >&6; }
5594 fi
5595
5596
5597 test -n "$ac_ct_DUMPBIN" && break
5598 done
5599
5600 if test "x$ac_ct_DUMPBIN" = x; then
5601 DUMPBIN=":"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609 DUMPBIN=$ac_ct_DUMPBIN
5610 fi
5611 fi
5612
5613 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5614 *COFF*)
5615 DUMPBIN="$DUMPBIN -symbols -headers"
5616 ;;
5617 *)
5618 DUMPBIN=:
5619 ;;
5620 esac
5621 fi
5622
5623 if test : != "$DUMPBIN"; then
5624 NM=$DUMPBIN
5625 fi
5626 fi
5627 test -z "$NM" && NM=nm
5628
5629
5630
5631
5632
5633
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5635 printf %s "checking the name lister ($NM) interface... " >&6; }
5636 if test ${lt_cv_nm_interface+y}
5637 then :
5638 printf %s "(cached) " >&6
5639 else case e in #(
5640 e) lt_cv_nm_interface="BSD nm"
5641 echo "int some_variable = 0;" > conftest.$ac_ext
5642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5643 (eval "$ac_compile" 2>conftest.err)
5644 cat conftest.err >&5
5645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5647 cat conftest.err >&5
5648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5649 cat conftest.out >&5
5650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5651 lt_cv_nm_interface="MS dumpbin"
5652 fi
5653 rm -f conftest* ;;
5654 esac
5655 fi
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5657 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5658
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5660 printf %s "checking whether ln -s works... " >&6; }
5661 LN_S=$as_ln_s
5662 if test "$LN_S" = "ln -s"; then
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664 printf "%s\n" "yes" >&6; }
5665 else
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5667 printf "%s\n" "no, using $LN_S" >&6; }
5668 fi
5669
5670 # find the maximum length of command line arguments
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5672 printf %s "checking the maximum length of command line arguments... " >&6; }
5673 if test ${lt_cv_sys_max_cmd_len+y}
5674 then :
5675 printf %s "(cached) " >&6
5676 else case e in #(
5677 e) i=0
5678 teststring=ABCD
5679
5680 case $build_os in
5681 msdosdjgpp*)
5682 # On DJGPP, this test can blow up pretty badly due to problems in libc
5683 # (any single argument exceeding 2000 bytes causes a buffer overrun
5684 # during glob expansion). Even if it were fixed, the result of this
5685 # check would be larger than it should be.
5686 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5687 ;;
5688
5689 gnu* | ironclad*)
5690 # Under GNU Hurd and Ironclad, this test is not required because there
5691 # is no limit to the length of command line arguments.
5692 # Libtool will interpret -1 as no limit whatsoever
5693 lt_cv_sys_max_cmd_len=-1;
5694 ;;
5695
5696 cygwin* | mingw* | windows* | cegcc*)
5697 # On Win9x/ME, this test blows up -- it succeeds, but takes
5698 # about 5 minutes as the teststring grows exponentially.
5699 # Worse, since 9x/ME are not pre-emptively multitasking,
5700 # you end up with a "frozen" computer, even though with patience
5701 # the test eventually succeeds (with a max line length of 256k).
5702 # Instead, let's just punt: use the minimum linelength reported by
5703 # all of the supported platforms: 8192 (on NT/2K/XP).
5704 lt_cv_sys_max_cmd_len=8192;
5705 ;;
5706
5707 mint*)
5708 # On MiNT this can take a long time and run out of memory.
5709 lt_cv_sys_max_cmd_len=8192;
5710 ;;
5711
5712 amigaos*)
5713 # On AmigaOS with pdksh, this test takes hours, literally.
5714 # So we just punt and use a minimum line length of 8192.
5715 lt_cv_sys_max_cmd_len=8192;
5716 ;;
5717
5718 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5719 # This has been around since 386BSD, at least. Likely further.
5720 if test -x /sbin/sysctl; then
5721 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5722 elif test -x /usr/sbin/sysctl; then
5723 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5724 else
5725 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5726 fi
5727 # And add a safety zone
5728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5730 ;;
5731
5732 interix*)
5733 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5734 lt_cv_sys_max_cmd_len=196608
5735 ;;
5736
5737 os2*)
5738 # The test takes a long time on OS/2.
5739 lt_cv_sys_max_cmd_len=8192
5740 ;;
5741
5742 osf*)
5743 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5744 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5745 # nice to cause kernel panics so lets avoid the loop below.
5746 # First set a reasonable default.
5747 lt_cv_sys_max_cmd_len=16384
5748 #
5749 if test -x /sbin/sysconfig; then
5750 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5751 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5752 esac
5753 fi
5754 ;;
5755 sco3.2v5*)
5756 lt_cv_sys_max_cmd_len=102400
5757 ;;
5758 sysv5* | sco5v6* | sysv4.2uw2*)
5759 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5760 if test -n "$kargmax"; then
5761 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5762 else
5763 lt_cv_sys_max_cmd_len=32768
5764 fi
5765 ;;
5766 *)
5767 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5768 if test -n "$lt_cv_sys_max_cmd_len" && \
5769 test undefined != "$lt_cv_sys_max_cmd_len"; then
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5772 else
5773 # Make teststring a little bigger before we do anything with it.
5774 # a 1K string should be a reasonable start.
5775 for i in 1 2 3 4 5 6 7 8; do
5776 teststring=$teststring$teststring
5777 done
5778 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5779 # If test is not a shell built-in, we'll probably end up computing a
5780 # maximum length that is only half of the actual maximum length, but
5781 # we can't tell.
5782 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5783 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5784 test 17 != "$i" # 1/2 MB should be enough
5785 do
5786 i=`expr $i + 1`
5787 teststring=$teststring$teststring
5788 done
5789 # Only check the string length outside the loop.
5790 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5791 teststring=
5792 # Add a significant safety factor because C++ compilers can tack on
5793 # massive amounts of additional arguments before passing them to the
5794 # linker. It appears as though 1/2 is a usable value.
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5796 fi
5797 ;;
5798 esac
5799 ;;
5800 esac
5801 fi
5802
5803 if test -n "$lt_cv_sys_max_cmd_len"; then
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5805 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5806 else
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5808 printf "%s\n" "none" >&6; }
5809 fi
5810 max_cmd_len=$lt_cv_sys_max_cmd_len
5811
5812
5813
5814
5815
5816
5817 : ${CP="cp -f"}
5818 : ${MV="mv -f"}
5819 : ${RM="rm -f"}
5820
5821 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5822 lt_unset=unset
5823 else
5824 lt_unset=false
5825 fi
5826
5827
5828
5829
5830
5831 # test EBCDIC or ASCII
5832 case `echo X|tr X '\101'` in
5833 A) # ASCII based system
5834 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5835 lt_SP2NL='tr \040 \012'
5836 lt_NL2SP='tr \015\012 \040\040'
5837 ;;
5838 *) # EBCDIC based system
5839 lt_SP2NL='tr \100 \n'
5840 lt_NL2SP='tr \r\n \100\100'
5841 ;;
5842 esac
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5853 printf %s "checking how to convert $build file names to $host format... " >&6; }
5854 if test ${lt_cv_to_host_file_cmd+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else case e in #(
5858 e) case $host in
5859 *-*-mingw* )
5860 case $build in
5861 *-*-mingw* | *-*-windows* ) # actually msys
5862 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5863 ;;
5864 *-*-cygwin* )
5865 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5866 ;;
5867 * ) # otherwise, assume *nix
5868 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5869 ;;
5870 esac
5871 ;;
5872 *-*-cygwin* )
5873 case $build in
5874 *-*-mingw* | *-*-windows* ) # actually msys
5875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5876 ;;
5877 *-*-cygwin* )
5878 lt_cv_to_host_file_cmd=func_convert_file_noop
5879 ;;
5880 * ) # otherwise, assume *nix
5881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5882 ;;
5883 esac
5884 ;;
5885 * ) # unhandled hosts (and "normal" native builds)
5886 lt_cv_to_host_file_cmd=func_convert_file_noop
5887 ;;
5888 esac
5889 ;;
5890 esac
5891 fi
5892
5893 to_host_file_cmd=$lt_cv_to_host_file_cmd
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5895 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5896
5897
5898
5899
5900
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5902 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5903 if test ${lt_cv_to_tool_file_cmd+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else case e in #(
5907 e) #assume ordinary cross tools, or native build.
5908 lt_cv_to_tool_file_cmd=func_convert_file_noop
5909 case $host in
5910 *-*-mingw* | *-*-windows* )
5911 case $build in
5912 *-*-mingw* | *-*-windows* ) # actually msys
5913 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5914 ;;
5915 esac
5916 ;;
5917 esac
5918 ;;
5919 esac
5920 fi
5921
5922 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5924 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5925
5926
5927
5928
5929
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5931 printf %s "checking for $LD option to reload object files... " >&6; }
5932 if test ${lt_cv_ld_reload_flag+y}
5933 then :
5934 printf %s "(cached) " >&6
5935 else case e in #(
5936 e) lt_cv_ld_reload_flag='-r' ;;
5937 esac
5938 fi
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5940 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5941 reload_flag=$lt_cv_ld_reload_flag
5942 case $reload_flag in
5943 "" | " "*) ;;
5944 *) reload_flag=" $reload_flag" ;;
5945 esac
5946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5947 case $host_os in
5948 cygwin* | mingw* | windows* | pw32* | cegcc*)
5949 if test yes != "$GCC"; then
5950 reload_cmds=false
5951 fi
5952 ;;
5953 darwin*)
5954 if test yes = "$GCC"; then
5955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5956 else
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958 fi
5959 ;;
5960 esac
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 # Extract the first word of "file", so it can be a program name with args.
5971 set dummy file; ac_word=$2
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 printf %s "checking for $ac_word... " >&6; }
5974 if test ${ac_cv_prog_FILECMD+y}
5975 then :
5976 printf %s "(cached) " >&6
5977 else case e in #(
5978 e) if test -n "$FILECMD"; then
5979 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984 IFS=$as_save_IFS
5985 case $as_dir in #(((
5986 '') as_dir=./ ;;
5987 */) ;;
5988 *) as_dir=$as_dir/ ;;
5989 esac
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_FILECMD="file"
5993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6001 fi ;;
6002 esac
6003 fi
6004 FILECMD=$ac_cv_prog_FILECMD
6005 if test -n "$FILECMD"; then
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6007 printf "%s\n" "$FILECMD" >&6; }
6008 else
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 printf "%s\n" "no" >&6; }
6011 fi
6012
6013
6014
6015
6016
6017
6018
6019
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6022 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 printf %s "checking for $ac_word... " >&6; }
6025 if test ${ac_cv_prog_OBJDUMP+y}
6026 then :
6027 printf %s "(cached) " >&6
6028 else case e in #(
6029 e) if test -n "$OBJDUMP"; then
6030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 case $as_dir in #(((
6037 '') as_dir=./ ;;
6038 */) ;;
6039 *) as_dir=$as_dir/ ;;
6040 esac
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051 fi ;;
6052 esac
6053 fi
6054 OBJDUMP=$ac_cv_prog_OBJDUMP
6055 if test -n "$OBJDUMP"; then
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6057 printf "%s\n" "$OBJDUMP" >&6; }
6058 else
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 printf "%s\n" "no" >&6; }
6061 fi
6062
6063
6064 fi
6065 if test -z "$ac_cv_prog_OBJDUMP"; then
6066 ac_ct_OBJDUMP=$OBJDUMP
6067 # Extract the first word of "objdump", so it can be a program name with args.
6068 set dummy objdump; ac_word=$2
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 printf %s "checking for $ac_word... " >&6; }
6071 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6072 then :
6073 printf %s "(cached) " >&6
6074 else case e in #(
6075 e) if test -n "$ac_ct_OBJDUMP"; then
6076 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 case $as_dir in #(((
6083 '') as_dir=./ ;;
6084 */) ;;
6085 *) as_dir=$as_dir/ ;;
6086 esac
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi ;;
6098 esac
6099 fi
6100 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6101 if test -n "$ac_ct_OBJDUMP"; then
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6103 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6104 else
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 printf "%s\n" "no" >&6; }
6107 fi
6108
6109 if test "x$ac_ct_OBJDUMP" = x; then
6110 OBJDUMP="false"
6111 else
6112 case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118 OBJDUMP=$ac_ct_OBJDUMP
6119 fi
6120 else
6121 OBJDUMP="$ac_cv_prog_OBJDUMP"
6122 fi
6123
6124 test -z "$OBJDUMP" && OBJDUMP=objdump
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6135 printf %s "checking how to recognize dependent libraries... " >&6; }
6136 if test ${lt_cv_deplibs_check_method+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else case e in #(
6140 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6141 lt_cv_file_magic_test_file=
6142 lt_cv_deplibs_check_method='unknown'
6143 # Need to set the preceding variable on all platforms that support
6144 # interlibrary dependencies.
6145 # 'none' -- dependencies not supported.
6146 # 'unknown' -- same as none, but documents that we really don't know.
6147 # 'pass_all' -- all dependencies passed with no checks.
6148 # 'file_magic [[regex]]' -- check by looking for files in library path
6149 # that responds to the $file_magic_cmd with a given extended regex.
6150 # If you have 'file' or equivalent on your system and you're not sure
6151 # whether 'pass_all' will *always* work, you probably want this one.
6152
6153 case $host_os in
6154 aix[4-9]*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 beos*)
6159 lt_cv_deplibs_check_method=pass_all
6160 ;;
6161
6162 bsdi[45]*)
6163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6164 lt_cv_file_magic_cmd='$FILECMD -L'
6165 lt_cv_file_magic_test_file=/shlib/libc.so
6166 ;;
6167
6168 cygwin*)
6169 # func_win32_libid is a shell function defined in ltmain.sh
6170 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6171 lt_cv_file_magic_cmd='func_win32_libid'
6172 ;;
6173
6174 mingw* | windows* | pw32*)
6175 # Base MSYS/MinGW do not provide the 'file' command needed by
6176 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6177 # unless we find 'file', for example because we are cross-compiling.
6178 if ( file / ) >/dev/null 2>&1; then
6179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6180 lt_cv_file_magic_cmd='func_win32_libid'
6181 else
6182 # Keep this pattern in sync with the one in func_win32_libid.
6183 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6184 lt_cv_file_magic_cmd='$OBJDUMP -f'
6185 fi
6186 ;;
6187
6188 cegcc*)
6189 # use the weaker test based on 'objdump'. See mingw*.
6190 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6191 lt_cv_file_magic_cmd='$OBJDUMP -f'
6192 ;;
6193
6194 darwin* | rhapsody*)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197
6198 freebsd* | dragonfly* | midnightbsd*)
6199 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6200 case $host_cpu in
6201 i*86 )
6202 # Not sure whether the presence of OpenBSD here was a mistake.
6203 # Let's accept both of them until this is cleared up.
6204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6205 lt_cv_file_magic_cmd=$FILECMD
6206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6207 ;;
6208 esac
6209 else
6210 lt_cv_deplibs_check_method=pass_all
6211 fi
6212 ;;
6213
6214 haiku*)
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217
6218 hpux10.20* | hpux11*)
6219 lt_cv_file_magic_cmd=$FILECMD
6220 case $host_cpu in
6221 ia64*)
6222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6223 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6224 ;;
6225 hppa*64*)
6226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6227 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6228 ;;
6229 *)
6230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6231 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6232 ;;
6233 esac
6234 ;;
6235
6236 interix[3-9]*)
6237 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6239 ;;
6240
6241 irix5* | irix6* | nonstopux*)
6242 case $LD in
6243 *-32|*"-32 ") libmagic=32-bit;;
6244 *-n32|*"-n32 ") libmagic=N32;;
6245 *-64|*"-64 ") libmagic=64-bit;;
6246 *) libmagic=never-match;;
6247 esac
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 # This must be glibc/ELF.
6252 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256 *-mlibc)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259
6260 netbsd* | netbsdelf*-gnu)
6261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6263 else
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6265 fi
6266 ;;
6267
6268 newos6*)
6269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6270 lt_cv_file_magic_cmd=$FILECMD
6271 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6272 ;;
6273
6274 *nto* | *qnx*)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277
6278 openbsd*)
6279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6281 else
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6283 fi
6284 ;;
6285
6286 osf3* | osf4* | osf5*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 rdos*)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293
6294 serenity*)
6295 lt_cv_deplibs_check_method=pass_all
6296 ;;
6297
6298 solaris*)
6299 lt_cv_deplibs_check_method=pass_all
6300 ;;
6301
6302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6303 lt_cv_deplibs_check_method=pass_all
6304 ;;
6305
6306 sysv4 | sysv4.3*)
6307 case $host_vendor in
6308 motorola)
6309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6311 ;;
6312 ncr)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315 sequent)
6316 lt_cv_file_magic_cmd='/bin/file'
6317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6318 ;;
6319 sni)
6320 lt_cv_file_magic_cmd='/bin/file'
6321 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6322 lt_cv_file_magic_test_file=/lib/libc.so
6323 ;;
6324 siemens)
6325 lt_cv_deplibs_check_method=pass_all
6326 ;;
6327 pc)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330 esac
6331 ;;
6332
6333 tpf*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336 os2*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339 esac
6340 ;;
6341 esac
6342 fi
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6344 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6345
6346 file_magic_glob=
6347 want_nocaseglob=no
6348 if test "$build" = "$host"; then
6349 case $host_os in
6350 mingw* | windows* | pw32*)
6351 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6352 want_nocaseglob=yes
6353 else
6354 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6355 fi
6356 ;;
6357 esac
6358 fi
6359
6360 file_magic_cmd=$lt_cv_file_magic_cmd
6361 deplibs_check_method=$lt_cv_deplibs_check_method
6362 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 printf %s "checking for $ac_word... " >&6; }
6390 if test ${ac_cv_prog_DLLTOOL+y}
6391 then :
6392 printf %s "(cached) " >&6
6393 else case e in #(
6394 e) if test -n "$DLLTOOL"; then
6395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400 IFS=$as_save_IFS
6401 case $as_dir in #(((
6402 '') as_dir=./ ;;
6403 */) ;;
6404 *) as_dir=$as_dir/ ;;
6405 esac
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi ;;
6417 esac
6418 fi
6419 DLLTOOL=$ac_cv_prog_DLLTOOL
6420 if test -n "$DLLTOOL"; then
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6422 printf "%s\n" "$DLLTOOL" >&6; }
6423 else
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 printf "%s\n" "no" >&6; }
6426 fi
6427
6428
6429 fi
6430 if test -z "$ac_cv_prog_DLLTOOL"; then
6431 ac_ct_DLLTOOL=$DLLTOOL
6432 # Extract the first word of "dlltool", so it can be a program name with args.
6433 set dummy dlltool; ac_word=$2
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 printf %s "checking for $ac_word... " >&6; }
6436 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6437 then :
6438 printf %s "(cached) " >&6
6439 else case e in #(
6440 e) if test -n "$ac_ct_DLLTOOL"; then
6441 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 case $as_dir in #(((
6448 '') as_dir=./ ;;
6449 */) ;;
6450 *) as_dir=$as_dir/ ;;
6451 esac
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 fi ;;
6463 esac
6464 fi
6465 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6466 if test -n "$ac_ct_DLLTOOL"; then
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6468 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6469 else
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 printf "%s\n" "no" >&6; }
6472 fi
6473
6474 if test "x$ac_ct_DLLTOOL" = x; then
6475 DLLTOOL="false"
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 DLLTOOL=$ac_ct_DLLTOOL
6484 fi
6485 else
6486 DLLTOOL="$ac_cv_prog_DLLTOOL"
6487 fi
6488
6489 test -z "$DLLTOOL" && DLLTOOL=dlltool
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6501 printf %s "checking how to associate runtime and link libraries... " >&6; }
6502 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6503 then :
6504 printf %s "(cached) " >&6
6505 else case e in #(
6506 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6507
6508 case $host_os in
6509 cygwin* | mingw* | windows* | pw32* | cegcc*)
6510 # two different shell functions defined in ltmain.sh;
6511 # decide which one to use based on capabilities of $DLLTOOL
6512 case `$DLLTOOL --help 2>&1` in
6513 *--identify-strict*)
6514 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6515 ;;
6516 *)
6517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6518 ;;
6519 esac
6520 ;;
6521 *)
6522 # fallback: assume linklib IS sharedlib
6523 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6524 ;;
6525 esac
6526 ;;
6527 esac
6528 fi
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6530 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6531 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6532 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6533
6534
6535
6536
6537
6538
6539
6540
6541 if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 printf %s "checking for $ac_word... " >&6; }
6546 if test ${ac_cv_prog_RANLIB+y}
6547 then :
6548 printf %s "(cached) " >&6
6549 else case e in #(
6550 e) if test -n "$RANLIB"; then
6551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 case $as_dir in #(((
6558 '') as_dir=./ ;;
6559 */) ;;
6560 *) as_dir=$as_dir/ ;;
6561 esac
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi ;;
6573 esac
6574 fi
6575 RANLIB=$ac_cv_prog_RANLIB
6576 if test -n "$RANLIB"; then
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6578 printf "%s\n" "$RANLIB" >&6; }
6579 else
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 printf "%s\n" "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_RANLIB"; then
6587 ac_ct_RANLIB=$RANLIB
6588 # Extract the first word of "ranlib", so it can be a program name with args.
6589 set dummy ranlib; ac_word=$2
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 printf %s "checking for $ac_word... " >&6; }
6592 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else case e in #(
6596 e) if test -n "$ac_ct_RANLIB"; then
6597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602 IFS=$as_save_IFS
6603 case $as_dir in #(((
6604 '') as_dir=./ ;;
6605 */) ;;
6606 *) as_dir=$as_dir/ ;;
6607 esac
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_ac_ct_RANLIB="ranlib"
6611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi ;;
6619 esac
6620 fi
6621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6622 if test -n "$ac_ct_RANLIB"; then
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6624 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6625 else
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 printf "%s\n" "no" >&6; }
6628 fi
6629
6630 if test "x$ac_ct_RANLIB" = x; then
6631 RANLIB=":"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 RANLIB=$ac_ct_RANLIB
6640 fi
6641 else
6642 RANLIB="$ac_cv_prog_RANLIB"
6643 fi
6644
6645 if test -n "$ac_tool_prefix"; then
6646 for ac_prog in ar
6647 do
6648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 printf %s "checking for $ac_word... " >&6; }
6652 if test ${ac_cv_prog_AR+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else case e in #(
6656 e) if test -n "$AR"; then
6657 ac_cv_prog_AR="$AR" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 case $as_dir in #(((
6664 '') as_dir=./ ;;
6665 */) ;;
6666 *) as_dir=$as_dir/ ;;
6667 esac
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi ;;
6679 esac
6680 fi
6681 AR=$ac_cv_prog_AR
6682 if test -n "$AR"; then
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6684 printf "%s\n" "$AR" >&6; }
6685 else
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 printf "%s\n" "no" >&6; }
6688 fi
6689
6690
6691 test -n "$AR" && break
6692 done
6693 fi
6694 if test -z "$AR"; then
6695 ac_ct_AR=$AR
6696 for ac_prog in ar
6697 do
6698 # Extract the first word of "$ac_prog", so it can be a program name with args.
6699 set dummy $ac_prog; ac_word=$2
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 printf %s "checking for $ac_word... " >&6; }
6702 if test ${ac_cv_prog_ac_ct_AR+y}
6703 then :
6704 printf %s "(cached) " >&6
6705 else case e in #(
6706 e) if test -n "$ac_ct_AR"; then
6707 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 case $as_dir in #(((
6714 '') as_dir=./ ;;
6715 */) ;;
6716 *) as_dir=$as_dir/ ;;
6717 esac
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6720 ac_cv_prog_ac_ct_AR="$ac_prog"
6721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728 fi ;;
6729 esac
6730 fi
6731 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6732 if test -n "$ac_ct_AR"; then
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6734 printf "%s\n" "$ac_ct_AR" >&6; }
6735 else
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 printf "%s\n" "no" >&6; }
6738 fi
6739
6740
6741 test -n "$ac_ct_AR" && break
6742 done
6743
6744 if test "x$ac_ct_AR" = x; then
6745 AR="false"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 AR=$ac_ct_AR
6754 fi
6755 fi
6756
6757 : ${AR=ar}
6758
6759
6760
6761
6762
6763
6764 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6765 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6766 # higher priority because that's what people were doing historically (setting
6767 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6768 # variable obsoleted/removed.
6769
6770 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6771 lt_ar_flags=$AR_FLAGS
6772
6773
6774
6775
6776
6777
6778 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6779 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6780
6781
6782
6783
6784
6785
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6787 printf %s "checking for archiver @FILE support... " >&6; }
6788 if test ${lt_cv_ar_at_file+y}
6789 then :
6790 printf %s "(cached) " >&6
6791 else case e in #(
6792 e) lt_cv_ar_at_file=no
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795
6796 int
6797 main (void)
6798 {
6799
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"
6805 then :
6806 echo conftest.$ac_objext > conftest.lst
6807 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6809 (eval $lt_ar_try) 2>&5
6810 ac_status=$?
6811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812 test $ac_status = 0; }
6813 if test 0 -eq "$ac_status"; then
6814 # Ensure the archiver fails upon bogus file names.
6815 rm -f conftest.$ac_objext libconftest.a
6816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6817 (eval $lt_ar_try) 2>&5
6818 ac_status=$?
6819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }
6821 if test 0 -ne "$ac_status"; then
6822 lt_cv_ar_at_file=@
6823 fi
6824 fi
6825 rm -f conftest.* libconftest.a
6826
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6829 ;;
6830 esac
6831 fi
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6833 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6834
6835 if test no = "$lt_cv_ar_at_file"; then
6836 archiver_list_spec=
6837 else
6838 archiver_list_spec=$lt_cv_ar_at_file
6839 fi
6840
6841
6842
6843
6844
6845
6846
6847 if test -n "$ac_tool_prefix"; then
6848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6849 set dummy ${ac_tool_prefix}strip; ac_word=$2
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 printf %s "checking for $ac_word... " >&6; }
6852 if test ${ac_cv_prog_STRIP+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) if test -n "$STRIP"; then
6857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 case $as_dir in #(((
6864 '') as_dir=./ ;;
6865 */) ;;
6866 *) as_dir=$as_dir/ ;;
6867 esac
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi ;;
6879 esac
6880 fi
6881 STRIP=$ac_cv_prog_STRIP
6882 if test -n "$STRIP"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6884 printf "%s\n" "$STRIP" >&6; }
6885 else
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 printf "%s\n" "no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_STRIP"; then
6893 ac_ct_STRIP=$STRIP
6894 # Extract the first word of "strip", so it can be a program name with args.
6895 set dummy strip; ac_word=$2
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 printf %s "checking for $ac_word... " >&6; }
6898 if test ${ac_cv_prog_ac_ct_STRIP+y}
6899 then :
6900 printf %s "(cached) " >&6
6901 else case e in #(
6902 e) if test -n "$ac_ct_STRIP"; then
6903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 case $as_dir in #(((
6910 '') as_dir=./ ;;
6911 */) ;;
6912 *) as_dir=$as_dir/ ;;
6913 esac
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_ac_ct_STRIP="strip"
6917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi ;;
6925 esac
6926 fi
6927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6928 if test -n "$ac_ct_STRIP"; then
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6930 printf "%s\n" "$ac_ct_STRIP" >&6; }
6931 else
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 printf "%s\n" "no" >&6; }
6934 fi
6935
6936 if test "x$ac_ct_STRIP" = x; then
6937 STRIP=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945 STRIP=$ac_ct_STRIP
6946 fi
6947 else
6948 STRIP="$ac_cv_prog_STRIP"
6949 fi
6950
6951 test -z "$STRIP" && STRIP=:
6952
6953
6954
6955
6956
6957
6958
6959 test -z "$RANLIB" && RANLIB=:
6960
6961
6962
6963
6964
6965
6966 # Determine commands to create old-style static archives.
6967 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6968 old_postinstall_cmds='chmod 644 $oldlib'
6969 old_postuninstall_cmds=
6970
6971 if test -n "$RANLIB"; then
6972 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6974 fi
6975
6976 case $host_os in
6977 darwin*)
6978 lock_old_archive_extraction=yes ;;
6979 *)
6980 lock_old_archive_extraction=no ;;
6981 esac
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021 # If no C compiler was specified, use CC.
7022 LTCC=${LTCC-"$CC"}
7023
7024 # If no C compiler flags were specified, use CFLAGS.
7025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7026
7027 # Allow CC to be a program name with arguments.
7028 compiler=$CC
7029
7030
7031 # Check for command to grab the raw symbol name followed by C symbol from nm.
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7033 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7034 if test ${lt_cv_sys_global_symbol_pipe+y}
7035 then :
7036 printf %s "(cached) " >&6
7037 else case e in #(
7038 e)
7039 # These are sane defaults that work on at least a few old systems.
7040 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7041
7042 # Character class describing NM global symbol codes.
7043 symcode='[BCDEGRST]'
7044
7045 # Regexp to match symbols that can be accessed directly from C.
7046 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7047
7048 # Define system-specific variables.
7049 case $host_os in
7050 aix*)
7051 symcode='[BCDT]'
7052 ;;
7053 cygwin* | mingw* | windows* | pw32* | cegcc*)
7054 symcode='[ABCDGISTW]'
7055 ;;
7056 hpux*)
7057 if test ia64 = "$host_cpu"; then
7058 symcode='[ABCDEGRST]'
7059 fi
7060 ;;
7061 irix* | nonstopux*)
7062 symcode='[BCDEGRST]'
7063 ;;
7064 osf*)
7065 symcode='[BCDEGQRST]'
7066 ;;
7067 solaris*)
7068 symcode='[BCDRT]'
7069 ;;
7070 sco3.2v5*)
7071 symcode='[DT]'
7072 ;;
7073 sysv4.2uw2*)
7074 symcode='[DT]'
7075 ;;
7076 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7077 symcode='[ABDT]'
7078 ;;
7079 sysv4)
7080 symcode='[DFNSTU]'
7081 ;;
7082 esac
7083
7084 # If we're using GNU nm, then use its standard symbol codes.
7085 case `$NM -V 2>&1` in
7086 *GNU* | *'with BFD'*)
7087 symcode='[ABCDGIRSTW]' ;;
7088 esac
7089
7090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7091 # Gets list of data symbols to import.
7092 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7093 # Adjust the below global symbol transforms to fixup imported variables.
7094 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7095 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7096 lt_c_name_lib_hook="\
7097 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7098 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7099 else
7100 # Disable hooks by default.
7101 lt_cv_sys_global_symbol_to_import=
7102 lt_cdecl_hook=
7103 lt_c_name_hook=
7104 lt_c_name_lib_hook=
7105 fi
7106
7107 # Transform an extracted symbol line into a proper C declaration.
7108 # Some systems (esp. on ia64) link data and code symbols differently,
7109 # so use this general approach.
7110 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7111 $lt_cdecl_hook\
7112 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7113 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7114
7115 # Transform an extracted symbol line into symbol name and symbol address
7116 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7117 $lt_c_name_hook\
7118 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7119 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7120
7121 # Transform an extracted symbol line into symbol name with lib prefix and
7122 # symbol address.
7123 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7124 $lt_c_name_lib_hook\
7125 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7126 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7127 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7128
7129 # Handle CRLF in mingw tool chain
7130 opt_cr=
7131 case $build_os in
7132 mingw* | windows*)
7133 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7134 ;;
7135 esac
7136
7137 # Try without a prefix underscore, then with it.
7138 for ac_symprfx in "" "_"; do
7139
7140 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7141 symxfrm="\\1 $ac_symprfx\\2 \\2"
7142
7143 # Write the raw and C identifiers.
7144 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7145 # Fake it for dumpbin and say T for any non-static function,
7146 # D for any global variable and I for any imported variable.
7147 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7148 # which start with @ or ?.
7149 lt_cv_sys_global_symbol_pipe="$AWK '"\
7150 " {last_section=section; section=\$ 3};"\
7151 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7152 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7153 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7154 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7155 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7156 " \$ 0!~/External *\|/{next};"\
7157 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7158 " {if(hide[section]) next};"\
7159 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7160 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7161 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7162 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7163 " ' prfx=^$ac_symprfx"
7164 else
7165 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7166 fi
7167 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7168
7169 # Check to see that the pipe works correctly.
7170 pipe_works=no
7171
7172 rm -f conftest*
7173 cat > conftest.$ac_ext <<_LT_EOF
7174 #ifdef __cplusplus
7175 extern "C" {
7176 #endif
7177 char nm_test_var;
7178 void nm_test_func(void);
7179 void nm_test_func(void){}
7180 #ifdef __cplusplus
7181 }
7182 #endif
7183 int main(void){nm_test_var='a';nm_test_func();return(0);}
7184 _LT_EOF
7185
7186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7187 (eval $ac_compile) 2>&5
7188 ac_status=$?
7189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; }; then
7191 # Now try to grab the symbols.
7192 nlist=conftest.nm
7193 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7194 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7195 # Try sorting and uniquifying the output.
7196 if sort "$nlist" | uniq > "$nlist"T; then
7197 mv -f "$nlist"T "$nlist"
7198 else
7199 rm -f "$nlist"T
7200 fi
7201
7202 # Make sure that we snagged all the symbols we need.
7203 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7204 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7205 cat <<_LT_EOF > conftest.$ac_ext
7206 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7207 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7208 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7209 relocations are performed -- see ld's documentation on pseudo-relocs. */
7210 # define LT_DLSYM_CONST
7211 #elif defined __osf__
7212 /* This system does not cope well with relocations in const data. */
7213 # define LT_DLSYM_CONST
7214 #else
7215 # define LT_DLSYM_CONST const
7216 #endif
7217
7218 #ifdef __cplusplus
7219 extern "C" {
7220 #endif
7221
7222 _LT_EOF
7223 # Now generate the symbol file.
7224 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7225
7226 cat <<_LT_EOF >> conftest.$ac_ext
7227
7228 /* The mapping between symbol names and symbols. */
7229 LT_DLSYM_CONST struct {
7230 const char *name;
7231 void *address;
7232 }
7233 lt__PROGRAM__LTX_preloaded_symbols[] =
7234 {
7235 { "@PROGRAM@", (void *) 0 },
7236 _LT_EOF
7237 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7238 cat <<\_LT_EOF >> conftest.$ac_ext
7239 {0, (void *) 0}
7240 };
7241
7242 /* This works around a problem in FreeBSD linker */
7243 #ifdef FREEBSD_WORKAROUND
7244 static const void *lt_preloaded_setup() {
7245 return lt__PROGRAM__LTX_preloaded_symbols;
7246 }
7247 #endif
7248
7249 #ifdef __cplusplus
7250 }
7251 #endif
7252 _LT_EOF
7253 # Now try linking the two files.
7254 mv conftest.$ac_objext conftstm.$ac_objext
7255 lt_globsym_save_LIBS=$LIBS
7256 lt_globsym_save_CFLAGS=$CFLAGS
7257 LIBS=conftstm.$ac_objext
7258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7260 (eval $ac_link) 2>&5
7261 ac_status=$?
7262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7264 pipe_works=yes
7265 fi
7266 LIBS=$lt_globsym_save_LIBS
7267 CFLAGS=$lt_globsym_save_CFLAGS
7268 else
7269 echo "cannot find nm_test_func in $nlist" >&5
7270 fi
7271 else
7272 echo "cannot find nm_test_var in $nlist" >&5
7273 fi
7274 else
7275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7276 fi
7277 else
7278 echo "$progname: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 fi
7281 rm -rf conftest* conftst*
7282
7283 # Do not use the global_symbol_pipe unless it works.
7284 if test yes = "$pipe_works"; then
7285 break
7286 else
7287 lt_cv_sys_global_symbol_pipe=
7288 fi
7289 done
7290 ;;
7291 esac
7292 fi
7293
7294 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7295 lt_cv_sys_global_symbol_to_cdecl=
7296 fi
7297 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7299 printf "%s\n" "failed" >&6; }
7300 else
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7302 printf "%s\n" "ok" >&6; }
7303 fi
7304
7305 # Response file support.
7306 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7307 nm_file_list_spec='@'
7308 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7309 nm_file_list_spec='@'
7310 fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7349 printf %s "checking for sysroot... " >&6; }
7350
7351 # Check whether --with-sysroot was given.
7352 if test ${with_sysroot+y}
7353 then :
7354 withval=$with_sysroot;
7355 else case e in #(
7356 e) with_sysroot=no ;;
7357 esac
7358 fi
7359
7360
7361 lt_sysroot=
7362 case $with_sysroot in #(
7363 yes)
7364 if test yes = "$GCC"; then
7365 # Trim trailing / since we'll always append absolute paths and we want
7366 # to avoid //, if only for less confusing output for the user.
7367 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7368 fi
7369 ;; #(
7370 /*)
7371 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7372 ;; #(
7373 no|'')
7374 ;; #(
7375 *)
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7377 printf "%s\n" "$with_sysroot" >&6; }
7378 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7379 ;;
7380 esac
7381
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7383 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7384
7385
7386
7387
7388
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7390 printf %s "checking for a working dd... " >&6; }
7391 if test ${ac_cv_path_lt_DD+y}
7392 then :
7393 printf %s "(cached) " >&6
7394 else case e in #(
7395 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7396 cat conftest.i conftest.i >conftest2.i
7397 : ${lt_DD:=$DD}
7398 if test -z "$lt_DD"; then
7399 ac_path_lt_DD_found=false
7400 # Loop through the user's path and test for each of PROGNAME-LIST
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 case $as_dir in #(((
7406 '') as_dir=./ ;;
7407 */) ;;
7408 *) as_dir=$as_dir/ ;;
7409 esac
7410 for ac_prog in dd
7411 do
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7414 as_fn_executable_p "$ac_path_lt_DD" || continue
7415 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7416 cmp -s conftest.i conftest.out \
7417 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7418 fi
7419 $ac_path_lt_DD_found && break 3
7420 done
7421 done
7422 done
7423 IFS=$as_save_IFS
7424 if test -z "$ac_cv_path_lt_DD"; then
7425 :
7426 fi
7427 else
7428 ac_cv_path_lt_DD=$lt_DD
7429 fi
7430
7431 rm -f conftest.i conftest2.i conftest.out ;;
7432 esac
7433 fi
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7435 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7436
7437
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7439 printf %s "checking how to truncate binary pipes... " >&6; }
7440 if test ${lt_cv_truncate_bin+y}
7441 then :
7442 printf %s "(cached) " >&6
7443 else case e in #(
7444 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7445 cat conftest.i conftest.i >conftest2.i
7446 lt_cv_truncate_bin=
7447 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7448 cmp -s conftest.i conftest.out \
7449 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7450 fi
7451 rm -f conftest.i conftest2.i conftest.out
7452 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7453 esac
7454 fi
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7456 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7457
7458
7459
7460
7461
7462
7463
7464 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7465 func_cc_basename ()
7466 {
7467 for cc_temp in $*""; do
7468 case $cc_temp in
7469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7471 \-*) ;;
7472 *) break;;
7473 esac
7474 done
7475 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7476 }
7477
7478 # Check whether --enable-libtool-lock was given.
7479 if test ${enable_libtool_lock+y}
7480 then :
7481 enableval=$enable_libtool_lock;
7482 fi
7483
7484 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7485
7486 # Some flags need to be propagated to the compiler or linker for good
7487 # libtool support.
7488 case $host in
7489 ia64-*-hpux*)
7490 # Find out what ABI is being produced by ac_compile, and set mode
7491 # options accordingly.
7492 echo 'int i;' > conftest.$ac_ext
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494 (eval $ac_compile) 2>&5
7495 ac_status=$?
7496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; }; then
7498 case `$FILECMD conftest.$ac_objext` in
7499 *ELF-32*)
7500 HPUX_IA64_MODE=32
7501 ;;
7502 *ELF-64*)
7503 HPUX_IA64_MODE=64
7504 ;;
7505 esac
7506 fi
7507 rm -rf conftest*
7508 ;;
7509 *-*-irix6*)
7510 # Find out what ABI is being produced by ac_compile, and set linker
7511 # options accordingly.
7512 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7515 ac_status=$?
7516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 if test yes = "$lt_cv_prog_gnu_ld"; then
7519 case `$FILECMD conftest.$ac_objext` in
7520 *32-bit*)
7521 LD="${LD-ld} -melf32bsmip"
7522 ;;
7523 *N32*)
7524 LD="${LD-ld} -melf32bmipn32"
7525 ;;
7526 *64-bit*)
7527 LD="${LD-ld} -melf64bmip"
7528 ;;
7529 esac
7530 else
7531 case `$FILECMD conftest.$ac_objext` in
7532 *32-bit*)
7533 LD="${LD-ld} -32"
7534 ;;
7535 *N32*)
7536 LD="${LD-ld} -n32"
7537 ;;
7538 *64-bit*)
7539 LD="${LD-ld} -64"
7540 ;;
7541 esac
7542 fi
7543 fi
7544 rm -rf conftest*
7545 ;;
7546
7547 mips64*-*linux*)
7548 # Find out what ABI is being produced by ac_compile, and set linker
7549 # options accordingly.
7550 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7552 (eval $ac_compile) 2>&5
7553 ac_status=$?
7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555 test $ac_status = 0; }; then
7556 emul=elf
7557 case `$FILECMD conftest.$ac_objext` in
7558 *32-bit*)
7559 emul="${emul}32"
7560 ;;
7561 *64-bit*)
7562 emul="${emul}64"
7563 ;;
7564 esac
7565 case `$FILECMD conftest.$ac_objext` in
7566 *MSB*)
7567 emul="${emul}btsmip"
7568 ;;
7569 *LSB*)
7570 emul="${emul}ltsmip"
7571 ;;
7572 esac
7573 case `$FILECMD conftest.$ac_objext` in
7574 *N32*)
7575 emul="${emul}n32"
7576 ;;
7577 esac
7578 LD="${LD-ld} -m $emul"
7579 fi
7580 rm -rf conftest*
7581 ;;
7582
7583 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7584 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7585 # Find out what ABI is being produced by ac_compile, and set linker
7586 # options accordingly. Note that the listed cases only cover the
7587 # situations where additional linker options are needed (such as when
7588 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7589 # vice versa); the common cases where no linker options are needed do
7590 # not appear in the list.
7591 echo 'int i;' > conftest.$ac_ext
7592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7593 (eval $ac_compile) 2>&5
7594 ac_status=$?
7595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7596 test $ac_status = 0; }; then
7597 case `$FILECMD conftest.o` in
7598 *32-bit*)
7599 case $host in
7600 x86_64-*kfreebsd*-gnu)
7601 LD="${LD-ld} -m elf_i386_fbsd"
7602 ;;
7603 x86_64-*linux*|x86_64-gnu*)
7604 case `$FILECMD conftest.o` in
7605 *x86-64*)
7606 LD="${LD-ld} -m elf32_x86_64"
7607 ;;
7608 *)
7609 LD="${LD-ld} -m elf_i386"
7610 ;;
7611 esac
7612 ;;
7613 powerpc64le-*linux*)
7614 LD="${LD-ld} -m elf32lppclinux"
7615 ;;
7616 powerpc64-*linux*)
7617 LD="${LD-ld} -m elf32ppclinux"
7618 ;;
7619 s390x-*linux*)
7620 LD="${LD-ld} -m elf_s390"
7621 ;;
7622 sparc64-*linux*)
7623 LD="${LD-ld} -m elf32_sparc"
7624 ;;
7625 esac
7626 ;;
7627 *64-bit*)
7628 case $host in
7629 x86_64-*kfreebsd*-gnu)
7630 LD="${LD-ld} -m elf_x86_64_fbsd"
7631 ;;
7632 x86_64-*linux*|x86_64-gnu*)
7633 LD="${LD-ld} -m elf_x86_64"
7634 ;;
7635 powerpcle-*linux*)
7636 LD="${LD-ld} -m elf64lppc"
7637 ;;
7638 powerpc-*linux*)
7639 LD="${LD-ld} -m elf64ppc"
7640 ;;
7641 s390*-*linux*|s390*-*tpf*)
7642 LD="${LD-ld} -m elf64_s390"
7643 ;;
7644 sparc*-*linux*)
7645 LD="${LD-ld} -m elf64_sparc"
7646 ;;
7647 esac
7648 ;;
7649 esac
7650 fi
7651 rm -rf conftest*
7652 ;;
7653
7654 *-*-sco3.2v5*)
7655 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7656 SAVE_CFLAGS=$CFLAGS
7657 CFLAGS="$CFLAGS -belf"
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7659 printf %s "checking whether the C compiler needs -belf... " >&6; }
7660 if test ${lt_cv_cc_needs_belf+y}
7661 then :
7662 printf %s "(cached) " >&6
7663 else case e in #(
7664 e) ac_ext=c
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7669
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672
7673 int
7674 main (void)
7675 {
7676
7677 ;
7678 return 0;
7679 }
7680 _ACEOF
7681 if ac_fn_c_try_link "$LINENO"
7682 then :
7683 lt_cv_cc_needs_belf=yes
7684 else case e in #(
7685 e) lt_cv_cc_needs_belf=no ;;
7686 esac
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7689 conftest$ac_exeext conftest.$ac_ext
7690 ac_ext=c
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695 ;;
7696 esac
7697 fi
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7699 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7700 if test yes != "$lt_cv_cc_needs_belf"; then
7701 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7702 CFLAGS=$SAVE_CFLAGS
7703 fi
7704 ;;
7705 *-*solaris*)
7706 # Find out what ABI is being produced by ac_compile, and set linker
7707 # options accordingly.
7708 echo 'int i;' > conftest.$ac_ext
7709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7710 (eval $ac_compile) 2>&5
7711 ac_status=$?
7712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713 test $ac_status = 0; }; then
7714 case `$FILECMD conftest.o` in
7715 *64-bit*)
7716 case $lt_cv_prog_gnu_ld in
7717 yes*)
7718 case $host in
7719 i?86-*-solaris*|x86_64-*-solaris*)
7720 LD="${LD-ld} -m elf_x86_64"
7721 ;;
7722 sparc*-*-solaris*)
7723 LD="${LD-ld} -m elf64_sparc"
7724 ;;
7725 esac
7726 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7727 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7728 LD=${LD-ld}_sol2
7729 fi
7730 ;;
7731 *)
7732 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7733 LD="${LD-ld} -64"
7734 fi
7735 ;;
7736 esac
7737 ;;
7738 esac
7739 fi
7740 rm -rf conftest*
7741 ;;
7742 esac
7743
7744 need_locks=$enable_libtool_lock
7745
7746 if test -n "$ac_tool_prefix"; then
7747 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7748 set dummy ${ac_tool_prefix}mt; ac_word=$2
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 printf %s "checking for $ac_word... " >&6; }
7751 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7752 then :
7753 printf %s "(cached) " >&6
7754 else case e in #(
7755 e) if test -n "$MANIFEST_TOOL"; then
7756 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761 IFS=$as_save_IFS
7762 case $as_dir in #(((
7763 '') as_dir=./ ;;
7764 */) ;;
7765 *) as_dir=$as_dir/ ;;
7766 esac
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi ;;
7778 esac
7779 fi
7780 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7781 if test -n "$MANIFEST_TOOL"; then
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7783 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7784 else
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 printf "%s\n" "no" >&6; }
7787 fi
7788
7789
7790 fi
7791 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7792 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7793 # Extract the first word of "mt", so it can be a program name with args.
7794 set dummy mt; ac_word=$2
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 printf %s "checking for $ac_word... " >&6; }
7797 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7798 then :
7799 printf %s "(cached) " >&6
7800 else case e in #(
7801 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7802 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807 IFS=$as_save_IFS
7808 case $as_dir in #(((
7809 '') as_dir=./ ;;
7810 */) ;;
7811 *) as_dir=$as_dir/ ;;
7812 esac
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7815 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823 fi ;;
7824 esac
7825 fi
7826 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7827 if test -n "$ac_ct_MANIFEST_TOOL"; then
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7829 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7830 else
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 printf "%s\n" "no" >&6; }
7833 fi
7834
7835 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7836 MANIFEST_TOOL=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7845 fi
7846 else
7847 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7848 fi
7849
7850 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7852 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7853 if test ${lt_cv_path_manifest_tool+y}
7854 then :
7855 printf %s "(cached) " >&6
7856 else case e in #(
7857 e) lt_cv_path_manifest_tool=no
7858 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7859 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7860 cat conftest.err >&5
7861 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7862 lt_cv_path_manifest_tool=yes
7863 fi
7864 rm -f conftest* ;;
7865 esac
7866 fi
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7868 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7869 if test yes != "$lt_cv_path_manifest_tool"; then
7870 MANIFEST_TOOL=:
7871 fi
7872
7873
7874
7875
7876
7877
7878 case $host_os in
7879 rhapsody* | darwin*)
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 printf %s "checking for $ac_word... " >&6; }
7885 if test ${ac_cv_prog_DSYMUTIL+y}
7886 then :
7887 printf %s "(cached) " >&6
7888 else case e in #(
7889 e) if test -n "$DSYMUTIL"; then
7890 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895 IFS=$as_save_IFS
7896 case $as_dir in #(((
7897 '') as_dir=./ ;;
7898 */) ;;
7899 *) as_dir=$as_dir/ ;;
7900 esac
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907 done
7908 done
7909 IFS=$as_save_IFS
7910
7911 fi ;;
7912 esac
7913 fi
7914 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7915 if test -n "$DSYMUTIL"; then
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7917 printf "%s\n" "$DSYMUTIL" >&6; }
7918 else
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 printf "%s\n" "no" >&6; }
7921 fi
7922
7923
7924 fi
7925 if test -z "$ac_cv_prog_DSYMUTIL"; then
7926 ac_ct_DSYMUTIL=$DSYMUTIL
7927 # Extract the first word of "dsymutil", so it can be a program name with args.
7928 set dummy dsymutil; ac_word=$2
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 printf %s "checking for $ac_word... " >&6; }
7931 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7932 then :
7933 printf %s "(cached) " >&6
7934 else case e in #(
7935 e) if test -n "$ac_ct_DSYMUTIL"; then
7936 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 case $as_dir in #(((
7943 '') as_dir=./ ;;
7944 */) ;;
7945 *) as_dir=$as_dir/ ;;
7946 esac
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 fi ;;
7958 esac
7959 fi
7960 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7961 if test -n "$ac_ct_DSYMUTIL"; then
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7963 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7964 else
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 printf "%s\n" "no" >&6; }
7967 fi
7968
7969 if test "x$ac_ct_DSYMUTIL" = x; then
7970 DSYMUTIL=":"
7971 else
7972 case $cross_compiling:$ac_tool_warned in
7973 yes:)
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7977 esac
7978 DSYMUTIL=$ac_ct_DSYMUTIL
7979 fi
7980 else
7981 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7982 fi
7983
7984 if test -n "$ac_tool_prefix"; then
7985 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7986 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 printf %s "checking for $ac_word... " >&6; }
7989 if test ${ac_cv_prog_NMEDIT+y}
7990 then :
7991 printf %s "(cached) " >&6
7992 else case e in #(
7993 e) if test -n "$NMEDIT"; then
7994 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999 IFS=$as_save_IFS
8000 case $as_dir in #(((
8001 '') as_dir=./ ;;
8002 */) ;;
8003 *) as_dir=$as_dir/ ;;
8004 esac
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8007 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011 done
8012 done
8013 IFS=$as_save_IFS
8014
8015 fi ;;
8016 esac
8017 fi
8018 NMEDIT=$ac_cv_prog_NMEDIT
8019 if test -n "$NMEDIT"; then
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8021 printf "%s\n" "$NMEDIT" >&6; }
8022 else
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 printf "%s\n" "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_NMEDIT"; then
8030 ac_ct_NMEDIT=$NMEDIT
8031 # Extract the first word of "nmedit", so it can be a program name with args.
8032 set dummy nmedit; ac_word=$2
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 printf %s "checking for $ac_word... " >&6; }
8035 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8036 then :
8037 printf %s "(cached) " >&6
8038 else case e in #(
8039 e) if test -n "$ac_ct_NMEDIT"; then
8040 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 case $as_dir in #(((
8047 '') as_dir=./ ;;
8048 */) ;;
8049 *) as_dir=$as_dir/ ;;
8050 esac
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057 done
8058 done
8059 IFS=$as_save_IFS
8060
8061 fi ;;
8062 esac
8063 fi
8064 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8065 if test -n "$ac_ct_NMEDIT"; then
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8067 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8068 else
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 printf "%s\n" "no" >&6; }
8071 fi
8072
8073 if test "x$ac_ct_NMEDIT" = x; then
8074 NMEDIT=":"
8075 else
8076 case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080 ac_tool_warned=yes ;;
8081 esac
8082 NMEDIT=$ac_ct_NMEDIT
8083 fi
8084 else
8085 NMEDIT="$ac_cv_prog_NMEDIT"
8086 fi
8087
8088 if test -n "$ac_tool_prefix"; then
8089 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8090 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 printf %s "checking for $ac_word... " >&6; }
8093 if test ${ac_cv_prog_LIPO+y}
8094 then :
8095 printf %s "(cached) " >&6
8096 else case e in #(
8097 e) if test -n "$LIPO"; then
8098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 case $as_dir in #(((
8105 '') as_dir=./ ;;
8106 */) ;;
8107 *) as_dir=$as_dir/ ;;
8108 esac
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119 fi ;;
8120 esac
8121 fi
8122 LIPO=$ac_cv_prog_LIPO
8123 if test -n "$LIPO"; then
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8125 printf "%s\n" "$LIPO" >&6; }
8126 else
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 printf "%s\n" "no" >&6; }
8129 fi
8130
8131
8132 fi
8133 if test -z "$ac_cv_prog_LIPO"; then
8134 ac_ct_LIPO=$LIPO
8135 # Extract the first word of "lipo", so it can be a program name with args.
8136 set dummy lipo; ac_word=$2
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 printf %s "checking for $ac_word... " >&6; }
8139 if test ${ac_cv_prog_ac_ct_LIPO+y}
8140 then :
8141 printf %s "(cached) " >&6
8142 else case e in #(
8143 e) if test -n "$ac_ct_LIPO"; then
8144 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8145 else
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149 IFS=$as_save_IFS
8150 case $as_dir in #(((
8151 '') as_dir=./ ;;
8152 */) ;;
8153 *) as_dir=$as_dir/ ;;
8154 esac
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_ac_ct_LIPO="lipo"
8158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 fi ;;
8166 esac
8167 fi
8168 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8169 if test -n "$ac_ct_LIPO"; then
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8171 printf "%s\n" "$ac_ct_LIPO" >&6; }
8172 else
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 printf "%s\n" "no" >&6; }
8175 fi
8176
8177 if test "x$ac_ct_LIPO" = x; then
8178 LIPO=":"
8179 else
8180 case $cross_compiling:$ac_tool_warned in
8181 yes:)
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184 ac_tool_warned=yes ;;
8185 esac
8186 LIPO=$ac_ct_LIPO
8187 fi
8188 else
8189 LIPO="$ac_cv_prog_LIPO"
8190 fi
8191
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}otool; ac_word=$2
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 printf %s "checking for $ac_word... " >&6; }
8197 if test ${ac_cv_prog_OTOOL+y}
8198 then :
8199 printf %s "(cached) " >&6
8200 else case e in #(
8201 e) if test -n "$OTOOL"; then
8202 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 case $as_dir in #(((
8209 '') as_dir=./ ;;
8210 */) ;;
8211 *) as_dir=$as_dir/ ;;
8212 esac
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219 done
8220 done
8221 IFS=$as_save_IFS
8222
8223 fi ;;
8224 esac
8225 fi
8226 OTOOL=$ac_cv_prog_OTOOL
8227 if test -n "$OTOOL"; then
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8229 printf "%s\n" "$OTOOL" >&6; }
8230 else
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 printf "%s\n" "no" >&6; }
8233 fi
8234
8235
8236 fi
8237 if test -z "$ac_cv_prog_OTOOL"; then
8238 ac_ct_OTOOL=$OTOOL
8239 # Extract the first word of "otool", so it can be a program name with args.
8240 set dummy otool; ac_word=$2
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 printf %s "checking for $ac_word... " >&6; }
8243 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8244 then :
8245 printf %s "(cached) " >&6
8246 else case e in #(
8247 e) if test -n "$ac_ct_OTOOL"; then
8248 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253 IFS=$as_save_IFS
8254 case $as_dir in #(((
8255 '') as_dir=./ ;;
8256 */) ;;
8257 *) as_dir=$as_dir/ ;;
8258 esac
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8261 ac_cv_prog_ac_ct_OTOOL="otool"
8262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8263 break 2
8264 fi
8265 done
8266 done
8267 IFS=$as_save_IFS
8268
8269 fi ;;
8270 esac
8271 fi
8272 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8273 if test -n "$ac_ct_OTOOL"; then
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8275 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8276 else
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 printf "%s\n" "no" >&6; }
8279 fi
8280
8281 if test "x$ac_ct_OTOOL" = x; then
8282 OTOOL=":"
8283 else
8284 case $cross_compiling:$ac_tool_warned in
8285 yes:)
8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8287 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8288 ac_tool_warned=yes ;;
8289 esac
8290 OTOOL=$ac_ct_OTOOL
8291 fi
8292 else
8293 OTOOL="$ac_cv_prog_OTOOL"
8294 fi
8295
8296 if test -n "$ac_tool_prefix"; then
8297 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8298 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 printf %s "checking for $ac_word... " >&6; }
8301 if test ${ac_cv_prog_OTOOL64+y}
8302 then :
8303 printf %s "(cached) " >&6
8304 else case e in #(
8305 e) if test -n "$OTOOL64"; then
8306 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311 IFS=$as_save_IFS
8312 case $as_dir in #(((
8313 '') as_dir=./ ;;
8314 */) ;;
8315 *) as_dir=$as_dir/ ;;
8316 esac
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323 done
8324 done
8325 IFS=$as_save_IFS
8326
8327 fi ;;
8328 esac
8329 fi
8330 OTOOL64=$ac_cv_prog_OTOOL64
8331 if test -n "$OTOOL64"; then
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8333 printf "%s\n" "$OTOOL64" >&6; }
8334 else
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 printf "%s\n" "no" >&6; }
8337 fi
8338
8339
8340 fi
8341 if test -z "$ac_cv_prog_OTOOL64"; then
8342 ac_ct_OTOOL64=$OTOOL64
8343 # Extract the first word of "otool64", so it can be a program name with args.
8344 set dummy otool64; ac_word=$2
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 printf %s "checking for $ac_word... " >&6; }
8347 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8348 then :
8349 printf %s "(cached) " >&6
8350 else case e in #(
8351 e) if test -n "$ac_ct_OTOOL64"; then
8352 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357 IFS=$as_save_IFS
8358 case $as_dir in #(((
8359 '') as_dir=./ ;;
8360 */) ;;
8361 *) as_dir=$as_dir/ ;;
8362 esac
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_ac_ct_OTOOL64="otool64"
8366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369 done
8370 done
8371 IFS=$as_save_IFS
8372
8373 fi ;;
8374 esac
8375 fi
8376 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8377 if test -n "$ac_ct_OTOOL64"; then
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8379 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8380 else
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 printf "%s\n" "no" >&6; }
8383 fi
8384
8385 if test "x$ac_ct_OTOOL64" = x; then
8386 OTOOL64=":"
8387 else
8388 case $cross_compiling:$ac_tool_warned in
8389 yes:)
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8392 ac_tool_warned=yes ;;
8393 esac
8394 OTOOL64=$ac_ct_OTOOL64
8395 fi
8396 else
8397 OTOOL64="$ac_cv_prog_OTOOL64"
8398 fi
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8427 printf %s "checking for -single_module linker flag... " >&6; }
8428 if test ${lt_cv_apple_cc_single_mod+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else case e in #(
8432 e) lt_cv_apple_cc_single_mod=no
8433 if test -z "$LT_MULTI_MODULE"; then
8434 # By default we will add the -single_module flag. You can override
8435 # by either setting the environment variable LT_MULTI_MODULE
8436 # non-empty at configure time, or by adding -multi_module to the
8437 # link flags.
8438 rm -rf libconftest.dylib*
8439 echo "int foo(void){return 1;}" > conftest.c
8440 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8441 -dynamiclib -Wl,-single_module conftest.c" >&5
8442 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8443 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8444 _lt_result=$?
8445 # If there is a non-empty error log, and "single_module"
8446 # appears in it, assume the flag caused a linker warning
8447 if test -s conftest.err && $GREP single_module conftest.err; then
8448 cat conftest.err >&5
8449 # Otherwise, if the output was created with a 0 exit code from
8450 # the compiler, it worked.
8451 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8452 lt_cv_apple_cc_single_mod=yes
8453 else
8454 cat conftest.err >&5
8455 fi
8456 rm -rf libconftest.dylib*
8457 rm -f conftest.*
8458 fi ;;
8459 esac
8460 fi
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8462 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8463
8464 # Feature test to disable chained fixups since it is not
8465 # compatible with '-undefined dynamic_lookup'
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8467 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8468 if test ${lt_cv_support_no_fixup_chains+y}
8469 then :
8470 printf %s "(cached) " >&6
8471 else case e in #(
8472 e) save_LDFLAGS=$LDFLAGS
8473 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476
8477 int
8478 main (void)
8479 {
8480
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"
8486 then :
8487 lt_cv_support_no_fixup_chains=yes
8488 else case e in #(
8489 e) lt_cv_support_no_fixup_chains=no
8490 ;;
8491 esac
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LDFLAGS=$save_LDFLAGS
8496
8497 ;;
8498 esac
8499 fi
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8501 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8502
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8504 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8505 if test ${lt_cv_ld_exported_symbols_list+y}
8506 then :
8507 printf %s "(cached) " >&6
8508 else case e in #(
8509 e) lt_cv_ld_exported_symbols_list=no
8510 save_LDFLAGS=$LDFLAGS
8511 echo "_main" > conftest.sym
8512 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515
8516 int
8517 main (void)
8518 {
8519
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 if ac_fn_c_try_link "$LINENO"
8525 then :
8526 lt_cv_ld_exported_symbols_list=yes
8527 else case e in #(
8528 e) lt_cv_ld_exported_symbols_list=no ;;
8529 esac
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8532 conftest$ac_exeext conftest.$ac_ext
8533 LDFLAGS=$save_LDFLAGS
8534 ;;
8535 esac
8536 fi
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8538 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8539
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8541 printf %s "checking for -force_load linker flag... " >&6; }
8542 if test ${lt_cv_ld_force_load+y}
8543 then :
8544 printf %s "(cached) " >&6
8545 else case e in #(
8546 e) lt_cv_ld_force_load=no
8547 cat > conftest.c << _LT_EOF
8548 int forced_loaded() { return 2;}
8549 _LT_EOF
8550 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8551 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8552 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8553 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8554 echo "$RANLIB libconftest.a" >&5
8555 $RANLIB libconftest.a 2>&5
8556 cat > conftest.c << _LT_EOF
8557 int main(void) { return 0;}
8558 _LT_EOF
8559 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8560 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8561 _lt_result=$?
8562 if test -s conftest.err && $GREP force_load conftest.err; then
8563 cat conftest.err >&5
8564 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8565 lt_cv_ld_force_load=yes
8566 else
8567 cat conftest.err >&5
8568 fi
8569 rm -f conftest.err libconftest.a conftest conftest.c
8570 rm -rf conftest.dSYM
8571 ;;
8572 esac
8573 fi
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8575 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8576 case $host_os in
8577 rhapsody* | darwin1.[012])
8578 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8579 darwin1.*)
8580 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8581 darwin*)
8582 case $MACOSX_DEPLOYMENT_TARGET,$host in
8583 10.[012],*|,*powerpc*-darwin[5-8]*)
8584 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8585 *)
8586 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8587 if test yes = "$lt_cv_support_no_fixup_chains"; then
8588 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8589 fi
8590 ;;
8591 esac
8592 ;;
8593 esac
8594 if test yes = "$lt_cv_apple_cc_single_mod"; then
8595 _lt_dar_single_mod='$single_module'
8596 fi
8597 _lt_dar_needs_single_mod=no
8598 case $host_os in
8599 rhapsody* | darwin1.*)
8600 _lt_dar_needs_single_mod=yes ;;
8601 darwin*)
8602 # When targeting Mac OS X 10.4 (darwin 8) or later,
8603 # -single_module is the default and -multi_module is unsupported.
8604 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8605 # target any OS version that needs -single_module.
8606 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8607 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8608 _lt_dar_needs_single_mod=yes ;;
8609 esac
8610 ;;
8611 esac
8612 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8613 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8614 else
8615 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8616 fi
8617 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8618 _lt_dsymutil='~$DSYMUTIL $lib || :'
8619 else
8620 _lt_dsymutil=
8621 fi
8622 ;;
8623 esac
8624
8625 # func_munge_path_list VARIABLE PATH
8626 # -----------------------------------
8627 # VARIABLE is name of variable containing _space_ separated list of
8628 # directories to be munged by the contents of PATH, which is string
8629 # having a format:
8630 # "DIR[:DIR]:"
8631 # string "DIR[ DIR]" will be prepended to VARIABLE
8632 # ":DIR[:DIR]"
8633 # string "DIR[ DIR]" will be appended to VARIABLE
8634 # "DIRP[:DIRP]::[DIRA:]DIRA"
8635 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8636 # "DIRA[ DIRA]" will be appended to VARIABLE
8637 # "DIR[:DIR]"
8638 # VARIABLE will be replaced by "DIR[ DIR]"
8639 func_munge_path_list ()
8640 {
8641 case x$2 in
8642 x)
8643 ;;
8644 *:)
8645 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8646 ;;
8647 x:*)
8648 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8649 ;;
8650 *::*)
8651 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8652 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8653 ;;
8654 *)
8655 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8656 ;;
8657 esac
8658 }
8659
8660 ac_header= ac_cache=
8661 for ac_item in $ac_header_c_list
8662 do
8663 if test $ac_cache; then
8664 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8665 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8666 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8667 fi
8668 ac_header= ac_cache=
8669 elif test $ac_header; then
8670 ac_cache=$ac_item
8671 else
8672 ac_header=$ac_item
8673 fi
8674 done
8675
8676
8677
8678
8679
8680
8681
8682
8683 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8684 then :
8685
8686 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8687
8688 fi
8689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8690 "
8691 if test "x$ac_cv_header_dlfcn_h" = xyes
8692 then :
8693 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8694
8695 fi
8696
8697
8698
8699
8700
8701 # Set options
8702
8703
8704
8705 enable_dlopen=no
8706
8707
8708 enable_win32_dll=no
8709
8710
8711 # Check whether --enable-shared was given.
8712 if test ${enable_shared+y}
8713 then :
8714 enableval=$enable_shared; p=${PACKAGE-default}
8715 case $enableval in
8716 yes) enable_shared=yes ;;
8717 no) enable_shared=no ;;
8718 *)
8719 enable_shared=no
8720 # Look at the argument we got. We use all the common list separators.
8721 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8722 for pkg in $enableval; do
8723 IFS=$lt_save_ifs
8724 if test "X$pkg" = "X$p"; then
8725 enable_shared=yes
8726 fi
8727 done
8728 IFS=$lt_save_ifs
8729 ;;
8730 esac
8731 else case e in #(
8732 e) enable_shared=yes ;;
8733 esac
8734 fi
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 # Check whether --enable-static was given.
8745 if test ${enable_static+y}
8746 then :
8747 enableval=$enable_static; p=${PACKAGE-default}
8748 case $enableval in
8749 yes) enable_static=yes ;;
8750 no) enable_static=no ;;
8751 *)
8752 enable_static=no
8753 # Look at the argument we got. We use all the common list separators.
8754 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8755 for pkg in $enableval; do
8756 IFS=$lt_save_ifs
8757 if test "X$pkg" = "X$p"; then
8758 enable_static=yes
8759 fi
8760 done
8761 IFS=$lt_save_ifs
8762 ;;
8763 esac
8764 else case e in #(
8765 e) enable_static=yes ;;
8766 esac
8767 fi
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777 # Check whether --enable-pic was given.
8778 if test ${enable_pic+y}
8779 then :
8780 enableval=$enable_pic; lt_p=${PACKAGE-default}
8781 case $enableval in
8782 yes|no) pic_mode=$enableval ;;
8783 *)
8784 pic_mode=default
8785 # Look at the argument we got. We use all the common list separators.
8786 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8787 for lt_pkg in $enableval; do
8788 IFS=$lt_save_ifs
8789 if test "X$lt_pkg" = "X$lt_p"; then
8790 pic_mode=yes
8791 fi
8792 done
8793 IFS=$lt_save_ifs
8794 ;;
8795 esac
8796 else case e in #(
8797 e) # Check whether --with-pic was given.
8798 if test ${with_pic+y}
8799 then :
8800 withval=$with_pic; lt_p=${PACKAGE-default}
8801 case $withval in
8802 yes|no) pic_mode=$withval ;;
8803 *)
8804 pic_mode=default
8805 # Look at the argument we got. We use all the common list separators.
8806 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8807 for lt_pkg in $withval; do
8808 IFS=$lt_save_ifs
8809 if test "X$lt_pkg" = "X$lt_p"; then
8810 pic_mode=yes
8811 fi
8812 done
8813 IFS=$lt_save_ifs
8814 ;;
8815 esac
8816 else case e in #(
8817 e) pic_mode=default ;;
8818 esac
8819 fi
8820
8821 ;;
8822 esac
8823 fi
8824
8825
8826
8827
8828
8829
8830
8831
8832 # Check whether --enable-fast-install was given.
8833 if test ${enable_fast_install+y}
8834 then :
8835 enableval=$enable_fast_install; p=${PACKAGE-default}
8836 case $enableval in
8837 yes) enable_fast_install=yes ;;
8838 no) enable_fast_install=no ;;
8839 *)
8840 enable_fast_install=no
8841 # Look at the argument we got. We use all the common list separators.
8842 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8843 for pkg in $enableval; do
8844 IFS=$lt_save_ifs
8845 if test "X$pkg" = "X$p"; then
8846 enable_fast_install=yes
8847 fi
8848 done
8849 IFS=$lt_save_ifs
8850 ;;
8851 esac
8852 else case e in #(
8853 e) enable_fast_install=yes ;;
8854 esac
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863
8864 shared_archive_member_spec=
8865 case $host,$enable_shared in
8866 power*-*-aix[5-9]*,yes)
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8868 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8869 # Check whether --enable-aix-soname was given.
8870 if test ${enable_aix_soname+y}
8871 then :
8872 enableval=$enable_aix_soname; case $enableval in
8873 aix|svr4|both)
8874 ;;
8875 *)
8876 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8877 ;;
8878 esac
8879 lt_cv_with_aix_soname=$enable_aix_soname
8880 else case e in #(
8881 e) # Check whether --with-aix-soname was given.
8882 if test ${with_aix_soname+y}
8883 then :
8884 withval=$with_aix_soname; case $withval in
8885 aix|svr4|both)
8886 ;;
8887 *)
8888 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8889 ;;
8890 esac
8891 lt_cv_with_aix_soname=$with_aix_soname
8892 else case e in #(
8893 e) if test ${lt_cv_with_aix_soname+y}
8894 then :
8895 printf %s "(cached) " >&6
8896 else case e in #(
8897 e) lt_cv_with_aix_soname=aix ;;
8898 esac
8899 fi
8900 ;;
8901 esac
8902 fi
8903
8904 enable_aix_soname=$lt_cv_with_aix_soname ;;
8905 esac
8906 fi
8907
8908 with_aix_soname=$enable_aix_soname
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8910 printf "%s\n" "$with_aix_soname" >&6; }
8911 if test aix != "$with_aix_soname"; then
8912 # For the AIX way of multilib, we name the shared archive member
8913 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8914 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8915 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8916 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8917 if test 64 = "${OBJECT_MODE-32}"; then
8918 shared_archive_member_spec=shr_64
8919 else
8920 shared_archive_member_spec=shr
8921 fi
8922 fi
8923 ;;
8924 *)
8925 with_aix_soname=aix
8926 ;;
8927 esac
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938 # This can be used to rebuild libtool when needed
8939 LIBTOOL_DEPS=$ltmain
8940
8941 # Always use our own libtool.
8942 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 test -z "$LN_S" && LN_S="ln -s"
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 if test -n "${ZSH_VERSION+set}"; then
8989 setopt NO_GLOB_SUBST
8990 fi
8991
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8993 printf %s "checking for objdir... " >&6; }
8994 if test ${lt_cv_objdir+y}
8995 then :
8996 printf %s "(cached) " >&6
8997 else case e in #(
8998 e) rm -f .libs 2>/dev/null
8999 mkdir .libs 2>/dev/null
9000 if test -d .libs; then
9001 lt_cv_objdir=.libs
9002 else
9003 # MS-DOS does not allow filenames that begin with a dot.
9004 lt_cv_objdir=_libs
9005 fi
9006 rmdir .libs 2>/dev/null ;;
9007 esac
9008 fi
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9010 printf "%s\n" "$lt_cv_objdir" >&6; }
9011 objdir=$lt_cv_objdir
9012
9013
9014
9015
9016
9017 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9018
9019
9020
9021
9022 case $host_os in
9023 aix3*)
9024 # AIX sometimes has problems with the GCC collect2 program. For some
9025 # reason, if we set the COLLECT_NAMES environment variable, the problems
9026 # vanish in a puff of smoke.
9027 if test set != "${COLLECT_NAMES+set}"; then
9028 COLLECT_NAMES=
9029 export COLLECT_NAMES
9030 fi
9031 ;;
9032 esac
9033
9034 # Global variables:
9035 ofile=libtool
9036 can_build_shared=yes
9037
9038 # All known linkers require a '.a' archive for static linking (except MSVC and
9039 # ICC, which need '.lib').
9040 libext=a
9041
9042 with_gnu_ld=$lt_cv_prog_gnu_ld
9043
9044 old_CC=$CC
9045 old_CFLAGS=$CFLAGS
9046
9047 # Set sane defaults for various variables
9048 test -z "$CC" && CC=cc
9049 test -z "$LTCC" && LTCC=$CC
9050 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9051 test -z "$LD" && LD=ld
9052 test -z "$ac_objext" && ac_objext=o
9053
9054 func_cc_basename $compiler
9055 cc_basename=$func_cc_basename_result
9056
9057
9058 # Only perform the check for file, if the check method requires it
9059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9060 case $deplibs_check_method in
9061 file_magic*)
9062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9064 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9065 if test ${lt_cv_path_MAGIC_CMD+y}
9066 then :
9067 printf %s "(cached) " >&6
9068 else case e in #(
9069 e) case $MAGIC_CMD in
9070 [\\/*] | ?:[\\/]*)
9071 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9072 ;;
9073 *)
9074 lt_save_MAGIC_CMD=$MAGIC_CMD
9075 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9077 for ac_dir in $ac_dummy; do
9078 IFS=$lt_save_ifs
9079 test -z "$ac_dir" && ac_dir=.
9080 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9081 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9082 if test -n "$file_magic_test_file"; then
9083 case $deplibs_check_method in
9084 "file_magic "*)
9085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9088 $EGREP "$file_magic_regex" > /dev/null; then
9089 :
9090 else
9091 cat <<_LT_EOF 1>&2
9092
9093 *** Warning: the command libtool uses to detect shared libraries,
9094 *** $file_magic_cmd, produces output that libtool cannot recognize.
9095 *** The result is that libtool may fail to recognize shared libraries
9096 *** as such. This will affect the creation of libtool libraries that
9097 *** depend on shared libraries, but programs linked with such libtool
9098 *** libraries will work regardless of this problem. Nevertheless, you
9099 *** may want to report the problem to your system manager and/or to
9100 *** [email protected]
9101
9102 _LT_EOF
9103 fi ;;
9104 esac
9105 fi
9106 break
9107 fi
9108 done
9109 IFS=$lt_save_ifs
9110 MAGIC_CMD=$lt_save_MAGIC_CMD
9111 ;;
9112 esac ;;
9113 esac
9114 fi
9115
9116 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9117 if test -n "$MAGIC_CMD"; then
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9119 printf "%s\n" "$MAGIC_CMD" >&6; }
9120 else
9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 printf "%s\n" "no" >&6; }
9123 fi
9124
9125
9126
9127
9128
9129 if test -z "$lt_cv_path_MAGIC_CMD"; then
9130 if test -n "$ac_tool_prefix"; then
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9132 printf %s "checking for file... " >&6; }
9133 if test ${lt_cv_path_MAGIC_CMD+y}
9134 then :
9135 printf %s "(cached) " >&6
9136 else case e in #(
9137 e) case $MAGIC_CMD in
9138 [\\/*] | ?:[\\/]*)
9139 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9140 ;;
9141 *)
9142 lt_save_MAGIC_CMD=$MAGIC_CMD
9143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9145 for ac_dir in $ac_dummy; do
9146 IFS=$lt_save_ifs
9147 test -z "$ac_dir" && ac_dir=.
9148 if test -f "$ac_dir/file"; then
9149 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9150 if test -n "$file_magic_test_file"; then
9151 case $deplibs_check_method in
9152 "file_magic "*)
9153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9156 $EGREP "$file_magic_regex" > /dev/null; then
9157 :
9158 else
9159 cat <<_LT_EOF 1>&2
9160
9161 *** Warning: the command libtool uses to detect shared libraries,
9162 *** $file_magic_cmd, produces output that libtool cannot recognize.
9163 *** The result is that libtool may fail to recognize shared libraries
9164 *** as such. This will affect the creation of libtool libraries that
9165 *** depend on shared libraries, but programs linked with such libtool
9166 *** libraries will work regardless of this problem. Nevertheless, you
9167 *** may want to report the problem to your system manager and/or to
9168 *** [email protected]
9169
9170 _LT_EOF
9171 fi ;;
9172 esac
9173 fi
9174 break
9175 fi
9176 done
9177 IFS=$lt_save_ifs
9178 MAGIC_CMD=$lt_save_MAGIC_CMD
9179 ;;
9180 esac ;;
9181 esac
9182 fi
9183
9184 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9185 if test -n "$MAGIC_CMD"; then
9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9187 printf "%s\n" "$MAGIC_CMD" >&6; }
9188 else
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190 printf "%s\n" "no" >&6; }
9191 fi
9192
9193
9194 else
9195 MAGIC_CMD=:
9196 fi
9197 fi
9198
9199 fi
9200 ;;
9201 esac
9202
9203 # Use C for the default configuration in the libtool script
9204
9205 lt_save_CC=$CC
9206 ac_ext=c
9207 ac_cpp='$CPP $CPPFLAGS'
9208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9211
9212
9213 # Source file extension for C test sources.
9214 ac_ext=c
9215
9216 # Object file extension for compiled C test sources.
9217 objext=o
9218 objext=$objext
9219
9220 # Code to be used in simple compile tests
9221 lt_simple_compile_test_code="int some_variable = 0;"
9222
9223 # Code to be used in simple link tests
9224 lt_simple_link_test_code='int main(void){return(0);}'
9225
9226
9227
9228
9229
9230
9231
9232 # If no C compiler was specified, use CC.
9233 LTCC=${LTCC-"$CC"}
9234
9235 # If no C compiler flags were specified, use CFLAGS.
9236 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9237
9238 # Allow CC to be a program name with arguments.
9239 compiler=$CC
9240
9241 # Save the default compiler, since it gets overwritten when the other
9242 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9243 compiler_DEFAULT=$CC
9244
9245 # save warnings/boilerplate of simple test code
9246 ac_outfile=conftest.$ac_objext
9247 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9249 _lt_compiler_boilerplate=`cat conftest.err`
9250 $RM conftest*
9251
9252 ac_outfile=conftest.$ac_objext
9253 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9254 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9255 _lt_linker_boilerplate=`cat conftest.err`
9256 $RM -r conftest*
9257
9258
9259 ## CAVEAT EMPTOR:
9260 ## There is no encapsulation within the following macros, do not change
9261 ## the running order or otherwise move them around unless you know exactly
9262 ## what you are doing...
9263 if test -n "$compiler"; then
9264
9265 lt_prog_compiler_no_builtin_flag=
9266
9267 if test yes = "$GCC"; then
9268 case $cc_basename in
9269 nvcc*)
9270 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9271 *)
9272 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9273 esac
9274
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9276 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9277 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9278 then :
9279 printf %s "(cached) " >&6
9280 else case e in #(
9281 e) lt_cv_prog_compiler_rtti_exceptions=no
9282 ac_outfile=conftest.$ac_objext
9283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9284 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9285 # Insert the option either (1) after the last *FLAGS variable, or
9286 # (2) before a word containing "conftest.", or (3) at the end.
9287 # Note that $ac_compile itself does not contain backslashes and begins
9288 # with a dollar sign (not a hyphen), so the echo should work correctly.
9289 # The option is referenced via a variable to avoid confusing sed.
9290 lt_compile=`echo "$ac_compile" | $SED \
9291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9293 -e 's:$: $lt_compiler_flag:'`
9294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9295 (eval "$lt_compile" 2>conftest.err)
9296 ac_status=$?
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 if (exit $ac_status) && test -s "$ac_outfile"; then
9300 # The compiler can only warn and ignore the option if not recognized
9301 # So say no if there are warnings other than the usual output.
9302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9305 lt_cv_prog_compiler_rtti_exceptions=yes
9306 fi
9307 fi
9308 $RM conftest*
9309 ;;
9310 esac
9311 fi
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9313 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9314
9315 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9316 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9317 else
9318 :
9319 fi
9320
9321 fi
9322
9323
9324
9325
9326
9327
9328 lt_prog_compiler_wl=
9329 lt_prog_compiler_pic=
9330 lt_prog_compiler_static=
9331
9332
9333 if test yes = "$GCC"; then
9334 lt_prog_compiler_wl='-Wl,'
9335 lt_prog_compiler_static='-static'
9336
9337 case $host_os in
9338 aix*)
9339 # All AIX code is PIC.
9340 if test ia64 = "$host_cpu"; then
9341 # AIX 5 now supports IA64 processor
9342 lt_prog_compiler_static='-Bstatic'
9343 fi
9344 lt_prog_compiler_pic='-fPIC'
9345 ;;
9346
9347 amigaos*)
9348 case $host_cpu in
9349 powerpc)
9350 # see comment about AmigaOS4 .so support
9351 lt_prog_compiler_pic='-fPIC'
9352 ;;
9353 m68k)
9354 # FIXME: we need at least 68020 code to build shared libraries, but
9355 # adding the '-m68020' flag to GCC prevents building anything better,
9356 # like '-m68040'.
9357 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9358 ;;
9359 esac
9360 ;;
9361
9362 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9363 # PIC is the default for these OSes.
9364 ;;
9365
9366 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9367 # This hack is so that the source file can tell whether it is being
9368 # built for inclusion in a dll (and should export symbols for example).
9369 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9370 # (--disable-auto-import) libraries
9371 lt_prog_compiler_pic='-DDLL_EXPORT'
9372 case $host_os in
9373 os2*)
9374 lt_prog_compiler_static='$wl-static'
9375 ;;
9376 esac
9377 ;;
9378
9379 darwin* | rhapsody*)
9380 # PIC is the default on this platform
9381 # Common symbols not allowed in MH_DYLIB files
9382 lt_prog_compiler_pic='-fno-common'
9383 ;;
9384
9385 haiku*)
9386 # PIC is the default for Haiku.
9387 # The "-static" flag exists, but is broken.
9388 lt_prog_compiler_static=
9389 ;;
9390
9391 hpux*)
9392 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9393 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9394 # sets the default TLS model and affects inlining.
9395 case $host_cpu in
9396 hppa*64*)
9397 # +Z the default
9398 ;;
9399 *)
9400 lt_prog_compiler_pic='-fPIC'
9401 ;;
9402 esac
9403 ;;
9404
9405 interix[3-9]*)
9406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9407 # Instead, we relocate shared libraries at runtime.
9408 ;;
9409
9410 msdosdjgpp*)
9411 # Just because we use GCC doesn't mean we suddenly get shared libraries
9412 # on systems that don't support them.
9413 lt_prog_compiler_can_build_shared=no
9414 enable_shared=no
9415 ;;
9416
9417 *nto* | *qnx*)
9418 # QNX uses GNU C++, but need to define -shared option too, otherwise
9419 # it will coredump.
9420 lt_prog_compiler_pic='-fPIC -shared'
9421 ;;
9422
9423 sysv4*MP*)
9424 if test -d /usr/nec; then
9425 lt_prog_compiler_pic=-Kconform_pic
9426 fi
9427 ;;
9428
9429 *)
9430 lt_prog_compiler_pic='-fPIC'
9431 ;;
9432 esac
9433
9434 case $cc_basename in
9435 nvcc*) # Cuda Compiler Driver 2.2
9436 lt_prog_compiler_wl='-Xlinker '
9437 if test -n "$lt_prog_compiler_pic"; then
9438 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9439 fi
9440 ;;
9441 esac
9442 else
9443 # PORTME Check for flag to pass linker flags through the system compiler.
9444 case $host_os in
9445 aix*)
9446 lt_prog_compiler_wl='-Wl,'
9447 if test ia64 = "$host_cpu"; then
9448 # AIX 5 now supports IA64 processor
9449 lt_prog_compiler_static='-Bstatic'
9450 else
9451 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9452 fi
9453 ;;
9454
9455 darwin* | rhapsody*)
9456 # PIC is the default on this platform
9457 # Common symbols not allowed in MH_DYLIB files
9458 lt_prog_compiler_pic='-fno-common'
9459 case $cc_basename in
9460 nagfor*)
9461 # NAG Fortran compiler
9462 lt_prog_compiler_wl='-Wl,-Wl,,'
9463 lt_prog_compiler_pic='-PIC'
9464 lt_prog_compiler_static='-Bstatic'
9465 ;;
9466 esac
9467 ;;
9468
9469 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9470 # This hack is so that the source file can tell whether it is being
9471 # built for inclusion in a dll (and should export symbols for example).
9472 lt_prog_compiler_pic='-DDLL_EXPORT'
9473 case $host_os in
9474 os2*)
9475 lt_prog_compiler_static='$wl-static'
9476 ;;
9477 esac
9478 ;;
9479
9480 hpux9* | hpux10* | hpux11*)
9481 lt_prog_compiler_wl='-Wl,'
9482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9483 # not for PA HP-UX.
9484 case $host_cpu in
9485 hppa*64*|ia64*)
9486 # +Z the default
9487 ;;
9488 *)
9489 lt_prog_compiler_pic='+Z'
9490 ;;
9491 esac
9492 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9493 lt_prog_compiler_static='$wl-a ${wl}archive'
9494 ;;
9495
9496 irix5* | irix6* | nonstopux*)
9497 lt_prog_compiler_wl='-Wl,'
9498 # PIC (with -KPIC) is the default.
9499 lt_prog_compiler_static='-non_shared'
9500 ;;
9501
9502 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9503 case $cc_basename in
9504 # old Intel for x86_64, which still supported -KPIC.
9505 ecc*)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-static'
9509 ;;
9510 *flang* | ftn | f18* | f95*)
9511 # Flang compiler.
9512 lt_prog_compiler_wl='-Wl,'
9513 lt_prog_compiler_pic='-fPIC'
9514 lt_prog_compiler_static='-static'
9515 ;;
9516 # icc used to be incompatible with GCC.
9517 # ICC 10 doesn't accept -KPIC any more.
9518 icc* | ifort*)
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-fPIC'
9521 lt_prog_compiler_static='-static'
9522 ;;
9523 # Lahey Fortran 8.1.
9524 lf95*)
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='--shared'
9527 lt_prog_compiler_static='--static'
9528 ;;
9529 nagfor*)
9530 # NAG Fortran compiler
9531 lt_prog_compiler_wl='-Wl,-Wl,,'
9532 lt_prog_compiler_pic='-PIC'
9533 lt_prog_compiler_static='-Bstatic'
9534 ;;
9535 tcc*)
9536 # Fabrice Bellard et al's Tiny C Compiler
9537 lt_prog_compiler_wl='-Wl,'
9538 lt_prog_compiler_pic='-fPIC'
9539 lt_prog_compiler_static='-static'
9540 ;;
9541 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9542 # Portland Group compilers (*not* the Pentium gcc compiler,
9543 # which looks to be a dead project)
9544 lt_prog_compiler_wl='-Wl,'
9545 lt_prog_compiler_pic='-fpic'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9548 ccc*)
9549 lt_prog_compiler_wl='-Wl,'
9550 # All Alpha code is PIC.
9551 lt_prog_compiler_static='-non_shared'
9552 ;;
9553 xl* | bgxl* | bgf* | mpixl*)
9554 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9555 lt_prog_compiler_wl='-Wl,'
9556 lt_prog_compiler_pic='-qpic'
9557 lt_prog_compiler_static='-qstaticlink'
9558 ;;
9559 *)
9560 case `$CC -V 2>&1 | $SED 5q` in
9561 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9562 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 lt_prog_compiler_wl=''
9566 ;;
9567 *Sun\ F* | *Sun*Fortran*)
9568 lt_prog_compiler_pic='-KPIC'
9569 lt_prog_compiler_static='-Bstatic'
9570 lt_prog_compiler_wl='-Qoption ld '
9571 ;;
9572 *Sun\ C*)
9573 # Sun C 5.9
9574 lt_prog_compiler_pic='-KPIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_wl='-Wl,'
9577 ;;
9578 *Intel*\ [CF]*Compiler*)
9579 lt_prog_compiler_wl='-Wl,'
9580 lt_prog_compiler_pic='-fPIC'
9581 lt_prog_compiler_static='-static'
9582 ;;
9583 *Portland\ Group*)
9584 lt_prog_compiler_wl='-Wl,'
9585 lt_prog_compiler_pic='-fpic'
9586 lt_prog_compiler_static='-Bstatic'
9587 ;;
9588 esac
9589 ;;
9590 esac
9591 ;;
9592
9593 newsos6)
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 ;;
9597
9598 *-mlibc)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='-fPIC'
9601 lt_prog_compiler_static='-static'
9602 ;;
9603
9604 *nto* | *qnx*)
9605 # QNX uses GNU C++, but need to define -shared option too, otherwise
9606 # it will coredump.
9607 lt_prog_compiler_pic='-fPIC -shared'
9608 ;;
9609
9610 osf3* | osf4* | osf5*)
9611 lt_prog_compiler_wl='-Wl,'
9612 # All OSF/1 code is PIC.
9613 lt_prog_compiler_static='-non_shared'
9614 ;;
9615
9616 rdos*)
9617 lt_prog_compiler_static='-non_shared'
9618 ;;
9619
9620 serenity*)
9621 ;;
9622
9623 solaris*)
9624 lt_prog_compiler_pic='-KPIC'
9625 lt_prog_compiler_static='-Bstatic'
9626 case $cc_basename in
9627 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9628 lt_prog_compiler_wl='-Qoption ld ';;
9629 *)
9630 lt_prog_compiler_wl='-Wl,';;
9631 esac
9632 ;;
9633
9634 sunos4*)
9635 lt_prog_compiler_wl='-Qoption ld '
9636 lt_prog_compiler_pic='-PIC'
9637 lt_prog_compiler_static='-Bstatic'
9638 ;;
9639
9640 sysv4 | sysv4.2uw2* | sysv4.3*)
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_pic='-KPIC'
9643 lt_prog_compiler_static='-Bstatic'
9644 ;;
9645
9646 sysv4*MP*)
9647 if test -d /usr/nec; then
9648 lt_prog_compiler_pic='-Kconform_pic'
9649 lt_prog_compiler_static='-Bstatic'
9650 fi
9651 ;;
9652
9653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9654 lt_prog_compiler_wl='-Wl,'
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 ;;
9658
9659 unicos*)
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_can_build_shared=no
9662 ;;
9663
9664 uts4*)
9665 lt_prog_compiler_pic='-pic'
9666 lt_prog_compiler_static='-Bstatic'
9667 ;;
9668
9669 *)
9670 lt_prog_compiler_can_build_shared=no
9671 ;;
9672 esac
9673 fi
9674
9675 case $host_os in
9676 # For platforms that do not support PIC, -DPIC is meaningless:
9677 *djgpp*)
9678 lt_prog_compiler_pic=
9679 ;;
9680 *)
9681 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9682 ;;
9683 esac
9684
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9686 printf %s "checking for $compiler option to produce PIC... " >&6; }
9687 if test ${lt_cv_prog_compiler_pic+y}
9688 then :
9689 printf %s "(cached) " >&6
9690 else case e in #(
9691 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9692 esac
9693 fi
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9695 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9696 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9697
9698 #
9699 # Check to make sure the PIC flag actually works.
9700 #
9701 if test -n "$lt_prog_compiler_pic"; then
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9703 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9704 if test ${lt_cv_prog_compiler_pic_works+y}
9705 then :
9706 printf %s "(cached) " >&6
9707 else case e in #(
9708 e) lt_cv_prog_compiler_pic_works=no
9709 ac_outfile=conftest.$ac_objext
9710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9712 # Insert the option either (1) after the last *FLAGS variable, or
9713 # (2) before a word containing "conftest.", or (3) at the end.
9714 # Note that $ac_compile itself does not contain backslashes and begins
9715 # with a dollar sign (not a hyphen), so the echo should work correctly.
9716 # The option is referenced via a variable to avoid confusing sed.
9717 lt_compile=`echo "$ac_compile" | $SED \
9718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9720 -e 's:$: $lt_compiler_flag:'`
9721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9722 (eval "$lt_compile" 2>conftest.err)
9723 ac_status=$?
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 if (exit $ac_status) && test -s "$ac_outfile"; then
9727 # The compiler can only warn and ignore the option if not recognized
9728 # So say no if there are warnings other than the usual output.
9729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler_pic_works=yes
9733 fi
9734 fi
9735 $RM conftest*
9736 ;;
9737 esac
9738 fi
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9740 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9741
9742 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9743 case $lt_prog_compiler_pic in
9744 "" | " "*) ;;
9745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9746 esac
9747 else
9748 lt_prog_compiler_pic=
9749 lt_prog_compiler_can_build_shared=no
9750 fi
9751
9752 fi
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764 #
9765 # Check to make sure the static flag actually works.
9766 #
9767 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9769 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9770 if test ${lt_cv_prog_compiler_static_works+y}
9771 then :
9772 printf %s "(cached) " >&6
9773 else case e in #(
9774 e) lt_cv_prog_compiler_static_works=no
9775 save_LDFLAGS=$LDFLAGS
9776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9779 # The linker can only warn and ignore the option if not recognized
9780 # So say no if there are warnings
9781 if test -s conftest.err; then
9782 # Append any errors to the config.log.
9783 cat conftest.err 1>&5
9784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786 if diff conftest.exp conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler_static_works=yes
9788 fi
9789 else
9790 lt_cv_prog_compiler_static_works=yes
9791 fi
9792 fi
9793 $RM -r conftest*
9794 LDFLAGS=$save_LDFLAGS
9795 ;;
9796 esac
9797 fi
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9799 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9800
9801 if test yes = "$lt_cv_prog_compiler_static_works"; then
9802 :
9803 else
9804 lt_prog_compiler_static=
9805 fi
9806
9807
9808
9809
9810
9811
9812
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9814 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9815 if test ${lt_cv_prog_compiler_c_o+y}
9816 then :
9817 printf %s "(cached) " >&6
9818 else case e in #(
9819 e) lt_cv_prog_compiler_c_o=no
9820 $RM -r conftest 2>/dev/null
9821 mkdir conftest
9822 cd conftest
9823 mkdir out
9824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9825
9826 lt_compiler_flag="-o out/conftest2.$ac_objext"
9827 # Insert the option either (1) after the last *FLAGS variable, or
9828 # (2) before a word containing "conftest.", or (3) at the end.
9829 # Note that $ac_compile itself does not contain backslashes and begins
9830 # with a dollar sign (not a hyphen), so the echo should work correctly.
9831 lt_compile=`echo "$ac_compile" | $SED \
9832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9834 -e 's:$: $lt_compiler_flag:'`
9835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9836 (eval "$lt_compile" 2>out/conftest.err)
9837 ac_status=$?
9838 cat out/conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9841 then
9842 # The compiler can only warn and ignore the option if not recognized
9843 # So say no if there are warnings
9844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9847 lt_cv_prog_compiler_c_o=yes
9848 fi
9849 fi
9850 chmod u+w . 2>&5
9851 $RM conftest*
9852 # SGI C++ compiler will create directory out/ii_files/ for
9853 # template instantiation
9854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9855 $RM out/* && rmdir out
9856 cd ..
9857 $RM -r conftest
9858 $RM conftest*
9859 ;;
9860 esac
9861 fi
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9863 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9864
9865
9866
9867
9868
9869
9870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9871 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9872 if test ${lt_cv_prog_compiler_c_o+y}
9873 then :
9874 printf %s "(cached) " >&6
9875 else case e in #(
9876 e) lt_cv_prog_compiler_c_o=no
9877 $RM -r conftest 2>/dev/null
9878 mkdir conftest
9879 cd conftest
9880 mkdir out
9881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9882
9883 lt_compiler_flag="-o out/conftest2.$ac_objext"
9884 # Insert the option either (1) after the last *FLAGS variable, or
9885 # (2) before a word containing "conftest.", or (3) at the end.
9886 # Note that $ac_compile itself does not contain backslashes and begins
9887 # with a dollar sign (not a hyphen), so the echo should work correctly.
9888 lt_compile=`echo "$ac_compile" | $SED \
9889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9891 -e 's:$: $lt_compiler_flag:'`
9892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9893 (eval "$lt_compile" 2>out/conftest.err)
9894 ac_status=$?
9895 cat out/conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9898 then
9899 # The compiler can only warn and ignore the option if not recognized
9900 # So say no if there are warnings
9901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9904 lt_cv_prog_compiler_c_o=yes
9905 fi
9906 fi
9907 chmod u+w . 2>&5
9908 $RM conftest*
9909 # SGI C++ compiler will create directory out/ii_files/ for
9910 # template instantiation
9911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9912 $RM out/* && rmdir out
9913 cd ..
9914 $RM -r conftest
9915 $RM conftest*
9916 ;;
9917 esac
9918 fi
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9920 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9921
9922
9923
9924
9925 hard_links=nottested
9926 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9927 # do not overwrite the value of need_locks provided by the user
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9929 printf %s "checking if we can lock with hard links... " >&6; }
9930 hard_links=yes
9931 $RM conftest*
9932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9933 touch conftest.a
9934 ln conftest.a conftest.b 2>&5 || hard_links=no
9935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9937 printf "%s\n" "$hard_links" >&6; }
9938 if test no = "$hard_links"; then
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9940 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9941 need_locks=warn
9942 fi
9943 else
9944 need_locks=no
9945 fi
9946
9947
9948
9949
9950
9951
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9953 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9954
9955 runpath_var=
9956 allow_undefined_flag=
9957 always_export_symbols=no
9958 archive_cmds=
9959 archive_expsym_cmds=
9960 compiler_needs_object=no
9961 enable_shared_with_static_runtimes=no
9962 export_dynamic_flag_spec=
9963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9964 hardcode_automatic=no
9965 hardcode_direct=no
9966 hardcode_direct_absolute=no
9967 hardcode_libdir_flag_spec=
9968 hardcode_libdir_separator=
9969 hardcode_minus_L=no
9970 hardcode_shlibpath_var=unsupported
9971 inherit_rpath=no
9972 link_all_deplibs=unknown
9973 module_cmds=
9974 module_expsym_cmds=
9975 old_archive_from_new_cmds=
9976 old_archive_from_expsyms_cmds=
9977 thread_safe_flag_spec=
9978 whole_archive_flag_spec=
9979 # include_expsyms should be a list of space-separated symbols to be *always*
9980 # included in the symbol list
9981 include_expsyms=
9982 # exclude_expsyms can be an extended regexp of symbols to exclude
9983 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9984 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9985 # as well as any symbol that contains 'd'.
9986 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9987 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9988 # platforms (ab)use it in PIC code, but their linkers get confused if
9989 # the symbol is explicitly referenced. Since portable code cannot
9990 # rely on this symbol name, it's probably fine to never include it in
9991 # preloaded symbol tables.
9992 # Exclude shared library initialization/finalization symbols.
9993 extract_expsyms_cmds=
9994
9995 case $host_os in
9996 cygwin* | mingw* | windows* | pw32* | cegcc*)
9997 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9998 # When not using gcc, we currently assume that we are using
9999 # Microsoft Visual C++ or Intel C++ Compiler.
10000 if test yes != "$GCC"; then
10001 with_gnu_ld=no
10002 fi
10003 ;;
10004 interix*)
10005 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10006 with_gnu_ld=yes
10007 ;;
10008 esac
10009
10010 ld_shlibs=yes
10011
10012 # On some targets, GNU ld is compatible enough with the native linker
10013 # that we're better off using the native interface for both.
10014 lt_use_gnu_ld_interface=no
10015 if test yes = "$with_gnu_ld"; then
10016 case $host_os in
10017 aix*)
10018 # The AIX port of GNU ld has always aspired to compatibility
10019 # with the native linker. However, as the warning in the GNU ld
10020 # block says, versions before 2.19.5* couldn't really create working
10021 # shared libraries, regardless of the interface used.
10022 case `$LD -v 2>&1` in
10023 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10024 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10025 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10026 *)
10027 lt_use_gnu_ld_interface=yes
10028 ;;
10029 esac
10030 ;;
10031 *)
10032 lt_use_gnu_ld_interface=yes
10033 ;;
10034 esac
10035 fi
10036
10037 if test yes = "$lt_use_gnu_ld_interface"; then
10038 # If archive_cmds runs LD, not CC, wlarc should be empty
10039 wlarc='$wl'
10040
10041 # Set some defaults for GNU ld with shared library support. These
10042 # are reset later if shared libraries are not supported. Putting them
10043 # here allows them to be overridden if necessary.
10044 runpath_var=LD_RUN_PATH
10045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10046 export_dynamic_flag_spec='$wl--export-dynamic'
10047 # ancient GNU ld didn't support --whole-archive et. al.
10048 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10049 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10050 else
10051 whole_archive_flag_spec=
10052 fi
10053 supports_anon_versioning=no
10054 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10055 *GNU\ gold*) supports_anon_versioning=yes ;;
10056 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10057 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10058 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10059 *\ 2.11.*) ;; # other 2.11 versions
10060 *) supports_anon_versioning=yes ;;
10061 esac
10062
10063 # See if GNU ld supports shared libraries.
10064 case $host_os in
10065 aix[3-9]*)
10066 # On AIX/PPC, the GNU linker is very broken
10067 if test ia64 != "$host_cpu"; then
10068 ld_shlibs=no
10069 cat <<_LT_EOF 1>&2
10070
10071 *** Warning: the GNU linker, at least up to release 2.19, is reported
10072 *** to be unable to reliably create shared libraries on AIX.
10073 *** Therefore, libtool is disabling shared libraries support. If you
10074 *** really care for shared libraries, you may want to install binutils
10075 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10076 *** You will then need to restart the configuration process.
10077
10078 _LT_EOF
10079 fi
10080 ;;
10081
10082 amigaos*)
10083 case $host_cpu in
10084 powerpc)
10085 # see comment about AmigaOS4 .so support
10086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10087 archive_expsym_cmds=''
10088 ;;
10089 m68k)
10090 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_minus_L=yes
10093 ;;
10094 esac
10095 ;;
10096
10097 beos*)
10098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10099 allow_undefined_flag=unsupported
10100 # Joseph Beckenbach <[email protected]> says some releases of gcc
10101 # support --undefined. This deserves some investigation. FIXME
10102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10103 else
10104 ld_shlibs=no
10105 fi
10106 ;;
10107
10108 cygwin* | mingw* | windows* | pw32* | cegcc*)
10109 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10110 # as there is no search path for DLLs.
10111 hardcode_libdir_flag_spec='-L$libdir'
10112 export_dynamic_flag_spec='$wl--export-all-symbols'
10113 allow_undefined_flag=unsupported
10114 always_export_symbols=no
10115 enable_shared_with_static_runtimes=yes
10116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10117 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10118 file_list_spec='@'
10119
10120 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10122 # If the export-symbols file already is a .def file, use it as
10123 # is; otherwise, prepend EXPORTS...
10124 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10125 cp $export_symbols $output_objdir/$soname.def;
10126 else
10127 echo EXPORTS > $output_objdir/$soname.def;
10128 cat $export_symbols >> $output_objdir/$soname.def;
10129 fi~
10130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10131 else
10132 ld_shlibs=no
10133 fi
10134 ;;
10135
10136 haiku*)
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10138 link_all_deplibs=no
10139 ;;
10140
10141 os2*)
10142 hardcode_libdir_flag_spec='-L$libdir'
10143 hardcode_minus_L=yes
10144 allow_undefined_flag=unsupported
10145 shrext_cmds=.dll
10146 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10147 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10148 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10149 $ECHO EXPORTS >> $output_objdir/$libname.def~
10150 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10152 emximp -o $lib $output_objdir/$libname.def'
10153 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10156 $ECHO EXPORTS >> $output_objdir/$libname.def~
10157 prefix_cmds="$SED"~
10158 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10159 prefix_cmds="$prefix_cmds -e 1d";
10160 fi~
10161 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10162 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10163 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10164 emximp -o $lib $output_objdir/$libname.def'
10165 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10166 enable_shared_with_static_runtimes=yes
10167 file_list_spec='@'
10168 ;;
10169
10170 interix[3-9]*)
10171 hardcode_direct=no
10172 hardcode_shlibpath_var=no
10173 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10174 export_dynamic_flag_spec='$wl-E'
10175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10176 # Instead, shared libraries are loaded at an image base (0x10000000 by
10177 # default) and relocated if they conflict, which is a slow very memory
10178 # consuming and fragmenting process. To avoid this, we pick a random,
10179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10182 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10183 ;;
10184
10185 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10186 tmp_diet=no
10187 if test linux-dietlibc = "$host_os"; then
10188 case $cc_basename in
10189 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10190 esac
10191 fi
10192 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10193 && test no = "$tmp_diet"
10194 then
10195 tmp_addflag=' $pic_flag'
10196 tmp_sharedflag='-shared'
10197 case $cc_basename,$host_cpu in
10198 pgcc*) # Portland Group C compiler
10199 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10200 tmp_addflag=' $pic_flag'
10201 ;;
10202 pgf77* | pgf90* | pgf95* | pgfortran*)
10203 # Portland Group f77 and f90 compilers
10204 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10205 tmp_addflag=' $pic_flag -Mnomain' ;;
10206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10207 tmp_addflag=' -i_dynamic' ;;
10208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10209 tmp_addflag=' -i_dynamic -nofor_main' ;;
10210 ifc* | ifort*) # Intel Fortran compiler
10211 tmp_addflag=' -nofor_main' ;;
10212 lf95*) # Lahey Fortran 8.1
10213 whole_archive_flag_spec=
10214 tmp_sharedflag='--shared' ;;
10215 nagfor*) # NAGFOR 5.3
10216 tmp_sharedflag='-Wl,-shared' ;;
10217 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10218 tmp_sharedflag='-qmkshrobj'
10219 tmp_addflag= ;;
10220 nvcc*) # Cuda Compiler Driver 2.2
10221 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10222 compiler_needs_object=yes
10223 ;;
10224 esac
10225 case `$CC -V 2>&1 | $SED 5q` in
10226 *Sun\ C*) # Sun C 5.9
10227 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10228 compiler_needs_object=yes
10229 tmp_sharedflag='-G' ;;
10230 *Sun\ F*) # Sun Fortran 8.3
10231 tmp_sharedflag='-G' ;;
10232 esac
10233 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10234
10235 if test yes = "$supports_anon_versioning"; then
10236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10237 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10238 echo "local: *; };" >> $output_objdir/$libname.ver~
10239 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10240 fi
10241
10242 case $cc_basename in
10243 tcc*)
10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245 export_dynamic_flag_spec='-rdynamic'
10246 ;;
10247 xlf* | bgf* | bgxlf* | mpixlf*)
10248 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10249 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10251 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10252 if test yes = "$supports_anon_versioning"; then
10253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10254 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10255 echo "local: *; };" >> $output_objdir/$libname.ver~
10256 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10257 fi
10258 ;;
10259 esac
10260 else
10261 ld_shlibs=no
10262 fi
10263 ;;
10264
10265 *-mlibc)
10266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10267 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10268 ;;
10269
10270 netbsd* | netbsdelf*-gnu)
10271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10273 wlarc=
10274 else
10275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10277 fi
10278 ;;
10279
10280 solaris*)
10281 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10282 ld_shlibs=no
10283 cat <<_LT_EOF 1>&2
10284
10285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10286 *** create shared libraries on Solaris systems. Therefore, libtool
10287 *** is disabling shared libraries support. We urge you to upgrade GNU
10288 *** binutils to release 2.9.1 or newer. Another option is to modify
10289 *** your PATH or compiler configuration so that the native linker is
10290 *** used, and then restart.
10291
10292 _LT_EOF
10293 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10295 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10296 else
10297 ld_shlibs=no
10298 fi
10299 ;;
10300
10301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10302 case `$LD -v 2>&1` in
10303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10304 ld_shlibs=no
10305 cat <<_LT_EOF 1>&2
10306
10307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10308 *** reliably create shared libraries on SCO systems. Therefore, libtool
10309 *** is disabling shared libraries support. We urge you to upgrade GNU
10310 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10311 *** your PATH or compiler configuration so that the native linker is
10312 *** used, and then restart.
10313
10314 _LT_EOF
10315 ;;
10316 *)
10317 # For security reasons, it is highly recommended that you always
10318 # use absolute paths for naming shared libraries, and exclude the
10319 # DT_RUNPATH tag from executables and libraries. But doing so
10320 # requires that you compile everything twice, which is a pain.
10321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10325 else
10326 ld_shlibs=no
10327 fi
10328 ;;
10329 esac
10330 ;;
10331
10332 sunos4*)
10333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10334 wlarc=
10335 hardcode_direct=yes
10336 hardcode_shlibpath_var=no
10337 ;;
10338
10339 *)
10340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10342 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10343 else
10344 ld_shlibs=no
10345 fi
10346 ;;
10347 esac
10348
10349 if test no = "$ld_shlibs"; then
10350 runpath_var=
10351 hardcode_libdir_flag_spec=
10352 export_dynamic_flag_spec=
10353 whole_archive_flag_spec=
10354 fi
10355 else
10356 # PORTME fill in a description of your system's linker (not GNU ld)
10357 case $host_os in
10358 aix3*)
10359 allow_undefined_flag=unsupported
10360 always_export_symbols=yes
10361 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10362 # Note: this linker hardcodes the directories in LIBPATH if there
10363 # are no directories specified by -L.
10364 hardcode_minus_L=yes
10365 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10366 # Neither direct hardcoding nor static linking is supported with a
10367 # broken collect2.
10368 hardcode_direct=unsupported
10369 fi
10370 ;;
10371
10372 aix[4-9]*)
10373 if test ia64 = "$host_cpu"; then
10374 # On IA64, the linker does run time linking by default, so we don't
10375 # have to do anything special.
10376 aix_use_runtimelinking=no
10377 exp_sym_flag='-Bexport'
10378 no_entry_flag=
10379 else
10380 # If we're using GNU nm, then we don't want the "-C" option.
10381 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10382 # Without the "-l" option, or with the "-B" option, AIX nm treats
10383 # weak defined symbols like other global defined symbols, whereas
10384 # GNU nm marks them as "W".
10385 # While the 'weak' keyword is ignored in the Export File, we need
10386 # it in the Import File for the 'aix-soname' feature, so we have
10387 # to replace the "-B" option with "-P" for AIX nm.
10388 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10389 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10390 else
10391 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10392 fi
10393 aix_use_runtimelinking=no
10394
10395 # Test if we are trying to use run time linking or normal
10396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10397 # have runtime linking enabled, and use it for executables.
10398 # For shared libraries, we enable/disable runtime linking
10399 # depending on the kind of the shared library created -
10400 # when "with_aix_soname,aix_use_runtimelinking" is:
10401 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10402 # "aix,yes" lib.so shared, rtl:yes, for executables
10403 # lib.a static archive
10404 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10405 # lib.a(lib.so.V) shared, rtl:no, for executables
10406 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10407 # lib.a(lib.so.V) shared, rtl:no
10408 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10409 # lib.a static archive
10410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10411 for ld_flag in $LDFLAGS; do
10412 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10413 aix_use_runtimelinking=yes
10414 break
10415 fi
10416 done
10417 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10418 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10419 # so we don't have lib.a shared libs to link our executables.
10420 # We have to force runtime linking in this case.
10421 aix_use_runtimelinking=yes
10422 LDFLAGS="$LDFLAGS -Wl,-brtl"
10423 fi
10424 ;;
10425 esac
10426
10427 exp_sym_flag='-bexport'
10428 no_entry_flag='-bnoentry'
10429 fi
10430
10431 # When large executables or shared objects are built, AIX ld can
10432 # have problems creating the table of contents. If linking a library
10433 # or program results in "error TOC overflow" add -mminimal-toc to
10434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10436
10437 archive_cmds=''
10438 hardcode_direct=yes
10439 hardcode_direct_absolute=yes
10440 hardcode_libdir_separator=':'
10441 link_all_deplibs=yes
10442 file_list_spec='$wl-f,'
10443 case $with_aix_soname,$aix_use_runtimelinking in
10444 aix,*) ;; # traditional, no import file
10445 svr4,* | *,yes) # use import file
10446 # The Import File defines what to hardcode.
10447 hardcode_direct=no
10448 hardcode_direct_absolute=no
10449 ;;
10450 esac
10451
10452 if test yes = "$GCC"; then
10453 case $host_os in aix4.[012]|aix4.[012].*)
10454 # We only want to do this on AIX 4.2 and lower, the check
10455 # below for broken collect2 doesn't work under 4.3+
10456 collect2name=`$CC -print-prog-name=collect2`
10457 if test -f "$collect2name" &&
10458 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10459 then
10460 # We have reworked collect2
10461 :
10462 else
10463 # We have old collect2
10464 hardcode_direct=unsupported
10465 # It fails to find uninstalled libraries when the uninstalled
10466 # path is not listed in the libpath. Setting hardcode_minus_L
10467 # to unsupported forces relinking
10468 hardcode_minus_L=yes
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_libdir_separator=
10471 fi
10472 ;;
10473 esac
10474 shared_flag='-shared'
10475 if test yes = "$aix_use_runtimelinking"; then
10476 shared_flag="$shared_flag "'$wl-G'
10477 fi
10478 # Need to ensure runtime linking is disabled for the traditional
10479 # shared library, or the linker may eventually find shared libraries
10480 # /with/ Import File - we do not want to mix them.
10481 shared_flag_aix='-shared'
10482 shared_flag_svr4='-shared $wl-G'
10483 else
10484 # not using gcc
10485 if test ia64 = "$host_cpu"; then
10486 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10487 # chokes on -Wl,-G. The following line is correct:
10488 shared_flag='-G'
10489 else
10490 if test yes = "$aix_use_runtimelinking"; then
10491 shared_flag='$wl-G'
10492 else
10493 shared_flag='$wl-bM:SRE'
10494 fi
10495 shared_flag_aix='$wl-bM:SRE'
10496 shared_flag_svr4='$wl-G'
10497 fi
10498 fi
10499
10500 export_dynamic_flag_spec='$wl-bexpall'
10501 # It seems that -bexpall does not export symbols beginning with
10502 # underscore (_), so it is better to generate a list of symbols to export.
10503 always_export_symbols=yes
10504 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10505 # Warning - without using the other runtime loading flags (-brtl),
10506 # -berok will link without error, but may produce a broken library.
10507 allow_undefined_flag='-berok'
10508 # Determine the default libpath from the value encoded in an
10509 # empty executable.
10510 if test set = "${lt_cv_aix_libpath+set}"; then
10511 aix_libpath=$lt_cv_aix_libpath
10512 else
10513 if test ${lt_cv_aix_libpath_+y}
10514 then :
10515 printf %s "(cached) " >&6
10516 else case e in #(
10517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519
10520 int
10521 main (void)
10522 {
10523
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"
10529 then :
10530
10531 lt_aix_libpath_sed='
10532 /Import File Strings/,/^$/ {
10533 /^0/ {
10534 s/^0 *\([^ ]*\) *$/\1/
10535 p
10536 }
10537 }'
10538 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 # Check for a 64-bit object if we didn't find anything.
10540 if test -z "$lt_cv_aix_libpath_"; then
10541 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 fi
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10545 conftest$ac_exeext conftest.$ac_ext
10546 if test -z "$lt_cv_aix_libpath_"; then
10547 lt_cv_aix_libpath_=/usr/lib:/lib
10548 fi
10549 ;;
10550 esac
10551 fi
10552
10553 aix_libpath=$lt_cv_aix_libpath_
10554 fi
10555
10556 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10557 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10558 else
10559 if test ia64 = "$host_cpu"; then
10560 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10561 allow_undefined_flag="-z nodefs"
10562 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10563 else
10564 # Determine the default libpath from the value encoded in an
10565 # empty executable.
10566 if test set = "${lt_cv_aix_libpath+set}"; then
10567 aix_libpath=$lt_cv_aix_libpath
10568 else
10569 if test ${lt_cv_aix_libpath_+y}
10570 then :
10571 printf %s "(cached) " >&6
10572 else case e in #(
10573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575
10576 int
10577 main (void)
10578 {
10579
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"
10585 then :
10586
10587 lt_aix_libpath_sed='
10588 /Import File Strings/,/^$/ {
10589 /^0/ {
10590 s/^0 *\([^ ]*\) *$/\1/
10591 p
10592 }
10593 }'
10594 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10595 # Check for a 64-bit object if we didn't find anything.
10596 if test -z "$lt_cv_aix_libpath_"; then
10597 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10598 fi
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10601 conftest$ac_exeext conftest.$ac_ext
10602 if test -z "$lt_cv_aix_libpath_"; then
10603 lt_cv_aix_libpath_=/usr/lib:/lib
10604 fi
10605 ;;
10606 esac
10607 fi
10608
10609 aix_libpath=$lt_cv_aix_libpath_
10610 fi
10611
10612 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10613 # Warning - without using the other run time loading flags,
10614 # -berok will link without error, but may produce a broken library.
10615 no_undefined_flag=' $wl-bernotok'
10616 allow_undefined_flag=' $wl-berok'
10617 if test yes = "$with_gnu_ld"; then
10618 # We only use this code for GNU lds that support --whole-archive.
10619 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10620 else
10621 # Exported symbols can be pulled into shared objects from archives
10622 whole_archive_flag_spec='$convenience'
10623 fi
10624 archive_cmds_need_lc=yes
10625 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10626 # -brtl affects multiple linker settings, -berok does not and is overridden later
10627 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10628 if test svr4 != "$with_aix_soname"; then
10629 # This is similar to how AIX traditionally builds its shared libraries.
10630 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10631 fi
10632 if test aix != "$with_aix_soname"; then
10633 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10634 else
10635 # used by -dlpreopen to get the symbols
10636 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10637 fi
10638 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10639 fi
10640 fi
10641 ;;
10642
10643 amigaos*)
10644 case $host_cpu in
10645 powerpc)
10646 # see comment about AmigaOS4 .so support
10647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10648 archive_expsym_cmds=''
10649 ;;
10650 m68k)
10651 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10652 hardcode_libdir_flag_spec='-L$libdir'
10653 hardcode_minus_L=yes
10654 ;;
10655 esac
10656 ;;
10657
10658 bsdi[45]*)
10659 export_dynamic_flag_spec=-rdynamic
10660 ;;
10661
10662 cygwin* | mingw* | windows* | pw32* | cegcc*)
10663 # When not using gcc, we currently assume that we are using
10664 # Microsoft Visual C++ or Intel C++ Compiler.
10665 # hardcode_libdir_flag_spec is actually meaningless, as there is
10666 # no search path for DLLs.
10667 case $cc_basename in
10668 cl* | icl*)
10669 # Native MSVC or ICC
10670 hardcode_libdir_flag_spec=' '
10671 allow_undefined_flag=unsupported
10672 always_export_symbols=yes
10673 file_list_spec='@'
10674 # Tell ltmain to make .lib files, not .a files.
10675 libext=lib
10676 # Tell ltmain to make .dll files, not .so files.
10677 shrext_cmds=.dll
10678 # FIXME: Setting linknames here is a bad hack.
10679 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10680 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10681 cp "$export_symbols" "$output_objdir/$soname.def";
10682 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10683 else
10684 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10685 fi~
10686 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10687 linknames='
10688 # The linker will not automatically build a static lib if we build a DLL.
10689 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10690 enable_shared_with_static_runtimes=yes
10691 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10693 # Don't use ranlib
10694 old_postinstall_cmds='chmod 644 $oldlib'
10695 postlink_cmds='lt_outputfile="@OUTPUT@"~
10696 lt_tool_outputfile="@TOOL_OUTPUT@"~
10697 case $lt_outputfile in
10698 *.exe|*.EXE) ;;
10699 *)
10700 lt_outputfile=$lt_outputfile.exe
10701 lt_tool_outputfile=$lt_tool_outputfile.exe
10702 ;;
10703 esac~
10704 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10705 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10706 $RM "$lt_outputfile.manifest";
10707 fi'
10708 ;;
10709 *)
10710 # Assume MSVC and ICC wrapper
10711 hardcode_libdir_flag_spec=' '
10712 allow_undefined_flag=unsupported
10713 # Tell ltmain to make .lib files, not .a files.
10714 libext=lib
10715 # Tell ltmain to make .dll files, not .so files.
10716 shrext_cmds=.dll
10717 # FIXME: Setting linknames here is a bad hack.
10718 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10719 # The linker will automatically build a .lib file if we build a DLL.
10720 old_archive_from_new_cmds='true'
10721 # FIXME: Should let the user specify the lib program.
10722 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10723 enable_shared_with_static_runtimes=yes
10724 ;;
10725 esac
10726 ;;
10727
10728 darwin* | rhapsody*)
10729
10730
10731 archive_cmds_need_lc=no
10732 hardcode_direct=no
10733 hardcode_automatic=yes
10734 hardcode_shlibpath_var=unsupported
10735 if test yes = "$lt_cv_ld_force_load"; then
10736 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10737
10738 else
10739 whole_archive_flag_spec=''
10740 fi
10741 link_all_deplibs=yes
10742 allow_undefined_flag=$_lt_dar_allow_undefined
10743 case $cc_basename in
10744 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10745 *) _lt_dar_can_shared=$GCC ;;
10746 esac
10747 if test yes = "$_lt_dar_can_shared"; then
10748 output_verbose_link_cmd=func_echo_all
10749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10751 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10752 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10753
10754 else
10755 ld_shlibs=no
10756 fi
10757
10758 ;;
10759
10760 dgux*)
10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_libdir_flag_spec='-L$libdir'
10763 hardcode_shlibpath_var=no
10764 ;;
10765
10766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10767 # support. Future versions do this automatically, but an explicit c++rt0.o
10768 # does not break anything, and helps significantly (at the cost of a little
10769 # extra space).
10770 freebsd2.2*)
10771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10772 hardcode_libdir_flag_spec='-R$libdir'
10773 hardcode_direct=yes
10774 hardcode_shlibpath_var=no
10775 ;;
10776
10777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10778 freebsd2.*)
10779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10780 hardcode_direct=yes
10781 hardcode_minus_L=yes
10782 hardcode_shlibpath_var=no
10783 ;;
10784
10785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10786 freebsd* | dragonfly* | midnightbsd*)
10787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10788 hardcode_libdir_flag_spec='-R$libdir'
10789 hardcode_direct=yes
10790 hardcode_shlibpath_var=no
10791 ;;
10792
10793 hpux9*)
10794 if test yes = "$GCC"; then
10795 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10796 else
10797 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10798 fi
10799 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10800 hardcode_libdir_separator=:
10801 hardcode_direct=yes
10802
10803 # hardcode_minus_L: Not really in the search PATH,
10804 # but as the default location of the library.
10805 hardcode_minus_L=yes
10806 export_dynamic_flag_spec='$wl-E'
10807 ;;
10808
10809 hpux10*)
10810 if test yes,no = "$GCC,$with_gnu_ld"; then
10811 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10812 else
10813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10814 fi
10815 if test no = "$with_gnu_ld"; then
10816 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10817 hardcode_libdir_separator=:
10818 hardcode_direct=yes
10819 hardcode_direct_absolute=yes
10820 export_dynamic_flag_spec='$wl-E'
10821 # hardcode_minus_L: Not really in the search PATH,
10822 # but as the default location of the library.
10823 hardcode_minus_L=yes
10824 fi
10825 ;;
10826
10827 hpux11*)
10828 if test yes,no = "$GCC,$with_gnu_ld"; then
10829 case $host_cpu in
10830 hppa*64*)
10831 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10832 ;;
10833 ia64*)
10834 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10835 ;;
10836 *)
10837 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10838 ;;
10839 esac
10840 else
10841 case $host_cpu in
10842 hppa*64*)
10843 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 ;;
10845 ia64*)
10846 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10847 ;;
10848 *)
10849
10850 # Older versions of the 11.00 compiler do not understand -b yet
10851 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10853 printf %s "checking if $CC understands -b... " >&6; }
10854 if test ${lt_cv_prog_compiler__b+y}
10855 then :
10856 printf %s "(cached) " >&6
10857 else case e in #(
10858 e) lt_cv_prog_compiler__b=no
10859 save_LDFLAGS=$LDFLAGS
10860 LDFLAGS="$LDFLAGS -b"
10861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10863 # The linker can only warn and ignore the option if not recognized
10864 # So say no if there are warnings
10865 if test -s conftest.err; then
10866 # Append any errors to the config.log.
10867 cat conftest.err 1>&5
10868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10870 if diff conftest.exp conftest.er2 >/dev/null; then
10871 lt_cv_prog_compiler__b=yes
10872 fi
10873 else
10874 lt_cv_prog_compiler__b=yes
10875 fi
10876 fi
10877 $RM -r conftest*
10878 LDFLAGS=$save_LDFLAGS
10879 ;;
10880 esac
10881 fi
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10883 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10884
10885 if test yes = "$lt_cv_prog_compiler__b"; then
10886 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10887 else
10888 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10889 fi
10890
10891 ;;
10892 esac
10893 fi
10894 if test no = "$with_gnu_ld"; then
10895 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10896 hardcode_libdir_separator=:
10897
10898 case $host_cpu in
10899 hppa*64*|ia64*)
10900 hardcode_direct=no
10901 hardcode_shlibpath_var=no
10902 ;;
10903 *)
10904 hardcode_direct=yes
10905 hardcode_direct_absolute=yes
10906 export_dynamic_flag_spec='$wl-E'
10907
10908 # hardcode_minus_L: Not really in the search PATH,
10909 # but as the default location of the library.
10910 hardcode_minus_L=yes
10911 ;;
10912 esac
10913 fi
10914 ;;
10915
10916 irix5* | irix6* | nonstopux*)
10917 if test yes = "$GCC"; then
10918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10919 # Try to use the -exported_symbol ld option, if it does not
10920 # work, assume that -exports_file does not work either and
10921 # implicitly export all symbols.
10922 # This should be the same for all languages, so no per-tag cache variable.
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10924 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10925 if test ${lt_cv_irix_exported_symbol+y}
10926 then :
10927 printf %s "(cached) " >&6
10928 else case e in #(
10929 e) save_LDFLAGS=$LDFLAGS
10930 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933 int foo (void) { return 0; }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"
10936 then :
10937 lt_cv_irix_exported_symbol=yes
10938 else case e in #(
10939 e) lt_cv_irix_exported_symbol=no ;;
10940 esac
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10943 conftest$ac_exeext conftest.$ac_ext
10944 LDFLAGS=$save_LDFLAGS ;;
10945 esac
10946 fi
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10948 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10949 if test yes = "$lt_cv_irix_exported_symbol"; then
10950 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10951 fi
10952 else
10953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10955 fi
10956 archive_cmds_need_lc='no'
10957 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10958 hardcode_libdir_separator=:
10959 inherit_rpath=yes
10960 link_all_deplibs=yes
10961 ;;
10962
10963 linux*)
10964 case $cc_basename in
10965 tcc*)
10966 # Fabrice Bellard et al's Tiny C Compiler
10967 ld_shlibs=yes
10968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10970 ;;
10971 esac
10972 ;;
10973
10974 *-mlibc)
10975 ;;
10976
10977 netbsd* | netbsdelf*-gnu)
10978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10980 else
10981 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10982 fi
10983 hardcode_libdir_flag_spec='-R$libdir'
10984 hardcode_direct=yes
10985 hardcode_shlibpath_var=no
10986 ;;
10987
10988 newsos6)
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_direct=yes
10991 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10992 hardcode_libdir_separator=:
10993 hardcode_shlibpath_var=no
10994 ;;
10995
10996 *nto* | *qnx*)
10997 ;;
10998
10999 openbsd*)
11000 if test -f /usr/libexec/ld.so; then
11001 hardcode_direct=yes
11002 hardcode_shlibpath_var=no
11003 hardcode_direct_absolute=yes
11004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11007 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11008 export_dynamic_flag_spec='$wl-E'
11009 else
11010 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11011 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11012 fi
11013 else
11014 ld_shlibs=no
11015 fi
11016 ;;
11017
11018 os2*)
11019 hardcode_libdir_flag_spec='-L$libdir'
11020 hardcode_minus_L=yes
11021 allow_undefined_flag=unsupported
11022 shrext_cmds=.dll
11023 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11026 $ECHO EXPORTS >> $output_objdir/$libname.def~
11027 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11028 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11029 emximp -o $lib $output_objdir/$libname.def'
11030 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11031 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11032 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11033 $ECHO EXPORTS >> $output_objdir/$libname.def~
11034 prefix_cmds="$SED"~
11035 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11036 prefix_cmds="$prefix_cmds -e 1d";
11037 fi~
11038 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11039 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11040 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11041 emximp -o $lib $output_objdir/$libname.def'
11042 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11043 enable_shared_with_static_runtimes=yes
11044 file_list_spec='@'
11045 ;;
11046
11047 osf3*)
11048 if test yes = "$GCC"; then
11049 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11050 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11051 else
11052 allow_undefined_flag=' -expect_unresolved \*'
11053 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11054 fi
11055 archive_cmds_need_lc='no'
11056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11057 hardcode_libdir_separator=:
11058 ;;
11059
11060 osf4* | osf5*) # as osf3* with the addition of -msym flag
11061 if test yes = "$GCC"; then
11062 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11063 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11065 else
11066 allow_undefined_flag=' -expect_unresolved \*'
11067 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11068 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11069 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11070
11071 # Both c and cxx compiler support -rpath directly
11072 hardcode_libdir_flag_spec='-rpath $libdir'
11073 fi
11074 archive_cmds_need_lc='no'
11075 hardcode_libdir_separator=:
11076 ;;
11077
11078 serenity*)
11079 ;;
11080
11081 solaris*)
11082 no_undefined_flag=' -z defs'
11083 if test yes = "$GCC"; then
11084 wlarc='$wl'
11085 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11087 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11088 else
11089 case `$CC -V 2>&1` in
11090 *"Compilers 5.0"*)
11091 wlarc=''
11092 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11094 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11095 ;;
11096 *)
11097 wlarc='$wl'
11098 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11100 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11101 ;;
11102 esac
11103 fi
11104 hardcode_libdir_flag_spec='-R$libdir'
11105 hardcode_shlibpath_var=no
11106 case $host_os in
11107 solaris2.[0-5] | solaris2.[0-5].*) ;;
11108 *)
11109 # The compiler driver will combine and reorder linker options,
11110 # but understands '-z linker_flag'. GCC discards it without '$wl',
11111 # but is careful enough not to reorder.
11112 # Supported since Solaris 2.6 (maybe 2.5.1?)
11113 if test yes = "$GCC"; then
11114 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11115 else
11116 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11117 fi
11118 ;;
11119 esac
11120 link_all_deplibs=yes
11121 ;;
11122
11123 sunos4*)
11124 if test sequent = "$host_vendor"; then
11125 # Use $CC to link under sequent, because it throws in some extra .o
11126 # files that make .init and .fini sections work.
11127 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11128 else
11129 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11130 fi
11131 hardcode_libdir_flag_spec='-L$libdir'
11132 hardcode_direct=yes
11133 hardcode_minus_L=yes
11134 hardcode_shlibpath_var=no
11135 ;;
11136
11137 sysv4)
11138 case $host_vendor in
11139 sni)
11140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11141 hardcode_direct=yes # is this really true???
11142 ;;
11143 siemens)
11144 ## LD is ld it makes a PLAMLIB
11145 ## CC just makes a GrossModule.
11146 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11147 reload_cmds='$CC -r -o $output$reload_objs'
11148 hardcode_direct=no
11149 ;;
11150 motorola)
11151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11152 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11153 ;;
11154 esac
11155 runpath_var='LD_RUN_PATH'
11156 hardcode_shlibpath_var=no
11157 ;;
11158
11159 sysv4.3*)
11160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161 hardcode_shlibpath_var=no
11162 export_dynamic_flag_spec='-Bexport'
11163 ;;
11164
11165 sysv4*MP*)
11166 if test -d /usr/nec; then
11167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168 hardcode_shlibpath_var=no
11169 runpath_var=LD_RUN_PATH
11170 hardcode_runpath_var=yes
11171 ld_shlibs=yes
11172 fi
11173 ;;
11174
11175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11176 no_undefined_flag='$wl-z,text'
11177 archive_cmds_need_lc=no
11178 hardcode_shlibpath_var=no
11179 runpath_var='LD_RUN_PATH'
11180
11181 if test yes = "$GCC"; then
11182 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11184 else
11185 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11187 fi
11188 ;;
11189
11190 sysv5* | sco3.2v5* | sco5v6*)
11191 # Note: We CANNOT use -z defs as we might desire, because we do not
11192 # link with -lc, and that would cause any symbols used from libc to
11193 # always be unresolved, which means just about no library would
11194 # ever link correctly. If we're not using GNU ld we use -z text
11195 # though, which does catch some bad symbols but isn't as heavy-handed
11196 # as -z defs.
11197 no_undefined_flag='$wl-z,text'
11198 allow_undefined_flag='$wl-z,nodefs'
11199 archive_cmds_need_lc=no
11200 hardcode_shlibpath_var=no
11201 hardcode_libdir_flag_spec='$wl-R,$libdir'
11202 hardcode_libdir_separator=':'
11203 link_all_deplibs=yes
11204 export_dynamic_flag_spec='$wl-Bexport'
11205 runpath_var='LD_RUN_PATH'
11206
11207 if test yes = "$GCC"; then
11208 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11210 else
11211 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11212 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11213 fi
11214 ;;
11215
11216 uts4*)
11217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11218 hardcode_libdir_flag_spec='-L$libdir'
11219 hardcode_shlibpath_var=no
11220 ;;
11221
11222 *)
11223 ld_shlibs=no
11224 ;;
11225 esac
11226
11227 if test sni = "$host_vendor"; then
11228 case $host in
11229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11230 export_dynamic_flag_spec='$wl-Blargedynsym'
11231 ;;
11232 esac
11233 fi
11234 fi
11235
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11237 printf "%s\n" "$ld_shlibs" >&6; }
11238 test no = "$ld_shlibs" && can_build_shared=no
11239
11240 with_gnu_ld=$with_gnu_ld
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256 #
11257 # Do we need to explicitly link libc?
11258 #
11259 case "x$archive_cmds_need_lc" in
11260 x|xyes)
11261 # Assume -lc should be added
11262 archive_cmds_need_lc=yes
11263
11264 if test yes,yes = "$GCC,$enable_shared"; then
11265 case $archive_cmds in
11266 *'~'*)
11267 # FIXME: we may have to deal with multi-command sequences.
11268 ;;
11269 '$CC '*)
11270 # Test whether the compiler implicitly links with -lc since on some
11271 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11272 # to ld, don't add -lc before -lgcc.
11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11274 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11275 if test ${lt_cv_archive_cmds_need_lc+y}
11276 then :
11277 printf %s "(cached) " >&6
11278 else case e in #(
11279 e) $RM conftest*
11280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11281
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11283 (eval $ac_compile) 2>&5
11284 ac_status=$?
11285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } 2>conftest.err; then
11287 soname=conftest
11288 lib=conftest
11289 libobjs=conftest.$ac_objext
11290 deplibs=
11291 wl=$lt_prog_compiler_wl
11292 pic_flag=$lt_prog_compiler_pic
11293 compiler_flags=-v
11294 linker_flags=-v
11295 verstring=
11296 output_objdir=.
11297 libname=conftest
11298 lt_save_allow_undefined_flag=$allow_undefined_flag
11299 allow_undefined_flag=
11300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11301 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11302 ac_status=$?
11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11304 test $ac_status = 0; }
11305 then
11306 lt_cv_archive_cmds_need_lc=no
11307 else
11308 lt_cv_archive_cmds_need_lc=yes
11309 fi
11310 allow_undefined_flag=$lt_save_allow_undefined_flag
11311 else
11312 cat conftest.err 1>&5
11313 fi
11314 $RM conftest*
11315 ;;
11316 esac
11317 fi
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11319 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11320 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11321 ;;
11322 esac
11323 fi
11324 ;;
11325 esac
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11479 printf %s "checking dynamic linker characteristics... " >&6; }
11480
11481 if test yes = "$GCC"; then
11482 case $host_os in
11483 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11484 *) lt_awk_arg='/^libraries:/' ;;
11485 esac
11486 case $host_os in
11487 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11488 *) lt_sed_strip_eq='s|=/|/|g' ;;
11489 esac
11490 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11491 case $lt_search_path_spec in
11492 *\;*)
11493 # if the path contains ";" then we assume it to be the separator
11494 # otherwise default to the standard path separator (i.e. ":") - it is
11495 # assumed that no part of a normal pathname contains ";" but that should
11496 # okay in the real world where ";" in dirpaths is itself problematic.
11497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11498 ;;
11499 *)
11500 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11501 ;;
11502 esac
11503 # Ok, now we have the path, separated by spaces, we can step through it
11504 # and add multilib dir if necessary...
11505 lt_tmp_lt_search_path_spec=
11506 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11507 # ...but if some path component already ends with the multilib dir we assume
11508 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11509 case "$lt_multi_os_dir; $lt_search_path_spec " in
11510 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11511 lt_multi_os_dir=
11512 ;;
11513 esac
11514 for lt_sys_path in $lt_search_path_spec; do
11515 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11517 elif test -n "$lt_multi_os_dir"; then
11518 test -d "$lt_sys_path" && \
11519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11520 fi
11521 done
11522 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11523 BEGIN {RS = " "; FS = "/|\n";} {
11524 lt_foo = "";
11525 lt_count = 0;
11526 for (lt_i = NF; lt_i > 0; lt_i--) {
11527 if ($lt_i != "" && $lt_i != ".") {
11528 if ($lt_i == "..") {
11529 lt_count++;
11530 } else {
11531 if (lt_count == 0) {
11532 lt_foo = "/" $lt_i lt_foo;
11533 } else {
11534 lt_count--;
11535 }
11536 }
11537 }
11538 }
11539 if (lt_foo != "") { lt_freq[lt_foo]++; }
11540 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11541 }'`
11542 # AWK program above erroneously prepends '/' to C:/dos/paths
11543 # for these hosts.
11544 case $host_os in
11545 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11546 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11547 esac
11548 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11549 else
11550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11551 fi
11552 library_names_spec=
11553 libname_spec='lib$name'
11554 soname_spec=
11555 shrext_cmds=.so
11556 postinstall_cmds=
11557 postuninstall_cmds=
11558 finish_cmds=
11559 finish_eval=
11560 shlibpath_var=
11561 shlibpath_overrides_runpath=unknown
11562 version_type=none
11563 dynamic_linker="$host_os ld.so"
11564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11565 need_lib_prefix=unknown
11566 hardcode_into_libs=no
11567
11568 # when you set need_version to no, make sure it does not cause -set_version
11569 # flags to be left without arguments
11570 need_version=unknown
11571
11572
11573
11574 case $host_os in
11575 aix3*)
11576 version_type=linux # correct to gnu/linux during the next big refactor
11577 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11578 shlibpath_var=LIBPATH
11579
11580 # AIX 3 has no versioning support, so we append a major version to the name.
11581 soname_spec='$libname$release$shared_ext$major'
11582 ;;
11583
11584 aix[4-9]*)
11585 version_type=linux # correct to gnu/linux during the next big refactor
11586 need_lib_prefix=no
11587 need_version=no
11588 hardcode_into_libs=yes
11589 if test ia64 = "$host_cpu"; then
11590 # AIX 5 supports IA64
11591 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 else
11594 # With GCC up to 2.95.x, collect2 would create an import file
11595 # for dependence libraries. The import file would start with
11596 # the line '#! .'. This would cause the generated library to
11597 # depend on '.', always an invalid library. This was fixed in
11598 # development snapshots of GCC prior to 3.0.
11599 case $host_os in
11600 aix4 | aix4.[01] | aix4.[01].*)
11601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11602 echo ' yes '
11603 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11604 :
11605 else
11606 can_build_shared=no
11607 fi
11608 ;;
11609 esac
11610 # Using Import Files as archive members, it is possible to support
11611 # filename-based versioning of shared library archives on AIX. While
11612 # this would work for both with and without runtime linking, it will
11613 # prevent static linking of such archives. So we do filename-based
11614 # shared library versioning with .so extension only, which is used
11615 # when both runtime linking and shared linking is enabled.
11616 # Unfortunately, runtime linking may impact performance, so we do
11617 # not want this to be the default eventually. Also, we use the
11618 # versioned .so libs for executables only if there is the -brtl
11619 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11620 # To allow for filename-based versioning support, we need to create
11621 # libNAME.so.V as an archive file, containing:
11622 # *) an Import File, referring to the versioned filename of the
11623 # archive as well as the shared archive member, telling the
11624 # bitwidth (32 or 64) of that shared object, and providing the
11625 # list of exported symbols of that shared object, eventually
11626 # decorated with the 'weak' keyword
11627 # *) the shared object with the F_LOADONLY flag set, to really avoid
11628 # it being seen by the linker.
11629 # At run time we better use the real file rather than another symlink,
11630 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11631
11632 case $with_aix_soname,$aix_use_runtimelinking in
11633 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11634 # soname into executable. Probably we can add versioning support to
11635 # collect2, so additional links can be useful in future.
11636 aix,yes) # traditional libtool
11637 dynamic_linker='AIX unversionable lib.so'
11638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11639 # instead of lib<name>.a to let people know that these are not
11640 # typical AIX shared libraries.
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 ;;
11643 aix,no) # traditional AIX only
11644 dynamic_linker='AIX lib.a(lib.so.V)'
11645 # We preserve .a as extension for shared libraries through AIX4.2
11646 # and later when we are not doing run time linking.
11647 library_names_spec='$libname$release.a $libname.a'
11648 soname_spec='$libname$release$shared_ext$major'
11649 ;;
11650 svr4,*) # full svr4 only
11651 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11652 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11653 # We do not specify a path in Import Files, so LIBPATH fires.
11654 shlibpath_overrides_runpath=yes
11655 ;;
11656 *,yes) # both, prefer svr4
11657 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11658 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11659 # unpreferred sharedlib libNAME.a needs extra handling
11660 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11661 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11662 # We do not specify a path in Import Files, so LIBPATH fires.
11663 shlibpath_overrides_runpath=yes
11664 ;;
11665 *,no) # both, prefer aix
11666 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11667 library_names_spec='$libname$release.a $libname.a'
11668 soname_spec='$libname$release$shared_ext$major'
11669 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11670 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11671 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11672 ;;
11673 esac
11674 shlibpath_var=LIBPATH
11675 fi
11676 ;;
11677
11678 amigaos*)
11679 case $host_cpu in
11680 powerpc)
11681 # Since July 2007 AmigaOS4 officially supports .so libraries.
11682 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11684 ;;
11685 m68k)
11686 library_names_spec='$libname.ixlibrary $libname.a'
11687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11688 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11689 ;;
11690 esac
11691 ;;
11692
11693 beos*)
11694 library_names_spec='$libname$shared_ext'
11695 dynamic_linker="$host_os ld.so"
11696 shlibpath_var=LIBRARY_PATH
11697 ;;
11698
11699 bsdi[45]*)
11700 version_type=linux # correct to gnu/linux during the next big refactor
11701 need_version=no
11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703 soname_spec='$libname$release$shared_ext$major'
11704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11708 # the default ld.so.conf also contains /usr/contrib/lib and
11709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11710 # libtool to hard-code these into programs
11711 ;;
11712
11713 cygwin* | mingw* | windows* | pw32* | cegcc*)
11714 version_type=windows
11715 shrext_cmds=.dll
11716 need_version=no
11717 need_lib_prefix=no
11718
11719 case $GCC,$cc_basename in
11720 yes,*)
11721 # gcc
11722 library_names_spec='$libname.dll.a'
11723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11724 # If user builds GCC with multilib enabled,
11725 # it should just install on $(libdir)
11726 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11727 if test xyes = x"$multilib"; then
11728 postinstall_cmds='base_file=`basename \$file`~
11729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11730 dldir=$destdir/`dirname \$dlpath`~
11731 $install_prog $dir/$dlname $destdir/$dlname~
11732 chmod a+x $destdir/$dlname~
11733 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11734 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11735 fi'
11736 else
11737 postinstall_cmds='base_file=`basename \$file`~
11738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11739 dldir=$destdir/`dirname \$dlpath`~
11740 test -d \$dldir || mkdir -p \$dldir~
11741 $install_prog $dir/$dlname \$dldir/$dlname~
11742 chmod a+x \$dldir/$dlname~
11743 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11744 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11745 fi'
11746 fi
11747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11748 dlpath=$dir/\$dldll~
11749 $RM \$dlpath'
11750 shlibpath_overrides_runpath=yes
11751
11752 case $host_os in
11753 cygwin*)
11754 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11755 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11756
11757 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11758 ;;
11759 mingw* | windows* | cegcc*)
11760 # MinGW DLLs use traditional 'lib' prefix
11761 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11762 ;;
11763 pw32*)
11764 # pw32 DLLs use 'pw' prefix rather than 'lib'
11765 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11766 ;;
11767 esac
11768 dynamic_linker='Win32 ld.exe'
11769 ;;
11770
11771 *,cl* | *,icl*)
11772 # Native MSVC or ICC
11773 libname_spec='$name'
11774 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11775 library_names_spec='$libname.dll.lib'
11776
11777 case $build_os in
11778 mingw* | windows*)
11779 sys_lib_search_path_spec=
11780 lt_save_ifs=$IFS
11781 IFS=';'
11782 for lt_path in $LIB
11783 do
11784 IFS=$lt_save_ifs
11785 # Let DOS variable expansion print the short 8.3 style file name.
11786 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11787 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11788 done
11789 IFS=$lt_save_ifs
11790 # Convert to MSYS style.
11791 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11792 ;;
11793 cygwin*)
11794 # Convert to unix form, then to dos form, then back to unix form
11795 # but this time dos style (no spaces!) so that the unix form looks
11796 # like /cygdrive/c/PROGRA~1:/cygdr...
11797 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11798 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11799 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11800 ;;
11801 *)
11802 sys_lib_search_path_spec=$LIB
11803 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11804 # It is most probably a Windows format PATH.
11805 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11806 else
11807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11808 fi
11809 # FIXME: find the short name or the path components, as spaces are
11810 # common. (e.g. "Program Files" -> "PROGRA~1")
11811 ;;
11812 esac
11813
11814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11815 postinstall_cmds='base_file=`basename \$file`~
11816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11817 dldir=$destdir/`dirname \$dlpath`~
11818 test -d \$dldir || mkdir -p \$dldir~
11819 $install_prog $dir/$dlname \$dldir/$dlname'
11820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11821 dlpath=$dir/\$dldll~
11822 $RM \$dlpath'
11823 shlibpath_overrides_runpath=yes
11824 dynamic_linker='Win32 link.exe'
11825 ;;
11826
11827 *)
11828 # Assume MSVC and ICC wrapper
11829 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11830 dynamic_linker='Win32 ld.exe'
11831 ;;
11832 esac
11833 # FIXME: first we should search . and the directory the executable is in
11834 shlibpath_var=PATH
11835 ;;
11836
11837 darwin* | rhapsody*)
11838 dynamic_linker="$host_os dyld"
11839 version_type=darwin
11840 need_lib_prefix=no
11841 need_version=no
11842 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11843 soname_spec='$libname$release$major$shared_ext'
11844 shlibpath_overrides_runpath=yes
11845 shlibpath_var=DYLD_LIBRARY_PATH
11846 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11847
11848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11850 ;;
11851
11852 dgux*)
11853 version_type=linux # correct to gnu/linux during the next big refactor
11854 need_lib_prefix=no
11855 need_version=no
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857 soname_spec='$libname$release$shared_ext$major'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 ;;
11860
11861 freebsd* | dragonfly* | midnightbsd*)
11862 # DragonFly does not have aout. When/if they implement a new
11863 # versioning mechanism, adjust this.
11864 if test -x /usr/bin/objformat; then
11865 objformat=`/usr/bin/objformat`
11866 else
11867 case $host_os in
11868 freebsd[23].*) objformat=aout ;;
11869 *) objformat=elf ;;
11870 esac
11871 fi
11872 version_type=freebsd-$objformat
11873 case $version_type in
11874 freebsd-elf*)
11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11876 soname_spec='$libname$release$shared_ext$major'
11877 need_version=no
11878 need_lib_prefix=no
11879 ;;
11880 freebsd-*)
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11882 need_version=yes
11883 ;;
11884 esac
11885 case $host_cpu in
11886 powerpc64)
11887 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11888 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 int test_pointer_size[sizeof (void *) - 5];
11892
11893 _ACEOF
11894 if ac_fn_c_try_compile "$LINENO"
11895 then :
11896 shlibpath_var=LD_LIBRARY_PATH
11897 else case e in #(
11898 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11899 esac
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11902 ;;
11903 *)
11904 shlibpath_var=LD_LIBRARY_PATH
11905 ;;
11906 esac
11907 case $host_os in
11908 freebsd2.*)
11909 shlibpath_overrides_runpath=yes
11910 ;;
11911 freebsd3.[01]* | freebsdelf3.[01]*)
11912 shlibpath_overrides_runpath=yes
11913 hardcode_into_libs=yes
11914 ;;
11915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11917 shlibpath_overrides_runpath=no
11918 hardcode_into_libs=yes
11919 ;;
11920 *) # from 4.6 on, and DragonFly
11921 shlibpath_overrides_runpath=yes
11922 hardcode_into_libs=yes
11923 ;;
11924 esac
11925 ;;
11926
11927 haiku*)
11928 version_type=linux # correct to gnu/linux during the next big refactor
11929 need_lib_prefix=no
11930 need_version=no
11931 dynamic_linker="$host_os runtime_loader"
11932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11933 soname_spec='$libname$release$shared_ext$major'
11934 shlibpath_var=LIBRARY_PATH
11935 shlibpath_overrides_runpath=no
11936 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11937 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11938 hardcode_into_libs=no
11939 ;;
11940
11941 hpux9* | hpux10* | hpux11*)
11942 # Give a soname corresponding to the major version so that dld.sl refuses to
11943 # link against other versions.
11944 version_type=sunos
11945 need_lib_prefix=no
11946 need_version=no
11947 case $host_cpu in
11948 ia64*)
11949 shrext_cmds='.so'
11950 hardcode_into_libs=yes
11951 dynamic_linker="$host_os dld.so"
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11955 soname_spec='$libname$release$shared_ext$major'
11956 if test 32 = "$HPUX_IA64_MODE"; then
11957 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11958 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11959 else
11960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11961 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11962 fi
11963 ;;
11964 hppa*64*)
11965 shrext_cmds='.sl'
11966 hardcode_into_libs=yes
11967 dynamic_linker="$host_os dld.sl"
11968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11971 soname_spec='$libname$release$shared_ext$major'
11972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11974 ;;
11975 *)
11976 shrext_cmds='.sl'
11977 dynamic_linker="$host_os dld.sl"
11978 shlibpath_var=SHLIB_PATH
11979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 soname_spec='$libname$release$shared_ext$major'
11982 ;;
11983 esac
11984 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11985 postinstall_cmds='chmod 555 $lib'
11986 # or fails outright, so override atomically:
11987 install_override_mode=555
11988 ;;
11989
11990 interix[3-9]*)
11991 version_type=linux # correct to gnu/linux during the next big refactor
11992 need_lib_prefix=no
11993 need_version=no
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11995 soname_spec='$libname$release$shared_ext$major'
11996 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=no
11999 hardcode_into_libs=yes
12000 ;;
12001
12002 irix5* | irix6* | nonstopux*)
12003 case $host_os in
12004 nonstopux*) version_type=nonstopux ;;
12005 *)
12006 if test yes = "$lt_cv_prog_gnu_ld"; then
12007 version_type=linux # correct to gnu/linux during the next big refactor
12008 else
12009 version_type=irix
12010 fi ;;
12011 esac
12012 need_lib_prefix=no
12013 need_version=no
12014 soname_spec='$libname$release$shared_ext$major'
12015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12016 case $host_os in
12017 irix5* | nonstopux*)
12018 libsuff= shlibsuff=
12019 ;;
12020 *)
12021 case $LD in # libtool.m4 will add one of these switches to LD
12022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12023 libsuff= shlibsuff= libmagic=32-bit;;
12024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12025 libsuff=32 shlibsuff=N32 libmagic=N32;;
12026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12028 *) libsuff= shlibsuff= libmagic=never-match;;
12029 esac
12030 ;;
12031 esac
12032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12033 shlibpath_overrides_runpath=no
12034 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12035 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12036 hardcode_into_libs=yes
12037 ;;
12038
12039 # No shared lib support for Linux oldld, aout, or coff.
12040 linux*oldld* | linux*aout* | linux*coff*)
12041 dynamic_linker=no
12042 ;;
12043
12044 linux*android*)
12045 version_type=none # Android doesn't support versioned libraries.
12046 need_lib_prefix=no
12047 need_version=no
12048 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12049 soname_spec='$libname$release$shared_ext'
12050 finish_cmds=
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes
12053
12054 # This implies no fast_install, which is unacceptable.
12055 # Some rework will be needed to allow for fast_install
12056 # before this can be enabled.
12057 hardcode_into_libs=yes
12058
12059 dynamic_linker='Android linker'
12060 # -rpath works at least for libraries that are not overridden by
12061 # libraries installed in system locations.
12062 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12063 ;;
12064
12065 # This must be glibc/ELF.
12066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12067 version_type=linux # correct to gnu/linux during the next big refactor
12068 need_lib_prefix=no
12069 need_version=no
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071 soname_spec='$libname$release$shared_ext$major'
12072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 shlibpath_overrides_runpath=no
12075
12076 # Some binutils ld are patched to set DT_RUNPATH
12077 if test ${lt_cv_shlibpath_overrides_runpath+y}
12078 then :
12079 printf %s "(cached) " >&6
12080 else case e in #(
12081 e) lt_cv_shlibpath_overrides_runpath=no
12082 save_LDFLAGS=$LDFLAGS
12083 save_libdir=$libdir
12084 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12085 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088
12089 int
12090 main (void)
12091 {
12092
12093 ;
12094 return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_link "$LINENO"
12098 then :
12099 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12100 then :
12101 lt_cv_shlibpath_overrides_runpath=yes
12102 fi
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12105 conftest$ac_exeext conftest.$ac_ext
12106 LDFLAGS=$save_LDFLAGS
12107 libdir=$save_libdir
12108 ;;
12109 esac
12110 fi
12111
12112 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12113
12114 # This implies no fast_install, which is unacceptable.
12115 # Some rework will be needed to allow for fast_install
12116 # before this can be enabled.
12117 hardcode_into_libs=yes
12118
12119 # Ideally, we could use ldconfig to report *all* directories which are
12120 # searched for libraries, however this is still not possible. Aside from not
12121 # being certain /sbin/ldconfig is available, command
12122 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12123 # even though it is searched at run-time. Try to do the best guess by
12124 # appending ld.so.conf contents (and includes) to the search path.
12125 if test -f /etc/ld.so.conf; then
12126 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12128 fi
12129
12130 # We used to test for /lib/ld.so.1 and disable shared libraries on
12131 # powerpc, because MkLinux only supported shared libraries with the
12132 # GNU dynamic linker. Since this was broken with cross compilers,
12133 # most powerpc-linux boxes support dynamic linking these days and
12134 # people can always --disable-shared, the test was removed, and we
12135 # assume the GNU/Linux dynamic linker is in use.
12136 dynamic_linker='GNU/Linux ld.so'
12137 ;;
12138
12139 netbsdelf*-gnu)
12140 version_type=linux
12141 need_lib_prefix=no
12142 need_version=no
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144 soname_spec='$libname$release$shared_ext$major'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=no
12147 hardcode_into_libs=yes
12148 dynamic_linker='NetBSD ld.elf_so'
12149 ;;
12150
12151 netbsd*)
12152 version_type=sunos
12153 need_lib_prefix=no
12154 need_version=no
12155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12156 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12158 dynamic_linker='NetBSD (a.out) ld.so'
12159 else
12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161 soname_spec='$libname$release$shared_ext$major'
12162 dynamic_linker='NetBSD ld.elf_so'
12163 fi
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=yes
12166 hardcode_into_libs=yes
12167 ;;
12168
12169 *-mlibc)
12170 version_type=linux # correct to gnu/linux during the next big refactor
12171 need_lib_prefix=no
12172 need_version=no
12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174 soname_spec='$libname$release$shared_ext$major'
12175 dynamic_linker='mlibc ld.so'
12176 shlibpath_var=LD_LIBRARY_PATH
12177 shlibpath_overrides_runpath=no
12178 hardcode_into_libs=yes
12179 ;;
12180
12181 newsos6)
12182 version_type=linux # correct to gnu/linux during the next big refactor
12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 shlibpath_overrides_runpath=yes
12186 ;;
12187
12188 *nto* | *qnx*)
12189 version_type=qnx
12190 need_lib_prefix=no
12191 need_version=no
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 soname_spec='$libname$release$shared_ext$major'
12194 shlibpath_var=LD_LIBRARY_PATH
12195 shlibpath_overrides_runpath=no
12196 hardcode_into_libs=yes
12197 dynamic_linker='ldqnx.so'
12198 ;;
12199
12200 openbsd*)
12201 version_type=sunos
12202 sys_lib_dlsearch_path_spec=/usr/lib
12203 need_lib_prefix=no
12204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12205 need_version=no
12206 else
12207 need_version=yes
12208 fi
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=yes
12213 ;;
12214
12215 os2*)
12216 libname_spec='$name'
12217 version_type=windows
12218 shrext_cmds=.dll
12219 need_version=no
12220 need_lib_prefix=no
12221 # OS/2 can only load a DLL with a base name of 8 characters or less.
12222 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12223 v=$($ECHO $release$versuffix | tr -d .-);
12224 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12225 $ECHO $n$v`$shared_ext'
12226 library_names_spec='${libname}_dll.$libext'
12227 dynamic_linker='OS/2 ld.exe'
12228 shlibpath_var=BEGINLIBPATH
12229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12231 postinstall_cmds='base_file=`basename \$file`~
12232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12233 dldir=$destdir/`dirname \$dlpath`~
12234 test -d \$dldir || mkdir -p \$dldir~
12235 $install_prog $dir/$dlname \$dldir/$dlname~
12236 chmod a+x \$dldir/$dlname~
12237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12239 fi'
12240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12241 dlpath=$dir/\$dldll~
12242 $RM \$dlpath'
12243 ;;
12244
12245 osf3* | osf4* | osf5*)
12246 version_type=osf
12247 need_lib_prefix=no
12248 need_version=no
12249 soname_spec='$libname$release$shared_ext$major'
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12254 ;;
12255
12256 rdos*)
12257 dynamic_linker=no
12258 ;;
12259
12260 serenity*)
12261 version_type=linux # correct to gnu/linux during the next big refactor
12262 need_lib_prefix=no
12263 need_version=no
12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12265 soname_spec='$libname$release$shared_ext$major'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 shlibpath_overrides_runpath=no
12268 dynamic_linker='SerenityOS LibELF'
12269 ;;
12270
12271 solaris*)
12272 version_type=linux # correct to gnu/linux during the next big refactor
12273 need_lib_prefix=no
12274 need_version=no
12275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12276 soname_spec='$libname$release$shared_ext$major'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=yes
12279 hardcode_into_libs=yes
12280 # ldd complains unless libraries are executable
12281 postinstall_cmds='chmod +x $lib'
12282 ;;
12283
12284 sunos4*)
12285 version_type=sunos
12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=yes
12290 if test yes = "$with_gnu_ld"; then
12291 need_lib_prefix=no
12292 fi
12293 need_version=yes
12294 ;;
12295
12296 sysv4 | sysv4.3*)
12297 version_type=linux # correct to gnu/linux during the next big refactor
12298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12299 soname_spec='$libname$release$shared_ext$major'
12300 shlibpath_var=LD_LIBRARY_PATH
12301 case $host_vendor in
12302 sni)
12303 shlibpath_overrides_runpath=no
12304 need_lib_prefix=no
12305 runpath_var=LD_RUN_PATH
12306 ;;
12307 siemens)
12308 need_lib_prefix=no
12309 ;;
12310 motorola)
12311 need_lib_prefix=no
12312 need_version=no
12313 shlibpath_overrides_runpath=no
12314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12315 ;;
12316 esac
12317 ;;
12318
12319 sysv4*MP*)
12320 if test -d /usr/nec; then
12321 version_type=linux # correct to gnu/linux during the next big refactor
12322 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12323 soname_spec='$libname$shared_ext.$major'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 fi
12326 ;;
12327
12328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12329 version_type=sco
12330 need_lib_prefix=no
12331 need_version=no
12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12333 soname_spec='$libname$release$shared_ext$major'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=yes
12336 hardcode_into_libs=yes
12337 if test yes = "$with_gnu_ld"; then
12338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12339 else
12340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12341 case $host_os in
12342 sco3.2v5*)
12343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12344 ;;
12345 esac
12346 fi
12347 sys_lib_dlsearch_path_spec='/usr/lib'
12348 ;;
12349
12350 tpf*)
12351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12352 version_type=linux # correct to gnu/linux during the next big refactor
12353 need_lib_prefix=no
12354 need_version=no
12355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12356 shlibpath_var=LD_LIBRARY_PATH
12357 shlibpath_overrides_runpath=no
12358 hardcode_into_libs=yes
12359 ;;
12360
12361 uts4*)
12362 version_type=linux # correct to gnu/linux during the next big refactor
12363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12364 soname_spec='$libname$release$shared_ext$major'
12365 shlibpath_var=LD_LIBRARY_PATH
12366 ;;
12367
12368 emscripten*)
12369 version_type=none
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='$libname$release$shared_ext'
12373 soname_spec='$libname$release$shared_ext'
12374 finish_cmds=
12375 dynamic_linker="Emscripten linker"
12376 lt_prog_compiler_wl=
12377 lt_prog_compiler_pic=
12378 lt_prog_compiler_static=
12379
12380
12381 if test yes = "$GCC"; then
12382 lt_prog_compiler_wl='-Wl,'
12383 lt_prog_compiler_static='-static'
12384
12385 case $host_os in
12386 aix*)
12387 # All AIX code is PIC.
12388 if test ia64 = "$host_cpu"; then
12389 # AIX 5 now supports IA64 processor
12390 lt_prog_compiler_static='-Bstatic'
12391 fi
12392 lt_prog_compiler_pic='-fPIC'
12393 ;;
12394
12395 amigaos*)
12396 case $host_cpu in
12397 powerpc)
12398 # see comment about AmigaOS4 .so support
12399 lt_prog_compiler_pic='-fPIC'
12400 ;;
12401 m68k)
12402 # FIXME: we need at least 68020 code to build shared libraries, but
12403 # adding the '-m68020' flag to GCC prevents building anything better,
12404 # like '-m68040'.
12405 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12406 ;;
12407 esac
12408 ;;
12409
12410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12411 # PIC is the default for these OSes.
12412 ;;
12413
12414 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12415 # This hack is so that the source file can tell whether it is being
12416 # built for inclusion in a dll (and should export symbols for example).
12417 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12418 # (--disable-auto-import) libraries
12419 lt_prog_compiler_pic='-DDLL_EXPORT'
12420 case $host_os in
12421 os2*)
12422 lt_prog_compiler_static='$wl-static'
12423 ;;
12424 esac
12425 ;;
12426
12427 darwin* | rhapsody*)
12428 # PIC is the default on this platform
12429 # Common symbols not allowed in MH_DYLIB files
12430 lt_prog_compiler_pic='-fno-common'
12431 ;;
12432
12433 haiku*)
12434 # PIC is the default for Haiku.
12435 # The "-static" flag exists, but is broken.
12436 lt_prog_compiler_static=
12437 ;;
12438
12439 hpux*)
12440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12442 # sets the default TLS model and affects inlining.
12443 case $host_cpu in
12444 hppa*64*)
12445 # +Z the default
12446 ;;
12447 *)
12448 lt_prog_compiler_pic='-fPIC'
12449 ;;
12450 esac
12451 ;;
12452
12453 interix[3-9]*)
12454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12455 # Instead, we relocate shared libraries at runtime.
12456 ;;
12457
12458 msdosdjgpp*)
12459 # Just because we use GCC doesn't mean we suddenly get shared libraries
12460 # on systems that don't support them.
12461 lt_prog_compiler_can_build_shared=no
12462 enable_shared=no
12463 ;;
12464
12465 *nto* | *qnx*)
12466 # QNX uses GNU C++, but need to define -shared option too, otherwise
12467 # it will coredump.
12468 lt_prog_compiler_pic='-fPIC -shared'
12469 ;;
12470
12471 sysv4*MP*)
12472 if test -d /usr/nec; then
12473 lt_prog_compiler_pic=-Kconform_pic
12474 fi
12475 ;;
12476
12477 *)
12478 lt_prog_compiler_pic='-fPIC'
12479 ;;
12480 esac
12481
12482 case $cc_basename in
12483 nvcc*) # Cuda Compiler Driver 2.2
12484 lt_prog_compiler_wl='-Xlinker '
12485 if test -n "$lt_prog_compiler_pic"; then
12486 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12487 fi
12488 ;;
12489 esac
12490 else
12491 # PORTME Check for flag to pass linker flags through the system compiler.
12492 case $host_os in
12493 aix*)
12494 lt_prog_compiler_wl='-Wl,'
12495 if test ia64 = "$host_cpu"; then
12496 # AIX 5 now supports IA64 processor
12497 lt_prog_compiler_static='-Bstatic'
12498 else
12499 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12500 fi
12501 ;;
12502
12503 darwin* | rhapsody*)
12504 # PIC is the default on this platform
12505 # Common symbols not allowed in MH_DYLIB files
12506 lt_prog_compiler_pic='-fno-common'
12507 case $cc_basename in
12508 nagfor*)
12509 # NAG Fortran compiler
12510 lt_prog_compiler_wl='-Wl,-Wl,,'
12511 lt_prog_compiler_pic='-PIC'
12512 lt_prog_compiler_static='-Bstatic'
12513 ;;
12514 esac
12515 ;;
12516
12517 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12518 # This hack is so that the source file can tell whether it is being
12519 # built for inclusion in a dll (and should export symbols for example).
12520 lt_prog_compiler_pic='-DDLL_EXPORT'
12521 case $host_os in
12522 os2*)
12523 lt_prog_compiler_static='$wl-static'
12524 ;;
12525 esac
12526 ;;
12527
12528 hpux9* | hpux10* | hpux11*)
12529 lt_prog_compiler_wl='-Wl,'
12530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12531 # not for PA HP-UX.
12532 case $host_cpu in
12533 hppa*64*|ia64*)
12534 # +Z the default
12535 ;;
12536 *)
12537 lt_prog_compiler_pic='+Z'
12538 ;;
12539 esac
12540 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12541 lt_prog_compiler_static='$wl-a ${wl}archive'
12542 ;;
12543
12544 irix5* | irix6* | nonstopux*)
12545 lt_prog_compiler_wl='-Wl,'
12546 # PIC (with -KPIC) is the default.
12547 lt_prog_compiler_static='-non_shared'
12548 ;;
12549
12550 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12551 case $cc_basename in
12552 # old Intel for x86_64, which still supported -KPIC.
12553 ecc*)
12554 lt_prog_compiler_wl='-Wl,'
12555 lt_prog_compiler_pic='-KPIC'
12556 lt_prog_compiler_static='-static'
12557 ;;
12558 *flang* | ftn | f18* | f95*)
12559 # Flang compiler.
12560 lt_prog_compiler_wl='-Wl,'
12561 lt_prog_compiler_pic='-fPIC'
12562 lt_prog_compiler_static='-static'
12563 ;;
12564 # icc used to be incompatible with GCC.
12565 # ICC 10 doesn't accept -KPIC any more.
12566 icc* | ifort*)
12567 lt_prog_compiler_wl='-Wl,'
12568 lt_prog_compiler_pic='-fPIC'
12569 lt_prog_compiler_static='-static'
12570 ;;
12571 # Lahey Fortran 8.1.
12572 lf95*)
12573 lt_prog_compiler_wl='-Wl,'
12574 lt_prog_compiler_pic='--shared'
12575 lt_prog_compiler_static='--static'
12576 ;;
12577 nagfor*)
12578 # NAG Fortran compiler
12579 lt_prog_compiler_wl='-Wl,-Wl,,'
12580 lt_prog_compiler_pic='-PIC'
12581 lt_prog_compiler_static='-Bstatic'
12582 ;;
12583 tcc*)
12584 # Fabrice Bellard et al's Tiny C Compiler
12585 lt_prog_compiler_wl='-Wl,'
12586 lt_prog_compiler_pic='-fPIC'
12587 lt_prog_compiler_static='-static'
12588 ;;
12589 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12590 # Portland Group compilers (*not* the Pentium gcc compiler,
12591 # which looks to be a dead project)
12592 lt_prog_compiler_wl='-Wl,'
12593 lt_prog_compiler_pic='-fpic'
12594 lt_prog_compiler_static='-Bstatic'
12595 ;;
12596 ccc*)
12597 lt_prog_compiler_wl='-Wl,'
12598 # All Alpha code is PIC.
12599 lt_prog_compiler_static='-non_shared'
12600 ;;
12601 xl* | bgxl* | bgf* | mpixl*)
12602 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12603 lt_prog_compiler_wl='-Wl,'
12604 lt_prog_compiler_pic='-qpic'
12605 lt_prog_compiler_static='-qstaticlink'
12606 ;;
12607 *)
12608 case `$CC -V 2>&1 | $SED 5q` in
12609 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12610 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12611 lt_prog_compiler_pic='-KPIC'
12612 lt_prog_compiler_static='-Bstatic'
12613 lt_prog_compiler_wl=''
12614 ;;
12615 *Sun\ F* | *Sun*Fortran*)
12616 lt_prog_compiler_pic='-KPIC'
12617 lt_prog_compiler_static='-Bstatic'
12618 lt_prog_compiler_wl='-Qoption ld '
12619 ;;
12620 *Sun\ C*)
12621 # Sun C 5.9
12622 lt_prog_compiler_pic='-KPIC'
12623 lt_prog_compiler_static='-Bstatic'
12624 lt_prog_compiler_wl='-Wl,'
12625 ;;
12626 *Intel*\ [CF]*Compiler*)
12627 lt_prog_compiler_wl='-Wl,'
12628 lt_prog_compiler_pic='-fPIC'
12629 lt_prog_compiler_static='-static'
12630 ;;
12631 *Portland\ Group*)
12632 lt_prog_compiler_wl='-Wl,'
12633 lt_prog_compiler_pic='-fpic'
12634 lt_prog_compiler_static='-Bstatic'
12635 ;;
12636 esac
12637 ;;
12638 esac
12639 ;;
12640
12641 newsos6)
12642 lt_prog_compiler_pic='-KPIC'
12643 lt_prog_compiler_static='-Bstatic'
12644 ;;
12645
12646 *-mlibc)
12647 lt_prog_compiler_wl='-Wl,'
12648 lt_prog_compiler_pic='-fPIC'
12649 lt_prog_compiler_static='-static'
12650 ;;
12651
12652 *nto* | *qnx*)
12653 # QNX uses GNU C++, but need to define -shared option too, otherwise
12654 # it will coredump.
12655 lt_prog_compiler_pic='-fPIC -shared'
12656 ;;
12657
12658 osf3* | osf4* | osf5*)
12659 lt_prog_compiler_wl='-Wl,'
12660 # All OSF/1 code is PIC.
12661 lt_prog_compiler_static='-non_shared'
12662 ;;
12663
12664 rdos*)
12665 lt_prog_compiler_static='-non_shared'
12666 ;;
12667
12668 serenity*)
12669 ;;
12670
12671 solaris*)
12672 lt_prog_compiler_pic='-KPIC'
12673 lt_prog_compiler_static='-Bstatic'
12674 case $cc_basename in
12675 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12676 lt_prog_compiler_wl='-Qoption ld ';;
12677 *)
12678 lt_prog_compiler_wl='-Wl,';;
12679 esac
12680 ;;
12681
12682 sunos4*)
12683 lt_prog_compiler_wl='-Qoption ld '
12684 lt_prog_compiler_pic='-PIC'
12685 lt_prog_compiler_static='-Bstatic'
12686 ;;
12687
12688 sysv4 | sysv4.2uw2* | sysv4.3*)
12689 lt_prog_compiler_wl='-Wl,'
12690 lt_prog_compiler_pic='-KPIC'
12691 lt_prog_compiler_static='-Bstatic'
12692 ;;
12693
12694 sysv4*MP*)
12695 if test -d /usr/nec; then
12696 lt_prog_compiler_pic='-Kconform_pic'
12697 lt_prog_compiler_static='-Bstatic'
12698 fi
12699 ;;
12700
12701 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12702 lt_prog_compiler_wl='-Wl,'
12703 lt_prog_compiler_pic='-KPIC'
12704 lt_prog_compiler_static='-Bstatic'
12705 ;;
12706
12707 unicos*)
12708 lt_prog_compiler_wl='-Wl,'
12709 lt_prog_compiler_can_build_shared=no
12710 ;;
12711
12712 uts4*)
12713 lt_prog_compiler_pic='-pic'
12714 lt_prog_compiler_static='-Bstatic'
12715 ;;
12716
12717 *)
12718 lt_prog_compiler_can_build_shared=no
12719 ;;
12720 esac
12721 fi
12722
12723 case $host_os in
12724 # For platforms that do not support PIC, -DPIC is meaningless:
12725 *djgpp*)
12726 lt_prog_compiler_pic=
12727 ;;
12728 *)
12729 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12730 ;;
12731 esac
12732
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12734 printf %s "checking for $compiler option to produce PIC... " >&6; }
12735 if test ${lt_cv_prog_compiler_pic+y}
12736 then :
12737 printf %s "(cached) " >&6
12738 else case e in #(
12739 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12740 esac
12741 fi
12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12743 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12744 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12745
12746 #
12747 # Check to make sure the PIC flag actually works.
12748 #
12749 if test -n "$lt_prog_compiler_pic"; then
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12751 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12752 if test ${lt_cv_prog_compiler_pic_works+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else case e in #(
12756 e) lt_cv_prog_compiler_pic_works=no
12757 ac_outfile=conftest.$ac_objext
12758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12759 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12760 # Insert the option either (1) after the last *FLAGS variable, or
12761 # (2) before a word containing "conftest.", or (3) at the end.
12762 # Note that $ac_compile itself does not contain backslashes and begins
12763 # with a dollar sign (not a hyphen), so the echo should work correctly.
12764 # The option is referenced via a variable to avoid confusing sed.
12765 lt_compile=`echo "$ac_compile" | $SED \
12766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12768 -e 's:$: $lt_compiler_flag:'`
12769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12770 (eval "$lt_compile" 2>conftest.err)
12771 ac_status=$?
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 if (exit $ac_status) && test -s "$ac_outfile"; then
12775 # The compiler can only warn and ignore the option if not recognized
12776 # So say no if there are warnings other than the usual output.
12777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12779 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12780 lt_cv_prog_compiler_pic_works=yes
12781 fi
12782 fi
12783 $RM conftest*
12784 ;;
12785 esac
12786 fi
12787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12788 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12789
12790 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12791 case $lt_prog_compiler_pic in
12792 "" | " "*) ;;
12793 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12794 esac
12795 else
12796 lt_prog_compiler_pic=
12797 lt_prog_compiler_can_build_shared=no
12798 fi
12799
12800 fi
12801
12802
12803
12804
12805
12806 #
12807 # Check to make sure the static flag actually works.
12808 #
12809 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12811 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12812 if test ${lt_cv_prog_compiler_static_works+y}
12813 then :
12814 printf %s "(cached) " >&6
12815 else case e in #(
12816 e) lt_cv_prog_compiler_static_works=no
12817 save_LDFLAGS=$LDFLAGS
12818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12821 # The linker can only warn and ignore the option if not recognized
12822 # So say no if there are warnings
12823 if test -s conftest.err; then
12824 # Append any errors to the config.log.
12825 cat conftest.err 1>&5
12826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12828 if diff conftest.exp conftest.er2 >/dev/null; then
12829 lt_cv_prog_compiler_static_works=yes
12830 fi
12831 else
12832 lt_cv_prog_compiler_static_works=yes
12833 fi
12834 fi
12835 $RM -r conftest*
12836 LDFLAGS=$save_LDFLAGS
12837 ;;
12838 esac
12839 fi
12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12841 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12842
12843 if test yes = "$lt_cv_prog_compiler_static_works"; then
12844 :
12845 else
12846 lt_prog_compiler_static=
12847 fi
12848
12849
12850
12851 ='-fPIC'
12852 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12853 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12854 archive_cmds_need_lc=no
12855 no_undefined_flag=
12856 ;;
12857
12858 *)
12859 dynamic_linker=no
12860 ;;
12861 esac
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12863 printf "%s\n" "$dynamic_linker" >&6; }
12864 test no = "$dynamic_linker" && can_build_shared=no
12865
12866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12867 if test yes = "$GCC"; then
12868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12869 fi
12870
12871 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12872 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12873 fi
12874
12875 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12876 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12877 fi
12878
12879 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12880 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12881
12882 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12883 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12884
12885 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12886 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12985 printf %s "checking how to hardcode library paths into programs... " >&6; }
12986 hardcode_action=
12987 if test -n "$hardcode_libdir_flag_spec" ||
12988 test -n "$runpath_var" ||
12989 test yes = "$hardcode_automatic"; then
12990
12991 # We can hardcode non-existent directories.
12992 if test no != "$hardcode_direct" &&
12993 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12994 # have to relink, otherwise we might link with an installed library
12995 # when we should be linking with a yet-to-be-installed one
12996 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12997 test no != "$hardcode_minus_L"; then
12998 # Linking always hardcodes the temporary library directory.
12999 hardcode_action=relink
13000 else
13001 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13002 hardcode_action=immediate
13003 fi
13004 else
13005 # We cannot hardcode anything, or else we can only hardcode existing
13006 # directories.
13007 hardcode_action=unsupported
13008 fi
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13010 printf "%s\n" "$hardcode_action" >&6; }
13011
13012 if test relink = "$hardcode_action" ||
13013 test yes = "$inherit_rpath"; then
13014 # Fast installation is not supported
13015 enable_fast_install=no
13016 elif test yes = "$shlibpath_overrides_runpath" ||
13017 test no = "$enable_shared"; then
13018 # Fast installation is not necessary
13019 enable_fast_install=needless
13020 fi
13021
13022
13023
13024
13025
13026
13027 if test yes != "$enable_dlopen"; then
13028 enable_dlopen=unknown
13029 enable_dlopen_self=unknown
13030 enable_dlopen_self_static=unknown
13031 else
13032 lt_cv_dlopen=no
13033 lt_cv_dlopen_libs=
13034
13035 case $host_os in
13036 beos*)
13037 lt_cv_dlopen=load_add_on
13038 lt_cv_dlopen_libs=
13039 lt_cv_dlopen_self=yes
13040 ;;
13041
13042 mingw* | windows* | pw32* | cegcc*)
13043 lt_cv_dlopen=LoadLibrary
13044 lt_cv_dlopen_libs=
13045 ;;
13046
13047 cygwin*)
13048 lt_cv_dlopen=dlopen
13049 lt_cv_dlopen_libs=
13050 ;;
13051
13052 darwin*)
13053 # if libdl is installed we need to link against it
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13055 printf %s "checking for dlopen in -ldl... " >&6; }
13056 if test ${ac_cv_lib_dl_dlopen+y}
13057 then :
13058 printf %s "(cached) " >&6
13059 else case e in #(
13060 e) ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-ldl $LIBS"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064
13065 /* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply.
13068 The 'extern "C"' is for builds by C++ compilers;
13069 although this is not generally supported in C code supporting it here
13070 has little cost and some practical benefit (sr 110532). */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char dlopen (void);
13075 int
13076 main (void)
13077 {
13078 return dlopen ();
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 if ac_fn_c_try_link "$LINENO"
13084 then :
13085 ac_cv_lib_dl_dlopen=yes
13086 else case e in #(
13087 e) ac_cv_lib_dl_dlopen=no ;;
13088 esac
13089 fi
13090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS ;;
13093 esac
13094 fi
13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13096 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13097 if test "x$ac_cv_lib_dl_dlopen" = xyes
13098 then :
13099 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13100 else case e in #(
13101 e)
13102 lt_cv_dlopen=dyld
13103 lt_cv_dlopen_libs=
13104 lt_cv_dlopen_self=yes
13105 ;;
13106 esac
13107 fi
13108
13109 ;;
13110
13111 tpf*)
13112 # Don't try to run any link tests for TPF. We know it's impossible
13113 # because TPF is a cross-compiler, and we know how we open DSOs.
13114 lt_cv_dlopen=dlopen
13115 lt_cv_dlopen_libs=
13116 lt_cv_dlopen_self=no
13117 ;;
13118
13119 *)
13120 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13121 if test "x$ac_cv_func_shl_load" = xyes
13122 then :
13123 lt_cv_dlopen=shl_load
13124 else case e in #(
13125 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13126 printf %s "checking for shl_load in -ldld... " >&6; }
13127 if test ${ac_cv_lib_dld_shl_load+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else case e in #(
13131 e) ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-ldld $LIBS"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply.
13139 The 'extern "C"' is for builds by C++ compilers;
13140 although this is not generally supported in C code supporting it here
13141 has little cost and some practical benefit (sr 110532). */
13142 #ifdef __cplusplus
13143 extern "C"
13144 #endif
13145 char shl_load (void);
13146 int
13147 main (void)
13148 {
13149 return shl_load ();
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"
13155 then :
13156 ac_cv_lib_dld_shl_load=yes
13157 else case e in #(
13158 e) ac_cv_lib_dld_shl_load=no ;;
13159 esac
13160 fi
13161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS ;;
13164 esac
13165 fi
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13167 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13168 if test "x$ac_cv_lib_dld_shl_load" = xyes
13169 then :
13170 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13171 else case e in #(
13172 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13173 if test "x$ac_cv_func_dlopen" = xyes
13174 then :
13175 lt_cv_dlopen=dlopen
13176 else case e in #(
13177 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13178 printf %s "checking for dlopen in -ldl... " >&6; }
13179 if test ${ac_cv_lib_dl_dlopen+y}
13180 then :
13181 printf %s "(cached) " >&6
13182 else case e in #(
13183 e) ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-ldl $LIBS"
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187
13188 /* Override any GCC internal prototype to avoid an error.
13189 Use char because int might match the return type of a GCC
13190 builtin and then its argument prototype would still apply.
13191 The 'extern "C"' is for builds by C++ compilers;
13192 although this is not generally supported in C code supporting it here
13193 has little cost and some practical benefit (sr 110532). */
13194 #ifdef __cplusplus
13195 extern "C"
13196 #endif
13197 char dlopen (void);
13198 int
13199 main (void)
13200 {
13201 return dlopen ();
13202 ;
13203 return 0;
13204 }
13205 _ACEOF
13206 if ac_fn_c_try_link "$LINENO"
13207 then :
13208 ac_cv_lib_dl_dlopen=yes
13209 else case e in #(
13210 e) ac_cv_lib_dl_dlopen=no ;;
13211 esac
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LIBS=$ac_check_lib_save_LIBS ;;
13216 esac
13217 fi
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13219 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13220 if test "x$ac_cv_lib_dl_dlopen" = xyes
13221 then :
13222 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13223 else case e in #(
13224 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13225 printf %s "checking for dlopen in -lsvld... " >&6; }
13226 if test ${ac_cv_lib_svld_dlopen+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else case e in #(
13230 e) ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-lsvld $LIBS"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply.
13238 The 'extern "C"' is for builds by C++ compilers;
13239 although this is not generally supported in C code supporting it here
13240 has little cost and some practical benefit (sr 110532). */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char dlopen (void);
13245 int
13246 main (void)
13247 {
13248 return dlopen ();
13249 ;
13250 return 0;
13251 }
13252 _ACEOF
13253 if ac_fn_c_try_link "$LINENO"
13254 then :
13255 ac_cv_lib_svld_dlopen=yes
13256 else case e in #(
13257 e) ac_cv_lib_svld_dlopen=no ;;
13258 esac
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS ;;
13263 esac
13264 fi
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13266 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13267 if test "x$ac_cv_lib_svld_dlopen" = xyes
13268 then :
13269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13270 else case e in #(
13271 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13272 printf %s "checking for dld_link in -ldld... " >&6; }
13273 if test ${ac_cv_lib_dld_dld_link+y}
13274 then :
13275 printf %s "(cached) " >&6
13276 else case e in #(
13277 e) ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-ldld $LIBS"
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13281
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply.
13285 The 'extern "C"' is for builds by C++ compilers;
13286 although this is not generally supported in C code supporting it here
13287 has little cost and some practical benefit (sr 110532). */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 char dld_link (void);
13292 int
13293 main (void)
13294 {
13295 return dld_link ();
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_link "$LINENO"
13301 then :
13302 ac_cv_lib_dld_dld_link=yes
13303 else case e in #(
13304 e) ac_cv_lib_dld_dld_link=no ;;
13305 esac
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS ;;
13310 esac
13311 fi
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13313 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13314 if test "x$ac_cv_lib_dld_dld_link" = xyes
13315 then :
13316 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13317 fi
13318
13319 ;;
13320 esac
13321 fi
13322
13323 ;;
13324 esac
13325 fi
13326
13327 ;;
13328 esac
13329 fi
13330
13331 ;;
13332 esac
13333 fi
13334
13335 ;;
13336 esac
13337 fi
13338
13339 ;;
13340 esac
13341
13342 if test no = "$lt_cv_dlopen"; then
13343 enable_dlopen=no
13344 else
13345 enable_dlopen=yes
13346 fi
13347
13348 case $lt_cv_dlopen in
13349 dlopen)
13350 save_CPPFLAGS=$CPPFLAGS
13351 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13352
13353 save_LDFLAGS=$LDFLAGS
13354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13355
13356 save_LIBS=$LIBS
13357 LIBS="$lt_cv_dlopen_libs $LIBS"
13358
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13360 printf %s "checking whether a program can dlopen itself... " >&6; }
13361 if test ${lt_cv_dlopen_self+y}
13362 then :
13363 printf %s "(cached) " >&6
13364 else case e in #(
13365 e) if test yes = "$cross_compiling"; then :
13366 lt_cv_dlopen_self=cross
13367 else
13368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13369 lt_status=$lt_dlunknown
13370 cat > conftest.$ac_ext <<_LT_EOF
13371 #line $LINENO "configure"
13372 #include "confdefs.h"
13373
13374 #if HAVE_DLFCN_H
13375 #include <dlfcn.h>
13376 #endif
13377
13378 #include <stdio.h>
13379
13380 #ifdef RTLD_GLOBAL
13381 # define LT_DLGLOBAL RTLD_GLOBAL
13382 #else
13383 # ifdef DL_GLOBAL
13384 # define LT_DLGLOBAL DL_GLOBAL
13385 # else
13386 # define LT_DLGLOBAL 0
13387 # endif
13388 #endif
13389
13390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13391 find out it does not work in some platform. */
13392 #ifndef LT_DLLAZY_OR_NOW
13393 # ifdef RTLD_LAZY
13394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13395 # else
13396 # ifdef DL_LAZY
13397 # define LT_DLLAZY_OR_NOW DL_LAZY
13398 # else
13399 # ifdef RTLD_NOW
13400 # define LT_DLLAZY_OR_NOW RTLD_NOW
13401 # else
13402 # ifdef DL_NOW
13403 # define LT_DLLAZY_OR_NOW DL_NOW
13404 # else
13405 # define LT_DLLAZY_OR_NOW 0
13406 # endif
13407 # endif
13408 # endif
13409 # endif
13410 #endif
13411
13412 /* When -fvisibility=hidden is used, assume the code has been annotated
13413 correspondingly for the symbols needed. */
13414 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13415 int fnord (void) __attribute__((visibility("default")));
13416 #endif
13417
13418 int fnord (void) { return 42; }
13419 int main (void)
13420 {
13421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13422 int status = $lt_dlunknown;
13423
13424 if (self)
13425 {
13426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13427 else
13428 {
13429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13430 else puts (dlerror ());
13431 }
13432 /* dlclose (self); */
13433 }
13434 else
13435 puts (dlerror ());
13436
13437 return status;
13438 }
13439 _LT_EOF
13440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13441 (eval $ac_link) 2>&5
13442 ac_status=$?
13443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13444 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13445 (./conftest; exit; ) >&5 2>/dev/null
13446 lt_status=$?
13447 case x$lt_status in
13448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13451 esac
13452 else :
13453 # compilation failed
13454 lt_cv_dlopen_self=no
13455 fi
13456 fi
13457 rm -fr conftest*
13458
13459 ;;
13460 esac
13461 fi
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13463 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13464
13465 if test yes = "$lt_cv_dlopen_self"; then
13466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13468 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13469 if test ${lt_cv_dlopen_self_static+y}
13470 then :
13471 printf %s "(cached) " >&6
13472 else case e in #(
13473 e) if test yes = "$cross_compiling"; then :
13474 lt_cv_dlopen_self_static=cross
13475 else
13476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13477 lt_status=$lt_dlunknown
13478 cat > conftest.$ac_ext <<_LT_EOF
13479 #line $LINENO "configure"
13480 #include "confdefs.h"
13481
13482 #if HAVE_DLFCN_H
13483 #include <dlfcn.h>
13484 #endif
13485
13486 #include <stdio.h>
13487
13488 #ifdef RTLD_GLOBAL
13489 # define LT_DLGLOBAL RTLD_GLOBAL
13490 #else
13491 # ifdef DL_GLOBAL
13492 # define LT_DLGLOBAL DL_GLOBAL
13493 # else
13494 # define LT_DLGLOBAL 0
13495 # endif
13496 #endif
13497
13498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13499 find out it does not work in some platform. */
13500 #ifndef LT_DLLAZY_OR_NOW
13501 # ifdef RTLD_LAZY
13502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13503 # else
13504 # ifdef DL_LAZY
13505 # define LT_DLLAZY_OR_NOW DL_LAZY
13506 # else
13507 # ifdef RTLD_NOW
13508 # define LT_DLLAZY_OR_NOW RTLD_NOW
13509 # else
13510 # ifdef DL_NOW
13511 # define LT_DLLAZY_OR_NOW DL_NOW
13512 # else
13513 # define LT_DLLAZY_OR_NOW 0
13514 # endif
13515 # endif
13516 # endif
13517 # endif
13518 #endif
13519
13520 /* When -fvisibility=hidden is used, assume the code has been annotated
13521 correspondingly for the symbols needed. */
13522 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13523 int fnord (void) __attribute__((visibility("default")));
13524 #endif
13525
13526 int fnord (void) { return 42; }
13527 int main (void)
13528 {
13529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13530 int status = $lt_dlunknown;
13531
13532 if (self)
13533 {
13534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13535 else
13536 {
13537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13538 else puts (dlerror ());
13539 }
13540 /* dlclose (self); */
13541 }
13542 else
13543 puts (dlerror ());
13544
13545 return status;
13546 }
13547 _LT_EOF
13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13549 (eval $ac_link) 2>&5
13550 ac_status=$?
13551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13553 (./conftest; exit; ) >&5 2>/dev/null
13554 lt_status=$?
13555 case x$lt_status in
13556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13559 esac
13560 else :
13561 # compilation failed
13562 lt_cv_dlopen_self_static=no
13563 fi
13564 fi
13565 rm -fr conftest*
13566
13567 ;;
13568 esac
13569 fi
13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13571 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13572 fi
13573
13574 CPPFLAGS=$save_CPPFLAGS
13575 LDFLAGS=$save_LDFLAGS
13576 LIBS=$save_LIBS
13577 ;;
13578 esac
13579
13580 case $lt_cv_dlopen_self in
13581 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13582 *) enable_dlopen_self=unknown ;;
13583 esac
13584
13585 case $lt_cv_dlopen_self_static in
13586 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13587 *) enable_dlopen_self_static=unknown ;;
13588 esac
13589 fi
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 striplib=
13608 old_striplib=
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13610 printf %s "checking whether stripping libraries is possible... " >&6; }
13611 if test -z "$STRIP"; then
13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 printf "%s\n" "no" >&6; }
13614 else
13615 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13616 old_striplib="$STRIP --strip-debug"
13617 striplib="$STRIP --strip-unneeded"
13618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13619 printf "%s\n" "yes" >&6; }
13620 else
13621 case $host_os in
13622 darwin*)
13623 # FIXME - insert some real tests, host_os isn't really good enough
13624 striplib="$STRIP -x"
13625 old_striplib="$STRIP -S"
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 printf "%s\n" "yes" >&6; }
13628 ;;
13629 freebsd*)
13630 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13631 old_striplib="$STRIP --strip-debug"
13632 striplib="$STRIP --strip-unneeded"
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634 printf "%s\n" "yes" >&6; }
13635 else
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 printf "%s\n" "no" >&6; }
13638 fi
13639 ;;
13640 *)
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 printf "%s\n" "no" >&6; }
13643 ;;
13644 esac
13645 fi
13646 fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 # Report what library types will actually be built
13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13661 printf %s "checking if libtool supports shared libraries... " >&6; }
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13663 printf "%s\n" "$can_build_shared" >&6; }
13664
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13666 printf %s "checking whether to build shared libraries... " >&6; }
13667 test no = "$can_build_shared" && enable_shared=no
13668
13669 # On AIX, shared libraries and static libraries use the same namespace, and
13670 # are all built from PIC.
13671 case $host_os in
13672 aix3*)
13673 test yes = "$enable_shared" && enable_static=no
13674 if test -n "$RANLIB"; then
13675 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13676 postinstall_cmds='$RANLIB $lib'
13677 fi
13678 ;;
13679
13680 aix[4-9]*)
13681 if test ia64 != "$host_cpu"; then
13682 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13683 yes,aix,yes) ;; # shared object as lib.so file only
13684 yes,svr4,*) ;; # shared object as lib.so archive member only
13685 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13686 esac
13687 fi
13688 ;;
13689 esac
13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13691 printf "%s\n" "$enable_shared" >&6; }
13692
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13694 printf %s "checking whether to build static libraries... " >&6; }
13695 # Make sure either enable_shared or enable_static is yes.
13696 test yes = "$enable_shared" || enable_static=yes
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13698 printf "%s\n" "$enable_static" >&6; }
13699
13700
13701
13702
13703 fi
13704 ac_ext=c
13705 ac_cpp='$CPP $CPPFLAGS'
13706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13709
13710 CC=$lt_save_CC
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726 ac_config_commands="$ac_config_commands libtool"
13727
13728
13729
13730
13731 # Only expand once:
13732
13733
13734
13735
13736
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13738 printf %s "checking whether ln -s works... " >&6; }
13739 LN_S=$as_ln_s
13740 if test "$LN_S" = "ln -s"; then
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742 printf "%s\n" "yes" >&6; }
13743 else
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13745 printf "%s\n" "no, using $LN_S" >&6; }
13746 fi
13747
13748
13749 #--------------------------------------------------------------------
13750 # System type
13751 #--------------------------------------------------------------------
13752
13753 case $host in
13754 *cygwin*)
13755 ARCH="cygwin"
13756 EXT="cygwin"
13757 ;;
13758 *apple-darwin*)
13759 # Darwin can be powerpc, i386, or x86_64
13760 ARCH=`uname -p`
13761 EXT="darwin"
13762 ;;
13763 *freebsd*)
13764 ARCH="linux"
13765 EXT="lnx"
13766 ;;
13767 *haiku*)
13768 # Haiku can be arm, i386, or x86_64
13769 ARCH=`uname -p`
13770 EXT="haiku"
13771 ;;
13772 *hpux*)
13773 ARCH="hp"
13774 EXT="hpu"
13775 ;;
13776 *irix*)
13777 ARCH="sgi"
13778 EXT="sgi"
13779 ;;
13780 *linux*)
13781 ARCH="linux"
13782 EXT="lnx"
13783 ;;
13784 *mingw32*)
13785 #ARCH=""
13786 EXT="mingw32"
13787 ;;
13788 *osf1*)
13789 ARCH="alpha"
13790 EXT="osf"
13791 ;;
13792 *solaris*)
13793 ARCH="solaris"
13794 EXT="sol"
13795 ;;
13796 *ultrix*)
13797 ARCH="dec"
13798 EXT="dec"
13799 ;;
13800 *)
13801 echo "cfitsio: == Don't know what to do with $host"
13802 ;;
13803 esac
13804
13805 #--------------------------------------------------------------------
13806 # Try first to find a proprietary C compiler, then gcc
13807 #--------------------------------------------------------------------
13808 # This section needs to precede the command options since e.g. the
13809 # bzip2 CHECK_LIB test needs a compiler and in the process sets "CC"
13810 # if it isn't already set.
13811
13812 if test "x$EXT" = xdarwin; then
13813 # Prefer clang on Darwin:
13814 ac_ext=c
13815 ac_cpp='$CPP $CPPFLAGS'
13816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13819 if test -n "$ac_tool_prefix"; then
13820 for ac_prog in clang cc gcc
13821 do
13822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13825 printf %s "checking for $ac_word... " >&6; }
13826 if test ${ac_cv_prog_CC+y}
13827 then :
13828 printf %s "(cached) " >&6
13829 else case e in #(
13830 e) if test -n "$CC"; then
13831 ac_cv_prog_CC="$CC" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836 IFS=$as_save_IFS
13837 case $as_dir in #(((
13838 '') as_dir=./ ;;
13839 */) ;;
13840 *) as_dir=$as_dir/ ;;
13841 esac
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13846 break 2
13847 fi
13848 done
13849 done
13850 IFS=$as_save_IFS
13851
13852 fi ;;
13853 esac
13854 fi
13855 CC=$ac_cv_prog_CC
13856 if test -n "$CC"; then
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13858 printf "%s\n" "$CC" >&6; }
13859 else
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 printf "%s\n" "no" >&6; }
13862 fi
13863
13864
13865 test -n "$CC" && break
13866 done
13867 fi
13868 if test -z "$CC"; then
13869 ac_ct_CC=$CC
13870 for ac_prog in clang cc gcc
13871 do
13872 # Extract the first word of "$ac_prog", so it can be a program name with args.
13873 set dummy $ac_prog; ac_word=$2
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 printf %s "checking for $ac_word... " >&6; }
13876 if test ${ac_cv_prog_ac_ct_CC+y}
13877 then :
13878 printf %s "(cached) " >&6
13879 else case e in #(
13880 e) if test -n "$ac_ct_CC"; then
13881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13885 do
13886 IFS=$as_save_IFS
13887 case $as_dir in #(((
13888 '') as_dir=./ ;;
13889 */) ;;
13890 *) as_dir=$as_dir/ ;;
13891 esac
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13894 ac_cv_prog_ac_ct_CC="$ac_prog"
13895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898 done
13899 done
13900 IFS=$as_save_IFS
13901
13902 fi ;;
13903 esac
13904 fi
13905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13906 if test -n "$ac_ct_CC"; then
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13908 printf "%s\n" "$ac_ct_CC" >&6; }
13909 else
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 printf "%s\n" "no" >&6; }
13912 fi
13913
13914
13915 test -n "$ac_ct_CC" && break
13916 done
13917
13918 if test "x$ac_ct_CC" = x; then
13919 CC=""
13920 else
13921 case $cross_compiling:$ac_tool_warned in
13922 yes:)
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13924 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13925 ac_tool_warned=yes ;;
13926 esac
13927 CC=$ac_ct_CC
13928 fi
13929 fi
13930
13931
13932 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13933 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13934 as_fn_error $? "no acceptable C compiler found in \$PATH
13935 See 'config.log' for more details" "$LINENO" 5; }
13936
13937 # Provide some information about the compiler.
13938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13939 set X $ac_compile
13940 ac_compiler=$2
13941 for ac_option in --version -v -V -qversion -version; do
13942 { { ac_try="$ac_compiler $ac_option >&5"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946 esac
13947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13948 printf "%s\n" "$ac_try_echo"; } >&5
13949 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13950 ac_status=$?
13951 if test -s conftest.err; then
13952 sed '10a\
13953 ... rest of stderr output deleted ...
13954 10q' conftest.err >conftest.er1
13955 cat conftest.er1 >&5
13956 fi
13957 rm -f conftest.er1 conftest.err
13958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959 test $ac_status = 0; }
13960 done
13961
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13963 printf %s "checking whether the compiler supports GNU C... " >&6; }
13964 if test ${ac_cv_c_compiler_gnu+y}
13965 then :
13966 printf %s "(cached) " >&6
13967 else case e in #(
13968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970
13971 int
13972 main (void)
13973 {
13974 #ifndef __GNUC__
13975 choke me
13976 #endif
13977
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_compile "$LINENO"
13983 then :
13984 ac_compiler_gnu=yes
13985 else case e in #(
13986 e) ac_compiler_gnu=no ;;
13987 esac
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13991 ;;
13992 esac
13993 fi
13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13995 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13997
13998 if test $ac_compiler_gnu = yes; then
13999 GCC=yes
14000 else
14001 GCC=
14002 fi
14003 ac_test_CFLAGS=${CFLAGS+y}
14004 ac_save_CFLAGS=$CFLAGS
14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14006 printf %s "checking whether $CC accepts -g... " >&6; }
14007 if test ${ac_cv_prog_cc_g+y}
14008 then :
14009 printf %s "(cached) " >&6
14010 else case e in #(
14011 e) ac_save_c_werror_flag=$ac_c_werror_flag
14012 ac_c_werror_flag=yes
14013 ac_cv_prog_cc_g=no
14014 CFLAGS="-g"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017
14018 int
14019 main (void)
14020 {
14021
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"
14027 then :
14028 ac_cv_prog_cc_g=yes
14029 else case e in #(
14030 e) CFLAGS=""
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033
14034 int
14035 main (void)
14036 {
14037
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_compile "$LINENO"
14043 then :
14044
14045 else case e in #(
14046 e) ac_c_werror_flag=$ac_save_c_werror_flag
14047 CFLAGS="-g"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050
14051 int
14052 main (void)
14053 {
14054
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 if ac_fn_c_try_compile "$LINENO"
14060 then :
14061 ac_cv_prog_cc_g=yes
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14064 esac
14065 fi
14066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14067 esac
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14070 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14071 esac
14072 fi
14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14074 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14075 if test $ac_test_CFLAGS; then
14076 CFLAGS=$ac_save_CFLAGS
14077 elif test $ac_cv_prog_cc_g = yes; then
14078 if test "$GCC" = yes; then
14079 CFLAGS="-g -O2"
14080 else
14081 CFLAGS="-g"
14082 fi
14083 else
14084 if test "$GCC" = yes; then
14085 CFLAGS="-O2"
14086 else
14087 CFLAGS=
14088 fi
14089 fi
14090 ac_prog_cc_stdc=no
14091 if test x$ac_prog_cc_stdc = xno
14092 then :
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14094 printf %s "checking for $CC option to enable C11 features... " >&6; }
14095 if test ${ac_cv_prog_cc_c11+y}
14096 then :
14097 printf %s "(cached) " >&6
14098 else case e in #(
14099 e) ac_cv_prog_cc_c11=no
14100 ac_save_CC=$CC
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 $ac_c_conftest_c11_program
14104 _ACEOF
14105 for ac_arg in '' -std=gnu11
14106 do
14107 CC="$ac_save_CC $ac_arg"
14108 if ac_fn_c_try_compile "$LINENO"
14109 then :
14110 ac_cv_prog_cc_c11=$ac_arg
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext conftest.beam
14113 test "x$ac_cv_prog_cc_c11" != "xno" && break
14114 done
14115 rm -f conftest.$ac_ext
14116 CC=$ac_save_CC ;;
14117 esac
14118 fi
14119
14120 if test "x$ac_cv_prog_cc_c11" = xno
14121 then :
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14123 printf "%s\n" "unsupported" >&6; }
14124 else case e in #(
14125 e) if test "x$ac_cv_prog_cc_c11" = x
14126 then :
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14128 printf "%s\n" "none needed" >&6; }
14129 else case e in #(
14130 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
14131 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
14132 CC="$CC $ac_cv_prog_cc_c11" ;;
14133 esac
14134 fi
14135 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
14136 ac_prog_cc_stdc=c11 ;;
14137 esac
14138 fi
14139 fi
14140 if test x$ac_prog_cc_stdc = xno
14141 then :
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
14143 printf %s "checking for $CC option to enable C99 features... " >&6; }
14144 if test ${ac_cv_prog_cc_c99+y}
14145 then :
14146 printf %s "(cached) " >&6
14147 else case e in #(
14148 e) ac_cv_prog_cc_c99=no
14149 ac_save_CC=$CC
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14152 $ac_c_conftest_c99_program
14153 _ACEOF
14154 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
14155 do
14156 CC="$ac_save_CC $ac_arg"
14157 if ac_fn_c_try_compile "$LINENO"
14158 then :
14159 ac_cv_prog_cc_c99=$ac_arg
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext conftest.beam
14162 test "x$ac_cv_prog_cc_c99" != "xno" && break
14163 done
14164 rm -f conftest.$ac_ext
14165 CC=$ac_save_CC ;;
14166 esac
14167 fi
14168
14169 if test "x$ac_cv_prog_cc_c99" = xno
14170 then :
14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14172 printf "%s\n" "unsupported" >&6; }
14173 else case e in #(
14174 e) if test "x$ac_cv_prog_cc_c99" = x
14175 then :
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14177 printf "%s\n" "none needed" >&6; }
14178 else case e in #(
14179 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14180 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
14181 CC="$CC $ac_cv_prog_cc_c99" ;;
14182 esac
14183 fi
14184 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14185 ac_prog_cc_stdc=c99 ;;
14186 esac
14187 fi
14188 fi
14189 if test x$ac_prog_cc_stdc = xno
14190 then :
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
14192 printf %s "checking for $CC option to enable C89 features... " >&6; }
14193 if test ${ac_cv_prog_cc_c89+y}
14194 then :
14195 printf %s "(cached) " >&6
14196 else case e in #(
14197 e) ac_cv_prog_cc_c89=no
14198 ac_save_CC=$CC
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 $ac_c_conftest_c89_program
14202 _ACEOF
14203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14204 do
14205 CC="$ac_save_CC $ac_arg"
14206 if ac_fn_c_try_compile "$LINENO"
14207 then :
14208 ac_cv_prog_cc_c89=$ac_arg
14209 fi
14210 rm -f core conftest.err conftest.$ac_objext conftest.beam
14211 test "x$ac_cv_prog_cc_c89" != "xno" && break
14212 done
14213 rm -f conftest.$ac_ext
14214 CC=$ac_save_CC ;;
14215 esac
14216 fi
14217
14218 if test "x$ac_cv_prog_cc_c89" = xno
14219 then :
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14221 printf "%s\n" "unsupported" >&6; }
14222 else case e in #(
14223 e) if test "x$ac_cv_prog_cc_c89" = x
14224 then :
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14226 printf "%s\n" "none needed" >&6; }
14227 else case e in #(
14228 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14229 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
14230 CC="$CC $ac_cv_prog_cc_c89" ;;
14231 esac
14232 fi
14233 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14234 ac_prog_cc_stdc=c89 ;;
14235 esac
14236 fi
14237 fi
14238
14239 ac_ext=c
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14244
14245
14246 ac_ext=c
14247 ac_cpp='$CPP $CPPFLAGS'
14248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14252 printf %s "checking whether $CC understands -c and -o together... " >&6; }
14253 if test ${am_cv_prog_cc_c_o+y}
14254 then :
14255 printf %s "(cached) " >&6
14256 else case e in #(
14257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259
14260 int
14261 main (void)
14262 {
14263
14264 ;
14265 return 0;
14266 }
14267 _ACEOF
14268 # Make sure it works both with $CC and with simple cc.
14269 # Following AC_PROG_CC_C_O, we do the test twice because some
14270 # compilers refuse to overwrite an existing .o file with -o,
14271 # though they will create one.
14272 am_cv_prog_cc_c_o=yes
14273 for am_i in 1 2; do
14274 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14275 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } \
14279 && test -f conftest2.$ac_objext; then
14280 : OK
14281 else
14282 am_cv_prog_cc_c_o=no
14283 break
14284 fi
14285 done
14286 rm -f core conftest*
14287 unset am_i ;;
14288 esac
14289 fi
14290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14291 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
14292 if test "$am_cv_prog_cc_c_o" != yes; then
14293 # Losing compiler, so override with the script.
14294 # FIXME: It is wrong to rewrite CC.
14295 # But if we don't then we get into trouble of one sort or another.
14296 # A longer-term fix would be to have automake use am__CC in this case,
14297 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14298 CC="$am_aux_dir/compile $CC"
14299 fi
14300 ac_ext=c
14301 ac_cpp='$CPP $CPPFLAGS'
14302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14305
14306
14307 depcc="$CC" am_compiler_list=
14308
14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14310 printf %s "checking dependency style of $depcc... " >&6; }
14311 if test ${am_cv_CC_dependencies_compiler_type+y}
14312 then :
14313 printf %s "(cached) " >&6
14314 else case e in #(
14315 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14316 # We make a subdir and do the tests there. Otherwise we can end up
14317 # making bogus files that we don't know about and never remove. For
14318 # instance it was reported that on HP-UX the gcc test will end up
14319 # making a dummy file named 'D' -- because '-MD' means "put the output
14320 # in D".
14321 rm -rf conftest.dir
14322 mkdir conftest.dir
14323 # Copy depcomp to subdir because otherwise we won't find it if we're
14324 # using a relative directory.
14325 cp "$am_depcomp" conftest.dir
14326 cd conftest.dir
14327 # We will build objects and dependencies in a subdirectory because
14328 # it helps to detect inapplicable dependency modes. For instance
14329 # both Tru64's cc and ICC support -MD to output dependencies as a
14330 # side effect of compilation, but ICC will put the dependencies in
14331 # the current directory while Tru64 will put them in the object
14332 # directory.
14333 mkdir sub
14334
14335 am_cv_CC_dependencies_compiler_type=none
14336 if test "$am_compiler_list" = ""; then
14337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14338 fi
14339 am__universal=false
14340 case " $depcc " in #(
14341 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14342 esac
14343
14344 for depmode in $am_compiler_list; do
14345 # Setup a source with many dependencies, because some compilers
14346 # like to wrap large dependency lists on column 80 (with \), and
14347 # we should not choose a depcomp mode which is confused by this.
14348 #
14349 # We need to recreate these files for each test, as the compiler may
14350 # overwrite some of them when testing with obscure command lines.
14351 # This happens at least with the AIX C compiler.
14352 : > sub/conftest.c
14353 for i in 1 2 3 4 5 6; do
14354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14355 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14356 # Solaris 10 /bin/sh.
14357 echo '/* dummy */' > sub/conftst$i.h
14358 done
14359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14360
14361 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14362 # mode. It turns out that the SunPro C++ compiler does not properly
14363 # handle '-M -o', and we need to detect this. Also, some Intel
14364 # versions had trouble with output in subdirs.
14365 am__obj=sub/conftest.${OBJEXT-o}
14366 am__minus_obj="-o $am__obj"
14367 case $depmode in
14368 gcc)
14369 # This depmode causes a compiler race in universal mode.
14370 test "$am__universal" = false || continue
14371 ;;
14372 nosideeffect)
14373 # After this tag, mechanisms are not by side-effect, so they'll
14374 # only be used when explicitly requested.
14375 if test "x$enable_dependency_tracking" = xyes; then
14376 continue
14377 else
14378 break
14379 fi
14380 ;;
14381 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14382 # This compiler won't grok '-c -o', but also, the minuso test has
14383 # not run yet. These depmodes are late enough in the game, and
14384 # so weak that their functioning should not be impacted.
14385 am__obj=conftest.${OBJEXT-o}
14386 am__minus_obj=
14387 ;;
14388 none) break ;;
14389 esac
14390 if depmode=$depmode \
14391 source=sub/conftest.c object=$am__obj \
14392 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14393 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14394 >/dev/null 2>conftest.err &&
14395 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14396 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14397 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14398 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14399 # icc doesn't choke on unknown options, it will just issue warnings
14400 # or remarks (even with -Werror). So we grep stderr for any message
14401 # that says an option was ignored or not supported.
14402 # When given -MP, icc 7.0 and 7.1 complain thus:
14403 # icc: Command line warning: ignoring option '-M'; no argument required
14404 # The diagnosis changed in icc 8.0:
14405 # icc: Command line remark: option '-MP' not supported
14406 if (grep 'ignoring option' conftest.err ||
14407 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14408 am_cv_CC_dependencies_compiler_type=$depmode
14409 break
14410 fi
14411 fi
14412 done
14413
14414 cd ..
14415 rm -rf conftest.dir
14416 else
14417 am_cv_CC_dependencies_compiler_type=none
14418 fi
14419 ;;
14420 esac
14421 fi
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14423 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
14424 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14425
14426 if
14427 test "x$enable_dependency_tracking" != xno \
14428 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14429 am__fastdepCC_TRUE=
14430 am__fastdepCC_FALSE='#'
14431 else
14432 am__fastdepCC_TRUE='#'
14433 am__fastdepCC_FALSE=
14434 fi
14435
14436
14437 else
14438 ac_ext=c
14439 ac_cpp='$CPP $CPPFLAGS'
14440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14443 if test -n "$ac_tool_prefix"; then
14444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14447 printf %s "checking for $ac_word... " >&6; }
14448 if test ${ac_cv_prog_CC+y}
14449 then :
14450 printf %s "(cached) " >&6
14451 else case e in #(
14452 e) if test -n "$CC"; then
14453 ac_cv_prog_CC="$CC" # Let the user override the test.
14454 else
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14457 do
14458 IFS=$as_save_IFS
14459 case $as_dir in #(((
14460 '') as_dir=./ ;;
14461 */) ;;
14462 *) as_dir=$as_dir/ ;;
14463 esac
14464 for ac_exec_ext in '' $ac_executable_extensions; do
14465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14466 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14468 break 2
14469 fi
14470 done
14471 done
14472 IFS=$as_save_IFS
14473
14474 fi ;;
14475 esac
14476 fi
14477 CC=$ac_cv_prog_CC
14478 if test -n "$CC"; then
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14480 printf "%s\n" "$CC" >&6; }
14481 else
14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 printf "%s\n" "no" >&6; }
14484 fi
14485
14486
14487 fi
14488 if test -z "$ac_cv_prog_CC"; then
14489 ac_ct_CC=$CC
14490 # Extract the first word of "gcc", so it can be a program name with args.
14491 set dummy gcc; ac_word=$2
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493 printf %s "checking for $ac_word... " >&6; }
14494 if test ${ac_cv_prog_ac_ct_CC+y}
14495 then :
14496 printf %s "(cached) " >&6
14497 else case e in #(
14498 e) if test -n "$ac_ct_CC"; then
14499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14500 else
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14503 do
14504 IFS=$as_save_IFS
14505 case $as_dir in #(((
14506 '') as_dir=./ ;;
14507 */) ;;
14508 *) as_dir=$as_dir/ ;;
14509 esac
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14512 ac_cv_prog_ac_ct_CC="gcc"
14513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14514 break 2
14515 fi
14516 done
14517 done
14518 IFS=$as_save_IFS
14519
14520 fi ;;
14521 esac
14522 fi
14523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14524 if test -n "$ac_ct_CC"; then
14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14526 printf "%s\n" "$ac_ct_CC" >&6; }
14527 else
14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529 printf "%s\n" "no" >&6; }
14530 fi
14531
14532 if test "x$ac_ct_CC" = x; then
14533 CC=""
14534 else
14535 case $cross_compiling:$ac_tool_warned in
14536 yes:)
14537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14539 ac_tool_warned=yes ;;
14540 esac
14541 CC=$ac_ct_CC
14542 fi
14543 else
14544 CC="$ac_cv_prog_CC"
14545 fi
14546
14547 if test -z "$CC"; then
14548 if test -n "$ac_tool_prefix"; then
14549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14550 set dummy ${ac_tool_prefix}cc; ac_word=$2
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 printf %s "checking for $ac_word... " >&6; }
14553 if test ${ac_cv_prog_CC+y}
14554 then :
14555 printf %s "(cached) " >&6
14556 else case e in #(
14557 e) if test -n "$CC"; then
14558 ac_cv_prog_CC="$CC" # Let the user override the test.
14559 else
14560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14561 for as_dir in $PATH
14562 do
14563 IFS=$as_save_IFS
14564 case $as_dir in #(((
14565 '') as_dir=./ ;;
14566 */) ;;
14567 *) as_dir=$as_dir/ ;;
14568 esac
14569 for ac_exec_ext in '' $ac_executable_extensions; do
14570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14571 ac_cv_prog_CC="${ac_tool_prefix}cc"
14572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14573 break 2
14574 fi
14575 done
14576 done
14577 IFS=$as_save_IFS
14578
14579 fi ;;
14580 esac
14581 fi
14582 CC=$ac_cv_prog_CC
14583 if test -n "$CC"; then
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14585 printf "%s\n" "$CC" >&6; }
14586 else
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14588 printf "%s\n" "no" >&6; }
14589 fi
14590
14591
14592 fi
14593 fi
14594 if test -z "$CC"; then
14595 # Extract the first word of "cc", so it can be a program name with args.
14596 set dummy cc; ac_word=$2
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 printf %s "checking for $ac_word... " >&6; }
14599 if test ${ac_cv_prog_CC+y}
14600 then :
14601 printf %s "(cached) " >&6
14602 else case e in #(
14603 e) if test -n "$CC"; then
14604 ac_cv_prog_CC="$CC" # Let the user override the test.
14605 else
14606 ac_prog_rejected=no
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14609 do
14610 IFS=$as_save_IFS
14611 case $as_dir in #(((
14612 '') as_dir=./ ;;
14613 */) ;;
14614 *) as_dir=$as_dir/ ;;
14615 esac
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14618 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14619 ac_prog_rejected=yes
14620 continue
14621 fi
14622 ac_cv_prog_CC="cc"
14623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14624 break 2
14625 fi
14626 done
14627 done
14628 IFS=$as_save_IFS
14629
14630 if test $ac_prog_rejected = yes; then
14631 # We found a bogon in the path, so make sure we never use it.
14632 set dummy $ac_cv_prog_CC
14633 shift
14634 if test $# != 0; then
14635 # We chose a different compiler from the bogus one.
14636 # However, it has the same basename, so the bogon will be chosen
14637 # first if we set CC to just the basename; use the full file name.
14638 shift
14639 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14640 fi
14641 fi
14642 fi ;;
14643 esac
14644 fi
14645 CC=$ac_cv_prog_CC
14646 if test -n "$CC"; then
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14648 printf "%s\n" "$CC" >&6; }
14649 else
14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 printf "%s\n" "no" >&6; }
14652 fi
14653
14654
14655 fi
14656 if test -z "$CC"; then
14657 if test -n "$ac_tool_prefix"; then
14658 for ac_prog in cl.exe
14659 do
14660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 printf %s "checking for $ac_word... " >&6; }
14664 if test ${ac_cv_prog_CC+y}
14665 then :
14666 printf %s "(cached) " >&6
14667 else case e in #(
14668 e) if test -n "$CC"; then
14669 ac_cv_prog_CC="$CC" # Let the user override the test.
14670 else
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14673 do
14674 IFS=$as_save_IFS
14675 case $as_dir in #(((
14676 '') as_dir=./ ;;
14677 */) ;;
14678 *) as_dir=$as_dir/ ;;
14679 esac
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14684 break 2
14685 fi
14686 done
14687 done
14688 IFS=$as_save_IFS
14689
14690 fi ;;
14691 esac
14692 fi
14693 CC=$ac_cv_prog_CC
14694 if test -n "$CC"; then
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14696 printf "%s\n" "$CC" >&6; }
14697 else
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699 printf "%s\n" "no" >&6; }
14700 fi
14701
14702
14703 test -n "$CC" && break
14704 done
14705 fi
14706 if test -z "$CC"; then
14707 ac_ct_CC=$CC
14708 for ac_prog in cl.exe
14709 do
14710 # Extract the first word of "$ac_prog", so it can be a program name with args.
14711 set dummy $ac_prog; ac_word=$2
14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713 printf %s "checking for $ac_word... " >&6; }
14714 if test ${ac_cv_prog_ac_ct_CC+y}
14715 then :
14716 printf %s "(cached) " >&6
14717 else case e in #(
14718 e) if test -n "$ac_ct_CC"; then
14719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14720 else
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14723 do
14724 IFS=$as_save_IFS
14725 case $as_dir in #(((
14726 '') as_dir=./ ;;
14727 */) ;;
14728 *) as_dir=$as_dir/ ;;
14729 esac
14730 for ac_exec_ext in '' $ac_executable_extensions; do
14731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14732 ac_cv_prog_ac_ct_CC="$ac_prog"
14733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14734 break 2
14735 fi
14736 done
14737 done
14738 IFS=$as_save_IFS
14739
14740 fi ;;
14741 esac
14742 fi
14743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14744 if test -n "$ac_ct_CC"; then
14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14746 printf "%s\n" "$ac_ct_CC" >&6; }
14747 else
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 printf "%s\n" "no" >&6; }
14750 fi
14751
14752
14753 test -n "$ac_ct_CC" && break
14754 done
14755
14756 if test "x$ac_ct_CC" = x; then
14757 CC=""
14758 else
14759 case $cross_compiling:$ac_tool_warned in
14760 yes:)
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14763 ac_tool_warned=yes ;;
14764 esac
14765 CC=$ac_ct_CC
14766 fi
14767 fi
14768
14769 fi
14770 if test -z "$CC"; then
14771 if test -n "$ac_tool_prefix"; then
14772 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14773 set dummy ${ac_tool_prefix}clang; ac_word=$2
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775 printf %s "checking for $ac_word... " >&6; }
14776 if test ${ac_cv_prog_CC+y}
14777 then :
14778 printf %s "(cached) " >&6
14779 else case e in #(
14780 e) if test -n "$CC"; then
14781 ac_cv_prog_CC="$CC" # Let the user override the test.
14782 else
14783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784 for as_dir in $PATH
14785 do
14786 IFS=$as_save_IFS
14787 case $as_dir in #(((
14788 '') as_dir=./ ;;
14789 */) ;;
14790 *) as_dir=$as_dir/ ;;
14791 esac
14792 for ac_exec_ext in '' $ac_executable_extensions; do
14793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14794 ac_cv_prog_CC="${ac_tool_prefix}clang"
14795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14796 break 2
14797 fi
14798 done
14799 done
14800 IFS=$as_save_IFS
14801
14802 fi ;;
14803 esac
14804 fi
14805 CC=$ac_cv_prog_CC
14806 if test -n "$CC"; then
14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14808 printf "%s\n" "$CC" >&6; }
14809 else
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 printf "%s\n" "no" >&6; }
14812 fi
14813
14814
14815 fi
14816 if test -z "$ac_cv_prog_CC"; then
14817 ac_ct_CC=$CC
14818 # Extract the first word of "clang", so it can be a program name with args.
14819 set dummy clang; ac_word=$2
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14821 printf %s "checking for $ac_word... " >&6; }
14822 if test ${ac_cv_prog_ac_ct_CC+y}
14823 then :
14824 printf %s "(cached) " >&6
14825 else case e in #(
14826 e) if test -n "$ac_ct_CC"; then
14827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14828 else
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14831 do
14832 IFS=$as_save_IFS
14833 case $as_dir in #(((
14834 '') as_dir=./ ;;
14835 */) ;;
14836 *) as_dir=$as_dir/ ;;
14837 esac
14838 for ac_exec_ext in '' $ac_executable_extensions; do
14839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14840 ac_cv_prog_ac_ct_CC="clang"
14841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14842 break 2
14843 fi
14844 done
14845 done
14846 IFS=$as_save_IFS
14847
14848 fi ;;
14849 esac
14850 fi
14851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14852 if test -n "$ac_ct_CC"; then
14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14854 printf "%s\n" "$ac_ct_CC" >&6; }
14855 else
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 printf "%s\n" "no" >&6; }
14858 fi
14859
14860 if test "x$ac_ct_CC" = x; then
14861 CC=""
14862 else
14863 case $cross_compiling:$ac_tool_warned in
14864 yes:)
14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14867 ac_tool_warned=yes ;;
14868 esac
14869 CC=$ac_ct_CC
14870 fi
14871 else
14872 CC="$ac_cv_prog_CC"
14873 fi
14874
14875 fi
14876
14877
14878 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14879 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14880 as_fn_error $? "no acceptable C compiler found in \$PATH
14881 See 'config.log' for more details" "$LINENO" 5; }
14882
14883 # Provide some information about the compiler.
14884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14885 set X $ac_compile
14886 ac_compiler=$2
14887 for ac_option in --version -v -V -qversion -version; do
14888 { { ac_try="$ac_compiler $ac_option >&5"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892 esac
14893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14894 printf "%s\n" "$ac_try_echo"; } >&5
14895 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14896 ac_status=$?
14897 if test -s conftest.err; then
14898 sed '10a\
14899 ... rest of stderr output deleted ...
14900 10q' conftest.err >conftest.er1
14901 cat conftest.er1 >&5
14902 fi
14903 rm -f conftest.er1 conftest.err
14904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14905 test $ac_status = 0; }
14906 done
14907
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14909 printf %s "checking whether the compiler supports GNU C... " >&6; }
14910 if test ${ac_cv_c_compiler_gnu+y}
14911 then :
14912 printf %s "(cached) " >&6
14913 else case e in #(
14914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916
14917 int
14918 main (void)
14919 {
14920 #ifndef __GNUC__
14921 choke me
14922 #endif
14923
14924 ;
14925 return 0;
14926 }
14927 _ACEOF
14928 if ac_fn_c_try_compile "$LINENO"
14929 then :
14930 ac_compiler_gnu=yes
14931 else case e in #(
14932 e) ac_compiler_gnu=no ;;
14933 esac
14934 fi
14935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14936 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14937 ;;
14938 esac
14939 fi
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14941 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14943
14944 if test $ac_compiler_gnu = yes; then
14945 GCC=yes
14946 else
14947 GCC=
14948 fi
14949 ac_test_CFLAGS=${CFLAGS+y}
14950 ac_save_CFLAGS=$CFLAGS
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14952 printf %s "checking whether $CC accepts -g... " >&6; }
14953 if test ${ac_cv_prog_cc_g+y}
14954 then :
14955 printf %s "(cached) " >&6
14956 else case e in #(
14957 e) ac_save_c_werror_flag=$ac_c_werror_flag
14958 ac_c_werror_flag=yes
14959 ac_cv_prog_cc_g=no
14960 CFLAGS="-g"
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963
14964 int
14965 main (void)
14966 {
14967
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_compile "$LINENO"
14973 then :
14974 ac_cv_prog_cc_g=yes
14975 else case e in #(
14976 e) CFLAGS=""
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979
14980 int
14981 main (void)
14982 {
14983
14984 ;
14985 return 0;
14986 }
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"
14989 then :
14990
14991 else case e in #(
14992 e) ac_c_werror_flag=$ac_save_c_werror_flag
14993 CFLAGS="-g"
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996
14997 int
14998 main (void)
14999 {
15000
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 if ac_fn_c_try_compile "$LINENO"
15006 then :
15007 ac_cv_prog_cc_g=yes
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15010 esac
15011 fi
15012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15013 esac
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15016 ac_c_werror_flag=$ac_save_c_werror_flag ;;
15017 esac
15018 fi
15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
15020 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
15021 if test $ac_test_CFLAGS; then
15022 CFLAGS=$ac_save_CFLAGS
15023 elif test $ac_cv_prog_cc_g = yes; then
15024 if test "$GCC" = yes; then
15025 CFLAGS="-g -O2"
15026 else
15027 CFLAGS="-g"
15028 fi
15029 else
15030 if test "$GCC" = yes; then
15031 CFLAGS="-O2"
15032 else
15033 CFLAGS=
15034 fi
15035 fi
15036 ac_prog_cc_stdc=no
15037 if test x$ac_prog_cc_stdc = xno
15038 then :
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
15040 printf %s "checking for $CC option to enable C11 features... " >&6; }
15041 if test ${ac_cv_prog_cc_c11+y}
15042 then :
15043 printf %s "(cached) " >&6
15044 else case e in #(
15045 e) ac_cv_prog_cc_c11=no
15046 ac_save_CC=$CC
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 $ac_c_conftest_c11_program
15050 _ACEOF
15051 for ac_arg in '' -std=gnu11
15052 do
15053 CC="$ac_save_CC $ac_arg"
15054 if ac_fn_c_try_compile "$LINENO"
15055 then :
15056 ac_cv_prog_cc_c11=$ac_arg
15057 fi
15058 rm -f core conftest.err conftest.$ac_objext conftest.beam
15059 test "x$ac_cv_prog_cc_c11" != "xno" && break
15060 done
15061 rm -f conftest.$ac_ext
15062 CC=$ac_save_CC ;;
15063 esac
15064 fi
15065
15066 if test "x$ac_cv_prog_cc_c11" = xno
15067 then :
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15069 printf "%s\n" "unsupported" >&6; }
15070 else case e in #(
15071 e) if test "x$ac_cv_prog_cc_c11" = x
15072 then :
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15074 printf "%s\n" "none needed" >&6; }
15075 else case e in #(
15076 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
15077 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
15078 CC="$CC $ac_cv_prog_cc_c11" ;;
15079 esac
15080 fi
15081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
15082 ac_prog_cc_stdc=c11 ;;
15083 esac
15084 fi
15085 fi
15086 if test x$ac_prog_cc_stdc = xno
15087 then :
15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
15089 printf %s "checking for $CC option to enable C99 features... " >&6; }
15090 if test ${ac_cv_prog_cc_c99+y}
15091 then :
15092 printf %s "(cached) " >&6
15093 else case e in #(
15094 e) ac_cv_prog_cc_c99=no
15095 ac_save_CC=$CC
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 $ac_c_conftest_c99_program
15099 _ACEOF
15100 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15101 do
15102 CC="$ac_save_CC $ac_arg"
15103 if ac_fn_c_try_compile "$LINENO"
15104 then :
15105 ac_cv_prog_cc_c99=$ac_arg
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext conftest.beam
15108 test "x$ac_cv_prog_cc_c99" != "xno" && break
15109 done
15110 rm -f conftest.$ac_ext
15111 CC=$ac_save_CC ;;
15112 esac
15113 fi
15114
15115 if test "x$ac_cv_prog_cc_c99" = xno
15116 then :
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15118 printf "%s\n" "unsupported" >&6; }
15119 else case e in #(
15120 e) if test "x$ac_cv_prog_cc_c99" = x
15121 then :
15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15123 printf "%s\n" "none needed" >&6; }
15124 else case e in #(
15125 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15126 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
15127 CC="$CC $ac_cv_prog_cc_c99" ;;
15128 esac
15129 fi
15130 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15131 ac_prog_cc_stdc=c99 ;;
15132 esac
15133 fi
15134 fi
15135 if test x$ac_prog_cc_stdc = xno
15136 then :
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
15138 printf %s "checking for $CC option to enable C89 features... " >&6; }
15139 if test ${ac_cv_prog_cc_c89+y}
15140 then :
15141 printf %s "(cached) " >&6
15142 else case e in #(
15143 e) ac_cv_prog_cc_c89=no
15144 ac_save_CC=$CC
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 $ac_c_conftest_c89_program
15148 _ACEOF
15149 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15150 do
15151 CC="$ac_save_CC $ac_arg"
15152 if ac_fn_c_try_compile "$LINENO"
15153 then :
15154 ac_cv_prog_cc_c89=$ac_arg
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext conftest.beam
15157 test "x$ac_cv_prog_cc_c89" != "xno" && break
15158 done
15159 rm -f conftest.$ac_ext
15160 CC=$ac_save_CC ;;
15161 esac
15162 fi
15163
15164 if test "x$ac_cv_prog_cc_c89" = xno
15165 then :
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15167 printf "%s\n" "unsupported" >&6; }
15168 else case e in #(
15169 e) if test "x$ac_cv_prog_cc_c89" = x
15170 then :
15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15172 printf "%s\n" "none needed" >&6; }
15173 else case e in #(
15174 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15175 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
15176 CC="$CC $ac_cv_prog_cc_c89" ;;
15177 esac
15178 fi
15179 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15180 ac_prog_cc_stdc=c89 ;;
15181 esac
15182 fi
15183 fi
15184
15185 ac_ext=c
15186 ac_cpp='$CPP $CPPFLAGS'
15187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15190
15191
15192 ac_ext=c
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15198 printf %s "checking whether $CC understands -c and -o together... " >&6; }
15199 if test ${am_cv_prog_cc_c_o+y}
15200 then :
15201 printf %s "(cached) " >&6
15202 else case e in #(
15203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205
15206 int
15207 main (void)
15208 {
15209
15210 ;
15211 return 0;
15212 }
15213 _ACEOF
15214 # Make sure it works both with $CC and with simple cc.
15215 # Following AC_PROG_CC_C_O, we do the test twice because some
15216 # compilers refuse to overwrite an existing .o file with -o,
15217 # though they will create one.
15218 am_cv_prog_cc_c_o=yes
15219 for am_i in 1 2; do
15220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } \
15225 && test -f conftest2.$ac_objext; then
15226 : OK
15227 else
15228 am_cv_prog_cc_c_o=no
15229 break
15230 fi
15231 done
15232 rm -f core conftest*
15233 unset am_i ;;
15234 esac
15235 fi
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15237 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
15238 if test "$am_cv_prog_cc_c_o" != yes; then
15239 # Losing compiler, so override with the script.
15240 # FIXME: It is wrong to rewrite CC.
15241 # But if we don't then we get into trouble of one sort or another.
15242 # A longer-term fix would be to have automake use am__CC in this case,
15243 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15244 CC="$am_aux_dir/compile $CC"
15245 fi
15246 ac_ext=c
15247 ac_cpp='$CPP $CPPFLAGS'
15248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15251
15252
15253 depcc="$CC" am_compiler_list=
15254
15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15256 printf %s "checking dependency style of $depcc... " >&6; }
15257 if test ${am_cv_CC_dependencies_compiler_type+y}
15258 then :
15259 printf %s "(cached) " >&6
15260 else case e in #(
15261 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15262 # We make a subdir and do the tests there. Otherwise we can end up
15263 # making bogus files that we don't know about and never remove. For
15264 # instance it was reported that on HP-UX the gcc test will end up
15265 # making a dummy file named 'D' -- because '-MD' means "put the output
15266 # in D".
15267 rm -rf conftest.dir
15268 mkdir conftest.dir
15269 # Copy depcomp to subdir because otherwise we won't find it if we're
15270 # using a relative directory.
15271 cp "$am_depcomp" conftest.dir
15272 cd conftest.dir
15273 # We will build objects and dependencies in a subdirectory because
15274 # it helps to detect inapplicable dependency modes. For instance
15275 # both Tru64's cc and ICC support -MD to output dependencies as a
15276 # side effect of compilation, but ICC will put the dependencies in
15277 # the current directory while Tru64 will put them in the object
15278 # directory.
15279 mkdir sub
15280
15281 am_cv_CC_dependencies_compiler_type=none
15282 if test "$am_compiler_list" = ""; then
15283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15284 fi
15285 am__universal=false
15286 case " $depcc " in #(
15287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15288 esac
15289
15290 for depmode in $am_compiler_list; do
15291 # Setup a source with many dependencies, because some compilers
15292 # like to wrap large dependency lists on column 80 (with \), and
15293 # we should not choose a depcomp mode which is confused by this.
15294 #
15295 # We need to recreate these files for each test, as the compiler may
15296 # overwrite some of them when testing with obscure command lines.
15297 # This happens at least with the AIX C compiler.
15298 : > sub/conftest.c
15299 for i in 1 2 3 4 5 6; do
15300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15301 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15302 # Solaris 10 /bin/sh.
15303 echo '/* dummy */' > sub/conftst$i.h
15304 done
15305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15306
15307 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15308 # mode. It turns out that the SunPro C++ compiler does not properly
15309 # handle '-M -o', and we need to detect this. Also, some Intel
15310 # versions had trouble with output in subdirs.
15311 am__obj=sub/conftest.${OBJEXT-o}
15312 am__minus_obj="-o $am__obj"
15313 case $depmode in
15314 gcc)
15315 # This depmode causes a compiler race in universal mode.
15316 test "$am__universal" = false || continue
15317 ;;
15318 nosideeffect)
15319 # After this tag, mechanisms are not by side-effect, so they'll
15320 # only be used when explicitly requested.
15321 if test "x$enable_dependency_tracking" = xyes; then
15322 continue
15323 else
15324 break
15325 fi
15326 ;;
15327 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15328 # This compiler won't grok '-c -o', but also, the minuso test has
15329 # not run yet. These depmodes are late enough in the game, and
15330 # so weak that their functioning should not be impacted.
15331 am__obj=conftest.${OBJEXT-o}
15332 am__minus_obj=
15333 ;;
15334 none) break ;;
15335 esac
15336 if depmode=$depmode \
15337 source=sub/conftest.c object=$am__obj \
15338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15340 >/dev/null 2>conftest.err &&
15341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15345 # icc doesn't choke on unknown options, it will just issue warnings
15346 # or remarks (even with -Werror). So we grep stderr for any message
15347 # that says an option was ignored or not supported.
15348 # When given -MP, icc 7.0 and 7.1 complain thus:
15349 # icc: Command line warning: ignoring option '-M'; no argument required
15350 # The diagnosis changed in icc 8.0:
15351 # icc: Command line remark: option '-MP' not supported
15352 if (grep 'ignoring option' conftest.err ||
15353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15354 am_cv_CC_dependencies_compiler_type=$depmode
15355 break
15356 fi
15357 fi
15358 done
15359
15360 cd ..
15361 rm -rf conftest.dir
15362 else
15363 am_cv_CC_dependencies_compiler_type=none
15364 fi
15365 ;;
15366 esac
15367 fi
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15369 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
15370 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15371
15372 if
15373 test "x$enable_dependency_tracking" != xno \
15374 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15375 am__fastdepCC_TRUE=
15376 am__fastdepCC_FALSE='#'
15377 else
15378 am__fastdepCC_TRUE='#'
15379 am__fastdepCC_FALSE=
15380 fi
15381
15382
15383 #if test "x$EXT" != xcygwin && test "x$EXT" != xlnx && test "x$EXT" != xmingw32; then
15384 # AC_CHECK_PROGS(CC, cc)
15385 #fi
15386 fi
15387
15388 #--------------------------------------------------------------------
15389 # Command options
15390 #--------------------------------------------------------------------
15391
15392 ADD_CURL=yes
15393 # Check whether --enable-curl was given.
15394 if test ${enable_curl+y}
15395 then :
15396 enableval=$enable_curl; if test $enableval = no; then ADD_CURL=no; fi
15397
15398 fi
15399
15400 if test "x$ADD_CURL" = xno; then
15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Not linking with curl for remote file i/o support" >&5
15402 printf "%s\n" "$as_me: WARNING: Not linking with curl for remote file i/o support" >&2;}
15403 fi
15404
15405 # Check whether --enable-reentrant was given.
15406 if test ${enable_reentrant+y}
15407 then :
15408 enableval=$enable_reentrant; if test $enableval = yes; then BUILD_REENTRANT=yes; fi
15409
15410 fi
15411
15412
15413 SSE_FLAGS=""
15414 # Check whether --enable-sse2 was given.
15415 if test ${enable_sse2+y}
15416 then :
15417 enableval=$enable_sse2; if test $enableval = yes; then SSE_FLAGS="-msse2"; fi
15418
15419 fi
15420
15421
15422 # Check whether --enable-ssse3 was given.
15423 if test ${enable_ssse3+y}
15424 then :
15425 enableval=$enable_ssse3; if test $enableval = yes; then SSE_FLAGS="$SSE_FLAGS -mssse3"; fi
15426
15427 fi
15428
15429
15430 SYMBOLS=""
15431 # Check whether --enable-symbols was given.
15432 if test ${enable_symbols+y}
15433 then :
15434 enableval=$enable_symbols; if test $enableval = yes; then SYMBOLS=yes; fi
15435
15436 fi
15437
15438
15439 # Define BUILD_HERA when building for HERA project to activate code in
15440 # drvrfile.c (by way of fitsio2.h):
15441 # Check whether --enable-hera was given.
15442 if test ${enable_hera+y}
15443 then :
15444 enableval=$enable_hera; if test $enableval = yes; then BUILD_HERA=yes; fi
15445
15446 fi
15447
15448 if test "x$BUILD_HERA" = xyes; then
15449 printf "%s\n" "#define BUILD_HERA 1" >>confdefs.h
15450
15451 fi
15452
15453 # Optional support for bzip2 compression:
15454
15455 # Check whether --with-bzip2 was given.
15456 if test ${with_bzip2+y}
15457 then :
15458 withval=$with_bzip2; if test "x$withval" != "xno"; then
15459 if test "x$withval" = "xyes" ; then
15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lbz2" >&5
15461 printf %s "checking for main in -lbz2... " >&6; }
15462 if test ${ac_cv_lib_bz2_main+y}
15463 then :
15464 printf %s "(cached) " >&6
15465 else case e in #(
15466 e) ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-lbz2 $LIBS"
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470
15471
15472 int
15473 main (void)
15474 {
15475 return main ();
15476 ;
15477 return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_link "$LINENO"
15481 then :
15482 ac_cv_lib_bz2_main=yes
15483 else case e in #(
15484 e) ac_cv_lib_bz2_main=no ;;
15485 esac
15486 fi
15487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15488 conftest$ac_exeext conftest.$ac_ext
15489 LIBS=$ac_check_lib_save_LIBS ;;
15490 esac
15491 fi
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_main" >&5
15493 printf "%s\n" "$ac_cv_lib_bz2_main" >&6; }
15494 if test "x$ac_cv_lib_bz2_main" = xyes
15495 then :
15496 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15497
15498 LIBS="-lbz2 $LIBS"
15499
15500 else case e in #(
15501 e) as_fn_error $? "Unable to locate bz2 library needed when enabling bzip2 support; try specifying the path" "$LINENO" 5 ;;
15502 esac
15503 fi
15504
15505 else
15506 BZIP2_PATH="${withval}"
15507 fi
15508 for ac_header in bzlib.h
15509 do :
15510 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
15511 if test "x$ac_cv_header_bzlib_h" = xyes
15512 then :
15513 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
15514
15515 printf "%s\n" "#define HAVE_BZIP2 1" >>confdefs.h
15516
15517 fi
15518
15519 done
15520 fi
15521
15522
15523 fi
15524
15525
15526 # Optional Globus Toolkit support:
15527
15528 # Check whether --with-gsiftp was given.
15529 if test ${with_gsiftp+y}
15530 then :
15531 withval=$with_gsiftp; if test "x$withval" != "xno"; then
15532 if test "x$withval" != "xyes" ; then
15533 GSIFTP_PATH="${withval}"
15534 fi
15535
15536 printf "%s\n" "#define HAVE_GSIFTP 1" >>confdefs.h
15537
15538 USE_GSIFTP=yes
15539 fi
15540
15541
15542 fi
15543
15544 if test x$USE_GSIFTP != xyes; then
15545 NOGSIFTP_TRUE=
15546 NOGSIFTP_FALSE='#'
15547 else
15548 NOGSIFTP_TRUE='#'
15549 NOGSIFTP_FALSE=
15550 fi
15551
15552
15553
15554 # Check whether --with-gsiftp-flavour was given.
15555 if test ${with_gsiftp_flavour+y}
15556 then :
15557 withval=$with_gsiftp_flavour; if test "x$withval" != "xno"; then
15558 if test "x$withval" != "xyes" ; then
15559 GSIFTP_FLAVOUR="${withval}"
15560 fi
15561
15562 printf "%s\n" "#define GSIFTP_FLAVOUR 1" >>confdefs.h
15563
15564 fi
15565
15566
15567 fi
15568
15569
15570 # Optionally disable check for zlib:
15571 ZLIB_CHECK=yes
15572
15573 # Check whether --with-zlib-check was given.
15574 if test ${with_zlib_check+y}
15575 then :
15576 withval=$with_zlib_check; if test "x$withval" = "xno"; then
15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cfitsio: ZLIB is required!" >&5
15578 printf "%s\n" "$as_me: WARNING: cfitsio: ZLIB is required!" >&2;}
15579 ZLIB_CHECK=no
15580 fi
15581
15582
15583 fi
15584
15585
15586 # Optionally disable Fortran wrappers:
15587 use_fortran=yes
15588
15589 # Check whether --with-fortran was given.
15590 if test ${with_fortran+y}
15591 then :
15592 withval=$with_fortran; if test "x$withval" = "xno"; then
15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cfitsio: Building without Fortran support" >&5
15594 printf "%s\n" "$as_me: WARNING: cfitsio: Building without Fortran support" >&2;}
15595 use_fortran=no
15596 fi
15597
15598
15599 fi
15600
15601
15602 #--------------------------------------------------------------------
15603 # Check for install location prefix
15604 #--------------------------------------------------------------------
15605
15606
15607
15608 # make will complain about duplicate targets for the install directories
15609 # if prefix == exec_prefix
15610 INSTALL_ROOT='${prefix}'
15611
15612 test "$exec_prefix" != NONE -a "$prefix" != "$exec_prefix" \
15613 && INSTALL_ROOT="$INSTALL_ROOT "'${exec_prefix}'
15614
15615 #-------------------------------------------------------------------------------
15616 # Handle --enable-symbols=yes
15617 #-------------------------------------------------------------------------------
15618
15619 # Remove existing/default optimization:
15620 if test "x$SYMBOLS" = "xyes"; then
15621
15622 COPT_DEFAULT=`echo $CFLAGS | tr " " "\012" | grep "^-O[0-9]"`
15623
15624 CFLAGS=`echo $CFLAGS | sed "s:$COPT_DEFAULT::g"`
15625 fi
15626
15627 #-------------------------------------------------------------------------------
15628
15629 # Fortran wrappers:
15630 # -----------------
15631
15632 # Use GNU Fortran wrappers by default:
15633
15634 if test "x$use_fortran" = "xyes"; then
15635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cfitsio: == Adding Fortran wrappers" >&5
15636 printf "%s\n" "$as_me: cfitsio: == Adding Fortran wrappers" >&6;}
15637 #AC_PROG_FC
15638 if test "x$FC" != "x" ; then F77=$FC; fi
15639 ac_ext=f
15640 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15641 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15642 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15643 if test -n "$ac_tool_prefix"; then
15644 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
15645 do
15646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15649 printf %s "checking for $ac_word... " >&6; }
15650 if test ${ac_cv_prog_F77+y}
15651 then :
15652 printf %s "(cached) " >&6
15653 else case e in #(
15654 e) if test -n "$F77"; then
15655 ac_cv_prog_F77="$F77" # Let the user override the test.
15656 else
15657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15658 for as_dir in $PATH
15659 do
15660 IFS=$as_save_IFS
15661 case $as_dir in #(((
15662 '') as_dir=./ ;;
15663 */) ;;
15664 *) as_dir=$as_dir/ ;;
15665 esac
15666 for ac_exec_ext in '' $ac_executable_extensions; do
15667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15668 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15670 break 2
15671 fi
15672 done
15673 done
15674 IFS=$as_save_IFS
15675
15676 fi ;;
15677 esac
15678 fi
15679 F77=$ac_cv_prog_F77
15680 if test -n "$F77"; then
15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
15682 printf "%s\n" "$F77" >&6; }
15683 else
15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685 printf "%s\n" "no" >&6; }
15686 fi
15687
15688
15689 test -n "$F77" && break
15690 done
15691 fi
15692 if test -z "$F77"; then
15693 ac_ct_F77=$F77
15694 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
15695 do
15696 # Extract the first word of "$ac_prog", so it can be a program name with args.
15697 set dummy $ac_prog; ac_word=$2
15698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15699 printf %s "checking for $ac_word... " >&6; }
15700 if test ${ac_cv_prog_ac_ct_F77+y}
15701 then :
15702 printf %s "(cached) " >&6
15703 else case e in #(
15704 e) if test -n "$ac_ct_F77"; then
15705 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15706 else
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in $PATH
15709 do
15710 IFS=$as_save_IFS
15711 case $as_dir in #(((
15712 '') as_dir=./ ;;
15713 */) ;;
15714 *) as_dir=$as_dir/ ;;
15715 esac
15716 for ac_exec_ext in '' $ac_executable_extensions; do
15717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15718 ac_cv_prog_ac_ct_F77="$ac_prog"
15719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15720 break 2
15721 fi
15722 done
15723 done
15724 IFS=$as_save_IFS
15725
15726 fi ;;
15727 esac
15728 fi
15729 ac_ct_F77=$ac_cv_prog_ac_ct_F77
15730 if test -n "$ac_ct_F77"; then
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
15732 printf "%s\n" "$ac_ct_F77" >&6; }
15733 else
15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 printf "%s\n" "no" >&6; }
15736 fi
15737
15738
15739 test -n "$ac_ct_F77" && break
15740 done
15741
15742 if test "x$ac_ct_F77" = x; then
15743 F77=""
15744 else
15745 case $cross_compiling:$ac_tool_warned in
15746 yes:)
15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15748 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15749 ac_tool_warned=yes ;;
15750 esac
15751 F77=$ac_ct_F77
15752 fi
15753 fi
15754
15755
15756 # Provide some information about the compiler.
15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
15758 set X $ac_compile
15759 ac_compiler=$2
15760 for ac_option in --version -v -V -qversion; do
15761 { { ac_try="$ac_compiler $ac_option >&5"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15767 printf "%s\n" "$ac_try_echo"; } >&5
15768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15769 ac_status=$?
15770 if test -s conftest.err; then
15771 sed '10a\
15772 ... rest of stderr output deleted ...
15773 10q' conftest.err >conftest.er1
15774 cat conftest.er1 >&5
15775 fi
15776 rm -f conftest.er1 conftest.err
15777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15778 test $ac_status = 0; }
15779 done
15780 rm -f a.out
15781
15782 # If we don't use '.F' as extension, the preprocessor is not run on the
15783 # input file. (Note that this only needs to work for GNU compilers.)
15784 ac_save_ext=$ac_ext
15785 ac_ext=F
15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran 77" >&5
15787 printf %s "checking whether the compiler supports GNU Fortran 77... " >&6; }
15788 if test ${ac_cv_f77_compiler_gnu+y}
15789 then :
15790 printf %s "(cached) " >&6
15791 else case e in #(
15792 e) cat > conftest.$ac_ext <<_ACEOF
15793 program main
15794 #ifndef __GNUC__
15795 choke me
15796 #endif
15797
15798 end
15799 _ACEOF
15800 if ac_fn_f77_try_compile "$LINENO"
15801 then :
15802 ac_compiler_gnu=yes
15803 else case e in #(
15804 e) ac_compiler_gnu=no ;;
15805 esac
15806 fi
15807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15808 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
15809 ;;
15810 esac
15811 fi
15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
15813 printf "%s\n" "$ac_cv_f77_compiler_gnu" >&6; }
15814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15815
15816 ac_ext=$ac_save_ext
15817 ac_test_FFLAGS=${FFLAGS+y}
15818 ac_save_FFLAGS=$FFLAGS
15819 FFLAGS=
15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
15821 printf %s "checking whether $F77 accepts -g... " >&6; }
15822 if test ${ac_cv_prog_f77_g+y}
15823 then :
15824 printf %s "(cached) " >&6
15825 else case e in #(
15826 e) FFLAGS=-g
15827 cat > conftest.$ac_ext <<_ACEOF
15828 program main
15829
15830 end
15831 _ACEOF
15832 if ac_fn_f77_try_compile "$LINENO"
15833 then :
15834 ac_cv_prog_f77_g=yes
15835 else case e in #(
15836 e) ac_cv_prog_f77_g=no ;;
15837 esac
15838 fi
15839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15840 ;;
15841 esac
15842 fi
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
15844 printf "%s\n" "$ac_cv_prog_f77_g" >&6; }
15845 if test $ac_test_FFLAGS; then
15846 FFLAGS=$ac_save_FFLAGS
15847 elif test $ac_cv_prog_f77_g = yes; then
15848 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15849 FFLAGS="-g -O2"
15850 else
15851 FFLAGS="-g"
15852 fi
15853 else
15854 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15855 FFLAGS="-O2"
15856 else
15857 FFLAGS=
15858 fi
15859 fi
15860
15861 if test $ac_compiler_gnu = yes; then
15862 G77=yes
15863 else
15864 G77=
15865 fi
15866 ac_ext=c
15867 ac_cpp='$CPP $CPPFLAGS'
15868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15871
15872 ac_ext=f
15873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15876
15877 if test -z "$F77" || test no = "$F77"; then
15878 _lt_disable_F77=yes
15879 fi
15880
15881 archive_cmds_need_lc_F77=no
15882 allow_undefined_flag_F77=
15883 always_export_symbols_F77=no
15884 archive_expsym_cmds_F77=
15885 export_dynamic_flag_spec_F77=
15886 hardcode_direct_F77=no
15887 hardcode_direct_absolute_F77=no
15888 hardcode_libdir_flag_spec_F77=
15889 hardcode_libdir_separator_F77=
15890 hardcode_minus_L_F77=no
15891 hardcode_automatic_F77=no
15892 inherit_rpath_F77=no
15893 module_cmds_F77=
15894 module_expsym_cmds_F77=
15895 link_all_deplibs_F77=unknown
15896 old_archive_cmds_F77=$old_archive_cmds
15897 reload_flag_F77=$reload_flag
15898 reload_cmds_F77=$reload_cmds
15899 no_undefined_flag_F77=
15900 whole_archive_flag_spec_F77=
15901 enable_shared_with_static_runtimes_F77=no
15902
15903 # Source file extension for f77 test sources.
15904 ac_ext=f
15905
15906 # Object file extension for compiled f77 test sources.
15907 objext=o
15908 objext_F77=$objext
15909
15910 # No sense in running all these tests if we already determined that
15911 # the F77 compiler isn't working. Some variables (like enable_shared)
15912 # are currently assumed to apply to all compilers on this platform,
15913 # and will be corrupted by setting them based on a non-working compiler.
15914 if test yes != "$_lt_disable_F77"; then
15915 # Code to be used in simple compile tests
15916 lt_simple_compile_test_code="\
15917 subroutine t
15918 return
15919 end
15920 "
15921
15922 # Code to be used in simple link tests
15923 lt_simple_link_test_code="\
15924 program t
15925 end
15926 "
15927
15928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15929
15930
15931
15932
15933
15934
15935 # If no C compiler was specified, use CC.
15936 LTCC=${LTCC-"$CC"}
15937
15938 # If no C compiler flags were specified, use CFLAGS.
15939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15940
15941 # Allow CC to be a program name with arguments.
15942 compiler=$CC
15943
15944
15945 # save warnings/boilerplate of simple test code
15946 ac_outfile=conftest.$ac_objext
15947 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15949 _lt_compiler_boilerplate=`cat conftest.err`
15950 $RM conftest*
15951
15952 ac_outfile=conftest.$ac_objext
15953 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15955 _lt_linker_boilerplate=`cat conftest.err`
15956 $RM -r conftest*
15957
15958
15959 # Allow CC to be a program name with arguments.
15960 lt_save_CC=$CC
15961 lt_save_GCC=$GCC
15962 lt_save_CFLAGS=$CFLAGS
15963 CC=${F77-"f77"}
15964 CFLAGS=$FFLAGS
15965 compiler=$CC
15966 compiler_F77=$CC
15967 func_cc_basename $compiler
15968 cc_basename=$func_cc_basename_result
15969
15970 GCC=$G77
15971 if test -n "$compiler"; then
15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15973 printf %s "checking if libtool supports shared libraries... " >&6; }
15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15975 printf "%s\n" "$can_build_shared" >&6; }
15976
15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15978 printf %s "checking whether to build shared libraries... " >&6; }
15979 test no = "$can_build_shared" && enable_shared=no
15980
15981 # On AIX, shared libraries and static libraries use the same namespace, and
15982 # are all built from PIC.
15983 case $host_os in
15984 aix3*)
15985 test yes = "$enable_shared" && enable_static=no
15986 if test -n "$RANLIB"; then
15987 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15988 postinstall_cmds='$RANLIB $lib'
15989 fi
15990 ;;
15991 aix[4-9]*)
15992 if test ia64 != "$host_cpu"; then
15993 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15994 yes,aix,yes) ;; # shared object as lib.so file only
15995 yes,svr4,*) ;; # shared object as lib.so archive member only
15996 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15997 esac
15998 fi
15999 ;;
16000 esac
16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16002 printf "%s\n" "$enable_shared" >&6; }
16003
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16005 printf %s "checking whether to build static libraries... " >&6; }
16006 # Make sure either enable_shared or enable_static is yes.
16007 test yes = "$enable_shared" || enable_static=yes
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16009 printf "%s\n" "$enable_static" >&6; }
16010
16011 GCC_F77=$G77
16012 LD_F77=$LD
16013
16014 ## CAVEAT EMPTOR:
16015 ## There is no encapsulation within the following macros, do not change
16016 ## the running order or otherwise move them around unless you know exactly
16017 ## what you are doing...
16018 lt_prog_compiler_wl_F77=
16019 lt_prog_compiler_pic_F77=
16020 lt_prog_compiler_static_F77=
16021
16022
16023 if test yes = "$GCC"; then
16024 lt_prog_compiler_wl_F77='-Wl,'
16025 lt_prog_compiler_static_F77='-static'
16026
16027 case $host_os in
16028 aix*)
16029 # All AIX code is PIC.
16030 if test ia64 = "$host_cpu"; then
16031 # AIX 5 now supports IA64 processor
16032 lt_prog_compiler_static_F77='-Bstatic'
16033 fi
16034 lt_prog_compiler_pic_F77='-fPIC'
16035 ;;
16036
16037 amigaos*)
16038 case $host_cpu in
16039 powerpc)
16040 # see comment about AmigaOS4 .so support
16041 lt_prog_compiler_pic_F77='-fPIC'
16042 ;;
16043 m68k)
16044 # FIXME: we need at least 68020 code to build shared libraries, but
16045 # adding the '-m68020' flag to GCC prevents building anything better,
16046 # like '-m68040'.
16047 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16048 ;;
16049 esac
16050 ;;
16051
16052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16053 # PIC is the default for these OSes.
16054 ;;
16055
16056 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16057 # This hack is so that the source file can tell whether it is being
16058 # built for inclusion in a dll (and should export symbols for example).
16059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16060 # (--disable-auto-import) libraries
16061 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16062 case $host_os in
16063 os2*)
16064 lt_prog_compiler_static_F77='$wl-static'
16065 ;;
16066 esac
16067 ;;
16068
16069 darwin* | rhapsody*)
16070 # PIC is the default on this platform
16071 # Common symbols not allowed in MH_DYLIB files
16072 lt_prog_compiler_pic_F77='-fno-common'
16073 ;;
16074
16075 haiku*)
16076 # PIC is the default for Haiku.
16077 # The "-static" flag exists, but is broken.
16078 lt_prog_compiler_static_F77=
16079 ;;
16080
16081 hpux*)
16082 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16083 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16084 # sets the default TLS model and affects inlining.
16085 case $host_cpu in
16086 hppa*64*)
16087 # +Z the default
16088 ;;
16089 *)
16090 lt_prog_compiler_pic_F77='-fPIC'
16091 ;;
16092 esac
16093 ;;
16094
16095 interix[3-9]*)
16096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16097 # Instead, we relocate shared libraries at runtime.
16098 ;;
16099
16100 msdosdjgpp*)
16101 # Just because we use GCC doesn't mean we suddenly get shared libraries
16102 # on systems that don't support them.
16103 lt_prog_compiler_can_build_shared_F77=no
16104 enable_shared=no
16105 ;;
16106
16107 *nto* | *qnx*)
16108 # QNX uses GNU C++, but need to define -shared option too, otherwise
16109 # it will coredump.
16110 lt_prog_compiler_pic_F77='-fPIC -shared'
16111 ;;
16112
16113 sysv4*MP*)
16114 if test -d /usr/nec; then
16115 lt_prog_compiler_pic_F77=-Kconform_pic
16116 fi
16117 ;;
16118
16119 *)
16120 lt_prog_compiler_pic_F77='-fPIC'
16121 ;;
16122 esac
16123
16124 case $cc_basename in
16125 nvcc*) # Cuda Compiler Driver 2.2
16126 lt_prog_compiler_wl_F77='-Xlinker '
16127 if test -n "$lt_prog_compiler_pic_F77"; then
16128 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
16129 fi
16130 ;;
16131 esac
16132 else
16133 # PORTME Check for flag to pass linker flags through the system compiler.
16134 case $host_os in
16135 aix*)
16136 lt_prog_compiler_wl_F77='-Wl,'
16137 if test ia64 = "$host_cpu"; then
16138 # AIX 5 now supports IA64 processor
16139 lt_prog_compiler_static_F77='-Bstatic'
16140 else
16141 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16142 fi
16143 ;;
16144
16145 darwin* | rhapsody*)
16146 # PIC is the default on this platform
16147 # Common symbols not allowed in MH_DYLIB files
16148 lt_prog_compiler_pic_F77='-fno-common'
16149 case $cc_basename in
16150 nagfor*)
16151 # NAG Fortran compiler
16152 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
16153 lt_prog_compiler_pic_F77='-PIC'
16154 lt_prog_compiler_static_F77='-Bstatic'
16155 ;;
16156 esac
16157 ;;
16158
16159 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
16160 # This hack is so that the source file can tell whether it is being
16161 # built for inclusion in a dll (and should export symbols for example).
16162 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16163 case $host_os in
16164 os2*)
16165 lt_prog_compiler_static_F77='$wl-static'
16166 ;;
16167 esac
16168 ;;
16169
16170 hpux9* | hpux10* | hpux11*)
16171 lt_prog_compiler_wl_F77='-Wl,'
16172 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16173 # not for PA HP-UX.
16174 case $host_cpu in
16175 hppa*64*|ia64*)
16176 # +Z the default
16177 ;;
16178 *)
16179 lt_prog_compiler_pic_F77='+Z'
16180 ;;
16181 esac
16182 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16183 lt_prog_compiler_static_F77='$wl-a ${wl}archive'
16184 ;;
16185
16186 irix5* | irix6* | nonstopux*)
16187 lt_prog_compiler_wl_F77='-Wl,'
16188 # PIC (with -KPIC) is the default.
16189 lt_prog_compiler_static_F77='-non_shared'
16190 ;;
16191
16192 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16193 case $cc_basename in
16194 # old Intel for x86_64, which still supported -KPIC.
16195 ecc*)
16196 lt_prog_compiler_wl_F77='-Wl,'
16197 lt_prog_compiler_pic_F77='-KPIC'
16198 lt_prog_compiler_static_F77='-static'
16199 ;;
16200 *flang* | ftn | f18* | f95*)
16201 # Flang compiler.
16202 lt_prog_compiler_wl_F77='-Wl,'
16203 lt_prog_compiler_pic_F77='-fPIC'
16204 lt_prog_compiler_static_F77='-static'
16205 ;;
16206 # icc used to be incompatible with GCC.
16207 # ICC 10 doesn't accept -KPIC any more.
16208 icc* | ifort*)
16209 lt_prog_compiler_wl_F77='-Wl,'
16210 lt_prog_compiler_pic_F77='-fPIC'
16211 lt_prog_compiler_static_F77='-static'
16212 ;;
16213 # Lahey Fortran 8.1.
16214 lf95*)
16215 lt_prog_compiler_wl_F77='-Wl,'
16216 lt_prog_compiler_pic_F77='--shared'
16217 lt_prog_compiler_static_F77='--static'
16218 ;;
16219 nagfor*)
16220 # NAG Fortran compiler
16221 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
16222 lt_prog_compiler_pic_F77='-PIC'
16223 lt_prog_compiler_static_F77='-Bstatic'
16224 ;;
16225 tcc*)
16226 # Fabrice Bellard et al's Tiny C Compiler
16227 lt_prog_compiler_wl_F77='-Wl,'
16228 lt_prog_compiler_pic_F77='-fPIC'
16229 lt_prog_compiler_static_F77='-static'
16230 ;;
16231 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16232 # Portland Group compilers (*not* the Pentium gcc compiler,
16233 # which looks to be a dead project)
16234 lt_prog_compiler_wl_F77='-Wl,'
16235 lt_prog_compiler_pic_F77='-fpic'
16236 lt_prog_compiler_static_F77='-Bstatic'
16237 ;;
16238 ccc*)
16239 lt_prog_compiler_wl_F77='-Wl,'
16240 # All Alpha code is PIC.
16241 lt_prog_compiler_static_F77='-non_shared'
16242 ;;
16243 xl* | bgxl* | bgf* | mpixl*)
16244 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16245 lt_prog_compiler_wl_F77='-Wl,'
16246 lt_prog_compiler_pic_F77='-qpic'
16247 lt_prog_compiler_static_F77='-qstaticlink'
16248 ;;
16249 *)
16250 case `$CC -V 2>&1 | $SED 5q` in
16251 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16252 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16253 lt_prog_compiler_pic_F77='-KPIC'
16254 lt_prog_compiler_static_F77='-Bstatic'
16255 lt_prog_compiler_wl_F77=''
16256 ;;
16257 *Sun\ F* | *Sun*Fortran*)
16258 lt_prog_compiler_pic_F77='-KPIC'
16259 lt_prog_compiler_static_F77='-Bstatic'
16260 lt_prog_compiler_wl_F77='-Qoption ld '
16261 ;;
16262 *Sun\ C*)
16263 # Sun C 5.9
16264 lt_prog_compiler_pic_F77='-KPIC'
16265 lt_prog_compiler_static_F77='-Bstatic'
16266 lt_prog_compiler_wl_F77='-Wl,'
16267 ;;
16268 *Intel*\ [CF]*Compiler*)
16269 lt_prog_compiler_wl_F77='-Wl,'
16270 lt_prog_compiler_pic_F77='-fPIC'
16271 lt_prog_compiler_static_F77='-static'
16272 ;;
16273 *Portland\ Group*)
16274 lt_prog_compiler_wl_F77='-Wl,'
16275 lt_prog_compiler_pic_F77='-fpic'
16276 lt_prog_compiler_static_F77='-Bstatic'
16277 ;;
16278 esac
16279 ;;
16280 esac
16281 ;;
16282
16283 newsos6)
16284 lt_prog_compiler_pic_F77='-KPIC'
16285 lt_prog_compiler_static_F77='-Bstatic'
16286 ;;
16287
16288 *-mlibc)
16289 lt_prog_compiler_wl_F77='-Wl,'
16290 lt_prog_compiler_pic_F77='-fPIC'
16291 lt_prog_compiler_static_F77='-static'
16292 ;;
16293
16294 *nto* | *qnx*)
16295 # QNX uses GNU C++, but need to define -shared option too, otherwise
16296 # it will coredump.
16297 lt_prog_compiler_pic_F77='-fPIC -shared'
16298 ;;
16299
16300 osf3* | osf4* | osf5*)
16301 lt_prog_compiler_wl_F77='-Wl,'
16302 # All OSF/1 code is PIC.
16303 lt_prog_compiler_static_F77='-non_shared'
16304 ;;
16305
16306 rdos*)
16307 lt_prog_compiler_static_F77='-non_shared'
16308 ;;
16309
16310 serenity*)
16311 ;;
16312
16313 solaris*)
16314 lt_prog_compiler_pic_F77='-KPIC'
16315 lt_prog_compiler_static_F77='-Bstatic'
16316 case $cc_basename in
16317 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16318 lt_prog_compiler_wl_F77='-Qoption ld ';;
16319 *)
16320 lt_prog_compiler_wl_F77='-Wl,';;
16321 esac
16322 ;;
16323
16324 sunos4*)
16325 lt_prog_compiler_wl_F77='-Qoption ld '
16326 lt_prog_compiler_pic_F77='-PIC'
16327 lt_prog_compiler_static_F77='-Bstatic'
16328 ;;
16329
16330 sysv4 | sysv4.2uw2* | sysv4.3*)
16331 lt_prog_compiler_wl_F77='-Wl,'
16332 lt_prog_compiler_pic_F77='-KPIC'
16333 lt_prog_compiler_static_F77='-Bstatic'
16334 ;;
16335
16336 sysv4*MP*)
16337 if test -d /usr/nec; then
16338 lt_prog_compiler_pic_F77='-Kconform_pic'
16339 lt_prog_compiler_static_F77='-Bstatic'
16340 fi
16341 ;;
16342
16343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16344 lt_prog_compiler_wl_F77='-Wl,'
16345 lt_prog_compiler_pic_F77='-KPIC'
16346 lt_prog_compiler_static_F77='-Bstatic'
16347 ;;
16348
16349 unicos*)
16350 lt_prog_compiler_wl_F77='-Wl,'
16351 lt_prog_compiler_can_build_shared_F77=no
16352 ;;
16353
16354 uts4*)
16355 lt_prog_compiler_pic_F77='-pic'
16356 lt_prog_compiler_static_F77='-Bstatic'
16357 ;;
16358
16359 *)
16360 lt_prog_compiler_can_build_shared_F77=no
16361 ;;
16362 esac
16363 fi
16364
16365 case $host_os in
16366 # For platforms that do not support PIC, -DPIC is meaningless:
16367 *djgpp*)
16368 lt_prog_compiler_pic_F77=
16369 ;;
16370 *)
16371 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16372 ;;
16373 esac
16374
16375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16376 printf %s "checking for $compiler option to produce PIC... " >&6; }
16377 if test ${lt_cv_prog_compiler_pic_F77+y}
16378 then :
16379 printf %s "(cached) " >&6
16380 else case e in #(
16381 e) lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 ;;
16382 esac
16383 fi
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
16385 printf "%s\n" "$lt_cv_prog_compiler_pic_F77" >&6; }
16386 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
16387
16388 #
16389 # Check to make sure the PIC flag actually works.
16390 #
16391 if test -n "$lt_prog_compiler_pic_F77"; then
16392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16393 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16394 if test ${lt_cv_prog_compiler_pic_works_F77+y}
16395 then :
16396 printf %s "(cached) " >&6
16397 else case e in #(
16398 e) lt_cv_prog_compiler_pic_works_F77=no
16399 ac_outfile=conftest.$ac_objext
16400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16401 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment
16402 # Insert the option either (1) after the last *FLAGS variable, or
16403 # (2) before a word containing "conftest.", or (3) at the end.
16404 # Note that $ac_compile itself does not contain backslashes and begins
16405 # with a dollar sign (not a hyphen), so the echo should work correctly.
16406 # The option is referenced via a variable to avoid confusing sed.
16407 lt_compile=`echo "$ac_compile" | $SED \
16408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16410 -e 's:$: $lt_compiler_flag:'`
16411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16412 (eval "$lt_compile" 2>conftest.err)
16413 ac_status=$?
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 if (exit $ac_status) && test -s "$ac_outfile"; then
16417 # The compiler can only warn and ignore the option if not recognized
16418 # So say no if there are warnings other than the usual output.
16419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16422 lt_cv_prog_compiler_pic_works_F77=yes
16423 fi
16424 fi
16425 $RM conftest*
16426 ;;
16427 esac
16428 fi
16429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16430 printf "%s\n" "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16431
16432 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
16433 case $lt_prog_compiler_pic_F77 in
16434 "" | " "*) ;;
16435 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16436 esac
16437 else
16438 lt_prog_compiler_pic_F77=
16439 lt_prog_compiler_can_build_shared_F77=no
16440 fi
16441
16442 fi
16443
16444
16445
16446
16447
16448 #
16449 # Check to make sure the static flag actually works.
16450 #
16451 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16453 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16454 if test ${lt_cv_prog_compiler_static_works_F77+y}
16455 then :
16456 printf %s "(cached) " >&6
16457 else case e in #(
16458 e) lt_cv_prog_compiler_static_works_F77=no
16459 save_LDFLAGS=$LDFLAGS
16460 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16461 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16462 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16463 # The linker can only warn and ignore the option if not recognized
16464 # So say no if there are warnings
16465 if test -s conftest.err; then
16466 # Append any errors to the config.log.
16467 cat conftest.err 1>&5
16468 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16470 if diff conftest.exp conftest.er2 >/dev/null; then
16471 lt_cv_prog_compiler_static_works_F77=yes
16472 fi
16473 else
16474 lt_cv_prog_compiler_static_works_F77=yes
16475 fi
16476 fi
16477 $RM -r conftest*
16478 LDFLAGS=$save_LDFLAGS
16479 ;;
16480 esac
16481 fi
16482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
16483 printf "%s\n" "$lt_cv_prog_compiler_static_works_F77" >&6; }
16484
16485 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
16486 :
16487 else
16488 lt_prog_compiler_static_F77=
16489 fi
16490
16491
16492
16493
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16495 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16496 if test ${lt_cv_prog_compiler_c_o_F77+y}
16497 then :
16498 printf %s "(cached) " >&6
16499 else case e in #(
16500 e) lt_cv_prog_compiler_c_o_F77=no
16501 $RM -r conftest 2>/dev/null
16502 mkdir conftest
16503 cd conftest
16504 mkdir out
16505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16506
16507 lt_compiler_flag="-o out/conftest2.$ac_objext"
16508 # Insert the option either (1) after the last *FLAGS variable, or
16509 # (2) before a word containing "conftest.", or (3) at the end.
16510 # Note that $ac_compile itself does not contain backslashes and begins
16511 # with a dollar sign (not a hyphen), so the echo should work correctly.
16512 lt_compile=`echo "$ac_compile" | $SED \
16513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16515 -e 's:$: $lt_compiler_flag:'`
16516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16517 (eval "$lt_compile" 2>out/conftest.err)
16518 ac_status=$?
16519 cat out/conftest.err >&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16522 then
16523 # The compiler can only warn and ignore the option if not recognized
16524 # So say no if there are warnings
16525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16528 lt_cv_prog_compiler_c_o_F77=yes
16529 fi
16530 fi
16531 chmod u+w . 2>&5
16532 $RM conftest*
16533 # SGI C++ compiler will create directory out/ii_files/ for
16534 # template instantiation
16535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16536 $RM out/* && rmdir out
16537 cd ..
16538 $RM -r conftest
16539 $RM conftest*
16540 ;;
16541 esac
16542 fi
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
16544 printf "%s\n" "$lt_cv_prog_compiler_c_o_F77" >&6; }
16545
16546
16547
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16549 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16550 if test ${lt_cv_prog_compiler_c_o_F77+y}
16551 then :
16552 printf %s "(cached) " >&6
16553 else case e in #(
16554 e) lt_cv_prog_compiler_c_o_F77=no
16555 $RM -r conftest 2>/dev/null
16556 mkdir conftest
16557 cd conftest
16558 mkdir out
16559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16560
16561 lt_compiler_flag="-o out/conftest2.$ac_objext"
16562 # Insert the option either (1) after the last *FLAGS variable, or
16563 # (2) before a word containing "conftest.", or (3) at the end.
16564 # Note that $ac_compile itself does not contain backslashes and begins
16565 # with a dollar sign (not a hyphen), so the echo should work correctly.
16566 lt_compile=`echo "$ac_compile" | $SED \
16567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16569 -e 's:$: $lt_compiler_flag:'`
16570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16571 (eval "$lt_compile" 2>out/conftest.err)
16572 ac_status=$?
16573 cat out/conftest.err >&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16576 then
16577 # The compiler can only warn and ignore the option if not recognized
16578 # So say no if there are warnings
16579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16582 lt_cv_prog_compiler_c_o_F77=yes
16583 fi
16584 fi
16585 chmod u+w . 2>&5
16586 $RM conftest*
16587 # SGI C++ compiler will create directory out/ii_files/ for
16588 # template instantiation
16589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16590 $RM out/* && rmdir out
16591 cd ..
16592 $RM -r conftest
16593 $RM conftest*
16594 ;;
16595 esac
16596 fi
16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
16598 printf "%s\n" "$lt_cv_prog_compiler_c_o_F77" >&6; }
16599
16600
16601
16602
16603 hard_links=nottested
16604 if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
16605 # do not overwrite the value of need_locks provided by the user
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16607 printf %s "checking if we can lock with hard links... " >&6; }
16608 hard_links=yes
16609 $RM conftest*
16610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16611 touch conftest.a
16612 ln conftest.a conftest.b 2>&5 || hard_links=no
16613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16615 printf "%s\n" "$hard_links" >&6; }
16616 if test no = "$hard_links"; then
16617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16618 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16619 need_locks=warn
16620 fi
16621 else
16622 need_locks=no
16623 fi
16624
16625
16626
16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16628 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16629
16630 runpath_var=
16631 allow_undefined_flag_F77=
16632 always_export_symbols_F77=no
16633 archive_cmds_F77=
16634 archive_expsym_cmds_F77=
16635 compiler_needs_object_F77=no
16636 enable_shared_with_static_runtimes_F77=no
16637 export_dynamic_flag_spec_F77=
16638 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16639 hardcode_automatic_F77=no
16640 hardcode_direct_F77=no
16641 hardcode_direct_absolute_F77=no
16642 hardcode_libdir_flag_spec_F77=
16643 hardcode_libdir_separator_F77=
16644 hardcode_minus_L_F77=no
16645 hardcode_shlibpath_var_F77=unsupported
16646 inherit_rpath_F77=no
16647 link_all_deplibs_F77=unknown
16648 module_cmds_F77=
16649 module_expsym_cmds_F77=
16650 old_archive_from_new_cmds_F77=
16651 old_archive_from_expsyms_cmds_F77=
16652 thread_safe_flag_spec_F77=
16653 whole_archive_flag_spec_F77=
16654 # include_expsyms should be a list of space-separated symbols to be *always*
16655 # included in the symbol list
16656 include_expsyms_F77=
16657 # exclude_expsyms can be an extended regexp of symbols to exclude
16658 # it will be wrapped by ' (' and ')$', so one must not match beginning or
16659 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16660 # as well as any symbol that contains 'd'.
16661 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16663 # platforms (ab)use it in PIC code, but their linkers get confused if
16664 # the symbol is explicitly referenced. Since portable code cannot
16665 # rely on this symbol name, it's probably fine to never include it in
16666 # preloaded symbol tables.
16667 # Exclude shared library initialization/finalization symbols.
16668 extract_expsyms_cmds=
16669
16670 case $host_os in
16671 cygwin* | mingw* | windows* | pw32* | cegcc*)
16672 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16673 # When not using gcc, we currently assume that we are using
16674 # Microsoft Visual C++ or Intel C++ Compiler.
16675 if test yes != "$GCC"; then
16676 with_gnu_ld=no
16677 fi
16678 ;;
16679 interix*)
16680 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16681 with_gnu_ld=yes
16682 ;;
16683 esac
16684
16685 ld_shlibs_F77=yes
16686
16687 # On some targets, GNU ld is compatible enough with the native linker
16688 # that we're better off using the native interface for both.
16689 lt_use_gnu_ld_interface=no
16690 if test yes = "$with_gnu_ld"; then
16691 case $host_os in
16692 aix*)
16693 # The AIX port of GNU ld has always aspired to compatibility
16694 # with the native linker. However, as the warning in the GNU ld
16695 # block says, versions before 2.19.5* couldn't really create working
16696 # shared libraries, regardless of the interface used.
16697 case `$LD -v 2>&1` in
16698 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16699 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16700 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16701 *)
16702 lt_use_gnu_ld_interface=yes
16703 ;;
16704 esac
16705 ;;
16706 *)
16707 lt_use_gnu_ld_interface=yes
16708 ;;
16709 esac
16710 fi
16711
16712 if test yes = "$lt_use_gnu_ld_interface"; then
16713 # If archive_cmds runs LD, not CC, wlarc should be empty
16714 wlarc='$wl'
16715
16716 # Set some defaults for GNU ld with shared library support. These
16717 # are reset later if shared libraries are not supported. Putting them
16718 # here allows them to be overridden if necessary.
16719 runpath_var=LD_RUN_PATH
16720 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
16721 export_dynamic_flag_spec_F77='$wl--export-dynamic'
16722 # ancient GNU ld didn't support --whole-archive et. al.
16723 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16724 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16725 else
16726 whole_archive_flag_spec_F77=
16727 fi
16728 supports_anon_versioning=no
16729 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16730 *GNU\ gold*) supports_anon_versioning=yes ;;
16731 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16732 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16733 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16734 *\ 2.11.*) ;; # other 2.11 versions
16735 *) supports_anon_versioning=yes ;;
16736 esac
16737
16738 # See if GNU ld supports shared libraries.
16739 case $host_os in
16740 aix[3-9]*)
16741 # On AIX/PPC, the GNU linker is very broken
16742 if test ia64 != "$host_cpu"; then
16743 ld_shlibs_F77=no
16744 cat <<_LT_EOF 1>&2
16745
16746 *** Warning: the GNU linker, at least up to release 2.19, is reported
16747 *** to be unable to reliably create shared libraries on AIX.
16748 *** Therefore, libtool is disabling shared libraries support. If you
16749 *** really care for shared libraries, you may want to install binutils
16750 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16751 *** You will then need to restart the configuration process.
16752
16753 _LT_EOF
16754 fi
16755 ;;
16756
16757 amigaos*)
16758 case $host_cpu in
16759 powerpc)
16760 # see comment about AmigaOS4 .so support
16761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16762 archive_expsym_cmds_F77=''
16763 ;;
16764 m68k)
16765 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16766 hardcode_libdir_flag_spec_F77='-L$libdir'
16767 hardcode_minus_L_F77=yes
16768 ;;
16769 esac
16770 ;;
16771
16772 beos*)
16773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16774 allow_undefined_flag_F77=unsupported
16775 # Joseph Beckenbach <[email protected]> says some releases of gcc
16776 # support --undefined. This deserves some investigation. FIXME
16777 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16778 else
16779 ld_shlibs_F77=no
16780 fi
16781 ;;
16782
16783 cygwin* | mingw* | windows* | pw32* | cegcc*)
16784 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16785 # as there is no search path for DLLs.
16786 hardcode_libdir_flag_spec_F77='-L$libdir'
16787 export_dynamic_flag_spec_F77='$wl--export-all-symbols'
16788 allow_undefined_flag_F77=unsupported
16789 always_export_symbols_F77=no
16790 enable_shared_with_static_runtimes_F77=yes
16791 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16792 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16793 file_list_spec_F77='@'
16794
16795 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16797 # If the export-symbols file already is a .def file, use it as
16798 # is; otherwise, prepend EXPORTS...
16799 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16800 cp $export_symbols $output_objdir/$soname.def;
16801 else
16802 echo EXPORTS > $output_objdir/$soname.def;
16803 cat $export_symbols >> $output_objdir/$soname.def;
16804 fi~
16805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16806 else
16807 ld_shlibs_F77=no
16808 fi
16809 ;;
16810
16811 haiku*)
16812 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16813 link_all_deplibs_F77=no
16814 ;;
16815
16816 os2*)
16817 hardcode_libdir_flag_spec_F77='-L$libdir'
16818 hardcode_minus_L_F77=yes
16819 allow_undefined_flag_F77=unsupported
16820 shrext_cmds=.dll
16821 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16822 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16823 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16824 $ECHO EXPORTS >> $output_objdir/$libname.def~
16825 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16826 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16827 emximp -o $lib $output_objdir/$libname.def'
16828 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16829 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16830 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16831 $ECHO EXPORTS >> $output_objdir/$libname.def~
16832 prefix_cmds="$SED"~
16833 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16834 prefix_cmds="$prefix_cmds -e 1d";
16835 fi~
16836 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16837 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16838 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16839 emximp -o $lib $output_objdir/$libname.def'
16840 old_archive_from_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16841 enable_shared_with_static_runtimes_F77=yes
16842 file_list_spec_F77='@'
16843 ;;
16844
16845 interix[3-9]*)
16846 hardcode_direct_F77=no
16847 hardcode_shlibpath_var_F77=no
16848 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
16849 export_dynamic_flag_spec_F77='$wl-E'
16850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16851 # Instead, shared libraries are loaded at an image base (0x10000000 by
16852 # default) and relocated if they conflict, which is a slow very memory
16853 # consuming and fragmenting process. To avoid this, we pick a random,
16854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16855 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16856 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16857 archive_expsym_cmds_F77='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16858 ;;
16859
16860 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16861 tmp_diet=no
16862 if test linux-dietlibc = "$host_os"; then
16863 case $cc_basename in
16864 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16865 esac
16866 fi
16867 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16868 && test no = "$tmp_diet"
16869 then
16870 tmp_addflag=' $pic_flag'
16871 tmp_sharedflag='-shared'
16872 case $cc_basename,$host_cpu in
16873 pgcc*) # Portland Group C compiler
16874 whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16875 tmp_addflag=' $pic_flag'
16876 ;;
16877 pgf77* | pgf90* | pgf95* | pgfortran*)
16878 # Portland Group f77 and f90 compilers
16879 whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16880 tmp_addflag=' $pic_flag -Mnomain' ;;
16881 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16882 tmp_addflag=' -i_dynamic' ;;
16883 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16884 tmp_addflag=' -i_dynamic -nofor_main' ;;
16885 ifc* | ifort*) # Intel Fortran compiler
16886 tmp_addflag=' -nofor_main' ;;
16887 lf95*) # Lahey Fortran 8.1
16888 whole_archive_flag_spec_F77=
16889 tmp_sharedflag='--shared' ;;
16890 nagfor*) # NAGFOR 5.3
16891 tmp_sharedflag='-Wl,-shared' ;;
16892 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16893 tmp_sharedflag='-qmkshrobj'
16894 tmp_addflag= ;;
16895 nvcc*) # Cuda Compiler Driver 2.2
16896 whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16897 compiler_needs_object_F77=yes
16898 ;;
16899 esac
16900 case `$CC -V 2>&1 | $SED 5q` in
16901 *Sun\ C*) # Sun C 5.9
16902 whole_archive_flag_spec_F77='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16903 compiler_needs_object_F77=yes
16904 tmp_sharedflag='-G' ;;
16905 *Sun\ F*) # Sun Fortran 8.3
16906 tmp_sharedflag='-G' ;;
16907 esac
16908 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16909
16910 if test yes = "$supports_anon_versioning"; then
16911 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
16912 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16913 echo "local: *; };" >> $output_objdir/$libname.ver~
16914 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16915 fi
16916
16917 case $cc_basename in
16918 tcc*)
16919 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
16920 export_dynamic_flag_spec_F77='-rdynamic'
16921 ;;
16922 xlf* | bgf* | bgxlf* | mpixlf*)
16923 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16924 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
16925 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
16926 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16927 if test yes = "$supports_anon_versioning"; then
16928 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
16929 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16930 echo "local: *; };" >> $output_objdir/$libname.ver~
16931 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16932 fi
16933 ;;
16934 esac
16935 else
16936 ld_shlibs_F77=no
16937 fi
16938 ;;
16939
16940 *-mlibc)
16941 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16942 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16943 ;;
16944
16945 netbsd* | netbsdelf*-gnu)
16946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16947 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16948 wlarc=
16949 else
16950 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16951 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16952 fi
16953 ;;
16954
16955 solaris*)
16956 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16957 ld_shlibs_F77=no
16958 cat <<_LT_EOF 1>&2
16959
16960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16961 *** create shared libraries on Solaris systems. Therefore, libtool
16962 *** is disabling shared libraries support. We urge you to upgrade GNU
16963 *** binutils to release 2.9.1 or newer. Another option is to modify
16964 *** your PATH or compiler configuration so that the native linker is
16965 *** used, and then restart.
16966
16967 _LT_EOF
16968 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16969 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16970 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16971 else
16972 ld_shlibs_F77=no
16973 fi
16974 ;;
16975
16976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16977 case `$LD -v 2>&1` in
16978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16979 ld_shlibs_F77=no
16980 cat <<_LT_EOF 1>&2
16981
16982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16983 *** reliably create shared libraries on SCO systems. Therefore, libtool
16984 *** is disabling shared libraries support. We urge you to upgrade GNU
16985 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16986 *** your PATH or compiler configuration so that the native linker is
16987 *** used, and then restart.
16988
16989 _LT_EOF
16990 ;;
16991 *)
16992 # For security reasons, it is highly recommended that you always
16993 # use absolute paths for naming shared libraries, and exclude the
16994 # DT_RUNPATH tag from executables and libraries. But doing so
16995 # requires that you compile everything twice, which is a pain.
16996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16997 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
16998 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16999 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17000 else
17001 ld_shlibs_F77=no
17002 fi
17003 ;;
17004 esac
17005 ;;
17006
17007 sunos4*)
17008 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17009 wlarc=
17010 hardcode_direct_F77=yes
17011 hardcode_shlibpath_var_F77=no
17012 ;;
17013
17014 *)
17015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17016 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17017 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17018 else
17019 ld_shlibs_F77=no
17020 fi
17021 ;;
17022 esac
17023
17024 if test no = "$ld_shlibs_F77"; then
17025 runpath_var=
17026 hardcode_libdir_flag_spec_F77=
17027 export_dynamic_flag_spec_F77=
17028 whole_archive_flag_spec_F77=
17029 fi
17030 else
17031 # PORTME fill in a description of your system's linker (not GNU ld)
17032 case $host_os in
17033 aix3*)
17034 allow_undefined_flag_F77=unsupported
17035 always_export_symbols_F77=yes
17036 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17037 # Note: this linker hardcodes the directories in LIBPATH if there
17038 # are no directories specified by -L.
17039 hardcode_minus_L_F77=yes
17040 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17041 # Neither direct hardcoding nor static linking is supported with a
17042 # broken collect2.
17043 hardcode_direct_F77=unsupported
17044 fi
17045 ;;
17046
17047 aix[4-9]*)
17048 if test ia64 = "$host_cpu"; then
17049 # On IA64, the linker does run time linking by default, so we don't
17050 # have to do anything special.
17051 aix_use_runtimelinking=no
17052 exp_sym_flag='-Bexport'
17053 no_entry_flag=
17054 else
17055 # If we're using GNU nm, then we don't want the "-C" option.
17056 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17057 # Without the "-l" option, or with the "-B" option, AIX nm treats
17058 # weak defined symbols like other global defined symbols, whereas
17059 # GNU nm marks them as "W".
17060 # While the 'weak' keyword is ignored in the Export File, we need
17061 # it in the Import File for the 'aix-soname' feature, so we have
17062 # to replace the "-B" option with "-P" for AIX nm.
17063 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17064 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17065 else
17066 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17067 fi
17068 aix_use_runtimelinking=no
17069
17070 # Test if we are trying to use run time linking or normal
17071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17072 # have runtime linking enabled, and use it for executables.
17073 # For shared libraries, we enable/disable runtime linking
17074 # depending on the kind of the shared library created -
17075 # when "with_aix_soname,aix_use_runtimelinking" is:
17076 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17077 # "aix,yes" lib.so shared, rtl:yes, for executables
17078 # lib.a static archive
17079 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17080 # lib.a(lib.so.V) shared, rtl:no, for executables
17081 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17082 # lib.a(lib.so.V) shared, rtl:no
17083 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17084 # lib.a static archive
17085 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17086 for ld_flag in $LDFLAGS; do
17087 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17088 aix_use_runtimelinking=yes
17089 break
17090 fi
17091 done
17092 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17093 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17094 # so we don't have lib.a shared libs to link our executables.
17095 # We have to force runtime linking in this case.
17096 aix_use_runtimelinking=yes
17097 LDFLAGS="$LDFLAGS -Wl,-brtl"
17098 fi
17099 ;;
17100 esac
17101
17102 exp_sym_flag='-bexport'
17103 no_entry_flag='-bnoentry'
17104 fi
17105
17106 # When large executables or shared objects are built, AIX ld can
17107 # have problems creating the table of contents. If linking a library
17108 # or program results in "error TOC overflow" add -mminimal-toc to
17109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17111
17112 archive_cmds_F77=''
17113 hardcode_direct_F77=yes
17114 hardcode_direct_absolute_F77=yes
17115 hardcode_libdir_separator_F77=':'
17116 link_all_deplibs_F77=yes
17117 file_list_spec_F77='$wl-f,'
17118 case $with_aix_soname,$aix_use_runtimelinking in
17119 aix,*) ;; # traditional, no import file
17120 svr4,* | *,yes) # use import file
17121 # The Import File defines what to hardcode.
17122 hardcode_direct_F77=no
17123 hardcode_direct_absolute_F77=no
17124 ;;
17125 esac
17126
17127 if test yes = "$GCC"; then
17128 case $host_os in aix4.[012]|aix4.[012].*)
17129 # We only want to do this on AIX 4.2 and lower, the check
17130 # below for broken collect2 doesn't work under 4.3+
17131 collect2name=`$CC -print-prog-name=collect2`
17132 if test -f "$collect2name" &&
17133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17134 then
17135 # We have reworked collect2
17136 :
17137 else
17138 # We have old collect2
17139 hardcode_direct_F77=unsupported
17140 # It fails to find uninstalled libraries when the uninstalled
17141 # path is not listed in the libpath. Setting hardcode_minus_L
17142 # to unsupported forces relinking
17143 hardcode_minus_L_F77=yes
17144 hardcode_libdir_flag_spec_F77='-L$libdir'
17145 hardcode_libdir_separator_F77=
17146 fi
17147 ;;
17148 esac
17149 shared_flag='-shared'
17150 if test yes = "$aix_use_runtimelinking"; then
17151 shared_flag="$shared_flag "'$wl-G'
17152 fi
17153 # Need to ensure runtime linking is disabled for the traditional
17154 # shared library, or the linker may eventually find shared libraries
17155 # /with/ Import File - we do not want to mix them.
17156 shared_flag_aix='-shared'
17157 shared_flag_svr4='-shared $wl-G'
17158 else
17159 # not using gcc
17160 if test ia64 = "$host_cpu"; then
17161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17162 # chokes on -Wl,-G. The following line is correct:
17163 shared_flag='-G'
17164 else
17165 if test yes = "$aix_use_runtimelinking"; then
17166 shared_flag='$wl-G'
17167 else
17168 shared_flag='$wl-bM:SRE'
17169 fi
17170 shared_flag_aix='$wl-bM:SRE'
17171 shared_flag_svr4='$wl-G'
17172 fi
17173 fi
17174
17175 export_dynamic_flag_spec_F77='$wl-bexpall'
17176 # It seems that -bexpall does not export symbols beginning with
17177 # underscore (_), so it is better to generate a list of symbols to export.
17178 always_export_symbols_F77=yes
17179 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17180 # Warning - without using the other runtime loading flags (-brtl),
17181 # -berok will link without error, but may produce a broken library.
17182 allow_undefined_flag_F77='-berok'
17183 # Determine the default libpath from the value encoded in an
17184 # empty executable.
17185 if test set = "${lt_cv_aix_libpath+set}"; then
17186 aix_libpath=$lt_cv_aix_libpath
17187 else
17188 if test ${lt_cv_aix_libpath__F77+y}
17189 then :
17190 printf %s "(cached) " >&6
17191 else case e in #(
17192 e) cat > conftest.$ac_ext <<_ACEOF
17193 program main
17194
17195 end
17196 _ACEOF
17197 if ac_fn_f77_try_link "$LINENO"
17198 then :
17199
17200 lt_aix_libpath_sed='
17201 /Import File Strings/,/^$/ {
17202 /^0/ {
17203 s/^0 *\([^ ]*\) *$/\1/
17204 p
17205 }
17206 }'
17207 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17208 # Check for a 64-bit object if we didn't find anything.
17209 if test -z "$lt_cv_aix_libpath__F77"; then
17210 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17211 fi
17212 fi
17213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17214 conftest$ac_exeext conftest.$ac_ext
17215 if test -z "$lt_cv_aix_libpath__F77"; then
17216 lt_cv_aix_libpath__F77=/usr/lib:/lib
17217 fi
17218 ;;
17219 esac
17220 fi
17221
17222 aix_libpath=$lt_cv_aix_libpath__F77
17223 fi
17224
17225 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
17226 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17227 else
17228 if test ia64 = "$host_cpu"; then
17229 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
17230 allow_undefined_flag_F77="-z nodefs"
17231 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
17232 else
17233 # Determine the default libpath from the value encoded in an
17234 # empty executable.
17235 if test set = "${lt_cv_aix_libpath+set}"; then
17236 aix_libpath=$lt_cv_aix_libpath
17237 else
17238 if test ${lt_cv_aix_libpath__F77+y}
17239 then :
17240 printf %s "(cached) " >&6
17241 else case e in #(
17242 e) cat > conftest.$ac_ext <<_ACEOF
17243 program main
17244
17245 end
17246 _ACEOF
17247 if ac_fn_f77_try_link "$LINENO"
17248 then :
17249
17250 lt_aix_libpath_sed='
17251 /Import File Strings/,/^$/ {
17252 /^0/ {
17253 s/^0 *\([^ ]*\) *$/\1/
17254 p
17255 }
17256 }'
17257 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17258 # Check for a 64-bit object if we didn't find anything.
17259 if test -z "$lt_cv_aix_libpath__F77"; then
17260 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17261 fi
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17264 conftest$ac_exeext conftest.$ac_ext
17265 if test -z "$lt_cv_aix_libpath__F77"; then
17266 lt_cv_aix_libpath__F77=/usr/lib:/lib
17267 fi
17268 ;;
17269 esac
17270 fi
17271
17272 aix_libpath=$lt_cv_aix_libpath__F77
17273 fi
17274
17275 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
17276 # Warning - without using the other run time loading flags,
17277 # -berok will link without error, but may produce a broken library.
17278 no_undefined_flag_F77=' $wl-bernotok'
17279 allow_undefined_flag_F77=' $wl-berok'
17280 if test yes = "$with_gnu_ld"; then
17281 # We only use this code for GNU lds that support --whole-archive.
17282 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
17283 else
17284 # Exported symbols can be pulled into shared objects from archives
17285 whole_archive_flag_spec_F77='$convenience'
17286 fi
17287 archive_cmds_need_lc_F77=yes
17288 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17289 # -brtl affects multiple linker settings, -berok does not and is overridden later
17290 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17291 if test svr4 != "$with_aix_soname"; then
17292 # This is similar to how AIX traditionally builds its shared libraries.
17293 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17294 fi
17295 if test aix != "$with_aix_soname"; then
17296 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17297 else
17298 # used by -dlpreopen to get the symbols
17299 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17300 fi
17301 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
17302 fi
17303 fi
17304 ;;
17305
17306 amigaos*)
17307 case $host_cpu in
17308 powerpc)
17309 # see comment about AmigaOS4 .so support
17310 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17311 archive_expsym_cmds_F77=''
17312 ;;
17313 m68k)
17314 archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17315 hardcode_libdir_flag_spec_F77='-L$libdir'
17316 hardcode_minus_L_F77=yes
17317 ;;
17318 esac
17319 ;;
17320
17321 bsdi[45]*)
17322 export_dynamic_flag_spec_F77=-rdynamic
17323 ;;
17324
17325 cygwin* | mingw* | windows* | pw32* | cegcc*)
17326 # When not using gcc, we currently assume that we are using
17327 # Microsoft Visual C++ or Intel C++ Compiler.
17328 # hardcode_libdir_flag_spec is actually meaningless, as there is
17329 # no search path for DLLs.
17330 case $cc_basename in
17331 cl* | icl*)
17332 # Native MSVC or ICC
17333 hardcode_libdir_flag_spec_F77=' '
17334 allow_undefined_flag_F77=unsupported
17335 always_export_symbols_F77=yes
17336 file_list_spec_F77='@'
17337 # Tell ltmain to make .lib files, not .a files.
17338 libext=lib
17339 # Tell ltmain to make .dll files, not .so files.
17340 shrext_cmds=.dll
17341 # FIXME: Setting linknames here is a bad hack.
17342 archive_cmds_F77='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17343 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17344 cp "$export_symbols" "$output_objdir/$soname.def";
17345 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17346 else
17347 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17348 fi~
17349 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17350 linknames='
17351 # The linker will not automatically build a static lib if we build a DLL.
17352 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
17353 enable_shared_with_static_runtimes_F77=yes
17354 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17355 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17356 # Don't use ranlib
17357 old_postinstall_cmds_F77='chmod 644 $oldlib'
17358 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
17359 lt_tool_outputfile="@TOOL_OUTPUT@"~
17360 case $lt_outputfile in
17361 *.exe|*.EXE) ;;
17362 *)
17363 lt_outputfile=$lt_outputfile.exe
17364 lt_tool_outputfile=$lt_tool_outputfile.exe
17365 ;;
17366 esac~
17367 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17369 $RM "$lt_outputfile.manifest";
17370 fi'
17371 ;;
17372 *)
17373 # Assume MSVC and ICC wrapper
17374 hardcode_libdir_flag_spec_F77=' '
17375 allow_undefined_flag_F77=unsupported
17376 # Tell ltmain to make .lib files, not .a files.
17377 libext=lib
17378 # Tell ltmain to make .dll files, not .so files.
17379 shrext_cmds=.dll
17380 # FIXME: Setting linknames here is a bad hack.
17381 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17382 # The linker will automatically build a .lib file if we build a DLL.
17383 old_archive_from_new_cmds_F77='true'
17384 # FIXME: Should let the user specify the lib program.
17385 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17386 enable_shared_with_static_runtimes_F77=yes
17387 ;;
17388 esac
17389 ;;
17390
17391 darwin* | rhapsody*)
17392
17393
17394 archive_cmds_need_lc_F77=no
17395 hardcode_direct_F77=no
17396 hardcode_automatic_F77=yes
17397 hardcode_shlibpath_var_F77=unsupported
17398 if test yes = "$lt_cv_ld_force_load"; then
17399 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17400 compiler_needs_object_F77=yes
17401 else
17402 whole_archive_flag_spec_F77=''
17403 fi
17404 link_all_deplibs_F77=yes
17405 allow_undefined_flag_F77=$_lt_dar_allow_undefined
17406 case $cc_basename in
17407 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17408 *) _lt_dar_can_shared=$GCC ;;
17409 esac
17410 if test yes = "$_lt_dar_can_shared"; then
17411 output_verbose_link_cmd=func_echo_all
17412 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17413 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17414 archive_expsym_cmds_F77="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
17415 module_expsym_cmds_F77="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
17416
17417 else
17418 ld_shlibs_F77=no
17419 fi
17420
17421 ;;
17422
17423 dgux*)
17424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17425 hardcode_libdir_flag_spec_F77='-L$libdir'
17426 hardcode_shlibpath_var_F77=no
17427 ;;
17428
17429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17430 # support. Future versions do this automatically, but an explicit c++rt0.o
17431 # does not break anything, and helps significantly (at the cost of a little
17432 # extra space).
17433 freebsd2.2*)
17434 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17435 hardcode_libdir_flag_spec_F77='-R$libdir'
17436 hardcode_direct_F77=yes
17437 hardcode_shlibpath_var_F77=no
17438 ;;
17439
17440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17441 freebsd2.*)
17442 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct_F77=yes
17444 hardcode_minus_L_F77=yes
17445 hardcode_shlibpath_var_F77=no
17446 ;;
17447
17448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17449 freebsd* | dragonfly* | midnightbsd*)
17450 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17451 hardcode_libdir_flag_spec_F77='-R$libdir'
17452 hardcode_direct_F77=yes
17453 hardcode_shlibpath_var_F77=no
17454 ;;
17455
17456 hpux9*)
17457 if test yes = "$GCC"; then
17458 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17459 else
17460 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17461 fi
17462 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
17463 hardcode_libdir_separator_F77=:
17464 hardcode_direct_F77=yes
17465
17466 # hardcode_minus_L: Not really in the search PATH,
17467 # but as the default location of the library.
17468 hardcode_minus_L_F77=yes
17469 export_dynamic_flag_spec_F77='$wl-E'
17470 ;;
17471
17472 hpux10*)
17473 if test yes,no = "$GCC,$with_gnu_ld"; then
17474 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17475 else
17476 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17477 fi
17478 if test no = "$with_gnu_ld"; then
17479 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
17480 hardcode_libdir_separator_F77=:
17481 hardcode_direct_F77=yes
17482 hardcode_direct_absolute_F77=yes
17483 export_dynamic_flag_spec_F77='$wl-E'
17484 # hardcode_minus_L: Not really in the search PATH,
17485 # but as the default location of the library.
17486 hardcode_minus_L_F77=yes
17487 fi
17488 ;;
17489
17490 hpux11*)
17491 if test yes,no = "$GCC,$with_gnu_ld"; then
17492 case $host_cpu in
17493 hppa*64*)
17494 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17495 ;;
17496 ia64*)
17497 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17498 ;;
17499 *)
17500 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17501 ;;
17502 esac
17503 else
17504 case $host_cpu in
17505 hppa*64*)
17506 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17507 ;;
17508 ia64*)
17509 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17510 ;;
17511 *)
17512 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17513 ;;
17514 esac
17515 fi
17516 if test no = "$with_gnu_ld"; then
17517 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
17518 hardcode_libdir_separator_F77=:
17519
17520 case $host_cpu in
17521 hppa*64*|ia64*)
17522 hardcode_direct_F77=no
17523 hardcode_shlibpath_var_F77=no
17524 ;;
17525 *)
17526 hardcode_direct_F77=yes
17527 hardcode_direct_absolute_F77=yes
17528 export_dynamic_flag_spec_F77='$wl-E'
17529
17530 # hardcode_minus_L: Not really in the search PATH,
17531 # but as the default location of the library.
17532 hardcode_minus_L_F77=yes
17533 ;;
17534 esac
17535 fi
17536 ;;
17537
17538 irix5* | irix6* | nonstopux*)
17539 if test yes = "$GCC"; then
17540 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17541 # Try to use the -exported_symbol ld option, if it does not
17542 # work, assume that -exports_file does not work either and
17543 # implicitly export all symbols.
17544 # This should be the same for all languages, so no per-tag cache variable.
17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17546 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17547 if test ${lt_cv_irix_exported_symbol+y}
17548 then :
17549 printf %s "(cached) " >&6
17550 else case e in #(
17551 e) save_LDFLAGS=$LDFLAGS
17552 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17553 cat > conftest.$ac_ext <<_ACEOF
17554
17555 subroutine foo
17556 end
17557 _ACEOF
17558 if ac_fn_f77_try_link "$LINENO"
17559 then :
17560 lt_cv_irix_exported_symbol=yes
17561 else case e in #(
17562 e) lt_cv_irix_exported_symbol=no ;;
17563 esac
17564 fi
17565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17566 conftest$ac_exeext conftest.$ac_ext
17567 LDFLAGS=$save_LDFLAGS ;;
17568 esac
17569 fi
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17571 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17572 if test yes = "$lt_cv_irix_exported_symbol"; then
17573 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
17574 fi
17575 else
17576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17577 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
17578 fi
17579 archive_cmds_need_lc_F77='no'
17580 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
17581 hardcode_libdir_separator_F77=:
17582 inherit_rpath_F77=yes
17583 link_all_deplibs_F77=yes
17584 ;;
17585
17586 linux*)
17587 case $cc_basename in
17588 tcc*)
17589 # Fabrice Bellard et al's Tiny C Compiler
17590 ld_shlibs_F77=yes
17591 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17592 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
17593 ;;
17594 esac
17595 ;;
17596
17597 *-mlibc)
17598 ;;
17599
17600 netbsd* | netbsdelf*-gnu)
17601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17602 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17603 else
17604 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17605 fi
17606 hardcode_libdir_flag_spec_F77='-R$libdir'
17607 hardcode_direct_F77=yes
17608 hardcode_shlibpath_var_F77=no
17609 ;;
17610
17611 newsos6)
17612 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_direct_F77=yes
17614 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
17615 hardcode_libdir_separator_F77=:
17616 hardcode_shlibpath_var_F77=no
17617 ;;
17618
17619 *nto* | *qnx*)
17620 ;;
17621
17622 openbsd*)
17623 if test -f /usr/libexec/ld.so; then
17624 hardcode_direct_F77=yes
17625 hardcode_shlibpath_var_F77=no
17626 hardcode_direct_absolute_F77=yes
17627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17628 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17629 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17630 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
17631 export_dynamic_flag_spec_F77='$wl-E'
17632 else
17633 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17634 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
17635 fi
17636 else
17637 ld_shlibs_F77=no
17638 fi
17639 ;;
17640
17641 os2*)
17642 hardcode_libdir_flag_spec_F77='-L$libdir'
17643 hardcode_minus_L_F77=yes
17644 allow_undefined_flag_F77=unsupported
17645 shrext_cmds=.dll
17646 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17647 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17648 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17649 $ECHO EXPORTS >> $output_objdir/$libname.def~
17650 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17651 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17652 emximp -o $lib $output_objdir/$libname.def'
17653 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17654 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17655 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17656 $ECHO EXPORTS >> $output_objdir/$libname.def~
17657 prefix_cmds="$SED"~
17658 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17659 prefix_cmds="$prefix_cmds -e 1d";
17660 fi~
17661 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17662 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17663 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17664 emximp -o $lib $output_objdir/$libname.def'
17665 old_archive_from_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17666 enable_shared_with_static_runtimes_F77=yes
17667 file_list_spec_F77='@'
17668 ;;
17669
17670 osf3*)
17671 if test yes = "$GCC"; then
17672 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
17673 archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17674 else
17675 allow_undefined_flag_F77=' -expect_unresolved \*'
17676 archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17677 fi
17678 archive_cmds_need_lc_F77='no'
17679 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
17680 hardcode_libdir_separator_F77=:
17681 ;;
17682
17683 osf4* | osf5*) # as osf3* with the addition of -msym flag
17684 if test yes = "$GCC"; then
17685 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
17686 archive_cmds_F77='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17687 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
17688 else
17689 allow_undefined_flag_F77=' -expect_unresolved \*'
17690 archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17691 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17692 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
17693
17694 # Both c and cxx compiler support -rpath directly
17695 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17696 fi
17697 archive_cmds_need_lc_F77='no'
17698 hardcode_libdir_separator_F77=:
17699 ;;
17700
17701 serenity*)
17702 ;;
17703
17704 solaris*)
17705 no_undefined_flag_F77=' -z defs'
17706 if test yes = "$GCC"; then
17707 wlarc='$wl'
17708 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17710 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17711 else
17712 case `$CC -V 2>&1` in
17713 *"Compilers 5.0"*)
17714 wlarc=''
17715 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17717 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17718 ;;
17719 *)
17720 wlarc='$wl'
17721 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17722 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17723 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17724 ;;
17725 esac
17726 fi
17727 hardcode_libdir_flag_spec_F77='-R$libdir'
17728 hardcode_shlibpath_var_F77=no
17729 case $host_os in
17730 solaris2.[0-5] | solaris2.[0-5].*) ;;
17731 *)
17732 # The compiler driver will combine and reorder linker options,
17733 # but understands '-z linker_flag'. GCC discards it without '$wl',
17734 # but is careful enough not to reorder.
17735 # Supported since Solaris 2.6 (maybe 2.5.1?)
17736 if test yes = "$GCC"; then
17737 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17738 else
17739 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17740 fi
17741 ;;
17742 esac
17743 link_all_deplibs_F77=yes
17744 ;;
17745
17746 sunos4*)
17747 if test sequent = "$host_vendor"; then
17748 # Use $CC to link under sequent, because it throws in some extra .o
17749 # files that make .init and .fini sections work.
17750 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17751 else
17752 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17753 fi
17754 hardcode_libdir_flag_spec_F77='-L$libdir'
17755 hardcode_direct_F77=yes
17756 hardcode_minus_L_F77=yes
17757 hardcode_shlibpath_var_F77=no
17758 ;;
17759
17760 sysv4)
17761 case $host_vendor in
17762 sni)
17763 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17764 hardcode_direct_F77=yes # is this really true???
17765 ;;
17766 siemens)
17767 ## LD is ld it makes a PLAMLIB
17768 ## CC just makes a GrossModule.
17769 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17770 reload_cmds_F77='$CC -r -o $output$reload_objs'
17771 hardcode_direct_F77=no
17772 ;;
17773 motorola)
17774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17775 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17776 ;;
17777 esac
17778 runpath_var='LD_RUN_PATH'
17779 hardcode_shlibpath_var_F77=no
17780 ;;
17781
17782 sysv4.3*)
17783 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17784 hardcode_shlibpath_var_F77=no
17785 export_dynamic_flag_spec_F77='-Bexport'
17786 ;;
17787
17788 sysv4*MP*)
17789 if test -d /usr/nec; then
17790 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791 hardcode_shlibpath_var_F77=no
17792 runpath_var=LD_RUN_PATH
17793 hardcode_runpath_var=yes
17794 ld_shlibs_F77=yes
17795 fi
17796 ;;
17797
17798 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17799 no_undefined_flag_F77='$wl-z,text'
17800 archive_cmds_need_lc_F77=no
17801 hardcode_shlibpath_var_F77=no
17802 runpath_var='LD_RUN_PATH'
17803
17804 if test yes = "$GCC"; then
17805 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17806 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17807 else
17808 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810 fi
17811 ;;
17812
17813 sysv5* | sco3.2v5* | sco5v6*)
17814 # Note: We CANNOT use -z defs as we might desire, because we do not
17815 # link with -lc, and that would cause any symbols used from libc to
17816 # always be unresolved, which means just about no library would
17817 # ever link correctly. If we're not using GNU ld we use -z text
17818 # though, which does catch some bad symbols but isn't as heavy-handed
17819 # as -z defs.
17820 no_undefined_flag_F77='$wl-z,text'
17821 allow_undefined_flag_F77='$wl-z,nodefs'
17822 archive_cmds_need_lc_F77=no
17823 hardcode_shlibpath_var_F77=no
17824 hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
17825 hardcode_libdir_separator_F77=':'
17826 link_all_deplibs_F77=yes
17827 export_dynamic_flag_spec_F77='$wl-Bexport'
17828 runpath_var='LD_RUN_PATH'
17829
17830 if test yes = "$GCC"; then
17831 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17833 else
17834 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 fi
17837 ;;
17838
17839 uts4*)
17840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17841 hardcode_libdir_flag_spec_F77='-L$libdir'
17842 hardcode_shlibpath_var_F77=no
17843 ;;
17844
17845 *)
17846 ld_shlibs_F77=no
17847 ;;
17848 esac
17849
17850 if test sni = "$host_vendor"; then
17851 case $host in
17852 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17853 export_dynamic_flag_spec_F77='$wl-Blargedynsym'
17854 ;;
17855 esac
17856 fi
17857 fi
17858
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
17860 printf "%s\n" "$ld_shlibs_F77" >&6; }
17861 test no = "$ld_shlibs_F77" && can_build_shared=no
17862
17863 with_gnu_ld_F77=$with_gnu_ld
17864
17865
17866
17867
17868
17869
17870 #
17871 # Do we need to explicitly link libc?
17872 #
17873 case "x$archive_cmds_need_lc_F77" in
17874 x|xyes)
17875 # Assume -lc should be added
17876 archive_cmds_need_lc_F77=yes
17877
17878 if test yes,yes = "$GCC,$enable_shared"; then
17879 case $archive_cmds_F77 in
17880 *'~'*)
17881 # FIXME: we may have to deal with multi-command sequences.
17882 ;;
17883 '$CC '*)
17884 # Test whether the compiler implicitly links with -lc since on some
17885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17886 # to ld, don't add -lc before -lgcc.
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17888 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17889 if test ${lt_cv_archive_cmds_need_lc_F77+y}
17890 then :
17891 printf %s "(cached) " >&6
17892 else case e in #(
17893 e) $RM conftest*
17894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17895
17896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17897 (eval $ac_compile) 2>&5
17898 ac_status=$?
17899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17900 test $ac_status = 0; } 2>conftest.err; then
17901 soname=conftest
17902 lib=conftest
17903 libobjs=conftest.$ac_objext
17904 deplibs=
17905 wl=$lt_prog_compiler_wl_F77
17906 pic_flag=$lt_prog_compiler_pic_F77
17907 compiler_flags=-v
17908 linker_flags=-v
17909 verstring=
17910 output_objdir=.
17911 libname=conftest
17912 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17913 allow_undefined_flag_F77=
17914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17915 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17916 ac_status=$?
17917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17918 test $ac_status = 0; }
17919 then
17920 lt_cv_archive_cmds_need_lc_F77=no
17921 else
17922 lt_cv_archive_cmds_need_lc_F77=yes
17923 fi
17924 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17925 else
17926 cat conftest.err 1>&5
17927 fi
17928 $RM conftest*
17929 ;;
17930 esac
17931 fi
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
17933 printf "%s\n" "$lt_cv_archive_cmds_need_lc_F77" >&6; }
17934 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
17935 ;;
17936 esac
17937 fi
17938 ;;
17939 esac
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18003 printf %s "checking dynamic linker characteristics... " >&6; }
18004
18005 library_names_spec=
18006 libname_spec='lib$name'
18007 soname_spec=
18008 shrext_cmds=.so
18009 postinstall_cmds=
18010 postuninstall_cmds=
18011 finish_cmds=
18012 finish_eval=
18013 shlibpath_var=
18014 shlibpath_overrides_runpath=unknown
18015 version_type=none
18016 dynamic_linker="$host_os ld.so"
18017 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18018 need_lib_prefix=unknown
18019 hardcode_into_libs=no
18020
18021 # when you set need_version to no, make sure it does not cause -set_version
18022 # flags to be left without arguments
18023 need_version=unknown
18024
18025
18026
18027 case $host_os in
18028 aix3*)
18029 version_type=linux # correct to gnu/linux during the next big refactor
18030 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18031 shlibpath_var=LIBPATH
18032
18033 # AIX 3 has no versioning support, so we append a major version to the name.
18034 soname_spec='$libname$release$shared_ext$major'
18035 ;;
18036
18037 aix[4-9]*)
18038 version_type=linux # correct to gnu/linux during the next big refactor
18039 need_lib_prefix=no
18040 need_version=no
18041 hardcode_into_libs=yes
18042 if test ia64 = "$host_cpu"; then
18043 # AIX 5 supports IA64
18044 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 else
18047 # With GCC up to 2.95.x, collect2 would create an import file
18048 # for dependence libraries. The import file would start with
18049 # the line '#! .'. This would cause the generated library to
18050 # depend on '.', always an invalid library. This was fixed in
18051 # development snapshots of GCC prior to 3.0.
18052 case $host_os in
18053 aix4 | aix4.[01] | aix4.[01].*)
18054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18055 echo ' yes '
18056 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18057 :
18058 else
18059 can_build_shared=no
18060 fi
18061 ;;
18062 esac
18063 # Using Import Files as archive members, it is possible to support
18064 # filename-based versioning of shared library archives on AIX. While
18065 # this would work for both with and without runtime linking, it will
18066 # prevent static linking of such archives. So we do filename-based
18067 # shared library versioning with .so extension only, which is used
18068 # when both runtime linking and shared linking is enabled.
18069 # Unfortunately, runtime linking may impact performance, so we do
18070 # not want this to be the default eventually. Also, we use the
18071 # versioned .so libs for executables only if there is the -brtl
18072 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18073 # To allow for filename-based versioning support, we need to create
18074 # libNAME.so.V as an archive file, containing:
18075 # *) an Import File, referring to the versioned filename of the
18076 # archive as well as the shared archive member, telling the
18077 # bitwidth (32 or 64) of that shared object, and providing the
18078 # list of exported symbols of that shared object, eventually
18079 # decorated with the 'weak' keyword
18080 # *) the shared object with the F_LOADONLY flag set, to really avoid
18081 # it being seen by the linker.
18082 # At run time we better use the real file rather than another symlink,
18083 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18084
18085 case $with_aix_soname,$aix_use_runtimelinking in
18086 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18087 # soname into executable. Probably we can add versioning support to
18088 # collect2, so additional links can be useful in future.
18089 aix,yes) # traditional libtool
18090 dynamic_linker='AIX unversionable lib.so'
18091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18092 # instead of lib<name>.a to let people know that these are not
18093 # typical AIX shared libraries.
18094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18095 ;;
18096 aix,no) # traditional AIX only
18097 dynamic_linker='AIX lib.a(lib.so.V)'
18098 # We preserve .a as extension for shared libraries through AIX4.2
18099 # and later when we are not doing run time linking.
18100 library_names_spec='$libname$release.a $libname.a'
18101 soname_spec='$libname$release$shared_ext$major'
18102 ;;
18103 svr4,*) # full svr4 only
18104 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18105 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18106 # We do not specify a path in Import Files, so LIBPATH fires.
18107 shlibpath_overrides_runpath=yes
18108 ;;
18109 *,yes) # both, prefer svr4
18110 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18111 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18112 # unpreferred sharedlib libNAME.a needs extra handling
18113 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18114 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18115 # We do not specify a path in Import Files, so LIBPATH fires.
18116 shlibpath_overrides_runpath=yes
18117 ;;
18118 *,no) # both, prefer aix
18119 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18120 library_names_spec='$libname$release.a $libname.a'
18121 soname_spec='$libname$release$shared_ext$major'
18122 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18123 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18124 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18125 ;;
18126 esac
18127 shlibpath_var=LIBPATH
18128 fi
18129 ;;
18130
18131 amigaos*)
18132 case $host_cpu in
18133 powerpc)
18134 # Since July 2007 AmigaOS4 officially supports .so libraries.
18135 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18137 ;;
18138 m68k)
18139 library_names_spec='$libname.ixlibrary $libname.a'
18140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18141 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18142 ;;
18143 esac
18144 ;;
18145
18146 beos*)
18147 library_names_spec='$libname$shared_ext'
18148 dynamic_linker="$host_os ld.so"
18149 shlibpath_var=LIBRARY_PATH
18150 ;;
18151
18152 bsdi[45]*)
18153 version_type=linux # correct to gnu/linux during the next big refactor
18154 need_version=no
18155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18156 soname_spec='$libname$release$shared_ext$major'
18157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18158 shlibpath_var=LD_LIBRARY_PATH
18159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18161 # the default ld.so.conf also contains /usr/contrib/lib and
18162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18163 # libtool to hard-code these into programs
18164 ;;
18165
18166 cygwin* | mingw* | windows* | pw32* | cegcc*)
18167 version_type=windows
18168 shrext_cmds=.dll
18169 need_version=no
18170 need_lib_prefix=no
18171
18172 case $GCC,$cc_basename in
18173 yes,*)
18174 # gcc
18175 library_names_spec='$libname.dll.a'
18176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18177 # If user builds GCC with multilib enabled,
18178 # it should just install on $(libdir)
18179 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18180 if test xyes = x"$multilib"; then
18181 postinstall_cmds='base_file=`basename \$file`~
18182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18183 dldir=$destdir/`dirname \$dlpath`~
18184 $install_prog $dir/$dlname $destdir/$dlname~
18185 chmod a+x $destdir/$dlname~
18186 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18187 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18188 fi'
18189 else
18190 postinstall_cmds='base_file=`basename \$file`~
18191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18192 dldir=$destdir/`dirname \$dlpath`~
18193 test -d \$dldir || mkdir -p \$dldir~
18194 $install_prog $dir/$dlname \$dldir/$dlname~
18195 chmod a+x \$dldir/$dlname~
18196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18198 fi'
18199 fi
18200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18201 dlpath=$dir/\$dldll~
18202 $RM \$dlpath'
18203 shlibpath_overrides_runpath=yes
18204
18205 case $host_os in
18206 cygwin*)
18207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18208 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18209
18210 ;;
18211 mingw* | windows* | cegcc*)
18212 # MinGW DLLs use traditional 'lib' prefix
18213 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18214 ;;
18215 pw32*)
18216 # pw32 DLLs use 'pw' prefix rather than 'lib'
18217 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18218 ;;
18219 esac
18220 dynamic_linker='Win32 ld.exe'
18221 ;;
18222
18223 *,cl* | *,icl*)
18224 # Native MSVC or ICC
18225 libname_spec='$name'
18226 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18227 library_names_spec='$libname.dll.lib'
18228
18229 case $build_os in
18230 mingw* | windows*)
18231 sys_lib_search_path_spec=
18232 lt_save_ifs=$IFS
18233 IFS=';'
18234 for lt_path in $LIB
18235 do
18236 IFS=$lt_save_ifs
18237 # Let DOS variable expansion print the short 8.3 style file name.
18238 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18239 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18240 done
18241 IFS=$lt_save_ifs
18242 # Convert to MSYS style.
18243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18244 ;;
18245 cygwin*)
18246 # Convert to unix form, then to dos form, then back to unix form
18247 # but this time dos style (no spaces!) so that the unix form looks
18248 # like /cygdrive/c/PROGRA~1:/cygdr...
18249 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18250 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18251 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18252 ;;
18253 *)
18254 sys_lib_search_path_spec=$LIB
18255 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18256 # It is most probably a Windows format PATH.
18257 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18258 else
18259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18260 fi
18261 # FIXME: find the short name or the path components, as spaces are
18262 # common. (e.g. "Program Files" -> "PROGRA~1")
18263 ;;
18264 esac
18265
18266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18267 postinstall_cmds='base_file=`basename \$file`~
18268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18269 dldir=$destdir/`dirname \$dlpath`~
18270 test -d \$dldir || mkdir -p \$dldir~
18271 $install_prog $dir/$dlname \$dldir/$dlname'
18272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18273 dlpath=$dir/\$dldll~
18274 $RM \$dlpath'
18275 shlibpath_overrides_runpath=yes
18276 dynamic_linker='Win32 link.exe'
18277 ;;
18278
18279 *)
18280 # Assume MSVC and ICC wrapper
18281 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18282 dynamic_linker='Win32 ld.exe'
18283 ;;
18284 esac
18285 # FIXME: first we should search . and the directory the executable is in
18286 shlibpath_var=PATH
18287 ;;
18288
18289 darwin* | rhapsody*)
18290 dynamic_linker="$host_os dyld"
18291 version_type=darwin
18292 need_lib_prefix=no
18293 need_version=no
18294 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18295 soname_spec='$libname$release$major$shared_ext'
18296 shlibpath_overrides_runpath=yes
18297 shlibpath_var=DYLD_LIBRARY_PATH
18298 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18299
18300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18301 ;;
18302
18303 dgux*)
18304 version_type=linux # correct to gnu/linux during the next big refactor
18305 need_lib_prefix=no
18306 need_version=no
18307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18308 soname_spec='$libname$release$shared_ext$major'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 ;;
18311
18312 freebsd* | dragonfly* | midnightbsd*)
18313 # DragonFly does not have aout. When/if they implement a new
18314 # versioning mechanism, adjust this.
18315 if test -x /usr/bin/objformat; then
18316 objformat=`/usr/bin/objformat`
18317 else
18318 case $host_os in
18319 freebsd[23].*) objformat=aout ;;
18320 *) objformat=elf ;;
18321 esac
18322 fi
18323 version_type=freebsd-$objformat
18324 case $version_type in
18325 freebsd-elf*)
18326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18327 soname_spec='$libname$release$shared_ext$major'
18328 need_version=no
18329 need_lib_prefix=no
18330 ;;
18331 freebsd-*)
18332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18333 need_version=yes
18334 ;;
18335 esac
18336 case $host_cpu in
18337 powerpc64)
18338 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18339 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18340 cat > conftest.$ac_ext <<_ACEOF
18341 int test_pointer_size[sizeof (void *) - 5];
18342
18343 _ACEOF
18344 if ac_fn_f77_try_compile "$LINENO"
18345 then :
18346 shlibpath_var=LD_LIBRARY_PATH
18347 else case e in #(
18348 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18349 esac
18350 fi
18351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18352 ;;
18353 *)
18354 shlibpath_var=LD_LIBRARY_PATH
18355 ;;
18356 esac
18357 case $host_os in
18358 freebsd2.*)
18359 shlibpath_overrides_runpath=yes
18360 ;;
18361 freebsd3.[01]* | freebsdelf3.[01]*)
18362 shlibpath_overrides_runpath=yes
18363 hardcode_into_libs=yes
18364 ;;
18365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18367 shlibpath_overrides_runpath=no
18368 hardcode_into_libs=yes
18369 ;;
18370 *) # from 4.6 on, and DragonFly
18371 shlibpath_overrides_runpath=yes
18372 hardcode_into_libs=yes
18373 ;;
18374 esac
18375 ;;
18376
18377 haiku*)
18378 version_type=linux # correct to gnu/linux during the next big refactor
18379 need_lib_prefix=no
18380 need_version=no
18381 dynamic_linker="$host_os runtime_loader"
18382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18383 soname_spec='$libname$release$shared_ext$major'
18384 shlibpath_var=LIBRARY_PATH
18385 shlibpath_overrides_runpath=no
18386 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18387 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18388 hardcode_into_libs=no
18389 ;;
18390
18391 hpux9* | hpux10* | hpux11*)
18392 # Give a soname corresponding to the major version so that dld.sl refuses to
18393 # link against other versions.
18394 version_type=sunos
18395 need_lib_prefix=no
18396 need_version=no
18397 case $host_cpu in
18398 ia64*)
18399 shrext_cmds='.so'
18400 hardcode_into_libs=yes
18401 dynamic_linker="$host_os dld.so"
18402 shlibpath_var=LD_LIBRARY_PATH
18403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18405 soname_spec='$libname$release$shared_ext$major'
18406 if test 32 = "$HPUX_IA64_MODE"; then
18407 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18408 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18409 else
18410 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18411 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18412 fi
18413 ;;
18414 hppa*64*)
18415 shrext_cmds='.sl'
18416 hardcode_into_libs=yes
18417 dynamic_linker="$host_os dld.sl"
18418 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18421 soname_spec='$libname$release$shared_ext$major'
18422 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18424 ;;
18425 *)
18426 shrext_cmds='.sl'
18427 dynamic_linker="$host_os dld.sl"
18428 shlibpath_var=SHLIB_PATH
18429 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18431 soname_spec='$libname$release$shared_ext$major'
18432 ;;
18433 esac
18434 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18435 postinstall_cmds='chmod 555 $lib'
18436 # or fails outright, so override atomically:
18437 install_override_mode=555
18438 ;;
18439
18440 interix[3-9]*)
18441 version_type=linux # correct to gnu/linux during the next big refactor
18442 need_lib_prefix=no
18443 need_version=no
18444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18445 soname_spec='$libname$release$shared_ext$major'
18446 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=no
18449 hardcode_into_libs=yes
18450 ;;
18451
18452 irix5* | irix6* | nonstopux*)
18453 case $host_os in
18454 nonstopux*) version_type=nonstopux ;;
18455 *)
18456 if test yes = "$lt_cv_prog_gnu_ld"; then
18457 version_type=linux # correct to gnu/linux during the next big refactor
18458 else
18459 version_type=irix
18460 fi ;;
18461 esac
18462 need_lib_prefix=no
18463 need_version=no
18464 soname_spec='$libname$release$shared_ext$major'
18465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18466 case $host_os in
18467 irix5* | nonstopux*)
18468 libsuff= shlibsuff=
18469 ;;
18470 *)
18471 case $LD in # libtool.m4 will add one of these switches to LD
18472 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18473 libsuff= shlibsuff= libmagic=32-bit;;
18474 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18475 libsuff=32 shlibsuff=N32 libmagic=N32;;
18476 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18477 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18478 *) libsuff= shlibsuff= libmagic=never-match;;
18479 esac
18480 ;;
18481 esac
18482 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18483 shlibpath_overrides_runpath=no
18484 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18485 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18486 hardcode_into_libs=yes
18487 ;;
18488
18489 # No shared lib support for Linux oldld, aout, or coff.
18490 linux*oldld* | linux*aout* | linux*coff*)
18491 dynamic_linker=no
18492 ;;
18493
18494 linux*android*)
18495 version_type=none # Android doesn't support versioned libraries.
18496 need_lib_prefix=no
18497 need_version=no
18498 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18499 soname_spec='$libname$release$shared_ext'
18500 finish_cmds=
18501 shlibpath_var=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath=yes
18503
18504 # This implies no fast_install, which is unacceptable.
18505 # Some rework will be needed to allow for fast_install
18506 # before this can be enabled.
18507 hardcode_into_libs=yes
18508
18509 dynamic_linker='Android linker'
18510 # -rpath works at least for libraries that are not overridden by
18511 # libraries installed in system locations.
18512 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18513 ;;
18514
18515 # This must be glibc/ELF.
18516 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18517 version_type=linux # correct to gnu/linux during the next big refactor
18518 need_lib_prefix=no
18519 need_version=no
18520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18521 soname_spec='$libname$release$shared_ext$major'
18522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=no
18525
18526 # Some binutils ld are patched to set DT_RUNPATH
18527 if test ${lt_cv_shlibpath_overrides_runpath+y}
18528 then :
18529 printf %s "(cached) " >&6
18530 else case e in #(
18531 e) lt_cv_shlibpath_overrides_runpath=no
18532 save_LDFLAGS=$LDFLAGS
18533 save_libdir=$libdir
18534 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
18535 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
18536 cat > conftest.$ac_ext <<_ACEOF
18537 program main
18538
18539 end
18540 _ACEOF
18541 if ac_fn_f77_try_link "$LINENO"
18542 then :
18543 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18544 then :
18545 lt_cv_shlibpath_overrides_runpath=yes
18546 fi
18547 fi
18548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18549 conftest$ac_exeext conftest.$ac_ext
18550 LDFLAGS=$save_LDFLAGS
18551 libdir=$save_libdir
18552 ;;
18553 esac
18554 fi
18555
18556 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18557
18558 # This implies no fast_install, which is unacceptable.
18559 # Some rework will be needed to allow for fast_install
18560 # before this can be enabled.
18561 hardcode_into_libs=yes
18562
18563 # Ideally, we could use ldconfig to report *all* directories which are
18564 # searched for libraries, however this is still not possible. Aside from not
18565 # being certain /sbin/ldconfig is available, command
18566 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18567 # even though it is searched at run-time. Try to do the best guess by
18568 # appending ld.so.conf contents (and includes) to the search path.
18569 if test -f /etc/ld.so.conf; then
18570 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18571 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18572 fi
18573
18574 # We used to test for /lib/ld.so.1 and disable shared libraries on
18575 # powerpc, because MkLinux only supported shared libraries with the
18576 # GNU dynamic linker. Since this was broken with cross compilers,
18577 # most powerpc-linux boxes support dynamic linking these days and
18578 # people can always --disable-shared, the test was removed, and we
18579 # assume the GNU/Linux dynamic linker is in use.
18580 dynamic_linker='GNU/Linux ld.so'
18581 ;;
18582
18583 netbsdelf*-gnu)
18584 version_type=linux
18585 need_lib_prefix=no
18586 need_version=no
18587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18588 soname_spec='$libname$release$shared_ext$major'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 shlibpath_overrides_runpath=no
18591 hardcode_into_libs=yes
18592 dynamic_linker='NetBSD ld.elf_so'
18593 ;;
18594
18595 netbsd*)
18596 version_type=sunos
18597 need_lib_prefix=no
18598 need_version=no
18599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18600 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18602 dynamic_linker='NetBSD (a.out) ld.so'
18603 else
18604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18605 soname_spec='$libname$release$shared_ext$major'
18606 dynamic_linker='NetBSD ld.elf_so'
18607 fi
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=yes
18610 hardcode_into_libs=yes
18611 ;;
18612
18613 *-mlibc)
18614 version_type=linux # correct to gnu/linux during the next big refactor
18615 need_lib_prefix=no
18616 need_version=no
18617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18618 soname_spec='$libname$release$shared_ext$major'
18619 dynamic_linker='mlibc ld.so'
18620 shlibpath_var=LD_LIBRARY_PATH
18621 shlibpath_overrides_runpath=no
18622 hardcode_into_libs=yes
18623 ;;
18624
18625 newsos6)
18626 version_type=linux # correct to gnu/linux during the next big refactor
18627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 shlibpath_overrides_runpath=yes
18630 ;;
18631
18632 *nto* | *qnx*)
18633 version_type=qnx
18634 need_lib_prefix=no
18635 need_version=no
18636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18637 soname_spec='$libname$release$shared_ext$major'
18638 shlibpath_var=LD_LIBRARY_PATH
18639 shlibpath_overrides_runpath=no
18640 hardcode_into_libs=yes
18641 dynamic_linker='ldqnx.so'
18642 ;;
18643
18644 openbsd*)
18645 version_type=sunos
18646 sys_lib_dlsearch_path_spec=/usr/lib
18647 need_lib_prefix=no
18648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18649 need_version=no
18650 else
18651 need_version=yes
18652 fi
18653 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655 shlibpath_var=LD_LIBRARY_PATH
18656 shlibpath_overrides_runpath=yes
18657 ;;
18658
18659 os2*)
18660 libname_spec='$name'
18661 version_type=windows
18662 shrext_cmds=.dll
18663 need_version=no
18664 need_lib_prefix=no
18665 # OS/2 can only load a DLL with a base name of 8 characters or less.
18666 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18667 v=$($ECHO $release$versuffix | tr -d .-);
18668 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18669 $ECHO $n$v`$shared_ext'
18670 library_names_spec='${libname}_dll.$libext'
18671 dynamic_linker='OS/2 ld.exe'
18672 shlibpath_var=BEGINLIBPATH
18673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18675 postinstall_cmds='base_file=`basename \$file`~
18676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18677 dldir=$destdir/`dirname \$dlpath`~
18678 test -d \$dldir || mkdir -p \$dldir~
18679 $install_prog $dir/$dlname \$dldir/$dlname~
18680 chmod a+x \$dldir/$dlname~
18681 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18682 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18683 fi'
18684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18685 dlpath=$dir/\$dldll~
18686 $RM \$dlpath'
18687 ;;
18688
18689 osf3* | osf4* | osf5*)
18690 version_type=osf
18691 need_lib_prefix=no
18692 need_version=no
18693 soname_spec='$libname$release$shared_ext$major'
18694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18698 ;;
18699
18700 rdos*)
18701 dynamic_linker=no
18702 ;;
18703
18704 serenity*)
18705 version_type=linux # correct to gnu/linux during the next big refactor
18706 need_lib_prefix=no
18707 need_version=no
18708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18709 soname_spec='$libname$release$shared_ext$major'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 shlibpath_overrides_runpath=no
18712 dynamic_linker='SerenityOS LibELF'
18713 ;;
18714
18715 solaris*)
18716 version_type=linux # correct to gnu/linux during the next big refactor
18717 need_lib_prefix=no
18718 need_version=no
18719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18720 soname_spec='$libname$release$shared_ext$major'
18721 shlibpath_var=LD_LIBRARY_PATH
18722 shlibpath_overrides_runpath=yes
18723 hardcode_into_libs=yes
18724 # ldd complains unless libraries are executable
18725 postinstall_cmds='chmod +x $lib'
18726 ;;
18727
18728 sunos4*)
18729 version_type=sunos
18730 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 shlibpath_overrides_runpath=yes
18734 if test yes = "$with_gnu_ld"; then
18735 need_lib_prefix=no
18736 fi
18737 need_version=yes
18738 ;;
18739
18740 sysv4 | sysv4.3*)
18741 version_type=linux # correct to gnu/linux during the next big refactor
18742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18743 soname_spec='$libname$release$shared_ext$major'
18744 shlibpath_var=LD_LIBRARY_PATH
18745 case $host_vendor in
18746 sni)
18747 shlibpath_overrides_runpath=no
18748 need_lib_prefix=no
18749 runpath_var=LD_RUN_PATH
18750 ;;
18751 siemens)
18752 need_lib_prefix=no
18753 ;;
18754 motorola)
18755 need_lib_prefix=no
18756 need_version=no
18757 shlibpath_overrides_runpath=no
18758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18759 ;;
18760 esac
18761 ;;
18762
18763 sysv4*MP*)
18764 if test -d /usr/nec; then
18765 version_type=linux # correct to gnu/linux during the next big refactor
18766 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18767 soname_spec='$libname$shared_ext.$major'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 fi
18770 ;;
18771
18772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18773 version_type=sco
18774 need_lib_prefix=no
18775 need_version=no
18776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18777 soname_spec='$libname$release$shared_ext$major'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=yes
18780 hardcode_into_libs=yes
18781 if test yes = "$with_gnu_ld"; then
18782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18783 else
18784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18785 case $host_os in
18786 sco3.2v5*)
18787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18788 ;;
18789 esac
18790 fi
18791 sys_lib_dlsearch_path_spec='/usr/lib'
18792 ;;
18793
18794 tpf*)
18795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18796 version_type=linux # correct to gnu/linux during the next big refactor
18797 need_lib_prefix=no
18798 need_version=no
18799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18800 shlibpath_var=LD_LIBRARY_PATH
18801 shlibpath_overrides_runpath=no
18802 hardcode_into_libs=yes
18803 ;;
18804
18805 uts4*)
18806 version_type=linux # correct to gnu/linux during the next big refactor
18807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18808 soname_spec='$libname$release$shared_ext$major'
18809 shlibpath_var=LD_LIBRARY_PATH
18810 ;;
18811
18812 emscripten*)
18813 version_type=none
18814 need_lib_prefix=no
18815 need_version=no
18816 library_names_spec='$libname$release$shared_ext'
18817 soname_spec='$libname$release$shared_ext'
18818 finish_cmds=
18819 dynamic_linker="Emscripten linker"
18820 lt_prog_compiler_wl_F77=
18821 lt_prog_compiler_pic_F77=
18822 lt_prog_compiler_static_F77=
18823
18824
18825 if test yes = "$GCC"; then
18826 lt_prog_compiler_wl_F77='-Wl,'
18827 lt_prog_compiler_static_F77='-static'
18828
18829 case $host_os in
18830 aix*)
18831 # All AIX code is PIC.
18832 if test ia64 = "$host_cpu"; then
18833 # AIX 5 now supports IA64 processor
18834 lt_prog_compiler_static_F77='-Bstatic'
18835 fi
18836 lt_prog_compiler_pic_F77='-fPIC'
18837 ;;
18838
18839 amigaos*)
18840 case $host_cpu in
18841 powerpc)
18842 # see comment about AmigaOS4 .so support
18843 lt_prog_compiler_pic_F77='-fPIC'
18844 ;;
18845 m68k)
18846 # FIXME: we need at least 68020 code to build shared libraries, but
18847 # adding the '-m68020' flag to GCC prevents building anything better,
18848 # like '-m68040'.
18849 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18850 ;;
18851 esac
18852 ;;
18853
18854 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18855 # PIC is the default for these OSes.
18856 ;;
18857
18858 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
18859 # This hack is so that the source file can tell whether it is being
18860 # built for inclusion in a dll (and should export symbols for example).
18861 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18862 # (--disable-auto-import) libraries
18863 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18864 case $host_os in
18865 os2*)
18866 lt_prog_compiler_static_F77='$wl-static'
18867 ;;
18868 esac
18869 ;;
18870
18871 darwin* | rhapsody*)
18872 # PIC is the default on this platform
18873 # Common symbols not allowed in MH_DYLIB files
18874 lt_prog_compiler_pic_F77='-fno-common'
18875 ;;
18876
18877 haiku*)
18878 # PIC is the default for Haiku.
18879 # The "-static" flag exists, but is broken.
18880 lt_prog_compiler_static_F77=
18881 ;;
18882
18883 hpux*)
18884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18886 # sets the default TLS model and affects inlining.
18887 case $host_cpu in
18888 hppa*64*)
18889 # +Z the default
18890 ;;
18891 *)
18892 lt_prog_compiler_pic_F77='-fPIC'
18893 ;;
18894 esac
18895 ;;
18896
18897 interix[3-9]*)
18898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18899 # Instead, we relocate shared libraries at runtime.
18900 ;;
18901
18902 msdosdjgpp*)
18903 # Just because we use GCC doesn't mean we suddenly get shared libraries
18904 # on systems that don't support them.
18905 lt_prog_compiler_can_build_shared_F77=no
18906 enable_shared=no
18907 ;;
18908
18909 *nto* | *qnx*)
18910 # QNX uses GNU C++, but need to define -shared option too, otherwise
18911 # it will coredump.
18912 lt_prog_compiler_pic_F77='-fPIC -shared'
18913 ;;
18914
18915 sysv4*MP*)
18916 if test -d /usr/nec; then
18917 lt_prog_compiler_pic_F77=-Kconform_pic
18918 fi
18919 ;;
18920
18921 *)
18922 lt_prog_compiler_pic_F77='-fPIC'
18923 ;;
18924 esac
18925
18926 case $cc_basename in
18927 nvcc*) # Cuda Compiler Driver 2.2
18928 lt_prog_compiler_wl_F77='-Xlinker '
18929 if test -n "$lt_prog_compiler_pic_F77"; then
18930 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
18931 fi
18932 ;;
18933 esac
18934 else
18935 # PORTME Check for flag to pass linker flags through the system compiler.
18936 case $host_os in
18937 aix*)
18938 lt_prog_compiler_wl_F77='-Wl,'
18939 if test ia64 = "$host_cpu"; then
18940 # AIX 5 now supports IA64 processor
18941 lt_prog_compiler_static_F77='-Bstatic'
18942 else
18943 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18944 fi
18945 ;;
18946
18947 darwin* | rhapsody*)
18948 # PIC is the default on this platform
18949 # Common symbols not allowed in MH_DYLIB files
18950 lt_prog_compiler_pic_F77='-fno-common'
18951 case $cc_basename in
18952 nagfor*)
18953 # NAG Fortran compiler
18954 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
18955 lt_prog_compiler_pic_F77='-PIC'
18956 lt_prog_compiler_static_F77='-Bstatic'
18957 ;;
18958 esac
18959 ;;
18960
18961 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
18962 # This hack is so that the source file can tell whether it is being
18963 # built for inclusion in a dll (and should export symbols for example).
18964 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18965 case $host_os in
18966 os2*)
18967 lt_prog_compiler_static_F77='$wl-static'
18968 ;;
18969 esac
18970 ;;
18971
18972 hpux9* | hpux10* | hpux11*)
18973 lt_prog_compiler_wl_F77='-Wl,'
18974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18975 # not for PA HP-UX.
18976 case $host_cpu in
18977 hppa*64*|ia64*)
18978 # +Z the default
18979 ;;
18980 *)
18981 lt_prog_compiler_pic_F77='+Z'
18982 ;;
18983 esac
18984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18985 lt_prog_compiler_static_F77='$wl-a ${wl}archive'
18986 ;;
18987
18988 irix5* | irix6* | nonstopux*)
18989 lt_prog_compiler_wl_F77='-Wl,'
18990 # PIC (with -KPIC) is the default.
18991 lt_prog_compiler_static_F77='-non_shared'
18992 ;;
18993
18994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18995 case $cc_basename in
18996 # old Intel for x86_64, which still supported -KPIC.
18997 ecc*)
18998 lt_prog_compiler_wl_F77='-Wl,'
18999 lt_prog_compiler_pic_F77='-KPIC'
19000 lt_prog_compiler_static_F77='-static'
19001 ;;
19002 *flang* | ftn | f18* | f95*)
19003 # Flang compiler.
19004 lt_prog_compiler_wl_F77='-Wl,'
19005 lt_prog_compiler_pic_F77='-fPIC'
19006 lt_prog_compiler_static_F77='-static'
19007 ;;
19008 # icc used to be incompatible with GCC.
19009 # ICC 10 doesn't accept -KPIC any more.
19010 icc* | ifort*)
19011 lt_prog_compiler_wl_F77='-Wl,'
19012 lt_prog_compiler_pic_F77='-fPIC'
19013 lt_prog_compiler_static_F77='-static'
19014 ;;
19015 # Lahey Fortran 8.1.
19016 lf95*)
19017 lt_prog_compiler_wl_F77='-Wl,'
19018 lt_prog_compiler_pic_F77='--shared'
19019 lt_prog_compiler_static_F77='--static'
19020 ;;
19021 nagfor*)
19022 # NAG Fortran compiler
19023 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
19024 lt_prog_compiler_pic_F77='-PIC'
19025 lt_prog_compiler_static_F77='-Bstatic'
19026 ;;
19027 tcc*)
19028 # Fabrice Bellard et al's Tiny C Compiler
19029 lt_prog_compiler_wl_F77='-Wl,'
19030 lt_prog_compiler_pic_F77='-fPIC'
19031 lt_prog_compiler_static_F77='-static'
19032 ;;
19033 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19034 # Portland Group compilers (*not* the Pentium gcc compiler,
19035 # which looks to be a dead project)
19036 lt_prog_compiler_wl_F77='-Wl,'
19037 lt_prog_compiler_pic_F77='-fpic'
19038 lt_prog_compiler_static_F77='-Bstatic'
19039 ;;
19040 ccc*)
19041 lt_prog_compiler_wl_F77='-Wl,'
19042 # All Alpha code is PIC.
19043 lt_prog_compiler_static_F77='-non_shared'
19044 ;;
19045 xl* | bgxl* | bgf* | mpixl*)
19046 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19047 lt_prog_compiler_wl_F77='-Wl,'
19048 lt_prog_compiler_pic_F77='-qpic'
19049 lt_prog_compiler_static_F77='-qstaticlink'
19050 ;;
19051 *)
19052 case `$CC -V 2>&1 | $SED 5q` in
19053 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19055 lt_prog_compiler_pic_F77='-KPIC'
19056 lt_prog_compiler_static_F77='-Bstatic'
19057 lt_prog_compiler_wl_F77=''
19058 ;;
19059 *Sun\ F* | *Sun*Fortran*)
19060 lt_prog_compiler_pic_F77='-KPIC'
19061 lt_prog_compiler_static_F77='-Bstatic'
19062 lt_prog_compiler_wl_F77='-Qoption ld '
19063 ;;
19064 *Sun\ C*)
19065 # Sun C 5.9
19066 lt_prog_compiler_pic_F77='-KPIC'
19067 lt_prog_compiler_static_F77='-Bstatic'
19068 lt_prog_compiler_wl_F77='-Wl,'
19069 ;;
19070 *Intel*\ [CF]*Compiler*)
19071 lt_prog_compiler_wl_F77='-Wl,'
19072 lt_prog_compiler_pic_F77='-fPIC'
19073 lt_prog_compiler_static_F77='-static'
19074 ;;
19075 *Portland\ Group*)
19076 lt_prog_compiler_wl_F77='-Wl,'
19077 lt_prog_compiler_pic_F77='-fpic'
19078 lt_prog_compiler_static_F77='-Bstatic'
19079 ;;
19080 esac
19081 ;;
19082 esac
19083 ;;
19084
19085 newsos6)
19086 lt_prog_compiler_pic_F77='-KPIC'
19087 lt_prog_compiler_static_F77='-Bstatic'
19088 ;;
19089
19090 *-mlibc)
19091 lt_prog_compiler_wl_F77='-Wl,'
19092 lt_prog_compiler_pic_F77='-fPIC'
19093 lt_prog_compiler_static_F77='-static'
19094 ;;
19095
19096 *nto* | *qnx*)
19097 # QNX uses GNU C++, but need to define -shared option too, otherwise
19098 # it will coredump.
19099 lt_prog_compiler_pic_F77='-fPIC -shared'
19100 ;;
19101
19102 osf3* | osf4* | osf5*)
19103 lt_prog_compiler_wl_F77='-Wl,'
19104 # All OSF/1 code is PIC.
19105 lt_prog_compiler_static_F77='-non_shared'
19106 ;;
19107
19108 rdos*)
19109 lt_prog_compiler_static_F77='-non_shared'
19110 ;;
19111
19112 serenity*)
19113 ;;
19114
19115 solaris*)
19116 lt_prog_compiler_pic_F77='-KPIC'
19117 lt_prog_compiler_static_F77='-Bstatic'
19118 case $cc_basename in
19119 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19120 lt_prog_compiler_wl_F77='-Qoption ld ';;
19121 *)
19122 lt_prog_compiler_wl_F77='-Wl,';;
19123 esac
19124 ;;
19125
19126 sunos4*)
19127 lt_prog_compiler_wl_F77='-Qoption ld '
19128 lt_prog_compiler_pic_F77='-PIC'
19129 lt_prog_compiler_static_F77='-Bstatic'
19130 ;;
19131
19132 sysv4 | sysv4.2uw2* | sysv4.3*)
19133 lt_prog_compiler_wl_F77='-Wl,'
19134 lt_prog_compiler_pic_F77='-KPIC'
19135 lt_prog_compiler_static_F77='-Bstatic'
19136 ;;
19137
19138 sysv4*MP*)
19139 if test -d /usr/nec; then
19140 lt_prog_compiler_pic_F77='-Kconform_pic'
19141 lt_prog_compiler_static_F77='-Bstatic'
19142 fi
19143 ;;
19144
19145 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19146 lt_prog_compiler_wl_F77='-Wl,'
19147 lt_prog_compiler_pic_F77='-KPIC'
19148 lt_prog_compiler_static_F77='-Bstatic'
19149 ;;
19150
19151 unicos*)
19152 lt_prog_compiler_wl_F77='-Wl,'
19153 lt_prog_compiler_can_build_shared_F77=no
19154 ;;
19155
19156 uts4*)
19157 lt_prog_compiler_pic_F77='-pic'
19158 lt_prog_compiler_static_F77='-Bstatic'
19159 ;;
19160
19161 *)
19162 lt_prog_compiler_can_build_shared_F77=no
19163 ;;
19164 esac
19165 fi
19166
19167 case $host_os in
19168 # For platforms that do not support PIC, -DPIC is meaningless:
19169 *djgpp*)
19170 lt_prog_compiler_pic_F77=
19171 ;;
19172 *)
19173 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19174 ;;
19175 esac
19176
19177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19178 printf %s "checking for $compiler option to produce PIC... " >&6; }
19179 if test ${lt_cv_prog_compiler_pic_F77+y}
19180 then :
19181 printf %s "(cached) " >&6
19182 else case e in #(
19183 e) lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 ;;
19184 esac
19185 fi
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
19187 printf "%s\n" "$lt_cv_prog_compiler_pic_F77" >&6; }
19188 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
19189
19190 #
19191 # Check to make sure the PIC flag actually works.
19192 #
19193 if test -n "$lt_prog_compiler_pic_F77"; then
19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19195 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
19196 if test ${lt_cv_prog_compiler_pic_works_F77+y}
19197 then :
19198 printf %s "(cached) " >&6
19199 else case e in #(
19200 e) lt_cv_prog_compiler_pic_works_F77=no
19201 ac_outfile=conftest.$ac_objext
19202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19203 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment
19204 # Insert the option either (1) after the last *FLAGS variable, or
19205 # (2) before a word containing "conftest.", or (3) at the end.
19206 # Note that $ac_compile itself does not contain backslashes and begins
19207 # with a dollar sign (not a hyphen), so the echo should work correctly.
19208 # The option is referenced via a variable to avoid confusing sed.
19209 lt_compile=`echo "$ac_compile" | $SED \
19210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19212 -e 's:$: $lt_compiler_flag:'`
19213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19214 (eval "$lt_compile" 2>conftest.err)
19215 ac_status=$?
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 if (exit $ac_status) && test -s "$ac_outfile"; then
19219 # The compiler can only warn and ignore the option if not recognized
19220 # So say no if there are warnings other than the usual output.
19221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19224 lt_cv_prog_compiler_pic_works_F77=yes
19225 fi
19226 fi
19227 $RM conftest*
19228 ;;
19229 esac
19230 fi
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
19232 printf "%s\n" "$lt_cv_prog_compiler_pic_works_F77" >&6; }
19233
19234 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
19235 case $lt_prog_compiler_pic_F77 in
19236 "" | " "*) ;;
19237 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19238 esac
19239 else
19240 lt_prog_compiler_pic_F77=
19241 lt_prog_compiler_can_build_shared_F77=no
19242 fi
19243
19244 fi
19245
19246
19247
19248
19249
19250 #
19251 # Check to make sure the static flag actually works.
19252 #
19253 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19255 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19256 if test ${lt_cv_prog_compiler_static_works_F77+y}
19257 then :
19258 printf %s "(cached) " >&6
19259 else case e in #(
19260 e) lt_cv_prog_compiler_static_works_F77=no
19261 save_LDFLAGS=$LDFLAGS
19262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19265 # The linker can only warn and ignore the option if not recognized
19266 # So say no if there are warnings
19267 if test -s conftest.err; then
19268 # Append any errors to the config.log.
19269 cat conftest.err 1>&5
19270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19272 if diff conftest.exp conftest.er2 >/dev/null; then
19273 lt_cv_prog_compiler_static_works_F77=yes
19274 fi
19275 else
19276 lt_cv_prog_compiler_static_works_F77=yes
19277 fi
19278 fi
19279 $RM -r conftest*
19280 LDFLAGS=$save_LDFLAGS
19281 ;;
19282 esac
19283 fi
19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
19285 printf "%s\n" "$lt_cv_prog_compiler_static_works_F77" >&6; }
19286
19287 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
19288 :
19289 else
19290 lt_prog_compiler_static_F77=
19291 fi
19292
19293
19294
19295 ='-fPIC'
19296 archive_cmds_F77='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19297 archive_expsym_cmds_F77='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19298 archive_cmds_need_lc_F77=no
19299 no_undefined_flag_F77=
19300 ;;
19301
19302 *)
19303 dynamic_linker=no
19304 ;;
19305 esac
19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19307 printf "%s\n" "$dynamic_linker" >&6; }
19308 test no = "$dynamic_linker" && can_build_shared=no
19309
19310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19311 if test yes = "$GCC"; then
19312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19313 fi
19314
19315 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19316 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19317 fi
19318
19319 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19320 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19321 fi
19322
19323 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19324 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19325
19326 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19327 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19328
19329 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19330 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19372 printf %s "checking how to hardcode library paths into programs... " >&6; }
19373 hardcode_action_F77=
19374 if test -n "$hardcode_libdir_flag_spec_F77" ||
19375 test -n "$runpath_var_F77" ||
19376 test yes = "$hardcode_automatic_F77"; then
19377
19378 # We can hardcode non-existent directories.
19379 if test no != "$hardcode_direct_F77" &&
19380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19381 # have to relink, otherwise we might link with an installed library
19382 # when we should be linking with a yet-to-be-installed one
19383 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
19384 test no != "$hardcode_minus_L_F77"; then
19385 # Linking always hardcodes the temporary library directory.
19386 hardcode_action_F77=relink
19387 else
19388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19389 hardcode_action_F77=immediate
19390 fi
19391 else
19392 # We cannot hardcode anything, or else we can only hardcode existing
19393 # directories.
19394 hardcode_action_F77=unsupported
19395 fi
19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
19397 printf "%s\n" "$hardcode_action_F77" >&6; }
19398
19399 if test relink = "$hardcode_action_F77" ||
19400 test yes = "$inherit_rpath_F77"; then
19401 # Fast installation is not supported
19402 enable_fast_install=no
19403 elif test yes = "$shlibpath_overrides_runpath" ||
19404 test no = "$enable_shared"; then
19405 # Fast installation is not necessary
19406 enable_fast_install=needless
19407 fi
19408
19409
19410
19411
19412
19413
19414
19415 fi # test -n "$compiler"
19416
19417 GCC=$lt_save_GCC
19418 CC=$lt_save_CC
19419 CFLAGS=$lt_save_CFLAGS
19420 fi # test yes != "$_lt_disable_F77"
19421
19422 ac_ext=c
19423 ac_cpp='$CPP $CPPFLAGS'
19424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19427
19428
19429 #AC_CHECK_PROGS(FC, gfortran g95 g77 f77 ifort f95 f90 xlf cf77 gf77 af77 ncf f2c, notfound)
19430 if test "x$F77" != "x" ; then
19431 #FC_BASENAME=`basename $FC`
19432 FC_BASENAME=`basename $F77`
19433 if test "x$FC_BASENAME" = "xf2c" ; then
19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cfitsio: == Adding wrapper support for f2c" >&5
19435 printf "%s\n" "$as_me: cfitsio: == Adding wrapper support for f2c" >&6;}
19436 CFORTRANFLAGS="-Df2cFortran"
19437 fi
19438 else
19439 use_fortran=no
19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cfitsio: == Adding wrapper support for GNU Fortran by default" >&5
19441 printf "%s\n" "$as_me: cfitsio: == Adding wrapper support for GNU Fortran by default" >&6;}
19442 CFORTRANFLAGS="-Dg77Fortran"
19443 fi
19444 #if test "x$GFC" = "xyes" ; then
19445 if test "x$G77" = "xyes" ; then
19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: cfitsio: == Adding wrapper support for GNU Fortran" >&5
19447 printf "%s\n" "$as_me: cfitsio: == Adding wrapper support for GNU Fortran" >&6;}
19448 CFORTRANFLAGS="-Dg77Fortran"
19449 fi
19450 else
19451 CFORTRANFLAGS=
19452 fi
19453 if test x$use_fortran = xno; then
19454 NOFORTRAN_TRUE=
19455 NOFORTRAN_FALSE='#'
19456 else
19457 NOFORTRAN_TRUE='#'
19458 NOFORTRAN_FALSE=
19459 fi
19460
19461
19462 # ar & ranlib required
19463 #---------------------
19464 # Extract the first word of "ar", so it can be a program name with args.
19465 set dummy ar; ac_word=$2
19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19467 printf %s "checking for $ac_word... " >&6; }
19468 if test ${ac_cv_prog_AR+y}
19469 then :
19470 printf %s "(cached) " >&6
19471 else case e in #(
19472 e) if test -n "$AR"; then
19473 ac_cv_prog_AR="$AR" # Let the user override the test.
19474 else
19475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19476 for as_dir in $PATH
19477 do
19478 IFS=$as_save_IFS
19479 case $as_dir in #(((
19480 '') as_dir=./ ;;
19481 */) ;;
19482 *) as_dir=$as_dir/ ;;
19483 esac
19484 for ac_exec_ext in '' $ac_executable_extensions; do
19485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19486 ac_cv_prog_AR="ar"
19487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19488 break 2
19489 fi
19490 done
19491 done
19492 IFS=$as_save_IFS
19493
19494 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="noar"
19495 fi ;;
19496 esac
19497 fi
19498 AR=$ac_cv_prog_AR
19499 if test -n "$AR"; then
19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19501 printf "%s\n" "$AR" >&6; }
19502 else
19503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19504 printf "%s\n" "no" >&6; }
19505 fi
19506
19507
19508 if test $AR = noar; then
19509 as_fn_error $? "ar not found in your \$PATH. See your sysdamin." "$LINENO" 5
19510 fi
19511 ARCHIVE="$AR rv"
19512
19513
19514 for ac_header in stdlib.h string.h math.h limits.h
19515 do :
19516 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
19517 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19518 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19519 then :
19520 cat >>confdefs.h <<_ACEOF
19521 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
19522 _ACEOF
19523 ANSI_HEADER=yes
19524 else case e in #(
19525 e) ANSI_HEADER=no ;;
19526 esac
19527 fi
19528
19529 done
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19532
19533 int
19534 main (void)
19535 {
19536 void d( int , double)
19537 ;
19538 return 0;
19539 }
19540 _ACEOF
19541 if ac_fn_c_try_compile "$LINENO"
19542 then :
19543 PROTO=yes
19544 else case e in #(
19545 e) PROTO=no ;;
19546 esac
19547 fi
19548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19549 if test $ANSI_HEADER = no -o $PROTO = no; then
19550 echo " *********** WARNING: CFITSIO CONFIGURE FAILURE ************ "
19551 echo "cfitsio: ANSI C environment NOT found. Aborting cfitsio configure."
19552 if test $ANSI_HEADER = no; then
19553 echo "cfitsio: You're missing a needed ANSI header file."
19554 fi
19555 if test $PROTO = no; then
19556 echo "cfitsio: Your compiler can't do ANSI function prototypes."
19557 fi
19558 echo "cfitsio: You need an ANSI C compiler and all ANSI trappings"
19559 echo "cfitsio: to build cfitsio. "
19560 echo " ******************************************************* "
19561 exit 0;
19562 fi
19563
19564 if test "x$SSE_FLAGS" != x; then
19565 SAVE_CFLAGS="$CFLAGS"
19566 CFLAGS="$CFLAGS $SSE_FLAGS"
19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $SSE_FLAGS" >&5
19568 printf %s "checking whether $CC accepts $SSE_FLAGS... " >&6; }
19569 ac_ext=c
19570 ac_cpp='$CPP $CPPFLAGS'
19571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19574
19575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576 /* end confdefs.h. */
19577
19578 int
19579 main (void)
19580 {
19581
19582 ;
19583 return 0;
19584 }
19585 _ACEOF
19586 if ac_fn_c_try_compile "$LINENO"
19587 then :
19588 c_has_option=yes
19589 else case e in #(
19590 e) c_has_option=no ;;
19591 esac
19592 fi
19593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_has_option" >&5
19595 printf "%s\n" "$c_has_option" >&6; }
19596 ac_ext=c
19597 ac_cpp='$CPP $CPPFLAGS'
19598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19601
19602 if test "$c_has_option" = no; then SSE_FLAGS=""; fi
19603 CFLAGS="$SAVE_CFLAGS"
19604 fi
19605
19606
19607 CFLAGS="$CFLAGS"
19608 LIBPRE=""
19609
19610 case $host in
19611 *cygwin*)
19612 CFLAGS="$CFLAGS -DHAVE_POSIX_SIGNALS"
19613 ;;
19614 *apple-darwin*)
19615 # For large file support (but may break Absoft compilers):
19616 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
19617
19618 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
19619
19620 ;;
19621 *haiku*)
19622 # For large file support:
19623 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
19624
19625 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
19626
19627 ;;
19628 *hpux*)
19629 if test "x$CFORTRANFLAGS" = x ; then
19630 CFORTRANFLAGS="-Dappendus"
19631 fi
19632 CFLAGS="$CFLAGS -DPG_PPU"
19633 LIBPRE="-Wl,"
19634 ;;
19635 *irix*)
19636 CFLAGS="$CFLAGS -DHAVE_POSIX_SIGNALS"
19637 RANLIB="touch"
19638 ;;
19639 *linux*)
19640 # For large file support:
19641 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
19642
19643 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
19644
19645 ;;
19646 *mingw32*)
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for large file support" >&5
19648 printf %s "checking for large file support... " >&6; }
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19651 #include <stdio.h>
19652 int
19653 main (void)
19654 {
19655 _FILE_OFFSET_BITS_SET_FSEEKO
19656 ;
19657 return 0;
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_compile "$LINENO"
19661 then :
19662
19663 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
19664
19665 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
19666
19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19668 printf "%s\n" "yes" >&6; }
19669
19670 else case e in #(
19671 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19672 printf "%s\n" "no" >&6; } ;;
19673 esac
19674 fi
19675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19676 ;;
19677 *solaris*)
19678 if test "x$CFORTRANFLAGS" = x ; then
19679 CFORTRANFLAGS="-Dsolaris"
19680 fi
19681 # We need libm on Solaris:
19682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
19683 printf %s "checking for frexp in -lm... " >&6; }
19684 if test ${ac_cv_lib_m_frexp+y}
19685 then :
19686 printf %s "(cached) " >&6
19687 else case e in #(
19688 e) ac_check_lib_save_LIBS=$LIBS
19689 LIBS="-lm $LIBS"
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19692
19693 /* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply.
19696 The 'extern "C"' is for builds by C++ compilers;
19697 although this is not generally supported in C code supporting it here
19698 has little cost and some practical benefit (sr 110532). */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 char frexp (void);
19703 int
19704 main (void)
19705 {
19706 return frexp ();
19707 ;
19708 return 0;
19709 }
19710 _ACEOF
19711 if ac_fn_c_try_link "$LINENO"
19712 then :
19713 ac_cv_lib_m_frexp=yes
19714 else case e in #(
19715 e) ac_cv_lib_m_frexp=no ;;
19716 esac
19717 fi
19718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LIBS=$ac_check_lib_save_LIBS ;;
19721 esac
19722 fi
19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5
19724 printf "%s\n" "$ac_cv_lib_m_frexp" >&6; }
19725 if test "x$ac_cv_lib_m_frexp" = xyes
19726 then :
19727 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
19728
19729 LIBS="-lm $LIBS"
19730
19731 fi
19732
19733 # For large file support:
19734 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
19735
19736 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
19737
19738 ;;
19739 *)
19740 echo "cfitsio: == Don't know what do do with $host"
19741 ;;
19742 esac
19743
19744 CFLAGS="$CFLAGS $CFORTRANFLAGS"
19745
19746 case $GCC in
19747 yes)
19748 GCCVERSION="`$CC -dumpversion 2>&1`"
19749 echo "cfitsio: == Using $CC version $GCCVERSION"
19750
19751
19752 gcc_test=`echo $GCCVERSION | grep -c '2\.[45678]'`
19753
19754 if test $gcc_test -gt 0
19755 then
19756
19757 CFLAGS=`echo $CFLAGS | sed 's:-O[^ ]* *::'`
19758
19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This gcc is pretty old. Disabling optimization to be safe." >&5
19760 printf "%s\n" "$as_me: WARNING: This gcc is pretty old. Disabling optimization to be safe." >&2;}
19761 fi
19762 ;;
19763 no)
19764 echo "cfitsio: Old CFLAGS is $CFLAGS"
19765 CFLAGS=`echo $CFLAGS | sed -e "s/-g/-O/"`
19766 case $host in
19767 *solaris*)
19768
19769 if test `echo $CFLAGS | grep -c fast` -gt 0
19770 then
19771 echo "cfitsio: Replacing -fast with -O3"
19772 CFLAGS=`echo $CFLAGS | sed 's:-fast:-O3:'`
19773 fi
19774
19775 CFLAGS="$CFLAGS -DHAVE_ALLOCA_H -DHAVE_POSIX_SIGNALS"
19776 ;;
19777 *)
19778 echo "== No special changes for $host"
19779 ;;
19780 esac
19781 echo "New CFLAGS is $CFLAGS"
19782 ;;
19783 *)
19784 # Don't do anything now
19785 ;;
19786 esac
19787
19788 # Curl library (will be pulled in to the shared CFITSIO library):
19789 # ---------------------------------------------------------------
19790 CURL_INC=""
19791 CURL_LIB=""
19792 CURL_LIB_PATH=""
19793 if test "x$ADD_CURL" = xyes; then
19794 # Use curl-config to get compiler & linker flags, if available.
19795 # (and prefer /usr/bin/curl-config)
19796 # Extract the first word of "curl-config", so it can be a program name with args.
19797 set dummy curl-config; ac_word=$2
19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19799 printf %s "checking for $ac_word... " >&6; }
19800 if test ${ac_cv_path_CURLCONFIG+y}
19801 then :
19802 printf %s "(cached) " >&6
19803 else case e in #(
19804 e) case $CURLCONFIG in
19805 [\\/]* | ?:[\\/]*)
19806 ac_cv_path_CURLCONFIG="$CURLCONFIG" # Let the user override the test with a path.
19807 ;;
19808 *)
19809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19810 for as_dir in /usr/bin$PATH_SEPARATOR$PATH
19811 do
19812 IFS=$as_save_IFS
19813 case $as_dir in #(((
19814 '') as_dir=./ ;;
19815 */) ;;
19816 *) as_dir=$as_dir/ ;;
19817 esac
19818 for ac_exec_ext in '' $ac_executable_extensions; do
19819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19820 ac_cv_path_CURLCONFIG="$as_dir$ac_word$ac_exec_ext"
19821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19822 break 2
19823 fi
19824 done
19825 done
19826 IFS=$as_save_IFS
19827
19828 ;;
19829 esac ;;
19830 esac
19831 fi
19832 CURLCONFIG=$ac_cv_path_CURLCONFIG
19833 if test -n "$CURLCONFIG"; then
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLCONFIG" >&5
19835 printf "%s\n" "$CURLCONFIG" >&6; }
19836 else
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838 printf "%s\n" "no" >&6; }
19839 fi
19840
19841
19842 if test "x$CURLCONFIG" != x; then
19843 CURL_LIB=`$CURLCONFIG --libs`
19844 CURL_INC=`$CURLCONFIG --cflags`
19845 if test "x$CURL_LIB" != x; then
19846 LIBS_CURL="$CURL_LIB"
19847 # Mac OS: For third-party curl-config, acquire an rpath:
19848 if test `echo $host | grep -c apple-darwin` -ne 0 -a `echo $CURL_LIB | grep -c "^-L"` -gt 0; then
19849 CURL_LIB_PATH=`echo ${CURL_LIB} | tr " " "\012" | grep "^-L" | tr "\012" " " | sed 's:-L::' | sed 's: $::'`
19850 if test "x$CURL_LIB_PATH" != x; then
19851 LIBS_CURL="-Wl,-rpath,$CURL_LIB_PATH $CURL_LIB"
19852 fi
19853 fi
19854 if test `echo $host | grep -c cygwin` -ne 0 -o `echo $host | grep -c mingw32` -ne 0; then
19855 LIBS="$CURL_LIB $LIBS"
19856 fi
19857 printf "%s\n" "#define CFITSIO_HAVE_CURL 1" >>confdefs.h
19858
19859 fi
19860 if test "x$CURL_INC" != x; then
19861 CFLAGS="$CURL_INC $CFLAGS"
19862 fi
19863 # No curl-config:
19864 else
19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: curl-config not found. Disabling curl support." >&5
19866 printf "%s\n" "$as_me: WARNING: curl-config not found. Disabling curl support." >&2;}
19867 # Incomplete stubs for possible future use:
19868 # AC_CHECK_LIB([curl],[main],[],
19869 # [AC_MSG_WARN(Not building curl support for CFITSIO)])
19870 # AC_CHECK_HEADER(curl.h,[])
19871 fi
19872 fi
19873
19874
19875 # ZLIB (required):
19876 if test "x$ZLIB_CHECK" = xyes; then
19877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
19878 printf %s "checking for inflateEnd in -lz... " >&6; }
19879 if test ${ac_cv_lib_z_inflateEnd+y}
19880 then :
19881 printf %s "(cached) " >&6
19882 else case e in #(
19883 e) ac_check_lib_save_LIBS=$LIBS
19884 LIBS="-lz $LIBS"
19885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19887
19888 /* Override any GCC internal prototype to avoid an error.
19889 Use char because int might match the return type of a GCC
19890 builtin and then its argument prototype would still apply.
19891 The 'extern "C"' is for builds by C++ compilers;
19892 although this is not generally supported in C code supporting it here
19893 has little cost and some practical benefit (sr 110532). */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 char inflateEnd (void);
19898 int
19899 main (void)
19900 {
19901 return inflateEnd ();
19902 ;
19903 return 0;
19904 }
19905 _ACEOF
19906 if ac_fn_c_try_link "$LINENO"
19907 then :
19908 ac_cv_lib_z_inflateEnd=yes
19909 else case e in #(
19910 e) ac_cv_lib_z_inflateEnd=no ;;
19911 esac
19912 fi
19913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19914 conftest$ac_exeext conftest.$ac_ext
19915 LIBS=$ac_check_lib_save_LIBS ;;
19916 esac
19917 fi
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
19919 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
19920 if test "x$ac_cv_lib_z_inflateEnd" = xyes
19921 then :
19922 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
19923
19924 LIBS="-lz $LIBS"
19925
19926 else case e in #(
19927 e) as_fn_error $? "Unable to locate zlib compression library" "$LINENO" 5 ;;
19928 esac
19929 fi
19930
19931 fi
19932
19933 # GSIFTP flags:
19934 if test "x$GSIFTP_PATH" != x -a "x$GSIFTP_FLAVOUR" != x; then
19935 CFLAGS="$CFLAGS -I${GSIFTP_PATH}/include/${GSIFTP_FLAVOUR}"
19936 LIBS="$LIBS -L${GSIFTP_PATH}/lib -lglobus_ftp_client_${GSIFTP_FLAVOUR}"
19937 fi
19938
19939 # BZIP2 flags:
19940 if test "x$BZIP2_PATH" != x; then
19941 CFLAGS="$CFLAGS -I${BZIP2_PATH}/include"
19942 LIBS="$LIBS -L${BZIP2_PATH}/lib -lbz2"
19943 fi
19944
19945
19946 # ================= test for the unix ftruncate function ================
19947
19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftruncate works" >&5
19949 printf %s "checking whether ftruncate works... " >&6; }
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19952 #include <unistd.h>
19953
19954 int
19955 main (void)
19956 {
19957
19958 ftruncate(0, 0);
19959
19960 ;
19961 return 0;
19962 }
19963 _ACEOF
19964 if ac_fn_c_try_link "$LINENO"
19965 then :
19966
19967 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
19968
19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19970 printf "%s\n" "yes" >&6; }
19971
19972 else case e in #(
19973 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974 printf "%s\n" "no" >&6; } ;;
19975 esac
19976 fi
19977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19978 conftest$ac_exeext conftest.$ac_ext
19979
19980 # ---------------------------------------------------------
19981 # some systems define long long for 64-bit ints
19982 # ---------------------------------------------------------
19983
19984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long long is defined" >&5
19985 printf %s "checking whether long long is defined... " >&6; }
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19988 #include <stdlib.h>
19989
19990 int
19991 main (void)
19992 {
19993
19994 long long filler;
19995
19996 ;
19997 return 0;
19998 }
19999 _ACEOF
20000 if ac_fn_c_try_compile "$LINENO"
20001 then :
20002
20003 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
20004
20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20006 printf "%s\n" "yes" >&6; }
20007
20008 else case e in #(
20009 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20010 printf "%s\n" "no" >&6; } ;;
20011 esac
20012 fi
20013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20014
20015 # ==================== SHARED MEMORY DRIVER SECTION =======================
20016 #
20017 # 09-Mar-98 : modified by JB/ISDC
20018 # 3 checks added to support autoconfiguration of shared memory
20019 # driver. First generic check is made whether shared memory is supported
20020 # at all, then 2 more specific checks are made (architecture dependent).
20021 # Currently tested on : sparc-solaris, intel-linux, sgi-irix, dec-alpha-osf
20022
20023 # -------------------------------------------------------------------------
20024 # check is System V IPC is supported on this machine
20025 # -------------------------------------------------------------------------
20026
20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system V style IPC services are supported" >&5
20028 printf %s "checking whether system V style IPC services are supported... " >&6; }
20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h. */
20031 #include <sys/ipc.h>
20032 #include <sys/shm.h>
20033 #include <sys/sem.h>
20034
20035 int
20036 main (void)
20037 {
20038
20039 shmat(0, 0, 0);
20040 shmdt(0);
20041 shmget(0, 0, 0);
20042 semget(0, 0, 0);
20043
20044 ;
20045 return 0;
20046 }
20047 _ACEOF
20048 if ac_fn_c_try_link "$LINENO"
20049 then :
20050
20051 printf "%s\n" "#define HAVE_SHMEM_SERVICES 1" >>confdefs.h
20052
20053 my_shmem=\${SOURCES_SHMEM}
20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20055 printf "%s\n" "yes" >&6; }
20056
20057 else case e in #(
20058 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059 printf "%s\n" "no" >&6; } ;;
20060 esac
20061 fi
20062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20063 conftest$ac_exeext conftest.$ac_ext
20064
20065
20066
20067 # -------------------------------------------------------------------------
20068 # some systems define flock_t, for others we have to define it ourselves
20069 # -------------------------------------------------------------------------
20070
20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether flock_t is defined in sys/fcntl.h" >&5
20072 printf %s "checking whether flock_t is defined in sys/fcntl.h... " >&6; }
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h. */
20075 #include <sys/fcntl.h>
20076
20077 int
20078 main (void)
20079 {
20080
20081 flock_t filler;
20082
20083 ;
20084 return 0;
20085 }
20086 _ACEOF
20087 if ac_fn_c_try_compile "$LINENO"
20088 then :
20089
20090 printf "%s\n" "#define HAVE_FLOCK_T 1" >>confdefs.h
20091
20092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20093 printf "%s\n" "yes" >&6; }
20094
20095 else case e in #(
20096 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20097 printf "%s\n" "no" >&6; } ;;
20098 esac
20099 fi
20100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20101
20102 if test "$HAVE_FLOCK_T" != 1; then
20103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether flock_t is defined in sys/flock.h" >&5
20104 printf %s "checking whether flock_t is defined in sys/flock.h... " >&6; }
20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20107 #include <sys/flock.h>
20108
20109 int
20110 main (void)
20111 {
20112
20113 flock_t filler;
20114
20115 ;
20116 return 0;
20117 }
20118 _ACEOF
20119 if ac_fn_c_try_compile "$LINENO"
20120 then :
20121
20122 printf "%s\n" "#define HAVE_FLOCK_T 1" >>confdefs.h
20123
20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20125 printf "%s\n" "yes" >&6; }
20126
20127 else case e in #(
20128 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20129 printf "%s\n" "no" >&6; } ;;
20130 esac
20131 fi
20132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20133 fi
20134
20135 # ------------------------------------------------------------------------------
20136 # Define _REENTRANT & add -lpthread to LIBS if reentrant multithreading enabled:
20137 # ------------------------------------------------------------------------------
20138 if test "x$BUILD_REENTRANT" = xyes; then
20139 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
20140
20141 printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h
20142
20143 # Additional definition needed to get 'union semun' when using
20144 # _XOPEN_SOURCE on a Mac:
20145 if test "x$EXT" = xdarwin; then
20146 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
20147
20148 fi
20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20150 printf %s "checking for main in -lpthread... " >&6; }
20151 if test ${ac_cv_lib_pthread_main+y}
20152 then :
20153 printf %s "(cached) " >&6
20154 else case e in #(
20155 e) ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lpthread $LIBS"
20157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20158 /* end confdefs.h. */
20159
20160
20161 int
20162 main (void)
20163 {
20164 return main ();
20165 ;
20166 return 0;
20167 }
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"
20170 then :
20171 ac_cv_lib_pthread_main=yes
20172 else case e in #(
20173 e) ac_cv_lib_pthread_main=no ;;
20174 esac
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20177 conftest$ac_exeext conftest.$ac_ext
20178 LIBS=$ac_check_lib_save_LIBS ;;
20179 esac
20180 fi
20181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20182 printf "%s\n" "$ac_cv_lib_pthread_main" >&6; }
20183 if test "x$ac_cv_lib_pthread_main" = xyes
20184 then :
20185 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
20186
20187 LIBS="-lpthread $LIBS"
20188
20189 else case e in #(
20190 e) as_fn_error $? "Unable to locate pthread library needed when enabling reentrant multithreading" "$LINENO" 5 ;;
20191 esac
20192 fi
20193
20194 fi
20195
20196 # -------------------------------------------------------------------------
20197 # there are some idiosyncrasies with semun defs (used in semxxx). Solaris
20198 # does not define it at all
20199 # -------------------------------------------------------------------------
20200
20201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether union semun is defined" >&5
20202 printf %s "checking whether union semun is defined... " >&6; }
20203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20204 /* end confdefs.h. */
20205 #include <sys/ipc.h>
20206 #include <sys/shm.h>
20207 #include <sys/sem.h>
20208
20209 int
20210 main (void)
20211 {
20212
20213 union semun filler;
20214
20215 ;
20216 return 0;
20217 }
20218 _ACEOF
20219 if ac_fn_c_try_compile "$LINENO"
20220 then :
20221
20222 printf "%s\n" "#define HAVE_UNION_SEMUN 1" >>confdefs.h
20223
20224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20225 printf "%s\n" "yes" >&6; }
20226
20227 else case e in #(
20228 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20229 printf "%s\n" "no" >&6; } ;;
20230 esac
20231 fi
20232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20233
20234 # -------------------------------------------------------------------------
20235 # fmemopen is not available on e.g. older Macs:
20236 # -------------------------------------------------------------------------
20237
20238 ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen"
20239 if test "x$ac_cv_func_fmemopen" = xyes
20240 then :
20241 printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h
20242
20243 else case e in #(
20244 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling support for compressed files via FTPS" >&5
20245 printf "%s\n" "$as_me: WARNING: Disabling support for compressed files via FTPS" >&2;} ;;
20246 esac
20247 fi
20248
20249
20250 # ==================== END OF SHARED MEMORY DRIVER SECTION ================
20251 # ================= test for the unix networking functions ================
20252
20253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20254 printf %s "checking for library containing gethostbyname... " >&6; }
20255 if test ${ac_cv_search_gethostbyname+y}
20256 then :
20257 printf %s "(cached) " >&6
20258 else case e in #(
20259 e) ac_func_search_save_LIBS=$LIBS
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20262
20263 /* Override any GCC internal prototype to avoid an error.
20264 Use char because int might match the return type of a GCC
20265 builtin and then its argument prototype would still apply.
20266 The 'extern "C"' is for builds by C++ compilers;
20267 although this is not generally supported in C code supporting it here
20268 has little cost and some practical benefit (sr 110532). */
20269 #ifdef __cplusplus
20270 extern "C"
20271 #endif
20272 char gethostbyname (void);
20273 int
20274 main (void)
20275 {
20276 return gethostbyname ();
20277 ;
20278 return 0;
20279 }
20280 _ACEOF
20281 for ac_lib in '' nsl network
20282 do
20283 if test -z "$ac_lib"; then
20284 ac_res="none required"
20285 else
20286 ac_res=-l$ac_lib
20287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20288 fi
20289 if ac_fn_c_try_link "$LINENO"
20290 then :
20291 ac_cv_search_gethostbyname=$ac_res
20292 fi
20293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20294 conftest$ac_exeext
20295 if test ${ac_cv_search_gethostbyname+y}
20296 then :
20297 break
20298 fi
20299 done
20300 if test ${ac_cv_search_gethostbyname+y}
20301 then :
20302
20303 else case e in #(
20304 e) ac_cv_search_gethostbyname=no ;;
20305 esac
20306 fi
20307 rm conftest.$ac_ext
20308 LIBS=$ac_func_search_save_LIBS ;;
20309 esac
20310 fi
20311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20312 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
20313 ac_res=$ac_cv_search_gethostbyname
20314 if test "$ac_res" != no
20315 then :
20316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20317 cfitsio_have_nsl=1
20318 else case e in #(
20319 e) cfitsio_have_nsl=0 ;;
20320 esac
20321 fi
20322
20323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
20324 printf %s "checking for library containing connect... " >&6; }
20325 if test ${ac_cv_search_connect+y}
20326 then :
20327 printf %s "(cached) " >&6
20328 else case e in #(
20329 e) ac_func_search_save_LIBS=$LIBS
20330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h. */
20332
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply.
20336 The 'extern "C"' is for builds by C++ compilers;
20337 although this is not generally supported in C code supporting it here
20338 has little cost and some practical benefit (sr 110532). */
20339 #ifdef __cplusplus
20340 extern "C"
20341 #endif
20342 char connect (void);
20343 int
20344 main (void)
20345 {
20346 return connect ();
20347 ;
20348 return 0;
20349 }
20350 _ACEOF
20351 for ac_lib in '' socket network
20352 do
20353 if test -z "$ac_lib"; then
20354 ac_res="none required"
20355 else
20356 ac_res=-l$ac_lib
20357 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
20358 fi
20359 if ac_fn_c_try_link "$LINENO"
20360 then :
20361 ac_cv_search_connect=$ac_res
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20364 conftest$ac_exeext
20365 if test ${ac_cv_search_connect+y}
20366 then :
20367 break
20368 fi
20369 done
20370 if test ${ac_cv_search_connect+y}
20371 then :
20372
20373 else case e in #(
20374 e) ac_cv_search_connect=no ;;
20375 esac
20376 fi
20377 rm conftest.$ac_ext
20378 LIBS=$ac_func_search_save_LIBS ;;
20379 esac
20380 fi
20381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
20382 printf "%s\n" "$ac_cv_search_connect" >&6; }
20383 ac_res=$ac_cv_search_connect
20384 if test "$ac_res" != no
20385 then :
20386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20387 cfitsio_have_socket=1
20388 else case e in #(
20389 e) cfitsio_have_socket=0 ;;
20390 esac
20391 fi
20392
20393
20394 if test "$cfitsio_have_nsl" = 1 -a "$cfitsio_have_socket" = 1; then
20395 printf "%s\n" "#define HAVE_NET_SERVICES 1" >>confdefs.h
20396
20397 fi
20398
20399 # ==================== END OF unix networking SECTION ================
20400
20401 ac_config_files="$ac_config_files Makefile"
20402
20403 cat >confcache <<\_ACEOF
20404 # This file is a shell script that caches the results of configure
20405 # tests run on this system so they can be shared between configure
20406 # scripts and configure runs, see configure's option --config-cache.
20407 # It is not useful on other systems. If it contains results you don't
20408 # want to keep, you may remove or edit it.
20409 #
20410 # config.status only pays attention to the cache file if you give it
20411 # the --recheck option to rerun configure.
20412 #
20413 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20414 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20415 # following values.
20416
20417 _ACEOF
20418
20419 # The following way of writing the cache mishandles newlines in values,
20420 # but we know of no workaround that is simple, portable, and efficient.
20421 # So, we kill variables containing newlines.
20422 # Ultrix sh set writes to stderr and can't be redirected directly,
20423 # and sets the high bit in the cache file unless we assign to the vars.
20424 (
20425 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20426 eval ac_val=\$$ac_var
20427 case $ac_val in #(
20428 *${as_nl}*)
20429 case $ac_var in #(
20430 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20431 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20432 esac
20433 case $ac_var in #(
20434 _ | IFS | as_nl) ;; #(
20435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20436 *) { eval $ac_var=; unset $ac_var;} ;;
20437 esac ;;
20438 esac
20439 done
20440
20441 (set) 2>&1 |
20442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20443 *${as_nl}ac_space=\ *)
20444 # 'set' does not quote correctly, so add quotes: double-quote
20445 # substitution turns \\\\ into \\, and sed turns \\ into \.
20446 sed -n \
20447 "s/'/'\\\\''/g;
20448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20449 ;; #(
20450 *)
20451 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20453 ;;
20454 esac |
20455 sort
20456 ) |
20457 sed '
20458 /^ac_cv_env_/b end
20459 t clear
20460 :clear
20461 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20462 t end
20463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20464 :end' >>confcache
20465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20466 if test -w "$cache_file"; then
20467 if test "x$cache_file" != "x/dev/null"; then
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20469 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20470 if test ! -f "$cache_file" || test -h "$cache_file"; then
20471 cat confcache >"$cache_file"
20472 else
20473 case $cache_file in #(
20474 */* | ?:*)
20475 mv -f confcache "$cache_file"$$ &&
20476 mv -f "$cache_file"$$ "$cache_file" ;; #(
20477 *)
20478 mv -f confcache "$cache_file" ;;
20479 esac
20480 fi
20481 fi
20482 else
20483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20484 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20485 fi
20486 fi
20487 rm -f confcache
20488
20489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20490 # Let make expand exec_prefix.
20491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20492
20493 # Transform confdefs.h into DEFS.
20494 # Protect against shell expansion while executing Makefile rules.
20495 # Protect against Makefile macro expansion.
20496 #
20497 # If the first sed substitution is executed (which looks for macros that
20498 # take arguments), then branch to the quote section. Otherwise,
20499 # look for a macro that doesn't take arguments.
20500 ac_script='
20501 :mline
20502 /\\$/{
20503 N
20504 s,\\\n,,
20505 b mline
20506 }
20507 t clear
20508 :clear
20509 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20510 t quote
20511 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20512 t quote
20513 b any
20514 :quote
20515 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20516 s/\$/$$/g
20517 H
20518 :any
20519 ${
20520 g
20521 s/^\n//
20522 s/\n/ /g
20523 p
20524 }
20525 '
20526 DEFS=`sed -n "$ac_script" confdefs.h`
20527
20528
20529 ac_libobjs=
20530 ac_ltlibobjs=
20531 U=
20532 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20533 # 1. Remove the extension, and $U if already installed.
20534 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20535 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20536 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20537 # will be set to the directory where LIBOBJS objects are built.
20538 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20539 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20540 done
20541 LIBOBJS=$ac_libobjs
20542
20543 LTLIBOBJS=$ac_ltlibobjs
20544
20545
20546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20547 printf %s "checking that generated files are newer than configure... " >&6; }
20548 if test -n "$am_sleep_pid"; then
20549 # Hide warnings about reused PIDs.
20550 wait $am_sleep_pid 2>/dev/null
20551 fi
20552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20553 printf "%s\n" "done" >&6; }
20554 case $enable_silent_rules in # (((
20555 yes) AM_DEFAULT_VERBOSITY=0;;
20556 no) AM_DEFAULT_VERBOSITY=1;;
20557 esac
20558 if test $am_cv_make_support_nested_variables = yes; then
20559 AM_V='$(V)'
20560 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20561 else
20562 AM_V=$AM_DEFAULT_VERBOSITY
20563 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20564 fi
20565
20566 if test -n "$EXEEXT"; then
20567 am__EXEEXT_TRUE=
20568 am__EXEEXT_FALSE='#'
20569 else
20570 am__EXEEXT_TRUE='#'
20571 am__EXEEXT_FALSE=
20572 fi
20573
20574 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20575 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20577 fi
20578 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20579 as_fn_error $? "conditional \"AMDEP\" was never defined.
20580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20581 fi
20582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20583 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20585 fi
20586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20589 fi
20590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20591 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20593 fi
20594 if test -z "${NOGSIFTP_TRUE}" && test -z "${NOGSIFTP_FALSE}"; then
20595 as_fn_error $? "conditional \"NOGSIFTP\" was never defined.
20596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20597 fi
20598 if test -z "${NOFORTRAN_TRUE}" && test -z "${NOFORTRAN_FALSE}"; then
20599 as_fn_error $? "conditional \"NOFORTRAN\" was never defined.
20600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20601 fi
20602
20603 : "${CONFIG_STATUS=./config.status}"
20604 ac_write_fail=0
20605 ac_clean_files_save=$ac_clean_files
20606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20608 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20609 as_write_fail=0
20610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20611 #! $SHELL
20612 # Generated by $as_me.
20613 # Run this file to recreate the current configuration.
20614 # Compiler output produced by configure, useful for debugging
20615 # configure, is in config.log if it exists.
20616
20617 debug=false
20618 ac_cs_recheck=false
20619 ac_cs_silent=false
20620
20621 SHELL=\${CONFIG_SHELL-$SHELL}
20622 export SHELL
20623 _ASEOF
20624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20625 ## -------------------- ##
20626 ## M4sh Initialization. ##
20627 ## -------------------- ##
20628
20629 # Be more Bourne compatible
20630 DUALCASE=1; export DUALCASE # for MKS sh
20631 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20632 then :
20633 emulate sh
20634 NULLCMD=:
20635 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20636 # is contrary to our usage. Disable this feature.
20637 alias -g '${1+"$@"}'='"$@"'
20638 setopt NO_GLOB_SUBST
20639 else case e in #(
20640 e) case `(set -o) 2>/dev/null` in #(
20641 *posix*) :
20642 set -o posix ;; #(
20643 *) :
20644 ;;
20645 esac ;;
20646 esac
20647 fi
20648
20649
20650
20651 # Reset variables that may have inherited troublesome values from
20652 # the environment.
20653
20654 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20655 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20656 # side effect of setting IFS to empty, thus disabling word splitting.)
20657 # Quoting is to prevent editors from complaining about space-tab.
20658 as_nl='
20659 '
20660 export as_nl
20661 IFS=" "" $as_nl"
20662
20663 PS1='$ '
20664 PS2='> '
20665 PS4='+ '
20666
20667 # Ensure predictable behavior from utilities with locale-dependent output.
20668 LC_ALL=C
20669 export LC_ALL
20670 LANGUAGE=C
20671 export LANGUAGE
20672
20673 # We cannot yet rely on "unset" to work, but we need these variables
20674 # to be unset--not just set to an empty or harmless value--now, to
20675 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20676 # also avoids known problems related to "unset" and subshell syntax
20677 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20678 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20679 do eval test \${$as_var+y} \
20680 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20681 done
20682
20683 # Ensure that fds 0, 1, and 2 are open.
20684 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20685 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20686 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20687
20688 # The user is always right.
20689 if ${PATH_SEPARATOR+false} :; then
20690 PATH_SEPARATOR=:
20691 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20692 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20693 PATH_SEPARATOR=';'
20694 }
20695 fi
20696
20697
20698 # Find who we are. Look in the path if we contain no directory separator.
20699 as_myself=
20700 case $0 in #((
20701 *[\\/]* ) as_myself=$0 ;;
20702 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20703 for as_dir in $PATH
20704 do
20705 IFS=$as_save_IFS
20706 case $as_dir in #(((
20707 '') as_dir=./ ;;
20708 */) ;;
20709 *) as_dir=$as_dir/ ;;
20710 esac
20711 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20712 done
20713 IFS=$as_save_IFS
20714
20715 ;;
20716 esac
20717 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20718 # in which case we are not to be found in the path.
20719 if test "x$as_myself" = x; then
20720 as_myself=$0
20721 fi
20722 if test ! -f "$as_myself"; then
20723 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20724 exit 1
20725 fi
20726
20727
20728
20729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20730 # ----------------------------------------
20731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20733 # script with STATUS, using 1 if that was 0.
20734 as_fn_error ()
20735 {
20736 as_status=$1; test $as_status -eq 0 && as_status=1
20737 if test "$4"; then
20738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20740 fi
20741 printf "%s\n" "$as_me: error: $2" >&2
20742 as_fn_exit $as_status
20743 } # as_fn_error
20744
20745
20746 # as_fn_set_status STATUS
20747 # -----------------------
20748 # Set $? to STATUS, without forking.
20749 as_fn_set_status ()
20750 {
20751 return $1
20752 } # as_fn_set_status
20753
20754 # as_fn_exit STATUS
20755 # -----------------
20756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20757 as_fn_exit ()
20758 {
20759 set +e
20760 as_fn_set_status $1
20761 exit $1
20762 } # as_fn_exit
20763
20764 # as_fn_unset VAR
20765 # ---------------
20766 # Portably unset VAR.
20767 as_fn_unset ()
20768 {
20769 { eval $1=; unset $1;}
20770 }
20771 as_unset=as_fn_unset
20772
20773 # as_fn_append VAR VALUE
20774 # ----------------------
20775 # Append the text in VALUE to the end of the definition contained in VAR. Take
20776 # advantage of any shell optimizations that allow amortized linear growth over
20777 # repeated appends, instead of the typical quadratic growth present in naive
20778 # implementations.
20779 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20780 then :
20781 eval 'as_fn_append ()
20782 {
20783 eval $1+=\$2
20784 }'
20785 else case e in #(
20786 e) as_fn_append ()
20787 {
20788 eval $1=\$$1\$2
20789 } ;;
20790 esac
20791 fi # as_fn_append
20792
20793 # as_fn_arith ARG...
20794 # ------------------
20795 # Perform arithmetic evaluation on the ARGs, and store the result in the
20796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20797 # must be portable across $(()) and expr.
20798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20799 then :
20800 eval 'as_fn_arith ()
20801 {
20802 as_val=$(( $* ))
20803 }'
20804 else case e in #(
20805 e) as_fn_arith ()
20806 {
20807 as_val=`expr "$@" || test $? -eq 1`
20808 } ;;
20809 esac
20810 fi # as_fn_arith
20811
20812
20813 if expr a : '\(a\)' >/dev/null 2>&1 &&
20814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20815 as_expr=expr
20816 else
20817 as_expr=false
20818 fi
20819
20820 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20821 as_basename=basename
20822 else
20823 as_basename=false
20824 fi
20825
20826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20827 as_dirname=dirname
20828 else
20829 as_dirname=false
20830 fi
20831
20832 as_me=`$as_basename -- "$0" ||
20833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20834 X"$0" : 'X\(//\)$' \| \
20835 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20836 printf "%s\n" X/"$0" |
20837 sed '/^.*\/\([^/][^/]*\)\/*$/{
20838 s//\1/
20839 q
20840 }
20841 /^X\/\(\/\/\)$/{
20842 s//\1/
20843 q
20844 }
20845 /^X\/\(\/\).*/{
20846 s//\1/
20847 q
20848 }
20849 s/.*/./; q'`
20850
20851 # Avoid depending upon Character Ranges.
20852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20855 as_cr_digits='0123456789'
20856 as_cr_alnum=$as_cr_Letters$as_cr_digits
20857
20858
20859 # Determine whether it's possible to make 'echo' print without a newline.
20860 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20861 # for compatibility with existing Makefiles.
20862 ECHO_C= ECHO_N= ECHO_T=
20863 case `echo -n x` in #(((((
20864 -n*)
20865 case `echo 'xy\c'` in
20866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20867 xy) ECHO_C='\c';;
20868 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20869 ECHO_T=' ';;
20870 esac;;
20871 *)
20872 ECHO_N='-n';;
20873 esac
20874
20875 # For backward compatibility with old third-party macros, we provide
20876 # the shell variables $as_echo and $as_echo_n. New code should use
20877 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20878 as_echo='printf %s\n'
20879 as_echo_n='printf %s'
20880
20881 rm -f conf$$ conf$$.exe conf$$.file
20882 if test -d conf$$.dir; then
20883 rm -f conf$$.dir/conf$$.file
20884 else
20885 rm -f conf$$.dir
20886 mkdir conf$$.dir 2>/dev/null
20887 fi
20888 if (echo >conf$$.file) 2>/dev/null; then
20889 if ln -s conf$$.file conf$$ 2>/dev/null; then
20890 as_ln_s='ln -s'
20891 # ... but there are two gotchas:
20892 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20893 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20894 # In both cases, we have to default to 'cp -pR'.
20895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20896 as_ln_s='cp -pR'
20897 elif ln conf$$.file conf$$ 2>/dev/null; then
20898 as_ln_s=ln
20899 else
20900 as_ln_s='cp -pR'
20901 fi
20902 else
20903 as_ln_s='cp -pR'
20904 fi
20905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20906 rmdir conf$$.dir 2>/dev/null
20907
20908
20909 # as_fn_mkdir_p
20910 # -------------
20911 # Create "$as_dir" as a directory, including parents if necessary.
20912 as_fn_mkdir_p ()
20913 {
20914
20915 case $as_dir in #(
20916 -*) as_dir=./$as_dir;;
20917 esac
20918 test -d "$as_dir" || eval $as_mkdir_p || {
20919 as_dirs=
20920 while :; do
20921 case $as_dir in #(
20922 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20923 *) as_qdir=$as_dir;;
20924 esac
20925 as_dirs="'$as_qdir' $as_dirs"
20926 as_dir=`$as_dirname -- "$as_dir" ||
20927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20928 X"$as_dir" : 'X\(//\)[^/]' \| \
20929 X"$as_dir" : 'X\(//\)$' \| \
20930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20931 printf "%s\n" X"$as_dir" |
20932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20933 s//\1/
20934 q
20935 }
20936 /^X\(\/\/\)[^/].*/{
20937 s//\1/
20938 q
20939 }
20940 /^X\(\/\/\)$/{
20941 s//\1/
20942 q
20943 }
20944 /^X\(\/\).*/{
20945 s//\1/
20946 q
20947 }
20948 s/.*/./; q'`
20949 test -d "$as_dir" && break
20950 done
20951 test -z "$as_dirs" || eval "mkdir $as_dirs"
20952 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20953
20954
20955 } # as_fn_mkdir_p
20956 if mkdir -p . 2>/dev/null; then
20957 as_mkdir_p='mkdir -p "$as_dir"'
20958 else
20959 test -d ./-p && rmdir ./-p
20960 as_mkdir_p=false
20961 fi
20962
20963
20964 # as_fn_executable_p FILE
20965 # -----------------------
20966 # Test if FILE is an executable regular file.
20967 as_fn_executable_p ()
20968 {
20969 test -f "$1" && test -x "$1"
20970 } # as_fn_executable_p
20971 as_test_x='test -x'
20972 as_executable_p=as_fn_executable_p
20973
20974 # Sed expression to map a string onto a valid CPP name.
20975 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20976 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20977
20978 # Sed expression to map a string onto a valid variable name.
20979 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20980 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20981
20982
20983 exec 6>&1
20984 ## ----------------------------------- ##
20985 ## Main body of $CONFIG_STATUS script. ##
20986 ## ----------------------------------- ##
20987 _ASEOF
20988 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20989
20990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20991 # Save the log message, to keep $0 and so on meaningful, and to
20992 # report actual input values of CONFIG_FILES etc. instead of their
20993 # values after options handling.
20994 ac_log="
20995 This file was extended by cfitsio $as_me 4.6.3, which was
20996 generated by GNU Autoconf 2.72. Invocation command line was
20997
20998 CONFIG_FILES = $CONFIG_FILES
20999 CONFIG_HEADERS = $CONFIG_HEADERS
21000 CONFIG_LINKS = $CONFIG_LINKS
21001 CONFIG_COMMANDS = $CONFIG_COMMANDS
21002 $ $0 $@
21003
21004 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21005 "
21006
21007 _ACEOF
21008
21009 case $ac_config_files in *"
21010 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21011 esac
21012
21013
21014
21015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21016 # Files that config.status was made for.
21017 config_files="$ac_config_files"
21018 config_commands="$ac_config_commands"
21019
21020 _ACEOF
21021
21022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21023 ac_cs_usage="\
21024 '$as_me' instantiates files and other configuration actions
21025 from templates according to the current configuration. Unless the files
21026 and actions are specified as TAGs, all are instantiated by default.
21027
21028 Usage: $0 [OPTION]... [TAG]...
21029
21030 -h, --help print this help, then exit
21031 -V, --version print version number and configuration settings, then exit
21032 --config print configuration, then exit
21033 -q, --quiet, --silent
21034 do not print progress messages
21035 -d, --debug don't remove temporary files
21036 --recheck update $as_me by reconfiguring in the same conditions
21037 --file=FILE[:TEMPLATE]
21038 instantiate the configuration file FILE
21039
21040 Configuration files:
21041 $config_files
21042
21043 Configuration commands:
21044 $config_commands
21045
21046 Report bugs to the package provider."
21047
21048 _ACEOF
21049 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21050 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21052 ac_cs_config='$ac_cs_config_escaped'
21053 ac_cs_version="\\
21054 cfitsio config.status 4.6.3
21055 configured by $0, generated by GNU Autoconf 2.72,
21056 with options \\"\$ac_cs_config\\"
21057
21058 Copyright (C) 2023 Free Software Foundation, Inc.
21059 This config.status script is free software; the Free Software Foundation
21060 gives unlimited permission to copy, distribute and modify it."
21061
21062 ac_pwd='$ac_pwd'
21063 srcdir='$srcdir'
21064 INSTALL='$INSTALL'
21065 MKDIR_P='$MKDIR_P'
21066 AWK='$AWK'
21067 test -n "\$AWK" || AWK=awk
21068 _ACEOF
21069
21070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071 # The default lists apply if the user does not specify any file.
21072 ac_need_defaults=:
21073 while test $# != 0
21074 do
21075 case $1 in
21076 --*=?*)
21077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21079 ac_shift=:
21080 ;;
21081 --*=)
21082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21083 ac_optarg=
21084 ac_shift=:
21085 ;;
21086 *)
21087 ac_option=$1
21088 ac_optarg=$2
21089 ac_shift=shift
21090 ;;
21091 esac
21092
21093 case $ac_option in
21094 # Handling of the options.
21095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21096 ac_cs_recheck=: ;;
21097 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21098 printf "%s\n" "$ac_cs_version"; exit ;;
21099 --config | --confi | --conf | --con | --co | --c )
21100 printf "%s\n" "$ac_cs_config"; exit ;;
21101 --debug | --debu | --deb | --de | --d | -d )
21102 debug=: ;;
21103 --file | --fil | --fi | --f )
21104 $ac_shift
21105 case $ac_optarg in
21106 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21107 '') as_fn_error $? "missing file argument" ;;
21108 esac
21109 as_fn_append CONFIG_FILES " '$ac_optarg'"
21110 ac_need_defaults=false;;
21111 --he | --h | --help | --hel | -h )
21112 printf "%s\n" "$ac_cs_usage"; exit ;;
21113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21115 ac_cs_silent=: ;;
21116
21117 # This is an error.
21118 -*) as_fn_error $? "unrecognized option: '$1'
21119 Try '$0 --help' for more information." ;;
21120
21121 *) as_fn_append ac_config_targets " $1"
21122 ac_need_defaults=false ;;
21123
21124 esac
21125 shift
21126 done
21127
21128 ac_configure_extra_args=
21129
21130 if $ac_cs_silent; then
21131 exec 6>/dev/null
21132 ac_configure_extra_args="$ac_configure_extra_args --silent"
21133 fi
21134
21135 _ACEOF
21136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21137 if \$ac_cs_recheck; then
21138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21139 shift
21140 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21141 CONFIG_SHELL='$SHELL'
21142 export CONFIG_SHELL
21143 exec "\$@"
21144 fi
21145
21146 _ACEOF
21147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21148 exec 5>>config.log
21149 {
21150 echo
21151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21152 ## Running $as_me. ##
21153 _ASBOX
21154 printf "%s\n" "$ac_log"
21155 } >&5
21156
21157 _ACEOF
21158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21159 #
21160 # INIT-COMMANDS
21161 #
21162 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21163
21164
21165 # The HP-UX ksh and POSIX shell print the target directory to stdout
21166 # if CDPATH is set.
21167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21168
21169 sed_quote_subst='$sed_quote_subst'
21170 double_quote_subst='$double_quote_subst'
21171 delay_variable_subst='$delay_variable_subst'
21172 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21173 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21174 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21175 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21176 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21177 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21178 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21179 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21180 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21181 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21182 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21183 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21184 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21185 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21186 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21187 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21188 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21189 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21190 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21191 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21192 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21193 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21194 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21195 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21196 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21197 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21198 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21199 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21200 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21201 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21202 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21203 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21204 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21205 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21206 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21207 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21208 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21209 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21210 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21211 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21212 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21213 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21214 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21215 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21216 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21217 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21218 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21219 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21220 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21221 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21222 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21223 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21224 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21225 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21226 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21227 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21228 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21229 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21230 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21231 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21232 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21233 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21234 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21235 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21236 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21237 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21238 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21239 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21240 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21241 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21242 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21243 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21244 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21245 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21246 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21247 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21248 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21249 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21250 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21251 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21252 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21253 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21254 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21255 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21256 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21257 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21258 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21259 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21260 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21261 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21262 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21263 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21264 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21265 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21266 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21267 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21268 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21269 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21270 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21271 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21272 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21273 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21274 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21275 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21276 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21277 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21278 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21279 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21280 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21281 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21282 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21283 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21284 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21285 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21286 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21287 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21288 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21289 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21290 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21291 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21292 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21293 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21294 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21295 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21296 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21297 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21298 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21299 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21300 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21301 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21302 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21303 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21304 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21305 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21306 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21307 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21308 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21309 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
21310 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
21311 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
21312 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
21313 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
21314 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
21315 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
21316 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
21317 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
21318 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
21319 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
21320 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
21321 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
21322 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
21323 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
21324 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
21325 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
21326 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
21327 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
21328 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
21329 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
21330 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
21331 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
21332 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
21333 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
21334 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
21335 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
21336 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
21337 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
21338 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
21339 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
21340 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
21341 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
21342 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
21343 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
21344 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
21345 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
21346 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
21347 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
21348 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
21349 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
21350 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
21351
21352 LTCC='$LTCC'
21353 LTCFLAGS='$LTCFLAGS'
21354 compiler='$compiler_DEFAULT'
21355
21356 # A function that is used when there is no print builtin or printf.
21357 func_fallback_echo ()
21358 {
21359 eval 'cat <<_LTECHO_EOF
21360 \$1
21361 _LTECHO_EOF'
21362 }
21363
21364 # Quote evaled strings.
21365 for var in SHELL \
21366 ECHO \
21367 PATH_SEPARATOR \
21368 SED \
21369 GREP \
21370 EGREP \
21371 FGREP \
21372 LD \
21373 NM \
21374 LN_S \
21375 lt_SP2NL \
21376 lt_NL2SP \
21377 reload_flag \
21378 FILECMD \
21379 OBJDUMP \
21380 deplibs_check_method \
21381 file_magic_cmd \
21382 file_magic_glob \
21383 want_nocaseglob \
21384 DLLTOOL \
21385 sharedlib_from_linklib_cmd \
21386 AR \
21387 archiver_list_spec \
21388 STRIP \
21389 RANLIB \
21390 CC \
21391 CFLAGS \
21392 compiler \
21393 lt_cv_sys_global_symbol_pipe \
21394 lt_cv_sys_global_symbol_to_cdecl \
21395 lt_cv_sys_global_symbol_to_import \
21396 lt_cv_sys_global_symbol_to_c_name_address \
21397 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21398 lt_cv_nm_interface \
21399 nm_file_list_spec \
21400 lt_cv_truncate_bin \
21401 lt_prog_compiler_no_builtin_flag \
21402 lt_prog_compiler_pic \
21403 lt_prog_compiler_wl \
21404 lt_prog_compiler_static \
21405 lt_cv_prog_compiler_c_o \
21406 need_locks \
21407 MANIFEST_TOOL \
21408 DSYMUTIL \
21409 NMEDIT \
21410 LIPO \
21411 OTOOL \
21412 OTOOL64 \
21413 shrext_cmds \
21414 export_dynamic_flag_spec \
21415 whole_archive_flag_spec \
21416 compiler_needs_object \
21417 with_gnu_ld \
21418 allow_undefined_flag \
21419 no_undefined_flag \
21420 hardcode_libdir_flag_spec \
21421 hardcode_libdir_separator \
21422 exclude_expsyms \
21423 include_expsyms \
21424 file_list_spec \
21425 variables_saved_for_relink \
21426 libname_spec \
21427 library_names_spec \
21428 soname_spec \
21429 install_override_mode \
21430 finish_eval \
21431 old_striplib \
21432 striplib \
21433 LD_F77 \
21434 reload_flag_F77 \
21435 compiler_F77 \
21436 lt_prog_compiler_no_builtin_flag_F77 \
21437 lt_prog_compiler_pic_F77 \
21438 lt_prog_compiler_wl_F77 \
21439 lt_prog_compiler_static_F77 \
21440 lt_cv_prog_compiler_c_o_F77 \
21441 export_dynamic_flag_spec_F77 \
21442 whole_archive_flag_spec_F77 \
21443 compiler_needs_object_F77 \
21444 with_gnu_ld_F77 \
21445 allow_undefined_flag_F77 \
21446 no_undefined_flag_F77 \
21447 hardcode_libdir_flag_spec_F77 \
21448 hardcode_libdir_separator_F77 \
21449 exclude_expsyms_F77 \
21450 include_expsyms_F77 \
21451 file_list_spec_F77; do
21452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21453 *[\\\\\\\`\\"\\\$]*)
21454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21455 ;;
21456 *)
21457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21458 ;;
21459 esac
21460 done
21461
21462 # Double-quote double-evaled strings.
21463 for var in reload_cmds \
21464 old_postinstall_cmds \
21465 old_postuninstall_cmds \
21466 old_archive_cmds \
21467 extract_expsyms_cmds \
21468 old_archive_from_new_cmds \
21469 old_archive_from_expsyms_cmds \
21470 archive_cmds \
21471 archive_expsym_cmds \
21472 module_cmds \
21473 module_expsym_cmds \
21474 export_symbols_cmds \
21475 prelink_cmds \
21476 postlink_cmds \
21477 postinstall_cmds \
21478 postuninstall_cmds \
21479 finish_cmds \
21480 sys_lib_search_path_spec \
21481 configure_time_dlsearch_path \
21482 configure_time_lt_sys_library_path \
21483 reload_cmds_F77 \
21484 old_archive_cmds_F77 \
21485 old_archive_from_new_cmds_F77 \
21486 old_archive_from_expsyms_cmds_F77 \
21487 archive_cmds_F77 \
21488 archive_expsym_cmds_F77 \
21489 module_cmds_F77 \
21490 module_expsym_cmds_F77 \
21491 export_symbols_cmds_F77 \
21492 prelink_cmds_F77 \
21493 postlink_cmds_F77; do
21494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21495 *[\\\\\\\`\\"\\\$]*)
21496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21497 ;;
21498 *)
21499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21500 ;;
21501 esac
21502 done
21503
21504 ac_aux_dir='$ac_aux_dir'
21505
21506 # See if we are running on zsh, and set the options that allow our
21507 # commands through without removal of \ escapes INIT.
21508 if test -n "\${ZSH_VERSION+set}"; then
21509 setopt NO_GLOB_SUBST
21510 fi
21511
21512
21513 PACKAGE='$PACKAGE'
21514 VERSION='$VERSION'
21515 RM='$RM'
21516 ofile='$ofile'
21517
21518
21519
21520
21521
21522
21523 _ACEOF
21524
21525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21526
21527 # Handling of arguments.
21528 for ac_config_target in $ac_config_targets
21529 do
21530 case $ac_config_target in
21531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21532 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21533 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21534
21535 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21536 esac
21537 done
21538
21539
21540 # If the user did not use the arguments to specify the items to instantiate,
21541 # then the envvar interface is used. Set only those that are not.
21542 # We use the long form for the default assignment because of an extremely
21543 # bizarre bug on SunOS 4.1.3.
21544 if $ac_need_defaults; then
21545 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21546 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21547 fi
21548
21549 # Have a temporary directory for convenience. Make it in the build tree
21550 # simply because there is no reason against having it here, and in addition,
21551 # creating and moving files from /tmp can sometimes cause problems.
21552 # Hook for its removal unless debugging.
21553 # Note that there is a small window in which the directory will not be cleaned:
21554 # after its creation but before its name has been assigned to '$tmp'.
21555 $debug ||
21556 {
21557 tmp= ac_tmp=
21558 trap 'exit_status=$?
21559 : "${ac_tmp:=$tmp}"
21560 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21561 ' 0
21562 trap 'as_fn_exit 1' 1 2 13 15
21563 }
21564 # Create a (secure) tmp directory for tmp files.
21565
21566 {
21567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21568 test -d "$tmp"
21569 } ||
21570 {
21571 tmp=./conf$$-$RANDOM
21572 (umask 077 && mkdir "$tmp")
21573 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21574 ac_tmp=$tmp
21575
21576 # Set up the scripts for CONFIG_FILES section.
21577 # No need to generate them if there are no CONFIG_FILES.
21578 # This happens for instance with './config.status config.h'.
21579 if test -n "$CONFIG_FILES"; then
21580
21581
21582 ac_cr=`echo X | tr X '\015'`
21583 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21584 # But we know of no other shell where ac_cr would be empty at this
21585 # point, so we can use a bashism as a fallback.
21586 if test "x$ac_cr" = x; then
21587 eval ac_cr=\$\'\\r\'
21588 fi
21589 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21590 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21591 ac_cs_awk_cr='\\r'
21592 else
21593 ac_cs_awk_cr=$ac_cr
21594 fi
21595
21596 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21597 _ACEOF
21598
21599
21600 {
21601 echo "cat >conf$$subs.awk <<_ACEOF" &&
21602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21603 echo "_ACEOF"
21604 } >conf$$subs.sh ||
21605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21606 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21607 ac_delim='%!_!# '
21608 for ac_last_try in false false false false false :; do
21609 . ./conf$$subs.sh ||
21610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21611
21612 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21613 if test $ac_delim_n = $ac_delim_num; then
21614 break
21615 elif $ac_last_try; then
21616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21617 else
21618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21619 fi
21620 done
21621 rm -f conf$$subs.sh
21622
21623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21624 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21625 _ACEOF
21626 sed -n '
21627 h
21628 s/^/S["/; s/!.*/"]=/
21629 p
21630 g
21631 s/^[^!]*!//
21632 :repl
21633 t repl
21634 s/'"$ac_delim"'$//
21635 t delim
21636 :nl
21637 h
21638 s/\(.\{148\}\)..*/\1/
21639 t more1
21640 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21641 p
21642 n
21643 b repl
21644 :more1
21645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21646 p
21647 g
21648 s/.\{148\}//
21649 t nl
21650 :delim
21651 h
21652 s/\(.\{148\}\)..*/\1/
21653 t more2
21654 s/["\\]/\\&/g; s/^/"/; s/$/"/
21655 p
21656 b
21657 :more2
21658 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21659 p
21660 g
21661 s/.\{148\}//
21662 t delim
21663 ' <conf$$subs.awk | sed '
21664 /^[^""]/{
21665 N
21666 s/\n//
21667 }
21668 ' >>$CONFIG_STATUS || ac_write_fail=1
21669 rm -f conf$$subs.awk
21670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21671 _ACAWK
21672 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21673 for (key in S) S_is_set[key] = 1
21674 FS = ""
21675
21676 }
21677 {
21678 line = $ 0
21679 nfields = split(line, field, "@")
21680 substed = 0
21681 len = length(field[1])
21682 for (i = 2; i < nfields; i++) {
21683 key = field[i]
21684 keylen = length(key)
21685 if (S_is_set[key]) {
21686 value = S[key]
21687 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21688 len += length(value) + length(field[++i])
21689 substed = 1
21690 } else
21691 len += 1 + keylen
21692 }
21693
21694 print line
21695 }
21696
21697 _ACAWK
21698 _ACEOF
21699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21700 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21701 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21702 else
21703 cat
21704 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21705 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21706 _ACEOF
21707
21708 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21709 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21710 # trailing colons and then remove the whole line if VPATH becomes empty
21711 # (actually we leave an empty line to preserve line numbers).
21712 if test "x$srcdir" = x.; then
21713 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21714 h
21715 s///
21716 s/^/:/
21717 s/[ ]*$/:/
21718 s/:\$(srcdir):/:/g
21719 s/:\${srcdir}:/:/g
21720 s/:@srcdir@:/:/g
21721 s/^:*//
21722 s/:*$//
21723 x
21724 s/\(=[ ]*\).*/\1/
21725 G
21726 s/\n//
21727 s/^[^=]*=[ ]*$//
21728 }'
21729 fi
21730
21731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21732 fi # test -n "$CONFIG_FILES"
21733
21734
21735 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21736 shift
21737 for ac_tag
21738 do
21739 case $ac_tag in
21740 :[FHLC]) ac_mode=$ac_tag; continue;;
21741 esac
21742 case $ac_mode$ac_tag in
21743 :[FHL]*:*);;
21744 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21745 :[FH]-) ac_tag=-:-;;
21746 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21747 esac
21748 ac_save_IFS=$IFS
21749 IFS=:
21750 set x $ac_tag
21751 IFS=$ac_save_IFS
21752 shift
21753 ac_file=$1
21754 shift
21755
21756 case $ac_mode in
21757 :L) ac_source=$1;;
21758 :[FH])
21759 ac_file_inputs=
21760 for ac_f
21761 do
21762 case $ac_f in
21763 -) ac_f="$ac_tmp/stdin";;
21764 *) # Look for the file first in the build tree, then in the source tree
21765 # (if the path is not absolute). The absolute path cannot be DOS-style,
21766 # because $ac_f cannot contain ':'.
21767 test -f "$ac_f" ||
21768 case $ac_f in
21769 [\\/$]*) false;;
21770 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21771 esac ||
21772 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21773 esac
21774 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21775 as_fn_append ac_file_inputs " '$ac_f'"
21776 done
21777
21778 # Let's still pretend it is 'configure' which instantiates (i.e., don't
21779 # use $as_me), people would be surprised to read:
21780 # /* config.h. Generated by config.status. */
21781 configure_input='Generated from '`
21782 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21783 `' by configure.'
21784 if test x"$ac_file" != x-; then
21785 configure_input="$ac_file. $configure_input"
21786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21787 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21788 fi
21789 # Neutralize special characters interpreted by sed in replacement strings.
21790 case $configure_input in #(
21791 *\&* | *\|* | *\\* )
21792 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21793 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21794 *) ac_sed_conf_input=$configure_input;;
21795 esac
21796
21797 case $ac_tag in
21798 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21800 esac
21801 ;;
21802 esac
21803
21804 ac_dir=`$as_dirname -- "$ac_file" ||
21805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21806 X"$ac_file" : 'X\(//\)[^/]' \| \
21807 X"$ac_file" : 'X\(//\)$' \| \
21808 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21809 printf "%s\n" X"$ac_file" |
21810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21811 s//\1/
21812 q
21813 }
21814 /^X\(\/\/\)[^/].*/{
21815 s//\1/
21816 q
21817 }
21818 /^X\(\/\/\)$/{
21819 s//\1/
21820 q
21821 }
21822 /^X\(\/\).*/{
21823 s//\1/
21824 q
21825 }
21826 s/.*/./; q'`
21827 as_dir="$ac_dir"; as_fn_mkdir_p
21828 ac_builddir=.
21829
21830 case "$ac_dir" in
21831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21832 *)
21833 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21834 # A ".." for each directory in $ac_dir_suffix.
21835 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21836 case $ac_top_builddir_sub in
21837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21839 esac ;;
21840 esac
21841 ac_abs_top_builddir=$ac_pwd
21842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21843 # for backward compatibility:
21844 ac_top_builddir=$ac_top_build_prefix
21845
21846 case $srcdir in
21847 .) # We are building in place.
21848 ac_srcdir=.
21849 ac_top_srcdir=$ac_top_builddir_sub
21850 ac_abs_top_srcdir=$ac_pwd ;;
21851 [\\/]* | ?:[\\/]* ) # Absolute name.
21852 ac_srcdir=$srcdir$ac_dir_suffix;
21853 ac_top_srcdir=$srcdir
21854 ac_abs_top_srcdir=$srcdir ;;
21855 *) # Relative name.
21856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21857 ac_top_srcdir=$ac_top_build_prefix$srcdir
21858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21859 esac
21860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21861
21862
21863 case $ac_mode in
21864 :F)
21865 #
21866 # CONFIG_FILE
21867 #
21868
21869 case $INSTALL in
21870 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21871 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21872 esac
21873 ac_MKDIR_P=$MKDIR_P
21874 case $MKDIR_P in
21875 [\\/$]* | ?:[\\/]* ) ;;
21876 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21877 esac
21878 _ACEOF
21879
21880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21881 # If the template does not know about datarootdir, expand it.
21882 # FIXME: This hack should be removed a few years after 2.60.
21883 ac_datarootdir_hack=; ac_datarootdir_seen=
21884 ac_sed_dataroot='
21885 /datarootdir/ {
21886 p
21887 q
21888 }
21889 /@datadir@/p
21890 /@docdir@/p
21891 /@infodir@/p
21892 /@localedir@/p
21893 /@mandir@/p'
21894 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21895 *datarootdir*) ac_datarootdir_seen=yes;;
21896 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21898 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21899 _ACEOF
21900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21901 ac_datarootdir_hack='
21902 s&@datadir@&$datadir&g
21903 s&@docdir@&$docdir&g
21904 s&@infodir@&$infodir&g
21905 s&@localedir@&$localedir&g
21906 s&@mandir@&$mandir&g
21907 s&\\\${datarootdir}&$datarootdir&g' ;;
21908 esac
21909 _ACEOF
21910
21911 # Neutralize VPATH when '$srcdir' = '.'.
21912 # Shell code in configure.ac might set extrasub.
21913 # FIXME: do we really want to maintain this feature?
21914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21915 ac_sed_extra="$ac_vpsub
21916 $extrasub
21917 _ACEOF
21918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21919 :t
21920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21921 s|@configure_input@|$ac_sed_conf_input|;t t
21922 s&@top_builddir@&$ac_top_builddir_sub&;t t
21923 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21924 s&@srcdir@&$ac_srcdir&;t t
21925 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21926 s&@top_srcdir@&$ac_top_srcdir&;t t
21927 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21928 s&@builddir@&$ac_builddir&;t t
21929 s&@abs_builddir@&$ac_abs_builddir&;t t
21930 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21931 s&@INSTALL@&$ac_INSTALL&;t t
21932 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21933 $ac_datarootdir_hack
21934 "
21935 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21936 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21937
21938 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21939 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21940 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21941 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21943 which seems to be undefined. Please make sure it is defined" >&5
21944 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21945 which seems to be undefined. Please make sure it is defined" >&2;}
21946
21947 rm -f "$ac_tmp/stdin"
21948 case $ac_file in
21949 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21950 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21951 esac \
21952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21953 ;;
21954
21955
21956 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21957 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21958 ;;
21959 esac
21960
21961
21962 case $ac_file$ac_mode in
21963 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21964 # Older Autoconf quotes --file arguments for eval, but not when files
21965 # are listed without --file. Let's play safe and only enable the eval
21966 # if we detect the quoting.
21967 # TODO: see whether this extra hack can be removed once we start
21968 # requiring Autoconf 2.70 or later.
21969 case $CONFIG_FILES in #(
21970 *\'*) :
21971 eval set x "$CONFIG_FILES" ;; #(
21972 *) :
21973 set x $CONFIG_FILES ;; #(
21974 *) :
21975 ;;
21976 esac
21977 shift
21978 # Used to flag and report bootstrapping failures.
21979 am_rc=0
21980 for am_mf
21981 do
21982 # Strip MF so we end up with the name of the file.
21983 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21984 # Check whether this is an Automake generated Makefile which includes
21985 # dependency-tracking related rules and includes.
21986 # Grep'ing the whole file directly is not great: AIX grep has a line
21987 # limit of 2048, but all sed's we know have understand at least 4000.
21988 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21989 || continue
21990 am_dirpart=`$as_dirname -- "$am_mf" ||
21991 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21992 X"$am_mf" : 'X\(//\)[^/]' \| \
21993 X"$am_mf" : 'X\(//\)$' \| \
21994 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21995 printf "%s\n" X"$am_mf" |
21996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21997 s//\1/
21998 q
21999 }
22000 /^X\(\/\/\)[^/].*/{
22001 s//\1/
22002 q
22003 }
22004 /^X\(\/\/\)$/{
22005 s//\1/
22006 q
22007 }
22008 /^X\(\/\).*/{
22009 s//\1/
22010 q
22011 }
22012 s/.*/./; q'`
22013 am_filepart=`$as_basename -- "$am_mf" ||
22014 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22015 X"$am_mf" : 'X\(//\)$' \| \
22016 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22017 printf "%s\n" X/"$am_mf" |
22018 sed '/^.*\/\([^/][^/]*\)\/*$/{
22019 s//\1/
22020 q
22021 }
22022 /^X\/\(\/\/\)$/{
22023 s//\1/
22024 q
22025 }
22026 /^X\/\(\/\).*/{
22027 s//\1/
22028 q
22029 }
22030 s/.*/./; q'`
22031 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22032 && sed -e '/# am--include-marker/d' "$am_filepart" \
22033 | $MAKE -f - am--depfiles" >&5
22034 (cd "$am_dirpart" \
22035 && sed -e '/# am--include-marker/d' "$am_filepart" \
22036 | $MAKE -f - am--depfiles) >&5 2>&5
22037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } || am_rc=$?
22040 done
22041 if test $am_rc -ne 0; then
22042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22043 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22044 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22045 for automatic dependency tracking. If GNU make was not used, consider
22046 re-running the configure script with MAKE=\"gmake\" (or whatever is
22047 necessary). You can also try re-running configure with the
22048 '--disable-dependency-tracking' option to at least be able to build
22049 the package (albeit without support for automatic dependency tracking).
22050 See 'config.log' for more details" "$LINENO" 5; }
22051 fi
22052 { am_dirpart=; unset am_dirpart;}
22053 { am_filepart=; unset am_filepart;}
22054 { am_mf=; unset am_mf;}
22055 { am_rc=; unset am_rc;}
22056 rm -f conftest-deps.mk
22057 }
22058 ;;
22059 "libtool":C)
22060
22061 # See if we are running on zsh, and set the options that allow our
22062 # commands through without removal of \ escapes.
22063 if test -n "${ZSH_VERSION+set}"; then
22064 setopt NO_GLOB_SUBST
22065 fi
22066
22067 cfgfile=${ofile}T
22068 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22069 $RM "$cfgfile"
22070
22071 cat <<_LT_EOF >> "$cfgfile"
22072 #! $SHELL
22073 # Generated automatically by $as_me ($PACKAGE) $VERSION
22074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22075
22076 # Provide generalized library-building support services.
22077 # Written by Gordon Matzigkeit, 1996
22078
22079 # Copyright (C) 2024 Free Software Foundation, Inc.
22080 # This is free software; see the source for copying conditions. There is NO
22081 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22082
22083 # GNU Libtool is free software; you can redistribute it and/or modify
22084 # it under the terms of the GNU General Public License as published by
22085 # the Free Software Foundation; either version 2 of the License, or
22086 # (at your option) any later version.
22087 #
22088 # As a special exception to the GNU General Public License, if you
22089 # distribute this file as part of a program or library that is built
22090 # using GNU Libtool, you may include this file under the same
22091 # distribution terms that you use for the rest of that program.
22092 #
22093 # GNU Libtool is distributed in the hope that it will be useful, but
22094 # WITHOUT ANY WARRANTY; without even the implied warranty of
22095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22096 # GNU General Public License for more details.
22097 #
22098 # You should have received a copy of the GNU General Public License
22099 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22100
22101
22102 # The names of the tagged configurations supported by this script.
22103 available_tags='F77 '
22104
22105 # Configured defaults for sys_lib_dlsearch_path munging.
22106 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22107
22108 # ### BEGIN LIBTOOL CONFIG
22109
22110 # Which release of libtool.m4 was used?
22111 macro_version=$macro_version
22112 macro_revision=$macro_revision
22113
22114 # Whether or not to build shared libraries.
22115 build_libtool_libs=$enable_shared
22116
22117 # Whether or not to build static libraries.
22118 build_old_libs=$enable_static
22119
22120 # What type of objects to build.
22121 pic_mode=$pic_mode
22122
22123 # Whether or not to optimize for fast installation.
22124 fast_install=$enable_fast_install
22125
22126 # Shared archive member basename,for filename based shared library versioning on AIX.
22127 shared_archive_member_spec=$shared_archive_member_spec
22128
22129 # Shell to use when invoking shell scripts.
22130 SHELL=$lt_SHELL
22131
22132 # An echo program that protects backslashes.
22133 ECHO=$lt_ECHO
22134
22135 # The PATH separator for the build system.
22136 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22137
22138 # The host system.
22139 host_alias=$host_alias
22140 host=$host
22141 host_os=$host_os
22142
22143 # The build system.
22144 build_alias=$build_alias
22145 build=$build
22146 build_os=$build_os
22147
22148 # A sed program that does not truncate output.
22149 SED=$lt_SED
22150
22151 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22152 Xsed="\$SED -e 1s/^X//"
22153
22154 # A grep program that handles long lines.
22155 GREP=$lt_GREP
22156
22157 # An ERE matcher.
22158 EGREP=$lt_EGREP
22159
22160 # A literal string matcher.
22161 FGREP=$lt_FGREP
22162
22163 # A BSD- or MS-compatible name lister.
22164 NM=$lt_NM
22165
22166 # Whether we need soft or hard links.
22167 LN_S=$lt_LN_S
22168
22169 # What is the maximum length of a command?
22170 max_cmd_len=$max_cmd_len
22171
22172 # Object file suffix (normally "o").
22173 objext=$ac_objext
22174
22175 # Executable file suffix (normally "").
22176 exeext=$exeext
22177
22178 # whether the shell understands "unset".
22179 lt_unset=$lt_unset
22180
22181 # turn spaces into newlines.
22182 SP2NL=$lt_lt_SP2NL
22183
22184 # turn newlines into spaces.
22185 NL2SP=$lt_lt_NL2SP
22186
22187 # convert \$build file names to \$host format.
22188 to_host_file_cmd=$lt_cv_to_host_file_cmd
22189
22190 # convert \$build files to toolchain format.
22191 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22192
22193 # A file(cmd) program that detects file types.
22194 FILECMD=$lt_FILECMD
22195
22196 # An object symbol dumper.
22197 OBJDUMP=$lt_OBJDUMP
22198
22199 # Method to check whether dependent libraries are shared objects.
22200 deplibs_check_method=$lt_deplibs_check_method
22201
22202 # Command to use when deplibs_check_method = "file_magic".
22203 file_magic_cmd=$lt_file_magic_cmd
22204
22205 # How to find potential files when deplibs_check_method = "file_magic".
22206 file_magic_glob=$lt_file_magic_glob
22207
22208 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22209 want_nocaseglob=$lt_want_nocaseglob
22210
22211 # DLL creation program.
22212 DLLTOOL=$lt_DLLTOOL
22213
22214 # Command to associate shared and link libraries.
22215 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22216
22217 # The archiver.
22218 AR=$lt_AR
22219
22220 # Flags to create an archive (by configure).
22221 lt_ar_flags=$lt_ar_flags
22222
22223 # Flags to create an archive.
22224 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22225
22226 # How to feed a file listing to the archiver.
22227 archiver_list_spec=$lt_archiver_list_spec
22228
22229 # A symbol stripping program.
22230 STRIP=$lt_STRIP
22231
22232 # Commands used to install an old-style archive.
22233 RANLIB=$lt_RANLIB
22234 old_postinstall_cmds=$lt_old_postinstall_cmds
22235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22236
22237 # Whether to use a lock for old archive extraction.
22238 lock_old_archive_extraction=$lock_old_archive_extraction
22239
22240 # A C compiler.
22241 LTCC=$lt_CC
22242
22243 # LTCC compiler flags.
22244 LTCFLAGS=$lt_CFLAGS
22245
22246 # Take the output of nm and produce a listing of raw symbols and C names.
22247 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22248
22249 # Transform the output of nm in a proper C declaration.
22250 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22251
22252 # Transform the output of nm into a list of symbols to manually relocate.
22253 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22254
22255 # Transform the output of nm in a C name address pair.
22256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22257
22258 # Transform the output of nm in a C name address pair when lib prefix is needed.
22259 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22260
22261 # The name lister interface.
22262 nm_interface=$lt_lt_cv_nm_interface
22263
22264 # Specify filename containing input files for \$NM.
22265 nm_file_list_spec=$lt_nm_file_list_spec
22266
22267 # The root where to search for dependent libraries,and where our libraries should be installed.
22268 lt_sysroot=$lt_sysroot
22269
22270 # Command to truncate a binary pipe.
22271 lt_truncate_bin=$lt_lt_cv_truncate_bin
22272
22273 # The name of the directory that contains temporary libtool files.
22274 objdir=$objdir
22275
22276 # Used to examine libraries when file_magic_cmd begins with "file".
22277 MAGIC_CMD=$MAGIC_CMD
22278
22279 # Must we lock files when doing compilation?
22280 need_locks=$lt_need_locks
22281
22282 # Manifest tool.
22283 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22284
22285 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22286 DSYMUTIL=$lt_DSYMUTIL
22287
22288 # Tool to change global to local symbols on Mac OS X.
22289 NMEDIT=$lt_NMEDIT
22290
22291 # Tool to manipulate fat objects and archives on Mac OS X.
22292 LIPO=$lt_LIPO
22293
22294 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22295 OTOOL=$lt_OTOOL
22296
22297 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22298 OTOOL64=$lt_OTOOL64
22299
22300 # Old archive suffix (normally "a").
22301 libext=$libext
22302
22303 # Shared library suffix (normally ".so").
22304 shrext_cmds=$lt_shrext_cmds
22305
22306 # The commands to extract the exported symbol list from a shared archive.
22307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22308
22309 # Variables whose values should be saved in libtool wrapper scripts and
22310 # restored at link time.
22311 variables_saved_for_relink=$lt_variables_saved_for_relink
22312
22313 # Do we need the "lib" prefix for modules?
22314 need_lib_prefix=$need_lib_prefix
22315
22316 # Do we need a version for libraries?
22317 need_version=$need_version
22318
22319 # Library versioning type.
22320 version_type=$version_type
22321
22322 # Shared library runtime path variable.
22323 runpath_var=$runpath_var
22324
22325 # Shared library path variable.
22326 shlibpath_var=$shlibpath_var
22327
22328 # Is shlibpath searched before the hard-coded library search path?
22329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22330
22331 # Format of library name prefix.
22332 libname_spec=$lt_libname_spec
22333
22334 # List of archive names. First name is the real one, the rest are links.
22335 # The last name is the one that the linker finds with -lNAME
22336 library_names_spec=$lt_library_names_spec
22337
22338 # The coded name of the library, if different from the real name.
22339 soname_spec=$lt_soname_spec
22340
22341 # Permission mode override for installation of shared libraries.
22342 install_override_mode=$lt_install_override_mode
22343
22344 # Command to use after installation of a shared archive.
22345 postinstall_cmds=$lt_postinstall_cmds
22346
22347 # Command to use after uninstallation of a shared archive.
22348 postuninstall_cmds=$lt_postuninstall_cmds
22349
22350 # Commands used to finish a libtool library installation in a directory.
22351 finish_cmds=$lt_finish_cmds
22352
22353 # As "finish_cmds", except a single script fragment to be evaled but
22354 # not shown.
22355 finish_eval=$lt_finish_eval
22356
22357 # Whether we should hardcode library paths into libraries.
22358 hardcode_into_libs=$hardcode_into_libs
22359
22360 # Compile-time system search path for libraries.
22361 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22362
22363 # Detected run-time system search path for libraries.
22364 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22365
22366 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22367 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22368
22369 # Whether dlopen is supported.
22370 dlopen_support=$enable_dlopen
22371
22372 # Whether dlopen of programs is supported.
22373 dlopen_self=$enable_dlopen_self
22374
22375 # Whether dlopen of statically linked programs is supported.
22376 dlopen_self_static=$enable_dlopen_self_static
22377
22378 # Commands to strip libraries.
22379 old_striplib=$lt_old_striplib
22380 striplib=$lt_striplib
22381
22382
22383 # The linker used to build libraries.
22384 LD=$lt_LD
22385
22386 # How to create reloadable object files.
22387 reload_flag=$lt_reload_flag
22388 reload_cmds=$lt_reload_cmds
22389
22390 # Commands used to build an old-style archive.
22391 old_archive_cmds=$lt_old_archive_cmds
22392
22393 # A language specific compiler.
22394 CC=$lt_compiler
22395
22396 # Is the compiler the GNU compiler?
22397 with_gcc=$GCC
22398
22399 # Compiler flag to turn off builtin functions.
22400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22401
22402 # Additional compiler flags for building library objects.
22403 pic_flag=$lt_lt_prog_compiler_pic
22404
22405 # How to pass a linker flag through the compiler.
22406 wl=$lt_lt_prog_compiler_wl
22407
22408 # Compiler flag to prevent dynamic linking.
22409 link_static_flag=$lt_lt_prog_compiler_static
22410
22411 # Does compiler simultaneously support -c and -o options?
22412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22413
22414 # Whether or not to add -lc for building shared libraries.
22415 build_libtool_need_lc=$archive_cmds_need_lc
22416
22417 # Whether or not to disallow shared libs when runtime libs are static.
22418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22419
22420 # Compiler flag to allow reflexive dlopens.
22421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22422
22423 # Compiler flag to generate shared objects directly from archives.
22424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22425
22426 # Whether the compiler copes with passing no objects directly.
22427 compiler_needs_object=$lt_compiler_needs_object
22428
22429 # Create an old-style archive from a shared archive.
22430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22431
22432 # Create a temporary old-style archive to link instead of a shared archive.
22433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22434
22435 # Commands used to build a shared archive.
22436 archive_cmds=$lt_archive_cmds
22437 archive_expsym_cmds=$lt_archive_expsym_cmds
22438
22439 # Commands used to build a loadable module if different from building
22440 # a shared archive.
22441 module_cmds=$lt_module_cmds
22442 module_expsym_cmds=$lt_module_expsym_cmds
22443
22444 # Whether we are building with GNU ld or not.
22445 with_gnu_ld=$lt_with_gnu_ld
22446
22447 # Flag that allows shared libraries with undefined symbols to be built.
22448 allow_undefined_flag=$lt_allow_undefined_flag
22449
22450 # Flag that enforces no undefined symbols.
22451 no_undefined_flag=$lt_no_undefined_flag
22452
22453 # Flag to hardcode \$libdir into a binary during linking.
22454 # This must work even if \$libdir does not exist
22455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22456
22457 # Whether we need a single "-rpath" flag with a separated argument.
22458 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22459
22460 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22461 # DIR into the resulting binary.
22462 hardcode_direct=$hardcode_direct
22463
22464 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22465 # DIR into the resulting binary and the resulting library dependency is
22466 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22467 # library is relocated.
22468 hardcode_direct_absolute=$hardcode_direct_absolute
22469
22470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22471 # into the resulting binary.
22472 hardcode_minus_L=$hardcode_minus_L
22473
22474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22475 # into the resulting binary.
22476 hardcode_shlibpath_var=$hardcode_shlibpath_var
22477
22478 # Set to "yes" if building a shared library automatically hardcodes DIR
22479 # into the library and all subsequent libraries and executables linked
22480 # against it.
22481 hardcode_automatic=$hardcode_automatic
22482
22483 # Set to yes if linker adds runtime paths of dependent libraries
22484 # to runtime path list.
22485 inherit_rpath=$inherit_rpath
22486
22487 # Whether libtool must link a program against all its dependency libraries.
22488 link_all_deplibs=$link_all_deplibs
22489
22490 # Set to "yes" if exported symbols are required.
22491 always_export_symbols=$always_export_symbols
22492
22493 # The commands to list exported symbols.
22494 export_symbols_cmds=$lt_export_symbols_cmds
22495
22496 # Symbols that should not be listed in the preloaded symbols.
22497 exclude_expsyms=$lt_exclude_expsyms
22498
22499 # Symbols that must always be exported.
22500 include_expsyms=$lt_include_expsyms
22501
22502 # Commands necessary for linking programs (against libraries) with templates.
22503 prelink_cmds=$lt_prelink_cmds
22504
22505 # Commands necessary for finishing linking programs.
22506 postlink_cmds=$lt_postlink_cmds
22507
22508 # Specify filename containing input files.
22509 file_list_spec=$lt_file_list_spec
22510
22511 # How to hardcode a shared library path into an executable.
22512 hardcode_action=$hardcode_action
22513
22514 # ### END LIBTOOL CONFIG
22515
22516 _LT_EOF
22517
22518 cat <<'_LT_EOF' >> "$cfgfile"
22519
22520 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22521
22522 # func_munge_path_list VARIABLE PATH
22523 # -----------------------------------
22524 # VARIABLE is name of variable containing _space_ separated list of
22525 # directories to be munged by the contents of PATH, which is string
22526 # having a format:
22527 # "DIR[:DIR]:"
22528 # string "DIR[ DIR]" will be prepended to VARIABLE
22529 # ":DIR[:DIR]"
22530 # string "DIR[ DIR]" will be appended to VARIABLE
22531 # "DIRP[:DIRP]::[DIRA:]DIRA"
22532 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22533 # "DIRA[ DIRA]" will be appended to VARIABLE
22534 # "DIR[:DIR]"
22535 # VARIABLE will be replaced by "DIR[ DIR]"
22536 func_munge_path_list ()
22537 {
22538 case x$2 in
22539 x)
22540 ;;
22541 *:)
22542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22543 ;;
22544 x:*)
22545 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22546 ;;
22547 *::*)
22548 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22549 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22550 ;;
22551 *)
22552 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22553 ;;
22554 esac
22555 }
22556
22557
22558 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22559 func_cc_basename ()
22560 {
22561 for cc_temp in $*""; do
22562 case $cc_temp in
22563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22565 \-*) ;;
22566 *) break;;
22567 esac
22568 done
22569 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22570 }
22571
22572
22573 # ### END FUNCTIONS SHARED WITH CONFIGURE
22574
22575 _LT_EOF
22576
22577 case $host_os in
22578 aix3*)
22579 cat <<\_LT_EOF >> "$cfgfile"
22580 # AIX sometimes has problems with the GCC collect2 program. For some
22581 # reason, if we set the COLLECT_NAMES environment variable, the problems
22582 # vanish in a puff of smoke.
22583 if test set != "${COLLECT_NAMES+set}"; then
22584 COLLECT_NAMES=
22585 export COLLECT_NAMES
22586 fi
22587 _LT_EOF
22588 ;;
22589 esac
22590
22591
22592
22593 ltmain=$ac_aux_dir/ltmain.sh
22594
22595
22596 # We use sed instead of cat because bash on DJGPP gets confused if
22597 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22598 # text mode, it properly converts lines to CR/LF. This bash problem
22599 # is reportedly fixed, but why not run on old versions too?
22600 $SED '$q' "$ltmain" >> "$cfgfile" \
22601 || (rm -f "$cfgfile"; exit 1)
22602
22603 mv -f "$cfgfile" "$ofile" ||
22604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22605 chmod +x "$ofile"
22606
22607
22608 cat <<_LT_EOF >> "$ofile"
22609
22610 # ### BEGIN LIBTOOL TAG CONFIG: F77
22611
22612 # The linker used to build libraries.
22613 LD=$lt_LD_F77
22614
22615 # How to create reloadable object files.
22616 reload_flag=$lt_reload_flag_F77
22617 reload_cmds=$lt_reload_cmds_F77
22618
22619 # Commands used to build an old-style archive.
22620 old_archive_cmds=$lt_old_archive_cmds_F77
22621
22622 # A language specific compiler.
22623 CC=$lt_compiler_F77
22624
22625 # Is the compiler the GNU compiler?
22626 with_gcc=$GCC_F77
22627
22628 # Compiler flag to turn off builtin functions.
22629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22630
22631 # Additional compiler flags for building library objects.
22632 pic_flag=$lt_lt_prog_compiler_pic_F77
22633
22634 # How to pass a linker flag through the compiler.
22635 wl=$lt_lt_prog_compiler_wl_F77
22636
22637 # Compiler flag to prevent dynamic linking.
22638 link_static_flag=$lt_lt_prog_compiler_static_F77
22639
22640 # Does compiler simultaneously support -c and -o options?
22641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22642
22643 # Whether or not to add -lc for building shared libraries.
22644 build_libtool_need_lc=$archive_cmds_need_lc_F77
22645
22646 # Whether or not to disallow shared libs when runtime libs are static.
22647 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22648
22649 # Compiler flag to allow reflexive dlopens.
22650 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22651
22652 # Compiler flag to generate shared objects directly from archives.
22653 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22654
22655 # Whether the compiler copes with passing no objects directly.
22656 compiler_needs_object=$lt_compiler_needs_object_F77
22657
22658 # Create an old-style archive from a shared archive.
22659 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22660
22661 # Create a temporary old-style archive to link instead of a shared archive.
22662 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22663
22664 # Commands used to build a shared archive.
22665 archive_cmds=$lt_archive_cmds_F77
22666 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22667
22668 # Commands used to build a loadable module if different from building
22669 # a shared archive.
22670 module_cmds=$lt_module_cmds_F77
22671 module_expsym_cmds=$lt_module_expsym_cmds_F77
22672
22673 # Whether we are building with GNU ld or not.
22674 with_gnu_ld=$lt_with_gnu_ld_F77
22675
22676 # Flag that allows shared libraries with undefined symbols to be built.
22677 allow_undefined_flag=$lt_allow_undefined_flag_F77
22678
22679 # Flag that enforces no undefined symbols.
22680 no_undefined_flag=$lt_no_undefined_flag_F77
22681
22682 # Flag to hardcode \$libdir into a binary during linking.
22683 # This must work even if \$libdir does not exist
22684 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22685
22686 # Whether we need a single "-rpath" flag with a separated argument.
22687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22688
22689 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22690 # DIR into the resulting binary.
22691 hardcode_direct=$hardcode_direct_F77
22692
22693 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22694 # DIR into the resulting binary and the resulting library dependency is
22695 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22696 # library is relocated.
22697 hardcode_direct_absolute=$hardcode_direct_absolute_F77
22698
22699 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22700 # into the resulting binary.
22701 hardcode_minus_L=$hardcode_minus_L_F77
22702
22703 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22704 # into the resulting binary.
22705 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22706
22707 # Set to "yes" if building a shared library automatically hardcodes DIR
22708 # into the library and all subsequent libraries and executables linked
22709 # against it.
22710 hardcode_automatic=$hardcode_automatic_F77
22711
22712 # Set to yes if linker adds runtime paths of dependent libraries
22713 # to runtime path list.
22714 inherit_rpath=$inherit_rpath_F77
22715
22716 # Whether libtool must link a program against all its dependency libraries.
22717 link_all_deplibs=$link_all_deplibs_F77
22718
22719 # Set to "yes" if exported symbols are required.
22720 always_export_symbols=$always_export_symbols_F77
22721
22722 # The commands to list exported symbols.
22723 export_symbols_cmds=$lt_export_symbols_cmds_F77
22724
22725 # Symbols that should not be listed in the preloaded symbols.
22726 exclude_expsyms=$lt_exclude_expsyms_F77
22727
22728 # Symbols that must always be exported.
22729 include_expsyms=$lt_include_expsyms_F77
22730
22731 # Commands necessary for linking programs (against libraries) with templates.
22732 prelink_cmds=$lt_prelink_cmds_F77
22733
22734 # Commands necessary for finishing linking programs.
22735 postlink_cmds=$lt_postlink_cmds_F77
22736
22737 # Specify filename containing input files.
22738 file_list_spec=$lt_file_list_spec_F77
22739
22740 # How to hardcode a shared library path into an executable.
22741 hardcode_action=$hardcode_action_F77
22742
22743 # ### END LIBTOOL TAG CONFIG: F77
22744 _LT_EOF
22745
22746 ;;
22747
22748 esac
22749 done # for ac_tag
22750
22751
22752 as_fn_exit 0
22753 _ACEOF
22754 ac_clean_files=$ac_clean_files_save
22755
22756 test $ac_write_fail = 0 ||
22757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22758
22759
22760 # configure is writing to config.log, and then calls config.status.
22761 # config.status does its own redirection, appending to config.log.
22762 # Unfortunately, on DOS this fails, as config.log is still kept open
22763 # by configure, so config.status won't be able to write to it; its
22764 # output is simply discarded. So we exec the FD to /dev/null,
22765 # effectively closing config.log, so it can be properly (re)opened and
22766 # appended to by config.status. When coming back to configure, we
22767 # need to make the FD available again.
22768 if test "$no_create" != yes; then
22769 ac_cs_success=:
22770 ac_config_status_args=
22771 test "$silent" = yes &&
22772 ac_config_status_args="$ac_config_status_args --quiet"
22773 exec 5>/dev/null
22774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22775 exec 5>>config.log
22776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22777 # would make configure fail if this is the last instruction.
22778 $ac_cs_success || as_fn_exit 1
22779 fi
22780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22782 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22783 fi
22784
22785 ac_config_files="$ac_config_files cfitsio.pc"
22786
22787 cat >confcache <<\_ACEOF
22788 # This file is a shell script that caches the results of configure
22789 # tests run on this system so they can be shared between configure
22790 # scripts and configure runs, see configure's option --config-cache.
22791 # It is not useful on other systems. If it contains results you don't
22792 # want to keep, you may remove or edit it.
22793 #
22794 # config.status only pays attention to the cache file if you give it
22795 # the --recheck option to rerun configure.
22796 #
22797 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22798 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22799 # following values.
22800
22801 _ACEOF
22802
22803 # The following way of writing the cache mishandles newlines in values,
22804 # but we know of no workaround that is simple, portable, and efficient.
22805 # So, we kill variables containing newlines.
22806 # Ultrix sh set writes to stderr and can't be redirected directly,
22807 # and sets the high bit in the cache file unless we assign to the vars.
22808 (
22809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22810 eval ac_val=\$$ac_var
22811 case $ac_val in #(
22812 *${as_nl}*)
22813 case $ac_var in #(
22814 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22815 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22816 esac
22817 case $ac_var in #(
22818 _ | IFS | as_nl) ;; #(
22819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22820 *) { eval $ac_var=; unset $ac_var;} ;;
22821 esac ;;
22822 esac
22823 done
22824
22825 (set) 2>&1 |
22826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22827 *${as_nl}ac_space=\ *)
22828 # 'set' does not quote correctly, so add quotes: double-quote
22829 # substitution turns \\\\ into \\, and sed turns \\ into \.
22830 sed -n \
22831 "s/'/'\\\\''/g;
22832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22833 ;; #(
22834 *)
22835 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22837 ;;
22838 esac |
22839 sort
22840 ) |
22841 sed '
22842 /^ac_cv_env_/b end
22843 t clear
22844 :clear
22845 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22846 t end
22847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22848 :end' >>confcache
22849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22850 if test -w "$cache_file"; then
22851 if test "x$cache_file" != "x/dev/null"; then
22852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22853 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22854 if test ! -f "$cache_file" || test -h "$cache_file"; then
22855 cat confcache >"$cache_file"
22856 else
22857 case $cache_file in #(
22858 */* | ?:*)
22859 mv -f confcache "$cache_file"$$ &&
22860 mv -f "$cache_file"$$ "$cache_file" ;; #(
22861 *)
22862 mv -f confcache "$cache_file" ;;
22863 esac
22864 fi
22865 fi
22866 else
22867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22868 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22869 fi
22870 fi
22871 rm -f confcache
22872
22873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22874 # Let make expand exec_prefix.
22875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22876
22877 # Transform confdefs.h into DEFS.
22878 # Protect against shell expansion while executing Makefile rules.
22879 # Protect against Makefile macro expansion.
22880 #
22881 # If the first sed substitution is executed (which looks for macros that
22882 # take arguments), then branch to the quote section. Otherwise,
22883 # look for a macro that doesn't take arguments.
22884 ac_script='
22885 :mline
22886 /\\$/{
22887 N
22888 s,\\\n,,
22889 b mline
22890 }
22891 t clear
22892 :clear
22893 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22894 t quote
22895 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22896 t quote
22897 b any
22898 :quote
22899 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22900 s/\$/$$/g
22901 H
22902 :any
22903 ${
22904 g
22905 s/^\n//
22906 s/\n/ /g
22907 p
22908 }
22909 '
22910 DEFS=`sed -n "$ac_script" confdefs.h`
22911
22912
22913 ac_libobjs=
22914 ac_ltlibobjs=
22915 U=
22916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22917 # 1. Remove the extension, and $U if already installed.
22918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22919 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22921 # will be set to the directory where LIBOBJS objects are built.
22922 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22923 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22924 done
22925 LIBOBJS=$ac_libobjs
22926
22927 LTLIBOBJS=$ac_ltlibobjs
22928
22929
22930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22931 printf %s "checking that generated files are newer than configure... " >&6; }
22932 if test -n "$am_sleep_pid"; then
22933 # Hide warnings about reused PIDs.
22934 wait $am_sleep_pid 2>/dev/null
22935 fi
22936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22937 printf "%s\n" "done" >&6; }
22938 case $enable_silent_rules in # (((
22939 yes) AM_DEFAULT_VERBOSITY=0;;
22940 no) AM_DEFAULT_VERBOSITY=1;;
22941 esac
22942 if test $am_cv_make_support_nested_variables = yes; then
22943 AM_V='$(V)'
22944 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22945 else
22946 AM_V=$AM_DEFAULT_VERBOSITY
22947 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
22948 fi
22949
22950 if test -n "$EXEEXT"; then
22951 am__EXEEXT_TRUE=
22952 am__EXEEXT_FALSE='#'
22953 else
22954 am__EXEEXT_TRUE='#'
22955 am__EXEEXT_FALSE=
22956 fi
22957
22958 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22959 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22961 fi
22962 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22963 as_fn_error $? "conditional \"AMDEP\" was never defined.
22964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22965 fi
22966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22969 fi
22970 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22971 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22973 fi
22974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22975 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22977 fi
22978 if test -z "${NOGSIFTP_TRUE}" && test -z "${NOGSIFTP_FALSE}"; then
22979 as_fn_error $? "conditional \"NOGSIFTP\" was never defined.
22980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22981 fi
22982 if test -z "${NOFORTRAN_TRUE}" && test -z "${NOFORTRAN_FALSE}"; then
22983 as_fn_error $? "conditional \"NOFORTRAN\" was never defined.
22984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22985 fi
22986 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
22987 as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
22988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22989 fi
22990
22991 : "${CONFIG_STATUS=./config.status}"
22992 ac_write_fail=0
22993 ac_clean_files_save=$ac_clean_files
22994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22996 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22997 as_write_fail=0
22998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22999 #! $SHELL
23000 # Generated by $as_me.
23001 # Run this file to recreate the current configuration.
23002 # Compiler output produced by configure, useful for debugging
23003 # configure, is in config.log if it exists.
23004
23005 debug=false
23006 ac_cs_recheck=false
23007 ac_cs_silent=false
23008
23009 SHELL=\${CONFIG_SHELL-$SHELL}
23010 export SHELL
23011 _ASEOF
23012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23013 ## -------------------- ##
23014 ## M4sh Initialization. ##
23015 ## -------------------- ##
23016
23017 # Be more Bourne compatible
23018 DUALCASE=1; export DUALCASE # for MKS sh
23019 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23020 then :
23021 emulate sh
23022 NULLCMD=:
23023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23024 # is contrary to our usage. Disable this feature.
23025 alias -g '${1+"$@"}'='"$@"'
23026 setopt NO_GLOB_SUBST
23027 else case e in #(
23028 e) case `(set -o) 2>/dev/null` in #(
23029 *posix*) :
23030 set -o posix ;; #(
23031 *) :
23032 ;;
23033 esac ;;
23034 esac
23035 fi
23036
23037
23038
23039 # Reset variables that may have inherited troublesome values from
23040 # the environment.
23041
23042 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23043 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23044 # side effect of setting IFS to empty, thus disabling word splitting.)
23045 # Quoting is to prevent editors from complaining about space-tab.
23046 as_nl='
23047 '
23048 export as_nl
23049 IFS=" "" $as_nl"
23050
23051 PS1='$ '
23052 PS2='> '
23053 PS4='+ '
23054
23055 # Ensure predictable behavior from utilities with locale-dependent output.
23056 LC_ALL=C
23057 export LC_ALL
23058 LANGUAGE=C
23059 export LANGUAGE
23060
23061 # We cannot yet rely on "unset" to work, but we need these variables
23062 # to be unset--not just set to an empty or harmless value--now, to
23063 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23064 # also avoids known problems related to "unset" and subshell syntax
23065 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23066 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23067 do eval test \${$as_var+y} \
23068 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23069 done
23070
23071 # Ensure that fds 0, 1, and 2 are open.
23072 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23073 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23074 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23075
23076 # The user is always right.
23077 if ${PATH_SEPARATOR+false} :; then
23078 PATH_SEPARATOR=:
23079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23081 PATH_SEPARATOR=';'
23082 }
23083 fi
23084
23085
23086 # Find who we are. Look in the path if we contain no directory separator.
23087 as_myself=
23088 case $0 in #((
23089 *[\\/]* ) as_myself=$0 ;;
23090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23091 for as_dir in $PATH
23092 do
23093 IFS=$as_save_IFS
23094 case $as_dir in #(((
23095 '') as_dir=./ ;;
23096 */) ;;
23097 *) as_dir=$as_dir/ ;;
23098 esac
23099 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23100 done
23101 IFS=$as_save_IFS
23102
23103 ;;
23104 esac
23105 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23106 # in which case we are not to be found in the path.
23107 if test "x$as_myself" = x; then
23108 as_myself=$0
23109 fi
23110 if test ! -f "$as_myself"; then
23111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23112 exit 1
23113 fi
23114
23115
23116
23117 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23118 # ----------------------------------------
23119 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23120 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23121 # script with STATUS, using 1 if that was 0.
23122 as_fn_error ()
23123 {
23124 as_status=$1; test $as_status -eq 0 && as_status=1
23125 if test "$4"; then
23126 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23128 fi
23129 printf "%s\n" "$as_me: error: $2" >&2
23130 as_fn_exit $as_status
23131 } # as_fn_error
23132
23133
23134 # as_fn_set_status STATUS
23135 # -----------------------
23136 # Set $? to STATUS, without forking.
23137 as_fn_set_status ()
23138 {
23139 return $1
23140 } # as_fn_set_status
23141
23142 # as_fn_exit STATUS
23143 # -----------------
23144 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23145 as_fn_exit ()
23146 {
23147 set +e
23148 as_fn_set_status $1
23149 exit $1
23150 } # as_fn_exit
23151
23152 # as_fn_unset VAR
23153 # ---------------
23154 # Portably unset VAR.
23155 as_fn_unset ()
23156 {
23157 { eval $1=; unset $1;}
23158 }
23159 as_unset=as_fn_unset
23160
23161 # as_fn_append VAR VALUE
23162 # ----------------------
23163 # Append the text in VALUE to the end of the definition contained in VAR. Take
23164 # advantage of any shell optimizations that allow amortized linear growth over
23165 # repeated appends, instead of the typical quadratic growth present in naive
23166 # implementations.
23167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23168 then :
23169 eval 'as_fn_append ()
23170 {
23171 eval $1+=\$2
23172 }'
23173 else case e in #(
23174 e) as_fn_append ()
23175 {
23176 eval $1=\$$1\$2
23177 } ;;
23178 esac
23179 fi # as_fn_append
23180
23181 # as_fn_arith ARG...
23182 # ------------------
23183 # Perform arithmetic evaluation on the ARGs, and store the result in the
23184 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23185 # must be portable across $(()) and expr.
23186 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23187 then :
23188 eval 'as_fn_arith ()
23189 {
23190 as_val=$(( $* ))
23191 }'
23192 else case e in #(
23193 e) as_fn_arith ()
23194 {
23195 as_val=`expr "$@" || test $? -eq 1`
23196 } ;;
23197 esac
23198 fi # as_fn_arith
23199
23200
23201 if expr a : '\(a\)' >/dev/null 2>&1 &&
23202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23203 as_expr=expr
23204 else
23205 as_expr=false
23206 fi
23207
23208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23209 as_basename=basename
23210 else
23211 as_basename=false
23212 fi
23213
23214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23215 as_dirname=dirname
23216 else
23217 as_dirname=false
23218 fi
23219
23220 as_me=`$as_basename -- "$0" ||
23221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23222 X"$0" : 'X\(//\)$' \| \
23223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23224 printf "%s\n" X/"$0" |
23225 sed '/^.*\/\([^/][^/]*\)\/*$/{
23226 s//\1/
23227 q
23228 }
23229 /^X\/\(\/\/\)$/{
23230 s//\1/
23231 q
23232 }
23233 /^X\/\(\/\).*/{
23234 s//\1/
23235 q
23236 }
23237 s/.*/./; q'`
23238
23239 # Avoid depending upon Character Ranges.
23240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23243 as_cr_digits='0123456789'
23244 as_cr_alnum=$as_cr_Letters$as_cr_digits
23245
23246
23247 # Determine whether it's possible to make 'echo' print without a newline.
23248 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23249 # for compatibility with existing Makefiles.
23250 ECHO_C= ECHO_N= ECHO_T=
23251 case `echo -n x` in #(((((
23252 -n*)
23253 case `echo 'xy\c'` in
23254 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23255 xy) ECHO_C='\c';;
23256 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23257 ECHO_T=' ';;
23258 esac;;
23259 *)
23260 ECHO_N='-n';;
23261 esac
23262
23263 # For backward compatibility with old third-party macros, we provide
23264 # the shell variables $as_echo and $as_echo_n. New code should use
23265 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23266 as_echo='printf %s\n'
23267 as_echo_n='printf %s'
23268
23269 rm -f conf$$ conf$$.exe conf$$.file
23270 if test -d conf$$.dir; then
23271 rm -f conf$$.dir/conf$$.file
23272 else
23273 rm -f conf$$.dir
23274 mkdir conf$$.dir 2>/dev/null
23275 fi
23276 if (echo >conf$$.file) 2>/dev/null; then
23277 if ln -s conf$$.file conf$$ 2>/dev/null; then
23278 as_ln_s='ln -s'
23279 # ... but there are two gotchas:
23280 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23281 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23282 # In both cases, we have to default to 'cp -pR'.
23283 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23284 as_ln_s='cp -pR'
23285 elif ln conf$$.file conf$$ 2>/dev/null; then
23286 as_ln_s=ln
23287 else
23288 as_ln_s='cp -pR'
23289 fi
23290 else
23291 as_ln_s='cp -pR'
23292 fi
23293 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23294 rmdir conf$$.dir 2>/dev/null
23295
23296
23297 # as_fn_mkdir_p
23298 # -------------
23299 # Create "$as_dir" as a directory, including parents if necessary.
23300 as_fn_mkdir_p ()
23301 {
23302
23303 case $as_dir in #(
23304 -*) as_dir=./$as_dir;;
23305 esac
23306 test -d "$as_dir" || eval $as_mkdir_p || {
23307 as_dirs=
23308 while :; do
23309 case $as_dir in #(
23310 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23311 *) as_qdir=$as_dir;;
23312 esac
23313 as_dirs="'$as_qdir' $as_dirs"
23314 as_dir=`$as_dirname -- "$as_dir" ||
23315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23316 X"$as_dir" : 'X\(//\)[^/]' \| \
23317 X"$as_dir" : 'X\(//\)$' \| \
23318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23319 printf "%s\n" X"$as_dir" |
23320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23321 s//\1/
23322 q
23323 }
23324 /^X\(\/\/\)[^/].*/{
23325 s//\1/
23326 q
23327 }
23328 /^X\(\/\/\)$/{
23329 s//\1/
23330 q
23331 }
23332 /^X\(\/\).*/{
23333 s//\1/
23334 q
23335 }
23336 s/.*/./; q'`
23337 test -d "$as_dir" && break
23338 done
23339 test -z "$as_dirs" || eval "mkdir $as_dirs"
23340 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23341
23342
23343 } # as_fn_mkdir_p
23344 if mkdir -p . 2>/dev/null; then
23345 as_mkdir_p='mkdir -p "$as_dir"'
23346 else
23347 test -d ./-p && rmdir ./-p
23348 as_mkdir_p=false
23349 fi
23350
23351
23352 # as_fn_executable_p FILE
23353 # -----------------------
23354 # Test if FILE is an executable regular file.
23355 as_fn_executable_p ()
23356 {
23357 test -f "$1" && test -x "$1"
23358 } # as_fn_executable_p
23359 as_test_x='test -x'
23360 as_executable_p=as_fn_executable_p
23361
23362 # Sed expression to map a string onto a valid CPP name.
23363 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23364 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23365
23366 # Sed expression to map a string onto a valid variable name.
23367 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23368 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23369
23370
23371 exec 6>&1
23372 ## ----------------------------------- ##
23373 ## Main body of $CONFIG_STATUS script. ##
23374 ## ----------------------------------- ##
23375 _ASEOF
23376 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23377
23378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23379 # Save the log message, to keep $0 and so on meaningful, and to
23380 # report actual input values of CONFIG_FILES etc. instead of their
23381 # values after options handling.
23382 ac_log="
23383 This file was extended by cfitsio $as_me 4.6.3, which was
23384 generated by GNU Autoconf 2.72. Invocation command line was
23385
23386 CONFIG_FILES = $CONFIG_FILES
23387 CONFIG_HEADERS = $CONFIG_HEADERS
23388 CONFIG_LINKS = $CONFIG_LINKS
23389 CONFIG_COMMANDS = $CONFIG_COMMANDS
23390 $ $0 $@
23391
23392 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23393 "
23394
23395 _ACEOF
23396
23397 case $ac_config_files in *"
23398 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23399 esac
23400
23401
23402
23403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23404 # Files that config.status was made for.
23405 config_files="$ac_config_files"
23406 config_commands="$ac_config_commands"
23407
23408 _ACEOF
23409
23410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23411 ac_cs_usage="\
23412 '$as_me' instantiates files and other configuration actions
23413 from templates according to the current configuration. Unless the files
23414 and actions are specified as TAGs, all are instantiated by default.
23415
23416 Usage: $0 [OPTION]... [TAG]...
23417
23418 -h, --help print this help, then exit
23419 -V, --version print version number and configuration settings, then exit
23420 --config print configuration, then exit
23421 -q, --quiet, --silent
23422 do not print progress messages
23423 -d, --debug don't remove temporary files
23424 --recheck update $as_me by reconfiguring in the same conditions
23425 --file=FILE[:TEMPLATE]
23426 instantiate the configuration file FILE
23427
23428 Configuration files:
23429 $config_files
23430
23431 Configuration commands:
23432 $config_commands
23433
23434 Report bugs to the package provider."
23435
23436 _ACEOF
23437 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23438 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23440 ac_cs_config='$ac_cs_config_escaped'
23441 ac_cs_version="\\
23442 cfitsio config.status 4.6.3
23443 configured by $0, generated by GNU Autoconf 2.72,
23444 with options \\"\$ac_cs_config\\"
23445
23446 Copyright (C) 2023 Free Software Foundation, Inc.
23447 This config.status script is free software; the Free Software Foundation
23448 gives unlimited permission to copy, distribute and modify it."
23449
23450 ac_pwd='$ac_pwd'
23451 srcdir='$srcdir'
23452 INSTALL='$INSTALL'
23453 MKDIR_P='$MKDIR_P'
23454 AWK='$AWK'
23455 test -n "\$AWK" || AWK=awk
23456 _ACEOF
23457
23458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23459 # The default lists apply if the user does not specify any file.
23460 ac_need_defaults=:
23461 while test $# != 0
23462 do
23463 case $1 in
23464 --*=?*)
23465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23467 ac_shift=:
23468 ;;
23469 --*=)
23470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23471 ac_optarg=
23472 ac_shift=:
23473 ;;
23474 *)
23475 ac_option=$1
23476 ac_optarg=$2
23477 ac_shift=shift
23478 ;;
23479 esac
23480
23481 case $ac_option in
23482 # Handling of the options.
23483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23484 ac_cs_recheck=: ;;
23485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23486 printf "%s\n" "$ac_cs_version"; exit ;;
23487 --config | --confi | --conf | --con | --co | --c )
23488 printf "%s\n" "$ac_cs_config"; exit ;;
23489 --debug | --debu | --deb | --de | --d | -d )
23490 debug=: ;;
23491 --file | --fil | --fi | --f )
23492 $ac_shift
23493 case $ac_optarg in
23494 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23495 '') as_fn_error $? "missing file argument" ;;
23496 esac
23497 as_fn_append CONFIG_FILES " '$ac_optarg'"
23498 ac_need_defaults=false;;
23499 --he | --h | --help | --hel | -h )
23500 printf "%s\n" "$ac_cs_usage"; exit ;;
23501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23502 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23503 ac_cs_silent=: ;;
23504
23505 # This is an error.
23506 -*) as_fn_error $? "unrecognized option: '$1'
23507 Try '$0 --help' for more information." ;;
23508
23509 *) as_fn_append ac_config_targets " $1"
23510 ac_need_defaults=false ;;
23511
23512 esac
23513 shift
23514 done
23515
23516 ac_configure_extra_args=
23517
23518 if $ac_cs_silent; then
23519 exec 6>/dev/null
23520 ac_configure_extra_args="$ac_configure_extra_args --silent"
23521 fi
23522
23523 _ACEOF
23524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23525 if \$ac_cs_recheck; then
23526 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23527 shift
23528 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23529 CONFIG_SHELL='$SHELL'
23530 export CONFIG_SHELL
23531 exec "\$@"
23532 fi
23533
23534 _ACEOF
23535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23536 exec 5>>config.log
23537 {
23538 echo
23539 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23540 ## Running $as_me. ##
23541 _ASBOX
23542 printf "%s\n" "$ac_log"
23543 } >&5
23544
23545 _ACEOF
23546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23547 #
23548 # INIT-COMMANDS
23549 #
23550 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23551
23552
23553 # The HP-UX ksh and POSIX shell print the target directory to stdout
23554 # if CDPATH is set.
23555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23556
23557 sed_quote_subst='$sed_quote_subst'
23558 double_quote_subst='$double_quote_subst'
23559 delay_variable_subst='$delay_variable_subst'
23560 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23561 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23562 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23563 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23564 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23565 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23566 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23567 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23568 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23569 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23570 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23571 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23572 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23573 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23574 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23575 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23576 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23577 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23578 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23579 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23580 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23581 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23582 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23583 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23584 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23585 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23586 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23587 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23588 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23589 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23590 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23591 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23592 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23593 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23594 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23595 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23596 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23597 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23598 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23599 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23600 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23601 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23602 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23603 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23604 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23605 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23606 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23607 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23608 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23609 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23610 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23611 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23612 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23613 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23614 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23615 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23616 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23617 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23618 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23619 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
23621 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23622 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23623 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23624 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23625 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23626 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23627 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23628 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23629 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23630 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23631 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23632 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23633 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23634 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23635 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23636 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23637 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23638 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23639 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23640 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23641 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23642 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23643 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23644 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23645 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23646 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23647 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23648 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23649 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23650 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23651 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23652 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23653 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23654 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23655 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23656 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23657 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23658 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23659 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23660 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23661 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23662 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23663 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23664 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23665 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23666 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23667 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23668 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23669 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23670 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23671 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23672 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23673 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23674 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23675 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23676 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23677 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23678 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23679 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23680 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23681 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23682 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23683 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23684 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23685 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23686 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23687 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23688 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23689 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23690 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23691 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23692 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23693 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23694 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23695 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23696 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23697 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
23698 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
23699 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
23700 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
23701 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
23702 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
23703 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
23704 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
23705 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
23706 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
23707 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
23708 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
23709 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
23710 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23711 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23712 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
23713 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
23714 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
23715 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
23716 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23717 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
23718 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23719 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
23720 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23721 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23722 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23723 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
23724 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
23725 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
23726 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
23727 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
23728 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
23729 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
23730 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
23731 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
23732 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
23733 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23734 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23735 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23736 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23737 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
23738 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
23739
23740 LTCC='$LTCC'
23741 LTCFLAGS='$LTCFLAGS'
23742 compiler='$compiler_DEFAULT'
23743
23744 # A function that is used when there is no print builtin or printf.
23745 func_fallback_echo ()
23746 {
23747 eval 'cat <<_LTECHO_EOF
23748 \$1
23749 _LTECHO_EOF'
23750 }
23751
23752 # Quote evaled strings.
23753 for var in SHELL \
23754 ECHO \
23755 PATH_SEPARATOR \
23756 SED \
23757 GREP \
23758 EGREP \
23759 FGREP \
23760 LD \
23761 NM \
23762 LN_S \
23763 lt_SP2NL \
23764 lt_NL2SP \
23765 reload_flag \
23766 FILECMD \
23767 OBJDUMP \
23768 deplibs_check_method \
23769 file_magic_cmd \
23770 file_magic_glob \
23771 want_nocaseglob \
23772 DLLTOOL \
23773 sharedlib_from_linklib_cmd \
23774 AR \
23775 archiver_list_spec \
23776 STRIP \
23777 RANLIB \
23778 CC \
23779 CFLAGS \
23780 compiler \
23781 lt_cv_sys_global_symbol_pipe \
23782 lt_cv_sys_global_symbol_to_cdecl \
23783 lt_cv_sys_global_symbol_to_import \
23784 lt_cv_sys_global_symbol_to_c_name_address \
23785 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23786 lt_cv_nm_interface \
23787 nm_file_list_spec \
23788 lt_cv_truncate_bin \
23789 lt_prog_compiler_no_builtin_flag \
23790 lt_prog_compiler_pic \
23791 lt_prog_compiler_wl \
23792 lt_prog_compiler_static \
23793 lt_cv_prog_compiler_c_o \
23794 need_locks \
23795 MANIFEST_TOOL \
23796 DSYMUTIL \
23797 NMEDIT \
23798 LIPO \
23799 OTOOL \
23800 OTOOL64 \
23801 shrext_cmds \
23802 export_dynamic_flag_spec \
23803 whole_archive_flag_spec \
23804 compiler_needs_object \
23805 with_gnu_ld \
23806 allow_undefined_flag \
23807 no_undefined_flag \
23808 hardcode_libdir_flag_spec \
23809 hardcode_libdir_separator \
23810 exclude_expsyms \
23811 include_expsyms \
23812 file_list_spec \
23813 variables_saved_for_relink \
23814 libname_spec \
23815 library_names_spec \
23816 soname_spec \
23817 install_override_mode \
23818 finish_eval \
23819 old_striplib \
23820 striplib \
23821 LD_F77 \
23822 reload_flag_F77 \
23823 compiler_F77 \
23824 lt_prog_compiler_no_builtin_flag_F77 \
23825 lt_prog_compiler_pic_F77 \
23826 lt_prog_compiler_wl_F77 \
23827 lt_prog_compiler_static_F77 \
23828 lt_cv_prog_compiler_c_o_F77 \
23829 export_dynamic_flag_spec_F77 \
23830 whole_archive_flag_spec_F77 \
23831 compiler_needs_object_F77 \
23832 with_gnu_ld_F77 \
23833 allow_undefined_flag_F77 \
23834 no_undefined_flag_F77 \
23835 hardcode_libdir_flag_spec_F77 \
23836 hardcode_libdir_separator_F77 \
23837 exclude_expsyms_F77 \
23838 include_expsyms_F77 \
23839 file_list_spec_F77; do
23840 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23841 *[\\\\\\\`\\"\\\$]*)
23842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23843 ;;
23844 *)
23845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23846 ;;
23847 esac
23848 done
23849
23850 # Double-quote double-evaled strings.
23851 for var in reload_cmds \
23852 old_postinstall_cmds \
23853 old_postuninstall_cmds \
23854 old_archive_cmds \
23855 extract_expsyms_cmds \
23856 old_archive_from_new_cmds \
23857 old_archive_from_expsyms_cmds \
23858 archive_cmds \
23859 archive_expsym_cmds \
23860 module_cmds \
23861 module_expsym_cmds \
23862 export_symbols_cmds \
23863 prelink_cmds \
23864 postlink_cmds \
23865 postinstall_cmds \
23866 postuninstall_cmds \
23867 finish_cmds \
23868 sys_lib_search_path_spec \
23869 configure_time_dlsearch_path \
23870 configure_time_lt_sys_library_path \
23871 reload_cmds_F77 \
23872 old_archive_cmds_F77 \
23873 old_archive_from_new_cmds_F77 \
23874 old_archive_from_expsyms_cmds_F77 \
23875 archive_cmds_F77 \
23876 archive_expsym_cmds_F77 \
23877 module_cmds_F77 \
23878 module_expsym_cmds_F77 \
23879 export_symbols_cmds_F77 \
23880 prelink_cmds_F77 \
23881 postlink_cmds_F77; do
23882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23883 *[\\\\\\\`\\"\\\$]*)
23884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23885 ;;
23886 *)
23887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23888 ;;
23889 esac
23890 done
23891
23892 ac_aux_dir='$ac_aux_dir'
23893
23894 # See if we are running on zsh, and set the options that allow our
23895 # commands through without removal of \ escapes INIT.
23896 if test -n "\${ZSH_VERSION+set}"; then
23897 setopt NO_GLOB_SUBST
23898 fi
23899
23900
23901 PACKAGE='$PACKAGE'
23902 VERSION='$VERSION'
23903 RM='$RM'
23904 ofile='$ofile'
23905
23906
23907
23908 ac_aux_dir='$ac_aux_dir'
23909
23910
23911
23912 _ACEOF
23913
23914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23915
23916 # Handling of arguments.
23917 for ac_config_target in $ac_config_targets
23918 do
23919 case $ac_config_target in
23920 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23921 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23922 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23923 "cfitsio.pc") CONFIG_FILES="$CONFIG_FILES cfitsio.pc" ;;
23924
23925 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
23926 esac
23927 done
23928
23929
23930 # If the user did not use the arguments to specify the items to instantiate,
23931 # then the envvar interface is used. Set only those that are not.
23932 # We use the long form for the default assignment because of an extremely
23933 # bizarre bug on SunOS 4.1.3.
23934 if $ac_need_defaults; then
23935 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23936 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23937 fi
23938
23939 # Have a temporary directory for convenience. Make it in the build tree
23940 # simply because there is no reason against having it here, and in addition,
23941 # creating and moving files from /tmp can sometimes cause problems.
23942 # Hook for its removal unless debugging.
23943 # Note that there is a small window in which the directory will not be cleaned:
23944 # after its creation but before its name has been assigned to '$tmp'.
23945 $debug ||
23946 {
23947 tmp= ac_tmp=
23948 trap 'exit_status=$?
23949 : "${ac_tmp:=$tmp}"
23950 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23951 ' 0
23952 trap 'as_fn_exit 1' 1 2 13 15
23953 }
23954 # Create a (secure) tmp directory for tmp files.
23955
23956 {
23957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23958 test -d "$tmp"
23959 } ||
23960 {
23961 tmp=./conf$$-$RANDOM
23962 (umask 077 && mkdir "$tmp")
23963 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23964 ac_tmp=$tmp
23965
23966 # Set up the scripts for CONFIG_FILES section.
23967 # No need to generate them if there are no CONFIG_FILES.
23968 # This happens for instance with './config.status config.h'.
23969 if test -n "$CONFIG_FILES"; then
23970
23971
23972 ac_cr=`echo X | tr X '\015'`
23973 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23974 # But we know of no other shell where ac_cr would be empty at this
23975 # point, so we can use a bashism as a fallback.
23976 if test "x$ac_cr" = x; then
23977 eval ac_cr=\$\'\\r\'
23978 fi
23979 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23980 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23981 ac_cs_awk_cr='\\r'
23982 else
23983 ac_cs_awk_cr=$ac_cr
23984 fi
23985
23986 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23987 _ACEOF
23988
23989
23990 {
23991 echo "cat >conf$$subs.awk <<_ACEOF" &&
23992 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23993 echo "_ACEOF"
23994 } >conf$$subs.sh ||
23995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23997 ac_delim='%!_!# '
23998 for ac_last_try in false false false false false :; do
23999 . ./conf$$subs.sh ||
24000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24001
24002 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24003 if test $ac_delim_n = $ac_delim_num; then
24004 break
24005 elif $ac_last_try; then
24006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24007 else
24008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24009 fi
24010 done
24011 rm -f conf$$subs.sh
24012
24013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24014 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24015 _ACEOF
24016 sed -n '
24017 h
24018 s/^/S["/; s/!.*/"]=/
24019 p
24020 g
24021 s/^[^!]*!//
24022 :repl
24023 t repl
24024 s/'"$ac_delim"'$//
24025 t delim
24026 :nl
24027 h
24028 s/\(.\{148\}\)..*/\1/
24029 t more1
24030 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24031 p
24032 n
24033 b repl
24034 :more1
24035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24036 p
24037 g
24038 s/.\{148\}//
24039 t nl
24040 :delim
24041 h
24042 s/\(.\{148\}\)..*/\1/
24043 t more2
24044 s/["\\]/\\&/g; s/^/"/; s/$/"/
24045 p
24046 b
24047 :more2
24048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24049 p
24050 g
24051 s/.\{148\}//
24052 t delim
24053 ' <conf$$subs.awk | sed '
24054 /^[^""]/{
24055 N
24056 s/\n//
24057 }
24058 ' >>$CONFIG_STATUS || ac_write_fail=1
24059 rm -f conf$$subs.awk
24060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24061 _ACAWK
24062 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24063 for (key in S) S_is_set[key] = 1
24064 FS = ""
24065
24066 }
24067 {
24068 line = $ 0
24069 nfields = split(line, field, "@")
24070 substed = 0
24071 len = length(field[1])
24072 for (i = 2; i < nfields; i++) {
24073 key = field[i]
24074 keylen = length(key)
24075 if (S_is_set[key]) {
24076 value = S[key]
24077 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24078 len += length(value) + length(field[++i])
24079 substed = 1
24080 } else
24081 len += 1 + keylen
24082 }
24083
24084 print line
24085 }
24086
24087 _ACAWK
24088 _ACEOF
24089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24090 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24091 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24092 else
24093 cat
24094 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24096 _ACEOF
24097
24098 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24099 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24100 # trailing colons and then remove the whole line if VPATH becomes empty
24101 # (actually we leave an empty line to preserve line numbers).
24102 if test "x$srcdir" = x.; then
24103 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24104 h
24105 s///
24106 s/^/:/
24107 s/[ ]*$/:/
24108 s/:\$(srcdir):/:/g
24109 s/:\${srcdir}:/:/g
24110 s/:@srcdir@:/:/g
24111 s/^:*//
24112 s/:*$//
24113 x
24114 s/\(=[ ]*\).*/\1/
24115 G
24116 s/\n//
24117 s/^[^=]*=[ ]*$//
24118 }'
24119 fi
24120
24121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24122 fi # test -n "$CONFIG_FILES"
24123
24124
24125 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
24126 shift
24127 for ac_tag
24128 do
24129 case $ac_tag in
24130 :[FHLC]) ac_mode=$ac_tag; continue;;
24131 esac
24132 case $ac_mode$ac_tag in
24133 :[FHL]*:*);;
24134 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24135 :[FH]-) ac_tag=-:-;;
24136 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24137 esac
24138 ac_save_IFS=$IFS
24139 IFS=:
24140 set x $ac_tag
24141 IFS=$ac_save_IFS
24142 shift
24143 ac_file=$1
24144 shift
24145
24146 case $ac_mode in
24147 :L) ac_source=$1;;
24148 :[FH])
24149 ac_file_inputs=
24150 for ac_f
24151 do
24152 case $ac_f in
24153 -) ac_f="$ac_tmp/stdin";;
24154 *) # Look for the file first in the build tree, then in the source tree
24155 # (if the path is not absolute). The absolute path cannot be DOS-style,
24156 # because $ac_f cannot contain ':'.
24157 test -f "$ac_f" ||
24158 case $ac_f in
24159 [\\/$]*) false;;
24160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24161 esac ||
24162 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24163 esac
24164 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24165 as_fn_append ac_file_inputs " '$ac_f'"
24166 done
24167
24168 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24169 # use $as_me), people would be surprised to read:
24170 # /* config.h. Generated by config.status. */
24171 configure_input='Generated from '`
24172 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24173 `' by configure.'
24174 if test x"$ac_file" != x-; then
24175 configure_input="$ac_file. $configure_input"
24176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24177 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24178 fi
24179 # Neutralize special characters interpreted by sed in replacement strings.
24180 case $configure_input in #(
24181 *\&* | *\|* | *\\* )
24182 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24183 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24184 *) ac_sed_conf_input=$configure_input;;
24185 esac
24186
24187 case $ac_tag in
24188 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24190 esac
24191 ;;
24192 esac
24193
24194 ac_dir=`$as_dirname -- "$ac_file" ||
24195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24196 X"$ac_file" : 'X\(//\)[^/]' \| \
24197 X"$ac_file" : 'X\(//\)$' \| \
24198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24199 printf "%s\n" X"$ac_file" |
24200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24201 s//\1/
24202 q
24203 }
24204 /^X\(\/\/\)[^/].*/{
24205 s//\1/
24206 q
24207 }
24208 /^X\(\/\/\)$/{
24209 s//\1/
24210 q
24211 }
24212 /^X\(\/\).*/{
24213 s//\1/
24214 q
24215 }
24216 s/.*/./; q'`
24217 as_dir="$ac_dir"; as_fn_mkdir_p
24218 ac_builddir=.
24219
24220 case "$ac_dir" in
24221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24222 *)
24223 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24224 # A ".." for each directory in $ac_dir_suffix.
24225 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24226 case $ac_top_builddir_sub in
24227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24229 esac ;;
24230 esac
24231 ac_abs_top_builddir=$ac_pwd
24232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24233 # for backward compatibility:
24234 ac_top_builddir=$ac_top_build_prefix
24235
24236 case $srcdir in
24237 .) # We are building in place.
24238 ac_srcdir=.
24239 ac_top_srcdir=$ac_top_builddir_sub
24240 ac_abs_top_srcdir=$ac_pwd ;;
24241 [\\/]* | ?:[\\/]* ) # Absolute name.
24242 ac_srcdir=$srcdir$ac_dir_suffix;
24243 ac_top_srcdir=$srcdir
24244 ac_abs_top_srcdir=$srcdir ;;
24245 *) # Relative name.
24246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24247 ac_top_srcdir=$ac_top_build_prefix$srcdir
24248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24249 esac
24250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24251
24252
24253 case $ac_mode in
24254 :F)
24255 #
24256 # CONFIG_FILE
24257 #
24258
24259 case $INSTALL in
24260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24262 esac
24263 ac_MKDIR_P=$MKDIR_P
24264 case $MKDIR_P in
24265 [\\/$]* | ?:[\\/]* ) ;;
24266 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24267 esac
24268 _ACEOF
24269
24270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24271 # If the template does not know about datarootdir, expand it.
24272 # FIXME: This hack should be removed a few years after 2.60.
24273 ac_datarootdir_hack=; ac_datarootdir_seen=
24274 ac_sed_dataroot='
24275 /datarootdir/ {
24276 p
24277 q
24278 }
24279 /@datadir@/p
24280 /@docdir@/p
24281 /@infodir@/p
24282 /@localedir@/p
24283 /@mandir@/p'
24284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24285 *datarootdir*) ac_datarootdir_seen=yes;;
24286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24288 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24289 _ACEOF
24290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24291 ac_datarootdir_hack='
24292 s&@datadir@&$datadir&g
24293 s&@docdir@&$docdir&g
24294 s&@infodir@&$infodir&g
24295 s&@localedir@&$localedir&g
24296 s&@mandir@&$mandir&g
24297 s&\\\${datarootdir}&$datarootdir&g' ;;
24298 esac
24299 _ACEOF
24300
24301 # Neutralize VPATH when '$srcdir' = '.'.
24302 # Shell code in configure.ac might set extrasub.
24303 # FIXME: do we really want to maintain this feature?
24304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24305 ac_sed_extra="$ac_vpsub
24306 $extrasub
24307 _ACEOF
24308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24309 :t
24310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24311 s|@configure_input@|$ac_sed_conf_input|;t t
24312 s&@top_builddir@&$ac_top_builddir_sub&;t t
24313 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24314 s&@srcdir@&$ac_srcdir&;t t
24315 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24316 s&@top_srcdir@&$ac_top_srcdir&;t t
24317 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24318 s&@builddir@&$ac_builddir&;t t
24319 s&@abs_builddir@&$ac_abs_builddir&;t t
24320 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24321 s&@INSTALL@&$ac_INSTALL&;t t
24322 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24323 $ac_datarootdir_hack
24324 "
24325 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24326 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24327
24328 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24329 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24331 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24333 which seems to be undefined. Please make sure it is defined" >&5
24334 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24335 which seems to be undefined. Please make sure it is defined" >&2;}
24336
24337 rm -f "$ac_tmp/stdin"
24338 case $ac_file in
24339 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24340 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24341 esac \
24342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24343 ;;
24344
24345
24346 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24347 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24348 ;;
24349 esac
24350
24351
24352 case $ac_file$ac_mode in
24353 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24354 # Older Autoconf quotes --file arguments for eval, but not when files
24355 # are listed without --file. Let's play safe and only enable the eval
24356 # if we detect the quoting.
24357 # TODO: see whether this extra hack can be removed once we start
24358 # requiring Autoconf 2.70 or later.
24359 case $CONFIG_FILES in #(
24360 *\'*) :
24361 eval set x "$CONFIG_FILES" ;; #(
24362 *) :
24363 set x $CONFIG_FILES ;; #(
24364 *) :
24365 ;;
24366 esac
24367 shift
24368 # Used to flag and report bootstrapping failures.
24369 am_rc=0
24370 for am_mf
24371 do
24372 # Strip MF so we end up with the name of the file.
24373 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24374 # Check whether this is an Automake generated Makefile which includes
24375 # dependency-tracking related rules and includes.
24376 # Grep'ing the whole file directly is not great: AIX grep has a line
24377 # limit of 2048, but all sed's we know have understand at least 4000.
24378 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24379 || continue
24380 am_dirpart=`$as_dirname -- "$am_mf" ||
24381 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24382 X"$am_mf" : 'X\(//\)[^/]' \| \
24383 X"$am_mf" : 'X\(//\)$' \| \
24384 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24385 printf "%s\n" X"$am_mf" |
24386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24387 s//\1/
24388 q
24389 }
24390 /^X\(\/\/\)[^/].*/{
24391 s//\1/
24392 q
24393 }
24394 /^X\(\/\/\)$/{
24395 s//\1/
24396 q
24397 }
24398 /^X\(\/\).*/{
24399 s//\1/
24400 q
24401 }
24402 s/.*/./; q'`
24403 am_filepart=`$as_basename -- "$am_mf" ||
24404 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24405 X"$am_mf" : 'X\(//\)$' \| \
24406 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24407 printf "%s\n" X/"$am_mf" |
24408 sed '/^.*\/\([^/][^/]*\)\/*$/{
24409 s//\1/
24410 q
24411 }
24412 /^X\/\(\/\/\)$/{
24413 s//\1/
24414 q
24415 }
24416 /^X\/\(\/\).*/{
24417 s//\1/
24418 q
24419 }
24420 s/.*/./; q'`
24421 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24422 && sed -e '/# am--include-marker/d' "$am_filepart" \
24423 | $MAKE -f - am--depfiles" >&5
24424 (cd "$am_dirpart" \
24425 && sed -e '/# am--include-marker/d' "$am_filepart" \
24426 | $MAKE -f - am--depfiles) >&5 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } || am_rc=$?
24430 done
24431 if test $am_rc -ne 0; then
24432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24433 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24434 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24435 for automatic dependency tracking. If GNU make was not used, consider
24436 re-running the configure script with MAKE=\"gmake\" (or whatever is
24437 necessary). You can also try re-running configure with the
24438 '--disable-dependency-tracking' option to at least be able to build
24439 the package (albeit without support for automatic dependency tracking).
24440 See 'config.log' for more details" "$LINENO" 5; }
24441 fi
24442 { am_dirpart=; unset am_dirpart;}
24443 { am_filepart=; unset am_filepart;}
24444 { am_mf=; unset am_mf;}
24445 { am_rc=; unset am_rc;}
24446 rm -f conftest-deps.mk
24447 }
24448 ;;
24449 "libtool":C)
24450
24451 # See if we are running on zsh, and set the options that allow our
24452 # commands through without removal of \ escapes.
24453 if test -n "${ZSH_VERSION+set}"; then
24454 setopt NO_GLOB_SUBST
24455 fi
24456
24457 cfgfile=${ofile}T
24458 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24459 $RM "$cfgfile"
24460
24461 cat <<_LT_EOF >> "$cfgfile"
24462 #! $SHELL
24463 # Generated automatically by $as_me ($PACKAGE) $VERSION
24464 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24465
24466 # Provide generalized library-building support services.
24467 # Written by Gordon Matzigkeit, 1996
24468
24469 # Copyright (C) 2024 Free Software Foundation, Inc.
24470 # This is free software; see the source for copying conditions. There is NO
24471 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24472
24473 # GNU Libtool is free software; you can redistribute it and/or modify
24474 # it under the terms of the GNU General Public License as published by
24475 # the Free Software Foundation; either version 2 of the License, or
24476 # (at your option) any later version.
24477 #
24478 # As a special exception to the GNU General Public License, if you
24479 # distribute this file as part of a program or library that is built
24480 # using GNU Libtool, you may include this file under the same
24481 # distribution terms that you use for the rest of that program.
24482 #
24483 # GNU Libtool is distributed in the hope that it will be useful, but
24484 # WITHOUT ANY WARRANTY; without even the implied warranty of
24485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24486 # GNU General Public License for more details.
24487 #
24488 # You should have received a copy of the GNU General Public License
24489 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24490
24491
24492 # The names of the tagged configurations supported by this script.
24493 available_tags='F77 '
24494
24495 # Configured defaults for sys_lib_dlsearch_path munging.
24496 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24497
24498 # ### BEGIN LIBTOOL CONFIG
24499
24500 # Which release of libtool.m4 was used?
24501 macro_version=$macro_version
24502 macro_revision=$macro_revision
24503
24504 # Whether or not to build shared libraries.
24505 build_libtool_libs=$enable_shared
24506
24507 # Whether or not to build static libraries.
24508 build_old_libs=$enable_static
24509
24510 # What type of objects to build.
24511 pic_mode=$pic_mode
24512
24513 # Whether or not to optimize for fast installation.
24514 fast_install=$enable_fast_install
24515
24516 # Shared archive member basename,for filename based shared library versioning on AIX.
24517 shared_archive_member_spec=$shared_archive_member_spec
24518
24519 # Shell to use when invoking shell scripts.
24520 SHELL=$lt_SHELL
24521
24522 # An echo program that protects backslashes.
24523 ECHO=$lt_ECHO
24524
24525 # The PATH separator for the build system.
24526 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24527
24528 # The host system.
24529 host_alias=$host_alias
24530 host=$host
24531 host_os=$host_os
24532
24533 # The build system.
24534 build_alias=$build_alias
24535 build=$build
24536 build_os=$build_os
24537
24538 # A sed program that does not truncate output.
24539 SED=$lt_SED
24540
24541 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24542 Xsed="\$SED -e 1s/^X//"
24543
24544 # A grep program that handles long lines.
24545 GREP=$lt_GREP
24546
24547 # An ERE matcher.
24548 EGREP=$lt_EGREP
24549
24550 # A literal string matcher.
24551 FGREP=$lt_FGREP
24552
24553 # A BSD- or MS-compatible name lister.
24554 NM=$lt_NM
24555
24556 # Whether we need soft or hard links.
24557 LN_S=$lt_LN_S
24558
24559 # What is the maximum length of a command?
24560 max_cmd_len=$max_cmd_len
24561
24562 # Object file suffix (normally "o").
24563 objext=$ac_objext
24564
24565 # Executable file suffix (normally "").
24566 exeext=$exeext
24567
24568 # whether the shell understands "unset".
24569 lt_unset=$lt_unset
24570
24571 # turn spaces into newlines.
24572 SP2NL=$lt_lt_SP2NL
24573
24574 # turn newlines into spaces.
24575 NL2SP=$lt_lt_NL2SP
24576
24577 # convert \$build file names to \$host format.
24578 to_host_file_cmd=$lt_cv_to_host_file_cmd
24579
24580 # convert \$build files to toolchain format.
24581 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24582
24583 # A file(cmd) program that detects file types.
24584 FILECMD=$lt_FILECMD
24585
24586 # An object symbol dumper.
24587 OBJDUMP=$lt_OBJDUMP
24588
24589 # Method to check whether dependent libraries are shared objects.
24590 deplibs_check_method=$lt_deplibs_check_method
24591
24592 # Command to use when deplibs_check_method = "file_magic".
24593 file_magic_cmd=$lt_file_magic_cmd
24594
24595 # How to find potential files when deplibs_check_method = "file_magic".
24596 file_magic_glob=$lt_file_magic_glob
24597
24598 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24599 want_nocaseglob=$lt_want_nocaseglob
24600
24601 # DLL creation program.
24602 DLLTOOL=$lt_DLLTOOL
24603
24604 # Command to associate shared and link libraries.
24605 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24606
24607 # The archiver.
24608 AR=$lt_AR
24609
24610 # Flags to create an archive (by configure).
24611 lt_ar_flags=$lt_ar_flags
24612
24613 # Flags to create an archive.
24614 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24615
24616 # How to feed a file listing to the archiver.
24617 archiver_list_spec=$lt_archiver_list_spec
24618
24619 # A symbol stripping program.
24620 STRIP=$lt_STRIP
24621
24622 # Commands used to install an old-style archive.
24623 RANLIB=$lt_RANLIB
24624 old_postinstall_cmds=$lt_old_postinstall_cmds
24625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24626
24627 # Whether to use a lock for old archive extraction.
24628 lock_old_archive_extraction=$lock_old_archive_extraction
24629
24630 # A C compiler.
24631 LTCC=$lt_CC
24632
24633 # LTCC compiler flags.
24634 LTCFLAGS=$lt_CFLAGS
24635
24636 # Take the output of nm and produce a listing of raw symbols and C names.
24637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24638
24639 # Transform the output of nm in a proper C declaration.
24640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24641
24642 # Transform the output of nm into a list of symbols to manually relocate.
24643 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24644
24645 # Transform the output of nm in a C name address pair.
24646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24647
24648 # Transform the output of nm in a C name address pair when lib prefix is needed.
24649 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24650
24651 # The name lister interface.
24652 nm_interface=$lt_lt_cv_nm_interface
24653
24654 # Specify filename containing input files for \$NM.
24655 nm_file_list_spec=$lt_nm_file_list_spec
24656
24657 # The root where to search for dependent libraries,and where our libraries should be installed.
24658 lt_sysroot=$lt_sysroot
24659
24660 # Command to truncate a binary pipe.
24661 lt_truncate_bin=$lt_lt_cv_truncate_bin
24662
24663 # The name of the directory that contains temporary libtool files.
24664 objdir=$objdir
24665
24666 # Used to examine libraries when file_magic_cmd begins with "file".
24667 MAGIC_CMD=$MAGIC_CMD
24668
24669 # Must we lock files when doing compilation?
24670 need_locks=$lt_need_locks
24671
24672 # Manifest tool.
24673 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24674
24675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24676 DSYMUTIL=$lt_DSYMUTIL
24677
24678 # Tool to change global to local symbols on Mac OS X.
24679 NMEDIT=$lt_NMEDIT
24680
24681 # Tool to manipulate fat objects and archives on Mac OS X.
24682 LIPO=$lt_LIPO
24683
24684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24685 OTOOL=$lt_OTOOL
24686
24687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24688 OTOOL64=$lt_OTOOL64
24689
24690 # Old archive suffix (normally "a").
24691 libext=$libext
24692
24693 # Shared library suffix (normally ".so").
24694 shrext_cmds=$lt_shrext_cmds
24695
24696 # The commands to extract the exported symbol list from a shared archive.
24697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24698
24699 # Variables whose values should be saved in libtool wrapper scripts and
24700 # restored at link time.
24701 variables_saved_for_relink=$lt_variables_saved_for_relink
24702
24703 # Do we need the "lib" prefix for modules?
24704 need_lib_prefix=$need_lib_prefix
24705
24706 # Do we need a version for libraries?
24707 need_version=$need_version
24708
24709 # Library versioning type.
24710 version_type=$version_type
24711
24712 # Shared library runtime path variable.
24713 runpath_var=$runpath_var
24714
24715 # Shared library path variable.
24716 shlibpath_var=$shlibpath_var
24717
24718 # Is shlibpath searched before the hard-coded library search path?
24719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24720
24721 # Format of library name prefix.
24722 libname_spec=$lt_libname_spec
24723
24724 # List of archive names. First name is the real one, the rest are links.
24725 # The last name is the one that the linker finds with -lNAME
24726 library_names_spec=$lt_library_names_spec
24727
24728 # The coded name of the library, if different from the real name.
24729 soname_spec=$lt_soname_spec
24730
24731 # Permission mode override for installation of shared libraries.
24732 install_override_mode=$lt_install_override_mode
24733
24734 # Command to use after installation of a shared archive.
24735 postinstall_cmds=$lt_postinstall_cmds
24736
24737 # Command to use after uninstallation of a shared archive.
24738 postuninstall_cmds=$lt_postuninstall_cmds
24739
24740 # Commands used to finish a libtool library installation in a directory.
24741 finish_cmds=$lt_finish_cmds
24742
24743 # As "finish_cmds", except a single script fragment to be evaled but
24744 # not shown.
24745 finish_eval=$lt_finish_eval
24746
24747 # Whether we should hardcode library paths into libraries.
24748 hardcode_into_libs=$hardcode_into_libs
24749
24750 # Compile-time system search path for libraries.
24751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24752
24753 # Detected run-time system search path for libraries.
24754 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24755
24756 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24757 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24758
24759 # Whether dlopen is supported.
24760 dlopen_support=$enable_dlopen
24761
24762 # Whether dlopen of programs is supported.
24763 dlopen_self=$enable_dlopen_self
24764
24765 # Whether dlopen of statically linked programs is supported.
24766 dlopen_self_static=$enable_dlopen_self_static
24767
24768 # Commands to strip libraries.
24769 old_striplib=$lt_old_striplib
24770 striplib=$lt_striplib
24771
24772
24773 # The linker used to build libraries.
24774 LD=$lt_LD
24775
24776 # How to create reloadable object files.
24777 reload_flag=$lt_reload_flag
24778 reload_cmds=$lt_reload_cmds
24779
24780 # Commands used to build an old-style archive.
24781 old_archive_cmds=$lt_old_archive_cmds
24782
24783 # A language specific compiler.
24784 CC=$lt_compiler
24785
24786 # Is the compiler the GNU compiler?
24787 with_gcc=$GCC
24788
24789 # Compiler flag to turn off builtin functions.
24790 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24791
24792 # Additional compiler flags for building library objects.
24793 pic_flag=$lt_lt_prog_compiler_pic
24794
24795 # How to pass a linker flag through the compiler.
24796 wl=$lt_lt_prog_compiler_wl
24797
24798 # Compiler flag to prevent dynamic linking.
24799 link_static_flag=$lt_lt_prog_compiler_static
24800
24801 # Does compiler simultaneously support -c and -o options?
24802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24803
24804 # Whether or not to add -lc for building shared libraries.
24805 build_libtool_need_lc=$archive_cmds_need_lc
24806
24807 # Whether or not to disallow shared libs when runtime libs are static.
24808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24809
24810 # Compiler flag to allow reflexive dlopens.
24811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24812
24813 # Compiler flag to generate shared objects directly from archives.
24814 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24815
24816 # Whether the compiler copes with passing no objects directly.
24817 compiler_needs_object=$lt_compiler_needs_object
24818
24819 # Create an old-style archive from a shared archive.
24820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24821
24822 # Create a temporary old-style archive to link instead of a shared archive.
24823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24824
24825 # Commands used to build a shared archive.
24826 archive_cmds=$lt_archive_cmds
24827 archive_expsym_cmds=$lt_archive_expsym_cmds
24828
24829 # Commands used to build a loadable module if different from building
24830 # a shared archive.
24831 module_cmds=$lt_module_cmds
24832 module_expsym_cmds=$lt_module_expsym_cmds
24833
24834 # Whether we are building with GNU ld or not.
24835 with_gnu_ld=$lt_with_gnu_ld
24836
24837 # Flag that allows shared libraries with undefined symbols to be built.
24838 allow_undefined_flag=$lt_allow_undefined_flag
24839
24840 # Flag that enforces no undefined symbols.
24841 no_undefined_flag=$lt_no_undefined_flag
24842
24843 # Flag to hardcode \$libdir into a binary during linking.
24844 # This must work even if \$libdir does not exist
24845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24846
24847 # Whether we need a single "-rpath" flag with a separated argument.
24848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24849
24850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24851 # DIR into the resulting binary.
24852 hardcode_direct=$hardcode_direct
24853
24854 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24855 # DIR into the resulting binary and the resulting library dependency is
24856 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
24857 # library is relocated.
24858 hardcode_direct_absolute=$hardcode_direct_absolute
24859
24860 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24861 # into the resulting binary.
24862 hardcode_minus_L=$hardcode_minus_L
24863
24864 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24865 # into the resulting binary.
24866 hardcode_shlibpath_var=$hardcode_shlibpath_var
24867
24868 # Set to "yes" if building a shared library automatically hardcodes DIR
24869 # into the library and all subsequent libraries and executables linked
24870 # against it.
24871 hardcode_automatic=$hardcode_automatic
24872
24873 # Set to yes if linker adds runtime paths of dependent libraries
24874 # to runtime path list.
24875 inherit_rpath=$inherit_rpath
24876
24877 # Whether libtool must link a program against all its dependency libraries.
24878 link_all_deplibs=$link_all_deplibs
24879
24880 # Set to "yes" if exported symbols are required.
24881 always_export_symbols=$always_export_symbols
24882
24883 # The commands to list exported symbols.
24884 export_symbols_cmds=$lt_export_symbols_cmds
24885
24886 # Symbols that should not be listed in the preloaded symbols.
24887 exclude_expsyms=$lt_exclude_expsyms
24888
24889 # Symbols that must always be exported.
24890 include_expsyms=$lt_include_expsyms
24891
24892 # Commands necessary for linking programs (against libraries) with templates.
24893 prelink_cmds=$lt_prelink_cmds
24894
24895 # Commands necessary for finishing linking programs.
24896 postlink_cmds=$lt_postlink_cmds
24897
24898 # Specify filename containing input files.
24899 file_list_spec=$lt_file_list_spec
24900
24901 # How to hardcode a shared library path into an executable.
24902 hardcode_action=$hardcode_action
24903
24904 # ### END LIBTOOL CONFIG
24905
24906 _LT_EOF
24907
24908 cat <<'_LT_EOF' >> "$cfgfile"
24909
24910 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24911
24912 # func_munge_path_list VARIABLE PATH
24913 # -----------------------------------
24914 # VARIABLE is name of variable containing _space_ separated list of
24915 # directories to be munged by the contents of PATH, which is string
24916 # having a format:
24917 # "DIR[:DIR]:"
24918 # string "DIR[ DIR]" will be prepended to VARIABLE
24919 # ":DIR[:DIR]"
24920 # string "DIR[ DIR]" will be appended to VARIABLE
24921 # "DIRP[:DIRP]::[DIRA:]DIRA"
24922 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24923 # "DIRA[ DIRA]" will be appended to VARIABLE
24924 # "DIR[:DIR]"
24925 # VARIABLE will be replaced by "DIR[ DIR]"
24926 func_munge_path_list ()
24927 {
24928 case x$2 in
24929 x)
24930 ;;
24931 *:)
24932 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24933 ;;
24934 x:*)
24935 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24936 ;;
24937 *::*)
24938 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24939 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24940 ;;
24941 *)
24942 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24943 ;;
24944 esac
24945 }
24946
24947
24948 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24949 func_cc_basename ()
24950 {
24951 for cc_temp in $*""; do
24952 case $cc_temp in
24953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24955 \-*) ;;
24956 *) break;;
24957 esac
24958 done
24959 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24960 }
24961
24962
24963 # ### END FUNCTIONS SHARED WITH CONFIGURE
24964
24965 _LT_EOF
24966
24967 case $host_os in
24968 aix3*)
24969 cat <<\_LT_EOF >> "$cfgfile"
24970 # AIX sometimes has problems with the GCC collect2 program. For some
24971 # reason, if we set the COLLECT_NAMES environment variable, the problems
24972 # vanish in a puff of smoke.
24973 if test set != "${COLLECT_NAMES+set}"; then
24974 COLLECT_NAMES=
24975 export COLLECT_NAMES
24976 fi
24977 _LT_EOF
24978 ;;
24979 esac
24980
24981
24982
24983 ltmain=$ac_aux_dir/ltmain.sh
24984
24985
24986 # We use sed instead of cat because bash on DJGPP gets confused if
24987 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24988 # text mode, it properly converts lines to CR/LF. This bash problem
24989 # is reportedly fixed, but why not run on old versions too?
24990 $SED '$q' "$ltmain" >> "$cfgfile" \
24991 || (rm -f "$cfgfile"; exit 1)
24992
24993 mv -f "$cfgfile" "$ofile" ||
24994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24995 chmod +x "$ofile"
24996
24997
24998 cat <<_LT_EOF >> "$ofile"
24999
25000 # ### BEGIN LIBTOOL TAG CONFIG: F77
25001
25002 # The linker used to build libraries.
25003 LD=$lt_LD_F77
25004
25005 # How to create reloadable object files.
25006 reload_flag=$lt_reload_flag_F77
25007 reload_cmds=$lt_reload_cmds_F77
25008
25009 # Commands used to build an old-style archive.
25010 old_archive_cmds=$lt_old_archive_cmds_F77
25011
25012 # A language specific compiler.
25013 CC=$lt_compiler_F77
25014
25015 # Is the compiler the GNU compiler?
25016 with_gcc=$GCC_F77
25017
25018 # Compiler flag to turn off builtin functions.
25019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
25020
25021 # Additional compiler flags for building library objects.
25022 pic_flag=$lt_lt_prog_compiler_pic_F77
25023
25024 # How to pass a linker flag through the compiler.
25025 wl=$lt_lt_prog_compiler_wl_F77
25026
25027 # Compiler flag to prevent dynamic linking.
25028 link_static_flag=$lt_lt_prog_compiler_static_F77
25029
25030 # Does compiler simultaneously support -c and -o options?
25031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
25032
25033 # Whether or not to add -lc for building shared libraries.
25034 build_libtool_need_lc=$archive_cmds_need_lc_F77
25035
25036 # Whether or not to disallow shared libs when runtime libs are static.
25037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
25038
25039 # Compiler flag to allow reflexive dlopens.
25040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
25041
25042 # Compiler flag to generate shared objects directly from archives.
25043 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
25044
25045 # Whether the compiler copes with passing no objects directly.
25046 compiler_needs_object=$lt_compiler_needs_object_F77
25047
25048 # Create an old-style archive from a shared archive.
25049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
25050
25051 # Create a temporary old-style archive to link instead of a shared archive.
25052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
25053
25054 # Commands used to build a shared archive.
25055 archive_cmds=$lt_archive_cmds_F77
25056 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
25057
25058 # Commands used to build a loadable module if different from building
25059 # a shared archive.
25060 module_cmds=$lt_module_cmds_F77
25061 module_expsym_cmds=$lt_module_expsym_cmds_F77
25062
25063 # Whether we are building with GNU ld or not.
25064 with_gnu_ld=$lt_with_gnu_ld_F77
25065
25066 # Flag that allows shared libraries with undefined symbols to be built.
25067 allow_undefined_flag=$lt_allow_undefined_flag_F77
25068
25069 # Flag that enforces no undefined symbols.
25070 no_undefined_flag=$lt_no_undefined_flag_F77
25071
25072 # Flag to hardcode \$libdir into a binary during linking.
25073 # This must work even if \$libdir does not exist
25074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
25075
25076 # Whether we need a single "-rpath" flag with a separated argument.
25077 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
25078
25079 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25080 # DIR into the resulting binary.
25081 hardcode_direct=$hardcode_direct_F77
25082
25083 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25084 # DIR into the resulting binary and the resulting library dependency is
25085 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25086 # library is relocated.
25087 hardcode_direct_absolute=$hardcode_direct_absolute_F77
25088
25089 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25090 # into the resulting binary.
25091 hardcode_minus_L=$hardcode_minus_L_F77
25092
25093 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25094 # into the resulting binary.
25095 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
25096
25097 # Set to "yes" if building a shared library automatically hardcodes DIR
25098 # into the library and all subsequent libraries and executables linked
25099 # against it.
25100 hardcode_automatic=$hardcode_automatic_F77
25101
25102 # Set to yes if linker adds runtime paths of dependent libraries
25103 # to runtime path list.
25104 inherit_rpath=$inherit_rpath_F77
25105
25106 # Whether libtool must link a program against all its dependency libraries.
25107 link_all_deplibs=$link_all_deplibs_F77
25108
25109 # Set to "yes" if exported symbols are required.
25110 always_export_symbols=$always_export_symbols_F77
25111
25112 # The commands to list exported symbols.
25113 export_symbols_cmds=$lt_export_symbols_cmds_F77
25114
25115 # Symbols that should not be listed in the preloaded symbols.
25116 exclude_expsyms=$lt_exclude_expsyms_F77
25117
25118 # Symbols that must always be exported.
25119 include_expsyms=$lt_include_expsyms_F77
25120
25121 # Commands necessary for linking programs (against libraries) with templates.
25122 prelink_cmds=$lt_prelink_cmds_F77
25123
25124 # Commands necessary for finishing linking programs.
25125 postlink_cmds=$lt_postlink_cmds_F77
25126
25127 # Specify filename containing input files.
25128 file_list_spec=$lt_file_list_spec_F77
25129
25130 # How to hardcode a shared library path into an executable.
25131 hardcode_action=$hardcode_action_F77
25132
25133 # ### END LIBTOOL TAG CONFIG: F77
25134 _LT_EOF
25135
25136 ;;
25137
25138 esac
25139 done # for ac_tag
25140
25141
25142 as_fn_exit 0
25143 _ACEOF
25144 ac_clean_files=$ac_clean_files_save
25145
25146 test $ac_write_fail = 0 ||
25147 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25148
25149
25150 # configure is writing to config.log, and then calls config.status.
25151 # config.status does its own redirection, appending to config.log.
25152 # Unfortunately, on DOS this fails, as config.log is still kept open
25153 # by configure, so config.status won't be able to write to it; its
25154 # output is simply discarded. So we exec the FD to /dev/null,
25155 # effectively closing config.log, so it can be properly (re)opened and
25156 # appended to by config.status. When coming back to configure, we
25157 # need to make the FD available again.
25158 if test "$no_create" != yes; then
25159 ac_cs_success=:
25160 ac_config_status_args=
25161 test "$silent" = yes &&
25162 ac_config_status_args="$ac_config_status_args --quiet"
25163 exec 5>/dev/null
25164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25165 exec 5>>config.log
25166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25167 # would make configure fail if this is the last instruction.
25168 $ac_cs_success || as_fn_exit 1
25169 fi
25170 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25172 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25173 fi
25174
25175
25176
25177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
25178 printf "%s\n" "" >&6; }
25179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Congratulations, Makefile update was successful." >&5
25180 printf "%s\n" " Congratulations, Makefile update was successful." >&6; }
25181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: You may want to run make now." >&5
25182 printf "%s\n" " You may want to run make now." >&6; }
25183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
25184 printf "%s\n" "" >&6; }
25185