Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for nauty 2.9.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including
283 $0: any error possibly output before this message. Then
284 $0: install a modern shell, or manually run the script
285 $0: under such a shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='nauty'
616 PACKAGE_TARNAME='nauty'
617 PACKAGE_VERSION='2.9.3'
618 PACKAGE_STRING='nauty 2.9.3'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="nauty-h.in"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='LTLIBOBJS
658 LIBOBJS
659 olist
660 osuffix
661 enable_static
662 LT_SYS_LIBRARY_PATH
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 AWK
670 RANLIB
671 STRIP
672 ac_ct_AR
673 AR
674 DLLTOOL
675 OBJDUMP
676 FILECMD
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 SED
684 LIBTOOL
685 have_gunzip
686 gunzip_prog
687 pkgconfigdir
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 MKDIR_P
692 edit_msg
693 sort_size_ok
694 sort_newparams_ok
695 cygnoun
696 sort_prog
697 allow_interrupt
698 have_ansicontrols
699 use_tls
700 tls_supported
701 ac_cv_tls
702 ac_cv_noret
703 stdio_nolock
704 have_flockfile
705 shortg_or_null
706 default_wordsize
707 have_clzll
708 have_clzl
709 have_clz
710 have_hwlzcnt
711 MORECFLAGS
712 have_mmpop64
713 have_mmpop32
714 have_popcntll
715 have_popcntl
716 have_popcnt
717 have_hwpopcnt
718 EGREP
719 GREP
720 have_write
721 have_sigprocmask
722 have_sigaction
723 have_fseeko
724 have_fork
725 have_setenv
726 have_putenv
727 have_popen
728 have_wait
729 have_pipe
730 have_perror
731 have_getrusage
732 have_times
733 have_clock
734 have_clock_gettime
735 have_gettimeofday
736 have_time
737 have_isatty
738 nautests
739 testprogs
740 TLSQlibs_or_null
741 Qlibs_or_null
742 runonetestQ
743 ac_cv_sizeof_unsigned___int128
744 ac_cv_sizeof___uint128_t
745 ac_cv_sizeof_voidp
746 ac_cv_sizeof_long_long
747 ac_cv_sizeof_long
748 ac_cv_sizeof_int
749 flex_array_ok
750 malloc_dec
751 CPP
752 sigaltstack_dec
753 setenv_dec
754 putenv_dec
755 fdopen_dec
756 gettimeofday_dec
757 fseeko_dec
758 flockfile_dec
759 unlocked_dec
760 popen_dec
761 ftell_dec
762 have_pid_t
763 header_endian_h
764 header_stdint_h
765 header_limits_h
766 header_signal_h
767 header_errno_h
768 header_sys_types_h
769 header_sys_wait_h
770 header_string_h
771 header_stdlib_h
772 header_unistd_h
773 header_stddef_h
774 ac_cv_sys_largefile_source
775 nauty_largefile
776 OBJEXT
777 EXEEXT
778 ac_ct_CC
779 CPPFLAGS
780 LDFLAGS
781 CFLAGS
782 CC
783 is_ARM64
784 host_os
785 host_vendor
786 host_cpu
787 host
788 build_os
789 build_vendor
790 build_cpu
791 build
792 target_alias
793 host_alias
794 build_alias
795 LIBS
796 ECHO_T
797 ECHO_N
798 ECHO_C
799 DEFS
800 mandir
801 localedir
802 libdir
803 psdir
804 pdfdir
805 dvidir
806 htmldir
807 infodir
808 docdir
809 oldincludedir
810 includedir
811 runstatedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_popcnt
835 enable_clz
836 enable_generic
837 enable_tls
838 enable_ansi
839 enable_interrupt
840 enable_wordsize
841 enable_wordsize128
842 enable_largefile
843 with_pkgconfigdir
844 enable_shared
845 enable_static
846 enable_pic
847 with_pic
848 enable_fast_install
849 enable_aix_soname
850 with_aix_soname
851 with_gnu_ld
852 with_sysroot
853 enable_libtool_lock
854 enable_year2038
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CPP
865 LT_SYS_LIBRARY_PATH'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
916
917 ac_prev=
918 ac_dashdash=
919 for ac_option
920 do
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
926 fi
927
928 case $ac_option in
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *=) ac_optarg= ;;
931 *) ac_optarg=yes ;;
932 esac
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: '$ac_useropt'"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: '$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: '$ac_useropt'"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1258
1259 -*) as_fn_error $? "unrecognized option: '$ac_option'
1260 Try '$0 --help' for more information"
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1272
1273 *)
1274 # FIXME: should be removed in autoconf 3.0.
1275 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 ;;
1280
1281 esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1302 do
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: '$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 'configure' configures nauty 2.9.3 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print 'checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for '--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or '..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, 'make install' will install all the files in
1441 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than '$ac_default_prefix' using '--prefix',
1443 for instance '--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/nauty]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of nauty 2.9.3:";;
1481 esac
1482 cat <<\_ACEOF
1483
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-popcnt Disable popcnt extensions
1489 --disable-clz Disable clz extensions
1490 --enable-generic Disable -march=native switch
1491 --enable-tls Enable thread-local storage
1492 --enable-ansi Enable ANSI controls in output
1493 --disable-interrupt Disable interrupt catching in nauty&traces
1494 --enable-wordsize=value Override default WORDSIZE choice
1495 --disable-wordsize128 Disable 128-bit components
1496 --disable-largefile omit support for large files
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-static[=PKGS] build static libraries [default=yes]
1499 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --enable-aix-soname=aix|svr4|both
1504 shared library versioning (aka "SONAME") variant to
1505 provide on AIX, [default=aix].
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-year2038 support timestamps after 2038
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-pkgconfigdir=DIR directory for .pc files
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1515 compiler's sysroot if not specified).
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor
1526 LT_SYS_LIBRARY_PATH
1527 User-defined run-time library search path.
1528
1529 Use these variables to override the choices made by 'configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to <[email protected]>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for configure.gnu first; this name is used for a wrapper for
1579 # Metaconfig's "Configure" on case-insensitive file systems.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 nauty configure 2.9.3
1597 generated by GNU Autoconf 2.72
1598
1599 Copyright (C) 2023 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest.beam
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 printf "%s\n" "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext
1636 then :
1637 ac_retval=0
1638 else case e in #(
1639 e) printf "%s\n" "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1 ;;
1643 esac
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists and can be compiled using the include files in
1653 # INCLUDES, setting the cache variable VAR accordingly.
1654 ac_fn_c_check_header_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 printf %s "checking for $2... " >&6; }
1659 if eval test \${$3+y}
1660 then :
1661 printf %s "(cached) " >&6
1662 else case e in #(
1663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"
1669 then :
1670 eval "$3=yes"
1671 else case e in #(
1672 e) eval "$3=no" ;;
1673 esac
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1676 esac
1677 fi
1678 eval ac_res=\$$3
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 printf "%s\n" "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_compile
1684
1685 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1686 # -------------------------------------------
1687 # Tests whether TYPE exists after having included INCLUDES, setting cache
1688 # variable VAR accordingly.
1689 ac_fn_c_check_type ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 printf %s "checking for $2... " >&6; }
1694 if eval test \${$3+y}
1695 then :
1696 printf %s "(cached) " >&6
1697 else case e in #(
1698 e) eval "$3=no"
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 int
1703 main (void)
1704 {
1705 if (sizeof ($2))
1706 return 0;
1707 ;
1708 return 0;
1709 }
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"
1712 then :
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 $4
1716 int
1717 main (void)
1718 {
1719 if (sizeof (($2)))
1720 return 0;
1721 ;
1722 return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"
1726 then :
1727
1728 else case e in #(
1729 e) eval "$3=yes" ;;
1730 esac
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1735 esac
1736 fi
1737 eval ac_res=\$$3
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 printf "%s\n" "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741
1742 } # ac_fn_c_check_type
1743
1744 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1745 # ------------------------------------------------------------------
1746 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1747 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1748 ac_fn_check_decl ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 as_decl_name=`echo $2|sed 's/ *(.*//'`
1752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1753 printf %s "checking whether $as_decl_name is declared... " >&6; }
1754 if eval test \${$3+y}
1755 then :
1756 printf %s "(cached) " >&6
1757 else case e in #(
1758 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1759 eval ac_save_FLAGS=\$$6
1760 as_fn_append $6 " $5"
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 int
1765 main (void)
1766 {
1767 #ifndef $as_decl_name
1768 #ifdef __cplusplus
1769 (void) $as_decl_use;
1770 #else
1771 (void) $as_decl_name;
1772 #endif
1773 #endif
1774
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"
1780 then :
1781 eval "$3=yes"
1782 else case e in #(
1783 e) eval "$3=no" ;;
1784 esac
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1787 eval $6=\$ac_save_FLAGS
1788 ;;
1789 esac
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_check_decl
1797
1798 # ac_fn_c_try_cpp LINENO
1799 # ----------------------
1800 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_cpp ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if { { ac_try="$ac_cpp conftest.$ac_ext"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 printf "%s\n" "$ac_try_echo"; } >&5
1811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } > conftest.i && {
1820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 }
1823 then :
1824 ac_retval=0
1825 else case e in #(
1826 e) printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1 ;;
1830 esac
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_cpp
1836
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1840 # executables *can* be run.
1841 ac_fn_c_try_run ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 printf "%s\n" "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 printf "%s\n" "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }
1865 then :
1866 ac_retval=0
1867 else case e in #(
1868 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1869 printf "%s\n" "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=$ac_status ;;
1873 esac
1874 fi
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_c_try_run
1880
1881 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1882 # --------------------------------------------
1883 # Tries to find the compile-time value of EXPR in a program that includes
1884 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1885 # computed
1886 ac_fn_c_compute_int ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if test "$cross_compiling" = yes; then
1890 # Depending upon the size, compute the lo and hi bounds.
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 int
1895 main (void)
1896 {
1897 static int test_array [1 - 2 * !(($2) >= 0)];
1898 test_array [0] = 0;
1899 return test_array [0];
1900
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"
1906 then :
1907 ac_lo=0 ac_mid=0
1908 while :; do
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 int
1913 main (void)
1914 {
1915 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1916 test_array [0] = 0;
1917 return test_array [0];
1918
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"
1924 then :
1925 ac_hi=$ac_mid; break
1926 else case e in #(
1927 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1928 if test $ac_lo -le $ac_mid; then
1929 ac_lo= ac_hi=
1930 break
1931 fi
1932 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1933 esac
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1936 done
1937 else case e in #(
1938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 int
1942 main (void)
1943 {
1944 static int test_array [1 - 2 * !(($2) < 0)];
1945 test_array [0] = 0;
1946 return test_array [0];
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"
1953 then :
1954 ac_hi=-1 ac_mid=-1
1955 while :; do
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 int
1960 main (void)
1961 {
1962 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"
1971 then :
1972 ac_lo=$ac_mid; break
1973 else case e in #(
1974 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1975 if test $ac_mid -le $ac_hi; then
1976 ac_lo= ac_hi=
1977 break
1978 fi
1979 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1980 esac
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1983 done
1984 else case e in #(
1985 e) ac_lo= ac_hi= ;;
1986 esac
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1989 esac
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1992 # Binary search between lo and hi bounds.
1993 while test "x$ac_lo" != "x$ac_hi"; do
1994 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 $4
1998 int
1999 main (void)
2000 {
2001 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2002 test_array [0] = 0;
2003 return test_array [0];
2004
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"
2010 then :
2011 ac_hi=$ac_mid
2012 else case e in #(
2013 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2014 esac
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2017 done
2018 case $ac_lo in #((
2019 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2020 '') ac_retval=1 ;;
2021 esac
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 static long int longval (void) { return $2; }
2027 static unsigned long int ulongval (void) { return $2; }
2028 #include <stdio.h>
2029 #include <stdlib.h>
2030 int
2031 main (void)
2032 {
2033
2034 FILE *f = fopen ("conftest.val", "w");
2035 if (! f)
2036 return 1;
2037 if (($2) < 0)
2038 {
2039 long int i = longval ();
2040 if (i != ($2))
2041 return 1;
2042 fprintf (f, "%ld", i);
2043 }
2044 else
2045 {
2046 unsigned long int i = ulongval ();
2047 if (i != ($2))
2048 return 1;
2049 fprintf (f, "%lu", i);
2050 }
2051 /* Do not output a trailing newline, as this causes \r\n confusion
2052 on some platforms. */
2053 return ferror (f) || fclose (f) != 0;
2054
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_run "$LINENO"
2060 then :
2061 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062 else case e in #(
2063 e) ac_retval=1 ;;
2064 esac
2065 fi
2066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2067 conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 rm -f conftest.val
2069
2070 fi
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2073
2074 } # ac_fn_c_compute_int
2075
2076 # ac_fn_c_try_link LINENO
2077 # -----------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 ac_fn_c_try_link ()
2080 {
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2083 if { { ac_try="$ac_link"
2084 case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 printf "%s\n" "$ac_try_echo"; } >&5
2090 (eval "$ac_link") 2>conftest.err
2091 ac_status=$?
2092 if test -s conftest.err; then
2093 grep -v '^ *+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2096 fi
2097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_c_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest$ac_exeext && {
2102 test "$cross_compiling" = yes ||
2103 test -x conftest$ac_exeext
2104 }
2105 then :
2106 ac_retval=0
2107 else case e in #(
2108 e) printf "%s\n" "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_retval=1 ;;
2112 esac
2113 fi
2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116 # interfere with the next link command; also delete a directory that is
2117 # left behind by Apple's compiler. We do this before executing the actions.
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 as_fn_set_status $ac_retval
2121
2122 } # ac_fn_c_try_link
2123
2124 # ac_fn_c_check_func LINENO FUNC VAR
2125 # ----------------------------------
2126 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2127 ac_fn_c_check_func ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 printf %s "checking for $2... " >&6; }
2132 if eval test \${$3+y}
2133 then :
2134 printf %s "(cached) " >&6
2135 else case e in #(
2136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2140 #define $2 innocuous_$2
2141
2142 /* System header to define __stub macros and hopefully few prototypes,
2143 which can conflict with char $2 (void); below. */
2144
2145 #include <limits.h>
2146 #undef $2
2147
2148 /* Override any GCC internal prototype to avoid an error.
2149 Use char because int might match the return type of a GCC
2150 builtin and then its argument prototype would still apply. */
2151 #ifdef __cplusplus
2152 extern "C"
2153 #endif
2154 char $2 (void);
2155 /* The GNU C library defines this for functions which it implements
2156 to always fail with ENOSYS. Some functions are actually named
2157 something starting with __ and the normal name is an alias. */
2158 #if defined __stub_$2 || defined __stub___$2
2159 choke me
2160 #endif
2161
2162 int
2163 main (void)
2164 {
2165 return $2 ();
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_link "$LINENO"
2171 then :
2172 eval "$3=yes"
2173 else case e in #(
2174 e) eval "$3=no" ;;
2175 esac
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2178 conftest$ac_exeext conftest.$ac_ext ;;
2179 esac
2180 fi
2181 eval ac_res=\$$3
2182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 printf "%s\n" "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185
2186 } # ac_fn_c_check_func
2187 ac_configure_args_raw=
2188 for ac_arg
2189 do
2190 case $ac_arg in
2191 *\'*)
2192 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 esac
2194 as_fn_append ac_configure_args_raw " '$ac_arg'"
2195 done
2196
2197 case $ac_configure_args_raw in
2198 *$as_nl*)
2199 ac_safe_unquote= ;;
2200 *)
2201 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2202 ac_unsafe_a="$ac_unsafe_z#~"
2203 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2204 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2205 esac
2206
2207 cat >config.log <<_ACEOF
2208 This file contains any messages produced by compilers while
2209 running configure, to aid debugging if configure makes a mistake.
2210
2211 It was created by nauty $as_me 2.9.3, which was
2212 generated by GNU Autoconf 2.72. Invocation command line was
2213
2214 $ $0$ac_configure_args_raw
2215
2216 _ACEOF
2217 exec 5>>config.log
2218 {
2219 cat <<_ASUNAME
2220 ## --------- ##
2221 ## Platform. ##
2222 ## --------- ##
2223
2224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2225 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2226 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2227 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2228 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2229
2230 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2231 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2232
2233 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2234 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2235 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2236 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2237 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2238 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2239 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2240
2241 _ASUNAME
2242
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246 IFS=$as_save_IFS
2247 case $as_dir in #(((
2248 '') as_dir=./ ;;
2249 */) ;;
2250 *) as_dir=$as_dir/ ;;
2251 esac
2252 printf "%s\n" "PATH: $as_dir"
2253 done
2254 IFS=$as_save_IFS
2255
2256 } >&5
2257
2258 cat >&5 <<_ACEOF
2259
2260
2261 ## ----------- ##
2262 ## Core tests. ##
2263 ## ----------- ##
2264
2265 _ACEOF
2266
2267
2268 # Keep a trace of the command line.
2269 # Strip out --no-create and --no-recursion so they do not pile up.
2270 # Strip out --silent because we don't want to record it for future runs.
2271 # Also quote any args containing shell meta-characters.
2272 # Make two passes to allow for proper duplicate-argument suppression.
2273 ac_configure_args=
2274 ac_configure_args0=
2275 ac_configure_args1=
2276 ac_must_keep_next=false
2277 for ac_pass in 1 2
2278 do
2279 for ac_arg
2280 do
2281 case $ac_arg in
2282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2284 | -silent | --silent | --silen | --sile | --sil)
2285 continue ;;
2286 *\'*)
2287 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 esac
2289 case $ac_pass in
2290 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2291 2)
2292 as_fn_append ac_configure_args1 " '$ac_arg'"
2293 if test $ac_must_keep_next = true; then
2294 ac_must_keep_next=false # Got value, back to normal.
2295 else
2296 case $ac_arg in
2297 *=* | --config-cache | -C | -disable-* | --disable-* \
2298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2300 | -with-* | --with-* | -without-* | --without-* | --x)
2301 case "$ac_configure_args0 " in
2302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2303 esac
2304 ;;
2305 -* ) ac_must_keep_next=true ;;
2306 esac
2307 fi
2308 as_fn_append ac_configure_args " '$ac_arg'"
2309 ;;
2310 esac
2311 done
2312 done
2313 { ac_configure_args0=; unset ac_configure_args0;}
2314 { ac_configure_args1=; unset ac_configure_args1;}
2315
2316 # When interrupted or exit'd, cleanup temporary files, and complete
2317 # config.log. We remove comments because anyway the quotes in there
2318 # would cause problems or look ugly.
2319 # WARNING: Use '\'' to represent an apostrophe within the trap.
2320 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2321 trap 'exit_status=$?
2322 # Sanitize IFS.
2323 IFS=" "" $as_nl"
2324 # Save into config.log some information that might help in debugging.
2325 {
2326 echo
2327
2328 printf "%s\n" "## ---------------- ##
2329 ## Cache variables. ##
2330 ## ---------------- ##"
2331 echo
2332 # The following way of writing the cache mishandles newlines in values,
2333 (
2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335 eval ac_val=\$$ac_var
2336 case $ac_val in #(
2337 *${as_nl}*)
2338 case $ac_var in #(
2339 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341 esac
2342 case $ac_var in #(
2343 _ | IFS | as_nl) ;; #(
2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345 *) { eval $ac_var=; unset $ac_var;} ;;
2346 esac ;;
2347 esac
2348 done
2349 (set) 2>&1 |
2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2352 sed -n \
2353 "s/'\''/'\''\\\\'\'''\''/g;
2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355 ;; #(
2356 *)
2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358 ;;
2359 esac |
2360 sort
2361 )
2362 echo
2363
2364 printf "%s\n" "## ----------------- ##
2365 ## Output variables. ##
2366 ## ----------------- ##"
2367 echo
2368 for ac_var in $ac_subst_vars
2369 do
2370 eval ac_val=\$$ac_var
2371 case $ac_val in
2372 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373 esac
2374 printf "%s\n" "$ac_var='\''$ac_val'\''"
2375 done | sort
2376 echo
2377
2378 if test -n "$ac_subst_files"; then
2379 printf "%s\n" "## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##"
2382 echo
2383 for ac_var in $ac_subst_files
2384 do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in
2387 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388 esac
2389 printf "%s\n" "$ac_var='\''$ac_val'\''"
2390 done | sort
2391 echo
2392 fi
2393
2394 if test -s confdefs.h; then
2395 printf "%s\n" "## ----------- ##
2396 ## confdefs.h. ##
2397 ## ----------- ##"
2398 echo
2399 cat confdefs.h
2400 echo
2401 fi
2402 test "$ac_signal" != 0 &&
2403 printf "%s\n" "$as_me: caught signal $ac_signal"
2404 printf "%s\n" "$as_me: exit $exit_status"
2405 } >&5
2406 rm -f core *.core core.conftest.* &&
2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408 exit $exit_status
2409 ' 0
2410 for ac_signal in 1 2 13 15; do
2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2412 done
2413 ac_signal=0
2414
2415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2416 rm -f -r conftest* confdefs.h
2417
2418 printf "%s\n" "/* confdefs.h */" > confdefs.h
2419
2420 # Predefined preprocessor variables.
2421
2422 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2423
2424 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2425
2426 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2427
2428 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2429
2430 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2431
2432 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2433
2434
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 if test -n "$CONFIG_SITE"; then
2438 ac_site_files="$CONFIG_SITE"
2439 elif test "x$prefix" != xNONE; then
2440 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2441 else
2442 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2443 fi
2444
2445 for ac_site_file in $ac_site_files
2446 do
2447 case $ac_site_file in #(
2448 */*) :
2449 ;; #(
2450 *) :
2451 ac_site_file=./$ac_site_file ;;
2452 esac
2453 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2455 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2456 sed 's/^/| /' "$ac_site_file" >&5
2457 . "$ac_site_file" \
2458 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2459 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2460 as_fn_error $? "failed to load site script $ac_site_file
2461 See 'config.log' for more details" "$LINENO" 5; }
2462 fi
2463 done
2464
2465 if test -r "$cache_file"; then
2466 # Some versions of bash will fail to source /dev/null (special files
2467 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2468 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2470 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2471 case $cache_file in
2472 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2473 *) . "./$cache_file";;
2474 esac
2475 fi
2476 else
2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2478 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2479 >$cache_file
2480 fi
2481
2482 # Test code for whether the C compiler supports C89 (global declarations)
2483 ac_c_conftest_c89_globals='
2484 /* Does the compiler advertise C89 conformance?
2485 Do not test the value of __STDC__, because some compilers set it to 0
2486 while being otherwise adequately conformant. */
2487 #if !defined __STDC__
2488 # error "Compiler does not advertise C89 conformance"
2489 #endif
2490
2491 #include <stddef.h>
2492 #include <stdarg.h>
2493 struct stat;
2494 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2495 struct buf { int x; };
2496 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (char **p, int i)
2498 {
2499 return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503 char *s;
2504 va_list v;
2505 va_start (v,p);
2506 s = g (p, va_arg (v,int));
2507 va_end (v);
2508 return s;
2509 }
2510
2511 /* C89 style stringification. */
2512 #define noexpand_stringify(a) #a
2513 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2514
2515 /* C89 style token pasting. Exercises some of the corner cases that
2516 e.g. old MSVC gets wrong, but not very hard. */
2517 #define noexpand_concat(a,b) a##b
2518 #define expand_concat(a,b) noexpand_concat(a,b)
2519 extern int vA;
2520 extern int vbee;
2521 #define aye A
2522 #define bee B
2523 int *pvA = &expand_concat(v,aye);
2524 int *pvbee = &noexpand_concat(v,bee);
2525
2526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2527 function prototypes and stuff, but not \xHH hex character constants.
2528 These do not provoke an error unfortunately, instead are silently treated
2529 as an "x". The following induces an error, until -std is added to get
2530 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2531 array size at least. It is necessary to write \x00 == 0 to get something
2532 that is true only with -std. */
2533 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2534
2535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2536 inside strings and character constants. */
2537 #define FOO(x) '\''x'\''
2538 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2539
2540 int test (int i, double x);
2541 struct s1 {int (*f) (int a);};
2542 struct s2 {int (*f) (double a);};
2543 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2544 int, int);'
2545
2546 # Test code for whether the C compiler supports C89 (body of main).
2547 ac_c_conftest_c89_main='
2548 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2549 '
2550
2551 # Test code for whether the C compiler supports C99 (global declarations)
2552 ac_c_conftest_c99_globals='
2553 /* Does the compiler advertise C99 conformance? */
2554 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2555 # error "Compiler does not advertise C99 conformance"
2556 #endif
2557
2558 // See if C++-style comments work.
2559
2560 #include <stdbool.h>
2561 extern int puts (const char *);
2562 extern int printf (const char *, ...);
2563 extern int dprintf (int, const char *, ...);
2564 extern void *malloc (size_t);
2565 extern void free (void *);
2566
2567 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2568 // dprintf is used instead of fprintf to avoid needing to declare
2569 // FILE and stderr.
2570 #define debug(...) dprintf (2, __VA_ARGS__)
2571 #define showlist(...) puts (#__VA_ARGS__)
2572 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2573 static void
2574 test_varargs_macros (void)
2575 {
2576 int x = 1234;
2577 int y = 5678;
2578 debug ("Flag");
2579 debug ("X = %d\n", x);
2580 showlist (The first, second, and third items.);
2581 report (x>y, "x is %d but y is %d", x, y);
2582 }
2583
2584 // Check long long types.
2585 #define BIG64 18446744073709551615ull
2586 #define BIG32 4294967295ul
2587 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2588 #if !BIG_OK
2589 #error "your preprocessor is broken"
2590 #endif
2591 #if BIG_OK
2592 #else
2593 #error "your preprocessor is broken"
2594 #endif
2595 static long long int bignum = -9223372036854775807LL;
2596 static unsigned long long int ubignum = BIG64;
2597
2598 struct incomplete_array
2599 {
2600 int datasize;
2601 double data[];
2602 };
2603
2604 struct named_init {
2605 int number;
2606 const wchar_t *name;
2607 double average;
2608 };
2609
2610 typedef const char *ccp;
2611
2612 static inline int
2613 test_restrict (ccp restrict text)
2614 {
2615 // Iterate through items via the restricted pointer.
2616 // Also check for declarations in for loops.
2617 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2618 continue;
2619 return 0;
2620 }
2621
2622 // Check varargs and va_copy.
2623 static bool
2624 test_varargs (const char *format, ...)
2625 {
2626 va_list args;
2627 va_start (args, format);
2628 va_list args_copy;
2629 va_copy (args_copy, args);
2630
2631 const char *str = "";
2632 int number = 0;
2633 float fnumber = 0;
2634
2635 while (*format)
2636 {
2637 switch (*format++)
2638 {
2639 case '\''s'\'': // string
2640 str = va_arg (args_copy, const char *);
2641 break;
2642 case '\''d'\'': // int
2643 number = va_arg (args_copy, int);
2644 break;
2645 case '\''f'\'': // float
2646 fnumber = va_arg (args_copy, double);
2647 break;
2648 default:
2649 break;
2650 }
2651 }
2652 va_end (args_copy);
2653 va_end (args);
2654
2655 return *str && number && fnumber;
2656 }
2657 '
2658
2659 # Test code for whether the C compiler supports C99 (body of main).
2660 ac_c_conftest_c99_main='
2661 // Check bool.
2662 _Bool success = false;
2663 success |= (argc != 0);
2664
2665 // Check restrict.
2666 if (test_restrict ("String literal") == 0)
2667 success = true;
2668 char *restrict newvar = "Another string";
2669
2670 // Check varargs.
2671 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2672 test_varargs_macros ();
2673
2674 // Check flexible array members.
2675 struct incomplete_array *ia =
2676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2677 ia->datasize = 10;
2678 for (int i = 0; i < ia->datasize; ++i)
2679 ia->data[i] = i * 1.234;
2680 // Work around memory leak warnings.
2681 free (ia);
2682
2683 // Check named initializers.
2684 struct named_init ni = {
2685 .number = 34,
2686 .name = L"Test wide string",
2687 .average = 543.34343,
2688 };
2689
2690 ni.number = 58;
2691
2692 int dynamic_array[ni.number];
2693 dynamic_array[0] = argv[0][0];
2694 dynamic_array[ni.number - 1] = 543;
2695
2696 // work around unused variable warnings
2697 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2698 || dynamic_array[ni.number - 1] != 543);
2699 '
2700
2701 # Test code for whether the C compiler supports C11 (global declarations)
2702 ac_c_conftest_c11_globals='
2703 /* Does the compiler advertise C11 conformance? */
2704 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2705 # error "Compiler does not advertise C11 conformance"
2706 #endif
2707
2708 // Check _Alignas.
2709 char _Alignas (double) aligned_as_double;
2710 char _Alignas (0) no_special_alignment;
2711 extern char aligned_as_int;
2712 char _Alignas (0) _Alignas (int) aligned_as_int;
2713
2714 // Check _Alignof.
2715 enum
2716 {
2717 int_alignment = _Alignof (int),
2718 int_array_alignment = _Alignof (int[100]),
2719 char_alignment = _Alignof (char)
2720 };
2721 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2722
2723 // Check _Noreturn.
2724 int _Noreturn does_not_return (void) { for (;;) continue; }
2725
2726 // Check _Static_assert.
2727 struct test_static_assert
2728 {
2729 int x;
2730 _Static_assert (sizeof (int) <= sizeof (long int),
2731 "_Static_assert does not work in struct");
2732 long int y;
2733 };
2734
2735 // Check UTF-8 literals.
2736 #define u8 syntax error!
2737 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2738
2739 // Check duplicate typedefs.
2740 typedef long *long_ptr;
2741 typedef long int *long_ptr;
2742 typedef long_ptr long_ptr;
2743
2744 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2745 struct anonymous
2746 {
2747 union {
2748 struct { int i; int j; };
2749 struct { int k; long int l; } w;
2750 };
2751 int m;
2752 } v1;
2753 '
2754
2755 # Test code for whether the C compiler supports C11 (body of main).
2756 ac_c_conftest_c11_main='
2757 _Static_assert ((offsetof (struct anonymous, i)
2758 == offsetof (struct anonymous, w.k)),
2759 "Anonymous union alignment botch");
2760 v1.i = 2;
2761 v1.w.k = 5;
2762 ok |= v1.i != 5;
2763 '
2764
2765 # Test code for whether the C compiler supports C11 (complete).
2766 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2767 ${ac_c_conftest_c99_globals}
2768 ${ac_c_conftest_c11_globals}
2769
2770 int
2771 main (int argc, char **argv)
2772 {
2773 int ok = 0;
2774 ${ac_c_conftest_c89_main}
2775 ${ac_c_conftest_c99_main}
2776 ${ac_c_conftest_c11_main}
2777 return ok;
2778 }
2779 "
2780
2781 # Test code for whether the C compiler supports C99 (complete).
2782 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2783 ${ac_c_conftest_c99_globals}
2784
2785 int
2786 main (int argc, char **argv)
2787 {
2788 int ok = 0;
2789 ${ac_c_conftest_c89_main}
2790 ${ac_c_conftest_c99_main}
2791 return ok;
2792 }
2793 "
2794
2795 # Test code for whether the C compiler supports C89 (complete).
2796 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2797
2798 int
2799 main (int argc, char **argv)
2800 {
2801 int ok = 0;
2802 ${ac_c_conftest_c89_main}
2803 return ok;
2804 }
2805 "
2806
2807 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2808 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2809 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2810 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2811 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2812 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2813 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2814 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2815 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2816 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2817 as_fn_append ac_func_c_list " fork HAVE_FORK"
2818 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2819
2820 # Auxiliary files required by this configure script.
2821 ac_aux_files="ltmain.sh install-sh config.guess config.sub"
2822
2823 # Locations in which to look for auxiliary files.
2824 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2825
2826 # Search for a directory containing all of the required auxiliary files,
2827 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2828 # If we don't find one directory that contains all the files we need,
2829 # we report the set of missing files from the *first* directory in
2830 # $ac_aux_dir_candidates and give up.
2831 ac_missing_aux_files=""
2832 ac_first_candidate=:
2833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 as_found=false
2836 for as_dir in $ac_aux_dir_candidates
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 as_found=:
2845
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2847 ac_aux_dir_found=yes
2848 ac_install_sh=
2849 for ac_aux in $ac_aux_files
2850 do
2851 # As a special case, if "install-sh" is required, that requirement
2852 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2853 # and $ac_install_sh is set appropriately for whichever one is found.
2854 if test x"$ac_aux" = x"install-sh"
2855 then
2856 if test -f "${as_dir}install-sh"; then
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2858 ac_install_sh="${as_dir}install-sh -c"
2859 elif test -f "${as_dir}install.sh"; then
2860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2861 ac_install_sh="${as_dir}install.sh -c"
2862 elif test -f "${as_dir}shtool"; then
2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2864 ac_install_sh="${as_dir}shtool install -c"
2865 else
2866 ac_aux_dir_found=no
2867 if $ac_first_candidate; then
2868 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2869 else
2870 break
2871 fi
2872 fi
2873 else
2874 if test -f "${as_dir}${ac_aux}"; then
2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2876 else
2877 ac_aux_dir_found=no
2878 if $ac_first_candidate; then
2879 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2880 else
2881 break
2882 fi
2883 fi
2884 fi
2885 done
2886 if test "$ac_aux_dir_found" = yes; then
2887 ac_aux_dir="$as_dir"
2888 break
2889 fi
2890 ac_first_candidate=false
2891
2892 as_found=false
2893 done
2894 IFS=$as_save_IFS
2895 if $as_found
2896 then :
2897
2898 else case e in #(
2899 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2900 esac
2901 fi
2902
2903
2904 # These three variables are undocumented and unsupported,
2905 # and are intended to be withdrawn in a future Autoconf release.
2906 # They can cause serious problems if a builder's source tree is in a directory
2907 # whose full name contains unusual characters.
2908 if test -f "${ac_aux_dir}config.guess"; then
2909 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2910 fi
2911 if test -f "${ac_aux_dir}config.sub"; then
2912 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2913 fi
2914 if test -f "$ac_aux_dir/configure"; then
2915 ac_configure="$SHELL ${ac_aux_dir}configure"
2916 fi
2917
2918 # Check that the precious variables saved in the cache have kept the same
2919 # value.
2920 ac_cache_corrupted=false
2921 for ac_var in $ac_precious_vars; do
2922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2923 eval ac_new_set=\$ac_env_${ac_var}_set
2924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2925 eval ac_new_val=\$ac_env_${ac_var}_value
2926 case $ac_old_set,$ac_new_set in
2927 set,)
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2929 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2930 ac_cache_corrupted=: ;;
2931 ,set)
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2933 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2935 ,);;
2936 *)
2937 if test "x$ac_old_val" != "x$ac_new_val"; then
2938 # differences in whitespace do not lead to failure.
2939 ac_old_val_w=`echo x $ac_old_val`
2940 ac_new_val_w=`echo x $ac_new_val`
2941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2943 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2944 ac_cache_corrupted=:
2945 else
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2947 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2948 eval $ac_var=\$ac_old_val
2949 fi
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2951 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2953 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2954 fi;;
2955 esac
2956 # Pass precious variables to config.status.
2957 if test "$ac_new_set" = set; then
2958 case $ac_new_val in
2959 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2960 *) ac_arg=$ac_var=$ac_new_val ;;
2961 esac
2962 case " $ac_configure_args " in
2963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2964 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2965 esac
2966 fi
2967 done
2968 if $ac_cache_corrupted; then
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2970 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2972 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2973 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2974 and start over" "$LINENO" 5
2975 fi
2976 ## -------------------- ##
2977 ## Main body of script. ##
2978 ## -------------------- ##
2979
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985
2986
2987
2988
2989 # ======================================================================
2990 # First we define some functions
2991
2992
2993
2994
2995
2996 # Test for declaration with _POSIX_C_SOURCE=200809L and _XOPEN_SOURCE=500
2997
2998
2999
3000
3001
3002
3003
3004 # ======================================================================
3005 # First we check for configuration switches
3006
3007 # Check whether --enable-popcnt was given.
3008 if test ${enable_popcnt+y}
3009 then :
3010 enableval=$enable_popcnt; enablearg=given
3011 else case e in #(
3012 e) enablearg=notgiven ;;
3013 esac
3014 fi
3015
3016 if test $enablearg = notgiven || test "x$enable_popcnt" = xyes
3017 then :
3018 allow_popcnt=1
3019 else case e in #(
3020 e) allow_popcnt=0 ;;
3021 esac
3022 fi
3023
3024 # Check whether --enable-clz was given.
3025 if test ${enable_clz+y}
3026 then :
3027 enableval=$enable_clz; enablearg=given
3028 else case e in #(
3029 e) enablearg=notgiven ;;
3030 esac
3031 fi
3032
3033 if test $enablearg = notgiven || test "x$enable_clz" = xyes
3034 then :
3035 allow_clz=1
3036 else case e in #(
3037 e) allow_clz=0 ;;
3038 esac
3039 fi
3040
3041 # Check whether --enable-generic was given.
3042 if test ${enable_generic+y}
3043 then :
3044 enableval=$enable_generic; enablearg=given
3045 else case e in #(
3046 e) enablearg=notgiven ;;
3047 esac
3048 fi
3049
3050 if test $enablearg = notgiven || test "x$enable_generic" = xno
3051 then :
3052 allow_native=1
3053 else case e in #(
3054 e) allow_native=0 ;;
3055 esac
3056 fi
3057
3058 # Check whether --enable-tls was given.
3059 if test ${enable_tls+y}
3060 then :
3061 enableval=$enable_tls; use_tls="#define USE_TLS"
3062 else case e in #(
3063 e) use_tls= ;;
3064 esac
3065 fi
3066
3067
3068 # Check whether --enable-ansi was given.
3069 if test ${enable_ansi+y}
3070 then :
3071 enableval=$enable_ansi; enablearg=given
3072 else case e in #(
3073 e) enablearg=notgiven ;;
3074 esac
3075 fi
3076
3077 if test $enablearg = notgiven || test "x$enable_ansi" = xno
3078 then :
3079 allow_ansi=0
3080 else case e in #(
3081 e) allow_ansi=1 ;;
3082 esac
3083 fi
3084
3085 # Check whether --enable-interrupt was given.
3086 if test ${enable_interrupt+y}
3087 then :
3088 enableval=$enable_interrupt; enablearg=given
3089 else case e in #(
3090 e) enablearg=notgiven ;;
3091 esac
3092 fi
3093
3094 if test $enablearg = notgiven || test "x$enable_interrupt" = xyes
3095 then :
3096 allow_interrupt=1
3097 else case e in #(
3098 e) allow_interrupt=0 ;;
3099 esac
3100 fi
3101
3102 # Check whether --enable-wordsize was given.
3103 if test ${enable_wordsize+y}
3104 then :
3105 enableval=$enable_wordsize;
3106 fi
3107
3108 if test "x$enable_wordsize" = x16
3109 then :
3110 default_wordsize=16
3111 else case e in #(
3112 e) default_wordsize=0 ;;
3113 esac
3114 fi
3115 if test "x$enable_wordsize" = x32
3116 then :
3117 default_wordsize=32
3118 fi
3119 if test "x$enable_wordsize" = x64
3120 then :
3121 default_wordsize=64
3122 fi
3123 if test "x$enable_wordsize" = x128
3124 then :
3125 default_wordsize=128
3126 fi
3127
3128 # Check whether --enable-wordsize128 was given.
3129 if test ${enable_wordsize128+y}
3130 then :
3131 enableval=$enable_wordsize128; enablearg=given
3132 else case e in #(
3133 e) enablearg=notgiven ;;
3134 esac
3135 fi
3136
3137 if test $enablearg = notgiven || test "x$enable_popcnt" = xyes
3138 then :
3139 allow_128=1
3140 else case e in #(
3141 e) allow_128=0 ;;
3142 esac
3143 fi
3144
3145 # ======================================================================
3146 # Next we get to work
3147
3148
3149
3150
3151 # Make sure we can run config.sub.
3152 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3153 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3154
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3156 printf %s "checking build system type... " >&6; }
3157 if test ${ac_cv_build+y}
3158 then :
3159 printf %s "(cached) " >&6
3160 else case e in #(
3161 e) ac_build_alias=$build_alias
3162 test "x$ac_build_alias" = x &&
3163 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3164 test "x$ac_build_alias" = x &&
3165 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3166 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3167 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3168 ;;
3169 esac
3170 fi
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3172 printf "%s\n" "$ac_cv_build" >&6; }
3173 case $ac_cv_build in
3174 *-*-*) ;;
3175 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3176 esac
3177 build=$ac_cv_build
3178 ac_save_IFS=$IFS; IFS='-'
3179 set x $ac_cv_build
3180 shift
3181 build_cpu=$1
3182 build_vendor=$2
3183 shift; shift
3184 # Remember, the first character of IFS is used to create $*,
3185 # except with old shells:
3186 build_os=$*
3187 IFS=$ac_save_IFS
3188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3189
3190
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3192 printf %s "checking host system type... " >&6; }
3193 if test ${ac_cv_host+y}
3194 then :
3195 printf %s "(cached) " >&6
3196 else case e in #(
3197 e) if test "x$host_alias" = x; then
3198 ac_cv_host=$ac_cv_build
3199 else
3200 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3201 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3202 fi
3203 ;;
3204 esac
3205 fi
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3207 printf "%s\n" "$ac_cv_host" >&6; }
3208 case $ac_cv_host in
3209 *-*-*) ;;
3210 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3211 esac
3212 host=$ac_cv_host
3213 ac_save_IFS=$IFS; IFS='-'
3214 set x $ac_cv_host
3215 shift
3216 host_cpu=$1
3217 host_vendor=$2
3218 shift; shift
3219 # Remember, the first character of IFS is used to create $*,
3220 # except with old shells:
3221 host_os=$*
3222 IFS=$ac_save_IFS
3223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3224
3225
3226
3227 case "$host" in
3228 *powerpc*)
3229 is_powerpc=1 ;;
3230 *)
3231 is_powerpc=0 ;;
3232 esac
3233
3234 case "$host" in
3235 aarch64*)
3236 is_ARM64=1 ;;
3237 *)
3238 is_ARM64=0 ;;
3239 esac
3240
3241
3242 case "$build" in
3243 *cygwin*)
3244 is_cygwin=1 ;;
3245 *)
3246 is_cygwin=0 ;;
3247 esac
3248
3249 case "$host" in
3250 *freebsd*)
3251 is_freebsd=1 ;;
3252 *dragonfly*)
3253 is_freebsd=1 ;;
3254 *)
3255 is_freebsd=0 ;;
3256 esac
3257
3258 user_cflags="$CFLAGS"
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 printf %s "checking for $ac_word... " >&6; }
3278 if test ${ac_cv_prog_CC+y}
3279 then :
3280 printf %s "(cached) " >&6
3281 else case e in #(
3282 e) if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 case $as_dir in #(((
3290 '') as_dir=./ ;;
3291 */) ;;
3292 *) as_dir=$as_dir/ ;;
3293 esac
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi ;;
3305 esac
3306 fi
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 printf "%s\n" "$CC" >&6; }
3311 else
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 printf "%s\n" "no" >&6; }
3314 fi
3315
3316
3317 fi
3318 if test -z "$ac_cv_prog_CC"; then
3319 ac_ct_CC=$CC
3320 # Extract the first word of "gcc", so it can be a program name with args.
3321 set dummy gcc; ac_word=$2
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 printf %s "checking for $ac_word... " >&6; }
3324 if test ${ac_cv_prog_ac_ct_CC+y}
3325 then :
3326 printf %s "(cached) " >&6
3327 else case e in #(
3328 e) if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334 IFS=$as_save_IFS
3335 case $as_dir in #(((
3336 '') as_dir=./ ;;
3337 */) ;;
3338 *) as_dir=$as_dir/ ;;
3339 esac
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_ac_ct_CC="gcc"
3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi ;;
3351 esac
3352 fi
3353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3356 printf "%s\n" "$ac_ct_CC" >&6; }
3357 else
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 printf "%s\n" "no" >&6; }
3360 fi
3361
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369 ac_tool_warned=yes ;;
3370 esac
3371 CC=$ac_ct_CC
3372 fi
3373 else
3374 CC="$ac_cv_prog_CC"
3375 fi
3376
3377 if test -z "$CC"; then
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}cc; ac_word=$2
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 printf %s "checking for $ac_word... " >&6; }
3383 if test ${ac_cv_prog_CC+y}
3384 then :
3385 printf %s "(cached) " >&6
3386 else case e in #(
3387 e) if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393 IFS=$as_save_IFS
3394 case $as_dir in #(((
3395 '') as_dir=./ ;;
3396 */) ;;
3397 *) as_dir=$as_dir/ ;;
3398 esac
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_CC="${ac_tool_prefix}cc"
3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi ;;
3410 esac
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 printf "%s\n" "$CC" >&6; }
3416 else
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3419 fi
3420
3421
3422 fi
3423 fi
3424 if test -z "$CC"; then
3425 # Extract the first word of "cc", so it can be a program name with args.
3426 set dummy cc; ac_word=$2
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 printf %s "checking for $ac_word... " >&6; }
3429 if test ${ac_cv_prog_CC+y}
3430 then :
3431 printf %s "(cached) " >&6
3432 else case e in #(
3433 e) if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 ac_prog_rejected=no
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 case $as_dir in #(((
3442 '') as_dir=./ ;;
3443 */) ;;
3444 *) as_dir=$as_dir/ ;;
3445 esac
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3448 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected=yes
3450 continue
3451 fi
3452 ac_cv_prog_CC="cc"
3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3463 shift
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3468 shift
3469 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3470 fi
3471 fi
3472 fi ;;
3473 esac
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 printf "%s\n" "$CC" >&6; }
3479 else
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 printf "%s\n" "no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$CC"; then
3487 if test -n "$ac_tool_prefix"; then
3488 for ac_prog in cl.exe
3489 do
3490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 printf %s "checking for $ac_word... " >&6; }
3494 if test ${ac_cv_prog_CC+y}
3495 then :
3496 printf %s "(cached) " >&6
3497 else case e in #(
3498 e) if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504 IFS=$as_save_IFS
3505 case $as_dir in #(((
3506 '') as_dir=./ ;;
3507 */) ;;
3508 *) as_dir=$as_dir/ ;;
3509 esac
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi ;;
3521 esac
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 printf "%s\n" "$CC" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532
3533 test -n "$CC" && break
3534 done
3535 fi
3536 if test -z "$CC"; then
3537 ac_ct_CC=$CC
3538 for ac_prog in cl.exe
3539 do
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 printf %s "checking for $ac_word... " >&6; }
3544 if test ${ac_cv_prog_ac_ct_CC+y}
3545 then :
3546 printf %s "(cached) " >&6
3547 else case e in #(
3548 e) if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 case $as_dir in #(((
3556 '') as_dir=./ ;;
3557 */) ;;
3558 *) as_dir=$as_dir/ ;;
3559 esac
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC="$ac_prog"
3563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi ;;
3571 esac
3572 fi
3573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 printf "%s\n" "$ac_ct_CC" >&6; }
3577 else
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 printf "%s\n" "no" >&6; }
3580 fi
3581
3582
3583 test -n "$ac_ct_CC" && break
3584 done
3585
3586 if test "x$ac_ct_CC" = x; then
3587 CC=""
3588 else
3589 case $cross_compiling:$ac_tool_warned in
3590 yes:)
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned=yes ;;
3594 esac
3595 CC=$ac_ct_CC
3596 fi
3597 fi
3598
3599 fi
3600 if test -z "$CC"; then
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}clang; ac_word=$2
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 printf %s "checking for $ac_word... " >&6; }
3606 if test ${ac_cv_prog_CC+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else case e in #(
3610 e) if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616 IFS=$as_save_IFS
3617 case $as_dir in #(((
3618 '') as_dir=./ ;;
3619 */) ;;
3620 *) as_dir=$as_dir/ ;;
3621 esac
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="${ac_tool_prefix}clang"
3625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626 break 2
3627 fi
3628 done
3629 done
3630 IFS=$as_save_IFS
3631
3632 fi ;;
3633 esac
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 printf "%s\n" "$CC" >&6; }
3639 else
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 printf "%s\n" "no" >&6; }
3642 fi
3643
3644
3645 fi
3646 if test -z "$ac_cv_prog_CC"; then
3647 ac_ct_CC=$CC
3648 # Extract the first word of "clang", so it can be a program name with args.
3649 set dummy clang; ac_word=$2
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 printf %s "checking for $ac_word... " >&6; }
3652 if test ${ac_cv_prog_ac_ct_CC+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else case e in #(
3656 e) if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_ac_ct_CC="clang"
3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi ;;
3679 esac
3680 fi
3681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3682 if test -n "$ac_ct_CC"; then
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3684 printf "%s\n" "$ac_ct_CC" >&6; }
3685 else
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 printf "%s\n" "no" >&6; }
3688 fi
3689
3690 if test "x$ac_ct_CC" = x; then
3691 CC=""
3692 else
3693 case $cross_compiling:$ac_tool_warned in
3694 yes:)
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3696 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3697 ac_tool_warned=yes ;;
3698 esac
3699 CC=$ac_ct_CC
3700 fi
3701 else
3702 CC="$ac_cv_prog_CC"
3703 fi
3704
3705 fi
3706
3707
3708 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3709 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3710 as_fn_error $? "no acceptable C compiler found in \$PATH
3711 See 'config.log' for more details" "$LINENO" 5; }
3712
3713 # Provide some information about the compiler.
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3715 set X $ac_compile
3716 ac_compiler=$2
3717 for ac_option in --version -v -V -qversion -version; do
3718 { { ac_try="$ac_compiler $ac_option >&5"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 printf "%s\n" "$ac_try_echo"; } >&5
3725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3726 ac_status=$?
3727 if test -s conftest.err; then
3728 sed '10a\
3729 ... rest of stderr output deleted ...
3730 10q' conftest.err >conftest.er1
3731 cat conftest.er1 >&5
3732 fi
3733 rm -f conftest.er1 conftest.err
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }
3736 done
3737
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main (void)
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 ac_clean_files_save=$ac_clean_files
3750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3751 # Try to create an executable without -o first, disregard a.out.
3752 # It will help us diagnose broken compilers, and finding out an intuition
3753 # of exeext.
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3755 printf %s "checking whether the C compiler works... " >&6; }
3756 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3757
3758 # The possible output files:
3759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3760
3761 ac_rmfiles=
3762 for ac_file in $ac_files
3763 do
3764 case $ac_file in
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3767 esac
3768 done
3769 rm -f $ac_rmfiles
3770
3771 if { { ac_try="$ac_link_default"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 printf "%s\n" "$ac_try_echo"; } >&5
3778 (eval "$ac_link_default") 2>&5
3779 ac_status=$?
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3782 then :
3783 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3784 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3786 # so that the user can short-circuit this test for compilers unknown to
3787 # Autoconf.
3788 for ac_file in $ac_files ''
3789 do
3790 test -f "$ac_file" || continue
3791 case $ac_file in
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3793 ;;
3794 [ab].out )
3795 # We found the default executable, but exeext='' is most
3796 # certainly right.
3797 break;;
3798 *.* )
3799 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3800 then :; else
3801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3802 fi
3803 # We set ac_cv_exeext here because the later test for it is not
3804 # safe: cross compilers may not add the suffix if given an '-o'
3805 # argument, so we may need to know it at that point already.
3806 # Even if this section looks crufty: it has the advantage of
3807 # actually working.
3808 break;;
3809 * )
3810 break;;
3811 esac
3812 done
3813 test "$ac_cv_exeext" = no && ac_cv_exeext=
3814
3815 else case e in #(
3816 e) ac_file='' ;;
3817 esac
3818 fi
3819 if test -z "$ac_file"
3820 then :
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3823 printf "%s\n" "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3828 as_fn_error 77 "C compiler cannot create executables
3829 See 'config.log' for more details" "$LINENO" 5; }
3830 else case e in #(
3831 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832 printf "%s\n" "yes" >&6; } ;;
3833 esac
3834 fi
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 printf %s "checking for C compiler default output file name... " >&6; }
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3838 printf "%s\n" "$ac_file" >&6; }
3839 ac_exeext=$ac_cv_exeext
3840
3841 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3842 ac_clean_files=$ac_clean_files_save
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3844 printf %s "checking for suffix of executables... " >&6; }
3845 if { { ac_try="$ac_link"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 printf "%s\n" "$ac_try_echo"; } >&5
3852 (eval "$ac_link") 2>&5
3853 ac_status=$?
3854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3856 then :
3857 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3858 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3859 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3860 # 'rm'.
3861 for ac_file in conftest.exe conftest conftest.*; do
3862 test -f "$ac_file" || continue
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866 break;;
3867 * ) break;;
3868 esac
3869 done
3870 else case e in #(
3871 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3872 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3873 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3874 See 'config.log' for more details" "$LINENO" 5; } ;;
3875 esac
3876 fi
3877 rm -f conftest conftest$ac_cv_exeext
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879 printf "%s\n" "$ac_cv_exeext" >&6; }
3880
3881 rm -f conftest.$ac_ext
3882 EXEEXT=$ac_cv_exeext
3883 ac_exeext=$EXEEXT
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <stdio.h>
3887 int
3888 main (void)
3889 {
3890 FILE *f = fopen ("conftest.out", "w");
3891 if (!f)
3892 return 1;
3893 return ferror (f) || fclose (f) != 0;
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 ac_clean_files="$ac_clean_files conftest.out"
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903 printf %s "checking whether we are cross compiling... " >&6; }
3904 if test "$cross_compiling" != yes; then
3905 { { ac_try="$ac_link"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 printf "%s\n" "$ac_try_echo"; } >&5
3912 (eval "$ac_link") 2>&5
3913 ac_status=$?
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }
3916 if { ac_try='./conftest$ac_cv_exeext'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 printf "%s\n" "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3924 ac_status=$?
3925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 cross_compiling=no
3928 else
3929 if test "$cross_compiling" = maybe; then
3930 cross_compiling=yes
3931 else
3932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3933 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3934 as_fn_error 77 "cannot run C compiled programs.
3935 If you meant to cross compile, use '--host'.
3936 See 'config.log' for more details" "$LINENO" 5; }
3937 fi
3938 fi
3939 fi
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3941 printf "%s\n" "$cross_compiling" >&6; }
3942
3943 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3944 conftest.o conftest.obj conftest.out
3945 ac_clean_files=$ac_clean_files_save
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947 printf %s "checking for suffix of object files... " >&6; }
3948 if test ${ac_cv_objext+y}
3949 then :
3950 printf %s "(cached) " >&6
3951 else case e in #(
3952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954
3955 int
3956 main (void)
3957 {
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 rm -f conftest.o conftest.obj
3964 if { { ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 printf "%s\n" "$ac_try_echo"; } >&5
3971 (eval "$ac_compile") 2>&5
3972 ac_status=$?
3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }
3975 then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981 break;;
3982 esac
3983 done
3984 else case e in #(
3985 e) printf "%s\n" "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3989 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3990 as_fn_error $? "cannot compute suffix of object files: cannot compile
3991 See 'config.log' for more details" "$LINENO" 5; } ;;
3992 esac
3993 fi
3994 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3995 esac
3996 fi
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 printf "%s\n" "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4002 printf %s "checking whether the compiler supports GNU C... " >&6; }
4003 if test ${ac_cv_c_compiler_gnu+y}
4004 then :
4005 printf %s "(cached) " >&6
4006 else case e in #(
4007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 int
4011 main (void)
4012 {
4013 #ifndef __GNUC__
4014 choke me
4015 #endif
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"
4022 then :
4023 ac_compiler_gnu=yes
4024 else case e in #(
4025 e) ac_compiler_gnu=no ;;
4026 esac
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4030 ;;
4031 esac
4032 fi
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037 if test $ac_compiler_gnu = yes; then
4038 GCC=yes
4039 else
4040 GCC=
4041 fi
4042 ac_test_CFLAGS=${CFLAGS+y}
4043 ac_save_CFLAGS=$CFLAGS
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4045 printf %s "checking whether $CC accepts -g... " >&6; }
4046 if test ${ac_cv_prog_cc_g+y}
4047 then :
4048 printf %s "(cached) " >&6
4049 else case e in #(
4050 e) ac_save_c_werror_flag=$ac_c_werror_flag
4051 ac_c_werror_flag=yes
4052 ac_cv_prog_cc_g=no
4053 CFLAGS="-g"
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 int
4058 main (void)
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"
4066 then :
4067 ac_cv_prog_cc_g=yes
4068 else case e in #(
4069 e) CFLAGS=""
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main (void)
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"
4082 then :
4083
4084 else case e in #(
4085 e) ac_c_werror_flag=$ac_save_c_werror_flag
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main (void)
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100 ac_cv_prog_cc_g=yes
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4103 esac
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4106 esac
4107 fi
4108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4110 esac
4111 fi
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4114 if test $ac_test_CFLAGS; then
4115 CFLAGS=$ac_save_CFLAGS
4116 elif test $ac_cv_prog_cc_g = yes; then
4117 if test "$GCC" = yes; then
4118 CFLAGS="-g -O2"
4119 else
4120 CFLAGS="-g"
4121 fi
4122 else
4123 if test "$GCC" = yes; then
4124 CFLAGS="-O2"
4125 else
4126 CFLAGS=
4127 fi
4128 fi
4129 ac_prog_cc_stdc=no
4130 if test x$ac_prog_cc_stdc = xno
4131 then :
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4133 printf %s "checking for $CC option to enable C11 features... " >&6; }
4134 if test ${ac_cv_prog_cc_c11+y}
4135 then :
4136 printf %s "(cached) " >&6
4137 else case e in #(
4138 e) ac_cv_prog_cc_c11=no
4139 ac_save_CC=$CC
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 $ac_c_conftest_c11_program
4143 _ACEOF
4144 for ac_arg in '' -std=gnu11
4145 do
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"
4148 then :
4149 ac_cv_prog_cc_c11=$ac_arg
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.beam
4152 test "x$ac_cv_prog_cc_c11" != "xno" && break
4153 done
4154 rm -f conftest.$ac_ext
4155 CC=$ac_save_CC ;;
4156 esac
4157 fi
4158
4159 if test "x$ac_cv_prog_cc_c11" = xno
4160 then :
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4162 printf "%s\n" "unsupported" >&6; }
4163 else case e in #(
4164 e) if test "x$ac_cv_prog_cc_c11" = x
4165 then :
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4167 printf "%s\n" "none needed" >&6; }
4168 else case e in #(
4169 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4170 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4171 CC="$CC $ac_cv_prog_cc_c11" ;;
4172 esac
4173 fi
4174 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4175 ac_prog_cc_stdc=c11 ;;
4176 esac
4177 fi
4178 fi
4179 if test x$ac_prog_cc_stdc = xno
4180 then :
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4182 printf %s "checking for $CC option to enable C99 features... " >&6; }
4183 if test ${ac_cv_prog_cc_c99+y}
4184 then :
4185 printf %s "(cached) " >&6
4186 else case e in #(
4187 e) ac_cv_prog_cc_c99=no
4188 ac_save_CC=$CC
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 $ac_c_conftest_c99_program
4192 _ACEOF
4193 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4194 do
4195 CC="$ac_save_CC $ac_arg"
4196 if ac_fn_c_try_compile "$LINENO"
4197 then :
4198 ac_cv_prog_cc_c99=$ac_arg
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.beam
4201 test "x$ac_cv_prog_cc_c99" != "xno" && break
4202 done
4203 rm -f conftest.$ac_ext
4204 CC=$ac_save_CC ;;
4205 esac
4206 fi
4207
4208 if test "x$ac_cv_prog_cc_c99" = xno
4209 then :
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4211 printf "%s\n" "unsupported" >&6; }
4212 else case e in #(
4213 e) if test "x$ac_cv_prog_cc_c99" = x
4214 then :
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4216 printf "%s\n" "none needed" >&6; }
4217 else case e in #(
4218 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4219 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4220 CC="$CC $ac_cv_prog_cc_c99" ;;
4221 esac
4222 fi
4223 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4224 ac_prog_cc_stdc=c99 ;;
4225 esac
4226 fi
4227 fi
4228 if test x$ac_prog_cc_stdc = xno
4229 then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4231 printf %s "checking for $CC option to enable C89 features... " >&6; }
4232 if test ${ac_cv_prog_cc_c89+y}
4233 then :
4234 printf %s "(cached) " >&6
4235 else case e in #(
4236 e) ac_cv_prog_cc_c89=no
4237 ac_save_CC=$CC
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 $ac_c_conftest_c89_program
4241 _ACEOF
4242 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 do
4244 CC="$ac_save_CC $ac_arg"
4245 if ac_fn_c_try_compile "$LINENO"
4246 then :
4247 ac_cv_prog_cc_c89=$ac_arg
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.beam
4250 test "x$ac_cv_prog_cc_c89" != "xno" && break
4251 done
4252 rm -f conftest.$ac_ext
4253 CC=$ac_save_CC ;;
4254 esac
4255 fi
4256
4257 if test "x$ac_cv_prog_cc_c89" = xno
4258 then :
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 printf "%s\n" "unsupported" >&6; }
4261 else case e in #(
4262 e) if test "x$ac_cv_prog_cc_c89" = x
4263 then :
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4265 printf "%s\n" "none needed" >&6; }
4266 else case e in #(
4267 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4269 CC="$CC $ac_cv_prog_cc_c89" ;;
4270 esac
4271 fi
4272 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4273 ac_prog_cc_stdc=c89 ;;
4274 esac
4275 fi
4276 fi
4277
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284 CFLAGS=$user_cflags
4285 MORECFLAGS=""
4286
4287
4288 # Check whether --enable-largefile was given.
4289 if test ${enable_largefile+y}
4290 then :
4291 enableval=$enable_largefile;
4292 fi
4293 if test "$enable_largefile,$enable_year2038" != no,no
4294 then :
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
4296 printf %s "checking for $CC option to enable large file support... " >&6; }
4297 if test ${ac_cv_sys_largefile_opts+y}
4298 then :
4299 printf %s "(cached) " >&6
4300 else case e in #(
4301 e) ac_save_CC="$CC"
4302 ac_opt_found=no
4303 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
4304 if test x"$ac_opt" != x"none needed"
4305 then :
4306 CC="$ac_save_CC $ac_opt"
4307 fi
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310 #include <sys/types.h>
4311 #ifndef FTYPE
4312 # define FTYPE off_t
4313 #endif
4314 /* Check that FTYPE can represent 2**63 - 1 correctly.
4315 We can't simply define LARGE_FTYPE to be 9223372036854775807,
4316 since some C++ compilers masquerading as C compilers
4317 incorrectly reject 9223372036854775807. */
4318 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
4319 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
4320 && LARGE_FTYPE % 2147483647 == 1)
4321 ? 1 : -1];
4322 int
4323 main (void)
4324 {
4325
4326 ;
4327 return 0;
4328 }
4329 _ACEOF
4330 if ac_fn_c_try_compile "$LINENO"
4331 then :
4332 if test x"$ac_opt" = x"none needed"
4333 then :
4334 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
4335 CC="$CC -DFTYPE=ino_t"
4336 if ac_fn_c_try_compile "$LINENO"
4337 then :
4338
4339 else case e in #(
4340 e) CC="$CC -D_FILE_OFFSET_BITS=64"
4341 if ac_fn_c_try_compile "$LINENO"
4342 then :
4343 ac_opt='-D_FILE_OFFSET_BITS=64'
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
4346 esac
4347 fi
4348 rm -f core conftest.err conftest.$ac_objext conftest.beam
4349 fi
4350 ac_cv_sys_largefile_opts=$ac_opt
4351 ac_opt_found=yes
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4354 test $ac_opt_found = no || break
4355 done
4356 CC="$ac_save_CC"
4357
4358 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
4359 esac
4360 fi
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
4362 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
4363
4364 ac_have_largefile=yes
4365 case $ac_cv_sys_largefile_opts in #(
4366 "none needed") :
4367 ;; #(
4368 "supported through gnulib") :
4369 ;; #(
4370 "support not detected") :
4371 ac_have_largefile=no ;; #(
4372 "-D_FILE_OFFSET_BITS=64") :
4373
4374 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
4375 ;; #(
4376 "-D_LARGE_FILES=1") :
4377
4378 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
4379 ;; #(
4380 "-n32") :
4381 CC="$CC -n32" ;; #(
4382 *) :
4383 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
4384 esac
4385
4386 if test "$enable_year2038" != no
4387 then :
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
4389 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
4390 if test ${ac_cv_sys_year2038_opts+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else case e in #(
4394 e) ac_save_CPPFLAGS="$CPPFLAGS"
4395 ac_opt_found=no
4396 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
4397 if test x"$ac_opt" != x"none needed"
4398 then :
4399 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
4400 fi
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403
4404 #include <time.h>
4405 /* Check that time_t can represent 2**32 - 1 correctly. */
4406 #define LARGE_TIME_T \\
4407 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
4408 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
4409 && LARGE_TIME_T % 65537 == 0)
4410 ? 1 : -1];
4411
4412 int
4413 main (void)
4414 {
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"
4421 then :
4422 ac_cv_sys_year2038_opts="$ac_opt"
4423 ac_opt_found=yes
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4426 test $ac_opt_found = no || break
4427 done
4428 CPPFLAGS="$ac_save_CPPFLAGS"
4429 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
4430 esac
4431 fi
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
4433 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
4434
4435 ac_have_year2038=yes
4436 case $ac_cv_sys_year2038_opts in #(
4437 "none needed") :
4438 ;; #(
4439 "support not detected") :
4440 ac_have_year2038=no ;; #(
4441 "-D_TIME_BITS=64") :
4442
4443 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
4444 ;; #(
4445 "-D__MINGW_USE_VC2005_COMPAT") :
4446
4447 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
4448 ;; #(
4449 "-U_USE_32_BIT_TIME_T"*) :
4450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4451 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4452 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
4453 will stop working after mid-January 2038. Remove
4454 _USE_32BIT_TIME_T from the compiler flags.
4455 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4456 *) :
4457 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
4458 esac
4459
4460 fi
4461
4462 fi
4463 nauty_largefile=0
4464 if test "x$ac_cv_sys_largefile_opts" = "x-D_FILE_OFFSET_BITS=64"
4465 then :
4466 nauty_largefile=1
4467 fi
4468 if test "x$ac_cv_sys_largefile_opts" = "x-D_LARGE_FILES=1"
4469 then :
4470 nauty_largefile=2
4471 fi
4472 if test "x$ac_cv_sys_file_offset_bits" = "x"
4473 then :
4474 ac_cv_sys_file_offset_bits=0
4475 fi
4476 if test "x$ac_cv_sys_largefile_source" = "xno"
4477 then :
4478 ac_cv_sys_largefile_source=0
4479 fi
4480 if test "x$ac_cv_sys_largefile_source" = "x"
4481 then :
4482 ac_cv_sys_largefile_source=0
4483 fi
4484
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
4486 printf %s "checking for declarations of fseeko and ftello... " >&6; }
4487 if test ${ac_cv_func_fseeko_ftello+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else case e in #(
4491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493
4494 #if defined __hpux && !defined _LARGEFILE_SOURCE
4495 # include <limits.h>
4496 # if LONG_MAX >> 31 == 0
4497 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
4498 # endif
4499 #endif
4500 #include <sys/types.h> /* for off_t */
4501 #include <stdio.h>
4502
4503 int
4504 main (void)
4505 {
4506
4507 int (*fp1) (FILE *, off_t, int) = fseeko;
4508 off_t (*fp2) (FILE *) = ftello;
4509 return fseeko (stdin, 0, 0)
4510 && fp1 (stdin, 0, 0)
4511 && ftello (stdin) >= 0
4512 && fp2 (stdin) >= 0;
4513
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"
4519 then :
4520 ac_cv_func_fseeko_ftello=yes
4521 else case e in #(
4522 e) ac_save_CPPFLAGS="$CPPFLAGS"
4523 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 #if defined __hpux && !defined _LARGEFILE_SOURCE
4528 # include <limits.h>
4529 # if LONG_MAX >> 31 == 0
4530 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
4531 # endif
4532 #endif
4533 #include <sys/types.h> /* for off_t */
4534 #include <stdio.h>
4535
4536 int
4537 main (void)
4538 {
4539
4540 int (*fp1) (FILE *, off_t, int) = fseeko;
4541 off_t (*fp2) (FILE *) = ftello;
4542 return fseeko (stdin, 0, 0)
4543 && fp1 (stdin, 0, 0)
4544 && ftello (stdin) >= 0
4545 && fp2 (stdin) >= 0;
4546
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"
4552 then :
4553 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
4554 else case e in #(
4555 e) ac_cv_func_fseeko_ftello=no ;;
4556 esac
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4559 esac
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4562 esac
4563 fi
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
4565 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
4566 if test "$ac_cv_func_fseeko_ftello" != no
4567 then :
4568
4569 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
4570
4571 fi
4572 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
4573 then :
4574
4575 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
4576
4577 fi
4578
4579 if test "x$ac_cv_func_fseeko_ftello" = "xneed _LARGEFILE_SOURCE"
4580 then :
4581 ac_cv_sys_largefile_source=1
4582 fi
4583
4584
4585
4586 if test "x$user_cflags" = x || test "x$user_cflags" = x-m32
4587 then :
4588
4589 if test "$CC" = "icc" || test "$CC" = "icx"
4590 then :
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -O3 flags" >&5
4592 printf %s "checking if $CC supports -O3 flags... " >&6; }
4593 SAVE_CFLAGS="$CFLAGS"
4594 CFLAGS="-O3"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main (void)
4600 {
4601 \
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"
4608 then :
4609 ac_cv_try_cflags_ok=yes
4610 else case e in #(
4611 e) ac_cv_try_cflags_ok=no ;;
4612 esac
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4615 CFLAGS="$SAVE_CFLAGS"
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
4617 printf "%s\n" "$ac_cv_try_cflags_ok" >&6; }
4618 if test "x$ac_cv_try_cflags_ok" = xyes; then
4619 CFLAGS="$CFLAGS -O3"
4620 else
4621 :
4622 fi;
4623 if test "x$ac_cv_try_cflags_ok" = xno
4624 then :
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -O2 flags" >&5
4626 printf %s "checking if $CC supports -O2 flags... " >&6; }
4627 SAVE_CFLAGS="$CFLAGS"
4628 CFLAGS="-O2"
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631
4632 int
4633 main (void)
4634 {
4635 \
4636
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"
4642 then :
4643 ac_cv_try_cflags_ok=yes
4644 else case e in #(
4645 e) ac_cv_try_cflags_ok=no ;;
4646 esac
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4649 CFLAGS="$SAVE_CFLAGS"
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
4651 printf "%s\n" "$ac_cv_try_cflags_ok" >&6; }
4652 if test "x$ac_cv_try_cflags_ok" = xyes; then
4653 CFLAGS="$CFLAGS -O2"
4654 else
4655 CFLAGS="$CFLAGS -O"
4656 fi
4657 fi
4658 else case e in #(
4659 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -O4 -Werror flags" >&5
4660 printf %s "checking if $CC supports -O4 -Werror flags... " >&6; }
4661 SAVE_CFLAGS="$CFLAGS"
4662 CFLAGS="-O4 -Werror"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665
4666 int
4667 main (void)
4668 {
4669 \
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"
4676 then :
4677 ac_cv_try_cflags_ok=yes
4678 else case e in #(
4679 e) ac_cv_try_cflags_ok=no ;;
4680 esac
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 CFLAGS="$SAVE_CFLAGS"
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
4685 printf "%s\n" "$ac_cv_try_cflags_ok" >&6; }
4686 if test "x$ac_cv_try_cflags_ok" = xyes; then
4687 CFLAGS="$CFLAGS -O4"
4688 else
4689 :
4690 fi;
4691 if test "x$ac_cv_try_cflags_ok" = xno
4692 then :
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -O3 flags" >&5
4694 printf %s "checking if $CC supports -O3 flags... " >&6; }
4695 SAVE_CFLAGS="$CFLAGS"
4696 CFLAGS="-O3"
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 int
4701 main (void)
4702 {
4703 \
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"
4710 then :
4711 ac_cv_try_cflags_ok=yes
4712 else case e in #(
4713 e) ac_cv_try_cflags_ok=no ;;
4714 esac
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4717 CFLAGS="$SAVE_CFLAGS"
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
4719 printf "%s\n" "$ac_cv_try_cflags_ok" >&6; }
4720 if test "x$ac_cv_try_cflags_ok" = xyes; then
4721 CFLAGS="$CFLAGS -O3"
4722 else
4723 :
4724 fi
4725 if test "x$ac_cv_try_cflags_ok" = xno
4726 then :
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -O2 flags" >&5
4728 printf %s "checking if $CC supports -O2 flags... " >&6; }
4729 SAVE_CFLAGS="$CFLAGS"
4730 CFLAGS="-O2"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main (void)
4736 {
4737 \
4738
4739 ;
4740 return 0;
4741 }
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"
4744 then :
4745 ac_cv_try_cflags_ok=yes
4746 else case e in #(
4747 e) ac_cv_try_cflags_ok=no ;;
4748 esac
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4751 CFLAGS="$SAVE_CFLAGS"
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
4753 printf "%s\n" "$ac_cv_try_cflags_ok" >&6; }
4754 if test "x$ac_cv_try_cflags_ok" = xyes; then
4755 CFLAGS="$CFLAGS -O2"
4756 else
4757 CFLAGS="$CFLAGS -O"
4758 fi
4759 fi
4760
4761 fi
4762 ;;
4763 esac
4764 fi
4765
4766 fi
4767
4768
4769
4770
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4772 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4773 if test ${ac_cv_header_sys_wait_h+y}
4774 then :
4775 printf %s "(cached) " >&6
4776 else case e in #(
4777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 #include <sys/types.h>
4780 #include <sys/wait.h>
4781 #ifndef WEXITSTATUS
4782 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4783 #endif
4784 #ifndef WIFEXITED
4785 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4786 #endif
4787
4788 int
4789 main (void)
4790 {
4791 int s;
4792 wait (&s);
4793 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"
4799 then :
4800 ac_cv_header_sys_wait_h=yes
4801 else case e in #(
4802 e) ac_cv_header_sys_wait_h=no ;;
4803 esac
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4806 esac
4807 fi
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4809 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4810 if test $ac_cv_header_sys_wait_h = yes; then
4811
4812 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4813
4814 fi
4815
4816 ac_header= ac_cache=
4817 for ac_item in $ac_header_c_list
4818 do
4819 if test $ac_cache; then
4820 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4821 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4822 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4823 fi
4824 ac_header= ac_cache=
4825 elif test $ac_header; then
4826 ac_cache=$ac_item
4827 else
4828 ac_header=$ac_item
4829 fi
4830 done
4831
4832
4833
4834
4835
4836
4837
4838
4839 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4840 then :
4841
4842 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4843
4844 fi
4845 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4846 if test "x$ac_cv_header_signal_h" = xyes
4847 then :
4848 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
4849
4850 fi
4851 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4852 if test "x$ac_cv_header_stddef_h" = xyes
4853 then :
4854 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
4855
4856 fi
4857 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4858 if test "x$ac_cv_header_unistd_h" = xyes
4859 then :
4860 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4861
4862 fi
4863 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4864 if test "x$ac_cv_header_sys_types_h" = xyes
4865 then :
4866 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4867
4868 fi
4869 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
4870 if test "x$ac_cv_header_sys_wait_h" = xyes
4871 then :
4872 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4873
4874 fi
4875 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4876 if test "x$ac_cv_header_stdlib_h" = xyes
4877 then :
4878 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4879
4880 fi
4881 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4882 if test "x$ac_cv_header_string_h" = xyes
4883 then :
4884 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4885
4886 fi
4887 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4888 if test "x$ac_cv_header_errno_h" = xyes
4889 then :
4890 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
4891
4892 fi
4893 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4894 if test "x$ac_cv_header_limits_h" = xyes
4895 then :
4896 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4897
4898 fi
4899 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4900 if test "x$ac_cv_header_stdint_h" = xyes
4901 then :
4902 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
4903
4904 fi
4905 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
4906 if test "x$ac_cv_header_endian_h" = xyes
4907 then :
4908 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
4909
4910 fi
4911
4912 if test "x$ac_cv_header_stddef_h" = xyes; then
4913 header_stddef_h=1
4914 else
4915 header_stddef_h=0
4916 fi
4917
4918 if test "x$ac_cv_header_unistd_h" = xyes; then
4919 header_unistd_h=1
4920 else
4921 header_unistd_h=0
4922 fi
4923
4924 if test "x$ac_cv_header_stdlib_h" = xyes; then
4925 header_stdlib_h=1
4926 else
4927 header_stdlib_h=0
4928 fi
4929
4930 if test "x$ac_cv_header_string_h" = xyes; then
4931 header_string_h=1
4932 else
4933 header_string_h=0
4934 fi
4935
4936 if test "x$ac_cv_header_sys_wait_h" = xyes; then
4937 header_sys_wait_h=1
4938 else
4939 header_sys_wait_h=0
4940 fi
4941
4942 if test "x$ac_cv_header_sys_types_h" = xyes; then
4943 header_sys_types_h=1
4944 else
4945 header_sys_types_h=0
4946 fi
4947
4948 if test "x$ac_cv_header_errno_h" = xyes; then
4949 header_errno_h=1
4950 else
4951 header_errno_h=0
4952 fi
4953
4954 if test "x$ac_cv_header_signal_h" = xyes; then
4955 header_signal_h=1
4956 else
4957 header_signal_h=0
4958 fi
4959
4960 if test "x$ac_cv_header_limits_h" = xyes; then
4961 header_limits_h=1
4962 else
4963 header_limits_h=0
4964 fi
4965
4966 if test "x$ac_cv_header_stdint_h" = xyes; then
4967 header_stdint_h=1
4968 else
4969 header_stdint_h=0
4970 fi
4971
4972 if test "x$ac_cv_header_endian_h" = xyes; then
4973 header_endian_h=1
4974 else
4975 header_endian_h=0
4976 fi
4977
4978
4979
4980 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4981 "
4982 if test "x$ac_cv_type_pid_t" = xyes
4983 then :
4984
4985 else case e in #(
4986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988
4989 #if defined _WIN64 && !defined __CYGWIN__
4990 LLP64
4991 #endif
4992
4993 int
4994 main (void)
4995 {
4996
4997 ;
4998 return 0;
4999 }
5000
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"
5003 then :
5004 ac_pid_type='int'
5005 else case e in #(
5006 e) ac_pid_type='__int64' ;;
5007 esac
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5010
5011 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5012
5013 ;;
5014 esac
5015 fi
5016
5017
5018 if test "x$ac_cv_type_pid_t" = xyes; then
5019 have_pid_t=1
5020 else
5021 have_pid_t=0
5022 fi
5023
5024
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5026 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5027 if test ${ac_cv_c_undeclared_builtin_options+y}
5028 then :
5029 printf %s "(cached) " >&6
5030 else case e in #(
5031 e) ac_save_CFLAGS=$CFLAGS
5032 ac_cv_c_undeclared_builtin_options='cannot detect'
5033 for ac_arg in '' -fno-builtin; do
5034 CFLAGS="$ac_save_CFLAGS $ac_arg"
5035 # This test program should *not* compile successfully.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038
5039 int
5040 main (void)
5041 {
5042 (void) strchr;
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"
5048 then :
5049
5050 else case e in #(
5051 e) # This test program should compile successfully.
5052 # No library function is consistently available on
5053 # freestanding implementations, so test against a dummy
5054 # declaration. Include always-available headers on the
5055 # off chance that they somehow elicit warnings.
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 #include <float.h>
5059 #include <limits.h>
5060 #include <stdarg.h>
5061 #include <stddef.h>
5062 extern void ac_decl (int, char *);
5063
5064 int
5065 main (void)
5066 {
5067 (void) ac_decl (0, (char *) 0);
5068 (void) ac_decl;
5069
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_c_try_compile "$LINENO"
5075 then :
5076 if test x"$ac_arg" = x
5077 then :
5078 ac_cv_c_undeclared_builtin_options='none needed'
5079 else case e in #(
5080 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5081 esac
5082 fi
5083 break
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5086 esac
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5089 done
5090 CFLAGS=$ac_save_CFLAGS
5091 ;;
5092 esac
5093 fi
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5095 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5096 case $ac_cv_c_undeclared_builtin_options in #(
5097 'cannot detect') :
5098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5099 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5100 as_fn_error $? "cannot make $CC report undeclared builtins
5101 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5102 'none needed') :
5103 ac_c_undeclared_builtin_options='' ;; #(
5104 *) :
5105 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5106 esac
5107
5108 ac_fn_check_decl "$LINENO" "ftell" "ac_cv_have_decl_ftell" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5109 if test "x$ac_cv_have_decl_ftell" = xyes
5110 then :
5111 ftell_dec=1
5112 else case e in #(
5113 e) ftell_dec=0 ;;
5114 esac
5115 fi
5116
5117 ac_fn_check_decl "$LINENO" "popen" "ac_cv_have_decl_popen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5118 if test "x$ac_cv_have_decl_popen" = xyes
5119 then :
5120 popen_dec=1
5121 else case e in #(
5122 e) popen_dec=0 ;;
5123 esac
5124 fi
5125
5126 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5127 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
5128 then :
5129 unlocked_dec=1
5130 else case e in #(
5131 e) unlocked_dec=0 ;;
5132 esac
5133 fi
5134
5135 ac_fn_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5136 if test "x$ac_cv_have_decl_flockfile" = xyes
5137 then :
5138 flockfile_dec=1
5139 else case e in #(
5140 e) flockfile_dec=0 ;;
5141 esac
5142 fi
5143
5144 ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5145 if test "x$ac_cv_have_decl_fseeko" = xyes
5146 then :
5147 fseeko_dec=1
5148 else case e in #(
5149 e) fseeko_dec=0 ;;
5150 esac
5151 fi
5152
5153
5154 ac_fn_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "
5155 #include <stdio.h>
5156 #include <sys/time.h>
5157 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5158 if test "x$ac_cv_have_decl_gettimeofday" = xyes
5159 then :
5160 gettimeofday_dec=1
5161 else case e in #(
5162 e) gettimeofday_dec=0 ;;
5163 esac
5164 fi
5165
5166
5167 ac_fn_check_decl "$LINENO" "fdopen" "ac_cv_have_decl_fdopen" "
5168 #ifndef _POSIX_C_SOURCE
5169 #define _POSIX_C_SOURCE 200809L
5170 #endif
5171 #ifndef _XOPEN_SOURCE
5172 #define _XOPEN_SOURCE 500
5173 #endif
5174 #include <stdio.h>
5175 #include <stdlib.h>
5176 #include <unistd.h>
5177
5178 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5179 if test "x$ac_cv_have_decl_fdopen" = xyes
5180 then :
5181 fdopen_dec=1
5182 else case e in #(
5183 e) fdopen_dec=0 ;;
5184 esac
5185 fi
5186
5187 ac_fn_check_decl "$LINENO" "putenv" "ac_cv_have_decl_putenv" "
5188 #ifndef _POSIX_C_SOURCE
5189 #define _POSIX_C_SOURCE 200809L
5190 #endif
5191 #ifndef _XOPEN_SOURCE
5192 #define _XOPEN_SOURCE 500
5193 #endif
5194 #include <stdio.h>
5195 #include <stdlib.h>
5196 #include <unistd.h>
5197
5198 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5199 if test "x$ac_cv_have_decl_putenv" = xyes
5200 then :
5201 putenv_dec=1
5202 else case e in #(
5203 e) putenv_dec=0 ;;
5204 esac
5205 fi
5206
5207 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "
5208 #ifndef _POSIX_C_SOURCE
5209 #define _POSIX_C_SOURCE 200809L
5210 #endif
5211 #ifndef _XOPEN_SOURCE
5212 #define _XOPEN_SOURCE 500
5213 #endif
5214 #include <stdio.h>
5215 #include <stdlib.h>
5216 #include <unistd.h>
5217
5218 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5219 if test "x$ac_cv_have_decl_setenv" = xyes
5220 then :
5221 setenv_dec=1
5222 else case e in #(
5223 e) setenv_dec=0 ;;
5224 esac
5225 fi
5226
5227 ac_fn_check_decl "$LINENO" "sigaltstack" "ac_cv_have_decl_sigaltstack" "
5228 #ifndef _POSIX_C_SOURCE
5229 #define _POSIX_C_SOURCE 200809L
5230 #endif
5231 #ifndef _XOPEN_SOURCE
5232 #define _XOPEN_SOURCE 500
5233 #endif
5234 #include <stdio.h>
5235 #include <stdlib.h>
5236 #include <unistd.h>
5237
5238 #include <signal.h>
5239 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5240 if test "x$ac_cv_have_decl_sigaltstack" = xyes
5241 then :
5242 sigaltstack_dec=1
5243 else case e in #(
5244 e) sigaltstack_dec=0 ;;
5245 esac
5246 fi
5247
5248
5249 ac_fn_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5250 if test "x$ac_cv_have_decl_malloc" = xyes
5251 then :
5252 malloc_dec=1
5253 else case e in #(
5254 e) malloc_dec=0 ;;
5255 esac
5256 fi
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5263 printf %s "checking how to run the C preprocessor... " >&6; }
5264 # On Suns, sometimes $CPP names a directory.
5265 if test -n "$CPP" && test -d "$CPP"; then
5266 CPP=
5267 fi
5268 if test -z "$CPP"; then
5269 if test ${ac_cv_prog_CPP+y}
5270 then :
5271 printf %s "(cached) " >&6
5272 else case e in #(
5273 e) # Double quotes because $CC needs to be expanded
5274 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5275 do
5276 ac_preproc_ok=false
5277 for ac_c_preproc_warn_flag in '' yes
5278 do
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # On the NeXT, cc -E runs the code through the compiler's parser,
5282 # not just through cpp. "Syntax error" is here to catch this case.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <limits.h>
5286 Syntax error
5287 _ACEOF
5288 if ac_fn_c_try_cpp "$LINENO"
5289 then :
5290
5291 else case e in #(
5292 e) # Broken: fails on valid input.
5293 continue ;;
5294 esac
5295 fi
5296 rm -f conftest.err conftest.i conftest.$ac_ext
5297
5298 # OK, works on sane cases. Now check whether nonexistent headers
5299 # can be detected and how.
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #include <ac_nonexistent.h>
5303 _ACEOF
5304 if ac_fn_c_try_cpp "$LINENO"
5305 then :
5306 # Broken: success on invalid input.
5307 continue
5308 else case e in #(
5309 e) # Passes both tests.
5310 ac_preproc_ok=:
5311 break ;;
5312 esac
5313 fi
5314 rm -f conftest.err conftest.i conftest.$ac_ext
5315
5316 done
5317 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5318 rm -f conftest.i conftest.err conftest.$ac_ext
5319 if $ac_preproc_ok
5320 then :
5321 break
5322 fi
5323
5324 done
5325 ac_cv_prog_CPP=$CPP
5326 ;;
5327 esac
5328 fi
5329 CPP=$ac_cv_prog_CPP
5330 else
5331 ac_cv_prog_CPP=$CPP
5332 fi
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5334 printf "%s\n" "$CPP" >&6; }
5335 ac_preproc_ok=false
5336 for ac_c_preproc_warn_flag in '' yes
5337 do
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # On the NeXT, cc -E runs the code through the compiler's parser,
5341 # not just through cpp. "Syntax error" is here to catch this case.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <limits.h>
5345 Syntax error
5346 _ACEOF
5347 if ac_fn_c_try_cpp "$LINENO"
5348 then :
5349
5350 else case e in #(
5351 e) # Broken: fails on valid input.
5352 continue ;;
5353 esac
5354 fi
5355 rm -f conftest.err conftest.i conftest.$ac_ext
5356
5357 # OK, works on sane cases. Now check whether nonexistent headers
5358 # can be detected and how.
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <ac_nonexistent.h>
5362 _ACEOF
5363 if ac_fn_c_try_cpp "$LINENO"
5364 then :
5365 # Broken: success on invalid input.
5366 continue
5367 else case e in #(
5368 e) # Passes both tests.
5369 ac_preproc_ok=:
5370 break ;;
5371 esac
5372 fi
5373 rm -f conftest.err conftest.i conftest.$ac_ext
5374
5375 done
5376 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377 rm -f conftest.i conftest.err conftest.$ac_ext
5378 if $ac_preproc_ok
5379 then :
5380
5381 else case e in #(
5382 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5383 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5384 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5385 See 'config.log' for more details" "$LINENO" 5; } ;;
5386 esac
5387 fi
5388
5389 ac_ext=c
5390 ac_cpp='$CPP $CPPFLAGS'
5391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
5397 printf %s "checking for egrep -e... " >&6; }
5398 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else case e in #(
5402 e) if test -z "$EGREP_TRADITIONAL"; then
5403 ac_path_EGREP_TRADITIONAL_found=false
5404 # Loop through the user's path and test for each of PROGNAME-LIST
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5407 do
5408 IFS=$as_save_IFS
5409 case $as_dir in #(((
5410 '') as_dir=./ ;;
5411 */) ;;
5412 *) as_dir=$as_dir/ ;;
5413 esac
5414 for ac_prog in grep ggrep
5415 do
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5418 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5419 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5420 # Check for GNU $ac_path_EGREP_TRADITIONAL
5421 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5422 *GNU*)
5423 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5424 #(
5425 *)
5426 ac_count=0
5427 printf %s 0123456789 >"conftest.in"
5428 while :
5429 do
5430 cat "conftest.in" "conftest.in" >"conftest.tmp"
5431 mv "conftest.tmp" "conftest.in"
5432 cp "conftest.in" "conftest.nl"
5433 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5434 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5436 as_fn_arith $ac_count + 1 && ac_count=$as_val
5437 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5438 # Best one so far, save it but keep looking for a better one
5439 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5440 ac_path_EGREP_TRADITIONAL_max=$ac_count
5441 fi
5442 # 10*(2^10) chars as input seems more than enough
5443 test $ac_count -gt 10 && break
5444 done
5445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5446 esac
5447
5448 $ac_path_EGREP_TRADITIONAL_found && break 3
5449 done
5450 done
5451 done
5452 IFS=$as_save_IFS
5453 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5454 :
5455 fi
5456 else
5457 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5458 fi
5459
5460 if test "$ac_cv_path_EGREP_TRADITIONAL"
5461 then :
5462 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
5463 else case e in #(
5464 e) if test -z "$EGREP_TRADITIONAL"; then
5465 ac_path_EGREP_TRADITIONAL_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470 IFS=$as_save_IFS
5471 case $as_dir in #(((
5472 '') as_dir=./ ;;
5473 */) ;;
5474 *) as_dir=$as_dir/ ;;
5475 esac
5476 for ac_prog in egrep
5477 do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
5481 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
5482 # Check for GNU $ac_path_EGREP_TRADITIONAL
5483 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
5484 *GNU*)
5485 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
5486 #(
5487 *)
5488 ac_count=0
5489 printf %s 0123456789 >"conftest.in"
5490 while :
5491 do
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
5496 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
5502 ac_path_EGREP_TRADITIONAL_max=$ac_count
5503 fi
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5506 done
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508 esac
5509
5510 $ac_path_EGREP_TRADITIONAL_found && break 3
5511 done
5512 done
5513 done
5514 IFS=$as_save_IFS
5515 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
5516 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5517 fi
5518 else
5519 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
5520 fi
5521 ;;
5522 esac
5523 fi ;;
5524 esac
5525 fi
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
5527 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
5528 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
5529
5530 if test $malloc_dec -eq 0
5531 then :
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <malloc.h>
5535
5536 _ACEOF
5537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5538 $EGREP_TRADITIONAL "(^|[^a-zA-Z_0-9])malloc[^a-zA-Z_0-9]" >/dev/null 2>&1
5539 then :
5540 malloc_dec=2
5541 else case e in #(
5542 e) malloc_dec=0 ;;
5543 esac
5544 fi
5545 rm -rf conftest*
5546
5547 fi
5548
5549
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts flexible array members" >&5
5551 printf %s "checking if compiler accepts flexible array members... " >&6; }
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554
5555 int
5556 main (void)
5557 {
5558 \
5559 void foo(void*);struct { int a; int b[]; } ab; foo(&ab);
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"
5565 then :
5566 flex_array_ok=1
5567 else case e in #(
5568 e) flex_array_ok=0 ;;
5569 esac
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5572
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flex_array_ok" >&5
5574 printf "%s\n" "$flex_array_ok" >&6; }
5575
5576 testprogs="dreadtest dreadtestS dreadtestS1 dreadtest4K"
5577 testprogs="$testprogs dreadtest1 dreadtestW dreadtestW1"
5578 testprogs="$testprogs dreadtestL dreadtestL1"
5579 # The cast to long int works around a bug in the HP C Compiler
5580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5581 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5582 # This bug is HP SR number 8606223364.
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5584 printf %s "checking size of int... " >&6; }
5585 if test ${ac_cv_sizeof_int+y}
5586 then :
5587 printf %s "(cached) " >&6
5588 else case e in #(
5589 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
5590 then :
5591
5592 else case e in #(
5593 e) if test "$ac_cv_type_int" = yes; then
5594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5595 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5596 as_fn_error 77 "cannot compute sizeof (int)
5597 See 'config.log' for more details" "$LINENO" 5; }
5598 else
5599 ac_cv_sizeof_int=0
5600 fi ;;
5601 esac
5602 fi
5603 ;;
5604 esac
5605 fi
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5607 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
5608
5609
5610
5611 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
5612
5613
5614
5615 # The cast to long int works around a bug in the HP C Compiler
5616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5617 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5618 # This bug is HP SR number 8606223364.
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5620 printf %s "checking size of long... " >&6; }
5621 if test ${ac_cv_sizeof_long+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else case e in #(
5625 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
5626 then :
5627
5628 else case e in #(
5629 e) if test "$ac_cv_type_long" = yes; then
5630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5631 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5632 as_fn_error 77 "cannot compute sizeof (long)
5633 See 'config.log' for more details" "$LINENO" 5; }
5634 else
5635 ac_cv_sizeof_long=0
5636 fi ;;
5637 esac
5638 fi
5639 ;;
5640 esac
5641 fi
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5643 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
5644
5645
5646
5647 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
5648
5649
5650
5651 # The cast to long int works around a bug in the HP C Compiler
5652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5653 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5654 # This bug is HP SR number 8606223364.
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5656 printf %s "checking size of long long... " >&6; }
5657 if test ${ac_cv_sizeof_long_long+y}
5658 then :
5659 printf %s "(cached) " >&6
5660 else case e in #(
5661 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
5662 then :
5663
5664 else case e in #(
5665 e) if test "$ac_cv_type_long_long" = yes; then
5666 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5667 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5668 as_fn_error 77 "cannot compute sizeof (long long)
5669 See 'config.log' for more details" "$LINENO" 5; }
5670 else
5671 ac_cv_sizeof_long_long=0
5672 fi ;;
5673 esac
5674 fi
5675 ;;
5676 esac
5677 fi
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5679 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
5680
5681
5682
5683 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
5684
5685
5686
5687 # The cast to long int works around a bug in the HP C Compiler
5688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5689 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5690 # This bug is HP SR number 8606223364.
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5692 printf %s "checking size of void*... " >&6; }
5693 if test ${ac_cv_sizeof_voidp+y}
5694 then :
5695 printf %s "(cached) " >&6
5696 else case e in #(
5697 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
5698 then :
5699
5700 else case e in #(
5701 e) if test "$ac_cv_type_voidp" = yes; then
5702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5703 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5704 as_fn_error 77 "cannot compute sizeof (void*)
5705 See 'config.log' for more details" "$LINENO" 5; }
5706 else
5707 ac_cv_sizeof_voidp=0
5708 fi ;;
5709 esac
5710 fi
5711 ;;
5712 esac
5713 fi
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5715 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
5716
5717
5718
5719 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
5720
5721
5722
5723 if test $allow_128 -eq 1
5724 then :
5725 # The cast to long int works around a bug in the HP C Compiler
5726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5727 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5728 # This bug is HP SR number 8606223364.
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t" >&5
5730 printf %s "checking size of __uint128_t... " >&6; }
5731 if test ${ac_cv_sizeof___uint128_t+y}
5732 then :
5733 printf %s "(cached) " >&6
5734 else case e in #(
5735 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__uint128_t))" "ac_cv_sizeof___uint128_t" "$ac_includes_default"
5736 then :
5737
5738 else case e in #(
5739 e) if test "$ac_cv_type___uint128_t" = yes; then
5740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5741 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5742 as_fn_error 77 "cannot compute sizeof (__uint128_t)
5743 See 'config.log' for more details" "$LINENO" 5; }
5744 else
5745 ac_cv_sizeof___uint128_t=0
5746 fi ;;
5747 esac
5748 fi
5749 ;;
5750 esac
5751 fi
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
5753 printf "%s\n" "$ac_cv_sizeof___uint128_t" >&6; }
5754
5755
5756
5757 printf "%s\n" "#define SIZEOF___UINT128_T $ac_cv_sizeof___uint128_t" >>confdefs.h
5758
5759
5760 # The cast to long int works around a bug in the HP C Compiler
5761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5762 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5763 # This bug is HP SR number 8606223364.
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
5765 printf %s "checking size of unsigned __int128... " >&6; }
5766 if test ${ac_cv_sizeof_unsigned___int128+y}
5767 then :
5768 printf %s "(cached) " >&6
5769 else case e in #(
5770 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"
5771 then :
5772
5773 else case e in #(
5774 e) if test "$ac_cv_type_unsigned___int128" = yes; then
5775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5776 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5777 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
5778 See 'config.log' for more details" "$LINENO" 5; }
5779 else
5780 ac_cv_sizeof_unsigned___int128=0
5781 fi ;;
5782 esac
5783 fi
5784 ;;
5785 esac
5786 fi
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
5788 printf "%s\n" "$ac_cv_sizeof_unsigned___int128" >&6; }
5789
5790
5791
5792 printf "%s\n" "#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128" >>confdefs.h
5793
5794
5795 else case e in #(
5796 e) ac_cv_sizeof___uint128_t=0
5797 ac_cv_sizeof_unsigned___int128=0 ;;
5798 esac
5799 fi
5800 if test $ac_cv_sizeof___uint128_t -eq 16 || test $ac_cv_sizeof_unsigned___int128 -eq 16
5801 then :
5802 runonetestQ='runonetest "$1" "$2" "$3"'
5803 Qlibs_or_null="libnautyQ1.la libnautyQ.la"
5804 TLSQlibs_or_null="libnautyTQ1.la libnautyTQ.la"
5805 testprogs="$testprogs dreadtestQ dreadtestQ1"
5806 nautests="nautest nautestS nautestW nautestL nautestQ"
5807 else case e in #(
5808 e) runonetestQ=true
5809 Qlibs_or_null=
5810 TLSQlibs_or_null=
5811 nautests="nautest nautestS nautestW nautestL" ;;
5812 esac
5813 fi
5814
5815
5816
5817
5818
5819
5820
5821
5822 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
5823 if test "x$ac_cv_func_isatty" = xyes
5824 then :
5825 have_isatty=1
5826 else case e in #(
5827 e) have_isatty=0 ;;
5828 esac
5829 fi
5830
5831
5832 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
5833 if test "x$ac_cv_func_time" = xyes
5834 then :
5835 have_time=1
5836 else case e in #(
5837 e) have_time=0 ;;
5838 esac
5839 fi
5840
5841
5842 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5843 if test "x$ac_cv_func_gettimeofday" = xyes
5844 then :
5845 have_gettimeofday=1
5846 else case e in #(
5847 e) have_gettimeofday=0 ;;
5848 esac
5849 fi
5850
5851
5852 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5853 if test "x$ac_cv_func_clock_gettime" = xyes
5854 then :
5855 have_clock_gettime=1
5856 else case e in #(
5857 e) have_clock_gettime=0 ;;
5858 esac
5859 fi
5860
5861
5862 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
5863 if test "x$ac_cv_func_clock" = xyes
5864 then :
5865 have_clock=1
5866 else case e in #(
5867 e) have_clock=0 ;;
5868 esac
5869 fi
5870
5871
5872 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
5873 if test "x$ac_cv_func_times" = xyes
5874 then :
5875 have_times=1
5876 else case e in #(
5877 e) have_times=0 ;;
5878 esac
5879 fi
5880
5881
5882 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
5883 if test "x$ac_cv_func_getrusage" = xyes
5884 then :
5885 have_getrusage=1
5886 else case e in #(
5887 e) have_getrusage=0 ;;
5888 esac
5889 fi
5890
5891
5892 ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
5893 if test "x$ac_cv_func_perror" = xyes
5894 then :
5895 have_perror=1
5896 else case e in #(
5897 e) have_perror=0 ;;
5898 esac
5899 fi
5900
5901
5902 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
5903 if test "x$ac_cv_func_pipe" = xyes
5904 then :
5905 have_pipe=1
5906 else case e in #(
5907 e) have_pipe=0 ;;
5908 esac
5909 fi
5910
5911
5912 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
5913 if test "x$ac_cv_func_wait" = xyes
5914 then :
5915 have_wait=1
5916 else case e in #(
5917 e) have_wait=0 ;;
5918 esac
5919 fi
5920
5921
5922 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
5923 if test "x$ac_cv_func_popen" = xyes
5924 then :
5925 have_popen=1
5926 else case e in #(
5927 e) have_popen=0 ;;
5928 esac
5929 fi
5930
5931
5932 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
5933 if test "x$ac_cv_func_putenv" = xyes
5934 then :
5935 have_putenv=1
5936 else case e in #(
5937 e) have_putenv=0 ;;
5938 esac
5939 fi
5940
5941
5942 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
5943 if test "x$ac_cv_func_setenv" = xyes
5944 then :
5945 have_setenv=1
5946 else case e in #(
5947 e) have_setenv=0 ;;
5948 esac
5949 fi
5950
5951
5952
5953 ac_func=
5954 for ac_item in $ac_func_c_list
5955 do
5956 if test $ac_func; then
5957 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
5958 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
5959 echo "#define $ac_item 1" >> confdefs.h
5960 fi
5961 ac_func=
5962 else
5963 ac_func=$ac_item
5964 fi
5965 done
5966
5967
5968
5969 if test "x$ac_cv_func_fork" = xyes; then
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5971 printf %s "checking for working fork... " >&6; }
5972 if test ${ac_cv_func_fork_works+y}
5973 then :
5974 printf %s "(cached) " >&6
5975 else case e in #(
5976 e) if test "$cross_compiling" = yes
5977 then :
5978 ac_cv_func_fork_works=cross
5979 else case e in #(
5980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 $ac_includes_default
5983 int
5984 main (void)
5985 {
5986
5987 /* By R. Kuhlmann. */
5988 return fork () < 0;
5989
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 if ac_fn_c_try_run "$LINENO"
5995 then :
5996 ac_cv_func_fork_works=yes
5997 else case e in #(
5998 e) ac_cv_func_fork_works=no ;;
5999 esac
6000 fi
6001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6002 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6003 esac
6004 fi
6005 ;;
6006 esac
6007 fi
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6009 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6010
6011 else
6012 ac_cv_func_fork_works=$ac_cv_func_fork
6013 fi
6014 if test "x$ac_cv_func_fork_works" = xcross; then
6015 case $host in
6016 *-*-amigaos* | *-*-msdosdjgpp*)
6017 # Override, as these systems have only a dummy fork() stub
6018 ac_cv_func_fork_works=no
6019 ;;
6020 *)
6021 ac_cv_func_fork_works=yes
6022 ;;
6023 esac
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6025 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6026 fi
6027 ac_cv_func_vfork_works=$ac_cv_func_vfork
6028 if test "x$ac_cv_func_vfork" = xyes; then
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6030 printf %s "checking for working vfork... " >&6; }
6031 if test ${ac_cv_func_vfork_works+y}
6032 then :
6033 printf %s "(cached) " >&6
6034 else case e in #(
6035 e) if test "$cross_compiling" = yes
6036 then :
6037 ac_cv_func_vfork_works=cross
6038 else case e in #(
6039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 /* Thanks to Paul Eggert for this test. */
6042 $ac_includes_default
6043 #include <signal.h>
6044 #include <sys/wait.h>
6045 #ifdef HAVE_VFORK_H
6046 # include <vfork.h>
6047 #endif
6048
6049 static void
6050 do_nothing (int sig)
6051 {
6052 (void) sig;
6053 }
6054
6055 /* On some sparc systems, changes by the child to local and incoming
6056 argument registers are propagated back to the parent. The compiler
6057 is told about this with #include <vfork.h>, but some compilers
6058 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6059 static variable whose address is put into a register that is
6060 clobbered by the vfork. */
6061 static void
6062 sparc_address_test (int arg)
6063 {
6064 static pid_t child;
6065 if (!child) {
6066 child = vfork ();
6067 if (child < 0) {
6068 perror ("vfork");
6069 _exit(2);
6070 }
6071 if (!child) {
6072 arg = getpid();
6073 write(-1, "", 0);
6074 _exit (arg);
6075 }
6076 }
6077 }
6078
6079 int
6080 main (void)
6081 {
6082 pid_t parent = getpid ();
6083 pid_t child;
6084
6085 sparc_address_test (0);
6086
6087 /* On Solaris 2.4, changes by the child to the signal handler
6088 also munge signal handlers in the parent. To detect this,
6089 start by putting the parent's handler in a known state. */
6090 signal (SIGTERM, SIG_DFL);
6091
6092 child = vfork ();
6093
6094 if (child == 0) {
6095 /* Here is another test for sparc vfork register problems. This
6096 test uses lots of local variables, at least as many local
6097 variables as main has allocated so far including compiler
6098 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6099 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6100 reuse the register of parent for one of the local variables,
6101 since it will think that parent can't possibly be used any more
6102 in this routine. Assigning to the local variable will thus
6103 munge parent in the parent process. */
6104 pid_t
6105 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6106 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6107 /* Convince the compiler that p..p7 are live; otherwise, it might
6108 use the same hardware register for all 8 local variables. */
6109 if (p != p1 || p != p2 || p != p3 || p != p4
6110 || p != p5 || p != p6 || p != p7)
6111 _exit(1);
6112
6113 /* Alter the child's signal handler. */
6114 if (signal (SIGTERM, do_nothing) != SIG_DFL)
6115 _exit(1);
6116
6117 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6118 from child file descriptors. If the child closes a descriptor
6119 before it execs or exits, this munges the parent's descriptor
6120 as well. Test for this by closing stdout in the child. */
6121 _exit(close(fileno(stdout)) != 0);
6122 } else {
6123 int status;
6124 struct stat st;
6125
6126 while (wait(&status) != child)
6127 ;
6128 return (
6129 /* Was there some problem with vforking? */
6130 child < 0
6131
6132 /* Did the child munge the parent's signal handler? */
6133 || signal (SIGTERM, SIG_DFL) != SIG_DFL
6134
6135 /* Did the child fail? (This shouldn't happen.) */
6136 || status
6137
6138 /* Did the vfork/compiler bug occur? */
6139 || parent != getpid()
6140
6141 /* Did the file descriptor bug occur? */
6142 || fstat(fileno(stdout), &st) != 0
6143 );
6144 }
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_run "$LINENO"
6148 then :
6149 ac_cv_func_vfork_works=yes
6150 else case e in #(
6151 e) ac_cv_func_vfork_works=no ;;
6152 esac
6153 fi
6154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6155 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6156 esac
6157 fi
6158 ;;
6159 esac
6160 fi
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6162 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6163
6164 fi;
6165 if test "x$ac_cv_func_fork_works" = xcross; then
6166 ac_cv_func_vfork_works=$ac_cv_func_vfork
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6168 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6169 fi
6170
6171 if test "x$ac_cv_func_vfork_works" = xyes; then
6172
6173 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6174
6175 else
6176
6177 printf "%s\n" "#define vfork fork" >>confdefs.h
6178
6179 fi
6180 if test "x$ac_cv_func_fork_works" = xyes; then
6181
6182 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6183
6184 fi
6185
6186 if test "x$ac_cv_func_fork" = xyes; then
6187 have_fork=1
6188 else
6189 have_fork=0
6190 fi
6191
6192
6193 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
6194 if test "x$ac_cv_func_fseeko" = xyes
6195 then :
6196 have_fseeko=1
6197 else case e in #(
6198 e) have_fseeko=0 ;;
6199 esac
6200 fi
6201
6202
6203 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6204 if test "x$ac_cv_func_sigaction" = xyes
6205 then :
6206 have_sigaction=1
6207 else case e in #(
6208 e) have_sigaction=0 ;;
6209 esac
6210 fi
6211
6212
6213 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
6214 if test "x$ac_cv_func_sigprocmask" = xyes
6215 then :
6216 have_sigprocmask=1
6217 else case e in #(
6218 e) have_sigprocmask=0 ;;
6219 esac
6220 fi
6221
6222
6223 ac_fn_c_check_func "$LINENO" "write" "ac_cv_func_write"
6224 if test "x$ac_cv_func_write" = xyes
6225 then :
6226 have_write=1
6227 else case e in #(
6228 e) have_write=0 ;;
6229 esac
6230 fi
6231
6232
6233
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6235 printf %s "checking for grep that handles long lines and -e... " >&6; }
6236 if test ${ac_cv_path_GREP+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else case e in #(
6240 e) if test -z "$GREP"; then
6241 ac_path_GREP_found=false
6242 # Loop through the user's path and test for each of PROGNAME-LIST
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6245 do
6246 IFS=$as_save_IFS
6247 case $as_dir in #(((
6248 '') as_dir=./ ;;
6249 */) ;;
6250 *) as_dir=$as_dir/ ;;
6251 esac
6252 for ac_prog in grep ggrep
6253 do
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6256 as_fn_executable_p "$ac_path_GREP" || continue
6257 # Check for GNU ac_path_GREP and select it if it is found.
6258 # Check for GNU $ac_path_GREP
6259 case `"$ac_path_GREP" --version 2>&1` in #(
6260 *GNU*)
6261 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6262 #(
6263 *)
6264 ac_count=0
6265 printf %s 0123456789 >"conftest.in"
6266 while :
6267 do
6268 cat "conftest.in" "conftest.in" >"conftest.tmp"
6269 mv "conftest.tmp" "conftest.in"
6270 cp "conftest.in" "conftest.nl"
6271 printf "%s\n" 'GREP' >> "conftest.nl"
6272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6274 as_fn_arith $ac_count + 1 && ac_count=$as_val
6275 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6276 # Best one so far, save it but keep looking for a better one
6277 ac_cv_path_GREP="$ac_path_GREP"
6278 ac_path_GREP_max=$ac_count
6279 fi
6280 # 10*(2^10) chars as input seems more than enough
6281 test $ac_count -gt 10 && break
6282 done
6283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6284 esac
6285
6286 $ac_path_GREP_found && break 3
6287 done
6288 done
6289 done
6290 IFS=$as_save_IFS
6291 if test -z "$ac_cv_path_GREP"; then
6292 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6293 fi
6294 else
6295 ac_cv_path_GREP=$GREP
6296 fi
6297 ;;
6298 esac
6299 fi
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6301 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6302 GREP="$ac_cv_path_GREP"
6303
6304
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6306 printf %s "checking for egrep... " >&6; }
6307 if test ${ac_cv_path_EGREP+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else case e in #(
6311 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6312 then ac_cv_path_EGREP="$GREP -E"
6313 else
6314 if test -z "$EGREP"; then
6315 ac_path_EGREP_found=false
6316 # Loop through the user's path and test for each of PROGNAME-LIST
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6319 do
6320 IFS=$as_save_IFS
6321 case $as_dir in #(((
6322 '') as_dir=./ ;;
6323 */) ;;
6324 *) as_dir=$as_dir/ ;;
6325 esac
6326 for ac_prog in egrep
6327 do
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6330 as_fn_executable_p "$ac_path_EGREP" || continue
6331 # Check for GNU ac_path_EGREP and select it if it is found.
6332 # Check for GNU $ac_path_EGREP
6333 case `"$ac_path_EGREP" --version 2>&1` in #(
6334 *GNU*)
6335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6336 #(
6337 *)
6338 ac_count=0
6339 printf %s 0123456789 >"conftest.in"
6340 while :
6341 do
6342 cat "conftest.in" "conftest.in" >"conftest.tmp"
6343 mv "conftest.tmp" "conftest.in"
6344 cp "conftest.in" "conftest.nl"
6345 printf "%s\n" 'EGREP' >> "conftest.nl"
6346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6348 as_fn_arith $ac_count + 1 && ac_count=$as_val
6349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6350 # Best one so far, save it but keep looking for a better one
6351 ac_cv_path_EGREP="$ac_path_EGREP"
6352 ac_path_EGREP_max=$ac_count
6353 fi
6354 # 10*(2^10) chars as input seems more than enough
6355 test $ac_count -gt 10 && break
6356 done
6357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6358 esac
6359
6360 $ac_path_EGREP_found && break 3
6361 done
6362 done
6363 done
6364 IFS=$as_save_IFS
6365 if test -z "$ac_cv_path_EGREP"; then
6366 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6367 fi
6368 else
6369 ac_cv_path_EGREP=$EGREP
6370 fi
6371
6372 fi ;;
6373 esac
6374 fi
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6376 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6377 EGREP="$ac_cv_path_EGREP"
6378
6379 EGREP_TRADITIONAL=$EGREP
6380 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6381
6382
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if popcnt instruction is available and requested" >&5
6384 printf %s "checking if popcnt instruction is available and requested... " >&6; }
6385 if test "$cross_compiling" = yes
6386 then :
6387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6388 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6389 as_fn_error $? "cannot run test program while cross compiling
6390 See 'config.log' for more details" "$LINENO" 5; }
6391 else case e in #(
6392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394
6395 int
6396 main (void)
6397 {
6398 if (__builtin_cpu_supports("popcnt")) return 0; else return 1;
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_c_try_run "$LINENO"
6404 then :
6405 popsup=1
6406 else case e in #(
6407 e) popsup=0 ;;
6408 esac
6409 fi
6410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6411 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6412 esac
6413 fi
6414
6415
6416 if test "$allow_popcnt" -eq 1
6417 then :
6418 have_hwpopcnt=$popsup
6419 test -f /proc/cpuinfo && $EGREP -i popcnt /proc/cpuinfo >/dev/null && have_hwpopcnt=1
6420 test $have_hwpopcnt -eq 0 && sysctl machdep.cpu.features 2>/dev/null | $EGREP -i popcnt >/dev/null && have_hwpopcnt=1
6421 test $have_hwpopcnt -eq 0 && isainfo -x -v 2>/dev/null | $EGREP -i popc >/dev/null && have_hwpopcnt=1
6422 test $have_hwpopcnt -eq 0 && isainfo -v 2>/dev/null | $EGREP -i popc >/dev/null && have_hwpopcnt=1
6423 test $have_hwpopcnt -eq 0 && test $is_freebsd -eq 1 && sysctl -a 2>/dev/null | $EGREP -i "Features*POPCNT" >/dev/null && have_hwpopcnt=1
6424 test $have_hwpopcnt -eq 0 && test $is_ARM64 -eq 1 && have_hwpopcnt=1
6425
6426 else case e in #(
6427 e) have_hwpopcnt=0
6428 ;;
6429 esac
6430 fi
6431 # Some problems with popcnt on powerpc are not resolved yet and probably won't be
6432 test $is_powerpc -eq 1 && have_hwpopcnt=0
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_hwpopcnt" >&5
6434 printf "%s\n" "$have_hwpopcnt" >&6; }
6435
6436
6437 SAVE_CFLAGS="$CFLAGS"
6438 have_popcnt=0
6439 have_popcntl=0
6440 have_popcntll=0
6441 have_mmpop32=0
6442 have_mmpop64=0
6443
6444 if test $have_hwpopcnt -eq 1
6445 then :
6446 if test "$CC" = "icc"
6447 then :
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _mm_popcnt_u32() is supported" >&5
6449 printf %s "checking if _mm_popcnt_u32() is supported... " >&6; }
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <nmmintrin.h>
6453 int main(){unsigned int x; x = _mm_popcnt_u32(x);}
6454 _ACEOF
6455 if ac_fn_c_try_link "$LINENO"
6456 then :
6457 have_mmpop32=1
6458 else case e in #(
6459 e) have_mmpop32=0 ;;
6460 esac
6461 fi
6462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6463 conftest$ac_exeext conftest.$ac_ext
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mmpop32" >&5
6465 printf "%s\n" "$have_mmpop32" >&6; }
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _mm_popcnt_u64() is supported" >&5
6467 printf %s "checking if _mm_popcnt_u64() is supported... " >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6470 #include <nmmintrin.h>
6471 int main(){unsigned int x; x = _mm_popcnt_u64(x);}
6472 _ACEOF
6473 if ac_fn_c_try_link "$LINENO"
6474 then :
6475 have_mmpop64=1
6476 else case e in #(
6477 e) have_mmpop64=0 ;;
6478 esac
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6481 conftest$ac_exeext conftest.$ac_ext
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mmpop64" >&5
6483 printf "%s\n" "$have_mmpop64" >&6; }
6484 else case e in #(
6485 e) if test "$is_ARM64" -eq 0
6486 then :
6487 CFLAGS="$CFLAGS -mpopcnt"
6488 fi
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __builtin_popcount() is supported" >&5
6490 printf %s "checking if __builtin_popcount() is supported... " >&6; }
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 int main(){unsigned int x; x = __builtin_popcount(x);}
6494 _ACEOF
6495 if ac_fn_c_try_link "$LINENO"
6496 then :
6497 have_popcnt=1
6498 else case e in #(
6499 e) have_popcnt=0 ;;
6500 esac
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6503 conftest$ac_exeext conftest.$ac_ext
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_popcnt" >&5
6505 printf "%s\n" "$have_popcnt" >&6; }
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __builtin_popcountl() is supported" >&5
6507 printf %s "checking if __builtin_popcountl() is supported... " >&6; }
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 int main(){unsigned long x; x = __builtin_popcountl(x);}
6511 _ACEOF
6512 if ac_fn_c_try_link "$LINENO"
6513 then :
6514 have_popcntl=1
6515 else case e in #(
6516 e) have_popcntl=0 ;;
6517 esac
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6520 conftest$ac_exeext conftest.$ac_ext
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_popcntl" >&5
6522 printf "%s\n" "$have_popcntl" >&6; }
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __builtin_popcountll() is supported" >&5
6524 printf %s "checking if __builtin_popcountll() is supported... " >&6; }
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 int main(){unsigned long long x; x = __builtin_popcountll(x);}
6528 _ACEOF
6529 if ac_fn_c_try_link "$LINENO"
6530 then :
6531 have_popcntll=1
6532 else case e in #(
6533 e) have_popcntll=0 ;;
6534 esac
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6537 conftest$ac_exeext conftest.$ac_ext
6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_popcntll" >&5
6539 printf "%s\n" "$have_popcntll" >&6; }
6540 if test $is_ARM64 -eq 1
6541 then :
6542
6543 elif test $have_popcnt -eq 1 || test $have_popcntl -eq 1 || test $have_popcntll -eq 1
6544 then :
6545 MORECFLAGS="$MORECFLAGS -mpopcnt"
6546 fi
6547 ;;
6548 esac
6549 fi
6550 fi
6551 CFLAGS="$SAVE_CFLAGS"
6552
6553
6554
6555
6556
6557
6558 # Unless --enable-generic is given to configure, we try to use the -march=native compiler
6559 # switch. However, it breaks some versions of gcc on MacOSX due to a compiler bug, so
6560 # we will also add --mno-avx if that is necessary.
6561 # But don't add -march-native if the user provided an architecture via CFLAGS or CC
6562
6563 case "$CFLAGS" in
6564 *-march=* ) allow_native=0 ;;
6565 esac
6566 case "$CC" in
6567 *-march=* ) allow_native=0 ;;
6568 esac
6569 case "$build" in
6570 i686*musl ) allow_native=0 ;;
6571 esac
6572
6573 if test "$allow_native" -eq 1
6574 then :
6575
6576 SAVE_CFLAGS="$CFLAGS"
6577 CFLAGS="$CFLAGS -march=native"
6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -march=native" >&5
6579 printf %s "checking if $CC supports -march=native... " >&6; }
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <stdio.h>
6583 int main() { double t; long int q; scanf("%ld",&q);
6584 t = q; printf("t = %f\n",t); return 0; }
6585
6586
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"
6589 then :
6590 ac_cv_native_ok=yes
6591 else case e in #(
6592 e) ac_cv_native_ok=no ;;
6593 esac
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_ok" >&5
6597 printf "%s\n" "$ac_cv_native_ok" >&6; }
6598 CFLAGS="$SAVE_CFLAGS"
6599 if test "x$ac_cv_native_ok" = xyes
6600 then :
6601 MORECFLAGS="$MORECFLAGS -march=native"
6602 else case e in #(
6603 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -march=native -mno-avx flags" >&5
6604 printf %s "checking if $CC supports -march=native -mno-avx flags... " >&6; }
6605 SAVE_CFLAGS="$CFLAGS"
6606 CFLAGS="-march=native -mno-avx"
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609
6610 int
6611 main (void)
6612 {
6613 \
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"
6620 then :
6621 ac_cv_try_cflags_ok=yes
6622 else case e in #(
6623 e) ac_cv_try_cflags_ok=no ;;
6624 esac
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6627 CFLAGS="$SAVE_CFLAGS"
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_try_cflags_ok" >&5
6629 printf "%s\n" "$ac_cv_try_cflags_ok" >&6; }
6630 if test "x$ac_cv_try_cflags_ok" = xyes; then
6631 MORECFLAGS="$MORECFLAGS -march=native -mno-avx"
6632 else
6633 :
6634 fi
6635 ;;
6636 esac
6637 fi
6638
6639 fi
6640
6641
6642
6643 echo CC="$CC"
6644 echo CFLAGS="$CFLAGS"
6645 echo MORECFLAGS="$MORECFLAGS"
6646
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if lzcnt instruction is available and requested" >&5
6648 printf %s "checking if lzcnt instruction is available and requested... " >&6; }
6649 if test "$cross_compiling" = yes
6650 then :
6651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6652 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6653 as_fn_error $? "cannot run test program while cross compiling
6654 See 'config.log' for more details" "$LINENO" 5; }
6655 else case e in #(
6656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658
6659 int
6660 main (void)
6661 {
6662 if (__builtin_cpu_supports("bmi")) return 0; else return 1;
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_run "$LINENO"
6668 then :
6669 lzsup=1
6670 else case e in #(
6671 e) lzsup=0 ;;
6672 esac
6673 fi
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6675 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6676 esac
6677 fi
6678
6679 if test "$allow_clz" -eq 1
6680 then :
6681 have_hwlzcnt=$lzsup
6682 test -f /proc/cpuinfo && $EGREP -i "abm|bmi1" /proc/cpuinfo >/dev/null && have_hwlzcnt=1
6683 test $have_hwlzcnt -eq 0 && sysctl machdep.cpu.features 2>/dev/null | $EGREP -i "bmi1|abm" >/dev/null && have_hwlzcnt=1
6684 test $have_hwlzcnt -eq 0 && sysctl machdep.cpu.extfeatures 2>/dev/null | $EGREP -i "lzcnt" >/dev/null && have_hwlzcnt=1
6685 test $have_hwlzcnt -eq 0 && isainfo -x -v 2>/dev/null | $EGREP -i "bmi1|abm" >/dev/null && have_hwlzcnt=1
6686 test $have_hwlzcnt -eq 0 && isainfo -v 2>/dev/null | $EGREP -i "bmi1|abm" >/dev/null && have_hwlzcnt=1
6687 test $have_hwlzcnt -eq 0 && test $is_freebsd -eq 1 && sysctl -a 2>/dev/null | $EGREP -i "Features*BMI1" >/dev/null && have_hwlzcnt=1
6688 test $have_hwlzcnt -eq 0 && test $is_ARM64 -eq 1 && have_hwlzcnt=1
6689 else case e in #(
6690 e) have_hwlzcnt=0 ;;
6691 esac
6692 fi
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_hwlzcnt" >&5
6694 printf "%s\n" "$have_hwlzcnt" >&6; }
6695
6696
6697 if test "$allow_clz" -eq 1
6698 then :
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __builtin_clz() is supported" >&5
6700 printf %s "checking if __builtin_clz() is supported... " >&6; }
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 int main(){unsigned int x; x = __builtin_clz(x);}
6704 _ACEOF
6705 if ac_fn_c_try_link "$LINENO"
6706 then :
6707 have_clz=1
6708 else case e in #(
6709 e) have_clz=0 ;;
6710 esac
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6713 conftest$ac_exeext conftest.$ac_ext
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clz" >&5
6715 printf "%s\n" "$have_clz" >&6; }
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __builtin_clzl() is supported" >&5
6717 printf %s "checking if __builtin_clzl() is supported... " >&6; }
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 int main(){unsigned long x; x = __builtin_clzl(x);}
6721 _ACEOF
6722 if ac_fn_c_try_link "$LINENO"
6723 then :
6724 have_clzl=1
6725 else case e in #(
6726 e) have_clzl=0 ;;
6727 esac
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6730 conftest$ac_exeext conftest.$ac_ext
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clzl" >&5
6732 printf "%s\n" "$have_clzl" >&6; }
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __builtin_clzll() is supported" >&5
6734 printf %s "checking if __builtin_clzll() is supported... " >&6; }
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 int main(){unsigned long long x; x = __builtin_clzll(x);}
6738 _ACEOF
6739 if ac_fn_c_try_link "$LINENO"
6740 then :
6741 have_clzll=1
6742 else case e in #(
6743 e) have_clzll=0 ;;
6744 esac
6745 fi
6746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6747 conftest$ac_exeext conftest.$ac_ext
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clzll" >&5
6749 printf "%s\n" "$have_clzll" >&6; }
6750 else case e in #(
6751 e)
6752 have_clz=0
6753 have_clzl=0
6754 have_clzll=0
6755 ;;
6756 esac
6757 fi
6758
6759
6760
6761
6762
6763
6764 if test $have_pipe -eq 1 && test $have_wait -eq 1 && test $have_fork -eq 1
6765 then :
6766 shortg=1
6767 shortg_or_null=shortg
6768 else case e in #(
6769 e) shortg=0
6770 shortg_or_null= ;;
6771 esac
6772 fi
6773
6774
6775 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
6776 if test "x$ac_cv_func_getc_unlocked" = xyes
6777 then :
6778 have_getc_unlocked=1
6779 else case e in #(
6780 e) have_getc_unlocked=0 ;;
6781 esac
6782 fi
6783
6784 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
6785 if test "x$ac_cv_func_flockfile" = xyes
6786 then :
6787 have_flockfile=1
6788 else case e in #(
6789 e) have_flockfile=0 ;;
6790 esac
6791 fi
6792
6793
6794 if test $have_getc_unlocked -eq 1 && test $have_flockfile -eq 1
6795 then :
6796 stdio_nolock=1
6797 else case e in #(
6798 e) stdio_nolock=0 ;;
6799 esac
6800 fi
6801
6802
6803
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for noreturn attribute" >&5
6805 printf %s "checking for noreturn attribute... " >&6; }
6806 for ax_noret_keyword in '[noreturn]' '_Noreturn' '__attribute__((noreturn))' '__desclspec(noreturn)' none; do
6807 case $ax_noret_keyword in #(
6808 none) :
6809 ac_cv_noret=none ; break ;; #(
6810 *) :
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813 #include <stdlib.h>
6814 $ax_noret_keyword void f() { exit(1); }
6815 int
6816 main (void)
6817 {
6818 f();
6819
6820 ;
6821 return 0;
6822 }
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"
6825 then :
6826 ac_cv_noret=$ax_noret_keyword ; break
6827 else case e in #(
6828 e) ac_cv_noret=none
6829 ;;
6830 esac
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6833 ;;
6834 esac
6835 done
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_noret" >&5
6837 printf "%s\n" "$ac_cv_noret" >&6; }
6838
6839 if test "$ac_cv_noret" != "none"
6840 then :
6841
6842 printf "%s\n" "#define NORET $ac_cv_noret" >>confdefs.h
6843
6844 noret_supported=1
6845 else case e in #(
6846 e) noret_supported=0 ;;
6847 esac
6848 fi
6849
6850 if test "$noret_supported" -eq 0
6851 then :
6852 ac_cv_noret=
6853 fi
6854
6855
6856
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6858 printf %s "checking for thread local storage (TLS) class... " >&6; }
6859 for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
6860 case $ax_tls_keyword in #(
6861 none) :
6862 ac_cv_tls=none ; break ;; #(
6863 *) :
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <stdlib.h>
6867 int
6868 main (void)
6869 {
6870 static $ax_tls_keyword int bar;
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_compile "$LINENO"
6877 then :
6878 ac_cv_tls=$ax_tls_keyword ; break
6879 else case e in #(
6880 e) ac_cv_tls=none
6881 ;;
6882 esac
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6885 ;;
6886 esac
6887 done
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6889 printf "%s\n" "$ac_cv_tls" >&6; }
6890
6891 if test "$ac_cv_tls" != "none"
6892 then :
6893
6894 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6895
6896 tls_supported=1
6897 else case e in #(
6898 e) tls_supported=0 ;;
6899 esac
6900 fi
6901
6902 if test "$tls_supported" -eq 0
6903 then :
6904 ac_cv_tls=
6905 fi
6906
6907
6908
6909
6910 have_ansicontrols=$allow_ansi
6911
6912
6913
6914
6915 if test $is_cygwin -eq 1
6916 then :
6917 for ac_prog in gsort sort
6918 do
6919 # Extract the first word of "$ac_prog", so it can be a program name with args.
6920 set dummy $ac_prog; ac_word=$2
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 printf %s "checking for $ac_word... " >&6; }
6923 if test ${ac_cv_path_sort_prog+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) case $sort_prog in
6928 [\\/]* | ?:[\\/]*)
6929 ac_cv_path_sort_prog="$sort_prog" # Let the user override the test with a path.
6930 ;;
6931 *)
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in /usr/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR$PATH
6934 do
6935 IFS=$as_save_IFS
6936 case $as_dir in #(((
6937 '') as_dir=./ ;;
6938 */) ;;
6939 *) as_dir=$as_dir/ ;;
6940 esac
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6943 ac_cv_path_sort_prog="$as_dir$ac_word$ac_exec_ext"
6944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 ;;
6952 esac ;;
6953 esac
6954 fi
6955 sort_prog=$ac_cv_path_sort_prog
6956 if test -n "$sort_prog"; then
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sort_prog" >&5
6958 printf "%s\n" "$sort_prog" >&6; }
6959 else
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 printf "%s\n" "no" >&6; }
6962 fi
6963
6964
6965 test -n "$sort_prog" && break
6966 done
6967 test -n "$sort_prog" || sort_prog="no_sort_found"
6968
6969 else case e in #(
6970 e) for ac_prog in gsort sort
6971 do
6972 # Extract the first word of "$ac_prog", so it can be a program name with args.
6973 set dummy $ac_prog; ac_word=$2
6974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 printf %s "checking for $ac_word... " >&6; }
6976 if test ${ac_cv_prog_sort_prog+y}
6977 then :
6978 printf %s "(cached) " >&6
6979 else case e in #(
6980 e) if test -n "$sort_prog"; then
6981 ac_cv_prog_sort_prog="$sort_prog" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 case $as_dir in #(((
6988 '') as_dir=./ ;;
6989 */) ;;
6990 *) as_dir=$as_dir/ ;;
6991 esac
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_sort_prog="$ac_prog"
6995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi ;;
7003 esac
7004 fi
7005 sort_prog=$ac_cv_prog_sort_prog
7006 if test -n "$sort_prog"; then
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sort_prog" >&5
7008 printf "%s\n" "$sort_prog" >&6; }
7009 else
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 printf "%s\n" "no" >&6; }
7012 fi
7013
7014
7015 test -n "$sort_prog" && break
7016 done
7017 test -n "$sort_prog" || sort_prog="no_sort_found"
7018 ;;
7019 esac
7020 fi
7021 if test $is_cygwin -eq 1
7022 then :
7023 cygnoun="-no-undefined"
7024 else case e in #(
7025 e) cygnoun= ;;
7026 esac
7027 fi
7028
7029
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sort supports the -k switch" >&5
7031 printf %s "checking if sort supports the -k switch... " >&6; }
7032 if { $sort_prog -k "2,3" </dev/null >/dev/null 2>&1 ; }
7033 then :
7034 sort_newparams_ok=1
7035 else case e in #(
7036 e) sort_newparams_ok=0 ;;
7037 esac
7038 fi
7039
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sort_newparams_ok" >&5
7041 printf "%s\n" "$sort_newparams_ok" >&6; }
7042
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sort supports the -S switch" >&5
7044 printf %s "checking if sort supports the -S switch... " >&6; }
7045 if { $sort_prog -S 1M </dev/null >/dev/null 2>&1 ; }
7046 then :
7047 sort_size_ok=1
7048 else case e in #(
7049 e) sort_size_ok=0 ;;
7050 esac
7051 fi
7052
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sort_size_ok" >&5
7054 printf "%s\n" "$sort_size_ok" >&6; }
7055
7056 edit_msg="++++++ This file is automatically generated, don't edit it by hand! ++++++"
7057
7058
7059
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
7061 printf %s "checking for a race-free mkdir -p... " >&6; }
7062 if test -z "$MKDIR_P"; then
7063 if test ${ac_cv_path_mkdir+y}
7064 then :
7065 printf %s "(cached) " >&6
7066 else case e in #(
7067 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7069 do
7070 IFS=$as_save_IFS
7071 case $as_dir in #(((
7072 '') as_dir=./ ;;
7073 */) ;;
7074 *) as_dir=$as_dir/ ;;
7075 esac
7076 for ac_prog in mkdir gmkdir; do
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
7079 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
7080 'mkdir ('*'coreutils) '* | \
7081 *'BusyBox '* | \
7082 'mkdir (fileutils) '4.1*)
7083 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
7084 break 3;;
7085 esac
7086 done
7087 done
7088 done
7089 IFS=$as_save_IFS
7090 ;;
7091 esac
7092 fi
7093
7094 test -d ./--version && rmdir ./--version
7095 if test ${ac_cv_path_mkdir+y}; then
7096 MKDIR_P="$ac_cv_path_mkdir -p"
7097 else
7098 # As a last resort, use plain mkdir -p,
7099 # in the hope it doesn't have the bugs of ancient mkdir.
7100 MKDIR_P='mkdir -p'
7101 fi
7102 fi
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7104 printf "%s\n" "$MKDIR_P" >&6; }
7105
7106
7107 # Find a good install program. We prefer a C program (faster),
7108 # so one script is as good as another. But avoid the broken or
7109 # incompatible versions:
7110 # SysV /etc/install, /usr/sbin/install
7111 # SunOS /usr/etc/install
7112 # IRIX /sbin/install
7113 # AIX /bin/install
7114 # AmigaOS /C/install, which installs bootblocks on floppy discs
7115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7118 # OS/2's system install, which has a completely different semantic
7119 # ./install, which can be erroneously created by make from ./install.sh.
7120 # Reject install programs that cannot install multiple files.
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7122 printf %s "checking for a BSD-compatible install... " >&6; }
7123 if test -z "$INSTALL"; then
7124 if test ${ac_cv_path_install+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 case $as_dir in #(((
7133 '') as_dir=./ ;;
7134 */) ;;
7135 *) as_dir=$as_dir/ ;;
7136 esac
7137 # Account for fact that we put trailing slashes in our PATH walk.
7138 case $as_dir in #((
7139 ./ | /[cC]/* | \
7140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7141 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7142 /usr/ucb/* ) ;;
7143 *)
7144 # OSF1 and SCO ODT 3.0 have their own names for install.
7145 # Don't use installbsd from OSF since it installs stuff as root
7146 # by default.
7147 for ac_prog in ginstall scoinst install; do
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
7150 if test $ac_prog = install &&
7151 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7152 # AIX install. It has an incompatible calling convention.
7153 :
7154 elif test $ac_prog = install &&
7155 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7156 # program-specific install script used by HP pwplus--don't use.
7157 :
7158 else
7159 rm -rf conftest.one conftest.two conftest.dir
7160 echo one > conftest.one
7161 echo two > conftest.two
7162 mkdir conftest.dir
7163 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
7164 test -s conftest.one && test -s conftest.two &&
7165 test -s conftest.dir/conftest.one &&
7166 test -s conftest.dir/conftest.two
7167 then
7168 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
7169 break 3
7170 fi
7171 fi
7172 fi
7173 done
7174 done
7175 ;;
7176 esac
7177
7178 done
7179 IFS=$as_save_IFS
7180
7181 rm -rf conftest.one conftest.two conftest.dir
7182 ;;
7183 esac
7184 fi
7185 if test ${ac_cv_path_install+y}; then
7186 INSTALL=$ac_cv_path_install
7187 else
7188 # As a last resort, use the slow shell script. Don't cache a
7189 # value for INSTALL within a source directory, because that will
7190 # break other packages using the cache if that directory is
7191 # removed, or if the value is a relative name.
7192 INSTALL=$ac_install_sh
7193 fi
7194 fi
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7196 printf "%s\n" "$INSTALL" >&6; }
7197
7198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7199 # It thinks the first close brace ends the variable substitution.
7200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7201
7202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7203
7204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7205
7206
7207 if test $is_freebsd -eq 1
7208 then :
7209 PKGdir='${prefix}/libdata/pkgconfig'
7210 else case e in #(
7211 e) PKGdir='${libdir}/pkgconfig' ;;
7212 esac
7213 fi
7214
7215 # Check whether --with-pkgconfigdir was given.
7216 if test ${with_pkgconfigdir+y}
7217 then :
7218 withval=$with_pkgconfigdir; PKGdir=$with_pkgconfigdir
7219 fi
7220
7221 pkgconfigdir=$PKGdir
7222
7223
7224 for ac_prog in gunzip
7225 do
7226 # Extract the first word of "$ac_prog", so it can be a program name with args.
7227 set dummy $ac_prog; ac_word=$2
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 printf %s "checking for $ac_word... " >&6; }
7230 if test ${ac_cv_prog_gunzip_prog+y}
7231 then :
7232 printf %s "(cached) " >&6
7233 else case e in #(
7234 e) if test -n "$gunzip_prog"; then
7235 ac_cv_prog_gunzip_prog="$gunzip_prog" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240 IFS=$as_save_IFS
7241 case $as_dir in #(((
7242 '') as_dir=./ ;;
7243 */) ;;
7244 *) as_dir=$as_dir/ ;;
7245 esac
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_gunzip_prog="$ac_prog"
7249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi ;;
7257 esac
7258 fi
7259 gunzip_prog=$ac_cv_prog_gunzip_prog
7260 if test -n "$gunzip_prog"; then
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gunzip_prog" >&5
7262 printf "%s\n" "$gunzip_prog" >&6; }
7263 else
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 printf "%s\n" "no" >&6; }
7266 fi
7267
7268
7269 test -n "$gunzip_prog" && break
7270 done
7271 test -n "$gunzip_prog" || gunzip_prog="none"
7272
7273 if test "$gunzip_prog" = "gunzip"
7274 then :
7275 have_gunzip=1
7276 else case e in #(
7277 e) have_gunzip=0 ;;
7278 esac
7279 fi
7280
7281
7282
7283 case `pwd` in
7284 *\ * | *\ *)
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7286 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7287 esac
7288
7289
7290
7291 macro_version='2.5.4'
7292 macro_revision='2.5.4'
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307 ltmain=$ac_aux_dir/ltmain.sh
7308
7309 # Backslashify metacharacters that are still active within
7310 # double-quoted strings.
7311 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7312
7313 # Same as above, but do not quote variable references.
7314 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7315
7316 # Sed substitution to delay expansion of an escaped shell variable in a
7317 # double_quote_subst'ed string.
7318 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7319
7320 # Sed substitution to delay expansion of an escaped single quote.
7321 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7322
7323 # Sed substitution to avoid accidental globbing in evaled expressions
7324 no_glob_subst='s/\*/\\\*/g'
7325
7326 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7328 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7329
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7331 printf %s "checking how to print strings... " >&6; }
7332 # Test print first, because it will be a builtin if present.
7333 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7334 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7335 ECHO='print -r --'
7336 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7337 ECHO='printf %s\n'
7338 else
7339 # Use this function as a fallback that always works.
7340 func_fallback_echo ()
7341 {
7342 eval 'cat <<_LTECHO_EOF
7343 $1
7344 _LTECHO_EOF'
7345 }
7346 ECHO='func_fallback_echo'
7347 fi
7348
7349 # func_echo_all arg...
7350 # Invoke $ECHO with all args, space-separated.
7351 func_echo_all ()
7352 {
7353 $ECHO ""
7354 }
7355
7356 case $ECHO in
7357 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7358 printf "%s\n" "printf" >&6; } ;;
7359 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7360 printf "%s\n" "print -r" >&6; } ;;
7361 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7362 printf "%s\n" "cat" >&6; } ;;
7363 esac
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7379 printf %s "checking for a sed that does not truncate output... " >&6; }
7380 if test ${ac_cv_path_SED+y}
7381 then :
7382 printf %s "(cached) " >&6
7383 else case e in #(
7384 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7385 for ac_i in 1 2 3 4 5 6 7; do
7386 ac_script="$ac_script$as_nl$ac_script"
7387 done
7388 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7389 { ac_script=; unset ac_script;}
7390 if test -z "$SED"; then
7391 ac_path_SED_found=false
7392 # Loop through the user's path and test for each of PROGNAME-LIST
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396 IFS=$as_save_IFS
7397 case $as_dir in #(((
7398 '') as_dir=./ ;;
7399 */) ;;
7400 *) as_dir=$as_dir/ ;;
7401 esac
7402 for ac_prog in sed gsed
7403 do
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7406 as_fn_executable_p "$ac_path_SED" || continue
7407 # Check for GNU ac_path_SED and select it if it is found.
7408 # Check for GNU $ac_path_SED
7409 case `"$ac_path_SED" --version 2>&1` in #(
7410 *GNU*)
7411 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7412 #(
7413 *)
7414 ac_count=0
7415 printf %s 0123456789 >"conftest.in"
7416 while :
7417 do
7418 cat "conftest.in" "conftest.in" >"conftest.tmp"
7419 mv "conftest.tmp" "conftest.in"
7420 cp "conftest.in" "conftest.nl"
7421 printf "%s\n" '' >> "conftest.nl"
7422 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7424 as_fn_arith $ac_count + 1 && ac_count=$as_val
7425 if test $ac_count -gt ${ac_path_SED_max-0}; then
7426 # Best one so far, save it but keep looking for a better one
7427 ac_cv_path_SED="$ac_path_SED"
7428 ac_path_SED_max=$ac_count
7429 fi
7430 # 10*(2^10) chars as input seems more than enough
7431 test $ac_count -gt 10 && break
7432 done
7433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7434 esac
7435
7436 $ac_path_SED_found && break 3
7437 done
7438 done
7439 done
7440 IFS=$as_save_IFS
7441 if test -z "$ac_cv_path_SED"; then
7442 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7443 fi
7444 else
7445 ac_cv_path_SED=$SED
7446 fi
7447 ;;
7448 esac
7449 fi
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7451 printf "%s\n" "$ac_cv_path_SED" >&6; }
7452 SED="$ac_cv_path_SED"
7453 rm -f conftest.sed
7454
7455 test -z "$SED" && SED=sed
7456 Xsed="$SED -e 1s/^X//"
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7469 printf %s "checking for fgrep... " >&6; }
7470 if test ${ac_cv_path_FGREP+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else case e in #(
7474 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7475 then ac_cv_path_FGREP="$GREP -F"
7476 else
7477 if test -z "$FGREP"; then
7478 ac_path_FGREP_found=false
7479 # Loop through the user's path and test for each of PROGNAME-LIST
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7482 do
7483 IFS=$as_save_IFS
7484 case $as_dir in #(((
7485 '') as_dir=./ ;;
7486 */) ;;
7487 *) as_dir=$as_dir/ ;;
7488 esac
7489 for ac_prog in fgrep
7490 do
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7493 as_fn_executable_p "$ac_path_FGREP" || continue
7494 # Check for GNU ac_path_FGREP and select it if it is found.
7495 # Check for GNU $ac_path_FGREP
7496 case `"$ac_path_FGREP" --version 2>&1` in #(
7497 *GNU*)
7498 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7499 #(
7500 *)
7501 ac_count=0
7502 printf %s 0123456789 >"conftest.in"
7503 while :
7504 do
7505 cat "conftest.in" "conftest.in" >"conftest.tmp"
7506 mv "conftest.tmp" "conftest.in"
7507 cp "conftest.in" "conftest.nl"
7508 printf "%s\n" 'FGREP' >> "conftest.nl"
7509 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7511 as_fn_arith $ac_count + 1 && ac_count=$as_val
7512 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7513 # Best one so far, save it but keep looking for a better one
7514 ac_cv_path_FGREP="$ac_path_FGREP"
7515 ac_path_FGREP_max=$ac_count
7516 fi
7517 # 10*(2^10) chars as input seems more than enough
7518 test $ac_count -gt 10 && break
7519 done
7520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7521 esac
7522
7523 $ac_path_FGREP_found && break 3
7524 done
7525 done
7526 done
7527 IFS=$as_save_IFS
7528 if test -z "$ac_cv_path_FGREP"; then
7529 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7530 fi
7531 else
7532 ac_cv_path_FGREP=$FGREP
7533 fi
7534
7535 fi ;;
7536 esac
7537 fi
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7539 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7540 FGREP="$ac_cv_path_FGREP"
7541
7542
7543 test -z "$GREP" && GREP=grep
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 # Check whether --with-gnu-ld was given.
7564 if test ${with_gnu_ld+y}
7565 then :
7566 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7567 else case e in #(
7568 e) with_gnu_ld=no ;;
7569 esac
7570 fi
7571
7572 ac_prog=ld
7573 if test yes = "$GCC"; then
7574 # Check if gcc -print-prog-name=ld gives a path.
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7576 printf %s "checking for ld used by $CC... " >&6; }
7577 case $host in
7578 *-*-mingw* | *-*-windows*)
7579 # gcc leaves a trailing carriage return, which upsets mingw
7580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7581 *)
7582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7583 esac
7584 case $ac_prog in
7585 # Accept absolute paths.
7586 [\\/]* | ?:[\\/]*)
7587 re_direlt='/[^/][^/]*/\.\./'
7588 # Canonicalize the pathname of ld
7589 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7590 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7591 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7592 done
7593 test -z "$LD" && LD=$ac_prog
7594 ;;
7595 "")
7596 # If it fails, then pretend we aren't using GCC.
7597 ac_prog=ld
7598 ;;
7599 *)
7600 # If it is relative, then search for the first ld in PATH.
7601 with_gnu_ld=unknown
7602 ;;
7603 esac
7604 elif test yes = "$with_gnu_ld"; then
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7606 printf %s "checking for GNU ld... " >&6; }
7607 else
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7609 printf %s "checking for non-GNU ld... " >&6; }
7610 fi
7611 if test ${lt_cv_path_LD+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else case e in #(
7615 e) if test -z "$LD"; then
7616 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7617 for ac_dir in $PATH; do
7618 IFS=$lt_save_ifs
7619 test -z "$ac_dir" && ac_dir=.
7620 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7621 lt_cv_path_LD=$ac_dir/$ac_prog
7622 # Check to see if the program is GNU ld. I'd rather use --version,
7623 # but apparently some variants of GNU ld only accept -v.
7624 # Break only if it was the GNU/non-GNU ld that we prefer.
7625 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7626 *GNU* | *'with BFD'*)
7627 test no != "$with_gnu_ld" && break
7628 ;;
7629 *)
7630 test yes != "$with_gnu_ld" && break
7631 ;;
7632 esac
7633 fi
7634 done
7635 IFS=$lt_save_ifs
7636 else
7637 lt_cv_path_LD=$LD # Let the user override the test with a path.
7638 fi ;;
7639 esac
7640 fi
7641
7642 LD=$lt_cv_path_LD
7643 if test -n "$LD"; then
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7645 printf "%s\n" "$LD" >&6; }
7646 else
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 printf "%s\n" "no" >&6; }
7649 fi
7650 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7652 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7653 if test ${lt_cv_prog_gnu_ld+y}
7654 then :
7655 printf %s "(cached) " >&6
7656 else case e in #(
7657 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7658 case `$LD -v 2>&1 </dev/null` in
7659 *GNU* | *'with BFD'*)
7660 lt_cv_prog_gnu_ld=yes
7661 ;;
7662 *)
7663 lt_cv_prog_gnu_ld=no
7664 ;;
7665 esac ;;
7666 esac
7667 fi
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7669 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7670 with_gnu_ld=$lt_cv_prog_gnu_ld
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7681 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7682 if test ${lt_cv_path_NM+y}
7683 then :
7684 printf %s "(cached) " >&6
7685 else case e in #(
7686 e) if test -n "$NM"; then
7687 # Let the user override the test.
7688 lt_cv_path_NM=$NM
7689 else
7690 lt_nm_to_check=${ac_tool_prefix}nm
7691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7692 lt_nm_to_check="$lt_nm_to_check nm"
7693 fi
7694 for lt_tmp_nm in $lt_nm_to_check; do
7695 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7696 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7697 IFS=$lt_save_ifs
7698 test -z "$ac_dir" && ac_dir=.
7699 tmp_nm=$ac_dir/$lt_tmp_nm
7700 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7701 # Check to see if the nm accepts a BSD-compat flag.
7702 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7703 # nm: unknown option "B" ignored
7704 # Tru64's nm complains that /dev/null is an invalid object file
7705 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7706 case $build_os in
7707 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7708 *) lt_bad_file=/dev/null ;;
7709 esac
7710 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7711 *$lt_bad_file* | *'Invalid file or object type'*)
7712 lt_cv_path_NM="$tmp_nm -B"
7713 break 2
7714 ;;
7715 *)
7716 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7717 */dev/null*)
7718 lt_cv_path_NM="$tmp_nm -p"
7719 break 2
7720 ;;
7721 *)
7722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7723 continue # so that we can try to find one that supports BSD flags
7724 ;;
7725 esac
7726 ;;
7727 esac
7728 fi
7729 done
7730 IFS=$lt_save_ifs
7731 done
7732 : ${lt_cv_path_NM=no}
7733 fi ;;
7734 esac
7735 fi
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7737 printf "%s\n" "$lt_cv_path_NM" >&6; }
7738 if test no != "$lt_cv_path_NM"; then
7739 NM=$lt_cv_path_NM
7740 else
7741 # Didn't find any BSD compatible name lister, look for dumpbin.
7742 if test -n "$DUMPBIN"; then :
7743 # Let the user override the test.
7744 else
7745 if test -n "$ac_tool_prefix"; then
7746 for ac_prog in dumpbin "link -dump"
7747 do
7748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 printf %s "checking for $ac_word... " >&6; }
7752 if test ${ac_cv_prog_DUMPBIN+y}
7753 then :
7754 printf %s "(cached) " >&6
7755 else case e in #(
7756 e) if test -n "$DUMPBIN"; then
7757 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762 IFS=$as_save_IFS
7763 case $as_dir in #(((
7764 '') as_dir=./ ;;
7765 */) ;;
7766 *) as_dir=$as_dir/ ;;
7767 esac
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774 done
7775 done
7776 IFS=$as_save_IFS
7777
7778 fi ;;
7779 esac
7780 fi
7781 DUMPBIN=$ac_cv_prog_DUMPBIN
7782 if test -n "$DUMPBIN"; then
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7784 printf "%s\n" "$DUMPBIN" >&6; }
7785 else
7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 printf "%s\n" "no" >&6; }
7788 fi
7789
7790
7791 test -n "$DUMPBIN" && break
7792 done
7793 fi
7794 if test -z "$DUMPBIN"; then
7795 ac_ct_DUMPBIN=$DUMPBIN
7796 for ac_prog in dumpbin "link -dump"
7797 do
7798 # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 printf %s "checking for $ac_word... " >&6; }
7802 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7803 then :
7804 printf %s "(cached) " >&6
7805 else case e in #(
7806 e) if test -n "$ac_ct_DUMPBIN"; then
7807 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 case $as_dir in #(((
7814 '') as_dir=./ ;;
7815 */) ;;
7816 *) as_dir=$as_dir/ ;;
7817 esac
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi ;;
7829 esac
7830 fi
7831 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7832 if test -n "$ac_ct_DUMPBIN"; then
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7834 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7835 else
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 printf "%s\n" "no" >&6; }
7838 fi
7839
7840
7841 test -n "$ac_ct_DUMPBIN" && break
7842 done
7843
7844 if test "x$ac_ct_DUMPBIN" = x; then
7845 DUMPBIN=":"
7846 else
7847 case $cross_compiling:$ac_tool_warned in
7848 yes:)
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7851 ac_tool_warned=yes ;;
7852 esac
7853 DUMPBIN=$ac_ct_DUMPBIN
7854 fi
7855 fi
7856
7857 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7858 *COFF*)
7859 DUMPBIN="$DUMPBIN -symbols -headers"
7860 ;;
7861 *)
7862 DUMPBIN=:
7863 ;;
7864 esac
7865 fi
7866
7867 if test : != "$DUMPBIN"; then
7868 NM=$DUMPBIN
7869 fi
7870 fi
7871 test -z "$NM" && NM=nm
7872
7873
7874
7875
7876
7877
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7879 printf %s "checking the name lister ($NM) interface... " >&6; }
7880 if test ${lt_cv_nm_interface+y}
7881 then :
7882 printf %s "(cached) " >&6
7883 else case e in #(
7884 e) lt_cv_nm_interface="BSD nm"
7885 echo "int some_variable = 0;" > conftest.$ac_ext
7886 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7887 (eval "$ac_compile" 2>conftest.err)
7888 cat conftest.err >&5
7889 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7890 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7891 cat conftest.err >&5
7892 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7893 cat conftest.out >&5
7894 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7895 lt_cv_nm_interface="MS dumpbin"
7896 fi
7897 rm -f conftest* ;;
7898 esac
7899 fi
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7901 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7902
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7904 printf %s "checking whether ln -s works... " >&6; }
7905 LN_S=$as_ln_s
7906 if test "$LN_S" = "ln -s"; then
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 printf "%s\n" "yes" >&6; }
7909 else
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7911 printf "%s\n" "no, using $LN_S" >&6; }
7912 fi
7913
7914 # find the maximum length of command line arguments
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7916 printf %s "checking the maximum length of command line arguments... " >&6; }
7917 if test ${lt_cv_sys_max_cmd_len+y}
7918 then :
7919 printf %s "(cached) " >&6
7920 else case e in #(
7921 e) i=0
7922 teststring=ABCD
7923
7924 case $build_os in
7925 msdosdjgpp*)
7926 # On DJGPP, this test can blow up pretty badly due to problems in libc
7927 # (any single argument exceeding 2000 bytes causes a buffer overrun
7928 # during glob expansion). Even if it were fixed, the result of this
7929 # check would be larger than it should be.
7930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7931 ;;
7932
7933 gnu* | ironclad*)
7934 # Under GNU Hurd and Ironclad, this test is not required because there
7935 # is no limit to the length of command line arguments.
7936 # Libtool will interpret -1 as no limit whatsoever
7937 lt_cv_sys_max_cmd_len=-1;
7938 ;;
7939
7940 cygwin* | mingw* | windows* | cegcc*)
7941 # On Win9x/ME, this test blows up -- it succeeds, but takes
7942 # about 5 minutes as the teststring grows exponentially.
7943 # Worse, since 9x/ME are not pre-emptively multitasking,
7944 # you end up with a "frozen" computer, even though with patience
7945 # the test eventually succeeds (with a max line length of 256k).
7946 # Instead, let's just punt: use the minimum linelength reported by
7947 # all of the supported platforms: 8192 (on NT/2K/XP).
7948 lt_cv_sys_max_cmd_len=8192;
7949 ;;
7950
7951 mint*)
7952 # On MiNT this can take a long time and run out of memory.
7953 lt_cv_sys_max_cmd_len=8192;
7954 ;;
7955
7956 amigaos*)
7957 # On AmigaOS with pdksh, this test takes hours, literally.
7958 # So we just punt and use a minimum line length of 8192.
7959 lt_cv_sys_max_cmd_len=8192;
7960 ;;
7961
7962 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7963 # This has been around since 386BSD, at least. Likely further.
7964 if test -x /sbin/sysctl; then
7965 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7966 elif test -x /usr/sbin/sysctl; then
7967 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7968 else
7969 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7970 fi
7971 # And add a safety zone
7972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7974 ;;
7975
7976 interix*)
7977 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7978 lt_cv_sys_max_cmd_len=196608
7979 ;;
7980
7981 os2*)
7982 # The test takes a long time on OS/2.
7983 lt_cv_sys_max_cmd_len=8192
7984 ;;
7985
7986 osf*)
7987 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7988 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7989 # nice to cause kernel panics so lets avoid the loop below.
7990 # First set a reasonable default.
7991 lt_cv_sys_max_cmd_len=16384
7992 #
7993 if test -x /sbin/sysconfig; then
7994 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7995 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7996 esac
7997 fi
7998 ;;
7999 sco3.2v5*)
8000 lt_cv_sys_max_cmd_len=102400
8001 ;;
8002 sysv5* | sco5v6* | sysv4.2uw2*)
8003 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8004 if test -n "$kargmax"; then
8005 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8006 else
8007 lt_cv_sys_max_cmd_len=32768
8008 fi
8009 ;;
8010 *)
8011 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8012 if test -n "$lt_cv_sys_max_cmd_len" && \
8013 test undefined != "$lt_cv_sys_max_cmd_len"; then
8014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8016 else
8017 # Make teststring a little bigger before we do anything with it.
8018 # a 1K string should be a reasonable start.
8019 for i in 1 2 3 4 5 6 7 8; do
8020 teststring=$teststring$teststring
8021 done
8022 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8023 # If test is not a shell built-in, we'll probably end up computing a
8024 # maximum length that is only half of the actual maximum length, but
8025 # we can't tell.
8026 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8027 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8028 test 17 != "$i" # 1/2 MB should be enough
8029 do
8030 i=`expr $i + 1`
8031 teststring=$teststring$teststring
8032 done
8033 # Only check the string length outside the loop.
8034 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8035 teststring=
8036 # Add a significant safety factor because C++ compilers can tack on
8037 # massive amounts of additional arguments before passing them to the
8038 # linker. It appears as though 1/2 is a usable value.
8039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8040 fi
8041 ;;
8042 esac
8043 ;;
8044 esac
8045 fi
8046
8047 if test -n "$lt_cv_sys_max_cmd_len"; then
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8049 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8050 else
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8052 printf "%s\n" "none" >&6; }
8053 fi
8054 max_cmd_len=$lt_cv_sys_max_cmd_len
8055
8056
8057
8058
8059
8060
8061 : ${CP="cp -f"}
8062 : ${MV="mv -f"}
8063 : ${RM="rm -f"}
8064
8065 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8066 lt_unset=unset
8067 else
8068 lt_unset=false
8069 fi
8070
8071
8072
8073
8074
8075 # test EBCDIC or ASCII
8076 case `echo X|tr X '\101'` in
8077 A) # ASCII based system
8078 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8079 lt_SP2NL='tr \040 \012'
8080 lt_NL2SP='tr \015\012 \040\040'
8081 ;;
8082 *) # EBCDIC based system
8083 lt_SP2NL='tr \100 \n'
8084 lt_NL2SP='tr \r\n \100\100'
8085 ;;
8086 esac
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8097 printf %s "checking how to convert $build file names to $host format... " >&6; }
8098 if test ${lt_cv_to_host_file_cmd+y}
8099 then :
8100 printf %s "(cached) " >&6
8101 else case e in #(
8102 e) case $host in
8103 *-*-mingw* )
8104 case $build in
8105 *-*-mingw* | *-*-windows* ) # actually msys
8106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8107 ;;
8108 *-*-cygwin* )
8109 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8110 ;;
8111 * ) # otherwise, assume *nix
8112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8113 ;;
8114 esac
8115 ;;
8116 *-*-cygwin* )
8117 case $build in
8118 *-*-mingw* | *-*-windows* ) # actually msys
8119 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8120 ;;
8121 *-*-cygwin* )
8122 lt_cv_to_host_file_cmd=func_convert_file_noop
8123 ;;
8124 * ) # otherwise, assume *nix
8125 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8126 ;;
8127 esac
8128 ;;
8129 * ) # unhandled hosts (and "normal" native builds)
8130 lt_cv_to_host_file_cmd=func_convert_file_noop
8131 ;;
8132 esac
8133 ;;
8134 esac
8135 fi
8136
8137 to_host_file_cmd=$lt_cv_to_host_file_cmd
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8139 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8140
8141
8142
8143
8144
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8146 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8147 if test ${lt_cv_to_tool_file_cmd+y}
8148 then :
8149 printf %s "(cached) " >&6
8150 else case e in #(
8151 e) #assume ordinary cross tools, or native build.
8152 lt_cv_to_tool_file_cmd=func_convert_file_noop
8153 case $host in
8154 *-*-mingw* | *-*-windows* )
8155 case $build in
8156 *-*-mingw* | *-*-windows* ) # actually msys
8157 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8158 ;;
8159 esac
8160 ;;
8161 esac
8162 ;;
8163 esac
8164 fi
8165
8166 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8168 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8169
8170
8171
8172
8173
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8175 printf %s "checking for $LD option to reload object files... " >&6; }
8176 if test ${lt_cv_ld_reload_flag+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else case e in #(
8180 e) lt_cv_ld_reload_flag='-r' ;;
8181 esac
8182 fi
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8184 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8185 reload_flag=$lt_cv_ld_reload_flag
8186 case $reload_flag in
8187 "" | " "*) ;;
8188 *) reload_flag=" $reload_flag" ;;
8189 esac
8190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8191 case $host_os in
8192 cygwin* | mingw* | windows* | pw32* | cegcc*)
8193 if test yes != "$GCC"; then
8194 reload_cmds=false
8195 fi
8196 ;;
8197 darwin*)
8198 if test yes = "$GCC"; then
8199 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8200 else
8201 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8202 fi
8203 ;;
8204 esac
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 # Extract the first word of "file", so it can be a program name with args.
8215 set dummy file; ac_word=$2
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 printf %s "checking for $ac_word... " >&6; }
8218 if test ${ac_cv_prog_FILECMD+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else case e in #(
8222 e) if test -n "$FILECMD"; then
8223 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228 IFS=$as_save_IFS
8229 case $as_dir in #(((
8230 '') as_dir=./ ;;
8231 */) ;;
8232 *) as_dir=$as_dir/ ;;
8233 esac
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_FILECMD="file"
8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8238 break 2
8239 fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8245 fi ;;
8246 esac
8247 fi
8248 FILECMD=$ac_cv_prog_FILECMD
8249 if test -n "$FILECMD"; then
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8251 printf "%s\n" "$FILECMD" >&6; }
8252 else
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 printf "%s\n" "no" >&6; }
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263
8264 if test -n "$ac_tool_prefix"; then
8265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 printf %s "checking for $ac_word... " >&6; }
8269 if test ${ac_cv_prog_OBJDUMP+y}
8270 then :
8271 printf %s "(cached) " >&6
8272 else case e in #(
8273 e) if test -n "$OBJDUMP"; then
8274 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 case $as_dir in #(((
8281 '') as_dir=./ ;;
8282 */) ;;
8283 *) as_dir=$as_dir/ ;;
8284 esac
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi ;;
8296 esac
8297 fi
8298 OBJDUMP=$ac_cv_prog_OBJDUMP
8299 if test -n "$OBJDUMP"; then
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8301 printf "%s\n" "$OBJDUMP" >&6; }
8302 else
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 printf "%s\n" "no" >&6; }
8305 fi
8306
8307
8308 fi
8309 if test -z "$ac_cv_prog_OBJDUMP"; then
8310 ac_ct_OBJDUMP=$OBJDUMP
8311 # Extract the first word of "objdump", so it can be a program name with args.
8312 set dummy objdump; ac_word=$2
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 printf %s "checking for $ac_word... " >&6; }
8315 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8316 then :
8317 printf %s "(cached) " >&6
8318 else case e in #(
8319 e) if test -n "$ac_ct_OBJDUMP"; then
8320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325 IFS=$as_save_IFS
8326 case $as_dir in #(((
8327 '') as_dir=./ ;;
8328 */) ;;
8329 *) as_dir=$as_dir/ ;;
8330 esac
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337 done
8338 done
8339 IFS=$as_save_IFS
8340
8341 fi ;;
8342 esac
8343 fi
8344 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8345 if test -n "$ac_ct_OBJDUMP"; then
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8347 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8348 else
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8351 fi
8352
8353 if test "x$ac_ct_OBJDUMP" = x; then
8354 OBJDUMP="false"
8355 else
8356 case $cross_compiling:$ac_tool_warned in
8357 yes:)
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8360 ac_tool_warned=yes ;;
8361 esac
8362 OBJDUMP=$ac_ct_OBJDUMP
8363 fi
8364 else
8365 OBJDUMP="$ac_cv_prog_OBJDUMP"
8366 fi
8367
8368 test -z "$OBJDUMP" && OBJDUMP=objdump
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8379 printf %s "checking how to recognize dependent libraries... " >&6; }
8380 if test ${lt_cv_deplibs_check_method+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else case e in #(
8384 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8385 lt_cv_file_magic_test_file=
8386 lt_cv_deplibs_check_method='unknown'
8387 # Need to set the preceding variable on all platforms that support
8388 # interlibrary dependencies.
8389 # 'none' -- dependencies not supported.
8390 # 'unknown' -- same as none, but documents that we really don't know.
8391 # 'pass_all' -- all dependencies passed with no checks.
8392 # 'file_magic [[regex]]' -- check by looking for files in library path
8393 # that responds to the $file_magic_cmd with a given extended regex.
8394 # If you have 'file' or equivalent on your system and you're not sure
8395 # whether 'pass_all' will *always* work, you probably want this one.
8396
8397 case $host_os in
8398 aix[4-9]*)
8399 lt_cv_deplibs_check_method=pass_all
8400 ;;
8401
8402 beos*)
8403 lt_cv_deplibs_check_method=pass_all
8404 ;;
8405
8406 bsdi[45]*)
8407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8408 lt_cv_file_magic_cmd='$FILECMD -L'
8409 lt_cv_file_magic_test_file=/shlib/libc.so
8410 ;;
8411
8412 cygwin*)
8413 # func_win32_libid is a shell function defined in ltmain.sh
8414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8415 lt_cv_file_magic_cmd='func_win32_libid'
8416 ;;
8417
8418 mingw* | windows* | pw32*)
8419 # Base MSYS/MinGW do not provide the 'file' command needed by
8420 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8421 # unless we find 'file', for example because we are cross-compiling.
8422 if ( file / ) >/dev/null 2>&1; then
8423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8424 lt_cv_file_magic_cmd='func_win32_libid'
8425 else
8426 # Keep this pattern in sync with the one in func_win32_libid.
8427 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8428 lt_cv_file_magic_cmd='$OBJDUMP -f'
8429 fi
8430 ;;
8431
8432 cegcc*)
8433 # use the weaker test based on 'objdump'. See mingw*.
8434 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8435 lt_cv_file_magic_cmd='$OBJDUMP -f'
8436 ;;
8437
8438 darwin* | rhapsody*)
8439 lt_cv_deplibs_check_method=pass_all
8440 ;;
8441
8442 freebsd* | dragonfly* | midnightbsd*)
8443 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8444 case $host_cpu in
8445 i*86 )
8446 # Not sure whether the presence of OpenBSD here was a mistake.
8447 # Let's accept both of them until this is cleared up.
8448 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8449 lt_cv_file_magic_cmd=$FILECMD
8450 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8451 ;;
8452 esac
8453 else
8454 lt_cv_deplibs_check_method=pass_all
8455 fi
8456 ;;
8457
8458 haiku*)
8459 lt_cv_deplibs_check_method=pass_all
8460 ;;
8461
8462 hpux10.20* | hpux11*)
8463 lt_cv_file_magic_cmd=$FILECMD
8464 case $host_cpu in
8465 ia64*)
8466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8467 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8468 ;;
8469 hppa*64*)
8470 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]'
8471 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8472 ;;
8473 *)
8474 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8475 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8476 ;;
8477 esac
8478 ;;
8479
8480 interix[3-9]*)
8481 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8483 ;;
8484
8485 irix5* | irix6* | nonstopux*)
8486 case $LD in
8487 *-32|*"-32 ") libmagic=32-bit;;
8488 *-n32|*"-n32 ") libmagic=N32;;
8489 *-64|*"-64 ") libmagic=64-bit;;
8490 *) libmagic=never-match;;
8491 esac
8492 lt_cv_deplibs_check_method=pass_all
8493 ;;
8494
8495 # This must be glibc/ELF.
8496 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8497 lt_cv_deplibs_check_method=pass_all
8498 ;;
8499
8500 *-mlibc)
8501 lt_cv_deplibs_check_method=pass_all
8502 ;;
8503
8504 netbsd* | netbsdelf*-gnu)
8505 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8507 else
8508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8509 fi
8510 ;;
8511
8512 newos6*)
8513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8514 lt_cv_file_magic_cmd=$FILECMD
8515 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8516 ;;
8517
8518 *nto* | *qnx*)
8519 lt_cv_deplibs_check_method=pass_all
8520 ;;
8521
8522 openbsd*)
8523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8525 else
8526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8527 fi
8528 ;;
8529
8530 osf3* | osf4* | osf5*)
8531 lt_cv_deplibs_check_method=pass_all
8532 ;;
8533
8534 rdos*)
8535 lt_cv_deplibs_check_method=pass_all
8536 ;;
8537
8538 serenity*)
8539 lt_cv_deplibs_check_method=pass_all
8540 ;;
8541
8542 solaris*)
8543 lt_cv_deplibs_check_method=pass_all
8544 ;;
8545
8546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8547 lt_cv_deplibs_check_method=pass_all
8548 ;;
8549
8550 sysv4 | sysv4.3*)
8551 case $host_vendor in
8552 motorola)
8553 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]'
8554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8555 ;;
8556 ncr)
8557 lt_cv_deplibs_check_method=pass_all
8558 ;;
8559 sequent)
8560 lt_cv_file_magic_cmd='/bin/file'
8561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8562 ;;
8563 sni)
8564 lt_cv_file_magic_cmd='/bin/file'
8565 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8566 lt_cv_file_magic_test_file=/lib/libc.so
8567 ;;
8568 siemens)
8569 lt_cv_deplibs_check_method=pass_all
8570 ;;
8571 pc)
8572 lt_cv_deplibs_check_method=pass_all
8573 ;;
8574 esac
8575 ;;
8576
8577 tpf*)
8578 lt_cv_deplibs_check_method=pass_all
8579 ;;
8580 os2*)
8581 lt_cv_deplibs_check_method=pass_all
8582 ;;
8583 esac
8584 ;;
8585 esac
8586 fi
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8588 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8589
8590 file_magic_glob=
8591 want_nocaseglob=no
8592 if test "$build" = "$host"; then
8593 case $host_os in
8594 mingw* | windows* | pw32*)
8595 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8596 want_nocaseglob=yes
8597 else
8598 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8599 fi
8600 ;;
8601 esac
8602 fi
8603
8604 file_magic_cmd=$lt_cv_file_magic_cmd
8605 deplibs_check_method=$lt_cv_deplibs_check_method
8606 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 if test -n "$ac_tool_prefix"; then
8630 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8631 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 printf %s "checking for $ac_word... " >&6; }
8634 if test ${ac_cv_prog_DLLTOOL+y}
8635 then :
8636 printf %s "(cached) " >&6
8637 else case e in #(
8638 e) if test -n "$DLLTOOL"; then
8639 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644 IFS=$as_save_IFS
8645 case $as_dir in #(((
8646 '') as_dir=./ ;;
8647 */) ;;
8648 *) as_dir=$as_dir/ ;;
8649 esac
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656 done
8657 done
8658 IFS=$as_save_IFS
8659
8660 fi ;;
8661 esac
8662 fi
8663 DLLTOOL=$ac_cv_prog_DLLTOOL
8664 if test -n "$DLLTOOL"; then
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8666 printf "%s\n" "$DLLTOOL" >&6; }
8667 else
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 printf "%s\n" "no" >&6; }
8670 fi
8671
8672
8673 fi
8674 if test -z "$ac_cv_prog_DLLTOOL"; then
8675 ac_ct_DLLTOOL=$DLLTOOL
8676 # Extract the first word of "dlltool", so it can be a program name with args.
8677 set dummy dlltool; ac_word=$2
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 printf %s "checking for $ac_word... " >&6; }
8680 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else case e in #(
8684 e) if test -n "$ac_ct_DLLTOOL"; then
8685 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690 IFS=$as_save_IFS
8691 case $as_dir in #(((
8692 '') as_dir=./ ;;
8693 */) ;;
8694 *) as_dir=$as_dir/ ;;
8695 esac
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702 done
8703 done
8704 IFS=$as_save_IFS
8705
8706 fi ;;
8707 esac
8708 fi
8709 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8710 if test -n "$ac_ct_DLLTOOL"; then
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8712 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8713 else
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 printf "%s\n" "no" >&6; }
8716 fi
8717
8718 if test "x$ac_ct_DLLTOOL" = x; then
8719 DLLTOOL="false"
8720 else
8721 case $cross_compiling:$ac_tool_warned in
8722 yes:)
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8725 ac_tool_warned=yes ;;
8726 esac
8727 DLLTOOL=$ac_ct_DLLTOOL
8728 fi
8729 else
8730 DLLTOOL="$ac_cv_prog_DLLTOOL"
8731 fi
8732
8733 test -z "$DLLTOOL" && DLLTOOL=dlltool
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8745 printf %s "checking how to associate runtime and link libraries... " >&6; }
8746 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8747 then :
8748 printf %s "(cached) " >&6
8749 else case e in #(
8750 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8751
8752 case $host_os in
8753 cygwin* | mingw* | windows* | pw32* | cegcc*)
8754 # two different shell functions defined in ltmain.sh;
8755 # decide which one to use based on capabilities of $DLLTOOL
8756 case `$DLLTOOL --help 2>&1` in
8757 *--identify-strict*)
8758 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8759 ;;
8760 *)
8761 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8762 ;;
8763 esac
8764 ;;
8765 *)
8766 # fallback: assume linklib IS sharedlib
8767 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8768 ;;
8769 esac
8770 ;;
8771 esac
8772 fi
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8774 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8775 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8776 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8777
8778
8779
8780
8781
8782
8783
8784 if test -n "$ac_tool_prefix"; then
8785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 printf %s "checking for $ac_word... " >&6; }
8789 if test ${ac_cv_prog_RANLIB+y}
8790 then :
8791 printf %s "(cached) " >&6
8792 else case e in #(
8793 e) if test -n "$RANLIB"; then
8794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799 IFS=$as_save_IFS
8800 case $as_dir in #(((
8801 '') as_dir=./ ;;
8802 */) ;;
8803 *) as_dir=$as_dir/ ;;
8804 esac
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8807 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811 done
8812 done
8813 IFS=$as_save_IFS
8814
8815 fi ;;
8816 esac
8817 fi
8818 RANLIB=$ac_cv_prog_RANLIB
8819 if test -n "$RANLIB"; then
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8821 printf "%s\n" "$RANLIB" >&6; }
8822 else
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 printf "%s\n" "no" >&6; }
8825 fi
8826
8827
8828 fi
8829 if test -z "$ac_cv_prog_RANLIB"; then
8830 ac_ct_RANLIB=$RANLIB
8831 # Extract the first word of "ranlib", so it can be a program name with args.
8832 set dummy ranlib; ac_word=$2
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 printf %s "checking for $ac_word... " >&6; }
8835 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8836 then :
8837 printf %s "(cached) " >&6
8838 else case e in #(
8839 e) if test -n "$ac_ct_RANLIB"; then
8840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845 IFS=$as_save_IFS
8846 case $as_dir in #(((
8847 '') as_dir=./ ;;
8848 */) ;;
8849 *) as_dir=$as_dir/ ;;
8850 esac
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_ac_ct_RANLIB="ranlib"
8854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8855 break 2
8856 fi
8857 done
8858 done
8859 IFS=$as_save_IFS
8860
8861 fi ;;
8862 esac
8863 fi
8864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8865 if test -n "$ac_ct_RANLIB"; then
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8867 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8868 else
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 printf "%s\n" "no" >&6; }
8871 fi
8872
8873 if test "x$ac_ct_RANLIB" = x; then
8874 RANLIB=":"
8875 else
8876 case $cross_compiling:$ac_tool_warned in
8877 yes:)
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8880 ac_tool_warned=yes ;;
8881 esac
8882 RANLIB=$ac_ct_RANLIB
8883 fi
8884 else
8885 RANLIB="$ac_cv_prog_RANLIB"
8886 fi
8887
8888 if test -n "$ac_tool_prefix"; then
8889 for ac_prog in ar
8890 do
8891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894 printf %s "checking for $ac_word... " >&6; }
8895 if test ${ac_cv_prog_AR+y}
8896 then :
8897 printf %s "(cached) " >&6
8898 else case e in #(
8899 e) if test -n "$AR"; then
8900 ac_cv_prog_AR="$AR" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8904 do
8905 IFS=$as_save_IFS
8906 case $as_dir in #(((
8907 '') as_dir=./ ;;
8908 */) ;;
8909 *) as_dir=$as_dir/ ;;
8910 esac
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917 done
8918 done
8919 IFS=$as_save_IFS
8920
8921 fi ;;
8922 esac
8923 fi
8924 AR=$ac_cv_prog_AR
8925 if test -n "$AR"; then
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8927 printf "%s\n" "$AR" >&6; }
8928 else
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 printf "%s\n" "no" >&6; }
8931 fi
8932
8933
8934 test -n "$AR" && break
8935 done
8936 fi
8937 if test -z "$AR"; then
8938 ac_ct_AR=$AR
8939 for ac_prog in ar
8940 do
8941 # Extract the first word of "$ac_prog", so it can be a program name with args.
8942 set dummy $ac_prog; ac_word=$2
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 printf %s "checking for $ac_word... " >&6; }
8945 if test ${ac_cv_prog_ac_ct_AR+y}
8946 then :
8947 printf %s "(cached) " >&6
8948 else case e in #(
8949 e) if test -n "$ac_ct_AR"; then
8950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955 IFS=$as_save_IFS
8956 case $as_dir in #(((
8957 '') as_dir=./ ;;
8958 */) ;;
8959 *) as_dir=$as_dir/ ;;
8960 esac
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_ac_ct_AR="$ac_prog"
8964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8965 break 2
8966 fi
8967 done
8968 done
8969 IFS=$as_save_IFS
8970
8971 fi ;;
8972 esac
8973 fi
8974 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8975 if test -n "$ac_ct_AR"; then
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8977 printf "%s\n" "$ac_ct_AR" >&6; }
8978 else
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 printf "%s\n" "no" >&6; }
8981 fi
8982
8983
8984 test -n "$ac_ct_AR" && break
8985 done
8986
8987 if test "x$ac_ct_AR" = x; then
8988 AR="false"
8989 else
8990 case $cross_compiling:$ac_tool_warned in
8991 yes:)
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8994 ac_tool_warned=yes ;;
8995 esac
8996 AR=$ac_ct_AR
8997 fi
8998 fi
8999
9000 : ${AR=ar}
9001
9002
9003
9004
9005
9006
9007 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9008 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9009 # higher priority because that's what people were doing historically (setting
9010 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9011 # variable obsoleted/removed.
9012
9013 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9014 lt_ar_flags=$AR_FLAGS
9015
9016
9017
9018
9019
9020
9021 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9022 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9023
9024
9025
9026
9027
9028
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9030 printf %s "checking for archiver @FILE support... " >&6; }
9031 if test ${lt_cv_ar_at_file+y}
9032 then :
9033 printf %s "(cached) " >&6
9034 else case e in #(
9035 e) lt_cv_ar_at_file=no
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038
9039 int
9040 main (void)
9041 {
9042
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"
9048 then :
9049 echo conftest.$ac_objext > conftest.lst
9050 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9052 (eval $lt_ar_try) 2>&5
9053 ac_status=$?
9054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055 test $ac_status = 0; }
9056 if test 0 -eq "$ac_status"; then
9057 # Ensure the archiver fails upon bogus file names.
9058 rm -f conftest.$ac_objext libconftest.a
9059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9060 (eval $lt_ar_try) 2>&5
9061 ac_status=$?
9062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9063 test $ac_status = 0; }
9064 if test 0 -ne "$ac_status"; then
9065 lt_cv_ar_at_file=@
9066 fi
9067 fi
9068 rm -f conftest.* libconftest.a
9069
9070 fi
9071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9072 ;;
9073 esac
9074 fi
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9076 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9077
9078 if test no = "$lt_cv_ar_at_file"; then
9079 archiver_list_spec=
9080 else
9081 archiver_list_spec=$lt_cv_ar_at_file
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090 if test -n "$ac_tool_prefix"; then
9091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9092 set dummy ${ac_tool_prefix}strip; ac_word=$2
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 printf %s "checking for $ac_word... " >&6; }
9095 if test ${ac_cv_prog_STRIP+y}
9096 then :
9097 printf %s "(cached) " >&6
9098 else case e in #(
9099 e) if test -n "$STRIP"; then
9100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105 IFS=$as_save_IFS
9106 case $as_dir in #(((
9107 '') as_dir=./ ;;
9108 */) ;;
9109 *) as_dir=$as_dir/ ;;
9110 esac
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9120
9121 fi ;;
9122 esac
9123 fi
9124 STRIP=$ac_cv_prog_STRIP
9125 if test -n "$STRIP"; then
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9127 printf "%s\n" "$STRIP" >&6; }
9128 else
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 printf "%s\n" "no" >&6; }
9131 fi
9132
9133
9134 fi
9135 if test -z "$ac_cv_prog_STRIP"; then
9136 ac_ct_STRIP=$STRIP
9137 # Extract the first word of "strip", so it can be a program name with args.
9138 set dummy strip; ac_word=$2
9139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 printf %s "checking for $ac_word... " >&6; }
9141 if test ${ac_cv_prog_ac_ct_STRIP+y}
9142 then :
9143 printf %s "(cached) " >&6
9144 else case e in #(
9145 e) if test -n "$ac_ct_STRIP"; then
9146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9147 else
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9150 do
9151 IFS=$as_save_IFS
9152 case $as_dir in #(((
9153 '') as_dir=./ ;;
9154 */) ;;
9155 *) as_dir=$as_dir/ ;;
9156 esac
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9159 ac_cv_prog_ac_ct_STRIP="strip"
9160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9161 break 2
9162 fi
9163 done
9164 done
9165 IFS=$as_save_IFS
9166
9167 fi ;;
9168 esac
9169 fi
9170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9171 if test -n "$ac_ct_STRIP"; then
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9173 printf "%s\n" "$ac_ct_STRIP" >&6; }
9174 else
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 printf "%s\n" "no" >&6; }
9177 fi
9178
9179 if test "x$ac_ct_STRIP" = x; then
9180 STRIP=":"
9181 else
9182 case $cross_compiling:$ac_tool_warned in
9183 yes:)
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9185 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9186 ac_tool_warned=yes ;;
9187 esac
9188 STRIP=$ac_ct_STRIP
9189 fi
9190 else
9191 STRIP="$ac_cv_prog_STRIP"
9192 fi
9193
9194 test -z "$STRIP" && STRIP=:
9195
9196
9197
9198
9199
9200
9201
9202 test -z "$RANLIB" && RANLIB=:
9203
9204
9205
9206
9207
9208
9209 # Determine commands to create old-style static archives.
9210 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9211 old_postinstall_cmds='chmod 644 $oldlib'
9212 old_postuninstall_cmds=
9213
9214 if test -n "$RANLIB"; then
9215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9217 fi
9218
9219 case $host_os in
9220 darwin*)
9221 lock_old_archive_extraction=yes ;;
9222 *)
9223 lock_old_archive_extraction=no ;;
9224 esac
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246 for ac_prog in gawk mawk nawk awk
9247 do
9248 # Extract the first word of "$ac_prog", so it can be a program name with args.
9249 set dummy $ac_prog; ac_word=$2
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 printf %s "checking for $ac_word... " >&6; }
9252 if test ${ac_cv_prog_AWK+y}
9253 then :
9254 printf %s "(cached) " >&6
9255 else case e in #(
9256 e) if test -n "$AWK"; then
9257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9258 else
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9261 do
9262 IFS=$as_save_IFS
9263 case $as_dir in #(((
9264 '') as_dir=./ ;;
9265 */) ;;
9266 *) as_dir=$as_dir/ ;;
9267 esac
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9270 ac_cv_prog_AWK="$ac_prog"
9271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9272 break 2
9273 fi
9274 done
9275 done
9276 IFS=$as_save_IFS
9277
9278 fi ;;
9279 esac
9280 fi
9281 AWK=$ac_cv_prog_AWK
9282 if test -n "$AWK"; then
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9284 printf "%s\n" "$AWK" >&6; }
9285 else
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287 printf "%s\n" "no" >&6; }
9288 fi
9289
9290
9291 test -n "$AWK" && break
9292 done
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 # If no C compiler was specified, use CC.
9313 LTCC=${LTCC-"$CC"}
9314
9315 # If no C compiler flags were specified, use CFLAGS.
9316 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9317
9318 # Allow CC to be a program name with arguments.
9319 compiler=$CC
9320
9321
9322 # Check for command to grab the raw symbol name followed by C symbol from nm.
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9324 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9325 if test ${lt_cv_sys_global_symbol_pipe+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else case e in #(
9329 e)
9330 # These are sane defaults that work on at least a few old systems.
9331 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9332
9333 # Character class describing NM global symbol codes.
9334 symcode='[BCDEGRST]'
9335
9336 # Regexp to match symbols that can be accessed directly from C.
9337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9338
9339 # Define system-specific variables.
9340 case $host_os in
9341 aix*)
9342 symcode='[BCDT]'
9343 ;;
9344 cygwin* | mingw* | windows* | pw32* | cegcc*)
9345 symcode='[ABCDGISTW]'
9346 ;;
9347 hpux*)
9348 if test ia64 = "$host_cpu"; then
9349 symcode='[ABCDEGRST]'
9350 fi
9351 ;;
9352 irix* | nonstopux*)
9353 symcode='[BCDEGRST]'
9354 ;;
9355 osf*)
9356 symcode='[BCDEGQRST]'
9357 ;;
9358 solaris*)
9359 symcode='[BCDRT]'
9360 ;;
9361 sco3.2v5*)
9362 symcode='[DT]'
9363 ;;
9364 sysv4.2uw2*)
9365 symcode='[DT]'
9366 ;;
9367 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9368 symcode='[ABDT]'
9369 ;;
9370 sysv4)
9371 symcode='[DFNSTU]'
9372 ;;
9373 esac
9374
9375 # If we're using GNU nm, then use its standard symbol codes.
9376 case `$NM -V 2>&1` in
9377 *GNU* | *'with BFD'*)
9378 symcode='[ABCDGIRSTW]' ;;
9379 esac
9380
9381 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9382 # Gets list of data symbols to import.
9383 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9384 # Adjust the below global symbol transforms to fixup imported variables.
9385 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9386 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9387 lt_c_name_lib_hook="\
9388 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9389 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9390 else
9391 # Disable hooks by default.
9392 lt_cv_sys_global_symbol_to_import=
9393 lt_cdecl_hook=
9394 lt_c_name_hook=
9395 lt_c_name_lib_hook=
9396 fi
9397
9398 # Transform an extracted symbol line into a proper C declaration.
9399 # Some systems (esp. on ia64) link data and code symbols differently,
9400 # so use this general approach.
9401 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9402 $lt_cdecl_hook\
9403 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9404 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9405
9406 # Transform an extracted symbol line into symbol name and symbol address
9407 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9408 $lt_c_name_hook\
9409 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9410 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9411
9412 # Transform an extracted symbol line into symbol name with lib prefix and
9413 # symbol address.
9414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9415 $lt_c_name_lib_hook\
9416 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9417 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9418 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9419
9420 # Handle CRLF in mingw tool chain
9421 opt_cr=
9422 case $build_os in
9423 mingw* | windows*)
9424 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9425 ;;
9426 esac
9427
9428 # Try without a prefix underscore, then with it.
9429 for ac_symprfx in "" "_"; do
9430
9431 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9432 symxfrm="\\1 $ac_symprfx\\2 \\2"
9433
9434 # Write the raw and C identifiers.
9435 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9436 # Fake it for dumpbin and say T for any non-static function,
9437 # D for any global variable and I for any imported variable.
9438 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9439 # which start with @ or ?.
9440 lt_cv_sys_global_symbol_pipe="$AWK '"\
9441 " {last_section=section; section=\$ 3};"\
9442 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9443 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9444 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9445 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9446 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9447 " \$ 0!~/External *\|/{next};"\
9448 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9449 " {if(hide[section]) next};"\
9450 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9451 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9452 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9453 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9454 " ' prfx=^$ac_symprfx"
9455 else
9456 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9457 fi
9458 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9459
9460 # Check to see that the pipe works correctly.
9461 pipe_works=no
9462
9463 rm -f conftest*
9464 cat > conftest.$ac_ext <<_LT_EOF
9465 #ifdef __cplusplus
9466 extern "C" {
9467 #endif
9468 char nm_test_var;
9469 void nm_test_func(void);
9470 void nm_test_func(void){}
9471 #ifdef __cplusplus
9472 }
9473 #endif
9474 int main(void){nm_test_var='a';nm_test_func();return(0);}
9475 _LT_EOF
9476
9477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9478 (eval $ac_compile) 2>&5
9479 ac_status=$?
9480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9481 test $ac_status = 0; }; then
9482 # Now try to grab the symbols.
9483 nlist=conftest.nm
9484 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9485 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9486 # Try sorting and uniquifying the output.
9487 if sort "$nlist" | uniq > "$nlist"T; then
9488 mv -f "$nlist"T "$nlist"
9489 else
9490 rm -f "$nlist"T
9491 fi
9492
9493 # Make sure that we snagged all the symbols we need.
9494 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9495 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9496 cat <<_LT_EOF > conftest.$ac_ext
9497 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9498 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9499 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9500 relocations are performed -- see ld's documentation on pseudo-relocs. */
9501 # define LT_DLSYM_CONST
9502 #elif defined __osf__
9503 /* This system does not cope well with relocations in const data. */
9504 # define LT_DLSYM_CONST
9505 #else
9506 # define LT_DLSYM_CONST const
9507 #endif
9508
9509 #ifdef __cplusplus
9510 extern "C" {
9511 #endif
9512
9513 _LT_EOF
9514 # Now generate the symbol file.
9515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9516
9517 cat <<_LT_EOF >> conftest.$ac_ext
9518
9519 /* The mapping between symbol names and symbols. */
9520 LT_DLSYM_CONST struct {
9521 const char *name;
9522 void *address;
9523 }
9524 lt__PROGRAM__LTX_preloaded_symbols[] =
9525 {
9526 { "@PROGRAM@", (void *) 0 },
9527 _LT_EOF
9528 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9529 cat <<\_LT_EOF >> conftest.$ac_ext
9530 {0, (void *) 0}
9531 };
9532
9533 /* This works around a problem in FreeBSD linker */
9534 #ifdef FREEBSD_WORKAROUND
9535 static const void *lt_preloaded_setup() {
9536 return lt__PROGRAM__LTX_preloaded_symbols;
9537 }
9538 #endif
9539
9540 #ifdef __cplusplus
9541 }
9542 #endif
9543 _LT_EOF
9544 # Now try linking the two files.
9545 mv conftest.$ac_objext conftstm.$ac_objext
9546 lt_globsym_save_LIBS=$LIBS
9547 lt_globsym_save_CFLAGS=$CFLAGS
9548 LIBS=conftstm.$ac_objext
9549 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9551 (eval $ac_link) 2>&5
9552 ac_status=$?
9553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9554 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9555 pipe_works=yes
9556 fi
9557 LIBS=$lt_globsym_save_LIBS
9558 CFLAGS=$lt_globsym_save_CFLAGS
9559 else
9560 echo "cannot find nm_test_func in $nlist" >&5
9561 fi
9562 else
9563 echo "cannot find nm_test_var in $nlist" >&5
9564 fi
9565 else
9566 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9567 fi
9568 else
9569 echo "$progname: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 fi
9572 rm -rf conftest* conftst*
9573
9574 # Do not use the global_symbol_pipe unless it works.
9575 if test yes = "$pipe_works"; then
9576 break
9577 else
9578 lt_cv_sys_global_symbol_pipe=
9579 fi
9580 done
9581 ;;
9582 esac
9583 fi
9584
9585 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9586 lt_cv_sys_global_symbol_to_cdecl=
9587 fi
9588 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9590 printf "%s\n" "failed" >&6; }
9591 else
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9593 printf "%s\n" "ok" >&6; }
9594 fi
9595
9596 # Response file support.
9597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9598 nm_file_list_spec='@'
9599 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9600 nm_file_list_spec='@'
9601 fi
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9640 printf %s "checking for sysroot... " >&6; }
9641
9642 # Check whether --with-sysroot was given.
9643 if test ${with_sysroot+y}
9644 then :
9645 withval=$with_sysroot;
9646 else case e in #(
9647 e) with_sysroot=no ;;
9648 esac
9649 fi
9650
9651
9652 lt_sysroot=
9653 case $with_sysroot in #(
9654 yes)
9655 if test yes = "$GCC"; then
9656 # Trim trailing / since we'll always append absolute paths and we want
9657 # to avoid //, if only for less confusing output for the user.
9658 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9659 fi
9660 ;; #(
9661 /*)
9662 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9663 ;; #(
9664 no|'')
9665 ;; #(
9666 *)
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9668 printf "%s\n" "$with_sysroot" >&6; }
9669 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9670 ;;
9671 esac
9672
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9674 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9675
9676
9677
9678
9679
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9681 printf %s "checking for a working dd... " >&6; }
9682 if test ${ac_cv_path_lt_DD+y}
9683 then :
9684 printf %s "(cached) " >&6
9685 else case e in #(
9686 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9687 cat conftest.i conftest.i >conftest2.i
9688 : ${lt_DD:=$DD}
9689 if test -z "$lt_DD"; then
9690 ac_path_lt_DD_found=false
9691 # Loop through the user's path and test for each of PROGNAME-LIST
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9694 do
9695 IFS=$as_save_IFS
9696 case $as_dir in #(((
9697 '') as_dir=./ ;;
9698 */) ;;
9699 *) as_dir=$as_dir/ ;;
9700 esac
9701 for ac_prog in dd
9702 do
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9705 as_fn_executable_p "$ac_path_lt_DD" || continue
9706 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9707 cmp -s conftest.i conftest.out \
9708 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9709 fi
9710 $ac_path_lt_DD_found && break 3
9711 done
9712 done
9713 done
9714 IFS=$as_save_IFS
9715 if test -z "$ac_cv_path_lt_DD"; then
9716 :
9717 fi
9718 else
9719 ac_cv_path_lt_DD=$lt_DD
9720 fi
9721
9722 rm -f conftest.i conftest2.i conftest.out ;;
9723 esac
9724 fi
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9726 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9727
9728
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9730 printf %s "checking how to truncate binary pipes... " >&6; }
9731 if test ${lt_cv_truncate_bin+y}
9732 then :
9733 printf %s "(cached) " >&6
9734 else case e in #(
9735 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9736 cat conftest.i conftest.i >conftest2.i
9737 lt_cv_truncate_bin=
9738 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9739 cmp -s conftest.i conftest.out \
9740 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9741 fi
9742 rm -f conftest.i conftest2.i conftest.out
9743 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9744 esac
9745 fi
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9747 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9748
9749
9750
9751
9752
9753
9754
9755 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9756 func_cc_basename ()
9757 {
9758 for cc_temp in $*""; do
9759 case $cc_temp in
9760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9762 \-*) ;;
9763 *) break;;
9764 esac
9765 done
9766 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9767 }
9768
9769 # Check whether --enable-libtool-lock was given.
9770 if test ${enable_libtool_lock+y}
9771 then :
9772 enableval=$enable_libtool_lock;
9773 fi
9774
9775 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9776
9777 # Some flags need to be propagated to the compiler or linker for good
9778 # libtool support.
9779 case $host in
9780 ia64-*-hpux*)
9781 # Find out what ABI is being produced by ac_compile, and set mode
9782 # options accordingly.
9783 echo 'int i;' > conftest.$ac_ext
9784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9785 (eval $ac_compile) 2>&5
9786 ac_status=$?
9787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788 test $ac_status = 0; }; then
9789 case `$FILECMD conftest.$ac_objext` in
9790 *ELF-32*)
9791 HPUX_IA64_MODE=32
9792 ;;
9793 *ELF-64*)
9794 HPUX_IA64_MODE=64
9795 ;;
9796 esac
9797 fi
9798 rm -rf conftest*
9799 ;;
9800 *-*-irix6*)
9801 # Find out what ABI is being produced by ac_compile, and set linker
9802 # options accordingly.
9803 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9806 ac_status=$?
9807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; }; then
9809 if test yes = "$lt_cv_prog_gnu_ld"; then
9810 case `$FILECMD conftest.$ac_objext` in
9811 *32-bit*)
9812 LD="${LD-ld} -melf32bsmip"
9813 ;;
9814 *N32*)
9815 LD="${LD-ld} -melf32bmipn32"
9816 ;;
9817 *64-bit*)
9818 LD="${LD-ld} -melf64bmip"
9819 ;;
9820 esac
9821 else
9822 case `$FILECMD conftest.$ac_objext` in
9823 *32-bit*)
9824 LD="${LD-ld} -32"
9825 ;;
9826 *N32*)
9827 LD="${LD-ld} -n32"
9828 ;;
9829 *64-bit*)
9830 LD="${LD-ld} -64"
9831 ;;
9832 esac
9833 fi
9834 fi
9835 rm -rf conftest*
9836 ;;
9837
9838 mips64*-*linux*)
9839 # Find out what ABI is being produced by ac_compile, and set linker
9840 # options accordingly.
9841 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9843 (eval $ac_compile) 2>&5
9844 ac_status=$?
9845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9846 test $ac_status = 0; }; then
9847 emul=elf
9848 case `$FILECMD conftest.$ac_objext` in
9849 *32-bit*)
9850 emul="${emul}32"
9851 ;;
9852 *64-bit*)
9853 emul="${emul}64"
9854 ;;
9855 esac
9856 case `$FILECMD conftest.$ac_objext` in
9857 *MSB*)
9858 emul="${emul}btsmip"
9859 ;;
9860 *LSB*)
9861 emul="${emul}ltsmip"
9862 ;;
9863 esac
9864 case `$FILECMD conftest.$ac_objext` in
9865 *N32*)
9866 emul="${emul}n32"
9867 ;;
9868 esac
9869 LD="${LD-ld} -m $emul"
9870 fi
9871 rm -rf conftest*
9872 ;;
9873
9874 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9875 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9876 # Find out what ABI is being produced by ac_compile, and set linker
9877 # options accordingly. Note that the listed cases only cover the
9878 # situations where additional linker options are needed (such as when
9879 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9880 # vice versa); the common cases where no linker options are needed do
9881 # not appear in the list.
9882 echo 'int i;' > conftest.$ac_ext
9883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9884 (eval $ac_compile) 2>&5
9885 ac_status=$?
9886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9887 test $ac_status = 0; }; then
9888 case `$FILECMD conftest.o` in
9889 *32-bit*)
9890 case $host in
9891 x86_64-*kfreebsd*-gnu)
9892 LD="${LD-ld} -m elf_i386_fbsd"
9893 ;;
9894 x86_64-*linux*|x86_64-gnu*)
9895 case `$FILECMD conftest.o` in
9896 *x86-64*)
9897 LD="${LD-ld} -m elf32_x86_64"
9898 ;;
9899 *)
9900 LD="${LD-ld} -m elf_i386"
9901 ;;
9902 esac
9903 ;;
9904 powerpc64le-*linux*)
9905 LD="${LD-ld} -m elf32lppclinux"
9906 ;;
9907 powerpc64-*linux*)
9908 LD="${LD-ld} -m elf32ppclinux"
9909 ;;
9910 s390x-*linux*)
9911 LD="${LD-ld} -m elf_s390"
9912 ;;
9913 sparc64-*linux*)
9914 LD="${LD-ld} -m elf32_sparc"
9915 ;;
9916 esac
9917 ;;
9918 *64-bit*)
9919 case $host in
9920 x86_64-*kfreebsd*-gnu)
9921 LD="${LD-ld} -m elf_x86_64_fbsd"
9922 ;;
9923 x86_64-*linux*|x86_64-gnu*)
9924 LD="${LD-ld} -m elf_x86_64"
9925 ;;
9926 powerpcle-*linux*)
9927 LD="${LD-ld} -m elf64lppc"
9928 ;;
9929 powerpc-*linux*)
9930 LD="${LD-ld} -m elf64ppc"
9931 ;;
9932 s390*-*linux*|s390*-*tpf*)
9933 LD="${LD-ld} -m elf64_s390"
9934 ;;
9935 sparc*-*linux*)
9936 LD="${LD-ld} -m elf64_sparc"
9937 ;;
9938 esac
9939 ;;
9940 esac
9941 fi
9942 rm -rf conftest*
9943 ;;
9944
9945 *-*-sco3.2v5*)
9946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9947 SAVE_CFLAGS=$CFLAGS
9948 CFLAGS="$CFLAGS -belf"
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9950 printf %s "checking whether the C compiler needs -belf... " >&6; }
9951 if test ${lt_cv_cc_needs_belf+y}
9952 then :
9953 printf %s "(cached) " >&6
9954 else case e in #(
9955 e) ac_ext=c
9956 ac_cpp='$CPP $CPPFLAGS'
9957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9960
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963
9964 int
9965 main (void)
9966 {
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"
9973 then :
9974 lt_cv_cc_needs_belf=yes
9975 else case e in #(
9976 e) lt_cv_cc_needs_belf=no ;;
9977 esac
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9980 conftest$ac_exeext conftest.$ac_ext
9981 ac_ext=c
9982 ac_cpp='$CPP $CPPFLAGS'
9983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9986 ;;
9987 esac
9988 fi
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9990 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9991 if test yes != "$lt_cv_cc_needs_belf"; then
9992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9993 CFLAGS=$SAVE_CFLAGS
9994 fi
9995 ;;
9996 *-*solaris*)
9997 # Find out what ABI is being produced by ac_compile, and set linker
9998 # options accordingly.
9999 echo 'int i;' > conftest.$ac_ext
10000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10001 (eval $ac_compile) 2>&5
10002 ac_status=$?
10003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10004 test $ac_status = 0; }; then
10005 case `$FILECMD conftest.o` in
10006 *64-bit*)
10007 case $lt_cv_prog_gnu_ld in
10008 yes*)
10009 case $host in
10010 i?86-*-solaris*|x86_64-*-solaris*)
10011 LD="${LD-ld} -m elf_x86_64"
10012 ;;
10013 sparc*-*-solaris*)
10014 LD="${LD-ld} -m elf64_sparc"
10015 ;;
10016 esac
10017 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10018 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10019 LD=${LD-ld}_sol2
10020 fi
10021 ;;
10022 *)
10023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10024 LD="${LD-ld} -64"
10025 fi
10026 ;;
10027 esac
10028 ;;
10029 esac
10030 fi
10031 rm -rf conftest*
10032 ;;
10033 esac
10034
10035 need_locks=$enable_libtool_lock
10036
10037 if test -n "$ac_tool_prefix"; then
10038 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10039 set dummy ${ac_tool_prefix}mt; ac_word=$2
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 printf %s "checking for $ac_word... " >&6; }
10042 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10043 then :
10044 printf %s "(cached) " >&6
10045 else case e in #(
10046 e) if test -n "$MANIFEST_TOOL"; then
10047 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052 IFS=$as_save_IFS
10053 case $as_dir in #(((
10054 '') as_dir=./ ;;
10055 */) ;;
10056 *) as_dir=$as_dir/ ;;
10057 esac
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10067
10068 fi ;;
10069 esac
10070 fi
10071 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10072 if test -n "$MANIFEST_TOOL"; then
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10074 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10075 else
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 printf "%s\n" "no" >&6; }
10078 fi
10079
10080
10081 fi
10082 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10083 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10084 # Extract the first word of "mt", so it can be a program name with args.
10085 set dummy mt; ac_word=$2
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 printf %s "checking for $ac_word... " >&6; }
10088 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10089 then :
10090 printf %s "(cached) " >&6
10091 else case e in #(
10092 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
10093 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10094 else
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10097 do
10098 IFS=$as_save_IFS
10099 case $as_dir in #(((
10100 '') as_dir=./ ;;
10101 */) ;;
10102 *) as_dir=$as_dir/ ;;
10103 esac
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10108 break 2
10109 fi
10110 done
10111 done
10112 IFS=$as_save_IFS
10113
10114 fi ;;
10115 esac
10116 fi
10117 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10118 if test -n "$ac_ct_MANIFEST_TOOL"; then
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10120 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10121 else
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 printf "%s\n" "no" >&6; }
10124 fi
10125
10126 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10127 MANIFEST_TOOL=":"
10128 else
10129 case $cross_compiling:$ac_tool_warned in
10130 yes:)
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10133 ac_tool_warned=yes ;;
10134 esac
10135 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10136 fi
10137 else
10138 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10139 fi
10140
10141 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10143 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10144 if test ${lt_cv_path_manifest_tool+y}
10145 then :
10146 printf %s "(cached) " >&6
10147 else case e in #(
10148 e) lt_cv_path_manifest_tool=no
10149 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10150 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10151 cat conftest.err >&5
10152 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10153 lt_cv_path_manifest_tool=yes
10154 fi
10155 rm -f conftest* ;;
10156 esac
10157 fi
10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10159 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10160 if test yes != "$lt_cv_path_manifest_tool"; then
10161 MANIFEST_TOOL=:
10162 fi
10163
10164
10165
10166
10167
10168
10169 case $host_os in
10170 rhapsody* | darwin*)
10171 if test -n "$ac_tool_prefix"; then
10172 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10173 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 printf %s "checking for $ac_word... " >&6; }
10176 if test ${ac_cv_prog_DSYMUTIL+y}
10177 then :
10178 printf %s "(cached) " >&6
10179 else case e in #(
10180 e) if test -n "$DSYMUTIL"; then
10181 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186 IFS=$as_save_IFS
10187 case $as_dir in #(((
10188 '') as_dir=./ ;;
10189 */) ;;
10190 *) as_dir=$as_dir/ ;;
10191 esac
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198 done
10199 done
10200 IFS=$as_save_IFS
10201
10202 fi ;;
10203 esac
10204 fi
10205 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10206 if test -n "$DSYMUTIL"; then
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10208 printf "%s\n" "$DSYMUTIL" >&6; }
10209 else
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 printf "%s\n" "no" >&6; }
10212 fi
10213
10214
10215 fi
10216 if test -z "$ac_cv_prog_DSYMUTIL"; then
10217 ac_ct_DSYMUTIL=$DSYMUTIL
10218 # Extract the first word of "dsymutil", so it can be a program name with args.
10219 set dummy dsymutil; ac_word=$2
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221 printf %s "checking for $ac_word... " >&6; }
10222 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10223 then :
10224 printf %s "(cached) " >&6
10225 else case e in #(
10226 e) if test -n "$ac_ct_DSYMUTIL"; then
10227 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10228 else
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232 IFS=$as_save_IFS
10233 case $as_dir in #(((
10234 '') as_dir=./ ;;
10235 */) ;;
10236 *) as_dir=$as_dir/ ;;
10237 esac
10238 for ac_exec_ext in '' $ac_executable_extensions; do
10239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10240 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244 done
10245 done
10246 IFS=$as_save_IFS
10247
10248 fi ;;
10249 esac
10250 fi
10251 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10252 if test -n "$ac_ct_DSYMUTIL"; then
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10254 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10255 else
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257 printf "%s\n" "no" >&6; }
10258 fi
10259
10260 if test "x$ac_ct_DSYMUTIL" = x; then
10261 DSYMUTIL=":"
10262 else
10263 case $cross_compiling:$ac_tool_warned in
10264 yes:)
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10267 ac_tool_warned=yes ;;
10268 esac
10269 DSYMUTIL=$ac_ct_DSYMUTIL
10270 fi
10271 else
10272 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10273 fi
10274
10275 if test -n "$ac_tool_prefix"; then
10276 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10277 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 printf %s "checking for $ac_word... " >&6; }
10280 if test ${ac_cv_prog_NMEDIT+y}
10281 then :
10282 printf %s "(cached) " >&6
10283 else case e in #(
10284 e) if test -n "$NMEDIT"; then
10285 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10286 else
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10289 do
10290 IFS=$as_save_IFS
10291 case $as_dir in #(((
10292 '') as_dir=./ ;;
10293 */) ;;
10294 *) as_dir=$as_dir/ ;;
10295 esac
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302 done
10303 done
10304 IFS=$as_save_IFS
10305
10306 fi ;;
10307 esac
10308 fi
10309 NMEDIT=$ac_cv_prog_NMEDIT
10310 if test -n "$NMEDIT"; then
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10312 printf "%s\n" "$NMEDIT" >&6; }
10313 else
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 printf "%s\n" "no" >&6; }
10316 fi
10317
10318
10319 fi
10320 if test -z "$ac_cv_prog_NMEDIT"; then
10321 ac_ct_NMEDIT=$NMEDIT
10322 # Extract the first word of "nmedit", so it can be a program name with args.
10323 set dummy nmedit; ac_word=$2
10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 printf %s "checking for $ac_word... " >&6; }
10326 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10327 then :
10328 printf %s "(cached) " >&6
10329 else case e in #(
10330 e) if test -n "$ac_ct_NMEDIT"; then
10331 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10332 else
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10335 do
10336 IFS=$as_save_IFS
10337 case $as_dir in #(((
10338 '') as_dir=./ ;;
10339 */) ;;
10340 *) as_dir=$as_dir/ ;;
10341 esac
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348 done
10349 done
10350 IFS=$as_save_IFS
10351
10352 fi ;;
10353 esac
10354 fi
10355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10356 if test -n "$ac_ct_NMEDIT"; then
10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10358 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10359 else
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 printf "%s\n" "no" >&6; }
10362 fi
10363
10364 if test "x$ac_ct_NMEDIT" = x; then
10365 NMEDIT=":"
10366 else
10367 case $cross_compiling:$ac_tool_warned in
10368 yes:)
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10371 ac_tool_warned=yes ;;
10372 esac
10373 NMEDIT=$ac_ct_NMEDIT
10374 fi
10375 else
10376 NMEDIT="$ac_cv_prog_NMEDIT"
10377 fi
10378
10379 if test -n "$ac_tool_prefix"; then
10380 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10381 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 printf %s "checking for $ac_word... " >&6; }
10384 if test ${ac_cv_prog_LIPO+y}
10385 then :
10386 printf %s "(cached) " >&6
10387 else case e in #(
10388 e) if test -n "$LIPO"; then
10389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394 IFS=$as_save_IFS
10395 case $as_dir in #(((
10396 '') as_dir=./ ;;
10397 */) ;;
10398 *) as_dir=$as_dir/ ;;
10399 esac
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406 done
10407 done
10408 IFS=$as_save_IFS
10409
10410 fi ;;
10411 esac
10412 fi
10413 LIPO=$ac_cv_prog_LIPO
10414 if test -n "$LIPO"; then
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10416 printf "%s\n" "$LIPO" >&6; }
10417 else
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 printf "%s\n" "no" >&6; }
10420 fi
10421
10422
10423 fi
10424 if test -z "$ac_cv_prog_LIPO"; then
10425 ac_ct_LIPO=$LIPO
10426 # Extract the first word of "lipo", so it can be a program name with args.
10427 set dummy lipo; ac_word=$2
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 printf %s "checking for $ac_word... " >&6; }
10430 if test ${ac_cv_prog_ac_ct_LIPO+y}
10431 then :
10432 printf %s "(cached) " >&6
10433 else case e in #(
10434 e) if test -n "$ac_ct_LIPO"; then
10435 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440 IFS=$as_save_IFS
10441 case $as_dir in #(((
10442 '') as_dir=./ ;;
10443 */) ;;
10444 *) as_dir=$as_dir/ ;;
10445 esac
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10448 ac_cv_prog_ac_ct_LIPO="lipo"
10449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10450 break 2
10451 fi
10452 done
10453 done
10454 IFS=$as_save_IFS
10455
10456 fi ;;
10457 esac
10458 fi
10459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10460 if test -n "$ac_ct_LIPO"; then
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10462 printf "%s\n" "$ac_ct_LIPO" >&6; }
10463 else
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 printf "%s\n" "no" >&6; }
10466 fi
10467
10468 if test "x$ac_ct_LIPO" = x; then
10469 LIPO=":"
10470 else
10471 case $cross_compiling:$ac_tool_warned in
10472 yes:)
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10474 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10475 ac_tool_warned=yes ;;
10476 esac
10477 LIPO=$ac_ct_LIPO
10478 fi
10479 else
10480 LIPO="$ac_cv_prog_LIPO"
10481 fi
10482
10483 if test -n "$ac_tool_prefix"; then
10484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10485 set dummy ${ac_tool_prefix}otool; ac_word=$2
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 printf %s "checking for $ac_word... " >&6; }
10488 if test ${ac_cv_prog_OTOOL+y}
10489 then :
10490 printf %s "(cached) " >&6
10491 else case e in #(
10492 e) if test -n "$OTOOL"; then
10493 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498 IFS=$as_save_IFS
10499 case $as_dir in #(((
10500 '') as_dir=./ ;;
10501 */) ;;
10502 *) as_dir=$as_dir/ ;;
10503 esac
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10508 break 2
10509 fi
10510 done
10511 done
10512 IFS=$as_save_IFS
10513
10514 fi ;;
10515 esac
10516 fi
10517 OTOOL=$ac_cv_prog_OTOOL
10518 if test -n "$OTOOL"; then
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10520 printf "%s\n" "$OTOOL" >&6; }
10521 else
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 printf "%s\n" "no" >&6; }
10524 fi
10525
10526
10527 fi
10528 if test -z "$ac_cv_prog_OTOOL"; then
10529 ac_ct_OTOOL=$OTOOL
10530 # Extract the first word of "otool", so it can be a program name with args.
10531 set dummy otool; ac_word=$2
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 printf %s "checking for $ac_word... " >&6; }
10534 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10535 then :
10536 printf %s "(cached) " >&6
10537 else case e in #(
10538 e) if test -n "$ac_ct_OTOOL"; then
10539 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10543 do
10544 IFS=$as_save_IFS
10545 case $as_dir in #(((
10546 '') as_dir=./ ;;
10547 */) ;;
10548 *) as_dir=$as_dir/ ;;
10549 esac
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10552 ac_cv_prog_ac_ct_OTOOL="otool"
10553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556 done
10557 done
10558 IFS=$as_save_IFS
10559
10560 fi ;;
10561 esac
10562 fi
10563 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10564 if test -n "$ac_ct_OTOOL"; then
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10566 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10567 else
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 printf "%s\n" "no" >&6; }
10570 fi
10571
10572 if test "x$ac_ct_OTOOL" = x; then
10573 OTOOL=":"
10574 else
10575 case $cross_compiling:$ac_tool_warned in
10576 yes:)
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10578 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10579 ac_tool_warned=yes ;;
10580 esac
10581 OTOOL=$ac_ct_OTOOL
10582 fi
10583 else
10584 OTOOL="$ac_cv_prog_OTOOL"
10585 fi
10586
10587 if test -n "$ac_tool_prefix"; then
10588 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10589 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 printf %s "checking for $ac_word... " >&6; }
10592 if test ${ac_cv_prog_OTOOL64+y}
10593 then :
10594 printf %s "(cached) " >&6
10595 else case e in #(
10596 e) if test -n "$OTOOL64"; then
10597 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602 IFS=$as_save_IFS
10603 case $as_dir in #(((
10604 '') as_dir=./ ;;
10605 */) ;;
10606 *) as_dir=$as_dir/ ;;
10607 esac
10608 for ac_exec_ext in '' $ac_executable_extensions; do
10609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10610 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10612 break 2
10613 fi
10614 done
10615 done
10616 IFS=$as_save_IFS
10617
10618 fi ;;
10619 esac
10620 fi
10621 OTOOL64=$ac_cv_prog_OTOOL64
10622 if test -n "$OTOOL64"; then
10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10624 printf "%s\n" "$OTOOL64" >&6; }
10625 else
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 printf "%s\n" "no" >&6; }
10628 fi
10629
10630
10631 fi
10632 if test -z "$ac_cv_prog_OTOOL64"; then
10633 ac_ct_OTOOL64=$OTOOL64
10634 # Extract the first word of "otool64", so it can be a program name with args.
10635 set dummy otool64; ac_word=$2
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 printf %s "checking for $ac_word... " >&6; }
10638 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10639 then :
10640 printf %s "(cached) " >&6
10641 else case e in #(
10642 e) if test -n "$ac_ct_OTOOL64"; then
10643 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10644 else
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10647 do
10648 IFS=$as_save_IFS
10649 case $as_dir in #(((
10650 '') as_dir=./ ;;
10651 */) ;;
10652 *) as_dir=$as_dir/ ;;
10653 esac
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_ac_ct_OTOOL64="otool64"
10657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660 done
10661 done
10662 IFS=$as_save_IFS
10663
10664 fi ;;
10665 esac
10666 fi
10667 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10668 if test -n "$ac_ct_OTOOL64"; then
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10670 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10671 else
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 printf "%s\n" "no" >&6; }
10674 fi
10675
10676 if test "x$ac_ct_OTOOL64" = x; then
10677 OTOOL64=":"
10678 else
10679 case $cross_compiling:$ac_tool_warned in
10680 yes:)
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10683 ac_tool_warned=yes ;;
10684 esac
10685 OTOOL64=$ac_ct_OTOOL64
10686 fi
10687 else
10688 OTOOL64="$ac_cv_prog_OTOOL64"
10689 fi
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10718 printf %s "checking for -single_module linker flag... " >&6; }
10719 if test ${lt_cv_apple_cc_single_mod+y}
10720 then :
10721 printf %s "(cached) " >&6
10722 else case e in #(
10723 e) lt_cv_apple_cc_single_mod=no
10724 if test -z "$LT_MULTI_MODULE"; then
10725 # By default we will add the -single_module flag. You can override
10726 # by either setting the environment variable LT_MULTI_MODULE
10727 # non-empty at configure time, or by adding -multi_module to the
10728 # link flags.
10729 rm -rf libconftest.dylib*
10730 echo "int foo(void){return 1;}" > conftest.c
10731 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10732 -dynamiclib -Wl,-single_module conftest.c" >&5
10733 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10734 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10735 _lt_result=$?
10736 # If there is a non-empty error log, and "single_module"
10737 # appears in it, assume the flag caused a linker warning
10738 if test -s conftest.err && $GREP single_module conftest.err; then
10739 cat conftest.err >&5
10740 # Otherwise, if the output was created with a 0 exit code from
10741 # the compiler, it worked.
10742 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10743 lt_cv_apple_cc_single_mod=yes
10744 else
10745 cat conftest.err >&5
10746 fi
10747 rm -rf libconftest.dylib*
10748 rm -f conftest.*
10749 fi ;;
10750 esac
10751 fi
10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10753 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10754
10755 # Feature test to disable chained fixups since it is not
10756 # compatible with '-undefined dynamic_lookup'
10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10758 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10759 if test ${lt_cv_support_no_fixup_chains+y}
10760 then :
10761 printf %s "(cached) " >&6
10762 else case e in #(
10763 e) save_LDFLAGS=$LDFLAGS
10764 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767
10768 int
10769 main (void)
10770 {
10771
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"
10777 then :
10778 lt_cv_support_no_fixup_chains=yes
10779 else case e in #(
10780 e) lt_cv_support_no_fixup_chains=no
10781 ;;
10782 esac
10783 fi
10784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LDFLAGS=$save_LDFLAGS
10787
10788 ;;
10789 esac
10790 fi
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10792 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10793
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10795 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10796 if test ${lt_cv_ld_exported_symbols_list+y}
10797 then :
10798 printf %s "(cached) " >&6
10799 else case e in #(
10800 e) lt_cv_ld_exported_symbols_list=no
10801 save_LDFLAGS=$LDFLAGS
10802 echo "_main" > conftest.sym
10803 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806
10807 int
10808 main (void)
10809 {
10810
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"
10816 then :
10817 lt_cv_ld_exported_symbols_list=yes
10818 else case e in #(
10819 e) lt_cv_ld_exported_symbols_list=no ;;
10820 esac
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10823 conftest$ac_exeext conftest.$ac_ext
10824 LDFLAGS=$save_LDFLAGS
10825 ;;
10826 esac
10827 fi
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10829 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10830
10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10832 printf %s "checking for -force_load linker flag... " >&6; }
10833 if test ${lt_cv_ld_force_load+y}
10834 then :
10835 printf %s "(cached) " >&6
10836 else case e in #(
10837 e) lt_cv_ld_force_load=no
10838 cat > conftest.c << _LT_EOF
10839 int forced_loaded() { return 2;}
10840 _LT_EOF
10841 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10842 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10843 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10844 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10845 echo "$RANLIB libconftest.a" >&5
10846 $RANLIB libconftest.a 2>&5
10847 cat > conftest.c << _LT_EOF
10848 int main(void) { return 0;}
10849 _LT_EOF
10850 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10851 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10852 _lt_result=$?
10853 if test -s conftest.err && $GREP force_load conftest.err; then
10854 cat conftest.err >&5
10855 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10856 lt_cv_ld_force_load=yes
10857 else
10858 cat conftest.err >&5
10859 fi
10860 rm -f conftest.err libconftest.a conftest conftest.c
10861 rm -rf conftest.dSYM
10862 ;;
10863 esac
10864 fi
10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10866 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10867 case $host_os in
10868 rhapsody* | darwin1.[012])
10869 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10870 darwin1.*)
10871 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10872 darwin*)
10873 case $MACOSX_DEPLOYMENT_TARGET,$host in
10874 10.[012],*|,*powerpc*-darwin[5-8]*)
10875 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10876 *)
10877 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10878 if test yes = "$lt_cv_support_no_fixup_chains"; then
10879 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10880 fi
10881 ;;
10882 esac
10883 ;;
10884 esac
10885 if test yes = "$lt_cv_apple_cc_single_mod"; then
10886 _lt_dar_single_mod='$single_module'
10887 fi
10888 _lt_dar_needs_single_mod=no
10889 case $host_os in
10890 rhapsody* | darwin1.*)
10891 _lt_dar_needs_single_mod=yes ;;
10892 darwin*)
10893 # When targeting Mac OS X 10.4 (darwin 8) or later,
10894 # -single_module is the default and -multi_module is unsupported.
10895 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10896 # target any OS version that needs -single_module.
10897 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10898 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10899 _lt_dar_needs_single_mod=yes ;;
10900 esac
10901 ;;
10902 esac
10903 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10904 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10905 else
10906 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10907 fi
10908 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10909 _lt_dsymutil='~$DSYMUTIL $lib || :'
10910 else
10911 _lt_dsymutil=
10912 fi
10913 ;;
10914 esac
10915
10916 # func_munge_path_list VARIABLE PATH
10917 # -----------------------------------
10918 # VARIABLE is name of variable containing _space_ separated list of
10919 # directories to be munged by the contents of PATH, which is string
10920 # having a format:
10921 # "DIR[:DIR]:"
10922 # string "DIR[ DIR]" will be prepended to VARIABLE
10923 # ":DIR[:DIR]"
10924 # string "DIR[ DIR]" will be appended to VARIABLE
10925 # "DIRP[:DIRP]::[DIRA:]DIRA"
10926 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10927 # "DIRA[ DIRA]" will be appended to VARIABLE
10928 # "DIR[:DIR]"
10929 # VARIABLE will be replaced by "DIR[ DIR]"
10930 func_munge_path_list ()
10931 {
10932 case x$2 in
10933 x)
10934 ;;
10935 *:)
10936 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10937 ;;
10938 x:*)
10939 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10940 ;;
10941 *::*)
10942 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10943 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10944 ;;
10945 *)
10946 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10947 ;;
10948 esac
10949 }
10950
10951 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10952 "
10953 if test "x$ac_cv_header_dlfcn_h" = xyes
10954 then :
10955 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10956
10957 fi
10958
10959
10960
10961
10962
10963 # Set options
10964
10965
10966
10967 enable_dlopen=no
10968
10969
10970 enable_win32_dll=no
10971
10972
10973 # Check whether --enable-shared was given.
10974 if test ${enable_shared+y}
10975 then :
10976 enableval=$enable_shared; p=${PACKAGE-default}
10977 case $enableval in
10978 yes) enable_shared=yes ;;
10979 no) enable_shared=no ;;
10980 *)
10981 enable_shared=no
10982 # Look at the argument we got. We use all the common list separators.
10983 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10984 for pkg in $enableval; do
10985 IFS=$lt_save_ifs
10986 if test "X$pkg" = "X$p"; then
10987 enable_shared=yes
10988 fi
10989 done
10990 IFS=$lt_save_ifs
10991 ;;
10992 esac
10993 else case e in #(
10994 e) enable_shared=yes ;;
10995 esac
10996 fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006 # Check whether --enable-static was given.
11007 if test ${enable_static+y}
11008 then :
11009 enableval=$enable_static; p=${PACKAGE-default}
11010 case $enableval in
11011 yes) enable_static=yes ;;
11012 no) enable_static=no ;;
11013 *)
11014 enable_static=no
11015 # Look at the argument we got. We use all the common list separators.
11016 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11017 for pkg in $enableval; do
11018 IFS=$lt_save_ifs
11019 if test "X$pkg" = "X$p"; then
11020 enable_static=yes
11021 fi
11022 done
11023 IFS=$lt_save_ifs
11024 ;;
11025 esac
11026 else case e in #(
11027 e) enable_static=yes ;;
11028 esac
11029 fi
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039 # Check whether --enable-pic was given.
11040 if test ${enable_pic+y}
11041 then :
11042 enableval=$enable_pic; lt_p=${PACKAGE-default}
11043 case $enableval in
11044 yes|no) pic_mode=$enableval ;;
11045 *)
11046 pic_mode=default
11047 # Look at the argument we got. We use all the common list separators.
11048 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11049 for lt_pkg in $enableval; do
11050 IFS=$lt_save_ifs
11051 if test "X$lt_pkg" = "X$lt_p"; then
11052 pic_mode=yes
11053 fi
11054 done
11055 IFS=$lt_save_ifs
11056 ;;
11057 esac
11058 else case e in #(
11059 e) # Check whether --with-pic was given.
11060 if test ${with_pic+y}
11061 then :
11062 withval=$with_pic; lt_p=${PACKAGE-default}
11063 case $withval in
11064 yes|no) pic_mode=$withval ;;
11065 *)
11066 pic_mode=default
11067 # Look at the argument we got. We use all the common list separators.
11068 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11069 for lt_pkg in $withval; do
11070 IFS=$lt_save_ifs
11071 if test "X$lt_pkg" = "X$lt_p"; then
11072 pic_mode=yes
11073 fi
11074 done
11075 IFS=$lt_save_ifs
11076 ;;
11077 esac
11078 else case e in #(
11079 e) pic_mode=default ;;
11080 esac
11081 fi
11082
11083 ;;
11084 esac
11085 fi
11086
11087
11088
11089
11090
11091
11092
11093
11094 # Check whether --enable-fast-install was given.
11095 if test ${enable_fast_install+y}
11096 then :
11097 enableval=$enable_fast_install; p=${PACKAGE-default}
11098 case $enableval in
11099 yes) enable_fast_install=yes ;;
11100 no) enable_fast_install=no ;;
11101 *)
11102 enable_fast_install=no
11103 # Look at the argument we got. We use all the common list separators.
11104 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11105 for pkg in $enableval; do
11106 IFS=$lt_save_ifs
11107 if test "X$pkg" = "X$p"; then
11108 enable_fast_install=yes
11109 fi
11110 done
11111 IFS=$lt_save_ifs
11112 ;;
11113 esac
11114 else case e in #(
11115 e) enable_fast_install=yes ;;
11116 esac
11117 fi
11118
11119
11120
11121
11122
11123
11124
11125
11126 shared_archive_member_spec=
11127 case $host,$enable_shared in
11128 power*-*-aix[5-9]*,yes)
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11130 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11131 # Check whether --enable-aix-soname was given.
11132 if test ${enable_aix_soname+y}
11133 then :
11134 enableval=$enable_aix_soname; case $enableval in
11135 aix|svr4|both)
11136 ;;
11137 *)
11138 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11139 ;;
11140 esac
11141 lt_cv_with_aix_soname=$enable_aix_soname
11142 else case e in #(
11143 e) # Check whether --with-aix-soname was given.
11144 if test ${with_aix_soname+y}
11145 then :
11146 withval=$with_aix_soname; case $withval in
11147 aix|svr4|both)
11148 ;;
11149 *)
11150 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11151 ;;
11152 esac
11153 lt_cv_with_aix_soname=$with_aix_soname
11154 else case e in #(
11155 e) if test ${lt_cv_with_aix_soname+y}
11156 then :
11157 printf %s "(cached) " >&6
11158 else case e in #(
11159 e) lt_cv_with_aix_soname=aix ;;
11160 esac
11161 fi
11162 ;;
11163 esac
11164 fi
11165
11166 enable_aix_soname=$lt_cv_with_aix_soname ;;
11167 esac
11168 fi
11169
11170 with_aix_soname=$enable_aix_soname
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11172 printf "%s\n" "$with_aix_soname" >&6; }
11173 if test aix != "$with_aix_soname"; then
11174 # For the AIX way of multilib, we name the shared archive member
11175 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11176 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11177 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11178 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11179 if test 64 = "${OBJECT_MODE-32}"; then
11180 shared_archive_member_spec=shr_64
11181 else
11182 shared_archive_member_spec=shr
11183 fi
11184 fi
11185 ;;
11186 *)
11187 with_aix_soname=aix
11188 ;;
11189 esac
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200 # This can be used to rebuild libtool when needed
11201 LIBTOOL_DEPS=$ltmain
11202
11203 # Always use our own libtool.
11204 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235 test -z "$LN_S" && LN_S="ln -s"
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250 if test -n "${ZSH_VERSION+set}"; then
11251 setopt NO_GLOB_SUBST
11252 fi
11253
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11255 printf %s "checking for objdir... " >&6; }
11256 if test ${lt_cv_objdir+y}
11257 then :
11258 printf %s "(cached) " >&6
11259 else case e in #(
11260 e) rm -f .libs 2>/dev/null
11261 mkdir .libs 2>/dev/null
11262 if test -d .libs; then
11263 lt_cv_objdir=.libs
11264 else
11265 # MS-DOS does not allow filenames that begin with a dot.
11266 lt_cv_objdir=_libs
11267 fi
11268 rmdir .libs 2>/dev/null ;;
11269 esac
11270 fi
11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11272 printf "%s\n" "$lt_cv_objdir" >&6; }
11273 objdir=$lt_cv_objdir
11274
11275
11276
11277
11278
11279 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11280
11281
11282
11283
11284 case $host_os in
11285 aix3*)
11286 # AIX sometimes has problems with the GCC collect2 program. For some
11287 # reason, if we set the COLLECT_NAMES environment variable, the problems
11288 # vanish in a puff of smoke.
11289 if test set != "${COLLECT_NAMES+set}"; then
11290 COLLECT_NAMES=
11291 export COLLECT_NAMES
11292 fi
11293 ;;
11294 esac
11295
11296 # Global variables:
11297 ofile=libtool
11298 can_build_shared=yes
11299
11300 # All known linkers require a '.a' archive for static linking (except MSVC and
11301 # ICC, which need '.lib').
11302 libext=a
11303
11304 with_gnu_ld=$lt_cv_prog_gnu_ld
11305
11306 old_CC=$CC
11307 old_CFLAGS=$CFLAGS
11308
11309 # Set sane defaults for various variables
11310 test -z "$CC" && CC=cc
11311 test -z "$LTCC" && LTCC=$CC
11312 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11313 test -z "$LD" && LD=ld
11314 test -z "$ac_objext" && ac_objext=o
11315
11316 func_cc_basename $compiler
11317 cc_basename=$func_cc_basename_result
11318
11319
11320 # Only perform the check for file, if the check method requires it
11321 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11322 case $deplibs_check_method in
11323 file_magic*)
11324 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11326 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11327 if test ${lt_cv_path_MAGIC_CMD+y}
11328 then :
11329 printf %s "(cached) " >&6
11330 else case e in #(
11331 e) case $MAGIC_CMD in
11332 [\\/*] | ?:[\\/]*)
11333 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11334 ;;
11335 *)
11336 lt_save_MAGIC_CMD=$MAGIC_CMD
11337 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11339 for ac_dir in $ac_dummy; do
11340 IFS=$lt_save_ifs
11341 test -z "$ac_dir" && ac_dir=.
11342 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11343 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11344 if test -n "$file_magic_test_file"; then
11345 case $deplibs_check_method in
11346 "file_magic "*)
11347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11348 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11350 $EGREP "$file_magic_regex" > /dev/null; then
11351 :
11352 else
11353 cat <<_LT_EOF 1>&2
11354
11355 *** Warning: the command libtool uses to detect shared libraries,
11356 *** $file_magic_cmd, produces output that libtool cannot recognize.
11357 *** The result is that libtool may fail to recognize shared libraries
11358 *** as such. This will affect the creation of libtool libraries that
11359 *** depend on shared libraries, but programs linked with such libtool
11360 *** libraries will work regardless of this problem. Nevertheless, you
11361 *** may want to report the problem to your system manager and/or to
11362 *** [email protected]
11363
11364 _LT_EOF
11365 fi ;;
11366 esac
11367 fi
11368 break
11369 fi
11370 done
11371 IFS=$lt_save_ifs
11372 MAGIC_CMD=$lt_save_MAGIC_CMD
11373 ;;
11374 esac ;;
11375 esac
11376 fi
11377
11378 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11379 if test -n "$MAGIC_CMD"; then
11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11381 printf "%s\n" "$MAGIC_CMD" >&6; }
11382 else
11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 printf "%s\n" "no" >&6; }
11385 fi
11386
11387
11388
11389
11390
11391 if test -z "$lt_cv_path_MAGIC_CMD"; then
11392 if test -n "$ac_tool_prefix"; then
11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11394 printf %s "checking for file... " >&6; }
11395 if test ${lt_cv_path_MAGIC_CMD+y}
11396 then :
11397 printf %s "(cached) " >&6
11398 else case e in #(
11399 e) case $MAGIC_CMD in
11400 [\\/*] | ?:[\\/]*)
11401 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11402 ;;
11403 *)
11404 lt_save_MAGIC_CMD=$MAGIC_CMD
11405 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11407 for ac_dir in $ac_dummy; do
11408 IFS=$lt_save_ifs
11409 test -z "$ac_dir" && ac_dir=.
11410 if test -f "$ac_dir/file"; then
11411 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11412 if test -n "$file_magic_test_file"; then
11413 case $deplibs_check_method in
11414 "file_magic "*)
11415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11416 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11418 $EGREP "$file_magic_regex" > /dev/null; then
11419 :
11420 else
11421 cat <<_LT_EOF 1>&2
11422
11423 *** Warning: the command libtool uses to detect shared libraries,
11424 *** $file_magic_cmd, produces output that libtool cannot recognize.
11425 *** The result is that libtool may fail to recognize shared libraries
11426 *** as such. This will affect the creation of libtool libraries that
11427 *** depend on shared libraries, but programs linked with such libtool
11428 *** libraries will work regardless of this problem. Nevertheless, you
11429 *** may want to report the problem to your system manager and/or to
11430 *** [email protected]
11431
11432 _LT_EOF
11433 fi ;;
11434 esac
11435 fi
11436 break
11437 fi
11438 done
11439 IFS=$lt_save_ifs
11440 MAGIC_CMD=$lt_save_MAGIC_CMD
11441 ;;
11442 esac ;;
11443 esac
11444 fi
11445
11446 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11447 if test -n "$MAGIC_CMD"; then
11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11449 printf "%s\n" "$MAGIC_CMD" >&6; }
11450 else
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 printf "%s\n" "no" >&6; }
11453 fi
11454
11455
11456 else
11457 MAGIC_CMD=:
11458 fi
11459 fi
11460
11461 fi
11462 ;;
11463 esac
11464
11465 # Use C for the default configuration in the libtool script
11466
11467 lt_save_CC=$CC
11468 ac_ext=c
11469 ac_cpp='$CPP $CPPFLAGS'
11470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11473
11474
11475 # Source file extension for C test sources.
11476 ac_ext=c
11477
11478 # Object file extension for compiled C test sources.
11479 objext=o
11480 objext=$objext
11481
11482 # Code to be used in simple compile tests
11483 lt_simple_compile_test_code="int some_variable = 0;"
11484
11485 # Code to be used in simple link tests
11486 lt_simple_link_test_code='int main(void){return(0);}'
11487
11488
11489
11490
11491
11492
11493
11494 # If no C compiler was specified, use CC.
11495 LTCC=${LTCC-"$CC"}
11496
11497 # If no C compiler flags were specified, use CFLAGS.
11498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11499
11500 # Allow CC to be a program name with arguments.
11501 compiler=$CC
11502
11503 # Save the default compiler, since it gets overwritten when the other
11504 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11505 compiler_DEFAULT=$CC
11506
11507 # save warnings/boilerplate of simple test code
11508 ac_outfile=conftest.$ac_objext
11509 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11510 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11511 _lt_compiler_boilerplate=`cat conftest.err`
11512 $RM conftest*
11513
11514 ac_outfile=conftest.$ac_objext
11515 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11516 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11517 _lt_linker_boilerplate=`cat conftest.err`
11518 $RM -r conftest*
11519
11520
11521 if test -n "$compiler"; then
11522
11523 lt_prog_compiler_no_builtin_flag=
11524
11525 if test yes = "$GCC"; then
11526 case $cc_basename in
11527 nvcc*)
11528 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11529 *)
11530 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11531 esac
11532
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11534 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11535 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11536 then :
11537 printf %s "(cached) " >&6
11538 else case e in #(
11539 e) lt_cv_prog_compiler_rtti_exceptions=no
11540 ac_outfile=conftest.$ac_objext
11541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11542 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11543 # Insert the option either (1) after the last *FLAGS variable, or
11544 # (2) before a word containing "conftest.", or (3) at the end.
11545 # Note that $ac_compile itself does not contain backslashes and begins
11546 # with a dollar sign (not a hyphen), so the echo should work correctly.
11547 # The option is referenced via a variable to avoid confusing sed.
11548 lt_compile=`echo "$ac_compile" | $SED \
11549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11551 -e 's:$: $lt_compiler_flag:'`
11552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11553 (eval "$lt_compile" 2>conftest.err)
11554 ac_status=$?
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 if (exit $ac_status) && test -s "$ac_outfile"; then
11558 # The compiler can only warn and ignore the option if not recognized
11559 # So say no if there are warnings other than the usual output.
11560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11563 lt_cv_prog_compiler_rtti_exceptions=yes
11564 fi
11565 fi
11566 $RM conftest*
11567 ;;
11568 esac
11569 fi
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11571 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11572
11573 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11575 else
11576 :
11577 fi
11578
11579 fi
11580
11581
11582
11583
11584
11585
11586 lt_prog_compiler_wl=
11587 lt_prog_compiler_pic=
11588 lt_prog_compiler_static=
11589
11590
11591 if test yes = "$GCC"; then
11592 lt_prog_compiler_wl='-Wl,'
11593 lt_prog_compiler_static='-static'
11594
11595 case $host_os in
11596 aix*)
11597 # All AIX code is PIC.
11598 if test ia64 = "$host_cpu"; then
11599 # AIX 5 now supports IA64 processor
11600 lt_prog_compiler_static='-Bstatic'
11601 fi
11602 lt_prog_compiler_pic='-fPIC'
11603 ;;
11604
11605 amigaos*)
11606 case $host_cpu in
11607 powerpc)
11608 # see comment about AmigaOS4 .so support
11609 lt_prog_compiler_pic='-fPIC'
11610 ;;
11611 m68k)
11612 # FIXME: we need at least 68020 code to build shared libraries, but
11613 # adding the '-m68020' flag to GCC prevents building anything better,
11614 # like '-m68040'.
11615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11616 ;;
11617 esac
11618 ;;
11619
11620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11621 # PIC is the default for these OSes.
11622 ;;
11623
11624 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11625 # This hack is so that the source file can tell whether it is being
11626 # built for inclusion in a dll (and should export symbols for example).
11627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11628 # (--disable-auto-import) libraries
11629 lt_prog_compiler_pic='-DDLL_EXPORT'
11630 case $host_os in
11631 os2*)
11632 lt_prog_compiler_static='$wl-static'
11633 ;;
11634 esac
11635 ;;
11636
11637 darwin* | rhapsody*)
11638 # PIC is the default on this platform
11639 # Common symbols not allowed in MH_DYLIB files
11640 lt_prog_compiler_pic='-fno-common'
11641 ;;
11642
11643 haiku*)
11644 # PIC is the default for Haiku.
11645 # The "-static" flag exists, but is broken.
11646 lt_prog_compiler_static=
11647 ;;
11648
11649 hpux*)
11650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11652 # sets the default TLS model and affects inlining.
11653 case $host_cpu in
11654 hppa*64*)
11655 # +Z the default
11656 ;;
11657 *)
11658 lt_prog_compiler_pic='-fPIC'
11659 ;;
11660 esac
11661 ;;
11662
11663 interix[3-9]*)
11664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11665 # Instead, we relocate shared libraries at runtime.
11666 ;;
11667
11668 msdosdjgpp*)
11669 # Just because we use GCC doesn't mean we suddenly get shared libraries
11670 # on systems that don't support them.
11671 lt_prog_compiler_can_build_shared=no
11672 enable_shared=no
11673 ;;
11674
11675 *nto* | *qnx*)
11676 # QNX uses GNU C++, but need to define -shared option too, otherwise
11677 # it will coredump.
11678 lt_prog_compiler_pic='-fPIC -shared'
11679 ;;
11680
11681 sysv4*MP*)
11682 if test -d /usr/nec; then
11683 lt_prog_compiler_pic=-Kconform_pic
11684 fi
11685 ;;
11686
11687 *)
11688 lt_prog_compiler_pic='-fPIC'
11689 ;;
11690 esac
11691
11692 case $cc_basename in
11693 nvcc*) # Cuda Compiler Driver 2.2
11694 lt_prog_compiler_wl='-Xlinker '
11695 if test -n "$lt_prog_compiler_pic"; then
11696 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11697 fi
11698 ;;
11699 esac
11700 else
11701 # PORTME Check for flag to pass linker flags through the system compiler.
11702 case $host_os in
11703 aix*)
11704 lt_prog_compiler_wl='-Wl,'
11705 if test ia64 = "$host_cpu"; then
11706 # AIX 5 now supports IA64 processor
11707 lt_prog_compiler_static='-Bstatic'
11708 else
11709 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11710 fi
11711 ;;
11712
11713 darwin* | rhapsody*)
11714 # PIC is the default on this platform
11715 # Common symbols not allowed in MH_DYLIB files
11716 lt_prog_compiler_pic='-fno-common'
11717 case $cc_basename in
11718 nagfor*)
11719 # NAG Fortran compiler
11720 lt_prog_compiler_wl='-Wl,-Wl,,'
11721 lt_prog_compiler_pic='-PIC'
11722 lt_prog_compiler_static='-Bstatic'
11723 ;;
11724 esac
11725 ;;
11726
11727 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11728 # This hack is so that the source file can tell whether it is being
11729 # built for inclusion in a dll (and should export symbols for example).
11730 lt_prog_compiler_pic='-DDLL_EXPORT'
11731 case $host_os in
11732 os2*)
11733 lt_prog_compiler_static='$wl-static'
11734 ;;
11735 esac
11736 ;;
11737
11738 hpux9* | hpux10* | hpux11*)
11739 lt_prog_compiler_wl='-Wl,'
11740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11741 # not for PA HP-UX.
11742 case $host_cpu in
11743 hppa*64*|ia64*)
11744 # +Z the default
11745 ;;
11746 *)
11747 lt_prog_compiler_pic='+Z'
11748 ;;
11749 esac
11750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11751 lt_prog_compiler_static='$wl-a ${wl}archive'
11752 ;;
11753
11754 irix5* | irix6* | nonstopux*)
11755 lt_prog_compiler_wl='-Wl,'
11756 # PIC (with -KPIC) is the default.
11757 lt_prog_compiler_static='-non_shared'
11758 ;;
11759
11760 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11761 case $cc_basename in
11762 # old Intel for x86_64, which still supported -KPIC.
11763 ecc*)
11764 lt_prog_compiler_wl='-Wl,'
11765 lt_prog_compiler_pic='-KPIC'
11766 lt_prog_compiler_static='-static'
11767 ;;
11768 *flang* | ftn | f18* | f95*)
11769 # Flang compiler.
11770 lt_prog_compiler_wl='-Wl,'
11771 lt_prog_compiler_pic='-fPIC'
11772 lt_prog_compiler_static='-static'
11773 ;;
11774 # icc used to be incompatible with GCC.
11775 # ICC 10 doesn't accept -KPIC any more.
11776 icc* | ifort*)
11777 lt_prog_compiler_wl='-Wl,'
11778 lt_prog_compiler_pic='-fPIC'
11779 lt_prog_compiler_static='-static'
11780 ;;
11781 # Lahey Fortran 8.1.
11782 lf95*)
11783 lt_prog_compiler_wl='-Wl,'
11784 lt_prog_compiler_pic='--shared'
11785 lt_prog_compiler_static='--static'
11786 ;;
11787 nagfor*)
11788 # NAG Fortran compiler
11789 lt_prog_compiler_wl='-Wl,-Wl,,'
11790 lt_prog_compiler_pic='-PIC'
11791 lt_prog_compiler_static='-Bstatic'
11792 ;;
11793 tcc*)
11794 # Fabrice Bellard et al's Tiny C Compiler
11795 lt_prog_compiler_wl='-Wl,'
11796 lt_prog_compiler_pic='-fPIC'
11797 lt_prog_compiler_static='-static'
11798 ;;
11799 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11800 # Portland Group compilers (*not* the Pentium gcc compiler,
11801 # which looks to be a dead project)
11802 lt_prog_compiler_wl='-Wl,'
11803 lt_prog_compiler_pic='-fpic'
11804 lt_prog_compiler_static='-Bstatic'
11805 ;;
11806 ccc*)
11807 lt_prog_compiler_wl='-Wl,'
11808 # All Alpha code is PIC.
11809 lt_prog_compiler_static='-non_shared'
11810 ;;
11811 xl* | bgxl* | bgf* | mpixl*)
11812 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11813 lt_prog_compiler_wl='-Wl,'
11814 lt_prog_compiler_pic='-qpic'
11815 lt_prog_compiler_static='-qstaticlink'
11816 ;;
11817 *)
11818 case `$CC -V 2>&1 | $SED 5q` in
11819 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11820 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11821 lt_prog_compiler_pic='-KPIC'
11822 lt_prog_compiler_static='-Bstatic'
11823 lt_prog_compiler_wl=''
11824 ;;
11825 *Sun\ F* | *Sun*Fortran*)
11826 lt_prog_compiler_pic='-KPIC'
11827 lt_prog_compiler_static='-Bstatic'
11828 lt_prog_compiler_wl='-Qoption ld '
11829 ;;
11830 *Sun\ C*)
11831 # Sun C 5.9
11832 lt_prog_compiler_pic='-KPIC'
11833 lt_prog_compiler_static='-Bstatic'
11834 lt_prog_compiler_wl='-Wl,'
11835 ;;
11836 *Intel*\ [CF]*Compiler*)
11837 lt_prog_compiler_wl='-Wl,'
11838 lt_prog_compiler_pic='-fPIC'
11839 lt_prog_compiler_static='-static'
11840 ;;
11841 *Portland\ Group*)
11842 lt_prog_compiler_wl='-Wl,'
11843 lt_prog_compiler_pic='-fpic'
11844 lt_prog_compiler_static='-Bstatic'
11845 ;;
11846 esac
11847 ;;
11848 esac
11849 ;;
11850
11851 newsos6)
11852 lt_prog_compiler_pic='-KPIC'
11853 lt_prog_compiler_static='-Bstatic'
11854 ;;
11855
11856 *-mlibc)
11857 lt_prog_compiler_wl='-Wl,'
11858 lt_prog_compiler_pic='-fPIC'
11859 lt_prog_compiler_static='-static'
11860 ;;
11861
11862 *nto* | *qnx*)
11863 # QNX uses GNU C++, but need to define -shared option too, otherwise
11864 # it will coredump.
11865 lt_prog_compiler_pic='-fPIC -shared'
11866 ;;
11867
11868 osf3* | osf4* | osf5*)
11869 lt_prog_compiler_wl='-Wl,'
11870 # All OSF/1 code is PIC.
11871 lt_prog_compiler_static='-non_shared'
11872 ;;
11873
11874 rdos*)
11875 lt_prog_compiler_static='-non_shared'
11876 ;;
11877
11878 serenity*)
11879 ;;
11880
11881 solaris*)
11882 lt_prog_compiler_pic='-KPIC'
11883 lt_prog_compiler_static='-Bstatic'
11884 case $cc_basename in
11885 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11886 lt_prog_compiler_wl='-Qoption ld ';;
11887 *)
11888 lt_prog_compiler_wl='-Wl,';;
11889 esac
11890 ;;
11891
11892 sunos4*)
11893 lt_prog_compiler_wl='-Qoption ld '
11894 lt_prog_compiler_pic='-PIC'
11895 lt_prog_compiler_static='-Bstatic'
11896 ;;
11897
11898 sysv4 | sysv4.2uw2* | sysv4.3*)
11899 lt_prog_compiler_wl='-Wl,'
11900 lt_prog_compiler_pic='-KPIC'
11901 lt_prog_compiler_static='-Bstatic'
11902 ;;
11903
11904 sysv4*MP*)
11905 if test -d /usr/nec; then
11906 lt_prog_compiler_pic='-Kconform_pic'
11907 lt_prog_compiler_static='-Bstatic'
11908 fi
11909 ;;
11910
11911 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11912 lt_prog_compiler_wl='-Wl,'
11913 lt_prog_compiler_pic='-KPIC'
11914 lt_prog_compiler_static='-Bstatic'
11915 ;;
11916
11917 unicos*)
11918 lt_prog_compiler_wl='-Wl,'
11919 lt_prog_compiler_can_build_shared=no
11920 ;;
11921
11922 uts4*)
11923 lt_prog_compiler_pic='-pic'
11924 lt_prog_compiler_static='-Bstatic'
11925 ;;
11926
11927 *)
11928 lt_prog_compiler_can_build_shared=no
11929 ;;
11930 esac
11931 fi
11932
11933 case $host_os in
11934 # For platforms that do not support PIC, -DPIC is meaningless:
11935 *djgpp*)
11936 lt_prog_compiler_pic=
11937 ;;
11938 *)
11939 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11940 ;;
11941 esac
11942
11943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11944 printf %s "checking for $compiler option to produce PIC... " >&6; }
11945 if test ${lt_cv_prog_compiler_pic+y}
11946 then :
11947 printf %s "(cached) " >&6
11948 else case e in #(
11949 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11950 esac
11951 fi
11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11953 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11954 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11955
11956 #
11957 # Check to make sure the PIC flag actually works.
11958 #
11959 if test -n "$lt_prog_compiler_pic"; then
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11961 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11962 if test ${lt_cv_prog_compiler_pic_works+y}
11963 then :
11964 printf %s "(cached) " >&6
11965 else case e in #(
11966 e) lt_cv_prog_compiler_pic_works=no
11967 ac_outfile=conftest.$ac_objext
11968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11969 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11970 # Insert the option either (1) after the last *FLAGS variable, or
11971 # (2) before a word containing "conftest.", or (3) at the end.
11972 # Note that $ac_compile itself does not contain backslashes and begins
11973 # with a dollar sign (not a hyphen), so the echo should work correctly.
11974 # The option is referenced via a variable to avoid confusing sed.
11975 lt_compile=`echo "$ac_compile" | $SED \
11976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11978 -e 's:$: $lt_compiler_flag:'`
11979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11980 (eval "$lt_compile" 2>conftest.err)
11981 ac_status=$?
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 if (exit $ac_status) && test -s "$ac_outfile"; then
11985 # The compiler can only warn and ignore the option if not recognized
11986 # So say no if there are warnings other than the usual output.
11987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11990 lt_cv_prog_compiler_pic_works=yes
11991 fi
11992 fi
11993 $RM conftest*
11994 ;;
11995 esac
11996 fi
11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11998 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11999
12000 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12001 case $lt_prog_compiler_pic in
12002 "" | " "*) ;;
12003 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12004 esac
12005 else
12006 lt_prog_compiler_pic=
12007 lt_prog_compiler_can_build_shared=no
12008 fi
12009
12010 fi
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022 #
12023 # Check to make sure the static flag actually works.
12024 #
12025 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12027 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12028 if test ${lt_cv_prog_compiler_static_works+y}
12029 then :
12030 printf %s "(cached) " >&6
12031 else case e in #(
12032 e) lt_cv_prog_compiler_static_works=no
12033 save_LDFLAGS=$LDFLAGS
12034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12035 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12037 # The linker can only warn and ignore the option if not recognized
12038 # So say no if there are warnings
12039 if test -s conftest.err; then
12040 # Append any errors to the config.log.
12041 cat conftest.err 1>&5
12042 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12044 if diff conftest.exp conftest.er2 >/dev/null; then
12045 lt_cv_prog_compiler_static_works=yes
12046 fi
12047 else
12048 lt_cv_prog_compiler_static_works=yes
12049 fi
12050 fi
12051 $RM -r conftest*
12052 LDFLAGS=$save_LDFLAGS
12053 ;;
12054 esac
12055 fi
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12057 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12058
12059 if test yes = "$lt_cv_prog_compiler_static_works"; then
12060 :
12061 else
12062 lt_prog_compiler_static=
12063 fi
12064
12065
12066
12067
12068
12069
12070
12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12072 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12073 if test ${lt_cv_prog_compiler_c_o+y}
12074 then :
12075 printf %s "(cached) " >&6
12076 else case e in #(
12077 e) lt_cv_prog_compiler_c_o=no
12078 $RM -r conftest 2>/dev/null
12079 mkdir conftest
12080 cd conftest
12081 mkdir out
12082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12083
12084 lt_compiler_flag="-o out/conftest2.$ac_objext"
12085 # Insert the option either (1) after the last *FLAGS variable, or
12086 # (2) before a word containing "conftest.", or (3) at the end.
12087 # Note that $ac_compile itself does not contain backslashes and begins
12088 # with a dollar sign (not a hyphen), so the echo should work correctly.
12089 lt_compile=`echo "$ac_compile" | $SED \
12090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12092 -e 's:$: $lt_compiler_flag:'`
12093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12094 (eval "$lt_compile" 2>out/conftest.err)
12095 ac_status=$?
12096 cat out/conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12099 then
12100 # The compiler can only warn and ignore the option if not recognized
12101 # So say no if there are warnings
12102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12105 lt_cv_prog_compiler_c_o=yes
12106 fi
12107 fi
12108 chmod u+w . 2>&5
12109 $RM conftest*
12110 # SGI C++ compiler will create directory out/ii_files/ for
12111 # template instantiation
12112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12113 $RM out/* && rmdir out
12114 cd ..
12115 $RM -r conftest
12116 $RM conftest*
12117 ;;
12118 esac
12119 fi
12120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12121 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12122
12123
12124
12125
12126
12127
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12129 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12130 if test ${lt_cv_prog_compiler_c_o+y}
12131 then :
12132 printf %s "(cached) " >&6
12133 else case e in #(
12134 e) lt_cv_prog_compiler_c_o=no
12135 $RM -r conftest 2>/dev/null
12136 mkdir conftest
12137 cd conftest
12138 mkdir out
12139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12140
12141 lt_compiler_flag="-o out/conftest2.$ac_objext"
12142 # Insert the option either (1) after the last *FLAGS variable, or
12143 # (2) before a word containing "conftest.", or (3) at the end.
12144 # Note that $ac_compile itself does not contain backslashes and begins
12145 # with a dollar sign (not a hyphen), so the echo should work correctly.
12146 lt_compile=`echo "$ac_compile" | $SED \
12147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12149 -e 's:$: $lt_compiler_flag:'`
12150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12151 (eval "$lt_compile" 2>out/conftest.err)
12152 ac_status=$?
12153 cat out/conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12156 then
12157 # The compiler can only warn and ignore the option if not recognized
12158 # So say no if there are warnings
12159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12162 lt_cv_prog_compiler_c_o=yes
12163 fi
12164 fi
12165 chmod u+w . 2>&5
12166 $RM conftest*
12167 # SGI C++ compiler will create directory out/ii_files/ for
12168 # template instantiation
12169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12170 $RM out/* && rmdir out
12171 cd ..
12172 $RM -r conftest
12173 $RM conftest*
12174 ;;
12175 esac
12176 fi
12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12178 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12179
12180
12181
12182
12183 hard_links=nottested
12184 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12185 # do not overwrite the value of need_locks provided by the user
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12187 printf %s "checking if we can lock with hard links... " >&6; }
12188 hard_links=yes
12189 $RM conftest*
12190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12191 touch conftest.a
12192 ln conftest.a conftest.b 2>&5 || hard_links=no
12193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12195 printf "%s\n" "$hard_links" >&6; }
12196 if test no = "$hard_links"; then
12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12198 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12199 need_locks=warn
12200 fi
12201 else
12202 need_locks=no
12203 fi
12204
12205
12206
12207
12208
12209
12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12211 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12212
12213 runpath_var=
12214 allow_undefined_flag=
12215 always_export_symbols=no
12216 archive_cmds=
12217 archive_expsym_cmds=
12218 compiler_needs_object=no
12219 enable_shared_with_static_runtimes=no
12220 export_dynamic_flag_spec=
12221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12222 hardcode_automatic=no
12223 hardcode_direct=no
12224 hardcode_direct_absolute=no
12225 hardcode_libdir_flag_spec=
12226 hardcode_libdir_separator=
12227 hardcode_minus_L=no
12228 hardcode_shlibpath_var=unsupported
12229 inherit_rpath=no
12230 link_all_deplibs=unknown
12231 module_cmds=
12232 module_expsym_cmds=
12233 old_archive_from_new_cmds=
12234 old_archive_from_expsyms_cmds=
12235 thread_safe_flag_spec=
12236 whole_archive_flag_spec=
12237 # include_expsyms should be a list of space-separated symbols to be *always*
12238 # included in the symbol list
12239 include_expsyms=
12240 # exclude_expsyms can be an extended regexp of symbols to exclude
12241 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12242 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12243 # as well as any symbol that contains 'd'.
12244 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12245 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12246 # platforms (ab)use it in PIC code, but their linkers get confused if
12247 # the symbol is explicitly referenced. Since portable code cannot
12248 # rely on this symbol name, it's probably fine to never include it in
12249 # preloaded symbol tables.
12250 # Exclude shared library initialization/finalization symbols.
12251 extract_expsyms_cmds=
12252
12253 case $host_os in
12254 cygwin* | mingw* | windows* | pw32* | cegcc*)
12255 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12256 # When not using gcc, we currently assume that we are using
12257 # Microsoft Visual C++ or Intel C++ Compiler.
12258 if test yes != "$GCC"; then
12259 with_gnu_ld=no
12260 fi
12261 ;;
12262 interix*)
12263 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12264 with_gnu_ld=yes
12265 ;;
12266 esac
12267
12268 ld_shlibs=yes
12269
12270 # On some targets, GNU ld is compatible enough with the native linker
12271 # that we're better off using the native interface for both.
12272 lt_use_gnu_ld_interface=no
12273 if test yes = "$with_gnu_ld"; then
12274 case $host_os in
12275 aix*)
12276 # The AIX port of GNU ld has always aspired to compatibility
12277 # with the native linker. However, as the warning in the GNU ld
12278 # block says, versions before 2.19.5* couldn't really create working
12279 # shared libraries, regardless of the interface used.
12280 case `$LD -v 2>&1` in
12281 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12282 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12283 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12284 *)
12285 lt_use_gnu_ld_interface=yes
12286 ;;
12287 esac
12288 ;;
12289 *)
12290 lt_use_gnu_ld_interface=yes
12291 ;;
12292 esac
12293 fi
12294
12295 if test yes = "$lt_use_gnu_ld_interface"; then
12296 # If archive_cmds runs LD, not CC, wlarc should be empty
12297 wlarc='$wl'
12298
12299 # Set some defaults for GNU ld with shared library support. These
12300 # are reset later if shared libraries are not supported. Putting them
12301 # here allows them to be overridden if necessary.
12302 runpath_var=LD_RUN_PATH
12303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12304 export_dynamic_flag_spec='$wl--export-dynamic'
12305 # ancient GNU ld didn't support --whole-archive et. al.
12306 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12307 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12308 else
12309 whole_archive_flag_spec=
12310 fi
12311 supports_anon_versioning=no
12312 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12313 *GNU\ gold*) supports_anon_versioning=yes ;;
12314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12317 *\ 2.11.*) ;; # other 2.11 versions
12318 *) supports_anon_versioning=yes ;;
12319 esac
12320
12321 # See if GNU ld supports shared libraries.
12322 case $host_os in
12323 aix[3-9]*)
12324 # On AIX/PPC, the GNU linker is very broken
12325 if test ia64 != "$host_cpu"; then
12326 ld_shlibs=no
12327 cat <<_LT_EOF 1>&2
12328
12329 *** Warning: the GNU linker, at least up to release 2.19, is reported
12330 *** to be unable to reliably create shared libraries on AIX.
12331 *** Therefore, libtool is disabling shared libraries support. If you
12332 *** really care for shared libraries, you may want to install binutils
12333 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12334 *** You will then need to restart the configuration process.
12335
12336 _LT_EOF
12337 fi
12338 ;;
12339
12340 amigaos*)
12341 case $host_cpu in
12342 powerpc)
12343 # see comment about AmigaOS4 .so support
12344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12345 archive_expsym_cmds=''
12346 ;;
12347 m68k)
12348 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)'
12349 hardcode_libdir_flag_spec='-L$libdir'
12350 hardcode_minus_L=yes
12351 ;;
12352 esac
12353 ;;
12354
12355 beos*)
12356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12357 allow_undefined_flag=unsupported
12358 # Joseph Beckenbach <[email protected]> says some releases of gcc
12359 # support --undefined. This deserves some investigation. FIXME
12360 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12361 else
12362 ld_shlibs=no
12363 fi
12364 ;;
12365
12366 cygwin* | mingw* | windows* | pw32* | cegcc*)
12367 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12368 # as there is no search path for DLLs.
12369 hardcode_libdir_flag_spec='-L$libdir'
12370 export_dynamic_flag_spec='$wl--export-all-symbols'
12371 allow_undefined_flag=unsupported
12372 always_export_symbols=no
12373 enable_shared_with_static_runtimes=yes
12374 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'
12375 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12376 file_list_spec='@'
12377
12378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12380 # If the export-symbols file already is a .def file, use it as
12381 # is; otherwise, prepend EXPORTS...
12382 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12383 cp $export_symbols $output_objdir/$soname.def;
12384 else
12385 echo EXPORTS > $output_objdir/$soname.def;
12386 cat $export_symbols >> $output_objdir/$soname.def;
12387 fi~
12388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12389 else
12390 ld_shlibs=no
12391 fi
12392 ;;
12393
12394 haiku*)
12395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12396 link_all_deplibs=no
12397 ;;
12398
12399 os2*)
12400 hardcode_libdir_flag_spec='-L$libdir'
12401 hardcode_minus_L=yes
12402 allow_undefined_flag=unsupported
12403 shrext_cmds=.dll
12404 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12405 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12406 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12407 $ECHO EXPORTS >> $output_objdir/$libname.def~
12408 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12410 emximp -o $lib $output_objdir/$libname.def'
12411 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12412 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12413 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12414 $ECHO EXPORTS >> $output_objdir/$libname.def~
12415 prefix_cmds="$SED"~
12416 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12417 prefix_cmds="$prefix_cmds -e 1d";
12418 fi~
12419 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12420 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12421 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12422 emximp -o $lib $output_objdir/$libname.def'
12423 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12424 enable_shared_with_static_runtimes=yes
12425 file_list_spec='@'
12426 ;;
12427
12428 interix[3-9]*)
12429 hardcode_direct=no
12430 hardcode_shlibpath_var=no
12431 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12432 export_dynamic_flag_spec='$wl-E'
12433 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12434 # Instead, shared libraries are loaded at an image base (0x10000000 by
12435 # default) and relocated if they conflict, which is a slow very memory
12436 # consuming and fragmenting process. To avoid this, we pick a random,
12437 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12438 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12440 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'
12441 ;;
12442
12443 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12444 tmp_diet=no
12445 if test linux-dietlibc = "$host_os"; then
12446 case $cc_basename in
12447 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12448 esac
12449 fi
12450 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12451 && test no = "$tmp_diet"
12452 then
12453 tmp_addflag=' $pic_flag'
12454 tmp_sharedflag='-shared'
12455 case $cc_basename,$host_cpu in
12456 pgcc*) # Portland Group C compiler
12457 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'
12458 tmp_addflag=' $pic_flag'
12459 ;;
12460 pgf77* | pgf90* | pgf95* | pgfortran*)
12461 # Portland Group f77 and f90 compilers
12462 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'
12463 tmp_addflag=' $pic_flag -Mnomain' ;;
12464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12465 tmp_addflag=' -i_dynamic' ;;
12466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12467 tmp_addflag=' -i_dynamic -nofor_main' ;;
12468 ifc* | ifort*) # Intel Fortran compiler
12469 tmp_addflag=' -nofor_main' ;;
12470 lf95*) # Lahey Fortran 8.1
12471 whole_archive_flag_spec=
12472 tmp_sharedflag='--shared' ;;
12473 nagfor*) # NAGFOR 5.3
12474 tmp_sharedflag='-Wl,-shared' ;;
12475 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12476 tmp_sharedflag='-qmkshrobj'
12477 tmp_addflag= ;;
12478 nvcc*) # Cuda Compiler Driver 2.2
12479 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'
12480 compiler_needs_object=yes
12481 ;;
12482 esac
12483 case `$CC -V 2>&1 | $SED 5q` in
12484 *Sun\ C*) # Sun C 5.9
12485 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'
12486 compiler_needs_object=yes
12487 tmp_sharedflag='-G' ;;
12488 *Sun\ F*) # Sun Fortran 8.3
12489 tmp_sharedflag='-G' ;;
12490 esac
12491 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12492
12493 if test yes = "$supports_anon_versioning"; then
12494 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12495 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12496 echo "local: *; };" >> $output_objdir/$libname.ver~
12497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12498 fi
12499
12500 case $cc_basename in
12501 tcc*)
12502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12503 export_dynamic_flag_spec='-rdynamic'
12504 ;;
12505 xlf* | bgf* | bgxlf* | mpixlf*)
12506 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12507 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12509 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12510 if test yes = "$supports_anon_versioning"; then
12511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12512 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12513 echo "local: *; };" >> $output_objdir/$libname.ver~
12514 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12515 fi
12516 ;;
12517 esac
12518 else
12519 ld_shlibs=no
12520 fi
12521 ;;
12522
12523 *-mlibc)
12524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12525 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12526 ;;
12527
12528 netbsd* | netbsdelf*-gnu)
12529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12530 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12531 wlarc=
12532 else
12533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12534 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12535 fi
12536 ;;
12537
12538 solaris*)
12539 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12540 ld_shlibs=no
12541 cat <<_LT_EOF 1>&2
12542
12543 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12544 *** create shared libraries on Solaris systems. Therefore, libtool
12545 *** is disabling shared libraries support. We urge you to upgrade GNU
12546 *** binutils to release 2.9.1 or newer. Another option is to modify
12547 *** your PATH or compiler configuration so that the native linker is
12548 *** used, and then restart.
12549
12550 _LT_EOF
12551 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12553 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12554 else
12555 ld_shlibs=no
12556 fi
12557 ;;
12558
12559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12560 case `$LD -v 2>&1` in
12561 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12562 ld_shlibs=no
12563 cat <<_LT_EOF 1>&2
12564
12565 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12566 *** reliably create shared libraries on SCO systems. Therefore, libtool
12567 *** is disabling shared libraries support. We urge you to upgrade GNU
12568 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12569 *** your PATH or compiler configuration so that the native linker is
12570 *** used, and then restart.
12571
12572 _LT_EOF
12573 ;;
12574 *)
12575 # For security reasons, it is highly recommended that you always
12576 # use absolute paths for naming shared libraries, and exclude the
12577 # DT_RUNPATH tag from executables and libraries. But doing so
12578 # requires that you compile everything twice, which is a pain.
12579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12580 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12583 else
12584 ld_shlibs=no
12585 fi
12586 ;;
12587 esac
12588 ;;
12589
12590 sunos4*)
12591 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12592 wlarc=
12593 hardcode_direct=yes
12594 hardcode_shlibpath_var=no
12595 ;;
12596
12597 *)
12598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12599 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12600 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12601 else
12602 ld_shlibs=no
12603 fi
12604 ;;
12605 esac
12606
12607 if test no = "$ld_shlibs"; then
12608 runpath_var=
12609 hardcode_libdir_flag_spec=
12610 export_dynamic_flag_spec=
12611 whole_archive_flag_spec=
12612 fi
12613 else
12614 # PORTME fill in a description of your system's linker (not GNU ld)
12615 case $host_os in
12616 aix3*)
12617 allow_undefined_flag=unsupported
12618 always_export_symbols=yes
12619 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'
12620 # Note: this linker hardcodes the directories in LIBPATH if there
12621 # are no directories specified by -L.
12622 hardcode_minus_L=yes
12623 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12624 # Neither direct hardcoding nor static linking is supported with a
12625 # broken collect2.
12626 hardcode_direct=unsupported
12627 fi
12628 ;;
12629
12630 aix[4-9]*)
12631 if test ia64 = "$host_cpu"; then
12632 # On IA64, the linker does run time linking by default, so we don't
12633 # have to do anything special.
12634 aix_use_runtimelinking=no
12635 exp_sym_flag='-Bexport'
12636 no_entry_flag=
12637 else
12638 # If we're using GNU nm, then we don't want the "-C" option.
12639 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12640 # Without the "-l" option, or with the "-B" option, AIX nm treats
12641 # weak defined symbols like other global defined symbols, whereas
12642 # GNU nm marks them as "W".
12643 # While the 'weak' keyword is ignored in the Export File, we need
12644 # it in the Import File for the 'aix-soname' feature, so we have
12645 # to replace the "-B" option with "-P" for AIX nm.
12646 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12647 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'
12648 else
12649 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'
12650 fi
12651 aix_use_runtimelinking=no
12652
12653 # Test if we are trying to use run time linking or normal
12654 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12655 # have runtime linking enabled, and use it for executables.
12656 # For shared libraries, we enable/disable runtime linking
12657 # depending on the kind of the shared library created -
12658 # when "with_aix_soname,aix_use_runtimelinking" is:
12659 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12660 # "aix,yes" lib.so shared, rtl:yes, for executables
12661 # lib.a static archive
12662 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12663 # lib.a(lib.so.V) shared, rtl:no, for executables
12664 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12665 # lib.a(lib.so.V) shared, rtl:no
12666 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12667 # lib.a static archive
12668 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12669 for ld_flag in $LDFLAGS; do
12670 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12671 aix_use_runtimelinking=yes
12672 break
12673 fi
12674 done
12675 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12676 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12677 # so we don't have lib.a shared libs to link our executables.
12678 # We have to force runtime linking in this case.
12679 aix_use_runtimelinking=yes
12680 LDFLAGS="$LDFLAGS -Wl,-brtl"
12681 fi
12682 ;;
12683 esac
12684
12685 exp_sym_flag='-bexport'
12686 no_entry_flag='-bnoentry'
12687 fi
12688
12689 # When large executables or shared objects are built, AIX ld can
12690 # have problems creating the table of contents. If linking a library
12691 # or program results in "error TOC overflow" add -mminimal-toc to
12692 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12693 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12694
12695 archive_cmds=''
12696 hardcode_direct=yes
12697 hardcode_direct_absolute=yes
12698 hardcode_libdir_separator=':'
12699 link_all_deplibs=yes
12700 file_list_spec='$wl-f,'
12701 case $with_aix_soname,$aix_use_runtimelinking in
12702 aix,*) ;; # traditional, no import file
12703 svr4,* | *,yes) # use import file
12704 # The Import File defines what to hardcode.
12705 hardcode_direct=no
12706 hardcode_direct_absolute=no
12707 ;;
12708 esac
12709
12710 if test yes = "$GCC"; then
12711 case $host_os in aix4.[012]|aix4.[012].*)
12712 # We only want to do this on AIX 4.2 and lower, the check
12713 # below for broken collect2 doesn't work under 4.3+
12714 collect2name=`$CC -print-prog-name=collect2`
12715 if test -f "$collect2name" &&
12716 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12717 then
12718 # We have reworked collect2
12719 :
12720 else
12721 # We have old collect2
12722 hardcode_direct=unsupported
12723 # It fails to find uninstalled libraries when the uninstalled
12724 # path is not listed in the libpath. Setting hardcode_minus_L
12725 # to unsupported forces relinking
12726 hardcode_minus_L=yes
12727 hardcode_libdir_flag_spec='-L$libdir'
12728 hardcode_libdir_separator=
12729 fi
12730 ;;
12731 esac
12732 shared_flag='-shared'
12733 if test yes = "$aix_use_runtimelinking"; then
12734 shared_flag="$shared_flag "'$wl-G'
12735 fi
12736 # Need to ensure runtime linking is disabled for the traditional
12737 # shared library, or the linker may eventually find shared libraries
12738 # /with/ Import File - we do not want to mix them.
12739 shared_flag_aix='-shared'
12740 shared_flag_svr4='-shared $wl-G'
12741 else
12742 # not using gcc
12743 if test ia64 = "$host_cpu"; then
12744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12745 # chokes on -Wl,-G. The following line is correct:
12746 shared_flag='-G'
12747 else
12748 if test yes = "$aix_use_runtimelinking"; then
12749 shared_flag='$wl-G'
12750 else
12751 shared_flag='$wl-bM:SRE'
12752 fi
12753 shared_flag_aix='$wl-bM:SRE'
12754 shared_flag_svr4='$wl-G'
12755 fi
12756 fi
12757
12758 export_dynamic_flag_spec='$wl-bexpall'
12759 # It seems that -bexpall does not export symbols beginning with
12760 # underscore (_), so it is better to generate a list of symbols to export.
12761 always_export_symbols=yes
12762 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12763 # Warning - without using the other runtime loading flags (-brtl),
12764 # -berok will link without error, but may produce a broken library.
12765 allow_undefined_flag='-berok'
12766 # Determine the default libpath from the value encoded in an
12767 # empty executable.
12768 if test set = "${lt_cv_aix_libpath+set}"; then
12769 aix_libpath=$lt_cv_aix_libpath
12770 else
12771 if test ${lt_cv_aix_libpath_+y}
12772 then :
12773 printf %s "(cached) " >&6
12774 else case e in #(
12775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777
12778 int
12779 main (void)
12780 {
12781
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 if ac_fn_c_try_link "$LINENO"
12787 then :
12788
12789 lt_aix_libpath_sed='
12790 /Import File Strings/,/^$/ {
12791 /^0/ {
12792 s/^0 *\([^ ]*\) *$/\1/
12793 p
12794 }
12795 }'
12796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12797 # Check for a 64-bit object if we didn't find anything.
12798 if test -z "$lt_cv_aix_libpath_"; then
12799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12800 fi
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12803 conftest$ac_exeext conftest.$ac_ext
12804 if test -z "$lt_cv_aix_libpath_"; then
12805 lt_cv_aix_libpath_=/usr/lib:/lib
12806 fi
12807 ;;
12808 esac
12809 fi
12810
12811 aix_libpath=$lt_cv_aix_libpath_
12812 fi
12813
12814 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12815 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
12816 else
12817 if test ia64 = "$host_cpu"; then
12818 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12819 allow_undefined_flag="-z nodefs"
12820 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"
12821 else
12822 # Determine the default libpath from the value encoded in an
12823 # empty executable.
12824 if test set = "${lt_cv_aix_libpath+set}"; then
12825 aix_libpath=$lt_cv_aix_libpath
12826 else
12827 if test ${lt_cv_aix_libpath_+y}
12828 then :
12829 printf %s "(cached) " >&6
12830 else case e in #(
12831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833
12834 int
12835 main (void)
12836 {
12837
12838 ;
12839 return 0;
12840 }
12841 _ACEOF
12842 if ac_fn_c_try_link "$LINENO"
12843 then :
12844
12845 lt_aix_libpath_sed='
12846 /Import File Strings/,/^$/ {
12847 /^0/ {
12848 s/^0 *\([^ ]*\) *$/\1/
12849 p
12850 }
12851 }'
12852 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12853 # Check for a 64-bit object if we didn't find anything.
12854 if test -z "$lt_cv_aix_libpath_"; then
12855 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12856 fi
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12859 conftest$ac_exeext conftest.$ac_ext
12860 if test -z "$lt_cv_aix_libpath_"; then
12861 lt_cv_aix_libpath_=/usr/lib:/lib
12862 fi
12863 ;;
12864 esac
12865 fi
12866
12867 aix_libpath=$lt_cv_aix_libpath_
12868 fi
12869
12870 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12871 # Warning - without using the other run time loading flags,
12872 # -berok will link without error, but may produce a broken library.
12873 no_undefined_flag=' $wl-bernotok'
12874 allow_undefined_flag=' $wl-berok'
12875 if test yes = "$with_gnu_ld"; then
12876 # We only use this code for GNU lds that support --whole-archive.
12877 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12878 else
12879 # Exported symbols can be pulled into shared objects from archives
12880 whole_archive_flag_spec='$convenience'
12881 fi
12882 archive_cmds_need_lc=yes
12883 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12884 # -brtl affects multiple linker settings, -berok does not and is overridden later
12885 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12886 if test svr4 != "$with_aix_soname"; then
12887 # This is similar to how AIX traditionally builds its shared libraries.
12888 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'
12889 fi
12890 if test aix != "$with_aix_soname"; then
12891 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'
12892 else
12893 # used by -dlpreopen to get the symbols
12894 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12895 fi
12896 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12897 fi
12898 fi
12899 ;;
12900
12901 amigaos*)
12902 case $host_cpu in
12903 powerpc)
12904 # see comment about AmigaOS4 .so support
12905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12906 archive_expsym_cmds=''
12907 ;;
12908 m68k)
12909 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)'
12910 hardcode_libdir_flag_spec='-L$libdir'
12911 hardcode_minus_L=yes
12912 ;;
12913 esac
12914 ;;
12915
12916 bsdi[45]*)
12917 export_dynamic_flag_spec=-rdynamic
12918 ;;
12919
12920 cygwin* | mingw* | windows* | pw32* | cegcc*)
12921 # When not using gcc, we currently assume that we are using
12922 # Microsoft Visual C++ or Intel C++ Compiler.
12923 # hardcode_libdir_flag_spec is actually meaningless, as there is
12924 # no search path for DLLs.
12925 case $cc_basename in
12926 cl* | icl*)
12927 # Native MSVC or ICC
12928 hardcode_libdir_flag_spec=' '
12929 allow_undefined_flag=unsupported
12930 always_export_symbols=yes
12931 file_list_spec='@'
12932 # Tell ltmain to make .lib files, not .a files.
12933 libext=lib
12934 # Tell ltmain to make .dll files, not .so files.
12935 shrext_cmds=.dll
12936 # FIXME: Setting linknames here is a bad hack.
12937 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12938 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12939 cp "$export_symbols" "$output_objdir/$soname.def";
12940 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12941 else
12942 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12943 fi~
12944 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12945 linknames='
12946 # The linker will not automatically build a static lib if we build a DLL.
12947 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12948 enable_shared_with_static_runtimes=yes
12949 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12951 # Don't use ranlib
12952 old_postinstall_cmds='chmod 644 $oldlib'
12953 postlink_cmds='lt_outputfile="@OUTPUT@"~
12954 lt_tool_outputfile="@TOOL_OUTPUT@"~
12955 case $lt_outputfile in
12956 *.exe|*.EXE) ;;
12957 *)
12958 lt_outputfile=$lt_outputfile.exe
12959 lt_tool_outputfile=$lt_tool_outputfile.exe
12960 ;;
12961 esac~
12962 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12963 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12964 $RM "$lt_outputfile.manifest";
12965 fi'
12966 ;;
12967 *)
12968 # Assume MSVC and ICC wrapper
12969 hardcode_libdir_flag_spec=' '
12970 allow_undefined_flag=unsupported
12971 # Tell ltmain to make .lib files, not .a files.
12972 libext=lib
12973 # Tell ltmain to make .dll files, not .so files.
12974 shrext_cmds=.dll
12975 # FIXME: Setting linknames here is a bad hack.
12976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12977 # The linker will automatically build a .lib file if we build a DLL.
12978 old_archive_from_new_cmds='true'
12979 # FIXME: Should let the user specify the lib program.
12980 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12981 enable_shared_with_static_runtimes=yes
12982 ;;
12983 esac
12984 ;;
12985
12986 darwin* | rhapsody*)
12987
12988
12989 archive_cmds_need_lc=no
12990 hardcode_direct=no
12991 hardcode_automatic=yes
12992 hardcode_shlibpath_var=unsupported
12993 if test yes = "$lt_cv_ld_force_load"; then
12994 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\"`'
12995
12996 else
12997 whole_archive_flag_spec=''
12998 fi
12999 link_all_deplibs=yes
13000 allow_undefined_flag=$_lt_dar_allow_undefined
13001 case $cc_basename in
13002 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13003 *) _lt_dar_can_shared=$GCC ;;
13004 esac
13005 if test yes = "$_lt_dar_can_shared"; then
13006 output_verbose_link_cmd=func_echo_all
13007 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13008 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13009 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"
13010 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"
13011
13012 else
13013 ld_shlibs=no
13014 fi
13015
13016 ;;
13017
13018 dgux*)
13019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13020 hardcode_libdir_flag_spec='-L$libdir'
13021 hardcode_shlibpath_var=no
13022 ;;
13023
13024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13025 # support. Future versions do this automatically, but an explicit c++rt0.o
13026 # does not break anything, and helps significantly (at the cost of a little
13027 # extra space).
13028 freebsd2.2*)
13029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13030 hardcode_libdir_flag_spec='-R$libdir'
13031 hardcode_direct=yes
13032 hardcode_shlibpath_var=no
13033 ;;
13034
13035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13036 freebsd2.*)
13037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13038 hardcode_direct=yes
13039 hardcode_minus_L=yes
13040 hardcode_shlibpath_var=no
13041 ;;
13042
13043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13044 freebsd* | dragonfly* | midnightbsd*)
13045 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13046 hardcode_libdir_flag_spec='-R$libdir'
13047 hardcode_direct=yes
13048 hardcode_shlibpath_var=no
13049 ;;
13050
13051 hpux9*)
13052 if test yes = "$GCC"; then
13053 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'
13054 else
13055 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'
13056 fi
13057 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13058 hardcode_libdir_separator=:
13059 hardcode_direct=yes
13060
13061 # hardcode_minus_L: Not really in the search PATH,
13062 # but as the default location of the library.
13063 hardcode_minus_L=yes
13064 export_dynamic_flag_spec='$wl-E'
13065 ;;
13066
13067 hpux10*)
13068 if test yes,no = "$GCC,$with_gnu_ld"; then
13069 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13070 else
13071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13072 fi
13073 if test no = "$with_gnu_ld"; then
13074 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13075 hardcode_libdir_separator=:
13076 hardcode_direct=yes
13077 hardcode_direct_absolute=yes
13078 export_dynamic_flag_spec='$wl-E'
13079 # hardcode_minus_L: Not really in the search PATH,
13080 # but as the default location of the library.
13081 hardcode_minus_L=yes
13082 fi
13083 ;;
13084
13085 hpux11*)
13086 if test yes,no = "$GCC,$with_gnu_ld"; then
13087 case $host_cpu in
13088 hppa*64*)
13089 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 ;;
13091 ia64*)
13092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13093 ;;
13094 *)
13095 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13096 ;;
13097 esac
13098 else
13099 case $host_cpu in
13100 hppa*64*)
13101 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 ;;
13103 ia64*)
13104 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13105 ;;
13106 *)
13107
13108 # Older versions of the 11.00 compiler do not understand -b yet
13109 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13111 printf %s "checking if $CC understands -b... " >&6; }
13112 if test ${lt_cv_prog_compiler__b+y}
13113 then :
13114 printf %s "(cached) " >&6
13115 else case e in #(
13116 e) lt_cv_prog_compiler__b=no
13117 save_LDFLAGS=$LDFLAGS
13118 LDFLAGS="$LDFLAGS -b"
13119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13121 # The linker can only warn and ignore the option if not recognized
13122 # So say no if there are warnings
13123 if test -s conftest.err; then
13124 # Append any errors to the config.log.
13125 cat conftest.err 1>&5
13126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13128 if diff conftest.exp conftest.er2 >/dev/null; then
13129 lt_cv_prog_compiler__b=yes
13130 fi
13131 else
13132 lt_cv_prog_compiler__b=yes
13133 fi
13134 fi
13135 $RM -r conftest*
13136 LDFLAGS=$save_LDFLAGS
13137 ;;
13138 esac
13139 fi
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13141 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13142
13143 if test yes = "$lt_cv_prog_compiler__b"; then
13144 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13145 else
13146 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13147 fi
13148
13149 ;;
13150 esac
13151 fi
13152 if test no = "$with_gnu_ld"; then
13153 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13154 hardcode_libdir_separator=:
13155
13156 case $host_cpu in
13157 hppa*64*|ia64*)
13158 hardcode_direct=no
13159 hardcode_shlibpath_var=no
13160 ;;
13161 *)
13162 hardcode_direct=yes
13163 hardcode_direct_absolute=yes
13164 export_dynamic_flag_spec='$wl-E'
13165
13166 # hardcode_minus_L: Not really in the search PATH,
13167 # but as the default location of the library.
13168 hardcode_minus_L=yes
13169 ;;
13170 esac
13171 fi
13172 ;;
13173
13174 irix5* | irix6* | nonstopux*)
13175 if test yes = "$GCC"; then
13176 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'
13177 # Try to use the -exported_symbol ld option, if it does not
13178 # work, assume that -exports_file does not work either and
13179 # implicitly export all symbols.
13180 # This should be the same for all languages, so no per-tag cache variable.
13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13182 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13183 if test ${lt_cv_irix_exported_symbol+y}
13184 then :
13185 printf %s "(cached) " >&6
13186 else case e in #(
13187 e) save_LDFLAGS=$LDFLAGS
13188 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 int foo (void) { return 0; }
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"
13194 then :
13195 lt_cv_irix_exported_symbol=yes
13196 else case e in #(
13197 e) lt_cv_irix_exported_symbol=no ;;
13198 esac
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LDFLAGS=$save_LDFLAGS ;;
13203 esac
13204 fi
13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13206 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13207 if test yes = "$lt_cv_irix_exported_symbol"; then
13208 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'
13209 fi
13210 else
13211 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'
13212 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'
13213 fi
13214 archive_cmds_need_lc='no'
13215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13216 hardcode_libdir_separator=:
13217 inherit_rpath=yes
13218 link_all_deplibs=yes
13219 ;;
13220
13221 linux*)
13222 case $cc_basename in
13223 tcc*)
13224 # Fabrice Bellard et al's Tiny C Compiler
13225 ld_shlibs=yes
13226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13228 ;;
13229 esac
13230 ;;
13231
13232 *-mlibc)
13233 ;;
13234
13235 netbsd* | netbsdelf*-gnu)
13236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13238 else
13239 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13240 fi
13241 hardcode_libdir_flag_spec='-R$libdir'
13242 hardcode_direct=yes
13243 hardcode_shlibpath_var=no
13244 ;;
13245
13246 newsos6)
13247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13248 hardcode_direct=yes
13249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13250 hardcode_libdir_separator=:
13251 hardcode_shlibpath_var=no
13252 ;;
13253
13254 *nto* | *qnx*)
13255 ;;
13256
13257 openbsd*)
13258 if test -f /usr/libexec/ld.so; then
13259 hardcode_direct=yes
13260 hardcode_shlibpath_var=no
13261 hardcode_direct_absolute=yes
13262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13264 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13265 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13266 export_dynamic_flag_spec='$wl-E'
13267 else
13268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13269 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13270 fi
13271 else
13272 ld_shlibs=no
13273 fi
13274 ;;
13275
13276 os2*)
13277 hardcode_libdir_flag_spec='-L$libdir'
13278 hardcode_minus_L=yes
13279 allow_undefined_flag=unsupported
13280 shrext_cmds=.dll
13281 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13282 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13283 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13284 $ECHO EXPORTS >> $output_objdir/$libname.def~
13285 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13286 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13287 emximp -o $lib $output_objdir/$libname.def'
13288 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13289 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13290 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13291 $ECHO EXPORTS >> $output_objdir/$libname.def~
13292 prefix_cmds="$SED"~
13293 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13294 prefix_cmds="$prefix_cmds -e 1d";
13295 fi~
13296 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13297 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13299 emximp -o $lib $output_objdir/$libname.def'
13300 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13301 enable_shared_with_static_runtimes=yes
13302 file_list_spec='@'
13303 ;;
13304
13305 osf3*)
13306 if test yes = "$GCC"; then
13307 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13308 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'
13309 else
13310 allow_undefined_flag=' -expect_unresolved \*'
13311 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'
13312 fi
13313 archive_cmds_need_lc='no'
13314 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13315 hardcode_libdir_separator=:
13316 ;;
13317
13318 osf4* | osf5*) # as osf3* with the addition of -msym flag
13319 if test yes = "$GCC"; then
13320 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13321 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'
13322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13323 else
13324 allow_undefined_flag=' -expect_unresolved \*'
13325 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'
13326 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~
13327 $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'
13328
13329 # Both c and cxx compiler support -rpath directly
13330 hardcode_libdir_flag_spec='-rpath $libdir'
13331 fi
13332 archive_cmds_need_lc='no'
13333 hardcode_libdir_separator=:
13334 ;;
13335
13336 serenity*)
13337 ;;
13338
13339 solaris*)
13340 no_undefined_flag=' -z defs'
13341 if test yes = "$GCC"; then
13342 wlarc='$wl'
13343 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13345 $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'
13346 else
13347 case `$CC -V 2>&1` in
13348 *"Compilers 5.0"*)
13349 wlarc=''
13350 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13351 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13352 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13353 ;;
13354 *)
13355 wlarc='$wl'
13356 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13357 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13358 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13359 ;;
13360 esac
13361 fi
13362 hardcode_libdir_flag_spec='-R$libdir'
13363 hardcode_shlibpath_var=no
13364 case $host_os in
13365 solaris2.[0-5] | solaris2.[0-5].*) ;;
13366 *)
13367 # The compiler driver will combine and reorder linker options,
13368 # but understands '-z linker_flag'. GCC discards it without '$wl',
13369 # but is careful enough not to reorder.
13370 # Supported since Solaris 2.6 (maybe 2.5.1?)
13371 if test yes = "$GCC"; then
13372 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13373 else
13374 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13375 fi
13376 ;;
13377 esac
13378 link_all_deplibs=yes
13379 ;;
13380
13381 sunos4*)
13382 if test sequent = "$host_vendor"; then
13383 # Use $CC to link under sequent, because it throws in some extra .o
13384 # files that make .init and .fini sections work.
13385 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13386 else
13387 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13388 fi
13389 hardcode_libdir_flag_spec='-L$libdir'
13390 hardcode_direct=yes
13391 hardcode_minus_L=yes
13392 hardcode_shlibpath_var=no
13393 ;;
13394
13395 sysv4)
13396 case $host_vendor in
13397 sni)
13398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13399 hardcode_direct=yes # is this really true???
13400 ;;
13401 siemens)
13402 ## LD is ld it makes a PLAMLIB
13403 ## CC just makes a GrossModule.
13404 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13405 reload_cmds='$CC -r -o $output$reload_objs'
13406 hardcode_direct=no
13407 ;;
13408 motorola)
13409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13410 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13411 ;;
13412 esac
13413 runpath_var='LD_RUN_PATH'
13414 hardcode_shlibpath_var=no
13415 ;;
13416
13417 sysv4.3*)
13418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_shlibpath_var=no
13420 export_dynamic_flag_spec='-Bexport'
13421 ;;
13422
13423 sysv4*MP*)
13424 if test -d /usr/nec; then
13425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13426 hardcode_shlibpath_var=no
13427 runpath_var=LD_RUN_PATH
13428 hardcode_runpath_var=yes
13429 ld_shlibs=yes
13430 fi
13431 ;;
13432
13433 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13434 no_undefined_flag='$wl-z,text'
13435 archive_cmds_need_lc=no
13436 hardcode_shlibpath_var=no
13437 runpath_var='LD_RUN_PATH'
13438
13439 if test yes = "$GCC"; then
13440 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13442 else
13443 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13444 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 fi
13446 ;;
13447
13448 sysv5* | sco3.2v5* | sco5v6*)
13449 # Note: We CANNOT use -z defs as we might desire, because we do not
13450 # link with -lc, and that would cause any symbols used from libc to
13451 # always be unresolved, which means just about no library would
13452 # ever link correctly. If we're not using GNU ld we use -z text
13453 # though, which does catch some bad symbols but isn't as heavy-handed
13454 # as -z defs.
13455 no_undefined_flag='$wl-z,text'
13456 allow_undefined_flag='$wl-z,nodefs'
13457 archive_cmds_need_lc=no
13458 hardcode_shlibpath_var=no
13459 hardcode_libdir_flag_spec='$wl-R,$libdir'
13460 hardcode_libdir_separator=':'
13461 link_all_deplibs=yes
13462 export_dynamic_flag_spec='$wl-Bexport'
13463 runpath_var='LD_RUN_PATH'
13464
13465 if test yes = "$GCC"; then
13466 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13468 else
13469 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 fi
13472 ;;
13473
13474 uts4*)
13475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_libdir_flag_spec='-L$libdir'
13477 hardcode_shlibpath_var=no
13478 ;;
13479
13480 *)
13481 ld_shlibs=no
13482 ;;
13483 esac
13484
13485 if test sni = "$host_vendor"; then
13486 case $host in
13487 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13488 export_dynamic_flag_spec='$wl-Blargedynsym'
13489 ;;
13490 esac
13491 fi
13492 fi
13493
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13495 printf "%s\n" "$ld_shlibs" >&6; }
13496 test no = "$ld_shlibs" && can_build_shared=no
13497
13498 with_gnu_ld=$with_gnu_ld
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514 #
13515 # Do we need to explicitly link libc?
13516 #
13517 case "x$archive_cmds_need_lc" in
13518 x|xyes)
13519 # Assume -lc should be added
13520 archive_cmds_need_lc=yes
13521
13522 if test yes,yes = "$GCC,$enable_shared"; then
13523 case $archive_cmds in
13524 *'~'*)
13525 # FIXME: we may have to deal with multi-command sequences.
13526 ;;
13527 '$CC '*)
13528 # Test whether the compiler implicitly links with -lc since on some
13529 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13530 # to ld, don't add -lc before -lgcc.
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13532 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13533 if test ${lt_cv_archive_cmds_need_lc+y}
13534 then :
13535 printf %s "(cached) " >&6
13536 else case e in #(
13537 e) $RM conftest*
13538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13539
13540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541 (eval $ac_compile) 2>&5
13542 ac_status=$?
13543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544 test $ac_status = 0; } 2>conftest.err; then
13545 soname=conftest
13546 lib=conftest
13547 libobjs=conftest.$ac_objext
13548 deplibs=
13549 wl=$lt_prog_compiler_wl
13550 pic_flag=$lt_prog_compiler_pic
13551 compiler_flags=-v
13552 linker_flags=-v
13553 verstring=
13554 output_objdir=.
13555 libname=conftest
13556 lt_save_allow_undefined_flag=$allow_undefined_flag
13557 allow_undefined_flag=
13558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13559 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13560 ac_status=$?
13561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; }
13563 then
13564 lt_cv_archive_cmds_need_lc=no
13565 else
13566 lt_cv_archive_cmds_need_lc=yes
13567 fi
13568 allow_undefined_flag=$lt_save_allow_undefined_flag
13569 else
13570 cat conftest.err 1>&5
13571 fi
13572 $RM conftest*
13573 ;;
13574 esac
13575 fi
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13577 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13578 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13579 ;;
13580 esac
13581 fi
13582 ;;
13583 esac
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13737 printf %s "checking dynamic linker characteristics... " >&6; }
13738
13739 if test yes = "$GCC"; then
13740 case $host_os in
13741 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13742 *) lt_awk_arg='/^libraries:/' ;;
13743 esac
13744 case $host_os in
13745 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13746 *) lt_sed_strip_eq='s|=/|/|g' ;;
13747 esac
13748 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13749 case $lt_search_path_spec in
13750 *\;*)
13751 # if the path contains ";" then we assume it to be the separator
13752 # otherwise default to the standard path separator (i.e. ":") - it is
13753 # assumed that no part of a normal pathname contains ";" but that should
13754 # okay in the real world where ";" in dirpaths is itself problematic.
13755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13756 ;;
13757 *)
13758 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13759 ;;
13760 esac
13761 # Ok, now we have the path, separated by spaces, we can step through it
13762 # and add multilib dir if necessary...
13763 lt_tmp_lt_search_path_spec=
13764 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13765 # ...but if some path component already ends with the multilib dir we assume
13766 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13767 case "$lt_multi_os_dir; $lt_search_path_spec " in
13768 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13769 lt_multi_os_dir=
13770 ;;
13771 esac
13772 for lt_sys_path in $lt_search_path_spec; do
13773 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13775 elif test -n "$lt_multi_os_dir"; then
13776 test -d "$lt_sys_path" && \
13777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13778 fi
13779 done
13780 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13781 BEGIN {RS = " "; FS = "/|\n";} {
13782 lt_foo = "";
13783 lt_count = 0;
13784 for (lt_i = NF; lt_i > 0; lt_i--) {
13785 if ($lt_i != "" && $lt_i != ".") {
13786 if ($lt_i == "..") {
13787 lt_count++;
13788 } else {
13789 if (lt_count == 0) {
13790 lt_foo = "/" $lt_i lt_foo;
13791 } else {
13792 lt_count--;
13793 }
13794 }
13795 }
13796 }
13797 if (lt_foo != "") { lt_freq[lt_foo]++; }
13798 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13799 }'`
13800 # AWK program above erroneously prepends '/' to C:/dos/paths
13801 # for these hosts.
13802 case $host_os in
13803 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13804 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13805 esac
13806 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13807 else
13808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13809 fi
13810 library_names_spec=
13811 libname_spec='lib$name'
13812 soname_spec=
13813 shrext_cmds=.so
13814 postinstall_cmds=
13815 postuninstall_cmds=
13816 finish_cmds=
13817 finish_eval=
13818 shlibpath_var=
13819 shlibpath_overrides_runpath=unknown
13820 version_type=none
13821 dynamic_linker="$host_os ld.so"
13822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13823 need_lib_prefix=unknown
13824 hardcode_into_libs=no
13825
13826 # when you set need_version to no, make sure it does not cause -set_version
13827 # flags to be left without arguments
13828 need_version=unknown
13829
13830
13831
13832 case $host_os in
13833 aix3*)
13834 version_type=linux # correct to gnu/linux during the next big refactor
13835 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13836 shlibpath_var=LIBPATH
13837
13838 # AIX 3 has no versioning support, so we append a major version to the name.
13839 soname_spec='$libname$release$shared_ext$major'
13840 ;;
13841
13842 aix[4-9]*)
13843 version_type=linux # correct to gnu/linux during the next big refactor
13844 need_lib_prefix=no
13845 need_version=no
13846 hardcode_into_libs=yes
13847 if test ia64 = "$host_cpu"; then
13848 # AIX 5 supports IA64
13849 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 else
13852 # With GCC up to 2.95.x, collect2 would create an import file
13853 # for dependence libraries. The import file would start with
13854 # the line '#! .'. This would cause the generated library to
13855 # depend on '.', always an invalid library. This was fixed in
13856 # development snapshots of GCC prior to 3.0.
13857 case $host_os in
13858 aix4 | aix4.[01] | aix4.[01].*)
13859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13860 echo ' yes '
13861 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13862 :
13863 else
13864 can_build_shared=no
13865 fi
13866 ;;
13867 esac
13868 # Using Import Files as archive members, it is possible to support
13869 # filename-based versioning of shared library archives on AIX. While
13870 # this would work for both with and without runtime linking, it will
13871 # prevent static linking of such archives. So we do filename-based
13872 # shared library versioning with .so extension only, which is used
13873 # when both runtime linking and shared linking is enabled.
13874 # Unfortunately, runtime linking may impact performance, so we do
13875 # not want this to be the default eventually. Also, we use the
13876 # versioned .so libs for executables only if there is the -brtl
13877 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13878 # To allow for filename-based versioning support, we need to create
13879 # libNAME.so.V as an archive file, containing:
13880 # *) an Import File, referring to the versioned filename of the
13881 # archive as well as the shared archive member, telling the
13882 # bitwidth (32 or 64) of that shared object, and providing the
13883 # list of exported symbols of that shared object, eventually
13884 # decorated with the 'weak' keyword
13885 # *) the shared object with the F_LOADONLY flag set, to really avoid
13886 # it being seen by the linker.
13887 # At run time we better use the real file rather than another symlink,
13888 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13889
13890 case $with_aix_soname,$aix_use_runtimelinking in
13891 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13892 # soname into executable. Probably we can add versioning support to
13893 # collect2, so additional links can be useful in future.
13894 aix,yes) # traditional libtool
13895 dynamic_linker='AIX unversionable lib.so'
13896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13897 # instead of lib<name>.a to let people know that these are not
13898 # typical AIX shared libraries.
13899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13900 ;;
13901 aix,no) # traditional AIX only
13902 dynamic_linker='AIX lib.a(lib.so.V)'
13903 # We preserve .a as extension for shared libraries through AIX4.2
13904 # and later when we are not doing run time linking.
13905 library_names_spec='$libname$release.a $libname.a'
13906 soname_spec='$libname$release$shared_ext$major'
13907 ;;
13908 svr4,*) # full svr4 only
13909 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13910 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13911 # We do not specify a path in Import Files, so LIBPATH fires.
13912 shlibpath_overrides_runpath=yes
13913 ;;
13914 *,yes) # both, prefer svr4
13915 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13916 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13917 # unpreferred sharedlib libNAME.a needs extra handling
13918 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"'
13919 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"'
13920 # We do not specify a path in Import Files, so LIBPATH fires.
13921 shlibpath_overrides_runpath=yes
13922 ;;
13923 *,no) # both, prefer aix
13924 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13925 library_names_spec='$libname$release.a $libname.a'
13926 soname_spec='$libname$release$shared_ext$major'
13927 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13928 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)'
13929 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"'
13930 ;;
13931 esac
13932 shlibpath_var=LIBPATH
13933 fi
13934 ;;
13935
13936 amigaos*)
13937 case $host_cpu in
13938 powerpc)
13939 # Since July 2007 AmigaOS4 officially supports .so libraries.
13940 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13942 ;;
13943 m68k)
13944 library_names_spec='$libname.ixlibrary $libname.a'
13945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13946 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'
13947 ;;
13948 esac
13949 ;;
13950
13951 beos*)
13952 library_names_spec='$libname$shared_ext'
13953 dynamic_linker="$host_os ld.so"
13954 shlibpath_var=LIBRARY_PATH
13955 ;;
13956
13957 bsdi[45]*)
13958 version_type=linux # correct to gnu/linux during the next big refactor
13959 need_version=no
13960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13961 soname_spec='$libname$release$shared_ext$major'
13962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13963 shlibpath_var=LD_LIBRARY_PATH
13964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13966 # the default ld.so.conf also contains /usr/contrib/lib and
13967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13968 # libtool to hard-code these into programs
13969 ;;
13970
13971 cygwin* | mingw* | windows* | pw32* | cegcc*)
13972 version_type=windows
13973 shrext_cmds=.dll
13974 need_version=no
13975 need_lib_prefix=no
13976
13977 case $GCC,$cc_basename in
13978 yes,*)
13979 # gcc
13980 library_names_spec='$libname.dll.a'
13981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13982 # If user builds GCC with multilib enabled,
13983 # it should just install on $(libdir)
13984 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13985 if test xyes = x"$multilib"; then
13986 postinstall_cmds='base_file=`basename \$file`~
13987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13988 dldir=$destdir/`dirname \$dlpath`~
13989 $install_prog $dir/$dlname $destdir/$dlname~
13990 chmod a+x $destdir/$dlname~
13991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13992 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13993 fi'
13994 else
13995 postinstall_cmds='base_file=`basename \$file`~
13996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13997 dldir=$destdir/`dirname \$dlpath`~
13998 test -d \$dldir || mkdir -p \$dldir~
13999 $install_prog $dir/$dlname \$dldir/$dlname~
14000 chmod a+x \$dldir/$dlname~
14001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14003 fi'
14004 fi
14005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14006 dlpath=$dir/\$dldll~
14007 $RM \$dlpath'
14008 shlibpath_overrides_runpath=yes
14009
14010 case $host_os in
14011 cygwin*)
14012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14013 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14014
14015 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14016 ;;
14017 mingw* | windows* | cegcc*)
14018 # MinGW DLLs use traditional 'lib' prefix
14019 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14020 ;;
14021 pw32*)
14022 # pw32 DLLs use 'pw' prefix rather than 'lib'
14023 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14024 ;;
14025 esac
14026 dynamic_linker='Win32 ld.exe'
14027 ;;
14028
14029 *,cl* | *,icl*)
14030 # Native MSVC or ICC
14031 libname_spec='$name'
14032 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14033 library_names_spec='$libname.dll.lib'
14034
14035 case $build_os in
14036 mingw* | windows*)
14037 sys_lib_search_path_spec=
14038 lt_save_ifs=$IFS
14039 IFS=';'
14040 for lt_path in $LIB
14041 do
14042 IFS=$lt_save_ifs
14043 # Let DOS variable expansion print the short 8.3 style file name.
14044 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14045 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14046 done
14047 IFS=$lt_save_ifs
14048 # Convert to MSYS style.
14049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14050 ;;
14051 cygwin*)
14052 # Convert to unix form, then to dos form, then back to unix form
14053 # but this time dos style (no spaces!) so that the unix form looks
14054 # like /cygdrive/c/PROGRA~1:/cygdr...
14055 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14056 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14057 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14058 ;;
14059 *)
14060 sys_lib_search_path_spec=$LIB
14061 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14062 # It is most probably a Windows format PATH.
14063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14064 else
14065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14066 fi
14067 # FIXME: find the short name or the path components, as spaces are
14068 # common. (e.g. "Program Files" -> "PROGRA~1")
14069 ;;
14070 esac
14071
14072 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14073 postinstall_cmds='base_file=`basename \$file`~
14074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14075 dldir=$destdir/`dirname \$dlpath`~
14076 test -d \$dldir || mkdir -p \$dldir~
14077 $install_prog $dir/$dlname \$dldir/$dlname'
14078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14079 dlpath=$dir/\$dldll~
14080 $RM \$dlpath'
14081 shlibpath_overrides_runpath=yes
14082 dynamic_linker='Win32 link.exe'
14083 ;;
14084
14085 *)
14086 # Assume MSVC and ICC wrapper
14087 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14088 dynamic_linker='Win32 ld.exe'
14089 ;;
14090 esac
14091 # FIXME: first we should search . and the directory the executable is in
14092 shlibpath_var=PATH
14093 ;;
14094
14095 darwin* | rhapsody*)
14096 dynamic_linker="$host_os dyld"
14097 version_type=darwin
14098 need_lib_prefix=no
14099 need_version=no
14100 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14101 soname_spec='$libname$release$major$shared_ext'
14102 shlibpath_overrides_runpath=yes
14103 shlibpath_var=DYLD_LIBRARY_PATH
14104 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14105
14106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14108 ;;
14109
14110 dgux*)
14111 version_type=linux # correct to gnu/linux during the next big refactor
14112 need_lib_prefix=no
14113 need_version=no
14114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14115 soname_spec='$libname$release$shared_ext$major'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 ;;
14118
14119 freebsd* | dragonfly* | midnightbsd*)
14120 # DragonFly does not have aout. When/if they implement a new
14121 # versioning mechanism, adjust this.
14122 if test -x /usr/bin/objformat; then
14123 objformat=`/usr/bin/objformat`
14124 else
14125 case $host_os in
14126 freebsd[23].*) objformat=aout ;;
14127 *) objformat=elf ;;
14128 esac
14129 fi
14130 version_type=freebsd-$objformat
14131 case $version_type in
14132 freebsd-elf*)
14133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14134 soname_spec='$libname$release$shared_ext$major'
14135 need_version=no
14136 need_lib_prefix=no
14137 ;;
14138 freebsd-*)
14139 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14140 need_version=yes
14141 ;;
14142 esac
14143 case $host_cpu in
14144 powerpc64)
14145 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14146 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 int test_pointer_size[sizeof (void *) - 5];
14150
14151 _ACEOF
14152 if ac_fn_c_try_compile "$LINENO"
14153 then :
14154 shlibpath_var=LD_LIBRARY_PATH
14155 else case e in #(
14156 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14157 esac
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14160 ;;
14161 *)
14162 shlibpath_var=LD_LIBRARY_PATH
14163 ;;
14164 esac
14165 case $host_os in
14166 freebsd2.*)
14167 shlibpath_overrides_runpath=yes
14168 ;;
14169 freebsd3.[01]* | freebsdelf3.[01]*)
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14172 ;;
14173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14175 shlibpath_overrides_runpath=no
14176 hardcode_into_libs=yes
14177 ;;
14178 *) # from 4.6 on, and DragonFly
14179 shlibpath_overrides_runpath=yes
14180 hardcode_into_libs=yes
14181 ;;
14182 esac
14183 ;;
14184
14185 haiku*)
14186 version_type=linux # correct to gnu/linux during the next big refactor
14187 need_lib_prefix=no
14188 need_version=no
14189 dynamic_linker="$host_os runtime_loader"
14190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14191 soname_spec='$libname$release$shared_ext$major'
14192 shlibpath_var=LIBRARY_PATH
14193 shlibpath_overrides_runpath=no
14194 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14195 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14196 hardcode_into_libs=no
14197 ;;
14198
14199 hpux9* | hpux10* | hpux11*)
14200 # Give a soname corresponding to the major version so that dld.sl refuses to
14201 # link against other versions.
14202 version_type=sunos
14203 need_lib_prefix=no
14204 need_version=no
14205 case $host_cpu in
14206 ia64*)
14207 shrext_cmds='.so'
14208 hardcode_into_libs=yes
14209 dynamic_linker="$host_os dld.so"
14210 shlibpath_var=LD_LIBRARY_PATH
14211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14213 soname_spec='$libname$release$shared_ext$major'
14214 if test 32 = "$HPUX_IA64_MODE"; then
14215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14216 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14217 else
14218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14219 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14220 fi
14221 ;;
14222 hppa*64*)
14223 shrext_cmds='.sl'
14224 hardcode_into_libs=yes
14225 dynamic_linker="$host_os dld.sl"
14226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14229 soname_spec='$libname$release$shared_ext$major'
14230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14232 ;;
14233 *)
14234 shrext_cmds='.sl'
14235 dynamic_linker="$host_os dld.sl"
14236 shlibpath_var=SHLIB_PATH
14237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14239 soname_spec='$libname$release$shared_ext$major'
14240 ;;
14241 esac
14242 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14243 postinstall_cmds='chmod 555 $lib'
14244 # or fails outright, so override atomically:
14245 install_override_mode=555
14246 ;;
14247
14248 interix[3-9]*)
14249 version_type=linux # correct to gnu/linux during the next big refactor
14250 need_lib_prefix=no
14251 need_version=no
14252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14253 soname_spec='$libname$release$shared_ext$major'
14254 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14255 shlibpath_var=LD_LIBRARY_PATH
14256 shlibpath_overrides_runpath=no
14257 hardcode_into_libs=yes
14258 ;;
14259
14260 irix5* | irix6* | nonstopux*)
14261 case $host_os in
14262 nonstopux*) version_type=nonstopux ;;
14263 *)
14264 if test yes = "$lt_cv_prog_gnu_ld"; then
14265 version_type=linux # correct to gnu/linux during the next big refactor
14266 else
14267 version_type=irix
14268 fi ;;
14269 esac
14270 need_lib_prefix=no
14271 need_version=no
14272 soname_spec='$libname$release$shared_ext$major'
14273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14274 case $host_os in
14275 irix5* | nonstopux*)
14276 libsuff= shlibsuff=
14277 ;;
14278 *)
14279 case $LD in # libtool.m4 will add one of these switches to LD
14280 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14281 libsuff= shlibsuff= libmagic=32-bit;;
14282 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14283 libsuff=32 shlibsuff=N32 libmagic=N32;;
14284 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14285 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14286 *) libsuff= shlibsuff= libmagic=never-match;;
14287 esac
14288 ;;
14289 esac
14290 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14291 shlibpath_overrides_runpath=no
14292 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14293 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14294 hardcode_into_libs=yes
14295 ;;
14296
14297 # No shared lib support for Linux oldld, aout, or coff.
14298 linux*oldld* | linux*aout* | linux*coff*)
14299 dynamic_linker=no
14300 ;;
14301
14302 linux*android*)
14303 version_type=none # Android doesn't support versioned libraries.
14304 need_lib_prefix=no
14305 need_version=no
14306 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14307 soname_spec='$libname$release$shared_ext'
14308 finish_cmds=
14309 shlibpath_var=LD_LIBRARY_PATH
14310 shlibpath_overrides_runpath=yes
14311
14312 # This implies no fast_install, which is unacceptable.
14313 # Some rework will be needed to allow for fast_install
14314 # before this can be enabled.
14315 hardcode_into_libs=yes
14316
14317 dynamic_linker='Android linker'
14318 # -rpath works at least for libraries that are not overridden by
14319 # libraries installed in system locations.
14320 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14321 ;;
14322
14323 # This must be glibc/ELF.
14324 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14325 version_type=linux # correct to gnu/linux during the next big refactor
14326 need_lib_prefix=no
14327 need_version=no
14328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14329 soname_spec='$libname$release$shared_ext$major'
14330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14331 shlibpath_var=LD_LIBRARY_PATH
14332 shlibpath_overrides_runpath=no
14333
14334 # Some binutils ld are patched to set DT_RUNPATH
14335 if test ${lt_cv_shlibpath_overrides_runpath+y}
14336 then :
14337 printf %s "(cached) " >&6
14338 else case e in #(
14339 e) lt_cv_shlibpath_overrides_runpath=no
14340 save_LDFLAGS=$LDFLAGS
14341 save_libdir=$libdir
14342 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14343 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346
14347 int
14348 main (void)
14349 {
14350
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_link "$LINENO"
14356 then :
14357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14358 then :
14359 lt_cv_shlibpath_overrides_runpath=yes
14360 fi
14361 fi
14362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14363 conftest$ac_exeext conftest.$ac_ext
14364 LDFLAGS=$save_LDFLAGS
14365 libdir=$save_libdir
14366 ;;
14367 esac
14368 fi
14369
14370 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14371
14372 # This implies no fast_install, which is unacceptable.
14373 # Some rework will be needed to allow for fast_install
14374 # before this can be enabled.
14375 hardcode_into_libs=yes
14376
14377 # Ideally, we could use ldconfig to report *all* directories which are
14378 # searched for libraries, however this is still not possible. Aside from not
14379 # being certain /sbin/ldconfig is available, command
14380 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14381 # even though it is searched at run-time. Try to do the best guess by
14382 # appending ld.so.conf contents (and includes) to the search path.
14383 if test -f /etc/ld.so.conf; then
14384 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' ' '`
14385 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14386 fi
14387
14388 # We used to test for /lib/ld.so.1 and disable shared libraries on
14389 # powerpc, because MkLinux only supported shared libraries with the
14390 # GNU dynamic linker. Since this was broken with cross compilers,
14391 # most powerpc-linux boxes support dynamic linking these days and
14392 # people can always --disable-shared, the test was removed, and we
14393 # assume the GNU/Linux dynamic linker is in use.
14394 dynamic_linker='GNU/Linux ld.so'
14395 ;;
14396
14397 netbsdelf*-gnu)
14398 version_type=linux
14399 need_lib_prefix=no
14400 need_version=no
14401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14402 soname_spec='$libname$release$shared_ext$major'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 shlibpath_overrides_runpath=no
14405 hardcode_into_libs=yes
14406 dynamic_linker='NetBSD ld.elf_so'
14407 ;;
14408
14409 netbsd*)
14410 version_type=sunos
14411 need_lib_prefix=no
14412 need_version=no
14413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416 dynamic_linker='NetBSD (a.out) ld.so'
14417 else
14418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14419 soname_spec='$libname$release$shared_ext$major'
14420 dynamic_linker='NetBSD ld.elf_so'
14421 fi
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
14426
14427 *-mlibc)
14428 version_type=linux # correct to gnu/linux during the next big refactor
14429 need_lib_prefix=no
14430 need_version=no
14431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14432 soname_spec='$libname$release$shared_ext$major'
14433 dynamic_linker='mlibc ld.so'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=no
14436 hardcode_into_libs=yes
14437 ;;
14438
14439 newsos6)
14440 version_type=linux # correct to gnu/linux during the next big refactor
14441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=yes
14444 ;;
14445
14446 *nto* | *qnx*)
14447 version_type=qnx
14448 need_lib_prefix=no
14449 need_version=no
14450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14451 soname_spec='$libname$release$shared_ext$major'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=no
14454 hardcode_into_libs=yes
14455 dynamic_linker='ldqnx.so'
14456 ;;
14457
14458 openbsd*)
14459 version_type=sunos
14460 sys_lib_dlsearch_path_spec=/usr/lib
14461 need_lib_prefix=no
14462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14463 need_version=no
14464 else
14465 need_version=yes
14466 fi
14467 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14471 ;;
14472
14473 os2*)
14474 libname_spec='$name'
14475 version_type=windows
14476 shrext_cmds=.dll
14477 need_version=no
14478 need_lib_prefix=no
14479 # OS/2 can only load a DLL with a base name of 8 characters or less.
14480 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14481 v=$($ECHO $release$versuffix | tr -d .-);
14482 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14483 $ECHO $n$v`$shared_ext'
14484 library_names_spec='${libname}_dll.$libext'
14485 dynamic_linker='OS/2 ld.exe'
14486 shlibpath_var=BEGINLIBPATH
14487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14489 postinstall_cmds='base_file=`basename \$file`~
14490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14491 dldir=$destdir/`dirname \$dlpath`~
14492 test -d \$dldir || mkdir -p \$dldir~
14493 $install_prog $dir/$dlname \$dldir/$dlname~
14494 chmod a+x \$dldir/$dlname~
14495 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14496 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14497 fi'
14498 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14499 dlpath=$dir/\$dldll~
14500 $RM \$dlpath'
14501 ;;
14502
14503 osf3* | osf4* | osf5*)
14504 version_type=osf
14505 need_lib_prefix=no
14506 need_version=no
14507 soname_spec='$libname$release$shared_ext$major'
14508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512 ;;
14513
14514 rdos*)
14515 dynamic_linker=no
14516 ;;
14517
14518 serenity*)
14519 version_type=linux # correct to gnu/linux during the next big refactor
14520 need_lib_prefix=no
14521 need_version=no
14522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14523 soname_spec='$libname$release$shared_ext$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 shlibpath_overrides_runpath=no
14526 dynamic_linker='SerenityOS LibELF'
14527 ;;
14528
14529 solaris*)
14530 version_type=linux # correct to gnu/linux during the next big refactor
14531 need_lib_prefix=no
14532 need_version=no
14533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14534 soname_spec='$libname$release$shared_ext$major'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=yes
14537 hardcode_into_libs=yes
14538 # ldd complains unless libraries are executable
14539 postinstall_cmds='chmod +x $lib'
14540 ;;
14541
14542 sunos4*)
14543 version_type=sunos
14544 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath=yes
14548 if test yes = "$with_gnu_ld"; then
14549 need_lib_prefix=no
14550 fi
14551 need_version=yes
14552 ;;
14553
14554 sysv4 | sysv4.3*)
14555 version_type=linux # correct to gnu/linux during the next big refactor
14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14557 soname_spec='$libname$release$shared_ext$major'
14558 shlibpath_var=LD_LIBRARY_PATH
14559 case $host_vendor in
14560 sni)
14561 shlibpath_overrides_runpath=no
14562 need_lib_prefix=no
14563 runpath_var=LD_RUN_PATH
14564 ;;
14565 siemens)
14566 need_lib_prefix=no
14567 ;;
14568 motorola)
14569 need_lib_prefix=no
14570 need_version=no
14571 shlibpath_overrides_runpath=no
14572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14573 ;;
14574 esac
14575 ;;
14576
14577 sysv4*MP*)
14578 if test -d /usr/nec; then
14579 version_type=linux # correct to gnu/linux during the next big refactor
14580 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14581 soname_spec='$libname$shared_ext.$major'
14582 shlibpath_var=LD_LIBRARY_PATH
14583 fi
14584 ;;
14585
14586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14587 version_type=sco
14588 need_lib_prefix=no
14589 need_version=no
14590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14591 soname_spec='$libname$release$shared_ext$major'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes
14594 hardcode_into_libs=yes
14595 if test yes = "$with_gnu_ld"; then
14596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14597 else
14598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14599 case $host_os in
14600 sco3.2v5*)
14601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14602 ;;
14603 esac
14604 fi
14605 sys_lib_dlsearch_path_spec='/usr/lib'
14606 ;;
14607
14608 tpf*)
14609 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14610 version_type=linux # correct to gnu/linux during the next big refactor
14611 need_lib_prefix=no
14612 need_version=no
14613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 shlibpath_overrides_runpath=no
14616 hardcode_into_libs=yes
14617 ;;
14618
14619 uts4*)
14620 version_type=linux # correct to gnu/linux during the next big refactor
14621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14622 soname_spec='$libname$release$shared_ext$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 ;;
14625
14626 emscripten*)
14627 version_type=none
14628 need_lib_prefix=no
14629 need_version=no
14630 library_names_spec='$libname$release$shared_ext'
14631 soname_spec='$libname$release$shared_ext'
14632 finish_cmds=
14633 dynamic_linker="Emscripten linker"
14634 lt_prog_compiler_wl=
14635 lt_prog_compiler_pic=
14636 lt_prog_compiler_static=
14637
14638
14639 if test yes = "$GCC"; then
14640 lt_prog_compiler_wl='-Wl,'
14641 lt_prog_compiler_static='-static'
14642
14643 case $host_os in
14644 aix*)
14645 # All AIX code is PIC.
14646 if test ia64 = "$host_cpu"; then
14647 # AIX 5 now supports IA64 processor
14648 lt_prog_compiler_static='-Bstatic'
14649 fi
14650 lt_prog_compiler_pic='-fPIC'
14651 ;;
14652
14653 amigaos*)
14654 case $host_cpu in
14655 powerpc)
14656 # see comment about AmigaOS4 .so support
14657 lt_prog_compiler_pic='-fPIC'
14658 ;;
14659 m68k)
14660 # FIXME: we need at least 68020 code to build shared libraries, but
14661 # adding the '-m68020' flag to GCC prevents building anything better,
14662 # like '-m68040'.
14663 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14664 ;;
14665 esac
14666 ;;
14667
14668 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14669 # PIC is the default for these OSes.
14670 ;;
14671
14672 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14673 # This hack is so that the source file can tell whether it is being
14674 # built for inclusion in a dll (and should export symbols for example).
14675 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14676 # (--disable-auto-import) libraries
14677 lt_prog_compiler_pic='-DDLL_EXPORT'
14678 case $host_os in
14679 os2*)
14680 lt_prog_compiler_static='$wl-static'
14681 ;;
14682 esac
14683 ;;
14684
14685 darwin* | rhapsody*)
14686 # PIC is the default on this platform
14687 # Common symbols not allowed in MH_DYLIB files
14688 lt_prog_compiler_pic='-fno-common'
14689 ;;
14690
14691 haiku*)
14692 # PIC is the default for Haiku.
14693 # The "-static" flag exists, but is broken.
14694 lt_prog_compiler_static=
14695 ;;
14696
14697 hpux*)
14698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14700 # sets the default TLS model and affects inlining.
14701 case $host_cpu in
14702 hppa*64*)
14703 # +Z the default
14704 ;;
14705 *)
14706 lt_prog_compiler_pic='-fPIC'
14707 ;;
14708 esac
14709 ;;
14710
14711 interix[3-9]*)
14712 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14713 # Instead, we relocate shared libraries at runtime.
14714 ;;
14715
14716 msdosdjgpp*)
14717 # Just because we use GCC doesn't mean we suddenly get shared libraries
14718 # on systems that don't support them.
14719 lt_prog_compiler_can_build_shared=no
14720 enable_shared=no
14721 ;;
14722
14723 *nto* | *qnx*)
14724 # QNX uses GNU C++, but need to define -shared option too, otherwise
14725 # it will coredump.
14726 lt_prog_compiler_pic='-fPIC -shared'
14727 ;;
14728
14729 sysv4*MP*)
14730 if test -d /usr/nec; then
14731 lt_prog_compiler_pic=-Kconform_pic
14732 fi
14733 ;;
14734
14735 *)
14736 lt_prog_compiler_pic='-fPIC'
14737 ;;
14738 esac
14739
14740 case $cc_basename in
14741 nvcc*) # Cuda Compiler Driver 2.2
14742 lt_prog_compiler_wl='-Xlinker '
14743 if test -n "$lt_prog_compiler_pic"; then
14744 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14745 fi
14746 ;;
14747 esac
14748 else
14749 # PORTME Check for flag to pass linker flags through the system compiler.
14750 case $host_os in
14751 aix*)
14752 lt_prog_compiler_wl='-Wl,'
14753 if test ia64 = "$host_cpu"; then
14754 # AIX 5 now supports IA64 processor
14755 lt_prog_compiler_static='-Bstatic'
14756 else
14757 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14758 fi
14759 ;;
14760
14761 darwin* | rhapsody*)
14762 # PIC is the default on this platform
14763 # Common symbols not allowed in MH_DYLIB files
14764 lt_prog_compiler_pic='-fno-common'
14765 case $cc_basename in
14766 nagfor*)
14767 # NAG Fortran compiler
14768 lt_prog_compiler_wl='-Wl,-Wl,,'
14769 lt_prog_compiler_pic='-PIC'
14770 lt_prog_compiler_static='-Bstatic'
14771 ;;
14772 esac
14773 ;;
14774
14775 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14776 # This hack is so that the source file can tell whether it is being
14777 # built for inclusion in a dll (and should export symbols for example).
14778 lt_prog_compiler_pic='-DDLL_EXPORT'
14779 case $host_os in
14780 os2*)
14781 lt_prog_compiler_static='$wl-static'
14782 ;;
14783 esac
14784 ;;
14785
14786 hpux9* | hpux10* | hpux11*)
14787 lt_prog_compiler_wl='-Wl,'
14788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14789 # not for PA HP-UX.
14790 case $host_cpu in
14791 hppa*64*|ia64*)
14792 # +Z the default
14793 ;;
14794 *)
14795 lt_prog_compiler_pic='+Z'
14796 ;;
14797 esac
14798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14799 lt_prog_compiler_static='$wl-a ${wl}archive'
14800 ;;
14801
14802 irix5* | irix6* | nonstopux*)
14803 lt_prog_compiler_wl='-Wl,'
14804 # PIC (with -KPIC) is the default.
14805 lt_prog_compiler_static='-non_shared'
14806 ;;
14807
14808 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14809 case $cc_basename in
14810 # old Intel for x86_64, which still supported -KPIC.
14811 ecc*)
14812 lt_prog_compiler_wl='-Wl,'
14813 lt_prog_compiler_pic='-KPIC'
14814 lt_prog_compiler_static='-static'
14815 ;;
14816 *flang* | ftn | f18* | f95*)
14817 # Flang compiler.
14818 lt_prog_compiler_wl='-Wl,'
14819 lt_prog_compiler_pic='-fPIC'
14820 lt_prog_compiler_static='-static'
14821 ;;
14822 # icc used to be incompatible with GCC.
14823 # ICC 10 doesn't accept -KPIC any more.
14824 icc* | ifort*)
14825 lt_prog_compiler_wl='-Wl,'
14826 lt_prog_compiler_pic='-fPIC'
14827 lt_prog_compiler_static='-static'
14828 ;;
14829 # Lahey Fortran 8.1.
14830 lf95*)
14831 lt_prog_compiler_wl='-Wl,'
14832 lt_prog_compiler_pic='--shared'
14833 lt_prog_compiler_static='--static'
14834 ;;
14835 nagfor*)
14836 # NAG Fortran compiler
14837 lt_prog_compiler_wl='-Wl,-Wl,,'
14838 lt_prog_compiler_pic='-PIC'
14839 lt_prog_compiler_static='-Bstatic'
14840 ;;
14841 tcc*)
14842 # Fabrice Bellard et al's Tiny C Compiler
14843 lt_prog_compiler_wl='-Wl,'
14844 lt_prog_compiler_pic='-fPIC'
14845 lt_prog_compiler_static='-static'
14846 ;;
14847 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14848 # Portland Group compilers (*not* the Pentium gcc compiler,
14849 # which looks to be a dead project)
14850 lt_prog_compiler_wl='-Wl,'
14851 lt_prog_compiler_pic='-fpic'
14852 lt_prog_compiler_static='-Bstatic'
14853 ;;
14854 ccc*)
14855 lt_prog_compiler_wl='-Wl,'
14856 # All Alpha code is PIC.
14857 lt_prog_compiler_static='-non_shared'
14858 ;;
14859 xl* | bgxl* | bgf* | mpixl*)
14860 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14861 lt_prog_compiler_wl='-Wl,'
14862 lt_prog_compiler_pic='-qpic'
14863 lt_prog_compiler_static='-qstaticlink'
14864 ;;
14865 *)
14866 case `$CC -V 2>&1 | $SED 5q` in
14867 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14868 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14869 lt_prog_compiler_pic='-KPIC'
14870 lt_prog_compiler_static='-Bstatic'
14871 lt_prog_compiler_wl=''
14872 ;;
14873 *Sun\ F* | *Sun*Fortran*)
14874 lt_prog_compiler_pic='-KPIC'
14875 lt_prog_compiler_static='-Bstatic'
14876 lt_prog_compiler_wl='-Qoption ld '
14877 ;;
14878 *Sun\ C*)
14879 # Sun C 5.9
14880 lt_prog_compiler_pic='-KPIC'
14881 lt_prog_compiler_static='-Bstatic'
14882 lt_prog_compiler_wl='-Wl,'
14883 ;;
14884 *Intel*\ [CF]*Compiler*)
14885 lt_prog_compiler_wl='-Wl,'
14886 lt_prog_compiler_pic='-fPIC'
14887 lt_prog_compiler_static='-static'
14888 ;;
14889 *Portland\ Group*)
14890 lt_prog_compiler_wl='-Wl,'
14891 lt_prog_compiler_pic='-fpic'
14892 lt_prog_compiler_static='-Bstatic'
14893 ;;
14894 esac
14895 ;;
14896 esac
14897 ;;
14898
14899 newsos6)
14900 lt_prog_compiler_pic='-KPIC'
14901 lt_prog_compiler_static='-Bstatic'
14902 ;;
14903
14904 *-mlibc)
14905 lt_prog_compiler_wl='-Wl,'
14906 lt_prog_compiler_pic='-fPIC'
14907 lt_prog_compiler_static='-static'
14908 ;;
14909
14910 *nto* | *qnx*)
14911 # QNX uses GNU C++, but need to define -shared option too, otherwise
14912 # it will coredump.
14913 lt_prog_compiler_pic='-fPIC -shared'
14914 ;;
14915
14916 osf3* | osf4* | osf5*)
14917 lt_prog_compiler_wl='-Wl,'
14918 # All OSF/1 code is PIC.
14919 lt_prog_compiler_static='-non_shared'
14920 ;;
14921
14922 rdos*)
14923 lt_prog_compiler_static='-non_shared'
14924 ;;
14925
14926 serenity*)
14927 ;;
14928
14929 solaris*)
14930 lt_prog_compiler_pic='-KPIC'
14931 lt_prog_compiler_static='-Bstatic'
14932 case $cc_basename in
14933 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14934 lt_prog_compiler_wl='-Qoption ld ';;
14935 *)
14936 lt_prog_compiler_wl='-Wl,';;
14937 esac
14938 ;;
14939
14940 sunos4*)
14941 lt_prog_compiler_wl='-Qoption ld '
14942 lt_prog_compiler_pic='-PIC'
14943 lt_prog_compiler_static='-Bstatic'
14944 ;;
14945
14946 sysv4 | sysv4.2uw2* | sysv4.3*)
14947 lt_prog_compiler_wl='-Wl,'
14948 lt_prog_compiler_pic='-KPIC'
14949 lt_prog_compiler_static='-Bstatic'
14950 ;;
14951
14952 sysv4*MP*)
14953 if test -d /usr/nec; then
14954 lt_prog_compiler_pic='-Kconform_pic'
14955 lt_prog_compiler_static='-Bstatic'
14956 fi
14957 ;;
14958
14959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14960 lt_prog_compiler_wl='-Wl,'
14961 lt_prog_compiler_pic='-KPIC'
14962 lt_prog_compiler_static='-Bstatic'
14963 ;;
14964
14965 unicos*)
14966 lt_prog_compiler_wl='-Wl,'
14967 lt_prog_compiler_can_build_shared=no
14968 ;;
14969
14970 uts4*)
14971 lt_prog_compiler_pic='-pic'
14972 lt_prog_compiler_static='-Bstatic'
14973 ;;
14974
14975 *)
14976 lt_prog_compiler_can_build_shared=no
14977 ;;
14978 esac
14979 fi
14980
14981 case $host_os in
14982 # For platforms that do not support PIC, -DPIC is meaningless:
14983 *djgpp*)
14984 lt_prog_compiler_pic=
14985 ;;
14986 *)
14987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14988 ;;
14989 esac
14990
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14992 printf %s "checking for $compiler option to produce PIC... " >&6; }
14993 if test ${lt_cv_prog_compiler_pic+y}
14994 then :
14995 printf %s "(cached) " >&6
14996 else case e in #(
14997 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14998 esac
14999 fi
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15001 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15002 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15003
15004 #
15005 # Check to make sure the PIC flag actually works.
15006 #
15007 if test -n "$lt_prog_compiler_pic"; then
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15009 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15010 if test ${lt_cv_prog_compiler_pic_works+y}
15011 then :
15012 printf %s "(cached) " >&6
15013 else case e in #(
15014 e) lt_cv_prog_compiler_pic_works=no
15015 ac_outfile=conftest.$ac_objext
15016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15017 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15018 # Insert the option either (1) after the last *FLAGS variable, or
15019 # (2) before a word containing "conftest.", or (3) at the end.
15020 # Note that $ac_compile itself does not contain backslashes and begins
15021 # with a dollar sign (not a hyphen), so the echo should work correctly.
15022 # The option is referenced via a variable to avoid confusing sed.
15023 lt_compile=`echo "$ac_compile" | $SED \
15024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15026 -e 's:$: $lt_compiler_flag:'`
15027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15028 (eval "$lt_compile" 2>conftest.err)
15029 ac_status=$?
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 if (exit $ac_status) && test -s "$ac_outfile"; then
15033 # The compiler can only warn and ignore the option if not recognized
15034 # So say no if there are warnings other than the usual output.
15035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15038 lt_cv_prog_compiler_pic_works=yes
15039 fi
15040 fi
15041 $RM conftest*
15042 ;;
15043 esac
15044 fi
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15046 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15047
15048 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15049 case $lt_prog_compiler_pic in
15050 "" | " "*) ;;
15051 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15052 esac
15053 else
15054 lt_prog_compiler_pic=
15055 lt_prog_compiler_can_build_shared=no
15056 fi
15057
15058 fi
15059
15060
15061
15062
15063
15064 #
15065 # Check to make sure the static flag actually works.
15066 #
15067 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15069 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15070 if test ${lt_cv_prog_compiler_static_works+y}
15071 then :
15072 printf %s "(cached) " >&6
15073 else case e in #(
15074 e) lt_cv_prog_compiler_static_works=no
15075 save_LDFLAGS=$LDFLAGS
15076 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15077 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15079 # The linker can only warn and ignore the option if not recognized
15080 # So say no if there are warnings
15081 if test -s conftest.err; then
15082 # Append any errors to the config.log.
15083 cat conftest.err 1>&5
15084 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15086 if diff conftest.exp conftest.er2 >/dev/null; then
15087 lt_cv_prog_compiler_static_works=yes
15088 fi
15089 else
15090 lt_cv_prog_compiler_static_works=yes
15091 fi
15092 fi
15093 $RM -r conftest*
15094 LDFLAGS=$save_LDFLAGS
15095 ;;
15096 esac
15097 fi
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15099 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15100
15101 if test yes = "$lt_cv_prog_compiler_static_works"; then
15102 :
15103 else
15104 lt_prog_compiler_static=
15105 fi
15106
15107
15108
15109 ='-fPIC'
15110 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15111 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'
15112 archive_cmds_need_lc=no
15113 no_undefined_flag=
15114 ;;
15115
15116 *)
15117 dynamic_linker=no
15118 ;;
15119 esac
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15121 printf "%s\n" "$dynamic_linker" >&6; }
15122 test no = "$dynamic_linker" && can_build_shared=no
15123
15124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15125 if test yes = "$GCC"; then
15126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15127 fi
15128
15129 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15130 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15131 fi
15132
15133 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15134 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15135 fi
15136
15137 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15138 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15139
15140 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15141 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15142
15143 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15144 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15243 printf %s "checking how to hardcode library paths into programs... " >&6; }
15244 hardcode_action=
15245 if test -n "$hardcode_libdir_flag_spec" ||
15246 test -n "$runpath_var" ||
15247 test yes = "$hardcode_automatic"; then
15248
15249 # We can hardcode non-existent directories.
15250 if test no != "$hardcode_direct" &&
15251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15252 # have to relink, otherwise we might link with an installed library
15253 # when we should be linking with a yet-to-be-installed one
15254 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15255 test no != "$hardcode_minus_L"; then
15256 # Linking always hardcodes the temporary library directory.
15257 hardcode_action=relink
15258 else
15259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15260 hardcode_action=immediate
15261 fi
15262 else
15263 # We cannot hardcode anything, or else we can only hardcode existing
15264 # directories.
15265 hardcode_action=unsupported
15266 fi
15267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15268 printf "%s\n" "$hardcode_action" >&6; }
15269
15270 if test relink = "$hardcode_action" ||
15271 test yes = "$inherit_rpath"; then
15272 # Fast installation is not supported
15273 enable_fast_install=no
15274 elif test yes = "$shlibpath_overrides_runpath" ||
15275 test no = "$enable_shared"; then
15276 # Fast installation is not necessary
15277 enable_fast_install=needless
15278 fi
15279
15280
15281
15282
15283
15284
15285 if test yes != "$enable_dlopen"; then
15286 enable_dlopen=unknown
15287 enable_dlopen_self=unknown
15288 enable_dlopen_self_static=unknown
15289 else
15290 lt_cv_dlopen=no
15291 lt_cv_dlopen_libs=
15292
15293 case $host_os in
15294 beos*)
15295 lt_cv_dlopen=load_add_on
15296 lt_cv_dlopen_libs=
15297 lt_cv_dlopen_self=yes
15298 ;;
15299
15300 mingw* | windows* | pw32* | cegcc*)
15301 lt_cv_dlopen=LoadLibrary
15302 lt_cv_dlopen_libs=
15303 ;;
15304
15305 cygwin*)
15306 lt_cv_dlopen=dlopen
15307 lt_cv_dlopen_libs=
15308 ;;
15309
15310 darwin*)
15311 # if libdl is installed we need to link against it
15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15313 printf %s "checking for dlopen in -ldl... " >&6; }
15314 if test ${ac_cv_lib_dl_dlopen+y}
15315 then :
15316 printf %s "(cached) " >&6
15317 else case e in #(
15318 e) ac_check_lib_save_LIBS=$LIBS
15319 LIBS="-ldl $LIBS"
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply.
15326 The 'extern "C"' is for builds by C++ compilers;
15327 although this is not generally supported in C code supporting it here
15328 has little cost and some practical benefit (sr 110532). */
15329 #ifdef __cplusplus
15330 extern "C"
15331 #endif
15332 char dlopen (void);
15333 int
15334 main (void)
15335 {
15336 return dlopen ();
15337 ;
15338 return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_link "$LINENO"
15342 then :
15343 ac_cv_lib_dl_dlopen=yes
15344 else case e in #(
15345 e) ac_cv_lib_dl_dlopen=no ;;
15346 esac
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LIBS=$ac_check_lib_save_LIBS ;;
15351 esac
15352 fi
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15354 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15355 if test "x$ac_cv_lib_dl_dlopen" = xyes
15356 then :
15357 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15358 else case e in #(
15359 e)
15360 lt_cv_dlopen=dyld
15361 lt_cv_dlopen_libs=
15362 lt_cv_dlopen_self=yes
15363 ;;
15364 esac
15365 fi
15366
15367 ;;
15368
15369 tpf*)
15370 # Don't try to run any link tests for TPF. We know it's impossible
15371 # because TPF is a cross-compiler, and we know how we open DSOs.
15372 lt_cv_dlopen=dlopen
15373 lt_cv_dlopen_libs=
15374 lt_cv_dlopen_self=no
15375 ;;
15376
15377 *)
15378 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15379 if test "x$ac_cv_func_shl_load" = xyes
15380 then :
15381 lt_cv_dlopen=shl_load
15382 else case e in #(
15383 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15384 printf %s "checking for shl_load in -ldld... " >&6; }
15385 if test ${ac_cv_lib_dld_shl_load+y}
15386 then :
15387 printf %s "(cached) " >&6
15388 else case e in #(
15389 e) ac_check_lib_save_LIBS=$LIBS
15390 LIBS="-ldld $LIBS"
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply.
15397 The 'extern "C"' is for builds by C++ compilers;
15398 although this is not generally supported in C code supporting it here
15399 has little cost and some practical benefit (sr 110532). */
15400 #ifdef __cplusplus
15401 extern "C"
15402 #endif
15403 char shl_load (void);
15404 int
15405 main (void)
15406 {
15407 return shl_load ();
15408 ;
15409 return 0;
15410 }
15411 _ACEOF
15412 if ac_fn_c_try_link "$LINENO"
15413 then :
15414 ac_cv_lib_dld_shl_load=yes
15415 else case e in #(
15416 e) ac_cv_lib_dld_shl_load=no ;;
15417 esac
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS ;;
15422 esac
15423 fi
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15425 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15426 if test "x$ac_cv_lib_dld_shl_load" = xyes
15427 then :
15428 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15429 else case e in #(
15430 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15431 if test "x$ac_cv_func_dlopen" = xyes
15432 then :
15433 lt_cv_dlopen=dlopen
15434 else case e in #(
15435 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15436 printf %s "checking for dlopen in -ldl... " >&6; }
15437 if test ${ac_cv_lib_dl_dlopen+y}
15438 then :
15439 printf %s "(cached) " >&6
15440 else case e in #(
15441 e) ac_check_lib_save_LIBS=$LIBS
15442 LIBS="-ldl $LIBS"
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply.
15449 The 'extern "C"' is for builds by C++ compilers;
15450 although this is not generally supported in C code supporting it here
15451 has little cost and some practical benefit (sr 110532). */
15452 #ifdef __cplusplus
15453 extern "C"
15454 #endif
15455 char dlopen (void);
15456 int
15457 main (void)
15458 {
15459 return dlopen ();
15460 ;
15461 return 0;
15462 }
15463 _ACEOF
15464 if ac_fn_c_try_link "$LINENO"
15465 then :
15466 ac_cv_lib_dl_dlopen=yes
15467 else case e in #(
15468 e) ac_cv_lib_dl_dlopen=no ;;
15469 esac
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15472 conftest$ac_exeext conftest.$ac_ext
15473 LIBS=$ac_check_lib_save_LIBS ;;
15474 esac
15475 fi
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15477 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15478 if test "x$ac_cv_lib_dl_dlopen" = xyes
15479 then :
15480 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15481 else case e in #(
15482 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15483 printf %s "checking for dlopen in -lsvld... " >&6; }
15484 if test ${ac_cv_lib_svld_dlopen+y}
15485 then :
15486 printf %s "(cached) " >&6
15487 else case e in #(
15488 e) ac_check_lib_save_LIBS=$LIBS
15489 LIBS="-lsvld $LIBS"
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492
15493 /* Override any GCC internal prototype to avoid an error.
15494 Use char because int might match the return type of a GCC
15495 builtin and then its argument prototype would still apply.
15496 The 'extern "C"' is for builds by C++ compilers;
15497 although this is not generally supported in C code supporting it here
15498 has little cost and some practical benefit (sr 110532). */
15499 #ifdef __cplusplus
15500 extern "C"
15501 #endif
15502 char dlopen (void);
15503 int
15504 main (void)
15505 {
15506 return dlopen ();
15507 ;
15508 return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_c_try_link "$LINENO"
15512 then :
15513 ac_cv_lib_svld_dlopen=yes
15514 else case e in #(
15515 e) ac_cv_lib_svld_dlopen=no ;;
15516 esac
15517 fi
15518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15519 conftest$ac_exeext conftest.$ac_ext
15520 LIBS=$ac_check_lib_save_LIBS ;;
15521 esac
15522 fi
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15524 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15525 if test "x$ac_cv_lib_svld_dlopen" = xyes
15526 then :
15527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15528 else case e in #(
15529 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15530 printf %s "checking for dld_link in -ldld... " >&6; }
15531 if test ${ac_cv_lib_dld_dld_link+y}
15532 then :
15533 printf %s "(cached) " >&6
15534 else case e in #(
15535 e) ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-ldld $LIBS"
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply.
15543 The 'extern "C"' is for builds by C++ compilers;
15544 although this is not generally supported in C code supporting it here
15545 has little cost and some practical benefit (sr 110532). */
15546 #ifdef __cplusplus
15547 extern "C"
15548 #endif
15549 char dld_link (void);
15550 int
15551 main (void)
15552 {
15553 return dld_link ();
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"
15559 then :
15560 ac_cv_lib_dld_dld_link=yes
15561 else case e in #(
15562 e) ac_cv_lib_dld_dld_link=no ;;
15563 esac
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15566 conftest$ac_exeext conftest.$ac_ext
15567 LIBS=$ac_check_lib_save_LIBS ;;
15568 esac
15569 fi
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15571 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15572 if test "x$ac_cv_lib_dld_dld_link" = xyes
15573 then :
15574 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15575 fi
15576
15577 ;;
15578 esac
15579 fi
15580
15581 ;;
15582 esac
15583 fi
15584
15585 ;;
15586 esac
15587 fi
15588
15589 ;;
15590 esac
15591 fi
15592
15593 ;;
15594 esac
15595 fi
15596
15597 ;;
15598 esac
15599
15600 if test no = "$lt_cv_dlopen"; then
15601 enable_dlopen=no
15602 else
15603 enable_dlopen=yes
15604 fi
15605
15606 case $lt_cv_dlopen in
15607 dlopen)
15608 save_CPPFLAGS=$CPPFLAGS
15609 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15610
15611 save_LDFLAGS=$LDFLAGS
15612 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15613
15614 save_LIBS=$LIBS
15615 LIBS="$lt_cv_dlopen_libs $LIBS"
15616
15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15618 printf %s "checking whether a program can dlopen itself... " >&6; }
15619 if test ${lt_cv_dlopen_self+y}
15620 then :
15621 printf %s "(cached) " >&6
15622 else case e in #(
15623 e) if test yes = "$cross_compiling"; then :
15624 lt_cv_dlopen_self=cross
15625 else
15626 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15627 lt_status=$lt_dlunknown
15628 cat > conftest.$ac_ext <<_LT_EOF
15629 #line $LINENO "configure"
15630 #include "confdefs.h"
15631
15632 #if HAVE_DLFCN_H
15633 #include <dlfcn.h>
15634 #endif
15635
15636 #include <stdio.h>
15637
15638 #ifdef RTLD_GLOBAL
15639 # define LT_DLGLOBAL RTLD_GLOBAL
15640 #else
15641 # ifdef DL_GLOBAL
15642 # define LT_DLGLOBAL DL_GLOBAL
15643 # else
15644 # define LT_DLGLOBAL 0
15645 # endif
15646 #endif
15647
15648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15649 find out it does not work in some platform. */
15650 #ifndef LT_DLLAZY_OR_NOW
15651 # ifdef RTLD_LAZY
15652 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15653 # else
15654 # ifdef DL_LAZY
15655 # define LT_DLLAZY_OR_NOW DL_LAZY
15656 # else
15657 # ifdef RTLD_NOW
15658 # define LT_DLLAZY_OR_NOW RTLD_NOW
15659 # else
15660 # ifdef DL_NOW
15661 # define LT_DLLAZY_OR_NOW DL_NOW
15662 # else
15663 # define LT_DLLAZY_OR_NOW 0
15664 # endif
15665 # endif
15666 # endif
15667 # endif
15668 #endif
15669
15670 /* When -fvisibility=hidden is used, assume the code has been annotated
15671 correspondingly for the symbols needed. */
15672 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15673 int fnord (void) __attribute__((visibility("default")));
15674 #endif
15675
15676 int fnord (void) { return 42; }
15677 int main (void)
15678 {
15679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15680 int status = $lt_dlunknown;
15681
15682 if (self)
15683 {
15684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15685 else
15686 {
15687 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15688 else puts (dlerror ());
15689 }
15690 /* dlclose (self); */
15691 }
15692 else
15693 puts (dlerror ());
15694
15695 return status;
15696 }
15697 _LT_EOF
15698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15699 (eval $ac_link) 2>&5
15700 ac_status=$?
15701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15702 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15703 (./conftest; exit; ) >&5 2>/dev/null
15704 lt_status=$?
15705 case x$lt_status in
15706 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15707 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15708 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15709 esac
15710 else :
15711 # compilation failed
15712 lt_cv_dlopen_self=no
15713 fi
15714 fi
15715 rm -fr conftest*
15716
15717 ;;
15718 esac
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15721 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15722
15723 if test yes = "$lt_cv_dlopen_self"; then
15724 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15726 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15727 if test ${lt_cv_dlopen_self_static+y}
15728 then :
15729 printf %s "(cached) " >&6
15730 else case e in #(
15731 e) if test yes = "$cross_compiling"; then :
15732 lt_cv_dlopen_self_static=cross
15733 else
15734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15735 lt_status=$lt_dlunknown
15736 cat > conftest.$ac_ext <<_LT_EOF
15737 #line $LINENO "configure"
15738 #include "confdefs.h"
15739
15740 #if HAVE_DLFCN_H
15741 #include <dlfcn.h>
15742 #endif
15743
15744 #include <stdio.h>
15745
15746 #ifdef RTLD_GLOBAL
15747 # define LT_DLGLOBAL RTLD_GLOBAL
15748 #else
15749 # ifdef DL_GLOBAL
15750 # define LT_DLGLOBAL DL_GLOBAL
15751 # else
15752 # define LT_DLGLOBAL 0
15753 # endif
15754 #endif
15755
15756 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15757 find out it does not work in some platform. */
15758 #ifndef LT_DLLAZY_OR_NOW
15759 # ifdef RTLD_LAZY
15760 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15761 # else
15762 # ifdef DL_LAZY
15763 # define LT_DLLAZY_OR_NOW DL_LAZY
15764 # else
15765 # ifdef RTLD_NOW
15766 # define LT_DLLAZY_OR_NOW RTLD_NOW
15767 # else
15768 # ifdef DL_NOW
15769 # define LT_DLLAZY_OR_NOW DL_NOW
15770 # else
15771 # define LT_DLLAZY_OR_NOW 0
15772 # endif
15773 # endif
15774 # endif
15775 # endif
15776 #endif
15777
15778 /* When -fvisibility=hidden is used, assume the code has been annotated
15779 correspondingly for the symbols needed. */
15780 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15781 int fnord (void) __attribute__((visibility("default")));
15782 #endif
15783
15784 int fnord (void) { return 42; }
15785 int main (void)
15786 {
15787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15788 int status = $lt_dlunknown;
15789
15790 if (self)
15791 {
15792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15793 else
15794 {
15795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15796 else puts (dlerror ());
15797 }
15798 /* dlclose (self); */
15799 }
15800 else
15801 puts (dlerror ());
15802
15803 return status;
15804 }
15805 _LT_EOF
15806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15807 (eval $ac_link) 2>&5
15808 ac_status=$?
15809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15810 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15811 (./conftest; exit; ) >&5 2>/dev/null
15812 lt_status=$?
15813 case x$lt_status in
15814 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15815 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15816 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15817 esac
15818 else :
15819 # compilation failed
15820 lt_cv_dlopen_self_static=no
15821 fi
15822 fi
15823 rm -fr conftest*
15824
15825 ;;
15826 esac
15827 fi
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15829 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15830 fi
15831
15832 CPPFLAGS=$save_CPPFLAGS
15833 LDFLAGS=$save_LDFLAGS
15834 LIBS=$save_LIBS
15835 ;;
15836 esac
15837
15838 case $lt_cv_dlopen_self in
15839 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15840 *) enable_dlopen_self=unknown ;;
15841 esac
15842
15843 case $lt_cv_dlopen_self_static in
15844 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15845 *) enable_dlopen_self_static=unknown ;;
15846 esac
15847 fi
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865 striplib=
15866 old_striplib=
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15868 printf %s "checking whether stripping libraries is possible... " >&6; }
15869 if test -z "$STRIP"; then
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871 printf "%s\n" "no" >&6; }
15872 else
15873 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15874 old_striplib="$STRIP --strip-debug"
15875 striplib="$STRIP --strip-unneeded"
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15877 printf "%s\n" "yes" >&6; }
15878 else
15879 case $host_os in
15880 darwin*)
15881 # FIXME - insert some real tests, host_os isn't really good enough
15882 striplib="$STRIP -x"
15883 old_striplib="$STRIP -S"
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15885 printf "%s\n" "yes" >&6; }
15886 ;;
15887 freebsd*)
15888 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15889 old_striplib="$STRIP --strip-debug"
15890 striplib="$STRIP --strip-unneeded"
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15892 printf "%s\n" "yes" >&6; }
15893 else
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895 printf "%s\n" "no" >&6; }
15896 fi
15897 ;;
15898 *)
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 printf "%s\n" "no" >&6; }
15901 ;;
15902 esac
15903 fi
15904 fi
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917 # Report what library types will actually be built
15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15919 printf %s "checking if libtool supports shared libraries... " >&6; }
15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15921 printf "%s\n" "$can_build_shared" >&6; }
15922
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15924 printf %s "checking whether to build shared libraries... " >&6; }
15925 test no = "$can_build_shared" && enable_shared=no
15926
15927 # On AIX, shared libraries and static libraries use the same namespace, and
15928 # are all built from PIC.
15929 case $host_os in
15930 aix3*)
15931 test yes = "$enable_shared" && enable_static=no
15932 if test -n "$RANLIB"; then
15933 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15934 postinstall_cmds='$RANLIB $lib'
15935 fi
15936 ;;
15937
15938 aix[4-9]*)
15939 if test ia64 != "$host_cpu"; then
15940 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15941 yes,aix,yes) ;; # shared object as lib.so file only
15942 yes,svr4,*) ;; # shared object as lib.so archive member only
15943 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15944 esac
15945 fi
15946 ;;
15947 esac
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15949 printf "%s\n" "$enable_shared" >&6; }
15950
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15952 printf %s "checking whether to build static libraries... " >&6; }
15953 # Make sure either enable_shared or enable_static is yes.
15954 test yes = "$enable_shared" || enable_static=yes
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15956 printf "%s\n" "$enable_static" >&6; }
15957
15958
15959
15960
15961 fi
15962 ac_ext=c
15963 ac_cpp='$CPP $CPPFLAGS'
15964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15967
15968 CC=$lt_save_CC
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984 ac_config_commands="$ac_config_commands libtool"
15985
15986
15987
15988
15989 # Only expand once:
15990
15991
15992
15993 if test "x$enable_static" = "xyes"
15994 then :
15995 osuffix=".o" ; olist=""
15996 else case e in #(
15997 e) osuffix=".lo" ; olist="L" ;;
15998 esac
15999 fi
16000
16001
16002
16003 ac_config_files="$ac_config_files makefile:makefile.in nauty.h:nauty-h.in naututil.h:naututil-h.in gtools.h:gtools-h.in nauty.pc:nauty-pc.in runalltests:runalltests.in"
16004
16005 cat >confcache <<\_ACEOF
16006 # This file is a shell script that caches the results of configure
16007 # tests run on this system so they can be shared between configure
16008 # scripts and configure runs, see configure's option --config-cache.
16009 # It is not useful on other systems. If it contains results you don't
16010 # want to keep, you may remove or edit it.
16011 #
16012 # config.status only pays attention to the cache file if you give it
16013 # the --recheck option to rerun configure.
16014 #
16015 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16016 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16017 # following values.
16018
16019 _ACEOF
16020
16021 # The following way of writing the cache mishandles newlines in values,
16022 # but we know of no workaround that is simple, portable, and efficient.
16023 # So, we kill variables containing newlines.
16024 # Ultrix sh set writes to stderr and can't be redirected directly,
16025 # and sets the high bit in the cache file unless we assign to the vars.
16026 (
16027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16028 eval ac_val=\$$ac_var
16029 case $ac_val in #(
16030 *${as_nl}*)
16031 case $ac_var in #(
16032 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16033 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16034 esac
16035 case $ac_var in #(
16036 _ | IFS | as_nl) ;; #(
16037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16038 *) { eval $ac_var=; unset $ac_var;} ;;
16039 esac ;;
16040 esac
16041 done
16042
16043 (set) 2>&1 |
16044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16045 *${as_nl}ac_space=\ *)
16046 # 'set' does not quote correctly, so add quotes: double-quote
16047 # substitution turns \\\\ into \\, and sed turns \\ into \.
16048 sed -n \
16049 "s/'/'\\\\''/g;
16050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16051 ;; #(
16052 *)
16053 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16055 ;;
16056 esac |
16057 sort
16058 ) |
16059 sed '
16060 /^ac_cv_env_/b end
16061 t clear
16062 :clear
16063 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16064 t end
16065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16066 :end' >>confcache
16067 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16068 if test -w "$cache_file"; then
16069 if test "x$cache_file" != "x/dev/null"; then
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16071 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16072 if test ! -f "$cache_file" || test -h "$cache_file"; then
16073 cat confcache >"$cache_file"
16074 else
16075 case $cache_file in #(
16076 */* | ?:*)
16077 mv -f confcache "$cache_file"$$ &&
16078 mv -f "$cache_file"$$ "$cache_file" ;; #(
16079 *)
16080 mv -f confcache "$cache_file" ;;
16081 esac
16082 fi
16083 fi
16084 else
16085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16086 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16087 fi
16088 fi
16089 rm -f confcache
16090
16091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16092 # Let make expand exec_prefix.
16093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16094
16095 # Transform confdefs.h into DEFS.
16096 # Protect against shell expansion while executing Makefile rules.
16097 # Protect against Makefile macro expansion.
16098 #
16099 # If the first sed substitution is executed (which looks for macros that
16100 # take arguments), then branch to the quote section. Otherwise,
16101 # look for a macro that doesn't take arguments.
16102 ac_script='
16103 :mline
16104 /\\$/{
16105 N
16106 s,\\\n,,
16107 b mline
16108 }
16109 t clear
16110 :clear
16111 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16112 t quote
16113 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16114 t quote
16115 b any
16116 :quote
16117 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16118 s/\$/$$/g
16119 H
16120 :any
16121 ${
16122 g
16123 s/^\n//
16124 s/\n/ /g
16125 p
16126 }
16127 '
16128 DEFS=`sed -n "$ac_script" confdefs.h`
16129
16130
16131 ac_libobjs=
16132 ac_ltlibobjs=
16133 U=
16134 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16135 # 1. Remove the extension, and $U if already installed.
16136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16137 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16139 # will be set to the directory where LIBOBJS objects are built.
16140 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16141 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16142 done
16143 LIBOBJS=$ac_libobjs
16144
16145 LTLIBOBJS=$ac_ltlibobjs
16146
16147
16148 # Check whether --enable-year2038 was given.
16149 if test ${enable_year2038+y}
16150 then :
16151 enableval=$enable_year2038;
16152 fi
16153
16154
16155 : "${CONFIG_STATUS=./config.status}"
16156 ac_write_fail=0
16157 ac_clean_files_save=$ac_clean_files
16158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16160 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16161 as_write_fail=0
16162 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16163 #! $SHELL
16164 # Generated by $as_me.
16165 # Run this file to recreate the current configuration.
16166 # Compiler output produced by configure, useful for debugging
16167 # configure, is in config.log if it exists.
16168
16169 debug=false
16170 ac_cs_recheck=false
16171 ac_cs_silent=false
16172
16173 SHELL=\${CONFIG_SHELL-$SHELL}
16174 export SHELL
16175 _ASEOF
16176 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16177 ## -------------------- ##
16178 ## M4sh Initialization. ##
16179 ## -------------------- ##
16180
16181 # Be more Bourne compatible
16182 DUALCASE=1; export DUALCASE # for MKS sh
16183 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16184 then :
16185 emulate sh
16186 NULLCMD=:
16187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16188 # is contrary to our usage. Disable this feature.
16189 alias -g '${1+"$@"}'='"$@"'
16190 setopt NO_GLOB_SUBST
16191 else case e in #(
16192 e) case `(set -o) 2>/dev/null` in #(
16193 *posix*) :
16194 set -o posix ;; #(
16195 *) :
16196 ;;
16197 esac ;;
16198 esac
16199 fi
16200
16201
16202
16203 # Reset variables that may have inherited troublesome values from
16204 # the environment.
16205
16206 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16207 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16208 # side effect of setting IFS to empty, thus disabling word splitting.)
16209 # Quoting is to prevent editors from complaining about space-tab.
16210 as_nl='
16211 '
16212 export as_nl
16213 IFS=" "" $as_nl"
16214
16215 PS1='$ '
16216 PS2='> '
16217 PS4='+ '
16218
16219 # Ensure predictable behavior from utilities with locale-dependent output.
16220 LC_ALL=C
16221 export LC_ALL
16222 LANGUAGE=C
16223 export LANGUAGE
16224
16225 # We cannot yet rely on "unset" to work, but we need these variables
16226 # to be unset--not just set to an empty or harmless value--now, to
16227 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16228 # also avoids known problems related to "unset" and subshell syntax
16229 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16230 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16231 do eval test \${$as_var+y} \
16232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16233 done
16234
16235 # Ensure that fds 0, 1, and 2 are open.
16236 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16237 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16238 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16239
16240 # The user is always right.
16241 if ${PATH_SEPARATOR+false} :; then
16242 PATH_SEPARATOR=:
16243 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16244 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16245 PATH_SEPARATOR=';'
16246 }
16247 fi
16248
16249
16250 # Find who we are. Look in the path if we contain no directory separator.
16251 as_myself=
16252 case $0 in #((
16253 *[\\/]* ) as_myself=$0 ;;
16254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16255 for as_dir in $PATH
16256 do
16257 IFS=$as_save_IFS
16258 case $as_dir in #(((
16259 '') as_dir=./ ;;
16260 */) ;;
16261 *) as_dir=$as_dir/ ;;
16262 esac
16263 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16264 done
16265 IFS=$as_save_IFS
16266
16267 ;;
16268 esac
16269 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16270 # in which case we are not to be found in the path.
16271 if test "x$as_myself" = x; then
16272 as_myself=$0
16273 fi
16274 if test ! -f "$as_myself"; then
16275 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16276 exit 1
16277 fi
16278
16279
16280
16281 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16282 # ----------------------------------------
16283 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16284 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16285 # script with STATUS, using 1 if that was 0.
16286 as_fn_error ()
16287 {
16288 as_status=$1; test $as_status -eq 0 && as_status=1
16289 if test "$4"; then
16290 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16292 fi
16293 printf "%s\n" "$as_me: error: $2" >&2
16294 as_fn_exit $as_status
16295 } # as_fn_error
16296
16297
16298 # as_fn_set_status STATUS
16299 # -----------------------
16300 # Set $? to STATUS, without forking.
16301 as_fn_set_status ()
16302 {
16303 return $1
16304 } # as_fn_set_status
16305
16306 # as_fn_exit STATUS
16307 # -----------------
16308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16309 as_fn_exit ()
16310 {
16311 set +e
16312 as_fn_set_status $1
16313 exit $1
16314 } # as_fn_exit
16315
16316 # as_fn_unset VAR
16317 # ---------------
16318 # Portably unset VAR.
16319 as_fn_unset ()
16320 {
16321 { eval $1=; unset $1;}
16322 }
16323 as_unset=as_fn_unset
16324
16325 # as_fn_append VAR VALUE
16326 # ----------------------
16327 # Append the text in VALUE to the end of the definition contained in VAR. Take
16328 # advantage of any shell optimizations that allow amortized linear growth over
16329 # repeated appends, instead of the typical quadratic growth present in naive
16330 # implementations.
16331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16332 then :
16333 eval 'as_fn_append ()
16334 {
16335 eval $1+=\$2
16336 }'
16337 else case e in #(
16338 e) as_fn_append ()
16339 {
16340 eval $1=\$$1\$2
16341 } ;;
16342 esac
16343 fi # as_fn_append
16344
16345 # as_fn_arith ARG...
16346 # ------------------
16347 # Perform arithmetic evaluation on the ARGs, and store the result in the
16348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16349 # must be portable across $(()) and expr.
16350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16351 then :
16352 eval 'as_fn_arith ()
16353 {
16354 as_val=$(( $* ))
16355 }'
16356 else case e in #(
16357 e) as_fn_arith ()
16358 {
16359 as_val=`expr "$@" || test $? -eq 1`
16360 } ;;
16361 esac
16362 fi # as_fn_arith
16363
16364
16365 if expr a : '\(a\)' >/dev/null 2>&1 &&
16366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16367 as_expr=expr
16368 else
16369 as_expr=false
16370 fi
16371
16372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16373 as_basename=basename
16374 else
16375 as_basename=false
16376 fi
16377
16378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16379 as_dirname=dirname
16380 else
16381 as_dirname=false
16382 fi
16383
16384 as_me=`$as_basename -- "$0" ||
16385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16386 X"$0" : 'X\(//\)$' \| \
16387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16388 printf "%s\n" X/"$0" |
16389 sed '/^.*\/\([^/][^/]*\)\/*$/{
16390 s//\1/
16391 q
16392 }
16393 /^X\/\(\/\/\)$/{
16394 s//\1/
16395 q
16396 }
16397 /^X\/\(\/\).*/{
16398 s//\1/
16399 q
16400 }
16401 s/.*/./; q'`
16402
16403 # Avoid depending upon Character Ranges.
16404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16407 as_cr_digits='0123456789'
16408 as_cr_alnum=$as_cr_Letters$as_cr_digits
16409
16410
16411 # Determine whether it's possible to make 'echo' print without a newline.
16412 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16413 # for compatibility with existing Makefiles.
16414 ECHO_C= ECHO_N= ECHO_T=
16415 case `echo -n x` in #(((((
16416 -n*)
16417 case `echo 'xy\c'` in
16418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16419 xy) ECHO_C='\c';;
16420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16421 ECHO_T=' ';;
16422 esac;;
16423 *)
16424 ECHO_N='-n';;
16425 esac
16426
16427 # For backward compatibility with old third-party macros, we provide
16428 # the shell variables $as_echo and $as_echo_n. New code should use
16429 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16430 as_echo='printf %s\n'
16431 as_echo_n='printf %s'
16432
16433 rm -f conf$$ conf$$.exe conf$$.file
16434 if test -d conf$$.dir; then
16435 rm -f conf$$.dir/conf$$.file
16436 else
16437 rm -f conf$$.dir
16438 mkdir conf$$.dir 2>/dev/null
16439 fi
16440 if (echo >conf$$.file) 2>/dev/null; then
16441 if ln -s conf$$.file conf$$ 2>/dev/null; then
16442 as_ln_s='ln -s'
16443 # ... but there are two gotchas:
16444 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16445 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16446 # In both cases, we have to default to 'cp -pR'.
16447 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16448 as_ln_s='cp -pR'
16449 elif ln conf$$.file conf$$ 2>/dev/null; then
16450 as_ln_s=ln
16451 else
16452 as_ln_s='cp -pR'
16453 fi
16454 else
16455 as_ln_s='cp -pR'
16456 fi
16457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16458 rmdir conf$$.dir 2>/dev/null
16459
16460
16461 # as_fn_mkdir_p
16462 # -------------
16463 # Create "$as_dir" as a directory, including parents if necessary.
16464 as_fn_mkdir_p ()
16465 {
16466
16467 case $as_dir in #(
16468 -*) as_dir=./$as_dir;;
16469 esac
16470 test -d "$as_dir" || eval $as_mkdir_p || {
16471 as_dirs=
16472 while :; do
16473 case $as_dir in #(
16474 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16475 *) as_qdir=$as_dir;;
16476 esac
16477 as_dirs="'$as_qdir' $as_dirs"
16478 as_dir=`$as_dirname -- "$as_dir" ||
16479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480 X"$as_dir" : 'X\(//\)[^/]' \| \
16481 X"$as_dir" : 'X\(//\)$' \| \
16482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16483 printf "%s\n" X"$as_dir" |
16484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485 s//\1/
16486 q
16487 }
16488 /^X\(\/\/\)[^/].*/{
16489 s//\1/
16490 q
16491 }
16492 /^X\(\/\/\)$/{
16493 s//\1/
16494 q
16495 }
16496 /^X\(\/\).*/{
16497 s//\1/
16498 q
16499 }
16500 s/.*/./; q'`
16501 test -d "$as_dir" && break
16502 done
16503 test -z "$as_dirs" || eval "mkdir $as_dirs"
16504 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16505
16506
16507 } # as_fn_mkdir_p
16508 if mkdir -p . 2>/dev/null; then
16509 as_mkdir_p='mkdir -p "$as_dir"'
16510 else
16511 test -d ./-p && rmdir ./-p
16512 as_mkdir_p=false
16513 fi
16514
16515
16516 # as_fn_executable_p FILE
16517 # -----------------------
16518 # Test if FILE is an executable regular file.
16519 as_fn_executable_p ()
16520 {
16521 test -f "$1" && test -x "$1"
16522 } # as_fn_executable_p
16523 as_test_x='test -x'
16524 as_executable_p=as_fn_executable_p
16525
16526 # Sed expression to map a string onto a valid CPP name.
16527 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16528 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16529
16530 # Sed expression to map a string onto a valid variable name.
16531 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16532 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16533
16534
16535 exec 6>&1
16536 ## ----------------------------------- ##
16537 ## Main body of $CONFIG_STATUS script. ##
16538 ## ----------------------------------- ##
16539 _ASEOF
16540 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16541
16542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16543 # Save the log message, to keep $0 and so on meaningful, and to
16544 # report actual input values of CONFIG_FILES etc. instead of their
16545 # values after options handling.
16546 ac_log="
16547 This file was extended by nauty $as_me 2.9.3, which was
16548 generated by GNU Autoconf 2.72. Invocation command line was
16549
16550 CONFIG_FILES = $CONFIG_FILES
16551 CONFIG_HEADERS = $CONFIG_HEADERS
16552 CONFIG_LINKS = $CONFIG_LINKS
16553 CONFIG_COMMANDS = $CONFIG_COMMANDS
16554 $ $0 $@
16555
16556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16557 "
16558
16559 _ACEOF
16560
16561 case $ac_config_files in *"
16562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16563 esac
16564
16565
16566
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16568 # Files that config.status was made for.
16569 config_files="$ac_config_files"
16570 config_commands="$ac_config_commands"
16571
16572 _ACEOF
16573
16574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16575 ac_cs_usage="\
16576 '$as_me' instantiates files and other configuration actions
16577 from templates according to the current configuration. Unless the files
16578 and actions are specified as TAGs, all are instantiated by default.
16579
16580 Usage: $0 [OPTION]... [TAG]...
16581
16582 -h, --help print this help, then exit
16583 -V, --version print version number and configuration settings, then exit
16584 --config print configuration, then exit
16585 -q, --quiet, --silent
16586 do not print progress messages
16587 -d, --debug don't remove temporary files
16588 --recheck update $as_me by reconfiguring in the same conditions
16589 --file=FILE[:TEMPLATE]
16590 instantiate the configuration file FILE
16591
16592 Configuration files:
16593 $config_files
16594
16595 Configuration commands:
16596 $config_commands
16597
16598 Report bugs to <[email protected]>."
16599
16600 _ACEOF
16601 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16602 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16604 ac_cs_config='$ac_cs_config_escaped'
16605 ac_cs_version="\\
16606 nauty config.status 2.9.3
16607 configured by $0, generated by GNU Autoconf 2.72,
16608 with options \\"\$ac_cs_config\\"
16609
16610 Copyright (C) 2023 Free Software Foundation, Inc.
16611 This config.status script is free software; the Free Software Foundation
16612 gives unlimited permission to copy, distribute and modify it."
16613
16614 ac_pwd='$ac_pwd'
16615 srcdir='$srcdir'
16616 INSTALL='$INSTALL'
16617 MKDIR_P='$MKDIR_P'
16618 AWK='$AWK'
16619 test -n "\$AWK" || AWK=awk
16620 _ACEOF
16621
16622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16623 # The default lists apply if the user does not specify any file.
16624 ac_need_defaults=:
16625 while test $# != 0
16626 do
16627 case $1 in
16628 --*=?*)
16629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16631 ac_shift=:
16632 ;;
16633 --*=)
16634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16635 ac_optarg=
16636 ac_shift=:
16637 ;;
16638 *)
16639 ac_option=$1
16640 ac_optarg=$2
16641 ac_shift=shift
16642 ;;
16643 esac
16644
16645 case $ac_option in
16646 # Handling of the options.
16647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16648 ac_cs_recheck=: ;;
16649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16650 printf "%s\n" "$ac_cs_version"; exit ;;
16651 --config | --confi | --conf | --con | --co | --c )
16652 printf "%s\n" "$ac_cs_config"; exit ;;
16653 --debug | --debu | --deb | --de | --d | -d )
16654 debug=: ;;
16655 --file | --fil | --fi | --f )
16656 $ac_shift
16657 case $ac_optarg in
16658 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16659 '') as_fn_error $? "missing file argument" ;;
16660 esac
16661 as_fn_append CONFIG_FILES " '$ac_optarg'"
16662 ac_need_defaults=false;;
16663 --he | --h | --help | --hel | -h )
16664 printf "%s\n" "$ac_cs_usage"; exit ;;
16665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16666 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16667 ac_cs_silent=: ;;
16668
16669 # This is an error.
16670 -*) as_fn_error $? "unrecognized option: '$1'
16671 Try '$0 --help' for more information." ;;
16672
16673 *) as_fn_append ac_config_targets " $1"
16674 ac_need_defaults=false ;;
16675
16676 esac
16677 shift
16678 done
16679
16680 ac_configure_extra_args=
16681
16682 if $ac_cs_silent; then
16683 exec 6>/dev/null
16684 ac_configure_extra_args="$ac_configure_extra_args --silent"
16685 fi
16686
16687 _ACEOF
16688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689 if \$ac_cs_recheck; then
16690 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16691 shift
16692 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16693 CONFIG_SHELL='$SHELL'
16694 export CONFIG_SHELL
16695 exec "\$@"
16696 fi
16697
16698 _ACEOF
16699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700 exec 5>>config.log
16701 {
16702 echo
16703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16704 ## Running $as_me. ##
16705 _ASBOX
16706 printf "%s\n" "$ac_log"
16707 } >&5
16708
16709 _ACEOF
16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711 #
16712 # INIT-COMMANDS
16713 #
16714
16715
16716 # The HP-UX ksh and POSIX shell print the target directory to stdout
16717 # if CDPATH is set.
16718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16719
16720 sed_quote_subst='$sed_quote_subst'
16721 double_quote_subst='$double_quote_subst'
16722 delay_variable_subst='$delay_variable_subst'
16723 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16724 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16725 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16726 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16727 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16728 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16729 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16730 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16731 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16732 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16733 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16734 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16735 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16736 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16737 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16738 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16739 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16740 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16741 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16742 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16743 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16744 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16745 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16746 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16747 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16748 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16749 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16750 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16751 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16752 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16753 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16754 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16755 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16756 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16757 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16758 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16759 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16760 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16761 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16762 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16763 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16764 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16765 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16766 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16767 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16768 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16769 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16770 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16771 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16772 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16773 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16774 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16775 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16776 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16777 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16778 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16779 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16780 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16781 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16782 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16783 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"`'
16784 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16785 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16786 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16787 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16788 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16789 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16790 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16791 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16792 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16793 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16794 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16795 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16796 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16797 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16798 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16799 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16800 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16801 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16802 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16803 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16804 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16805 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16806 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16807 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16808 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16809 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16810 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16811 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16812 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16813 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16814 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16815 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16816 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16817 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16818 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16819 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16820 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16821 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16822 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16823 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16824 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16825 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16826 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16827 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16828 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16829 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16830 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16831 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16832 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16833 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16834 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16835 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16836 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16837 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16838 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16839 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16840 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16841 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16842 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16843 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16844 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16845 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16846 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16847 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16848 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16849 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16850 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16851 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16852 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16853 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16854 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16855 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16856 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16857 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16858 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16859 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16860
16861 LTCC='$LTCC'
16862 LTCFLAGS='$LTCFLAGS'
16863 compiler='$compiler_DEFAULT'
16864
16865 # A function that is used when there is no print builtin or printf.
16866 func_fallback_echo ()
16867 {
16868 eval 'cat <<_LTECHO_EOF
16869 \$1
16870 _LTECHO_EOF'
16871 }
16872
16873 # Quote evaled strings.
16874 for var in SHELL \
16875 ECHO \
16876 PATH_SEPARATOR \
16877 SED \
16878 GREP \
16879 EGREP \
16880 FGREP \
16881 LD \
16882 NM \
16883 LN_S \
16884 lt_SP2NL \
16885 lt_NL2SP \
16886 reload_flag \
16887 FILECMD \
16888 OBJDUMP \
16889 deplibs_check_method \
16890 file_magic_cmd \
16891 file_magic_glob \
16892 want_nocaseglob \
16893 DLLTOOL \
16894 sharedlib_from_linklib_cmd \
16895 AR \
16896 archiver_list_spec \
16897 STRIP \
16898 RANLIB \
16899 CC \
16900 CFLAGS \
16901 compiler \
16902 lt_cv_sys_global_symbol_pipe \
16903 lt_cv_sys_global_symbol_to_cdecl \
16904 lt_cv_sys_global_symbol_to_import \
16905 lt_cv_sys_global_symbol_to_c_name_address \
16906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16907 lt_cv_nm_interface \
16908 nm_file_list_spec \
16909 lt_cv_truncate_bin \
16910 lt_prog_compiler_no_builtin_flag \
16911 lt_prog_compiler_pic \
16912 lt_prog_compiler_wl \
16913 lt_prog_compiler_static \
16914 lt_cv_prog_compiler_c_o \
16915 need_locks \
16916 MANIFEST_TOOL \
16917 DSYMUTIL \
16918 NMEDIT \
16919 LIPO \
16920 OTOOL \
16921 OTOOL64 \
16922 shrext_cmds \
16923 export_dynamic_flag_spec \
16924 whole_archive_flag_spec \
16925 compiler_needs_object \
16926 with_gnu_ld \
16927 allow_undefined_flag \
16928 no_undefined_flag \
16929 hardcode_libdir_flag_spec \
16930 hardcode_libdir_separator \
16931 exclude_expsyms \
16932 include_expsyms \
16933 file_list_spec \
16934 variables_saved_for_relink \
16935 libname_spec \
16936 library_names_spec \
16937 soname_spec \
16938 install_override_mode \
16939 finish_eval \
16940 old_striplib \
16941 striplib; do
16942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16943 *[\\\\\\\`\\"\\\$]*)
16944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16945 ;;
16946 *)
16947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16948 ;;
16949 esac
16950 done
16951
16952 # Double-quote double-evaled strings.
16953 for var in reload_cmds \
16954 old_postinstall_cmds \
16955 old_postuninstall_cmds \
16956 old_archive_cmds \
16957 extract_expsyms_cmds \
16958 old_archive_from_new_cmds \
16959 old_archive_from_expsyms_cmds \
16960 archive_cmds \
16961 archive_expsym_cmds \
16962 module_cmds \
16963 module_expsym_cmds \
16964 export_symbols_cmds \
16965 prelink_cmds \
16966 postlink_cmds \
16967 postinstall_cmds \
16968 postuninstall_cmds \
16969 finish_cmds \
16970 sys_lib_search_path_spec \
16971 configure_time_dlsearch_path \
16972 configure_time_lt_sys_library_path; do
16973 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16974 *[\\\\\\\`\\"\\\$]*)
16975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16976 ;;
16977 *)
16978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16979 ;;
16980 esac
16981 done
16982
16983 ac_aux_dir='$ac_aux_dir'
16984
16985 # See if we are running on zsh, and set the options that allow our
16986 # commands through without removal of \ escapes INIT.
16987 if test -n "\${ZSH_VERSION+set}"; then
16988 setopt NO_GLOB_SUBST
16989 fi
16990
16991
16992 PACKAGE='$PACKAGE'
16993 VERSION='$VERSION'
16994 RM='$RM'
16995 ofile='$ofile'
16996
16997
16998
16999
17000 _ACEOF
17001
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003
17004 # Handling of arguments.
17005 for ac_config_target in $ac_config_targets
17006 do
17007 case $ac_config_target in
17008 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17009 "makefile") CONFIG_FILES="$CONFIG_FILES makefile:makefile.in" ;;
17010 "nauty.h") CONFIG_FILES="$CONFIG_FILES nauty.h:nauty-h.in" ;;
17011 "naututil.h") CONFIG_FILES="$CONFIG_FILES naututil.h:naututil-h.in" ;;
17012 "gtools.h") CONFIG_FILES="$CONFIG_FILES gtools.h:gtools-h.in" ;;
17013 "nauty.pc") CONFIG_FILES="$CONFIG_FILES nauty.pc:nauty-pc.in" ;;
17014 "runalltests") CONFIG_FILES="$CONFIG_FILES runalltests:runalltests.in" ;;
17015
17016 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
17017 esac
17018 done
17019
17020
17021 # If the user did not use the arguments to specify the items to instantiate,
17022 # then the envvar interface is used. Set only those that are not.
17023 # We use the long form for the default assignment because of an extremely
17024 # bizarre bug on SunOS 4.1.3.
17025 if $ac_need_defaults; then
17026 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17027 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17028 fi
17029
17030 # Have a temporary directory for convenience. Make it in the build tree
17031 # simply because there is no reason against having it here, and in addition,
17032 # creating and moving files from /tmp can sometimes cause problems.
17033 # Hook for its removal unless debugging.
17034 # Note that there is a small window in which the directory will not be cleaned:
17035 # after its creation but before its name has been assigned to '$tmp'.
17036 $debug ||
17037 {
17038 tmp= ac_tmp=
17039 trap 'exit_status=$?
17040 : "${ac_tmp:=$tmp}"
17041 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17042 ' 0
17043 trap 'as_fn_exit 1' 1 2 13 15
17044 }
17045 # Create a (secure) tmp directory for tmp files.
17046
17047 {
17048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17049 test -d "$tmp"
17050 } ||
17051 {
17052 tmp=./conf$$-$RANDOM
17053 (umask 077 && mkdir "$tmp")
17054 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17055 ac_tmp=$tmp
17056
17057 # Set up the scripts for CONFIG_FILES section.
17058 # No need to generate them if there are no CONFIG_FILES.
17059 # This happens for instance with './config.status config.h'.
17060 if test -n "$CONFIG_FILES"; then
17061
17062
17063 ac_cr=`echo X | tr X '\015'`
17064 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17065 # But we know of no other shell where ac_cr would be empty at this
17066 # point, so we can use a bashism as a fallback.
17067 if test "x$ac_cr" = x; then
17068 eval ac_cr=\$\'\\r\'
17069 fi
17070 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17072 ac_cs_awk_cr='\\r'
17073 else
17074 ac_cs_awk_cr=$ac_cr
17075 fi
17076
17077 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17078 _ACEOF
17079
17080
17081 {
17082 echo "cat >conf$$subs.awk <<_ACEOF" &&
17083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17084 echo "_ACEOF"
17085 } >conf$$subs.sh ||
17086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17087 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17088 ac_delim='%!_!# '
17089 for ac_last_try in false false false false false :; do
17090 . ./conf$$subs.sh ||
17091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17092
17093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17094 if test $ac_delim_n = $ac_delim_num; then
17095 break
17096 elif $ac_last_try; then
17097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17098 else
17099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17100 fi
17101 done
17102 rm -f conf$$subs.sh
17103
17104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17105 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17106 _ACEOF
17107 sed -n '
17108 h
17109 s/^/S["/; s/!.*/"]=/
17110 p
17111 g
17112 s/^[^!]*!//
17113 :repl
17114 t repl
17115 s/'"$ac_delim"'$//
17116 t delim
17117 :nl
17118 h
17119 s/\(.\{148\}\)..*/\1/
17120 t more1
17121 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17122 p
17123 n
17124 b repl
17125 :more1
17126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17127 p
17128 g
17129 s/.\{148\}//
17130 t nl
17131 :delim
17132 h
17133 s/\(.\{148\}\)..*/\1/
17134 t more2
17135 s/["\\]/\\&/g; s/^/"/; s/$/"/
17136 p
17137 b
17138 :more2
17139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17140 p
17141 g
17142 s/.\{148\}//
17143 t delim
17144 ' <conf$$subs.awk | sed '
17145 /^[^""]/{
17146 N
17147 s/\n//
17148 }
17149 ' >>$CONFIG_STATUS || ac_write_fail=1
17150 rm -f conf$$subs.awk
17151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17152 _ACAWK
17153 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17154 for (key in S) S_is_set[key] = 1
17155 FS = ""
17156
17157 }
17158 {
17159 line = $ 0
17160 nfields = split(line, field, "@")
17161 substed = 0
17162 len = length(field[1])
17163 for (i = 2; i < nfields; i++) {
17164 key = field[i]
17165 keylen = length(key)
17166 if (S_is_set[key]) {
17167 value = S[key]
17168 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17169 len += length(value) + length(field[++i])
17170 substed = 1
17171 } else
17172 len += 1 + keylen
17173 }
17174
17175 print line
17176 }
17177
17178 _ACAWK
17179 _ACEOF
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17182 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17183 else
17184 cat
17185 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17186 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17187 _ACEOF
17188
17189 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17190 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17191 # trailing colons and then remove the whole line if VPATH becomes empty
17192 # (actually we leave an empty line to preserve line numbers).
17193 if test "x$srcdir" = x.; then
17194 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17195 h
17196 s///
17197 s/^/:/
17198 s/[ ]*$/:/
17199 s/:\$(srcdir):/:/g
17200 s/:\${srcdir}:/:/g
17201 s/:@srcdir@:/:/g
17202 s/^:*//
17203 s/:*$//
17204 x
17205 s/\(=[ ]*\).*/\1/
17206 G
17207 s/\n//
17208 s/^[^=]*=[ ]*$//
17209 }'
17210 fi
17211
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213 fi # test -n "$CONFIG_FILES"
17214
17215
17216 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17217 shift
17218 for ac_tag
17219 do
17220 case $ac_tag in
17221 :[FHLC]) ac_mode=$ac_tag; continue;;
17222 esac
17223 case $ac_mode$ac_tag in
17224 :[FHL]*:*);;
17225 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17226 :[FH]-) ac_tag=-:-;;
17227 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17228 esac
17229 ac_save_IFS=$IFS
17230 IFS=:
17231 set x $ac_tag
17232 IFS=$ac_save_IFS
17233 shift
17234 ac_file=$1
17235 shift
17236
17237 case $ac_mode in
17238 :L) ac_source=$1;;
17239 :[FH])
17240 ac_file_inputs=
17241 for ac_f
17242 do
17243 case $ac_f in
17244 -) ac_f="$ac_tmp/stdin";;
17245 *) # Look for the file first in the build tree, then in the source tree
17246 # (if the path is not absolute). The absolute path cannot be DOS-style,
17247 # because $ac_f cannot contain ':'.
17248 test -f "$ac_f" ||
17249 case $ac_f in
17250 [\\/$]*) false;;
17251 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17252 esac ||
17253 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17254 esac
17255 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17256 as_fn_append ac_file_inputs " '$ac_f'"
17257 done
17258
17259 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17260 # use $as_me), people would be surprised to read:
17261 # /* config.h. Generated by config.status. */
17262 configure_input='Generated from '`
17263 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17264 `' by configure.'
17265 if test x"$ac_file" != x-; then
17266 configure_input="$ac_file. $configure_input"
17267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17268 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17269 fi
17270 # Neutralize special characters interpreted by sed in replacement strings.
17271 case $configure_input in #(
17272 *\&* | *\|* | *\\* )
17273 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17274 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17275 *) ac_sed_conf_input=$configure_input;;
17276 esac
17277
17278 case $ac_tag in
17279 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17281 esac
17282 ;;
17283 esac
17284
17285 ac_dir=`$as_dirname -- "$ac_file" ||
17286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17287 X"$ac_file" : 'X\(//\)[^/]' \| \
17288 X"$ac_file" : 'X\(//\)$' \| \
17289 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17290 printf "%s\n" X"$ac_file" |
17291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17292 s//\1/
17293 q
17294 }
17295 /^X\(\/\/\)[^/].*/{
17296 s//\1/
17297 q
17298 }
17299 /^X\(\/\/\)$/{
17300 s//\1/
17301 q
17302 }
17303 /^X\(\/\).*/{
17304 s//\1/
17305 q
17306 }
17307 s/.*/./; q'`
17308 as_dir="$ac_dir"; as_fn_mkdir_p
17309 ac_builddir=.
17310
17311 case "$ac_dir" in
17312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17313 *)
17314 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17315 # A ".." for each directory in $ac_dir_suffix.
17316 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17317 case $ac_top_builddir_sub in
17318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17320 esac ;;
17321 esac
17322 ac_abs_top_builddir=$ac_pwd
17323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17324 # for backward compatibility:
17325 ac_top_builddir=$ac_top_build_prefix
17326
17327 case $srcdir in
17328 .) # We are building in place.
17329 ac_srcdir=.
17330 ac_top_srcdir=$ac_top_builddir_sub
17331 ac_abs_top_srcdir=$ac_pwd ;;
17332 [\\/]* | ?:[\\/]* ) # Absolute name.
17333 ac_srcdir=$srcdir$ac_dir_suffix;
17334 ac_top_srcdir=$srcdir
17335 ac_abs_top_srcdir=$srcdir ;;
17336 *) # Relative name.
17337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17338 ac_top_srcdir=$ac_top_build_prefix$srcdir
17339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17340 esac
17341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17342
17343
17344 case $ac_mode in
17345 :F)
17346 #
17347 # CONFIG_FILE
17348 #
17349
17350 case $INSTALL in
17351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17352 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17353 esac
17354 ac_MKDIR_P=$MKDIR_P
17355 case $MKDIR_P in
17356 [\\/$]* | ?:[\\/]* ) ;;
17357 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17358 esac
17359 _ACEOF
17360
17361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17362 # If the template does not know about datarootdir, expand it.
17363 # FIXME: This hack should be removed a few years after 2.60.
17364 ac_datarootdir_hack=; ac_datarootdir_seen=
17365 ac_sed_dataroot='
17366 /datarootdir/ {
17367 p
17368 q
17369 }
17370 /@datadir@/p
17371 /@docdir@/p
17372 /@infodir@/p
17373 /@localedir@/p
17374 /@mandir@/p'
17375 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17376 *datarootdir*) ac_datarootdir_seen=yes;;
17377 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17379 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17380 _ACEOF
17381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17382 ac_datarootdir_hack='
17383 s&@datadir@&$datadir&g
17384 s&@docdir@&$docdir&g
17385 s&@infodir@&$infodir&g
17386 s&@localedir@&$localedir&g
17387 s&@mandir@&$mandir&g
17388 s&\\\${datarootdir}&$datarootdir&g' ;;
17389 esac
17390 _ACEOF
17391
17392 # Neutralize VPATH when '$srcdir' = '.'.
17393 # Shell code in configure.ac might set extrasub.
17394 # FIXME: do we really want to maintain this feature?
17395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396 ac_sed_extra="$ac_vpsub
17397 $extrasub
17398 _ACEOF
17399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17400 :t
17401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17402 s|@configure_input@|$ac_sed_conf_input|;t t
17403 s&@top_builddir@&$ac_top_builddir_sub&;t t
17404 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17405 s&@srcdir@&$ac_srcdir&;t t
17406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17407 s&@top_srcdir@&$ac_top_srcdir&;t t
17408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17409 s&@builddir@&$ac_builddir&;t t
17410 s&@abs_builddir@&$ac_abs_builddir&;t t
17411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17412 s&@INSTALL@&$ac_INSTALL&;t t
17413 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17414 $ac_datarootdir_hack
17415 "
17416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17417 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17418
17419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17420 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17422 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17424 which seems to be undefined. Please make sure it is defined" >&5
17425 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17426 which seems to be undefined. Please make sure it is defined" >&2;}
17427
17428 rm -f "$ac_tmp/stdin"
17429 case $ac_file in
17430 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17431 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17432 esac \
17433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17434 ;;
17435
17436
17437 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17438 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17439 ;;
17440 esac
17441
17442
17443 case $ac_file$ac_mode in
17444 "libtool":C)
17445
17446 # See if we are running on zsh, and set the options that allow our
17447 # commands through without removal of \ escapes.
17448 if test -n "${ZSH_VERSION+set}"; then
17449 setopt NO_GLOB_SUBST
17450 fi
17451
17452 cfgfile=${ofile}T
17453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17454 $RM "$cfgfile"
17455
17456 cat <<_LT_EOF >> "$cfgfile"
17457 #! $SHELL
17458 # Generated automatically by $as_me ($PACKAGE) $VERSION
17459 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17460
17461 # Provide generalized library-building support services.
17462 # Written by Gordon Matzigkeit, 1996
17463
17464 # Copyright (C) 2024 Free Software Foundation, Inc.
17465 # This is free software; see the source for copying conditions. There is NO
17466 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17467
17468 # GNU Libtool is free software; you can redistribute it and/or modify
17469 # it under the terms of the GNU General Public License as published by
17470 # the Free Software Foundation; either version 2 of the License, or
17471 # (at your option) any later version.
17472 #
17473 # As a special exception to the GNU General Public License, if you
17474 # distribute this file as part of a program or library that is built
17475 # using GNU Libtool, you may include this file under the same
17476 # distribution terms that you use for the rest of that program.
17477 #
17478 # GNU Libtool is distributed in the hope that it will be useful, but
17479 # WITHOUT ANY WARRANTY; without even the implied warranty of
17480 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17481 # GNU General Public License for more details.
17482 #
17483 # You should have received a copy of the GNU General Public License
17484 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17485
17486
17487 # The names of the tagged configurations supported by this script.
17488 available_tags=''
17489
17490 # Configured defaults for sys_lib_dlsearch_path munging.
17491 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17492
17493 # ### BEGIN LIBTOOL CONFIG
17494
17495 # Which release of libtool.m4 was used?
17496 macro_version=$macro_version
17497 macro_revision=$macro_revision
17498
17499 # Whether or not to build shared libraries.
17500 build_libtool_libs=$enable_shared
17501
17502 # Whether or not to build static libraries.
17503 build_old_libs=$enable_static
17504
17505 # What type of objects to build.
17506 pic_mode=$pic_mode
17507
17508 # Whether or not to optimize for fast installation.
17509 fast_install=$enable_fast_install
17510
17511 # Shared archive member basename,for filename based shared library versioning on AIX.
17512 shared_archive_member_spec=$shared_archive_member_spec
17513
17514 # Shell to use when invoking shell scripts.
17515 SHELL=$lt_SHELL
17516
17517 # An echo program that protects backslashes.
17518 ECHO=$lt_ECHO
17519
17520 # The PATH separator for the build system.
17521 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17522
17523 # The host system.
17524 host_alias=$host_alias
17525 host=$host
17526 host_os=$host_os
17527
17528 # The build system.
17529 build_alias=$build_alias
17530 build=$build
17531 build_os=$build_os
17532
17533 # A sed program that does not truncate output.
17534 SED=$lt_SED
17535
17536 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17537 Xsed="\$SED -e 1s/^X//"
17538
17539 # A grep program that handles long lines.
17540 GREP=$lt_GREP
17541
17542 # An ERE matcher.
17543 EGREP=$lt_EGREP
17544
17545 # A literal string matcher.
17546 FGREP=$lt_FGREP
17547
17548 # A BSD- or MS-compatible name lister.
17549 NM=$lt_NM
17550
17551 # Whether we need soft or hard links.
17552 LN_S=$lt_LN_S
17553
17554 # What is the maximum length of a command?
17555 max_cmd_len=$max_cmd_len
17556
17557 # Object file suffix (normally "o").
17558 objext=$ac_objext
17559
17560 # Executable file suffix (normally "").
17561 exeext=$exeext
17562
17563 # whether the shell understands "unset".
17564 lt_unset=$lt_unset
17565
17566 # turn spaces into newlines.
17567 SP2NL=$lt_lt_SP2NL
17568
17569 # turn newlines into spaces.
17570 NL2SP=$lt_lt_NL2SP
17571
17572 # convert \$build file names to \$host format.
17573 to_host_file_cmd=$lt_cv_to_host_file_cmd
17574
17575 # convert \$build files to toolchain format.
17576 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17577
17578 # A file(cmd) program that detects file types.
17579 FILECMD=$lt_FILECMD
17580
17581 # An object symbol dumper.
17582 OBJDUMP=$lt_OBJDUMP
17583
17584 # Method to check whether dependent libraries are shared objects.
17585 deplibs_check_method=$lt_deplibs_check_method
17586
17587 # Command to use when deplibs_check_method = "file_magic".
17588 file_magic_cmd=$lt_file_magic_cmd
17589
17590 # How to find potential files when deplibs_check_method = "file_magic".
17591 file_magic_glob=$lt_file_magic_glob
17592
17593 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17594 want_nocaseglob=$lt_want_nocaseglob
17595
17596 # DLL creation program.
17597 DLLTOOL=$lt_DLLTOOL
17598
17599 # Command to associate shared and link libraries.
17600 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17601
17602 # The archiver.
17603 AR=$lt_AR
17604
17605 # Flags to create an archive (by configure).
17606 lt_ar_flags=$lt_ar_flags
17607
17608 # Flags to create an archive.
17609 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17610
17611 # How to feed a file listing to the archiver.
17612 archiver_list_spec=$lt_archiver_list_spec
17613
17614 # A symbol stripping program.
17615 STRIP=$lt_STRIP
17616
17617 # Commands used to install an old-style archive.
17618 RANLIB=$lt_RANLIB
17619 old_postinstall_cmds=$lt_old_postinstall_cmds
17620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17621
17622 # Whether to use a lock for old archive extraction.
17623 lock_old_archive_extraction=$lock_old_archive_extraction
17624
17625 # A C compiler.
17626 LTCC=$lt_CC
17627
17628 # LTCC compiler flags.
17629 LTCFLAGS=$lt_CFLAGS
17630
17631 # Take the output of nm and produce a listing of raw symbols and C names.
17632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17633
17634 # Transform the output of nm in a proper C declaration.
17635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17636
17637 # Transform the output of nm into a list of symbols to manually relocate.
17638 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17639
17640 # Transform the output of nm in a C name address pair.
17641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17642
17643 # Transform the output of nm in a C name address pair when lib prefix is needed.
17644 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17645
17646 # The name lister interface.
17647 nm_interface=$lt_lt_cv_nm_interface
17648
17649 # Specify filename containing input files for \$NM.
17650 nm_file_list_spec=$lt_nm_file_list_spec
17651
17652 # The root where to search for dependent libraries,and where our libraries should be installed.
17653 lt_sysroot=$lt_sysroot
17654
17655 # Command to truncate a binary pipe.
17656 lt_truncate_bin=$lt_lt_cv_truncate_bin
17657
17658 # The name of the directory that contains temporary libtool files.
17659 objdir=$objdir
17660
17661 # Used to examine libraries when file_magic_cmd begins with "file".
17662 MAGIC_CMD=$MAGIC_CMD
17663
17664 # Must we lock files when doing compilation?
17665 need_locks=$lt_need_locks
17666
17667 # Manifest tool.
17668 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17669
17670 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17671 DSYMUTIL=$lt_DSYMUTIL
17672
17673 # Tool to change global to local symbols on Mac OS X.
17674 NMEDIT=$lt_NMEDIT
17675
17676 # Tool to manipulate fat objects and archives on Mac OS X.
17677 LIPO=$lt_LIPO
17678
17679 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17680 OTOOL=$lt_OTOOL
17681
17682 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17683 OTOOL64=$lt_OTOOL64
17684
17685 # Old archive suffix (normally "a").
17686 libext=$libext
17687
17688 # Shared library suffix (normally ".so").
17689 shrext_cmds=$lt_shrext_cmds
17690
17691 # The commands to extract the exported symbol list from a shared archive.
17692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17693
17694 # Variables whose values should be saved in libtool wrapper scripts and
17695 # restored at link time.
17696 variables_saved_for_relink=$lt_variables_saved_for_relink
17697
17698 # Do we need the "lib" prefix for modules?
17699 need_lib_prefix=$need_lib_prefix
17700
17701 # Do we need a version for libraries?
17702 need_version=$need_version
17703
17704 # Library versioning type.
17705 version_type=$version_type
17706
17707 # Shared library runtime path variable.
17708 runpath_var=$runpath_var
17709
17710 # Shared library path variable.
17711 shlibpath_var=$shlibpath_var
17712
17713 # Is shlibpath searched before the hard-coded library search path?
17714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17715
17716 # Format of library name prefix.
17717 libname_spec=$lt_libname_spec
17718
17719 # List of archive names. First name is the real one, the rest are links.
17720 # The last name is the one that the linker finds with -lNAME
17721 library_names_spec=$lt_library_names_spec
17722
17723 # The coded name of the library, if different from the real name.
17724 soname_spec=$lt_soname_spec
17725
17726 # Permission mode override for installation of shared libraries.
17727 install_override_mode=$lt_install_override_mode
17728
17729 # Command to use after installation of a shared archive.
17730 postinstall_cmds=$lt_postinstall_cmds
17731
17732 # Command to use after uninstallation of a shared archive.
17733 postuninstall_cmds=$lt_postuninstall_cmds
17734
17735 # Commands used to finish a libtool library installation in a directory.
17736 finish_cmds=$lt_finish_cmds
17737
17738 # As "finish_cmds", except a single script fragment to be evaled but
17739 # not shown.
17740 finish_eval=$lt_finish_eval
17741
17742 # Whether we should hardcode library paths into libraries.
17743 hardcode_into_libs=$hardcode_into_libs
17744
17745 # Compile-time system search path for libraries.
17746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17747
17748 # Detected run-time system search path for libraries.
17749 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17750
17751 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17752 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17753
17754 # Whether dlopen is supported.
17755 dlopen_support=$enable_dlopen
17756
17757 # Whether dlopen of programs is supported.
17758 dlopen_self=$enable_dlopen_self
17759
17760 # Whether dlopen of statically linked programs is supported.
17761 dlopen_self_static=$enable_dlopen_self_static
17762
17763 # Commands to strip libraries.
17764 old_striplib=$lt_old_striplib
17765 striplib=$lt_striplib
17766
17767
17768 # The linker used to build libraries.
17769 LD=$lt_LD
17770
17771 # How to create reloadable object files.
17772 reload_flag=$lt_reload_flag
17773 reload_cmds=$lt_reload_cmds
17774
17775 # Commands used to build an old-style archive.
17776 old_archive_cmds=$lt_old_archive_cmds
17777
17778 # A language specific compiler.
17779 CC=$lt_compiler
17780
17781 # Is the compiler the GNU compiler?
17782 with_gcc=$GCC
17783
17784 # Compiler flag to turn off builtin functions.
17785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17786
17787 # Additional compiler flags for building library objects.
17788 pic_flag=$lt_lt_prog_compiler_pic
17789
17790 # How to pass a linker flag through the compiler.
17791 wl=$lt_lt_prog_compiler_wl
17792
17793 # Compiler flag to prevent dynamic linking.
17794 link_static_flag=$lt_lt_prog_compiler_static
17795
17796 # Does compiler simultaneously support -c and -o options?
17797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17798
17799 # Whether or not to add -lc for building shared libraries.
17800 build_libtool_need_lc=$archive_cmds_need_lc
17801
17802 # Whether or not to disallow shared libs when runtime libs are static.
17803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17804
17805 # Compiler flag to allow reflexive dlopens.
17806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17807
17808 # Compiler flag to generate shared objects directly from archives.
17809 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17810
17811 # Whether the compiler copes with passing no objects directly.
17812 compiler_needs_object=$lt_compiler_needs_object
17813
17814 # Create an old-style archive from a shared archive.
17815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17816
17817 # Create a temporary old-style archive to link instead of a shared archive.
17818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17819
17820 # Commands used to build a shared archive.
17821 archive_cmds=$lt_archive_cmds
17822 archive_expsym_cmds=$lt_archive_expsym_cmds
17823
17824 # Commands used to build a loadable module if different from building
17825 # a shared archive.
17826 module_cmds=$lt_module_cmds
17827 module_expsym_cmds=$lt_module_expsym_cmds
17828
17829 # Whether we are building with GNU ld or not.
17830 with_gnu_ld=$lt_with_gnu_ld
17831
17832 # Flag that allows shared libraries with undefined symbols to be built.
17833 allow_undefined_flag=$lt_allow_undefined_flag
17834
17835 # Flag that enforces no undefined symbols.
17836 no_undefined_flag=$lt_no_undefined_flag
17837
17838 # Flag to hardcode \$libdir into a binary during linking.
17839 # This must work even if \$libdir does not exist
17840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17841
17842 # Whether we need a single "-rpath" flag with a separated argument.
17843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17844
17845 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17846 # DIR into the resulting binary.
17847 hardcode_direct=$hardcode_direct
17848
17849 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17850 # DIR into the resulting binary and the resulting library dependency is
17851 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17852 # library is relocated.
17853 hardcode_direct_absolute=$hardcode_direct_absolute
17854
17855 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17856 # into the resulting binary.
17857 hardcode_minus_L=$hardcode_minus_L
17858
17859 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17860 # into the resulting binary.
17861 hardcode_shlibpath_var=$hardcode_shlibpath_var
17862
17863 # Set to "yes" if building a shared library automatically hardcodes DIR
17864 # into the library and all subsequent libraries and executables linked
17865 # against it.
17866 hardcode_automatic=$hardcode_automatic
17867
17868 # Set to yes if linker adds runtime paths of dependent libraries
17869 # to runtime path list.
17870 inherit_rpath=$inherit_rpath
17871
17872 # Whether libtool must link a program against all its dependency libraries.
17873 link_all_deplibs=$link_all_deplibs
17874
17875 # Set to "yes" if exported symbols are required.
17876 always_export_symbols=$always_export_symbols
17877
17878 # The commands to list exported symbols.
17879 export_symbols_cmds=$lt_export_symbols_cmds
17880
17881 # Symbols that should not be listed in the preloaded symbols.
17882 exclude_expsyms=$lt_exclude_expsyms
17883
17884 # Symbols that must always be exported.
17885 include_expsyms=$lt_include_expsyms
17886
17887 # Commands necessary for linking programs (against libraries) with templates.
17888 prelink_cmds=$lt_prelink_cmds
17889
17890 # Commands necessary for finishing linking programs.
17891 postlink_cmds=$lt_postlink_cmds
17892
17893 # Specify filename containing input files.
17894 file_list_spec=$lt_file_list_spec
17895
17896 # How to hardcode a shared library path into an executable.
17897 hardcode_action=$hardcode_action
17898
17899 # ### END LIBTOOL CONFIG
17900
17901 _LT_EOF
17902
17903 cat <<'_LT_EOF' >> "$cfgfile"
17904
17905 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17906
17907 # func_munge_path_list VARIABLE PATH
17908 # -----------------------------------
17909 # VARIABLE is name of variable containing _space_ separated list of
17910 # directories to be munged by the contents of PATH, which is string
17911 # having a format:
17912 # "DIR[:DIR]:"
17913 # string "DIR[ DIR]" will be prepended to VARIABLE
17914 # ":DIR[:DIR]"
17915 # string "DIR[ DIR]" will be appended to VARIABLE
17916 # "DIRP[:DIRP]::[DIRA:]DIRA"
17917 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17918 # "DIRA[ DIRA]" will be appended to VARIABLE
17919 # "DIR[:DIR]"
17920 # VARIABLE will be replaced by "DIR[ DIR]"
17921 func_munge_path_list ()
17922 {
17923 case x$2 in
17924 x)
17925 ;;
17926 *:)
17927 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17928 ;;
17929 x:*)
17930 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17931 ;;
17932 *::*)
17933 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17934 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17935 ;;
17936 *)
17937 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17938 ;;
17939 esac
17940 }
17941
17942
17943 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17944 func_cc_basename ()
17945 {
17946 for cc_temp in $*""; do
17947 case $cc_temp in
17948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17950 \-*) ;;
17951 *) break;;
17952 esac
17953 done
17954 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17955 }
17956
17957
17958 # ### END FUNCTIONS SHARED WITH CONFIGURE
17959
17960 _LT_EOF
17961
17962 case $host_os in
17963 aix3*)
17964 cat <<\_LT_EOF >> "$cfgfile"
17965 # AIX sometimes has problems with the GCC collect2 program. For some
17966 # reason, if we set the COLLECT_NAMES environment variable, the problems
17967 # vanish in a puff of smoke.
17968 if test set != "${COLLECT_NAMES+set}"; then
17969 COLLECT_NAMES=
17970 export COLLECT_NAMES
17971 fi
17972 _LT_EOF
17973 ;;
17974 esac
17975
17976
17977
17978 ltmain=$ac_aux_dir/ltmain.sh
17979
17980
17981 # We use sed instead of cat because bash on DJGPP gets confused if
17982 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17983 # text mode, it properly converts lines to CR/LF. This bash problem
17984 # is reportedly fixed, but why not run on old versions too?
17985 $SED '$q' "$ltmain" >> "$cfgfile" \
17986 || (rm -f "$cfgfile"; exit 1)
17987
17988 mv -f "$cfgfile" "$ofile" ||
17989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17990 chmod +x "$ofile"
17991
17992 ;;
17993
17994 esac
17995 done # for ac_tag
17996
17997
17998 as_fn_exit 0
17999 _ACEOF
18000 ac_clean_files=$ac_clean_files_save
18001
18002 test $ac_write_fail = 0 ||
18003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18004
18005
18006 # configure is writing to config.log, and then calls config.status.
18007 # config.status does its own redirection, appending to config.log.
18008 # Unfortunately, on DOS this fails, as config.log is still kept open
18009 # by configure, so config.status won't be able to write to it; its
18010 # output is simply discarded. So we exec the FD to /dev/null,
18011 # effectively closing config.log, so it can be properly (re)opened and
18012 # appended to by config.status. When coming back to configure, we
18013 # need to make the FD available again.
18014 if test "$no_create" != yes; then
18015 ac_cs_success=:
18016 ac_config_status_args=
18017 test "$silent" = yes &&
18018 ac_config_status_args="$ac_config_status_args --quiet"
18019 exec 5>/dev/null
18020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18021 exec 5>>config.log
18022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18023 # would make configure fail if this is the last instruction.
18024 $ac_cs_success || as_fn_exit 1
18025 fi
18026 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18028 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18029 fi
18030
18031