libstdc++: Shorten integer std::to/from_chars symbol names
[official-gcc.git] / zlib / configure
blob273ac36647d00d381f6f2f0bdb60be47cf23689d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zlib 1.1.4.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='zlib'
589 PACKAGE_TARNAME='zlib'
590 PACKAGE_VERSION='1.1.4'
591 PACKAGE_STRING='zlib 1.1.4'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="zlib.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 PICFLAG
638 enable_host_pie
639 enable_host_shared
640 TARGET_LIBRARY_FALSE
641 TARGET_LIBRARY_TRUE
642 toolexeclibdir
643 toolexecdir
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 RANLIB
652 OBJDUMP
653 LN_S
655 ac_ct_DUMPBIN
656 DUMPBIN
658 FGREP
659 EGREP
660 GREP
662 LIBTOOL
663 CET_FLAGS
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
681 COMPPATH
682 MAINT
683 MAINTAINER_MODE_FALSE
684 MAINTAINER_MODE_TRUE
685 AM_BACKSLASH
686 AM_DEFAULT_VERBOSITY
687 AM_DEFAULT_V
688 AM_V
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 mkinstalldirs
713 target_os
714 target_vendor
715 target_cpu
716 target
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 multi_basedir
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_multilib
768 enable_silent_rules
769 enable_maintainer_mode
770 with_target_subdir
771 with_cross_host
772 with_system_zlib
773 enable_dependency_tracking
774 enable_cet
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 enable_libtool_lock
781 with_toolexeclibdir
782 enable_host_shared
783 enable_host_pie
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CPPFLAGS'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
840 ac_prev=
841 ac_dashdash=
842 for ac_option
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1385 cat <<\_ACEOF
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of zlib 1.1.4:";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-multilib build many library versions (default)
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --enable-maintainer-mode
1413 enable make rules and dependencies not useful (and
1414 sometimes confusing) to the casual installer
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-cet enable Intel CET in target libraries [default=auto]
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --enable-host-shared build host code as shared libraries
1426 --enable-host-pie build host code as PIE
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-target-subdir=SUBDIR
1432 configuring in a subdirectory
1433 --with-cross-host=HOST configuring with a cross compiler
1434 --with-system-zlib use installed libz
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-toolexeclibdir=DIR
1439 install libraries built with a cross compiler within
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to the package provider.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 zlib configure 1.1.4
1519 generated by GNU Autoconf 2.69
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_link LINENO
1571 # -----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_link ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
1597 test -x conftest$ac_exeext
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_link
1616 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists and can be compiled using the include files in
1619 # INCLUDES, setting the cache variable VAR accordingly.
1620 ac_fn_c_check_header_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1627 else
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 eval "$3=yes"
1635 else
1636 eval "$3=no"
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 } # ac_fn_c_check_header_compile
1647 # ac_fn_c_try_cpp LINENO
1648 # ----------------------
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_cpp ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1677 ac_retval=1
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1682 } # ac_fn_c_try_cpp
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1688 ac_fn_c_try_run ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=$ac_status
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_run
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 if test x$gcc_no_link = xyes; then
1738 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1744 #define $2 innocuous_$2
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char $2 (); below.
1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749 <limits.h> exists even on freestanding compilers. */
1751 #ifdef __STDC__
1752 # include <limits.h>
1753 #else
1754 # include <assert.h>
1755 #endif
1757 #undef $2
1759 /* Override any GCC internal prototype to avoid an error.
1760 Use char because int might match the return type of a GCC
1761 builtin and then its argument prototype would still apply. */
1762 #ifdef __cplusplus
1763 extern "C"
1764 #endif
1765 char $2 ();
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined __stub_$2 || defined __stub___$2
1770 choke me
1771 #endif
1774 main ()
1776 return $2 ();
1778 return 0;
1780 _ACEOF
1781 if ac_fn_c_try_link "$LINENO"; then :
1782 eval "$3=yes"
1783 else
1784 eval "$3=no"
1786 rm -f core conftest.err conftest.$ac_objext \
1787 conftest$ac_exeext conftest.$ac_ext
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_func
1796 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799 # the include files in INCLUDES and setting the cache variable VAR
1800 # accordingly.
1801 ac_fn_c_check_header_mongrel ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if eval \${$3+:} false; then :
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 else
1814 # Is the header compilable?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816 $as_echo_n "checking $2 usability... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1820 #include <$2>
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823 ac_header_compiler=yes
1824 else
1825 ac_header_compiler=no
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829 $as_echo "$ac_header_compiler" >&6; }
1831 # Is the header present?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833 $as_echo_n "checking $2 presence... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_cpp "$LINENO"; then :
1839 ac_header_preproc=yes
1840 else
1841 ac_header_preproc=no
1843 rm -f conftest.err conftest.i conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845 $as_echo "$ac_header_preproc" >&6; }
1847 # So? What about this header?
1848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 yes:no: )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 no:yes:* )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 esac
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 eval "$3=\$ac_header_compiler"
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_mongrel
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1886 It was created by zlib $as_me 1.1.4, which was
1887 generated by GNU Autoconf 2.69. Invocation command line was
1889 $ $0 $@
1891 _ACEOF
1892 exec 5>>config.log
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 _ASUNAME
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1924 done
1925 IFS=$as_save_IFS
1927 } >&5
1929 cat >&5 <<_ACEOF
1932 ## ----------- ##
1933 ## Core tests. ##
1934 ## ----------- ##
1936 _ACEOF
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_configure_args=
1945 ac_configure_args0=
1946 ac_configure_args1=
1947 ac_must_keep_next=false
1948 for ac_pass in 1 2
1950 for ac_arg
1952 case $ac_arg in
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1956 continue ;;
1957 *\'*)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 esac
1960 case $ac_pass in
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1966 else
1967 case $ac_arg in
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 esac
1976 -* ) ac_must_keep_next=true ;;
1977 esac
1979 as_fn_append ac_configure_args " '$ac_arg'"
1981 esac
1982 done
1983 done
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log. We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1995 echo
1997 $as_echo "## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##"
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
2018 (set) 2>&1 |
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2021 sed -n \
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 esac |
2029 sort
2031 echo
2033 $as_echo "## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##"
2036 echo
2037 for ac_var in $ac_subst_vars
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2047 if test -n "$ac_subst_files"; then
2048 $as_echo "## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##"
2051 echo
2052 for ac_var in $ac_subst_files
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2063 if test -s confdefs.h; then
2064 $as_echo "## ----------- ##
2065 ## confdefs.h. ##
2066 ## ----------- ##"
2067 echo
2068 cat confdefs.h
2069 echo
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 # We do not want a PATH search for config.site.
2122 case $CONFIG_SITE in #((
2123 -*) ac_site_file1=./$CONFIG_SITE;;
2124 */*) ac_site_file1=$CONFIG_SITE;;
2125 *) ac_site_file1=./$CONFIG_SITE;;
2126 esac
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file" \
2142 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 as_fn_error $? "failed to load site script $ac_site_file
2145 See \`config.log' for more details" "$LINENO" 5; }
2147 done
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special files
2151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 case $cache_file in
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2158 esac
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 >$cache_file
2166 as_fn_append ac_header_list " stdlib.h"
2167 as_fn_append ac_header_list " unistd.h"
2168 as_fn_append ac_header_list " sys/param.h"
2169 # Check that the precious variables saved in the cache have kept the same
2170 # value.
2171 ac_cache_corrupted=false
2172 for ac_var in $ac_precious_vars; do
2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2174 eval ac_new_set=\$ac_env_${ac_var}_set
2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2176 eval ac_new_val=\$ac_env_${ac_var}_value
2177 case $ac_old_set,$ac_new_set in
2178 set,)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,set)
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2186 ,);;
2188 if test "x$ac_old_val" != "x$ac_new_val"; then
2189 # differences in whitespace do not lead to failure.
2190 ac_old_val_w=`echo x $ac_old_val`
2191 ac_new_val_w=`echo x $ac_new_val`
2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2194 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2195 ac_cache_corrupted=:
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2198 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2199 eval $ac_var=\$ac_old_val
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2202 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2204 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2205 fi;;
2206 esac
2207 # Pass precious variables to config.status.
2208 if test "$ac_new_set" = set; then
2209 case $ac_new_val in
2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 *) ac_arg=$ac_var=$ac_new_val ;;
2212 esac
2213 case " $ac_configure_args " in
2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2216 esac
2218 done
2219 if $ac_cache_corrupted; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2223 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 ## -------------------- ##
2227 ## Main body of script. ##
2228 ## -------------------- ##
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242 if test -n "${with_target_subdir}"; then
2243 # Default to --enable-multilib
2244 # Check whether --enable-multilib was given.
2245 if test "${enable_multilib+set}" = set; then :
2246 enableval=$enable_multilib; case "$enableval" in
2247 yes) multilib=yes ;;
2248 no) multilib=no ;;
2249 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2250 esac
2251 else
2252 multilib=yes
2256 # We may get other options which we leave undocumented:
2257 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2258 # See config-ml.in if you want the gory details.
2260 if test "$srcdir" = "."; then
2261 if test "$with_target_subdir" != "."; then
2262 multi_basedir="$srcdir/$with_multisrctop../.."
2263 else
2264 multi_basedir="$srcdir/$with_multisrctop.."
2266 else
2267 multi_basedir="$srcdir/.."
2271 # Even if the default multilib is not a cross compilation,
2272 # it may be that some of the other multilibs are.
2273 if test $cross_compiling = no && test $multilib = yes \
2274 && test "x${with_multisubdir}" != x ; then
2275 cross_compiling=maybe
2278 ac_config_commands="$ac_config_commands default-1"
2282 ac_aux_dir=
2283 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2297 done
2298 if test -z "$ac_aux_dir"; then
2299 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2302 # These three variables are undocumented and unsupported,
2303 # and are intended to be withdrawn in a future Autoconf release.
2304 # They can cause serious problems if a builder's source tree is in a directory
2305 # whose full name contains unusual characters.
2306 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311 # Make sure we can run config.sub.
2312 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2313 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2316 $as_echo_n "checking build system type... " >&6; }
2317 if ${ac_cv_build+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 ac_build_alias=$build_alias
2321 test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323 test "x$ac_build_alias" = x &&
2324 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2325 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2330 $as_echo "$ac_cv_build" >&6; }
2331 case $ac_cv_build in
2332 *-*-*) ;;
2333 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2334 esac
2335 build=$ac_cv_build
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_build
2338 shift
2339 build_cpu=$1
2340 build_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 build_os=$*
2345 IFS=$ac_save_IFS
2346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350 $as_echo_n "checking host system type... " >&6; }
2351 if ${ac_cv_host+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356 else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363 $as_echo "$ac_cv_host" >&6; }
2364 case $ac_cv_host in
2365 *-*-*) ;;
2366 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383 $as_echo_n "checking target system type... " >&6; }
2384 if ${ac_cv_target+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389 else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396 $as_echo "$ac_cv_target" >&6; }
2397 case $ac_cv_target in
2398 *-*-*) ;;
2399 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2400 esac
2401 target=$ac_cv_target
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_target
2404 shift
2405 target_cpu=$1
2406 target_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 target_os=$*
2411 IFS=$ac_save_IFS
2412 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415 # The aliases save the names the user supplied, while $host etc.
2416 # will get canonicalized.
2417 test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2423 # This works around an automake problem.
2424 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2427 am__api_version='1.15'
2429 # Find a good install program. We prefer a C program (faster),
2430 # so one script is as good as another. But avoid the broken or
2431 # incompatible versions:
2432 # SysV /etc/install, /usr/sbin/install
2433 # SunOS /usr/etc/install
2434 # IRIX /sbin/install
2435 # AIX /bin/install
2436 # AmigaOS /C/install, which installs bootblocks on floppy discs
2437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2440 # OS/2's system install, which has a completely different semantic
2441 # ./install, which can be erroneously created by make from ./install.sh.
2442 # Reject install programs that cannot install multiple files.
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2445 if test -z "$INSTALL"; then
2446 if ${ac_cv_path_install+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 # Account for people who put trailing slashes in PATH elements.
2455 case $as_dir/ in #((
2456 ./ | .// | /[cC]/* | \
2457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2459 /usr/ucb/* ) ;;
2461 # OSF1 and SCO ODT 3.0 have their own names for install.
2462 # Don't use installbsd from OSF since it installs stuff as root
2463 # by default.
2464 for ac_prog in ginstall scoinst install; do
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2467 if test $ac_prog = install &&
2468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # AIX install. It has an incompatible calling convention.
2471 elif test $ac_prog = install &&
2472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # program-specific install script used by HP pwplus--don't use.
2475 else
2476 rm -rf conftest.one conftest.two conftest.dir
2477 echo one > conftest.one
2478 echo two > conftest.two
2479 mkdir conftest.dir
2480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2481 test -s conftest.one && test -s conftest.two &&
2482 test -s conftest.dir/conftest.one &&
2483 test -s conftest.dir/conftest.two
2484 then
2485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 break 3
2490 done
2491 done
2493 esac
2495 done
2496 IFS=$as_save_IFS
2498 rm -rf conftest.one conftest.two conftest.dir
2501 if test "${ac_cv_path_install+set}" = set; then
2502 INSTALL=$ac_cv_path_install
2503 else
2504 # As a last resort, use the slow shell script. Don't cache a
2505 # value for INSTALL within a source directory, because that will
2506 # break other packages using the cache if that directory is
2507 # removed, or if the value is a relative name.
2508 INSTALL=$ac_install_sh
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2512 $as_echo "$INSTALL" >&6; }
2514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515 # It thinks the first close brace ends the variable substitution.
2516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2523 $as_echo_n "checking whether build environment is sane... " >&6; }
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name. Accept space and tab only in the latter.
2526 am_lf='
2528 case `pwd` in
2529 *[\\\"\#\$\&\'\`$am_lf]*)
2530 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2531 esac
2532 case $srcdir in
2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2534 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2535 esac
2537 # Do 'set' in a subshell so we don't clobber the current shell's
2538 # arguments. Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2541 # directory).
2542 if (
2543 am_has_slept=no
2544 for am_try in 1 2; do
2545 echo "timestamp, slept: $am_has_slept" > conftest.file
2546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2547 if test "$*" = "X"; then
2548 # -L didn't work.
2549 set X `ls -t "$srcdir/configure" conftest.file`
2551 if test "$*" != "X $srcdir/configure conftest.file" \
2552 && test "$*" != "X conftest.file $srcdir/configure"; then
2554 # If neither matched, then we have a broken ls. This can happen
2555 # if, for instance, CONFIG_SHELL is bash and it inherits a
2556 # broken ls alias from the environment. This has actually
2557 # happened. Such a system could not be considered "sane".
2558 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2559 alias in your environment" "$LINENO" 5
2561 if test "$2" = conftest.file || test $am_try -eq 2; then
2562 break
2564 # Just in case.
2565 sleep 1
2566 am_has_slept=yes
2567 done
2568 test "$2" = conftest.file
2570 then
2571 # Ok.
2573 else
2574 as_fn_error $? "newly created file is older than distributed files!
2575 Check your system clock" "$LINENO" 5
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 # If we didn't sleep, we still need to ensure time stamps of config.status and
2580 # generated files are strictly newer.
2581 am_sleep_pid=
2582 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2583 ( sleep 1 ) &
2584 am_sleep_pid=$!
2587 rm -f conftest.file
2589 test "$program_prefix" != NONE &&
2590 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591 # Use a double $ so make ignores it.
2592 test "$program_suffix" != NONE &&
2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594 # Double any \ or $.
2595 # By default was `s,x,x', remove it if useless.
2596 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2599 # Expand $ac_aux_dir to an absolute path.
2600 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2602 if test x"${MISSING+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2607 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 esac
2610 # Use eval to expand $SHELL
2611 if eval "$MISSING --is-lightweight"; then
2612 am_missing_run="$MISSING "
2613 else
2614 am_missing_run=
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2616 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2619 if test x"${install_sh+set}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2624 install_sh="\${SHELL} $am_aux_dir/install-sh"
2625 esac
2628 # Installed binaries are usually stripped using 'strip' when the user
2629 # run "make install-strip". However 'strip' might not be the right
2630 # tool to use in cross-compilation environments, therefore Automake
2631 # will honor the 'STRIP' environment variable to overrule this program.
2632 if test "$cross_compiling" != no; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$STRIP"; then
2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2657 IFS=$as_save_IFS
2661 STRIP=$ac_cv_prog_STRIP
2662 if test -n "$STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664 $as_echo "$STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2672 if test -z "$ac_cv_prog_STRIP"; then
2673 ac_ct_STRIP=$STRIP
2674 # Extract the first word of "strip", so it can be a program name with args.
2675 set dummy strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$ac_ct_STRIP"; then
2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_STRIP="strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702 if test -n "$ac_ct_STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704 $as_echo "$ac_ct_STRIP" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2710 if test "x$ac_ct_STRIP" = x; then
2711 STRIP=":"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719 STRIP=$ac_ct_STRIP
2721 else
2722 STRIP="$ac_cv_prog_STRIP"
2726 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730 if test -z "$MKDIR_P"; then
2731 if ${ac_cv_path_mkdir+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in mkdir gmkdir; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743 'mkdir (GNU coreutils) '* | \
2744 'mkdir (coreutils) '* | \
2745 'mkdir (fileutils) '4.1*)
2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 break 3;;
2748 esac
2749 done
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 test -d ./--version && rmdir ./--version
2757 if test "${ac_cv_path_mkdir+set}" = set; then
2758 MKDIR_P="$ac_cv_path_mkdir -p"
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for MKDIR_P within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 MKDIR_P="$ac_install_sh -d"
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768 $as_echo "$MKDIR_P" >&6; }
2770 for ac_prog in gawk mawk nawk awk
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_AWK+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$AWK"; then
2780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_AWK="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2793 done
2794 done
2795 IFS=$as_save_IFS
2799 AWK=$ac_cv_prog_AWK
2800 if test -n "$AWK"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802 $as_echo "$AWK" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$AWK" && break
2810 done
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2813 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2814 set x ${MAKE-make}
2815 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2816 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 cat >conftest.make <<\_ACEOF
2820 SHELL = /bin/sh
2821 all:
2822 @echo '@@@%%%=$(MAKE)=@@@%%%'
2823 _ACEOF
2824 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2826 *@@@%%%=?*=@@@%%%*)
2827 eval ac_cv_prog_make_${ac_make}_set=yes;;
2829 eval ac_cv_prog_make_${ac_make}_set=no;;
2830 esac
2831 rm -f conftest.make
2833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835 $as_echo "yes" >&6; }
2836 SET_MAKE=
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 SET_MAKE="MAKE=${MAKE-make}"
2843 rm -rf .tst 2>/dev/null
2844 mkdir .tst 2>/dev/null
2845 if test -d .tst; then
2846 am__leading_dot=.
2847 else
2848 am__leading_dot=_
2850 rmdir .tst 2>/dev/null
2852 # Check whether --enable-silent-rules was given.
2853 if test "${enable_silent_rules+set}" = set; then :
2854 enableval=$enable_silent_rules;
2857 case $enable_silent_rules in # (((
2858 yes) AM_DEFAULT_VERBOSITY=0;;
2859 no) AM_DEFAULT_VERBOSITY=1;;
2860 *) AM_DEFAULT_VERBOSITY=1;;
2861 esac
2862 am_make=${MAKE-make}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2864 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2865 if ${am_cv_make_support_nested_variables+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if $as_echo 'TRUE=$(BAR$(V))
2869 BAR0=false
2870 BAR1=true
2872 am__doit:
2873 @$(TRUE)
2874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2875 am_cv_make_support_nested_variables=yes
2876 else
2877 am_cv_make_support_nested_variables=no
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2881 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2882 if test $am_cv_make_support_nested_variables = yes; then
2883 AM_V='$(V)'
2884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2885 else
2886 AM_V=$AM_DEFAULT_VERBOSITY
2887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2889 AM_BACKSLASH='\'
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2905 else
2906 CYGPATH_W=echo
2911 # Define the identity of the package.
2912 PACKAGE='zlib'
2913 VERSION='1.1.4'
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE "$PACKAGE"
2918 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define VERSION "$VERSION"
2923 _ACEOF
2925 # Some tools Automake needs.
2927 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2930 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2933 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2936 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2939 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2941 # For better backward compatibility. To be removed once Automake 1.9.x
2942 # dies out for good. For more background, see:
2943 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2944 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2945 mkdir_p='$(MKDIR_P)'
2947 # We need awk for the "check" target (and possibly the TAP driver). The
2948 # system "awk" is bad on some platforms.
2949 # Always define AMTAR for backward compatibility. Yes, it's still used
2950 # in the wild :-( We should find a proper way to deprecate it ...
2951 AMTAR='$${TAR-tar}'
2954 # We'll loop over all known methods to create a tar archive until one works.
2955 _am_tools='gnutar pax cpio none'
2957 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2964 # POSIX will say in a future version that running "rm -f" with no argument
2965 # is OK; and we want to be able to make that assumption in our Makefile
2966 # recipes. So use an aggressive probe to check that the usage we want is
2967 # actually supported "in the wild" to an acceptable degree.
2968 # See automake bug#10828.
2969 # To make any issue more visible, cause the running configure to be aborted
2970 # by default if the 'rm' program in use doesn't match our expectations; the
2971 # user can still override this though.
2972 if rm -f && rm -fr && rm -rf; then : OK; else
2973 cat >&2 <<'END'
2974 Oops!
2976 Your 'rm' program seems unable to run without file operands specified
2977 on the command line, even when the '-f' option is present. This is contrary
2978 to the behaviour of most rm programs out there, and not conforming with
2979 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2981 Please tell bug-automake@gnu.org about your system, including the value
2982 of your $PATH and any error possibly output before this message. This
2983 can help us improve future automake versions.
2986 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2987 echo 'Configuration will proceed anyway, since you have set the' >&2
2988 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2989 echo >&2
2990 else
2991 cat >&2 <<'END'
2992 Aborting the configuration process, to ensure you take notice of the issue.
2994 You can download and install GNU coreutils to get an 'rm' implementation
2995 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2997 If you want to complete the configuration process using your problematic
2998 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2999 to "yes", and re-run configure.
3002 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3010 # Check whether --enable-maintainer-mode was given.
3011 if test "${enable_maintainer_mode+set}" = set; then :
3012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3013 else
3014 USE_MAINTAINER_MODE=no
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3018 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3019 if test $USE_MAINTAINER_MODE = yes; then
3020 MAINTAINER_MODE_TRUE=
3021 MAINTAINER_MODE_FALSE='#'
3022 else
3023 MAINTAINER_MODE_TRUE='#'
3024 MAINTAINER_MODE_FALSE=
3027 MAINT=$MAINTAINER_MODE_TRUE
3032 # Check whether --with-target-subdir was given.
3033 if test "${with_target_subdir+set}" = set; then :
3034 withval=$with_target_subdir;
3038 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
3039 COMPPATH=.
3040 else
3041 COMPPATH=..
3046 # Check whether --with-cross-host was given.
3047 if test "${with_cross_host+set}" = set; then :
3048 withval=$with_cross_host;
3052 # Check whether --enable-multilib was given.
3053 if test "${enable_multilib+set}" = set; then :
3054 enableval=$enable_multilib; case "${enableval}" in
3055 yes) multilib=yes ;;
3056 no) multilib=no ;;
3057 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
3058 esac
3059 else
3060 test -z "$with_target_subdir" && multilib=no || multilib=yes
3064 # Check whether --with-system-zlib was given.
3065 if test "${with_system_zlib+set}" = set; then :
3066 withval=$with_system_zlib;
3070 # Make sure we don't test executables when making cross-tools.
3073 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3074 # We must force CC to /not/ be precious variables; otherwise
3075 # the wrong, non-multilib-adjusted value will be used in multilibs.
3076 # As a side effect, we have to subst CFLAGS ourselves.
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3124 if test -z "$ac_cv_prog_CC"; then
3125 ac_ct_CC=$CC
3126 # Extract the first word of "gcc", so it can be a program name with args.
3127 set dummy gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="gcc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3162 if test "x$ac_ct_CC" = x; then
3163 CC=""
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171 CC=$ac_ct_CC
3173 else
3174 CC="$ac_cv_prog_CC"
3177 if test -z "$CC"; then
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}cc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CC="${ac_tool_prefix}cc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3218 if test -z "$CC"; then
3219 # Extract the first word of "cc", so it can be a program name with args.
3220 set dummy cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 ac_prog_rejected=no
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3238 ac_prog_rejected=yes
3239 continue
3241 ac_cv_prog_CC="cc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3249 if test $ac_prog_rejected = yes; then
3250 # We found a bogon in the path, so make sure we never use it.
3251 set dummy $ac_cv_prog_CC
3252 shift
3253 if test $# != 0; then
3254 # We chose a different compiler from the bogus one.
3255 # However, it has the same basename, so the bogon will be chosen
3256 # first if we set CC to just the basename; use the full file name.
3257 shift
3258 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 for ac_prog in cl.exe
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3315 test -n "$CC" && break
3316 done
3318 if test -z "$CC"; then
3319 ac_ct_CC=$CC
3320 for ac_prog in cl.exe
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC="$ac_prog"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3343 done
3344 done
3345 IFS=$as_save_IFS
3349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350 if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352 $as_echo "$ac_ct_CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3359 test -n "$ac_ct_CC" && break
3360 done
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369 ac_tool_warned=yes ;;
3370 esac
3371 CC=$ac_ct_CC
3378 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "no acceptable C compiler found in \$PATH
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 # Provide some information about the compiler.
3384 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3385 set X $ac_compile
3386 ac_compiler=$2
3387 for ac_option in --version -v -V -qversion; do
3388 { { ac_try="$ac_compiler $ac_option >&5"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3396 ac_status=$?
3397 if test -s conftest.err; then
3398 sed '10a\
3399 ... rest of stderr output deleted ...
3400 10q' conftest.err >conftest.er1
3401 cat conftest.er1 >&5
3403 rm -f conftest.er1 conftest.err
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }
3406 done
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <stdio.h>
3412 main ()
3414 printf ("hello world\n");
3416 return 0;
3418 _ACEOF
3419 # FIXME: Cleanup?
3420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3421 (eval $ac_link) 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 gcc_no_link=no
3426 else
3427 gcc_no_link=yes
3429 if test x$gcc_no_link = xyes; then
3430 # Setting cross_compile will disable run tests; it will
3431 # also disable AC_CHECK_FILE but that's generally
3432 # correct if we can't link.
3433 cross_compiling=yes
3434 EXEEXT=
3435 else
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 ac_clean_files_save=$ac_clean_files
3448 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3449 # Try to create an executable without -o first, disregard a.out.
3450 # It will help us diagnose broken compilers, and finding out an intuition
3451 # of exeext.
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3453 $as_echo_n "checking whether the C compiler works... " >&6; }
3454 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3456 # The possible output files:
3457 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459 ac_rmfiles=
3460 for ac_file in $ac_files
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465 esac
3466 done
3467 rm -f $ac_rmfiles
3469 if { { ac_try="$ac_link_default"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link_default") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3481 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3482 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3483 # so that the user can short-circuit this test for compilers unknown to
3484 # Autoconf.
3485 for ac_file in $ac_files ''
3487 test -f "$ac_file" || continue
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3491 [ab].out )
3492 # We found the default executable, but exeext='' is most
3493 # certainly right.
3494 break;;
3495 *.* )
3496 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3497 then :; else
3498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 # We set ac_cv_exeext here because the later test for it is not
3501 # safe: cross compilers may not add the suffix if given an `-o'
3502 # argument, so we may need to know it at that point already.
3503 # Even if this section looks crufty: it has the advantage of
3504 # actually working.
3505 break;;
3507 break;;
3508 esac
3509 done
3510 test "$ac_cv_exeext" = no && ac_cv_exeext=
3512 else
3513 ac_file=''
3515 if test -z "$ac_file"; then :
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error 77 "C compiler cannot create executables
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530 $as_echo_n "checking for C compiler default output file name... " >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532 $as_echo "$ac_file" >&6; }
3533 ac_exeext=$ac_cv_exeext
3535 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { { ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 break;;
3560 * ) break;;
3561 esac
3562 done
3563 else
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details" "$LINENO" 5; }
3569 rm -f conftest conftest$ac_cv_exeext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3571 $as_echo "$ac_cv_exeext" >&6; }
3573 rm -f conftest.$ac_ext
3574 EXEEXT=$ac_cv_exeext
3575 ac_exeext=$EXEEXT
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <stdio.h>
3580 main ()
3582 FILE *f = fopen ("conftest.out", "w");
3583 return ferror (f) || fclose (f) != 0;
3586 return 0;
3588 _ACEOF
3589 ac_clean_files="$ac_clean_files conftest.out"
3590 # Check that the compiler produces executables we can run. If not, either
3591 # the compiler is broken, or we cross compile.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3593 $as_echo_n "checking whether we are cross compiling... " >&6; }
3594 if test "$cross_compiling" != yes; then
3595 { { ac_try="$ac_link"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 if { ac_try='./conftest$ac_cv_exeext'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3617 cross_compiling=no
3618 else
3619 if test "$cross_compiling" = maybe; then
3620 cross_compiling=yes
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details" "$LINENO" 5; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3631 $as_echo "$cross_compiling" >&6; }
3633 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3634 ac_clean_files=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3637 $as_echo_n "checking for suffix of object files... " >&6; }
3638 if ${ac_cv_objext+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.o conftest.obj
3653 if { { ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_compile") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 for ac_file in conftest.o conftest.obj conftest.*; do
3665 test -f "$ac_file" || continue;
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3669 break;;
3670 esac
3671 done
3672 else
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot compute suffix of object files: cannot compile
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3684 $as_echo "$ac_cv_objext" >&6; }
3685 OBJEXT=$ac_cv_objext
3686 ac_objext=$OBJEXT
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3688 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3689 if ${ac_cv_c_compiler_gnu+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3696 main ()
3698 #ifndef __GNUC__
3699 choke me
3700 #endif
3703 return 0;
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_compiler_gnu=yes
3708 else
3709 ac_compiler_gnu=no
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3716 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3717 if test $ac_compiler_gnu = yes; then
3718 GCC=yes
3719 else
3720 GCC=
3722 ac_test_CFLAGS=${CFLAGS+set}
3723 ac_save_CFLAGS=$CFLAGS
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3725 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3726 if ${ac_cv_prog_cc_g+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_save_c_werror_flag=$ac_c_werror_flag
3730 ac_c_werror_flag=yes
3731 ac_cv_prog_cc_g=no
3732 CFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3741 return 0;
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_g=yes
3746 else
3747 CFLAGS=""
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3752 main ()
3756 return 0;
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3761 else
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3786 $as_echo "$ac_cv_prog_cc_g" >&6; }
3787 if test "$ac_test_CFLAGS" = set; then
3788 CFLAGS=$ac_save_CFLAGS
3789 elif test $ac_cv_prog_cc_g = yes; then
3790 if test "$GCC" = yes; then
3791 CFLAGS="-g -O2"
3792 else
3793 CFLAGS="-g"
3795 else
3796 if test "$GCC" = yes; then
3797 CFLAGS="-O2"
3798 else
3799 CFLAGS=
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3804 if ${ac_cv_prog_cc_c89+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 ac_cv_prog_cc_c89=no
3808 ac_save_CC=$CC
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <stdarg.h>
3812 #include <stdio.h>
3813 struct stat;
3814 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3815 struct buf { int x; };
3816 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3817 static char *e (p, i)
3818 char **p;
3819 int i;
3821 return p[i];
3823 static char *f (char * (*g) (char **, int), char **p, ...)
3825 char *s;
3826 va_list v;
3827 va_start (v,p);
3828 s = g (p, va_arg (v,int));
3829 va_end (v);
3830 return s;
3833 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3834 function prototypes and stuff, but not '\xHH' hex character constants.
3835 These don't provoke an error unfortunately, instead are silently treated
3836 as 'x'. The following induces an error, until -std is added to get
3837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3838 array size at least. It's necessary to write '\x00'==0 to get something
3839 that's true only with -std. */
3840 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3842 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3843 inside strings and character constants. */
3844 #define FOO(x) 'x'
3845 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3847 int test (int i, double x);
3848 struct s1 {int (*f) (int a);};
3849 struct s2 {int (*f) (double a);};
3850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3851 int argc;
3852 char **argv;
3854 main ()
3856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3858 return 0;
3860 _ACEOF
3861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864 CC="$ac_save_CC $ac_arg"
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_prog_cc_c89=$ac_arg
3868 rm -f core conftest.err conftest.$ac_objext
3869 test "x$ac_cv_prog_cc_c89" != "xno" && break
3870 done
3871 rm -f conftest.$ac_ext
3872 CC=$ac_save_CC
3875 # AC_CACHE_VAL
3876 case "x$ac_cv_prog_cc_c89" in
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3879 $as_echo "none needed" >&6; } ;;
3880 xno)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3882 $as_echo "unsupported" >&6; } ;;
3884 CC="$CC $ac_cv_prog_cc_c89"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3886 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3887 esac
3888 if test "x$ac_cv_prog_cc_c89" != xno; then :
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3904 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3905 if ${am_cv_prog_cc_c_o+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 # Make sure it works both with $CC and with simple cc.
3920 # Following AC_PROG_CC_C_O, we do the test twice because some
3921 # compilers refuse to overwrite an existing .o file with -o,
3922 # though they will create one.
3923 am_cv_prog_cc_c_o=yes
3924 for am_i in 1 2; do
3925 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3926 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } \
3930 && test -f conftest2.$ac_objext; then
3931 : OK
3932 else
3933 am_cv_prog_cc_c_o=no
3934 break
3936 done
3937 rm -f core conftest*
3938 unset am_i
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3941 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3942 if test "$am_cv_prog_cc_c_o" != yes; then
3943 # Losing compiler, so override with the script.
3944 # FIXME: It is wrong to rewrite CC.
3945 # But if we don't then we get into trouble of one sort or another.
3946 # A longer-term fix would be to have automake use am__CC in this case,
3947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3948 CC="$am_aux_dir/compile $CC"
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 DEPDIR="${am__leading_dot}deps"
3958 ac_config_commands="$ac_config_commands depfiles"
3961 am_make=${MAKE-make}
3962 cat > confinc << 'END'
3963 am__doit:
3964 @echo this is the am__doit target
3965 .PHONY: am__doit
3967 # If we don't find an include directive, just comment out the code.
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3970 am__include="#"
3971 am__quote=
3972 _am_result=none
3973 # First try GNU make style include.
3974 echo "include confinc" > confmf
3975 # Ignore all kinds of additional output from 'make'.
3976 case `$am_make -s -f confmf 2> /dev/null` in #(
3977 *the\ am__doit\ target*)
3978 am__include=include
3979 am__quote=
3980 _am_result=GNU
3982 esac
3983 # Now try BSD make style include.
3984 if test "$am__include" = "#"; then
3985 echo '.include "confinc"' > confmf
3986 case `$am_make -s -f confmf 2> /dev/null` in #(
3987 *the\ am__doit\ target*)
3988 am__include=.include
3989 am__quote="\""
3990 _am_result=BSD
3992 esac
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3997 $as_echo "$_am_result" >&6; }
3998 rm -f confinc confmf
4000 # Check whether --enable-dependency-tracking was given.
4001 if test "${enable_dependency_tracking+set}" = set; then :
4002 enableval=$enable_dependency_tracking;
4005 if test "x$enable_dependency_tracking" != xno; then
4006 am_depcomp="$ac_aux_dir/depcomp"
4007 AMDEPBACKSLASH='\'
4008 am__nodep='_no'
4010 if test "x$enable_dependency_tracking" != xno; then
4011 AMDEP_TRUE=
4012 AMDEP_FALSE='#'
4013 else
4014 AMDEP_TRUE='#'
4015 AMDEP_FALSE=
4020 depcc="$CC" am_compiler_list=
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4023 $as_echo_n "checking dependency style of $depcc... " >&6; }
4024 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028 # We make a subdir and do the tests there. Otherwise we can end up
4029 # making bogus files that we don't know about and never remove. For
4030 # instance it was reported that on HP-UX the gcc test will end up
4031 # making a dummy file named 'D' -- because '-MD' means "put the output
4032 # in D".
4033 rm -rf conftest.dir
4034 mkdir conftest.dir
4035 # Copy depcomp to subdir because otherwise we won't find it if we're
4036 # using a relative directory.
4037 cp "$am_depcomp" conftest.dir
4038 cd conftest.dir
4039 # We will build objects and dependencies in a subdirectory because
4040 # it helps to detect inapplicable dependency modes. For instance
4041 # both Tru64's cc and ICC support -MD to output dependencies as a
4042 # side effect of compilation, but ICC will put the dependencies in
4043 # the current directory while Tru64 will put them in the object
4044 # directory.
4045 mkdir sub
4047 am_cv_CC_dependencies_compiler_type=none
4048 if test "$am_compiler_list" = ""; then
4049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4051 am__universal=false
4052 case " $depcc " in #(
4053 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4054 esac
4056 for depmode in $am_compiler_list; do
4057 # Setup a source with many dependencies, because some compilers
4058 # like to wrap large dependency lists on column 80 (with \), and
4059 # we should not choose a depcomp mode which is confused by this.
4061 # We need to recreate these files for each test, as the compiler may
4062 # overwrite some of them when testing with obscure command lines.
4063 # This happens at least with the AIX C compiler.
4064 : > sub/conftest.c
4065 for i in 1 2 3 4 5 6; do
4066 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4067 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4068 # Solaris 10 /bin/sh.
4069 echo '/* dummy */' > sub/conftst$i.h
4070 done
4071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4073 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4074 # mode. It turns out that the SunPro C++ compiler does not properly
4075 # handle '-M -o', and we need to detect this. Also, some Intel
4076 # versions had trouble with output in subdirs.
4077 am__obj=sub/conftest.${OBJEXT-o}
4078 am__minus_obj="-o $am__obj"
4079 case $depmode in
4080 gcc)
4081 # This depmode causes a compiler race in universal mode.
4082 test "$am__universal" = false || continue
4084 nosideeffect)
4085 # After this tag, mechanisms are not by side-effect, so they'll
4086 # only be used when explicitly requested.
4087 if test "x$enable_dependency_tracking" = xyes; then
4088 continue
4089 else
4090 break
4093 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4094 # This compiler won't grok '-c -o', but also, the minuso test has
4095 # not run yet. These depmodes are late enough in the game, and
4096 # so weak that their functioning should not be impacted.
4097 am__obj=conftest.${OBJEXT-o}
4098 am__minus_obj=
4100 none) break ;;
4101 esac
4102 if depmode=$depmode \
4103 source=sub/conftest.c object=$am__obj \
4104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4106 >/dev/null 2>conftest.err &&
4107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4111 # icc doesn't choke on unknown options, it will just issue warnings
4112 # or remarks (even with -Werror). So we grep stderr for any message
4113 # that says an option was ignored or not supported.
4114 # When given -MP, icc 7.0 and 7.1 complain thusly:
4115 # icc: Command line warning: ignoring option '-M'; no argument required
4116 # The diagnosis changed in icc 8.0:
4117 # icc: Command line remark: option '-MP' not supported
4118 if (grep 'ignoring option' conftest.err ||
4119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4120 am_cv_CC_dependencies_compiler_type=$depmode
4121 break
4124 done
4126 cd ..
4127 rm -rf conftest.dir
4128 else
4129 am_cv_CC_dependencies_compiler_type=none
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4134 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4135 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138 test "x$enable_dependency_tracking" != xno \
4139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4140 am__fastdepCC_TRUE=
4141 am__fastdepCC_FALSE='#'
4142 else
4143 am__fastdepCC_TRUE='#'
4144 am__fastdepCC_FALSE=
4152 # Add CET specific flags if CET is enabled
4154 # Check whether --enable-cet was given.
4155 if test "${enable_cet+set}" = set; then :
4156 enableval=$enable_cet;
4157 case "$enableval" in
4158 yes|no|auto) ;;
4159 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4160 esac
4162 else
4163 enable_cet=auto
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4168 $as_echo_n "checking for CET support... " >&6; }
4170 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4171 case "$host" in
4172 i[34567]86-*-linux* | x86_64-*-linux*)
4173 case "$enable_cet" in
4174 auto)
4175 # Check if target supports multi-byte NOPs
4176 # and if compiler and assembler support CET insn.
4177 cet_save_CFLAGS="$CFLAGS"
4178 CFLAGS="$CFLAGS -fcf-protection"
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4186 #if !defined(__SSE2__)
4187 #error target does not support multi-byte NOPs
4188 #else
4189 asm ("setssbsy");
4190 #endif
4193 return 0;
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 enable_cet=yes
4198 else
4199 enable_cet=no
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 CFLAGS="$cet_save_CFLAGS"
4204 yes)
4205 # Check if assembler supports CET.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4212 asm ("setssbsy");
4214 return 0;
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4219 else
4220 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 esac
4227 enable_cet=no
4229 esac
4230 if test x$enable_cet = xyes; then
4231 CET_FLAGS="-fcf-protection -mshstk"
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233 $as_echo "yes" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4241 case `pwd` in
4242 *\ * | *\ *)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4244 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4245 esac
4249 macro_version='2.2.7a'
4250 macro_revision='1.3134'
4264 ltmain="$ac_aux_dir/ltmain.sh"
4266 # Backslashify metacharacters that are still active within
4267 # double-quoted strings.
4268 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4270 # Same as above, but do not quote variable references.
4271 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4273 # Sed substitution to delay expansion of an escaped shell variable in a
4274 # double_quote_subst'ed string.
4275 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4277 # Sed substitution to delay expansion of an escaped single quote.
4278 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4280 # Sed substitution to avoid accidental globbing in evaled expressions
4281 no_glob_subst='s/\*/\\\*/g'
4283 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4288 $as_echo_n "checking how to print strings... " >&6; }
4289 # Test print first, because it will be a builtin if present.
4290 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4291 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4292 ECHO='print -r --'
4293 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4294 ECHO='printf %s\n'
4295 else
4296 # Use this function as a fallback that always works.
4297 func_fallback_echo ()
4299 eval 'cat <<_LTECHO_EOF
4301 _LTECHO_EOF'
4303 ECHO='func_fallback_echo'
4306 # func_echo_all arg...
4307 # Invoke $ECHO with all args, space-separated.
4308 func_echo_all ()
4310 $ECHO ""
4313 case "$ECHO" in
4314 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4315 $as_echo "printf" >&6; } ;;
4316 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4317 $as_echo "print -r" >&6; } ;;
4318 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4319 $as_echo "cat" >&6; } ;;
4320 esac
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4337 if ${ac_cv_path_SED+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4341 for ac_i in 1 2 3 4 5 6 7; do
4342 ac_script="$ac_script$as_nl$ac_script"
4343 done
4344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4345 { ac_script=; unset ac_script;}
4346 if test -z "$SED"; then
4347 ac_path_SED_found=false
4348 # Loop through the user's path and test for each of PROGNAME-LIST
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_prog in sed gsed; do
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4357 as_fn_executable_p "$ac_path_SED" || continue
4358 # Check for GNU ac_path_SED and select it if it is found.
4359 # Check for GNU $ac_path_SED
4360 case `"$ac_path_SED" --version 2>&1` in
4361 *GNU*)
4362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4364 ac_count=0
4365 $as_echo_n 0123456789 >"conftest.in"
4366 while :
4368 cat "conftest.in" "conftest.in" >"conftest.tmp"
4369 mv "conftest.tmp" "conftest.in"
4370 cp "conftest.in" "conftest.nl"
4371 $as_echo '' >> "conftest.nl"
4372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374 as_fn_arith $ac_count + 1 && ac_count=$as_val
4375 if test $ac_count -gt ${ac_path_SED_max-0}; then
4376 # Best one so far, save it but keep looking for a better one
4377 ac_cv_path_SED="$ac_path_SED"
4378 ac_path_SED_max=$ac_count
4380 # 10*(2^10) chars as input seems more than enough
4381 test $ac_count -gt 10 && break
4382 done
4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384 esac
4386 $ac_path_SED_found && break 3
4387 done
4388 done
4389 done
4390 IFS=$as_save_IFS
4391 if test -z "$ac_cv_path_SED"; then
4392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4394 else
4395 ac_cv_path_SED=$SED
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4400 $as_echo "$ac_cv_path_SED" >&6; }
4401 SED="$ac_cv_path_SED"
4402 rm -f conftest.sed
4404 test -z "$SED" && SED=sed
4405 Xsed="$SED -e 1s/^X//"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4418 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4419 if ${ac_cv_path_GREP+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -z "$GREP"; then
4423 ac_path_GREP_found=false
4424 # Loop through the user's path and test for each of PROGNAME-LIST
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_prog in grep ggrep; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4433 as_fn_executable_p "$ac_path_GREP" || continue
4434 # Check for GNU ac_path_GREP and select it if it is found.
4435 # Check for GNU $ac_path_GREP
4436 case `"$ac_path_GREP" --version 2>&1` in
4437 *GNU*)
4438 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4440 ac_count=0
4441 $as_echo_n 0123456789 >"conftest.in"
4442 while :
4444 cat "conftest.in" "conftest.in" >"conftest.tmp"
4445 mv "conftest.tmp" "conftest.in"
4446 cp "conftest.in" "conftest.nl"
4447 $as_echo 'GREP' >> "conftest.nl"
4448 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4450 as_fn_arith $ac_count + 1 && ac_count=$as_val
4451 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4452 # Best one so far, save it but keep looking for a better one
4453 ac_cv_path_GREP="$ac_path_GREP"
4454 ac_path_GREP_max=$ac_count
4456 # 10*(2^10) chars as input seems more than enough
4457 test $ac_count -gt 10 && break
4458 done
4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4460 esac
4462 $ac_path_GREP_found && break 3
4463 done
4464 done
4465 done
4466 IFS=$as_save_IFS
4467 if test -z "$ac_cv_path_GREP"; then
4468 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 else
4471 ac_cv_path_GREP=$GREP
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4476 $as_echo "$ac_cv_path_GREP" >&6; }
4477 GREP="$ac_cv_path_GREP"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4481 $as_echo_n "checking for egrep... " >&6; }
4482 if ${ac_cv_path_EGREP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4486 then ac_cv_path_EGREP="$GREP -E"
4487 else
4488 if test -z "$EGREP"; then
4489 ac_path_EGREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in egrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4499 as_fn_executable_p "$ac_path_EGREP" || continue
4500 # Check for GNU ac_path_EGREP and select it if it is found.
4501 # Check for GNU $ac_path_EGREP
4502 case `"$ac_path_EGREP" --version 2>&1` in
4503 *GNU*)
4504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'EGREP' >> "conftest.nl"
4514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 as_fn_arith $ac_count + 1 && ac_count=$as_val
4517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_EGREP="$ac_path_EGREP"
4520 ac_path_EGREP_max=$ac_count
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 esac
4528 $ac_path_EGREP_found && break 3
4529 done
4530 done
4531 done
4532 IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_EGREP"; then
4534 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 else
4537 ac_cv_path_EGREP=$EGREP
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4543 $as_echo "$ac_cv_path_EGREP" >&6; }
4544 EGREP="$ac_cv_path_EGREP"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4548 $as_echo_n "checking for fgrep... " >&6; }
4549 if ${ac_cv_path_FGREP+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4553 then ac_cv_path_FGREP="$GREP -F"
4554 else
4555 if test -z "$FGREP"; then
4556 ac_path_FGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in fgrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 as_fn_executable_p "$ac_path_FGREP" || continue
4567 # Check for GNU ac_path_FGREP and select it if it is found.
4568 # Check for GNU $ac_path_FGREP
4569 case `"$ac_path_FGREP" --version 2>&1` in
4570 *GNU*)
4571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'FGREP' >> "conftest.nl"
4581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_FGREP="$ac_path_FGREP"
4587 ac_path_FGREP_max=$ac_count
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 esac
4595 $ac_path_FGREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_FGREP"; then
4601 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 else
4604 ac_cv_path_FGREP=$FGREP
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4610 $as_echo "$ac_cv_path_FGREP" >&6; }
4611 FGREP="$ac_cv_path_FGREP"
4614 test -z "$GREP" && GREP=grep
4634 # Check whether --with-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then :
4636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4637 else
4638 with_gnu_ld=no
4641 ac_prog=ld
4642 if test "$GCC" = yes; then
4643 # Check if gcc -print-prog-name=ld gives a path.
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4645 $as_echo_n "checking for ld used by $CC... " >&6; }
4646 case $host in
4647 *-*-mingw*)
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652 esac
4653 case $ac_prog in
4654 # Accept absolute paths.
4655 [\\/]* | ?:[\\/]*)
4656 re_direlt='/[^/][^/]*/\.\./'
4657 # Canonicalize the pathname of ld
4658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4661 done
4662 test -z "$LD" && LD="$ac_prog"
4665 # If it fails, then pretend we aren't using GCC.
4666 ac_prog=ld
4669 # If it is relative, then search for the first ld in PATH.
4670 with_gnu_ld=unknown
4672 esac
4673 elif test "$with_gnu_ld" = yes; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4675 $as_echo_n "checking for GNU ld... " >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4678 $as_echo_n "checking for non-GNU ld... " >&6; }
4680 if ${lt_cv_path_LD+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -z "$LD"; then
4684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4685 for ac_dir in $PATH; do
4686 IFS="$lt_save_ifs"
4687 test -z "$ac_dir" && ac_dir=.
4688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4689 lt_cv_path_LD="$ac_dir/$ac_prog"
4690 # Check to see if the program is GNU ld. I'd rather use --version,
4691 # but apparently some variants of GNU ld only accept -v.
4692 # Break only if it was the GNU/non-GNU ld that we prefer.
4693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4694 *GNU* | *'with BFD'*)
4695 test "$with_gnu_ld" != no && break
4698 test "$with_gnu_ld" != yes && break
4700 esac
4702 done
4703 IFS="$lt_save_ifs"
4704 else
4705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4709 LD="$lt_cv_path_LD"
4710 if test -n "$LD"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4712 $as_echo "$LD" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4717 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4720 if ${lt_cv_prog_gnu_ld+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4724 case `$LD -v 2>&1 </dev/null` in
4725 *GNU* | *'with BFD'*)
4726 lt_cv_prog_gnu_ld=yes
4729 lt_cv_prog_gnu_ld=no
4731 esac
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4734 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4735 with_gnu_ld=$lt_cv_prog_gnu_ld
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4746 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4747 if ${lt_cv_path_NM+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$NM"; then
4751 # Let the user override the nm to test.
4752 lt_nm_to_check="$NM"
4753 else
4754 lt_nm_to_check="${ac_tool_prefix}nm"
4755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4756 lt_nm_to_check="$lt_nm_to_check nm"
4759 for lt_tmp_nm in "$lt_nm_to_check"; do
4760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4762 IFS="$lt_save_ifs"
4763 test -z "$ac_dir" && ac_dir=.
4764 # Strip out any user-provided options from the nm to test twice,
4765 # the first time to test to see if nm (rather than its options) has
4766 # an explicit path, the second time to yield a file which can be
4767 # nm'ed itself.
4768 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
4769 case "$tmp_nm_path" in
4770 */*|*\\*) tmp_nm="$lt_tmp_nm";;
4771 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
4772 esac
4773 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
4774 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
4775 # Check to see if the nm accepts a BSD-compat flag.
4776 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4777 # nm: unknown option "B" ignored
4778 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4779 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
4780 break
4783 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4784 *$tmp_nm*)
4785 lt_cv_path_NM="$tmp_nm -p"
4786 break
4789 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4790 continue # so that we can try to find one that supports BSD flags
4792 esac
4794 esac
4796 done
4797 IFS="$lt_save_ifs"
4798 done
4799 : ${lt_cv_path_NM=no}
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4802 $as_echo "$lt_cv_path_NM" >&6; }
4803 if test "$lt_cv_path_NM" != "no"; then
4804 NM="$lt_cv_path_NM"
4805 else
4806 # Didn't find any BSD compatible name lister, look for dumpbin.
4807 if test -n "$DUMPBIN"; then :
4808 # Let the user override the test.
4809 else
4810 if test -n "$ac_tool_prefix"; then
4811 for ac_prog in dumpbin "link -dump"
4813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_DUMPBIN+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$DUMPBIN"; then
4821 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4834 done
4835 done
4836 IFS=$as_save_IFS
4840 DUMPBIN=$ac_cv_prog_DUMPBIN
4841 if test -n "$DUMPBIN"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4843 $as_echo "$DUMPBIN" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4850 test -n "$DUMPBIN" && break
4851 done
4853 if test -z "$DUMPBIN"; then
4854 ac_ct_DUMPBIN=$DUMPBIN
4855 for ac_prog in dumpbin "link -dump"
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$ac_ct_DUMPBIN"; then
4865 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4885 if test -n "$ac_ct_DUMPBIN"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4887 $as_echo "$ac_ct_DUMPBIN" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4894 test -n "$ac_ct_DUMPBIN" && break
4895 done
4897 if test "x$ac_ct_DUMPBIN" = x; then
4898 DUMPBIN=":"
4899 else
4900 case $cross_compiling:$ac_tool_warned in
4901 yes:)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned=yes ;;
4905 esac
4906 DUMPBIN=$ac_ct_DUMPBIN
4910 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4911 *COFF*)
4912 DUMPBIN="$DUMPBIN -symbols"
4915 DUMPBIN=:
4917 esac
4920 if test "$DUMPBIN" != ":"; then
4921 NM="$DUMPBIN"
4924 test -z "$NM" && NM=nm
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4932 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4933 if ${lt_cv_nm_interface+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 lt_cv_nm_interface="BSD nm"
4937 echo "int some_variable = 0;" > conftest.$ac_ext
4938 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4939 (eval "$ac_compile" 2>conftest.err)
4940 cat conftest.err >&5
4941 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4942 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4943 cat conftest.err >&5
4944 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4945 cat conftest.out >&5
4946 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4947 lt_cv_nm_interface="MS dumpbin"
4949 rm -f conftest*
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4952 $as_echo "$lt_cv_nm_interface" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4955 $as_echo_n "checking whether ln -s works... " >&6; }
4956 LN_S=$as_ln_s
4957 if test "$LN_S" = "ln -s"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4959 $as_echo "yes" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4962 $as_echo "no, using $LN_S" >&6; }
4965 # find the maximum length of command line arguments
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4967 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4968 if ${lt_cv_sys_max_cmd_len+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4972 teststring="ABCD"
4974 case $build_os in
4975 msdosdjgpp*)
4976 # On DJGPP, this test can blow up pretty badly due to problems in libc
4977 # (any single argument exceeding 2000 bytes causes a buffer overrun
4978 # during glob expansion). Even if it were fixed, the result of this
4979 # check would be larger than it should be.
4980 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4983 gnu*)
4984 # Under GNU Hurd, this test is not required because there is
4985 # no limit to the length of command line arguments.
4986 # Libtool will interpret -1 as no limit whatsoever
4987 lt_cv_sys_max_cmd_len=-1;
4990 cygwin* | mingw* | cegcc*)
4991 # On Win9x/ME, this test blows up -- it succeeds, but takes
4992 # about 5 minutes as the teststring grows exponentially.
4993 # Worse, since 9x/ME are not pre-emptively multitasking,
4994 # you end up with a "frozen" computer, even though with patience
4995 # the test eventually succeeds (with a max line length of 256k).
4996 # Instead, let's just punt: use the minimum linelength reported by
4997 # all of the supported platforms: 8192 (on NT/2K/XP).
4998 lt_cv_sys_max_cmd_len=8192;
5001 mint*)
5002 # On MiNT this can take a long time and run out of memory.
5003 lt_cv_sys_max_cmd_len=8192;
5006 amigaos*)
5007 # On AmigaOS with pdksh, this test takes hours, literally.
5008 # So we just punt and use a minimum line length of 8192.
5009 lt_cv_sys_max_cmd_len=8192;
5012 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5013 # This has been around since 386BSD, at least. Likely further.
5014 if test -x /sbin/sysctl; then
5015 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5016 elif test -x /usr/sbin/sysctl; then
5017 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5018 else
5019 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5021 # And add a safety zone
5022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5026 interix*)
5027 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5028 lt_cv_sys_max_cmd_len=196608
5031 osf*)
5032 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5033 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5034 # nice to cause kernel panics so lets avoid the loop below.
5035 # First set a reasonable default.
5036 lt_cv_sys_max_cmd_len=16384
5038 if test -x /sbin/sysconfig; then
5039 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5040 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5041 esac
5044 sco3.2v5*)
5045 lt_cv_sys_max_cmd_len=102400
5047 sysv5* | sco5v6* | sysv4.2uw2*)
5048 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5049 if test -n "$kargmax"; then
5050 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5051 else
5052 lt_cv_sys_max_cmd_len=32768
5056 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5057 if test -n "$lt_cv_sys_max_cmd_len"; then
5058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5060 else
5061 # Make teststring a little bigger before we do anything with it.
5062 # a 1K string should be a reasonable start.
5063 for i in 1 2 3 4 5 6 7 8 ; do
5064 teststring=$teststring$teststring
5065 done
5066 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5067 # If test is not a shell built-in, we'll probably end up computing a
5068 # maximum length that is only half of the actual maximum length, but
5069 # we can't tell.
5070 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5071 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5072 test $i != 17 # 1/2 MB should be enough
5074 i=`expr $i + 1`
5075 teststring=$teststring$teststring
5076 done
5077 # Only check the string length outside the loop.
5078 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5079 teststring=
5080 # Add a significant safety factor because C++ compilers can tack on
5081 # massive amounts of additional arguments before passing them to the
5082 # linker. It appears as though 1/2 is a usable value.
5083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5086 esac
5090 if test -n $lt_cv_sys_max_cmd_len ; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5092 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5095 $as_echo "none" >&6; }
5097 max_cmd_len=$lt_cv_sys_max_cmd_len
5104 : ${CP="cp -f"}
5105 : ${MV="mv -f"}
5106 : ${RM="rm -f"}
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5109 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5110 # Try some XSI features
5111 xsi_shell=no
5112 ( _lt_dummy="a/b/c"
5113 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5114 = c,a/b,, \
5115 && eval 'test $(( 1 + 1 )) -eq 2 \
5116 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5117 && xsi_shell=yes
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5119 $as_echo "$xsi_shell" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5123 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5124 lt_shell_append=no
5125 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5126 >/dev/null 2>&1 \
5127 && lt_shell_append=yes
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5129 $as_echo "$lt_shell_append" >&6; }
5132 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5133 lt_unset=unset
5134 else
5135 lt_unset=false
5142 # test EBCDIC or ASCII
5143 case `echo X|tr X '\101'` in
5144 A) # ASCII based system
5145 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5146 lt_SP2NL='tr \040 \012'
5147 lt_NL2SP='tr \015\012 \040\040'
5149 *) # EBCDIC based system
5150 lt_SP2NL='tr \100 \n'
5151 lt_NL2SP='tr \r\n \100\100'
5153 esac
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5164 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5165 if ${lt_cv_ld_reload_flag+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 lt_cv_ld_reload_flag='-r'
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5171 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5172 reload_flag=$lt_cv_ld_reload_flag
5173 case $reload_flag in
5174 "" | " "*) ;;
5175 *) reload_flag=" $reload_flag" ;;
5176 esac
5177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5178 case $host_os in
5179 darwin*)
5180 if test "$GCC" = yes; then
5181 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5182 else
5183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5186 esac
5196 if test -n "$ac_tool_prefix"; then
5197 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5198 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_OBJDUMP+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$OBJDUMP"; then
5205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5218 done
5219 done
5220 IFS=$as_save_IFS
5224 OBJDUMP=$ac_cv_prog_OBJDUMP
5225 if test -n "$OBJDUMP"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5227 $as_echo "$OBJDUMP" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5235 if test -z "$ac_cv_prog_OBJDUMP"; then
5236 ac_ct_OBJDUMP=$OBJDUMP
5237 # Extract the first word of "objdump", so it can be a program name with args.
5238 set dummy objdump; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 if test -n "$ac_ct_OBJDUMP"; then
5245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5260 IFS=$as_save_IFS
5264 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5265 if test -n "$ac_ct_OBJDUMP"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5267 $as_echo "$ac_ct_OBJDUMP" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5273 if test "x$ac_ct_OBJDUMP" = x; then
5274 OBJDUMP="false"
5275 else
5276 case $cross_compiling:$ac_tool_warned in
5277 yes:)
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280 ac_tool_warned=yes ;;
5281 esac
5282 OBJDUMP=$ac_ct_OBJDUMP
5284 else
5285 OBJDUMP="$ac_cv_prog_OBJDUMP"
5288 test -z "$OBJDUMP" && OBJDUMP=objdump
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5299 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5300 if ${lt_cv_deplibs_check_method+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 lt_cv_file_magic_cmd='$MAGIC_CMD'
5304 lt_cv_file_magic_test_file=
5305 lt_cv_deplibs_check_method='unknown'
5306 # Need to set the preceding variable on all platforms that support
5307 # interlibrary dependencies.
5308 # 'none' -- dependencies not supported.
5309 # `unknown' -- same as none, but documents that we really don't know.
5310 # 'pass_all' -- all dependencies passed with no checks.
5311 # 'test_compile' -- check by making test program.
5312 # 'file_magic [[regex]]' -- check by looking for files in library path
5313 # which responds to the $file_magic_cmd with a given extended regex.
5314 # If you have `file' or equivalent on your system and you're not sure
5315 # whether `pass_all' will *always* work, you probably want this one.
5317 case $host_os in
5318 aix[4-9]*)
5319 lt_cv_deplibs_check_method=pass_all
5322 beos*)
5323 lt_cv_deplibs_check_method=pass_all
5326 bsdi[45]*)
5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5328 lt_cv_file_magic_cmd='/usr/bin/file -L'
5329 lt_cv_file_magic_test_file=/shlib/libc.so
5332 cygwin*)
5333 # func_win32_libid is a shell function defined in ltmain.sh
5334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5335 lt_cv_file_magic_cmd='func_win32_libid'
5338 mingw* | pw32*)
5339 # Base MSYS/MinGW do not provide the 'file' command needed by
5340 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5341 # unless we find 'file', for example because we are cross-compiling.
5342 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5343 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5345 lt_cv_file_magic_cmd='func_win32_libid'
5346 else
5347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5352 cegcc*)
5353 # use the weaker test based on 'objdump'. See mingw*.
5354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5355 lt_cv_file_magic_cmd='$OBJDUMP -f'
5358 darwin* | rhapsody*)
5359 lt_cv_deplibs_check_method=pass_all
5362 freebsd* | dragonfly*)
5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5364 case $host_cpu in
5365 i*86 )
5366 # Not sure whether the presence of OpenBSD here was a mistake.
5367 # Let's accept both of them until this is cleared up.
5368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5369 lt_cv_file_magic_cmd=/usr/bin/file
5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5372 esac
5373 else
5374 lt_cv_deplibs_check_method=pass_all
5378 gnu*)
5379 lt_cv_deplibs_check_method=pass_all
5382 haiku*)
5383 lt_cv_deplibs_check_method=pass_all
5386 hpux10.20* | hpux11*)
5387 lt_cv_file_magic_cmd=/usr/bin/file
5388 case $host_cpu in
5389 ia64*)
5390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5391 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5393 hppa*64*)
5394 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]'
5395 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5401 esac
5404 interix[3-9]*)
5405 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5409 irix5* | irix6* | nonstopux*)
5410 case $LD in
5411 *-32|*"-32 ") libmagic=32-bit;;
5412 *-n32|*"-n32 ") libmagic=N32;;
5413 *-64|*"-64 ") libmagic=64-bit;;
5414 *) libmagic=never-match;;
5415 esac
5416 lt_cv_deplibs_check_method=pass_all
5419 # This must be Linux ELF.
5420 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5421 lt_cv_deplibs_check_method=pass_all
5424 netbsd*)
5425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5427 else
5428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5432 newos6*)
5433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5434 lt_cv_file_magic_cmd=/usr/bin/file
5435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5438 *nto* | *qnx*)
5439 lt_cv_deplibs_check_method=pass_all
5442 openbsd*)
5443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5445 else
5446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450 osf3* | osf4* | osf5*)
5451 lt_cv_deplibs_check_method=pass_all
5454 rdos*)
5455 lt_cv_deplibs_check_method=pass_all
5458 solaris*)
5459 lt_cv_deplibs_check_method=pass_all
5462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5463 lt_cv_deplibs_check_method=pass_all
5466 sysv4 | sysv4.3*)
5467 case $host_vendor in
5468 motorola)
5469 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]'
5470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5472 ncr)
5473 lt_cv_deplibs_check_method=pass_all
5475 sequent)
5476 lt_cv_file_magic_cmd='/bin/file'
5477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5479 sni)
5480 lt_cv_file_magic_cmd='/bin/file'
5481 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5482 lt_cv_file_magic_test_file=/lib/libc.so
5484 siemens)
5485 lt_cv_deplibs_check_method=pass_all
5488 lt_cv_deplibs_check_method=pass_all
5490 esac
5493 tpf*)
5494 lt_cv_deplibs_check_method=pass_all
5496 vxworks*)
5497 # Assume VxWorks cross toolchains are built on Linux, possibly
5498 # as canadian for Windows hosts.
5499 lt_cv_deplibs_check_method=pass_all
5501 esac
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5505 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5506 file_magic_cmd=$lt_cv_file_magic_cmd
5507 deplibs_check_method=$lt_cv_deplibs_check_method
5508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5521 plugin_option=
5522 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5523 for plugin in $plugin_names; do
5524 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5525 if test x$plugin_so = x$plugin; then
5526 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5528 if test x$plugin_so != x$plugin; then
5529 plugin_option="--plugin $plugin_so"
5530 break
5532 done
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}ar; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_AR+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$AR"; then
5543 ac_cv_prog_AR="$AR" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_AR="${ac_tool_prefix}ar"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5556 done
5557 done
5558 IFS=$as_save_IFS
5562 AR=$ac_cv_prog_AR
5563 if test -n "$AR"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5565 $as_echo "$AR" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5573 if test -z "$ac_cv_prog_AR"; then
5574 ac_ct_AR=$AR
5575 # Extract the first word of "ar", so it can be a program name with args.
5576 set dummy ar; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$ac_ct_AR"; then
5583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_AR="ar"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5603 if test -n "$ac_ct_AR"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5605 $as_echo "$ac_ct_AR" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5611 if test "x$ac_ct_AR" = x; then
5612 AR="false"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615 yes:)
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5619 esac
5620 AR=$ac_ct_AR
5622 else
5623 AR="$ac_cv_prog_AR"
5626 test -z "$AR" && AR=ar
5627 if test -n "$plugin_option"; then
5628 if $AR --help 2>&1 | grep -q "\--plugin"; then
5629 touch conftest.c
5630 $AR $plugin_option rc conftest.a conftest.c
5631 if test "$?" != 0; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5633 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5634 else
5635 AR="$AR $plugin_option"
5637 rm -f conftest.*
5640 test -z "$AR_FLAGS" && AR_FLAGS=cru
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}strip; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_STRIP+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$STRIP"; then
5661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5680 STRIP=$ac_cv_prog_STRIP
5681 if test -n "$STRIP"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5683 $as_echo "$STRIP" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5691 if test -z "$ac_cv_prog_STRIP"; then
5692 ac_ct_STRIP=$STRIP
5693 # Extract the first word of "strip", so it can be a program name with args.
5694 set dummy strip; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$ac_ct_STRIP"; then
5701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_ac_ct_STRIP="strip"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5714 done
5715 done
5716 IFS=$as_save_IFS
5720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5721 if test -n "$ac_ct_STRIP"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5723 $as_echo "$ac_ct_STRIP" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5729 if test "x$ac_ct_STRIP" = x; then
5730 STRIP=":"
5731 else
5732 case $cross_compiling:$ac_tool_warned in
5733 yes:)
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5736 ac_tool_warned=yes ;;
5737 esac
5738 STRIP=$ac_ct_STRIP
5740 else
5741 STRIP="$ac_cv_prog_STRIP"
5744 test -z "$STRIP" && STRIP=:
5751 if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_RANLIB+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$RANLIB"; then
5760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 RANLIB=$ac_cv_prog_RANLIB
5780 if test -n "$RANLIB"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5782 $as_echo "$RANLIB" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5790 if test -z "$ac_cv_prog_RANLIB"; then
5791 ac_ct_RANLIB=$RANLIB
5792 # Extract the first word of "ranlib", so it can be a program name with args.
5793 set dummy ranlib; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$ac_ct_RANLIB"; then
5800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_RANLIB="ranlib"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5813 done
5814 done
5815 IFS=$as_save_IFS
5819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5820 if test -n "$ac_ct_RANLIB"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5822 $as_echo "$ac_ct_RANLIB" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5828 if test "x$ac_ct_RANLIB" = x; then
5829 RANLIB=":"
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832 yes:)
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835 ac_tool_warned=yes ;;
5836 esac
5837 RANLIB=$ac_ct_RANLIB
5839 else
5840 RANLIB="$ac_cv_prog_RANLIB"
5843 test -z "$RANLIB" && RANLIB=:
5844 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5845 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5846 RANLIB="$RANLIB $plugin_option"
5855 # Determine commands to create old-style static archives.
5856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5857 old_postinstall_cmds='chmod 644 $oldlib'
5858 old_postuninstall_cmds=
5860 if test -n "$RANLIB"; then
5861 case $host_os in
5862 openbsd*)
5863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5868 esac
5869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5872 case $host_os in
5873 darwin*)
5874 lock_old_archive_extraction=yes ;;
5876 lock_old_archive_extraction=no ;;
5877 esac
5917 # If no C compiler was specified, use CC.
5918 LTCC=${LTCC-"$CC"}
5920 # If no C compiler flags were specified, use CFLAGS.
5921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5923 # Allow CC to be a program name with arguments.
5924 compiler=$CC
5927 # Check for command to grab the raw symbol name followed by C symbol from nm.
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5929 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5930 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5934 # These are sane defaults that work on at least a few old systems.
5935 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5937 # Character class describing NM global symbol codes.
5938 symcode='[BCDEGRST]'
5940 # Regexp to match symbols that can be accessed directly from C.
5941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5943 # Define system-specific variables.
5944 case $host_os in
5945 aix*)
5946 symcode='[BCDT]'
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 symcode='[ABCDGISTW]'
5951 hpux*)
5952 if test "$host_cpu" = ia64; then
5953 symcode='[ABCDEGRST]'
5956 irix* | nonstopux*)
5957 symcode='[BCDEGRST]'
5959 osf*)
5960 symcode='[BCDEGQRST]'
5962 solaris*)
5963 symcode='[BCDRT]'
5965 sco3.2v5*)
5966 symcode='[DT]'
5968 sysv4.2uw2*)
5969 symcode='[DT]'
5971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5972 symcode='[ABDT]'
5974 sysv4)
5975 symcode='[DFNSTU]'
5977 esac
5979 # If we're using GNU nm, then use its standard symbol codes.
5980 case `$NM -V 2>&1` in
5981 *GNU* | *'with BFD'*)
5982 symcode='[ABCDGIRSTW]' ;;
5983 esac
5985 # Transform an extracted symbol line into a proper C declaration.
5986 # Some systems (esp. on ia64) link data and code symbols differently,
5987 # so use this general approach.
5988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5990 # Transform an extracted symbol line into symbol name and symbol address
5991 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5992 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5994 # Handle CRLF in mingw tool chain
5995 opt_cr=
5996 case $build_os in
5997 mingw*)
5998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6000 esac
6002 # Try without a prefix underscore, then with it.
6003 for ac_symprfx in "" "_"; do
6005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6006 symxfrm="\\1 $ac_symprfx\\2 \\2"
6008 # Write the raw and C identifiers.
6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6010 # Fake it for dumpbin and say T for any non-static function
6011 # and D for any global variable.
6012 # Also find C++ and __fastcall symbols from MSVC++,
6013 # which start with @ or ?.
6014 lt_cv_sys_global_symbol_pipe="$AWK '"\
6015 " {last_section=section; section=\$ 3};"\
6016 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6017 " \$ 0!~/External *\|/{next};"\
6018 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6019 " {if(hide[section]) next};"\
6020 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6021 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6022 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6023 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6024 " ' prfx=^$ac_symprfx"
6025 else
6026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6029 # Check to see that the pipe works correctly.
6030 pipe_works=no
6032 rm -f conftest*
6033 cat > conftest.$ac_ext <<_LT_EOF
6034 #ifdef __cplusplus
6035 extern "C" {
6036 #endif
6037 char nm_test_var;
6038 void nm_test_func(void);
6039 void nm_test_func(void){}
6040 #ifdef __cplusplus
6042 #endif
6043 int main(){nm_test_var='a';nm_test_func();return(0);}
6044 _LT_EOF
6046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6047 (eval $ac_compile) 2>&5
6048 ac_status=$?
6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050 test $ac_status = 0; }; then
6051 # Now try to grab the symbols.
6052 nlist=conftest.nm
6053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6054 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6055 ac_status=$?
6056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057 test $ac_status = 0; } && test -s "$nlist"; then
6058 # Try sorting and uniquifying the output.
6059 if sort "$nlist" | uniq > "$nlist"T; then
6060 mv -f "$nlist"T "$nlist"
6061 else
6062 rm -f "$nlist"T
6065 # Make sure that we snagged all the symbols we need.
6066 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6067 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6068 cat <<_LT_EOF > conftest.$ac_ext
6069 #ifdef __cplusplus
6070 extern "C" {
6071 #endif
6073 _LT_EOF
6074 # Now generate the symbol file.
6075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6077 cat <<_LT_EOF >> conftest.$ac_ext
6079 /* The mapping between symbol names and symbols. */
6080 const struct {
6081 const char *name;
6082 void *address;
6084 lt__PROGRAM__LTX_preloaded_symbols[] =
6086 { "@PROGRAM@", (void *) 0 },
6087 _LT_EOF
6088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6089 cat <<\_LT_EOF >> conftest.$ac_ext
6090 {0, (void *) 0}
6093 /* This works around a problem in FreeBSD linker */
6094 #ifdef FREEBSD_WORKAROUND
6095 static const void *lt_preloaded_setup() {
6096 return lt__PROGRAM__LTX_preloaded_symbols;
6098 #endif
6100 #ifdef __cplusplus
6102 #endif
6103 _LT_EOF
6104 # Now try linking the two files.
6105 mv conftest.$ac_objext conftstm.$ac_objext
6106 lt_save_LIBS="$LIBS"
6107 lt_save_CFLAGS="$CFLAGS"
6108 LIBS="conftstm.$ac_objext"
6109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6111 (eval $ac_link) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6115 pipe_works=yes
6117 LIBS="$lt_save_LIBS"
6118 CFLAGS="$lt_save_CFLAGS"
6119 else
6120 echo "cannot find nm_test_func in $nlist" >&5
6122 else
6123 echo "cannot find nm_test_var in $nlist" >&5
6125 else
6126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6128 else
6129 echo "$progname: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6132 rm -rf conftest* conftst*
6134 # Do not use the global_symbol_pipe unless it works.
6135 if test "$pipe_works" = yes; then
6136 break
6137 else
6138 lt_cv_sys_global_symbol_pipe=
6140 done
6144 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6145 lt_cv_sys_global_symbol_to_cdecl=
6147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6149 $as_echo "failed" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6152 $as_echo "ok" >&6; }
6176 # Check whether --enable-libtool-lock was given.
6177 if test "${enable_libtool_lock+set}" = set; then :
6178 enableval=$enable_libtool_lock;
6181 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6183 # Some flags need to be propagated to the compiler or linker for good
6184 # libtool support.
6185 case $host in
6186 ia64-*-hpux*)
6187 # Find out which ABI we are using.
6188 echo 'int i;' > conftest.$ac_ext
6189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6190 (eval $ac_compile) 2>&5
6191 ac_status=$?
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }; then
6194 case `/usr/bin/file conftest.$ac_objext` in
6195 *ELF-32*)
6196 HPUX_IA64_MODE="32"
6198 *ELF-64*)
6199 HPUX_IA64_MODE="64"
6201 esac
6203 rm -rf conftest*
6205 *-*-irix6*)
6206 # Find out which ABI we are using.
6207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; then
6213 if test "$lt_cv_prog_gnu_ld" = yes; then
6214 case `/usr/bin/file conftest.$ac_objext` in
6215 *32-bit*)
6216 LD="${LD-ld} -melf32bsmip"
6218 *N32*)
6219 LD="${LD-ld} -melf32bmipn32"
6221 *64-bit*)
6222 LD="${LD-ld} -melf64bmip"
6224 esac
6225 else
6226 case `/usr/bin/file conftest.$ac_objext` in
6227 *32-bit*)
6228 LD="${LD-ld} -32"
6230 *N32*)
6231 LD="${LD-ld} -n32"
6233 *64-bit*)
6234 LD="${LD-ld} -64"
6236 esac
6239 rm -rf conftest*
6242 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6243 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6244 # Find out which ABI we are using.
6245 echo 'int i;' > conftest.$ac_ext
6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6247 (eval $ac_compile) 2>&5
6248 ac_status=$?
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }; then
6251 case `/usr/bin/file conftest.o` in
6252 *32-bit*)
6253 case $host in
6254 x86_64-*kfreebsd*-gnu)
6255 LD="${LD-ld} -m elf_i386_fbsd"
6257 x86_64-*linux*)
6258 case `/usr/bin/file conftest.o` in
6259 *x86-64*)
6260 LD="${LD-ld} -m elf32_x86_64"
6263 LD="${LD-ld} -m elf_i386"
6265 esac
6267 powerpc64le-*linux*)
6268 LD="${LD-ld} -m elf32lppclinux"
6270 powerpc64-*linux*)
6271 LD="${LD-ld} -m elf32ppclinux"
6273 s390x-*linux*)
6274 LD="${LD-ld} -m elf_s390"
6276 sparc64-*linux*)
6277 LD="${LD-ld} -m elf32_sparc"
6279 esac
6281 *64-bit*)
6282 case $host in
6283 x86_64-*kfreebsd*-gnu)
6284 LD="${LD-ld} -m elf_x86_64_fbsd"
6286 x86_64-*linux*)
6287 LD="${LD-ld} -m elf_x86_64"
6289 powerpcle-*linux*)
6290 LD="${LD-ld} -m elf64lppc"
6292 powerpc-*linux*)
6293 LD="${LD-ld} -m elf64ppc"
6295 s390*-*linux*|s390*-*tpf*)
6296 LD="${LD-ld} -m elf64_s390"
6298 sparc*-*linux*)
6299 LD="${LD-ld} -m elf64_sparc"
6301 esac
6303 esac
6305 rm -rf conftest*
6308 *-*-sco3.2v5*)
6309 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6310 SAVE_CFLAGS="$CFLAGS"
6311 CFLAGS="$CFLAGS -belf"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6313 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6314 if ${lt_cv_cc_needs_belf+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 ac_ext=c
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323 if test x$gcc_no_link = xyes; then
6324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6330 main ()
6334 return 0;
6336 _ACEOF
6337 if ac_fn_c_try_link "$LINENO"; then :
6338 lt_cv_cc_needs_belf=yes
6339 else
6340 lt_cv_cc_needs_belf=no
6342 rm -f core conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
6344 ac_ext=c
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6352 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6353 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6354 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6355 CFLAGS="$SAVE_CFLAGS"
6358 sparc*-*solaris*)
6359 # Find out which ABI we are using.
6360 echo 'int i;' > conftest.$ac_ext
6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6362 (eval $ac_compile) 2>&5
6363 ac_status=$?
6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
6366 case `/usr/bin/file conftest.o` in
6367 *64-bit*)
6368 case $lt_cv_prog_gnu_ld in
6369 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6371 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6372 LD="${LD-ld} -64"
6375 esac
6377 esac
6379 rm -rf conftest*
6381 esac
6383 need_locks="$enable_libtool_lock"
6386 case $host_os in
6387 rhapsody* | darwin*)
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 if test -n "$DSYMUTIL"; then
6397 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6410 done
6411 done
6412 IFS=$as_save_IFS
6416 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6417 if test -n "$DSYMUTIL"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6419 $as_echo "$DSYMUTIL" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_DSYMUTIL"; then
6428 ac_ct_DSYMUTIL=$DSYMUTIL
6429 # Extract the first word of "dsymutil", so it can be a program name with args.
6430 set dummy dsymutil; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$ac_ct_DSYMUTIL"; then
6437 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6457 if test -n "$ac_ct_DSYMUTIL"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6459 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_DSYMUTIL" = x; then
6466 DSYMUTIL=":"
6467 else
6468 case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474 DSYMUTIL=$ac_ct_DSYMUTIL
6476 else
6477 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_NMEDIT+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$NMEDIT"; then
6489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 NMEDIT=$ac_cv_prog_NMEDIT
6509 if test -n "$NMEDIT"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6511 $as_echo "$NMEDIT" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_NMEDIT"; then
6520 ac_ct_NMEDIT=$NMEDIT
6521 # Extract the first word of "nmedit", so it can be a program name with args.
6522 set dummy nmedit; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$ac_ct_NMEDIT"; then
6529 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6548 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6549 if test -n "$ac_ct_NMEDIT"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6551 $as_echo "$ac_ct_NMEDIT" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_NMEDIT" = x; then
6558 NMEDIT=":"
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 NMEDIT=$ac_ct_NMEDIT
6568 else
6569 NMEDIT="$ac_cv_prog_NMEDIT"
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_LIPO+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$LIPO"; then
6581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6596 IFS=$as_save_IFS
6600 LIPO=$ac_cv_prog_LIPO
6601 if test -n "$LIPO"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6603 $as_echo "$LIPO" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_LIPO"; then
6612 ac_ct_LIPO=$LIPO
6613 # Extract the first word of "lipo", so it can be a program name with args.
6614 set dummy lipo; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 if test -n "$ac_ct_LIPO"; then
6621 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_ac_ct_LIPO="lipo"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6634 done
6635 done
6636 IFS=$as_save_IFS
6640 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6641 if test -n "$ac_ct_LIPO"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6643 $as_echo "$ac_ct_LIPO" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_LIPO" = x; then
6650 LIPO=":"
6651 else
6652 case $cross_compiling:$ac_tool_warned in
6653 yes:)
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6657 esac
6658 LIPO=$ac_ct_LIPO
6660 else
6661 LIPO="$ac_cv_prog_LIPO"
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}otool; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_OTOOL+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$OTOOL"; then
6673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 OTOOL=$ac_cv_prog_OTOOL
6693 if test -n "$OTOOL"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6695 $as_echo "$OTOOL" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6703 if test -z "$ac_cv_prog_OTOOL"; then
6704 ac_ct_OTOOL=$OTOOL
6705 # Extract the first word of "otool", so it can be a program name with args.
6706 set dummy otool; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 if test -n "$ac_ct_OTOOL"; then
6713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_ac_ct_OTOOL="otool"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6726 done
6727 done
6728 IFS=$as_save_IFS
6732 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6733 if test -n "$ac_ct_OTOOL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6735 $as_echo "$ac_ct_OTOOL" >&6; }
6736 else
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6741 if test "x$ac_ct_OTOOL" = x; then
6742 OTOOL=":"
6743 else
6744 case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750 OTOOL=$ac_ct_OTOOL
6752 else
6753 OTOOL="$ac_cv_prog_OTOOL"
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_OTOOL64+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$OTOOL64"; then
6765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 OTOOL64=$ac_cv_prog_OTOOL64
6785 if test -n "$OTOOL64"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6787 $as_echo "$OTOOL64" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6795 if test -z "$ac_cv_prog_OTOOL64"; then
6796 ac_ct_OTOOL64=$OTOOL64
6797 # Extract the first word of "otool64", so it can be a program name with args.
6798 set dummy otool64; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$ac_ct_OTOOL64"; then
6805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_ac_ct_OTOOL64="otool64"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6818 done
6819 done
6820 IFS=$as_save_IFS
6824 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6825 if test -n "$ac_ct_OTOOL64"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6827 $as_echo "$ac_ct_OTOOL64" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6833 if test "x$ac_ct_OTOOL64" = x; then
6834 OTOOL64=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842 OTOOL64=$ac_ct_OTOOL64
6844 else
6845 OTOOL64="$ac_cv_prog_OTOOL64"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6875 $as_echo_n "checking for -single_module linker flag... " >&6; }
6876 if ${lt_cv_apple_cc_single_mod+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878 else
6879 lt_cv_apple_cc_single_mod=no
6880 if test -z "${LT_MULTI_MODULE}"; then
6881 # By default we will add the -single_module flag. You can override
6882 # by either setting the environment variable LT_MULTI_MODULE
6883 # non-empty at configure time, or by adding -multi_module to the
6884 # link flags.
6885 rm -rf libconftest.dylib*
6886 echo "int foo(void){return 1;}" > conftest.c
6887 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6888 -dynamiclib -Wl,-single_module conftest.c" >&5
6889 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6890 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6891 _lt_result=$?
6892 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6893 lt_cv_apple_cc_single_mod=yes
6894 else
6895 cat conftest.err >&5
6897 rm -rf libconftest.dylib*
6898 rm -f conftest.*
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6902 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6905 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 lt_cv_ld_exported_symbols_list=no
6909 save_LDFLAGS=$LDFLAGS
6910 echo "_main" > conftest.sym
6911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6912 if test x$gcc_no_link = xyes; then
6913 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6919 main ()
6923 return 0;
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927 lt_cv_ld_exported_symbols_list=yes
6928 else
6929 lt_cv_ld_exported_symbols_list=no
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6933 LDFLAGS="$save_LDFLAGS"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6937 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6939 $as_echo_n "checking for -force_load linker flag... " >&6; }
6940 if ${lt_cv_ld_force_load+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 lt_cv_ld_force_load=no
6944 cat > conftest.c << _LT_EOF
6945 int forced_loaded() { return 2;}
6946 _LT_EOF
6947 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6948 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6949 echo "$AR cru libconftest.a conftest.o" >&5
6950 $AR cru libconftest.a conftest.o 2>&5
6951 cat > conftest.c << _LT_EOF
6952 int main() { return 0;}
6953 _LT_EOF
6954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6956 _lt_result=$?
6957 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6958 lt_cv_ld_force_load=yes
6959 else
6960 cat conftest.err >&5
6962 rm -f conftest.err libconftest.a conftest conftest.c
6963 rm -rf conftest.dSYM
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6967 $as_echo "$lt_cv_ld_force_load" >&6; }
6968 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
6969 # build without first building modern cctools / linker.
6970 case $host_cpu-$host_os in
6971 *-rhapsody* | *-darwin1.[012])
6972 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6973 *-darwin1.*)
6974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6975 *-darwin*)
6976 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
6977 # deployment target is forced to an earlier version.
6978 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6979 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
6981 10.[012][,.]*)
6982 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6986 esac
6988 esac
6989 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6990 _lt_dar_single_mod='$single_module'
6992 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6993 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6994 else
6995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6997 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6998 _lt_dsymutil='~$DSYMUTIL $lib || :'
6999 else
7000 _lt_dsymutil=
7003 esac
7005 ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7012 # On Suns, sometimes $CPP names a directory.
7013 if test -n "$CPP" && test -d "$CPP"; then
7014 CPP=
7016 if test -z "$CPP"; then
7017 if ${ac_cv_prog_CPP+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 # Double quotes because CPP needs to be expanded
7021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7023 ac_preproc_ok=false
7024 for ac_c_preproc_warn_flag in '' yes
7026 # Use a header file that comes with gcc, so configuring glibc
7027 # with a fresh cross-compiler works.
7028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029 # <limits.h> exists even on freestanding compilers.
7030 # On the NeXT, cc -E runs the code through the compiler's parser,
7031 # not just through cpp. "Syntax error" is here to catch this case.
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #ifdef __STDC__
7035 # include <limits.h>
7036 #else
7037 # include <assert.h>
7038 #endif
7039 Syntax error
7040 _ACEOF
7041 if ac_fn_c_try_cpp "$LINENO"; then :
7043 else
7044 # Broken: fails on valid input.
7045 continue
7047 rm -f conftest.err conftest.i conftest.$ac_ext
7049 # OK, works on sane cases. Now check whether nonexistent headers
7050 # can be detected and how.
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 #include <ac_nonexistent.h>
7054 _ACEOF
7055 if ac_fn_c_try_cpp "$LINENO"; then :
7056 # Broken: success on invalid input.
7057 continue
7058 else
7059 # Passes both tests.
7060 ac_preproc_ok=:
7061 break
7063 rm -f conftest.err conftest.i conftest.$ac_ext
7065 done
7066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7067 rm -f conftest.i conftest.err conftest.$ac_ext
7068 if $ac_preproc_ok; then :
7069 break
7072 done
7073 ac_cv_prog_CPP=$CPP
7076 CPP=$ac_cv_prog_CPP
7077 else
7078 ac_cv_prog_CPP=$CPP
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7081 $as_echo "$CPP" >&6; }
7082 ac_preproc_ok=false
7083 for ac_c_preproc_warn_flag in '' yes
7085 # Use a header file that comes with gcc, so configuring glibc
7086 # with a fresh cross-compiler works.
7087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7088 # <limits.h> exists even on freestanding compilers.
7089 # On the NeXT, cc -E runs the code through the compiler's parser,
7090 # not just through cpp. "Syntax error" is here to catch this case.
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 #ifdef __STDC__
7094 # include <limits.h>
7095 #else
7096 # include <assert.h>
7097 #endif
7098 Syntax error
7099 _ACEOF
7100 if ac_fn_c_try_cpp "$LINENO"; then :
7102 else
7103 # Broken: fails on valid input.
7104 continue
7106 rm -f conftest.err conftest.i conftest.$ac_ext
7108 # OK, works on sane cases. Now check whether nonexistent headers
7109 # can be detected and how.
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <ac_nonexistent.h>
7113 _ACEOF
7114 if ac_fn_c_try_cpp "$LINENO"; then :
7115 # Broken: success on invalid input.
7116 continue
7117 else
7118 # Passes both tests.
7119 ac_preproc_ok=:
7120 break
7122 rm -f conftest.err conftest.i conftest.$ac_ext
7124 done
7125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7126 rm -f conftest.i conftest.err conftest.$ac_ext
7127 if $ac_preproc_ok; then :
7129 else
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7133 See \`config.log' for more details" "$LINENO" 5; }
7136 ac_ext=c
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7144 $as_echo_n "checking for ANSI C header files... " >&6; }
7145 if ${ac_cv_header_stdc+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <stdlib.h>
7151 #include <stdarg.h>
7152 #include <string.h>
7153 #include <float.h>
7156 main ()
7160 return 0;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"; then :
7164 ac_cv_header_stdc=yes
7165 else
7166 ac_cv_header_stdc=no
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 if test $ac_cv_header_stdc = yes; then
7171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 #include <string.h>
7176 _ACEOF
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "memchr" >/dev/null 2>&1; then :
7180 else
7181 ac_cv_header_stdc=no
7183 rm -f conftest*
7187 if test $ac_cv_header_stdc = yes; then
7188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 #include <stdlib.h>
7193 _ACEOF
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 $EGREP "free" >/dev/null 2>&1; then :
7197 else
7198 ac_cv_header_stdc=no
7200 rm -f conftest*
7204 if test $ac_cv_header_stdc = yes; then
7205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7206 if test "$cross_compiling" = yes; then :
7208 else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <ctype.h>
7212 #include <stdlib.h>
7213 #if ((' ' & 0x0FF) == 0x020)
7214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7216 #else
7217 # define ISLOWER(c) \
7218 (('a' <= (c) && (c) <= 'i') \
7219 || ('j' <= (c) && (c) <= 'r') \
7220 || ('s' <= (c) && (c) <= 'z'))
7221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7222 #endif
7224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226 main ()
7228 int i;
7229 for (i = 0; i < 256; i++)
7230 if (XOR (islower (i), ISLOWER (i))
7231 || toupper (i) != TOUPPER (i))
7232 return 2;
7233 return 0;
7235 _ACEOF
7236 if ac_fn_c_try_run "$LINENO"; then :
7238 else
7239 ac_cv_header_stdc=no
7241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7242 conftest.$ac_objext conftest.beam conftest.$ac_ext
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7248 $as_echo "$ac_cv_header_stdc" >&6; }
7249 if test $ac_cv_header_stdc = yes; then
7251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7257 inttypes.h stdint.h unistd.h
7258 do :
7259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7263 cat >>confdefs.h <<_ACEOF
7264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265 _ACEOF
7269 done
7272 for ac_header in dlfcn.h
7273 do :
7274 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7276 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7277 cat >>confdefs.h <<_ACEOF
7278 #define HAVE_DLFCN_H 1
7279 _ACEOF
7283 done
7289 # Set options
7293 enable_dlopen=no
7296 enable_win32_dll=no
7299 # Check whether --enable-shared was given.
7300 if test "${enable_shared+set}" = set; then :
7301 enableval=$enable_shared; p=${PACKAGE-default}
7302 case $enableval in
7303 yes) enable_shared=yes ;;
7304 no) enable_shared=no ;;
7306 enable_shared=no
7307 # Look at the argument we got. We use all the common list separators.
7308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7309 for pkg in $enableval; do
7310 IFS="$lt_save_ifs"
7311 if test "X$pkg" = "X$p"; then
7312 enable_shared=yes
7314 done
7315 IFS="$lt_save_ifs"
7317 esac
7318 else
7319 enable_shared=yes
7330 # Check whether --enable-static was given.
7331 if test "${enable_static+set}" = set; then :
7332 enableval=$enable_static; p=${PACKAGE-default}
7333 case $enableval in
7334 yes) enable_static=yes ;;
7335 no) enable_static=no ;;
7337 enable_static=no
7338 # Look at the argument we got. We use all the common list separators.
7339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7340 for pkg in $enableval; do
7341 IFS="$lt_save_ifs"
7342 if test "X$pkg" = "X$p"; then
7343 enable_static=yes
7345 done
7346 IFS="$lt_save_ifs"
7348 esac
7349 else
7350 enable_static=yes
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then :
7364 withval=$with_pic; pic_mode="$withval"
7365 else
7366 pic_mode=default
7370 test -z "$pic_mode" && pic_mode=default
7378 # Check whether --enable-fast-install was given.
7379 if test "${enable_fast_install+set}" = set; then :
7380 enableval=$enable_fast_install; p=${PACKAGE-default}
7381 case $enableval in
7382 yes) enable_fast_install=yes ;;
7383 no) enable_fast_install=no ;;
7385 enable_fast_install=no
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388 for pkg in $enableval; do
7389 IFS="$lt_save_ifs"
7390 if test "X$pkg" = "X$p"; then
7391 enable_fast_install=yes
7393 done
7394 IFS="$lt_save_ifs"
7396 esac
7397 else
7398 enable_fast_install=yes
7411 # This can be used to rebuild libtool when needed
7412 LIBTOOL_DEPS="$ltmain"
7414 # Always use our own libtool.
7415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7442 test -z "$LN_S" && LN_S="ln -s"
7457 if test -n "${ZSH_VERSION+set}" ; then
7458 setopt NO_GLOB_SUBST
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7462 $as_echo_n "checking for objdir... " >&6; }
7463 if ${lt_cv_objdir+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 rm -f .libs 2>/dev/null
7467 mkdir .libs 2>/dev/null
7468 if test -d .libs; then
7469 lt_cv_objdir=.libs
7470 else
7471 # MS-DOS does not allow filenames that begin with a dot.
7472 lt_cv_objdir=_libs
7474 rmdir .libs 2>/dev/null
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7477 $as_echo "$lt_cv_objdir" >&6; }
7478 objdir=$lt_cv_objdir
7484 cat >>confdefs.h <<_ACEOF
7485 #define LT_OBJDIR "$lt_cv_objdir/"
7486 _ACEOF
7491 case $host_os in
7492 aix3*)
7493 # AIX sometimes has problems with the GCC collect2 program. For some
7494 # reason, if we set the COLLECT_NAMES environment variable, the problems
7495 # vanish in a puff of smoke.
7496 if test "X${COLLECT_NAMES+set}" != Xset; then
7497 COLLECT_NAMES=
7498 export COLLECT_NAMES
7501 esac
7503 # Global variables:
7504 ofile=libtool
7505 can_build_shared=yes
7507 # All known linkers require a `.a' archive for static linking (except MSVC,
7508 # which needs '.lib').
7509 libext=a
7511 with_gnu_ld="$lt_cv_prog_gnu_ld"
7513 old_CC="$CC"
7514 old_CFLAGS="$CFLAGS"
7516 # Set sane defaults for various variables
7517 test -z "$CC" && CC=cc
7518 test -z "$LTCC" && LTCC=$CC
7519 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7520 test -z "$LD" && LD=ld
7521 test -z "$ac_objext" && ac_objext=o
7523 for cc_temp in $compiler""; do
7524 case $cc_temp in
7525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7527 \-*) ;;
7528 *) break;;
7529 esac
7530 done
7531 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7534 # Only perform the check for file, if the check method requires it
7535 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7536 case $deplibs_check_method in
7537 file_magic*)
7538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7540 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 case $MAGIC_CMD in
7545 [\\/*] | ?:[\\/]*)
7546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7549 lt_save_MAGIC_CMD="$MAGIC_CMD"
7550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7552 for ac_dir in $ac_dummy; do
7553 IFS="$lt_save_ifs"
7554 test -z "$ac_dir" && ac_dir=.
7555 if test -f $ac_dir/${ac_tool_prefix}file; then
7556 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7557 if test -n "$file_magic_test_file"; then
7558 case $deplibs_check_method in
7559 "file_magic "*)
7560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7563 $EGREP "$file_magic_regex" > /dev/null; then
7565 else
7566 cat <<_LT_EOF 1>&2
7568 *** Warning: the command libtool uses to detect shared libraries,
7569 *** $file_magic_cmd, produces output that libtool cannot recognize.
7570 *** The result is that libtool may fail to recognize shared libraries
7571 *** as such. This will affect the creation of libtool libraries that
7572 *** depend on shared libraries, but programs linked with such libtool
7573 *** libraries will work regardless of this problem. Nevertheless, you
7574 *** may want to report the problem to your system manager and/or to
7575 *** bug-libtool@gnu.org
7577 _LT_EOF
7578 fi ;;
7579 esac
7581 break
7583 done
7584 IFS="$lt_save_ifs"
7585 MAGIC_CMD="$lt_save_MAGIC_CMD"
7587 esac
7590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591 if test -n "$MAGIC_CMD"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7593 $as_echo "$MAGIC_CMD" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7603 if test -z "$lt_cv_path_MAGIC_CMD"; then
7604 if test -n "$ac_tool_prefix"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7606 $as_echo_n "checking for file... " >&6; }
7607 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 case $MAGIC_CMD in
7611 [\\/*] | ?:[\\/]*)
7612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615 lt_save_MAGIC_CMD="$MAGIC_CMD"
7616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618 for ac_dir in $ac_dummy; do
7619 IFS="$lt_save_ifs"
7620 test -z "$ac_dir" && ac_dir=.
7621 if test -f $ac_dir/file; then
7622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7623 if test -n "$file_magic_test_file"; then
7624 case $deplibs_check_method in
7625 "file_magic "*)
7626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629 $EGREP "$file_magic_regex" > /dev/null; then
7631 else
7632 cat <<_LT_EOF 1>&2
7634 *** Warning: the command libtool uses to detect shared libraries,
7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
7636 *** The result is that libtool may fail to recognize shared libraries
7637 *** as such. This will affect the creation of libtool libraries that
7638 *** depend on shared libraries, but programs linked with such libtool
7639 *** libraries will work regardless of this problem. Nevertheless, you
7640 *** may want to report the problem to your system manager and/or to
7641 *** bug-libtool@gnu.org
7643 _LT_EOF
7644 fi ;;
7645 esac
7647 break
7649 done
7650 IFS="$lt_save_ifs"
7651 MAGIC_CMD="$lt_save_MAGIC_CMD"
7653 esac
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if test -n "$MAGIC_CMD"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7659 $as_echo "$MAGIC_CMD" >&6; }
7660 else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7666 else
7667 MAGIC_CMD=:
7673 esac
7675 # Use C for the default configuration in the libtool script
7677 lt_save_CC="$CC"
7678 ac_ext=c
7679 ac_cpp='$CPP $CPPFLAGS'
7680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7685 # Source file extension for C test sources.
7686 ac_ext=c
7688 # Object file extension for compiled C test sources.
7689 objext=o
7690 objext=$objext
7692 # Code to be used in simple compile tests
7693 lt_simple_compile_test_code="int some_variable = 0;"
7695 # Code to be used in simple link tests
7696 lt_simple_link_test_code='int main(){return(0);}'
7704 # If no C compiler was specified, use CC.
7705 LTCC=${LTCC-"$CC"}
7707 # If no C compiler flags were specified, use CFLAGS.
7708 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7710 # Allow CC to be a program name with arguments.
7711 compiler=$CC
7713 # Save the default compiler, since it gets overwritten when the other
7714 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7715 compiler_DEFAULT=$CC
7717 # save warnings/boilerplate of simple test code
7718 ac_outfile=conftest.$ac_objext
7719 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7721 _lt_compiler_boilerplate=`cat conftest.err`
7722 $RM conftest*
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7727 _lt_linker_boilerplate=`cat conftest.err`
7728 $RM -r conftest*
7731 ## CAVEAT EMPTOR:
7732 ## There is no encapsulation within the following macros, do not change
7733 ## the running order or otherwise move them around unless you know exactly
7734 ## what you are doing...
7735 if test -n "$compiler"; then
7737 lt_prog_compiler_no_builtin_flag=
7739 if test "$GCC" = yes; then
7740 case $cc_basename in
7741 nvcc*)
7742 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7744 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7745 esac
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7748 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7749 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 lt_cv_prog_compiler_rtti_exceptions=no
7753 ac_outfile=conftest.$ac_objext
7754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7755 lt_compiler_flag="-fno-rtti -fno-exceptions"
7756 # Insert the option either (1) after the last *FLAGS variable, or
7757 # (2) before a word containing "conftest.", or (3) at the end.
7758 # Note that $ac_compile itself does not contain backslashes and begins
7759 # with a dollar sign (not a hyphen), so the echo should work correctly.
7760 # The option is referenced via a variable to avoid confusing sed.
7761 lt_compile=`echo "$ac_compile" | $SED \
7762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7764 -e 's:$: $lt_compiler_flag:'`
7765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7766 (eval "$lt_compile" 2>conftest.err)
7767 ac_status=$?
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 if (exit $ac_status) && test -s "$ac_outfile"; then
7771 # The compiler can only warn and ignore the option if not recognized
7772 # So say no if there are warnings other than the usual output.
7773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7776 lt_cv_prog_compiler_rtti_exceptions=yes
7779 $RM conftest*
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7783 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7785 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7786 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7787 else
7798 lt_prog_compiler_wl=
7799 lt_prog_compiler_pic=
7800 lt_prog_compiler_static=
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7803 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7805 if test "$GCC" = yes; then
7806 lt_prog_compiler_wl='-Wl,'
7807 lt_prog_compiler_static='-static'
7809 case $host_os in
7810 aix*)
7811 # All AIX code is PIC.
7812 if test "$host_cpu" = ia64; then
7813 # AIX 5 now supports IA64 processor
7814 lt_prog_compiler_static='-Bstatic'
7816 lt_prog_compiler_pic='-fPIC'
7819 amigaos*)
7820 case $host_cpu in
7821 powerpc)
7822 # see comment about AmigaOS4 .so support
7823 lt_prog_compiler_pic='-fPIC'
7825 m68k)
7826 # FIXME: we need at least 68020 code to build shared libraries, but
7827 # adding the `-m68020' flag to GCC prevents building anything better,
7828 # like `-m68040'.
7829 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7831 esac
7834 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7835 # PIC is the default for these OSes.
7838 mingw* | cygwin* | pw32* | os2* | cegcc*)
7839 # This hack is so that the source file can tell whether it is being
7840 # built for inclusion in a dll (and should export symbols for example).
7841 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7842 # (--disable-auto-import) libraries
7843 lt_prog_compiler_pic='-DDLL_EXPORT'
7846 darwin* | rhapsody*)
7847 # PIC is the default on this platform
7848 # Common symbols not allowed in MH_DYLIB files
7849 lt_prog_compiler_pic='-fno-common'
7852 haiku*)
7853 # PIC is the default for Haiku.
7854 # The "-static" flag exists, but is broken.
7855 lt_prog_compiler_static=
7858 hpux*)
7859 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7860 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7861 # sets the default TLS model and affects inlining.
7862 case $host_cpu in
7863 hppa*64*)
7864 # +Z the default
7867 lt_prog_compiler_pic='-fPIC'
7869 esac
7872 interix[3-9]*)
7873 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7874 # Instead, we relocate shared libraries at runtime.
7877 msdosdjgpp*)
7878 # Just because we use GCC doesn't mean we suddenly get shared libraries
7879 # on systems that don't support them.
7880 lt_prog_compiler_can_build_shared=no
7881 enable_shared=no
7884 *nto* | *qnx*)
7885 # QNX uses GNU C++, but need to define -shared option too, otherwise
7886 # it will coredump.
7887 lt_prog_compiler_pic='-fPIC -shared'
7890 sysv4*MP*)
7891 if test -d /usr/nec; then
7892 lt_prog_compiler_pic=-Kconform_pic
7897 lt_prog_compiler_pic='-fPIC'
7899 esac
7901 case $cc_basename in
7902 nvcc*) # Cuda Compiler Driver 2.2
7903 lt_prog_compiler_wl='-Xlinker '
7904 lt_prog_compiler_pic='-Xcompiler -fPIC'
7906 esac
7907 else
7908 # PORTME Check for flag to pass linker flags through the system compiler.
7909 case $host_os in
7910 aix*)
7911 lt_prog_compiler_wl='-Wl,'
7912 if test "$host_cpu" = ia64; then
7913 # AIX 5 now supports IA64 processor
7914 lt_prog_compiler_static='-Bstatic'
7915 else
7916 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920 mingw* | cygwin* | pw32* | os2* | cegcc*)
7921 # This hack is so that the source file can tell whether it is being
7922 # built for inclusion in a dll (and should export symbols for example).
7923 lt_prog_compiler_pic='-DDLL_EXPORT'
7926 hpux9* | hpux10* | hpux11*)
7927 lt_prog_compiler_wl='-Wl,'
7928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7929 # not for PA HP-UX.
7930 case $host_cpu in
7931 hppa*64*|ia64*)
7932 # +Z the default
7935 lt_prog_compiler_pic='+Z'
7937 esac
7938 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7939 lt_prog_compiler_static='${wl}-a ${wl}archive'
7942 irix5* | irix6* | nonstopux*)
7943 lt_prog_compiler_wl='-Wl,'
7944 # PIC (with -KPIC) is the default.
7945 lt_prog_compiler_static='-non_shared'
7948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7949 case $cc_basename in
7950 # old Intel for x86_64 which still supported -KPIC.
7951 ecc*)
7952 lt_prog_compiler_wl='-Wl,'
7953 lt_prog_compiler_pic='-KPIC'
7954 lt_prog_compiler_static='-static'
7956 # icc used to be incompatible with GCC.
7957 # ICC 10 doesn't accept -KPIC any more.
7958 icc* | ifort*)
7959 lt_prog_compiler_wl='-Wl,'
7960 lt_prog_compiler_pic='-fPIC'
7961 lt_prog_compiler_static='-static'
7963 # Lahey Fortran 8.1.
7964 lf95*)
7965 lt_prog_compiler_wl='-Wl,'
7966 lt_prog_compiler_pic='--shared'
7967 lt_prog_compiler_static='--static'
7969 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7970 # Portland Group compilers (*not* the Pentium gcc compiler,
7971 # which looks to be a dead project)
7972 lt_prog_compiler_wl='-Wl,'
7973 lt_prog_compiler_pic='-fpic'
7974 lt_prog_compiler_static='-Bstatic'
7976 ccc*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # All Alpha code is PIC.
7979 lt_prog_compiler_static='-non_shared'
7981 xl* | bgxl* | bgf* | mpixl*)
7982 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='-qpic'
7985 lt_prog_compiler_static='-qstaticlink'
7988 case `$CC -V 2>&1 | sed 5q` in
7989 *Sun\ F* | *Sun*Fortran*)
7990 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 lt_prog_compiler_wl=''
7995 *Sun\ C*)
7996 # Sun C 5.9
7997 lt_prog_compiler_pic='-KPIC'
7998 lt_prog_compiler_static='-Bstatic'
7999 lt_prog_compiler_wl='-Wl,'
8001 esac
8003 esac
8006 newsos6)
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8011 *nto* | *qnx*)
8012 # QNX uses GNU C++, but need to define -shared option too, otherwise
8013 # it will coredump.
8014 lt_prog_compiler_pic='-fPIC -shared'
8017 osf3* | osf4* | osf5*)
8018 lt_prog_compiler_wl='-Wl,'
8019 # All OSF/1 code is PIC.
8020 lt_prog_compiler_static='-non_shared'
8023 rdos*)
8024 lt_prog_compiler_static='-non_shared'
8027 solaris*)
8028 lt_prog_compiler_pic='-KPIC'
8029 lt_prog_compiler_static='-Bstatic'
8030 case $cc_basename in
8031 f77* | f90* | f95*)
8032 lt_prog_compiler_wl='-Qoption ld ';;
8034 lt_prog_compiler_wl='-Wl,';;
8035 esac
8038 sunos4*)
8039 lt_prog_compiler_wl='-Qoption ld '
8040 lt_prog_compiler_pic='-PIC'
8041 lt_prog_compiler_static='-Bstatic'
8044 sysv4 | sysv4.2uw2* | sysv4.3*)
8045 lt_prog_compiler_wl='-Wl,'
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8050 sysv4*MP*)
8051 if test -d /usr/nec ;then
8052 lt_prog_compiler_pic='-Kconform_pic'
8053 lt_prog_compiler_static='-Bstatic'
8057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8063 unicos*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_can_build_shared=no
8068 uts4*)
8069 lt_prog_compiler_pic='-pic'
8070 lt_prog_compiler_static='-Bstatic'
8074 lt_prog_compiler_can_build_shared=no
8076 esac
8079 case $host_os in
8080 # For platforms which do not support PIC, -DPIC is meaningless:
8081 *djgpp*)
8082 lt_prog_compiler_pic=
8085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8087 esac
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8089 $as_echo "$lt_prog_compiler_pic" >&6; }
8097 # Check to make sure the PIC flag actually works.
8099 if test -n "$lt_prog_compiler_pic"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8102 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 lt_cv_prog_compiler_pic_works=no
8106 ac_outfile=conftest.$ac_objext
8107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8109 # Insert the option either (1) after the last *FLAGS variable, or
8110 # (2) before a word containing "conftest.", or (3) at the end.
8111 # Note that $ac_compile itself does not contain backslashes and begins
8112 # with a dollar sign (not a hyphen), so the echo should work correctly.
8113 # The option is referenced via a variable to avoid confusing sed.
8114 lt_compile=`echo "$ac_compile" | $SED \
8115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8117 -e 's:$: $lt_compiler_flag:'`
8118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8119 (eval "$lt_compile" 2>conftest.err)
8120 ac_status=$?
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 if (exit $ac_status) && test -s "$ac_outfile"; then
8124 # The compiler can only warn and ignore the option if not recognized
8125 # So say no if there are warnings other than the usual output.
8126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8129 lt_cv_prog_compiler_pic_works=yes
8132 $RM conftest*
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8136 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8138 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8139 case $lt_prog_compiler_pic in
8140 "" | " "*) ;;
8141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8142 esac
8143 else
8144 lt_prog_compiler_pic=
8145 lt_prog_compiler_can_build_shared=no
8156 # Check to make sure the static flag actually works.
8158 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8160 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8161 if ${lt_cv_prog_compiler_static_works+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 lt_cv_prog_compiler_static_works=no
8165 save_LDFLAGS="$LDFLAGS"
8166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8169 # The linker can only warn and ignore the option if not recognized
8170 # So say no if there are warnings
8171 if test -s conftest.err; then
8172 # Append any errors to the config.log.
8173 cat conftest.err 1>&5
8174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8176 if diff conftest.exp conftest.er2 >/dev/null; then
8177 lt_cv_prog_compiler_static_works=yes
8179 else
8180 lt_cv_prog_compiler_static_works=yes
8183 $RM -r conftest*
8184 LDFLAGS="$save_LDFLAGS"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8188 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8190 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8192 else
8193 lt_prog_compiler_static=
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8204 if ${lt_cv_prog_compiler_c_o+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 lt_cv_prog_compiler_c_o=no
8208 $RM -r conftest 2>/dev/null
8209 mkdir conftest
8210 cd conftest
8211 mkdir out
8212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8214 lt_compiler_flag="-o out/conftest2.$ac_objext"
8215 # Insert the option either (1) after the last *FLAGS variable, or
8216 # (2) before a word containing "conftest.", or (3) at the end.
8217 # Note that $ac_compile itself does not contain backslashes and begins
8218 # with a dollar sign (not a hyphen), so the echo should work correctly.
8219 lt_compile=`echo "$ac_compile" | $SED \
8220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8222 -e 's:$: $lt_compiler_flag:'`
8223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8224 (eval "$lt_compile" 2>out/conftest.err)
8225 ac_status=$?
8226 cat out/conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8229 then
8230 # The compiler can only warn and ignore the option if not recognized
8231 # So say no if there are warnings
8232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8235 lt_cv_prog_compiler_c_o=yes
8238 chmod u+w . 2>&5
8239 $RM conftest*
8240 # SGI C++ compiler will create directory out/ii_files/ for
8241 # template instantiation
8242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8243 $RM out/* && rmdir out
8244 cd ..
8245 $RM -r conftest
8246 $RM conftest*
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8259 if ${lt_cv_prog_compiler_c_o+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 lt_cv_prog_compiler_c_o=no
8263 $RM -r conftest 2>/dev/null
8264 mkdir conftest
8265 cd conftest
8266 mkdir out
8267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8269 lt_compiler_flag="-o out/conftest2.$ac_objext"
8270 # Insert the option either (1) after the last *FLAGS variable, or
8271 # (2) before a word containing "conftest.", or (3) at the end.
8272 # Note that $ac_compile itself does not contain backslashes and begins
8273 # with a dollar sign (not a hyphen), so the echo should work correctly.
8274 lt_compile=`echo "$ac_compile" | $SED \
8275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277 -e 's:$: $lt_compiler_flag:'`
8278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279 (eval "$lt_compile" 2>out/conftest.err)
8280 ac_status=$?
8281 cat out/conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8284 then
8285 # The compiler can only warn and ignore the option if not recognized
8286 # So say no if there are warnings
8287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8290 lt_cv_prog_compiler_c_o=yes
8293 chmod u+w . 2>&5
8294 $RM conftest*
8295 # SGI C++ compiler will create directory out/ii_files/ for
8296 # template instantiation
8297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8298 $RM out/* && rmdir out
8299 cd ..
8300 $RM -r conftest
8301 $RM conftest*
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8310 hard_links="nottested"
8311 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8312 # do not overwrite the value of need_locks provided by the user
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8314 $as_echo_n "checking if we can lock with hard links... " >&6; }
8315 hard_links=yes
8316 $RM conftest*
8317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8318 touch conftest.a
8319 ln conftest.a conftest.b 2>&5 || hard_links=no
8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8322 $as_echo "$hard_links" >&6; }
8323 if test "$hard_links" = no; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8325 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8326 need_locks=warn
8328 else
8329 need_locks=no
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8338 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8340 runpath_var=
8341 allow_undefined_flag=
8342 always_export_symbols=no
8343 archive_cmds=
8344 archive_expsym_cmds=
8345 compiler_needs_object=no
8346 enable_shared_with_static_runtimes=no
8347 export_dynamic_flag_spec=
8348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8349 hardcode_automatic=no
8350 hardcode_direct=no
8351 hardcode_direct_absolute=no
8352 hardcode_libdir_flag_spec=
8353 hardcode_libdir_flag_spec_ld=
8354 hardcode_libdir_separator=
8355 hardcode_minus_L=no
8356 hardcode_shlibpath_var=unsupported
8357 inherit_rpath=no
8358 link_all_deplibs=unknown
8359 module_cmds=
8360 module_expsym_cmds=
8361 old_archive_from_new_cmds=
8362 old_archive_from_expsyms_cmds=
8363 thread_safe_flag_spec=
8364 whole_archive_flag_spec=
8365 # include_expsyms should be a list of space-separated symbols to be *always*
8366 # included in the symbol list
8367 include_expsyms=
8368 # exclude_expsyms can be an extended regexp of symbols to exclude
8369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8371 # as well as any symbol that contains `d'.
8372 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8374 # platforms (ab)use it in PIC code, but their linkers get confused if
8375 # the symbol is explicitly referenced. Since portable code cannot
8376 # rely on this symbol name, it's probably fine to never include it in
8377 # preloaded symbol tables.
8378 # Exclude shared library initialization/finalization symbols.
8379 extract_expsyms_cmds=
8381 case $host_os in
8382 cygwin* | mingw* | pw32* | cegcc*)
8383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8384 # When not using gcc, we currently assume that we are using
8385 # Microsoft Visual C++.
8386 if test "$GCC" != yes; then
8387 with_gnu_ld=no
8390 interix*)
8391 # we just hope/assume this is gcc and not c89 (= MSVC++)
8392 with_gnu_ld=yes
8394 openbsd*)
8395 with_gnu_ld=no
8397 esac
8399 ld_shlibs=yes
8401 # On some targets, GNU ld is compatible enough with the native linker
8402 # that we're better off using the native interface for both.
8403 lt_use_gnu_ld_interface=no
8404 if test "$with_gnu_ld" = yes; then
8405 case $host_os in
8406 aix*)
8407 # The AIX port of GNU ld has always aspired to compatibility
8408 # with the native linker. However, as the warning in the GNU ld
8409 # block says, versions before 2.19.5* couldn't really create working
8410 # shared libraries, regardless of the interface used.
8411 case `$LD -v 2>&1` in
8412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8414 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8416 lt_use_gnu_ld_interface=yes
8418 esac
8421 lt_use_gnu_ld_interface=yes
8423 esac
8426 if test "$lt_use_gnu_ld_interface" = yes; then
8427 # If archive_cmds runs LD, not CC, wlarc should be empty
8428 wlarc='${wl}'
8430 # Set some defaults for GNU ld with shared library support. These
8431 # are reset later if shared libraries are not supported. Putting them
8432 # here allows them to be overridden if necessary.
8433 runpath_var=LD_RUN_PATH
8434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8435 export_dynamic_flag_spec='${wl}--export-dynamic'
8436 # ancient GNU ld didn't support --whole-archive et. al.
8437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8438 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8439 else
8440 whole_archive_flag_spec=
8442 supports_anon_versioning=no
8443 case `$LD -v 2>&1` in
8444 *GNU\ gold*) supports_anon_versioning=yes ;;
8445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8448 *\ 2.11.*) ;; # other 2.11 versions
8449 *) supports_anon_versioning=yes ;;
8450 esac
8452 # See if GNU ld supports shared libraries.
8453 case $host_os in
8454 aix[3-9]*)
8455 # On AIX/PPC, the GNU linker is very broken
8456 if test "$host_cpu" != ia64; then
8457 ld_shlibs=no
8458 cat <<_LT_EOF 1>&2
8460 *** Warning: the GNU linker, at least up to release 2.19, is reported
8461 *** to be unable to reliably create shared libraries on AIX.
8462 *** Therefore, libtool is disabling shared libraries support. If you
8463 *** really care for shared libraries, you may want to install binutils
8464 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8465 *** You will then need to restart the configuration process.
8467 _LT_EOF
8471 amigaos*)
8472 case $host_cpu in
8473 powerpc)
8474 # see comment about AmigaOS4 .so support
8475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476 archive_expsym_cmds=''
8478 m68k)
8479 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)'
8480 hardcode_libdir_flag_spec='-L$libdir'
8481 hardcode_minus_L=yes
8483 esac
8486 beos*)
8487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8488 allow_undefined_flag=unsupported
8489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8490 # support --undefined. This deserves some investigation. FIXME
8491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492 else
8493 ld_shlibs=no
8497 cygwin* | mingw* | pw32* | cegcc*)
8498 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8499 # as there is no search path for DLLs.
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 export_dynamic_flag_spec='${wl}--export-all-symbols'
8502 allow_undefined_flag=unsupported
8503 always_export_symbols=no
8504 enable_shared_with_static_runtimes=yes
8505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8509 # If the export-symbols file already is a .def file (1st line
8510 # is EXPORTS), use it as is; otherwise, prepend...
8511 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8512 cp $export_symbols $output_objdir/$soname.def;
8513 else
8514 echo EXPORTS > $output_objdir/$soname.def;
8515 cat $export_symbols >> $output_objdir/$soname.def;
8517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8518 else
8519 ld_shlibs=no
8523 haiku*)
8524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525 link_all_deplibs=yes
8528 interix[3-9]*)
8529 hardcode_direct=no
8530 hardcode_shlibpath_var=no
8531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8532 export_dynamic_flag_spec='${wl}-E'
8533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8534 # Instead, shared libraries are loaded at an image base (0x10000000 by
8535 # default) and relocated if they conflict, which is a slow very memory
8536 # consuming and fragmenting process. To avoid this, we pick a random,
8537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8540 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'
8543 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8544 tmp_diet=no
8545 if test "$host_os" = linux-dietlibc; then
8546 case $cc_basename in
8547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8548 esac
8550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8551 && test "$tmp_diet" = no
8552 then
8553 tmp_addflag=' $pic_flag'
8554 tmp_sharedflag='-shared'
8555 case $cc_basename,$host_cpu in
8556 pgcc*) # Portland Group C compiler
8557 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'
8558 tmp_addflag=' $pic_flag'
8560 pgf77* | pgf90* | pgf95* | pgfortran*)
8561 # Portland Group f77 and f90 compilers
8562 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'
8563 tmp_addflag=' $pic_flag -Mnomain' ;;
8564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8565 tmp_addflag=' -i_dynamic' ;;
8566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8567 tmp_addflag=' -i_dynamic -nofor_main' ;;
8568 ifc* | ifort*) # Intel Fortran compiler
8569 tmp_addflag=' -nofor_main' ;;
8570 lf95*) # Lahey Fortran 8.1
8571 whole_archive_flag_spec=
8572 tmp_sharedflag='--shared' ;;
8573 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8574 tmp_sharedflag='-qmkshrobj'
8575 tmp_addflag= ;;
8576 nvcc*) # Cuda Compiler Driver 2.2
8577 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'
8578 compiler_needs_object=yes
8580 esac
8581 case `$CC -V 2>&1 | sed 5q` in
8582 *Sun\ C*) # Sun C 5.9
8583 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'
8584 compiler_needs_object=yes
8585 tmp_sharedflag='-G' ;;
8586 *Sun\ F*) # Sun Fortran 8.3
8587 tmp_sharedflag='-G' ;;
8588 esac
8589 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591 if test "x$supports_anon_versioning" = xyes; then
8592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8594 echo "local: *; };" >> $output_objdir/$libname.ver~
8595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8598 case $cc_basename in
8599 xlf* | bgf* | bgxlf* | mpixlf*)
8600 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8601 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8602 hardcode_libdir_flag_spec=
8603 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8604 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8605 if test "x$supports_anon_versioning" = xyes; then
8606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8608 echo "local: *; };" >> $output_objdir/$libname.ver~
8609 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8612 esac
8613 else
8614 ld_shlibs=no
8618 netbsd*)
8619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8620 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8621 wlarc=
8622 else
8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628 solaris*)
8629 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8630 ld_shlibs=no
8631 cat <<_LT_EOF 1>&2
8633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8634 *** create shared libraries on Solaris systems. Therefore, libtool
8635 *** is disabling shared libraries support. We urge you to upgrade GNU
8636 *** binutils to release 2.9.1 or newer. Another option is to modify
8637 *** your PATH or compiler configuration so that the native linker is
8638 *** used, and then restart.
8640 _LT_EOF
8641 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8644 else
8645 ld_shlibs=no
8649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8650 case `$LD -v 2>&1` in
8651 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8652 ld_shlibs=no
8653 cat <<_LT_EOF 1>&2
8655 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8656 *** reliably create shared libraries on SCO systems. Therefore, libtool
8657 *** is disabling shared libraries support. We urge you to upgrade GNU
8658 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8659 *** your PATH or compiler configuration so that the native linker is
8660 *** used, and then restart.
8662 _LT_EOF
8665 # For security reasons, it is highly recommended that you always
8666 # use absolute paths for naming shared libraries, and exclude the
8667 # DT_RUNPATH tag from executables and libraries. But doing so
8668 # requires that you compile everything twice, which is a pain.
8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8673 else
8674 ld_shlibs=no
8677 esac
8680 sunos4*)
8681 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682 wlarc=
8683 hardcode_direct=yes
8684 hardcode_shlibpath_var=no
8688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 else
8692 ld_shlibs=no
8695 esac
8697 if test "$ld_shlibs" = no; then
8698 runpath_var=
8699 hardcode_libdir_flag_spec=
8700 export_dynamic_flag_spec=
8701 whole_archive_flag_spec=
8703 else
8704 # PORTME fill in a description of your system's linker (not GNU ld)
8705 case $host_os in
8706 aix3*)
8707 allow_undefined_flag=unsupported
8708 always_export_symbols=yes
8709 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'
8710 # Note: this linker hardcodes the directories in LIBPATH if there
8711 # are no directories specified by -L.
8712 hardcode_minus_L=yes
8713 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8714 # Neither direct hardcoding nor static linking is supported with a
8715 # broken collect2.
8716 hardcode_direct=unsupported
8720 aix[4-9]*)
8721 if test "$host_cpu" = ia64; then
8722 # On IA64, the linker does run time linking by default, so we don't
8723 # have to do anything special.
8724 aix_use_runtimelinking=no
8725 exp_sym_flag='-Bexport'
8726 no_entry_flag=""
8727 else
8728 # If we're using GNU nm, then we don't want the "-C" option.
8729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8730 # Also, AIX nm treats weak defined symbols like other global
8731 # defined symbols, whereas GNU nm marks them as "W".
8732 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8733 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8734 else
8735 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8737 aix_use_runtimelinking=no
8739 # Test if we are trying to use run time linking or normal
8740 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8741 # need to do runtime linking.
8742 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8743 for ld_flag in $LDFLAGS; do
8744 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8745 aix_use_runtimelinking=yes
8746 break
8748 done
8750 esac
8752 exp_sym_flag='-bexport'
8753 no_entry_flag='-bnoentry'
8756 # When large executables or shared objects are built, AIX ld can
8757 # have problems creating the table of contents. If linking a library
8758 # or program results in "error TOC overflow" add -mminimal-toc to
8759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8762 archive_cmds=''
8763 hardcode_direct=yes
8764 hardcode_direct_absolute=yes
8765 hardcode_libdir_separator=':'
8766 link_all_deplibs=yes
8767 file_list_spec='${wl}-f,'
8769 if test "$GCC" = yes; then
8770 case $host_os in aix4.[012]|aix4.[012].*)
8771 # We only want to do this on AIX 4.2 and lower, the check
8772 # below for broken collect2 doesn't work under 4.3+
8773 collect2name=`${CC} -print-prog-name=collect2`
8774 if test -f "$collect2name" &&
8775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8776 then
8777 # We have reworked collect2
8779 else
8780 # We have old collect2
8781 hardcode_direct=unsupported
8782 # It fails to find uninstalled libraries when the uninstalled
8783 # path is not listed in the libpath. Setting hardcode_minus_L
8784 # to unsupported forces relinking
8785 hardcode_minus_L=yes
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_libdir_separator=
8790 esac
8791 shared_flag='-shared'
8792 if test "$aix_use_runtimelinking" = yes; then
8793 shared_flag="$shared_flag "'${wl}-G'
8795 else
8796 # not using gcc
8797 if test "$host_cpu" = ia64; then
8798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8799 # chokes on -Wl,-G. The following line is correct:
8800 shared_flag='-G'
8801 else
8802 if test "$aix_use_runtimelinking" = yes; then
8803 shared_flag='${wl}-G'
8804 else
8805 shared_flag='${wl}-bM:SRE'
8810 export_dynamic_flag_spec='${wl}-bexpall'
8811 # It seems that -bexpall does not export symbols beginning with
8812 # underscore (_), so it is better to generate a list of symbols to export.
8813 always_export_symbols=yes
8814 if test "$aix_use_runtimelinking" = yes; then
8815 # Warning - without using the other runtime loading flags (-brtl),
8816 # -berok will link without error, but may produce a broken library.
8817 allow_undefined_flag='-berok'
8818 # Determine the default libpath from the value encoded in an
8819 # empty executable.
8820 if test x$gcc_no_link = xyes; then
8821 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8827 main ()
8831 return 0;
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8836 lt_aix_libpath_sed='
8837 /Import File Strings/,/^$/ {
8838 /^0/ {
8839 s/^0 *\(.*\)$/\1/
8843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844 # Check for a 64-bit object if we didn't find anything.
8845 if test -z "$aix_libpath"; then
8846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8854 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8855 else
8856 if test "$host_cpu" = ia64; then
8857 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8858 allow_undefined_flag="-z nodefs"
8859 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"
8860 else
8861 # Determine the default libpath from the value encoded in an
8862 # empty executable.
8863 if test x$gcc_no_link = xyes; then
8864 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8870 main ()
8874 return 0;
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8879 lt_aix_libpath_sed='
8880 /Import File Strings/,/^$/ {
8881 /^0/ {
8882 s/^0 *\(.*\)$/\1/
8886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 # Check for a 64-bit object if we didn't find anything.
8888 if test -z "$aix_libpath"; then
8889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8897 # Warning - without using the other run time loading flags,
8898 # -berok will link without error, but may produce a broken library.
8899 no_undefined_flag=' ${wl}-bernotok'
8900 allow_undefined_flag=' ${wl}-berok'
8901 if test "$with_gnu_ld" = yes; then
8902 # We only use this code for GNU lds that support --whole-archive.
8903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8904 else
8905 # Exported symbols can be pulled into shared objects from archives
8906 whole_archive_flag_spec='$convenience'
8908 archive_cmds_need_lc=yes
8909 # This is similar to how AIX traditionally builds its shared libraries.
8910 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8915 amigaos*)
8916 case $host_cpu in
8917 powerpc)
8918 # see comment about AmigaOS4 .so support
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 archive_expsym_cmds=''
8922 m68k)
8923 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)'
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_minus_L=yes
8927 esac
8930 bsdi[45]*)
8931 export_dynamic_flag_spec=-rdynamic
8934 cygwin* | mingw* | pw32* | cegcc*)
8935 # When not using gcc, we currently assume that we are using
8936 # Microsoft Visual C++.
8937 # hardcode_libdir_flag_spec is actually meaningless, as there is
8938 # no search path for DLLs.
8939 hardcode_libdir_flag_spec=' '
8940 allow_undefined_flag=unsupported
8941 # Tell ltmain to make .lib files, not .a files.
8942 libext=lib
8943 # Tell ltmain to make .dll files, not .so files.
8944 shrext_cmds=".dll"
8945 # FIXME: Setting linknames here is a bad hack.
8946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8947 # The linker will automatically build a .lib file if we build a DLL.
8948 old_archive_from_new_cmds='true'
8949 # FIXME: Should let the user specify the lib program.
8950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8951 fix_srcfile_path='`cygpath -w "$srcfile"`'
8952 enable_shared_with_static_runtimes=yes
8955 darwin* | rhapsody*)
8958 archive_cmds_need_lc=no
8959 hardcode_direct=no
8960 hardcode_automatic=yes
8961 hardcode_shlibpath_var=unsupported
8962 if test "$lt_cv_ld_force_load" = "yes"; then
8963 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\"`'
8964 else
8965 whole_archive_flag_spec=''
8967 link_all_deplibs=yes
8968 allow_undefined_flag="$_lt_dar_allow_undefined"
8969 case $cc_basename in
8970 ifort*) _lt_dar_can_shared=yes ;;
8971 *) _lt_dar_can_shared=$GCC ;;
8972 esac
8973 if test "$_lt_dar_can_shared" = "yes"; then
8974 output_verbose_link_cmd=func_echo_all
8975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977 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}"
8978 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}"
8980 else
8981 ld_shlibs=no
8986 dgux*)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8993 # support. Future versions do this automatically, but an explicit c++rt0.o
8994 # does not break anything, and helps significantly (at the cost of a little
8995 # extra space).
8996 freebsd2.2*)
8997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8998 hardcode_libdir_flag_spec='-R$libdir'
8999 hardcode_direct=yes
9000 hardcode_shlibpath_var=no
9003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9004 freebsd2.*)
9005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_direct=yes
9007 hardcode_minus_L=yes
9008 hardcode_shlibpath_var=no
9011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9012 freebsd* | dragonfly*)
9013 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9014 hardcode_libdir_flag_spec='-R$libdir'
9015 hardcode_direct=yes
9016 hardcode_shlibpath_var=no
9019 hpux9*)
9020 if test "$GCC" = yes; then
9021 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9022 else
9023 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9026 hardcode_libdir_separator=:
9027 hardcode_direct=yes
9029 # hardcode_minus_L: Not really in the search PATH,
9030 # but as the default location of the library.
9031 hardcode_minus_L=yes
9032 export_dynamic_flag_spec='${wl}-E'
9035 hpux10*)
9036 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9038 else
9039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9041 if test "$with_gnu_ld" = no; then
9042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9043 hardcode_libdir_flag_spec_ld='+b $libdir'
9044 hardcode_libdir_separator=:
9045 hardcode_direct=yes
9046 hardcode_direct_absolute=yes
9047 export_dynamic_flag_spec='${wl}-E'
9048 # hardcode_minus_L: Not really in the search PATH,
9049 # but as the default location of the library.
9050 hardcode_minus_L=yes
9054 hpux11*)
9055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9056 case $host_cpu in
9057 hppa*64*)
9058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9060 ia64*)
9061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9066 esac
9067 else
9068 case $host_cpu in
9069 hppa*64*)
9070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9072 ia64*)
9073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9077 # Older versions of the 11.00 compiler do not understand -b yet
9078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9080 $as_echo_n "checking if $CC understands -b... " >&6; }
9081 if ${lt_cv_prog_compiler__b+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 lt_cv_prog_compiler__b=no
9085 save_LDFLAGS="$LDFLAGS"
9086 LDFLAGS="$LDFLAGS -b"
9087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9089 # The linker can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 if test -s conftest.err; then
9092 # Append any errors to the config.log.
9093 cat conftest.err 1>&5
9094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9096 if diff conftest.exp conftest.er2 >/dev/null; then
9097 lt_cv_prog_compiler__b=yes
9099 else
9100 lt_cv_prog_compiler__b=yes
9103 $RM -r conftest*
9104 LDFLAGS="$save_LDFLAGS"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9110 if test x"$lt_cv_prog_compiler__b" = xyes; then
9111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9112 else
9113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117 esac
9119 if test "$with_gnu_ld" = no; then
9120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9121 hardcode_libdir_separator=:
9123 case $host_cpu in
9124 hppa*64*|ia64*)
9125 hardcode_direct=no
9126 hardcode_shlibpath_var=no
9129 hardcode_direct=yes
9130 hardcode_direct_absolute=yes
9131 export_dynamic_flag_spec='${wl}-E'
9133 # hardcode_minus_L: Not really in the search PATH,
9134 # but as the default location of the library.
9135 hardcode_minus_L=yes
9137 esac
9141 irix5* | irix6* | nonstopux*)
9142 if test "$GCC" = yes; then
9143 archive_cmds='$CC -shared $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'
9144 # Try to use the -exported_symbol ld option, if it does not
9145 # work, assume that -exports_file does not work either and
9146 # implicitly export all symbols.
9147 save_LDFLAGS="$LDFLAGS"
9148 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9149 if test x$gcc_no_link = xyes; then
9150 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 int foo(void) {}
9155 _ACEOF
9156 if ac_fn_c_try_link "$LINENO"; then :
9157 archive_expsym_cmds='$CC -shared $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'
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LDFLAGS="$save_LDFLAGS"
9163 else
9164 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'
9165 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'
9167 archive_cmds_need_lc='no'
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 hardcode_libdir_separator=:
9170 inherit_rpath=yes
9171 link_all_deplibs=yes
9174 netbsd*)
9175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9177 else
9178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9180 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_direct=yes
9182 hardcode_shlibpath_var=no
9185 newsos6)
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_direct=yes
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_shlibpath_var=no
9193 *nto* | *qnx*)
9196 openbsd*)
9197 if test -f /usr/libexec/ld.so; then
9198 hardcode_direct=yes
9199 hardcode_shlibpath_var=no
9200 hardcode_direct_absolute=yes
9201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205 export_dynamic_flag_spec='${wl}-E'
9206 else
9207 case $host_os in
9208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_libdir_flag_spec='-R$libdir'
9213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9216 esac
9218 else
9219 ld_shlibs=no
9223 os2*)
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_minus_L=yes
9226 allow_undefined_flag=unsupported
9227 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9228 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9231 osf3*)
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9235 else
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9239 archive_cmds_need_lc='no'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9244 osf4* | osf5*) # as osf3* with the addition of -msym flag
9245 if test "$GCC" = yes; then
9246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247 archive_cmds='$CC -shared${allow_undefined_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'
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 else
9250 allow_undefined_flag=' -expect_unresolved \*'
9251 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'
9252 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~
9253 $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'
9255 # Both c and cxx compiler support -rpath directly
9256 hardcode_libdir_flag_spec='-rpath $libdir'
9258 archive_cmds_need_lc='no'
9259 hardcode_libdir_separator=:
9262 solaris*)
9263 no_undefined_flag=' -z defs'
9264 if test "$GCC" = yes; then
9265 wlarc='${wl}'
9266 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 else
9270 case `$CC -V 2>&1` in
9271 *"Compilers 5.0"*)
9272 wlarc=''
9273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9278 wlarc='${wl}'
9279 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9283 esac
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9287 case $host_os in
9288 solaris2.[0-5] | solaris2.[0-5].*) ;;
9290 # The compiler driver will combine and reorder linker options,
9291 # but understands `-z linker_flag'. GCC discards it without `$wl',
9292 # but is careful enough not to reorder.
9293 # Supported since Solaris 2.6 (maybe 2.5.1?)
9294 if test "$GCC" = yes; then
9295 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9296 else
9297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9300 esac
9301 link_all_deplibs=yes
9304 sunos4*)
9305 if test "x$host_vendor" = xsequent; then
9306 # Use $CC to link under sequent, because it throws in some extra .o
9307 # files that make .init and .fini sections work.
9308 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309 else
9310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_direct=yes
9314 hardcode_minus_L=yes
9315 hardcode_shlibpath_var=no
9318 sysv4)
9319 case $host_vendor in
9320 sni)
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes # is this really true???
9324 siemens)
9325 ## LD is ld it makes a PLAMLIB
9326 ## CC just makes a GrossModule.
9327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328 reload_cmds='$CC -r -o $output$reload_objs'
9329 hardcode_direct=no
9331 motorola)
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9335 esac
9336 runpath_var='LD_RUN_PATH'
9337 hardcode_shlibpath_var=no
9340 sysv4.3*)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_shlibpath_var=no
9343 export_dynamic_flag_spec='-Bexport'
9346 sysv4*MP*)
9347 if test -d /usr/nec; then
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_shlibpath_var=no
9350 runpath_var=LD_RUN_PATH
9351 hardcode_runpath_var=yes
9352 ld_shlibs=yes
9356 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9357 no_undefined_flag='${wl}-z,text'
9358 archive_cmds_need_lc=no
9359 hardcode_shlibpath_var=no
9360 runpath_var='LD_RUN_PATH'
9362 if test "$GCC" = yes; then
9363 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 else
9366 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 sysv5* | sco3.2v5* | sco5v6*)
9372 # Note: We can NOT use -z defs as we might desire, because we do not
9373 # link with -lc, and that would cause any symbols used from libc to
9374 # always be unresolved, which means just about no library would
9375 # ever link correctly. If we're not using GNU ld we use -z text
9376 # though, which does catch some bad symbols but isn't as heavy-handed
9377 # as -z defs.
9378 no_undefined_flag='${wl}-z,text'
9379 allow_undefined_flag='${wl}-z,nodefs'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 export_dynamic_flag_spec='${wl}-Bexport'
9386 runpath_var='LD_RUN_PATH'
9388 if test "$GCC" = yes; then
9389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 else
9392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 uts4*)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_shlibpath_var=no
9404 ld_shlibs=no
9406 esac
9408 if test x$host_vendor = xsni; then
9409 case $host in
9410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9411 export_dynamic_flag_spec='${wl}-Blargedynsym'
9413 esac
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9418 $as_echo "$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9421 with_gnu_ld=$with_gnu_ld
9438 # Do we need to explicitly link libc?
9440 case "x$archive_cmds_need_lc" in
9441 x|xyes)
9442 # Assume -lc should be added
9443 archive_cmds_need_lc=yes
9445 if test "$enable_shared" = yes && test "$GCC" = yes; then
9446 case $archive_cmds in
9447 *'~'*)
9448 # FIXME: we may have to deal with multi-command sequences.
9450 '$CC '*)
9451 # Test whether the compiler implicitly links with -lc since on some
9452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9453 # to ld, don't add -lc before -lgcc.
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9456 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 $RM conftest*
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9463 (eval $ac_compile) 2>&5
9464 ac_status=$?
9465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466 test $ac_status = 0; } 2>conftest.err; then
9467 soname=conftest
9468 lib=conftest
9469 libobjs=conftest.$ac_objext
9470 deplibs=
9471 wl=$lt_prog_compiler_wl
9472 pic_flag=$lt_prog_compiler_pic
9473 compiler_flags=-v
9474 linker_flags=-v
9475 verstring=
9476 output_objdir=.
9477 libname=conftest
9478 lt_save_allow_undefined_flag=$allow_undefined_flag
9479 allow_undefined_flag=
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9481 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }
9485 then
9486 lt_cv_archive_cmds_need_lc=no
9487 else
9488 lt_cv_archive_cmds_need_lc=yes
9490 allow_undefined_flag=$lt_save_allow_undefined_flag
9491 else
9492 cat conftest.err 1>&5
9494 $RM conftest*
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9498 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9499 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9501 esac
9504 esac
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9665 if test "$GCC" = yes; then
9666 case $host_os in
9667 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9668 *) lt_awk_arg="/^libraries:/" ;;
9669 esac
9670 case $host_os in
9671 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9672 *) lt_sed_strip_eq="s,=/,/,g" ;;
9673 esac
9674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9675 case $lt_search_path_spec in
9676 *\;*)
9677 # if the path contains ";" then we assume it to be the separator
9678 # otherwise default to the standard path separator (i.e. ":") - it is
9679 # assumed that no part of a normal pathname contains ";" but that should
9680 # okay in the real world where ";" in dirpaths is itself problematic.
9681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9686 esac
9687 # Ok, now we have the path, separated by spaces, we can step through it
9688 # and add multilib dir if necessary.
9689 lt_tmp_lt_search_path_spec=
9690 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9691 for lt_sys_path in $lt_search_path_spec; do
9692 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9694 else
9695 test -d "$lt_sys_path" && \
9696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9698 done
9699 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9700 BEGIN {RS=" "; FS="/|\n";} {
9701 lt_foo="";
9702 lt_count=0;
9703 for (lt_i = NF; lt_i > 0; lt_i--) {
9704 if ($lt_i != "" && $lt_i != ".") {
9705 if ($lt_i == "..") {
9706 lt_count++;
9707 } else {
9708 if (lt_count == 0) {
9709 lt_foo="/" $lt_i lt_foo;
9710 } else {
9711 lt_count--;
9716 if (lt_foo != "") { lt_freq[lt_foo]++; }
9717 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9719 # AWK program above erroneously prepends '/' to C:/dos/paths
9720 # for these hosts.
9721 case $host_os in
9722 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9723 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9724 esac
9725 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9726 else
9727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9729 library_names_spec=
9730 libname_spec='lib$name'
9731 soname_spec=
9732 shrext_cmds=".so"
9733 postinstall_cmds=
9734 postuninstall_cmds=
9735 finish_cmds=
9736 finish_eval=
9737 shlibpath_var=
9738 shlibpath_overrides_runpath=unknown
9739 version_type=none
9740 dynamic_linker="$host_os ld.so"
9741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9742 need_lib_prefix=unknown
9743 hardcode_into_libs=no
9745 # when you set need_version to no, make sure it does not cause -set_version
9746 # flags to be left without arguments
9747 need_version=unknown
9749 case $host_os in
9750 aix3*)
9751 version_type=linux
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9753 shlibpath_var=LIBPATH
9755 # AIX 3 has no versioning support, so we append a major version to the name.
9756 soname_spec='${libname}${release}${shared_ext}$major'
9759 aix[4-9]*)
9760 version_type=linux
9761 need_lib_prefix=no
9762 need_version=no
9763 hardcode_into_libs=yes
9764 if test "$host_cpu" = ia64; then
9765 # AIX 5 supports IA64
9766 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 else
9769 # With GCC up to 2.95.x, collect2 would create an import file
9770 # for dependence libraries. The import file would start with
9771 # the line `#! .'. This would cause the generated library to
9772 # depend on `.', always an invalid library. This was fixed in
9773 # development snapshots of GCC prior to 3.0.
9774 case $host_os in
9775 aix4 | aix4.[01] | aix4.[01].*)
9776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9777 echo ' yes '
9778 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9780 else
9781 can_build_shared=no
9784 esac
9785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9786 # soname into executable. Probably we can add versioning support to
9787 # collect2, so additional links can be useful in future.
9788 if test "$aix_use_runtimelinking" = yes; then
9789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9790 # instead of lib<name>.a to let people know that these are not
9791 # typical AIX shared libraries.
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 else
9794 # We preserve .a as extension for shared libraries through AIX4.2
9795 # and later when we are not doing run time linking.
9796 library_names_spec='${libname}${release}.a $libname.a'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LIBPATH
9803 amigaos*)
9804 case $host_cpu in
9805 powerpc)
9806 # Since July 2007 AmigaOS4 officially supports .so libraries.
9807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 m68k)
9811 library_names_spec='$libname.ixlibrary $libname.a'
9812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9813 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9815 esac
9818 beos*)
9819 library_names_spec='${libname}${shared_ext}'
9820 dynamic_linker="$host_os ld.so"
9821 shlibpath_var=LIBRARY_PATH
9824 bsdi[45]*)
9825 version_type=linux
9826 need_version=no
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9833 # the default ld.so.conf also contains /usr/contrib/lib and
9834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9835 # libtool to hard-code these into programs
9838 cygwin* | mingw* | pw32* | cegcc*)
9839 version_type=windows
9840 shrext_cmds=".dll"
9841 need_version=no
9842 need_lib_prefix=no
9844 case $GCC,$host_os in
9845 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9846 library_names_spec='$libname.dll.a'
9847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9848 postinstall_cmds='base_file=`basename \${file}`~
9849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9850 dldir=$destdir/`dirname \$dlpath`~
9851 test -d \$dldir || mkdir -p \$dldir~
9852 $install_prog $dir/$dlname \$dldir/$dlname~
9853 chmod a+x \$dldir/$dlname~
9854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9858 dlpath=$dir/\$dldll~
9859 $RM \$dlpath'
9860 shlibpath_overrides_runpath=yes
9862 case $host_os in
9863 cygwin*)
9864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9869 mingw* | cegcc*)
9870 # MinGW DLLs use traditional 'lib' prefix
9871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 pw32*)
9874 # pw32 DLLs use 'pw' prefix rather than 'lib'
9875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9877 esac
9881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9883 esac
9884 dynamic_linker='Win32 ld.exe'
9885 # FIXME: first we should search . and the directory the executable is in
9886 shlibpath_var=PATH
9889 darwin* | rhapsody*)
9890 dynamic_linker="$host_os dyld"
9891 version_type=darwin
9892 need_lib_prefix=no
9893 need_version=no
9894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9895 soname_spec='${libname}${release}${major}$shared_ext'
9896 shlibpath_overrides_runpath=yes
9897 shlibpath_var=DYLD_LIBRARY_PATH
9898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9904 dgux*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9913 freebsd* | dragonfly*)
9914 # DragonFly does not have aout. When/if they implement a new
9915 # versioning mechanism, adjust this.
9916 if test -x /usr/bin/objformat; then
9917 objformat=`/usr/bin/objformat`
9918 else
9919 case $host_os in
9920 freebsd[23].*) objformat=aout ;;
9921 *) objformat=elf ;;
9922 esac
9924 version_type=freebsd-$objformat
9925 case $version_type in
9926 freebsd-elf*)
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9928 need_version=no
9929 need_lib_prefix=no
9931 freebsd-*)
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9933 need_version=yes
9935 esac
9936 shlibpath_var=LD_LIBRARY_PATH
9937 case $host_os in
9938 freebsd2.*)
9939 shlibpath_overrides_runpath=yes
9941 freebsd3.[01]* | freebsdelf3.[01]*)
9942 shlibpath_overrides_runpath=yes
9943 hardcode_into_libs=yes
9945 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9946 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9947 shlibpath_overrides_runpath=no
9948 hardcode_into_libs=yes
9950 *) # from 4.6 on, and DragonFly
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9954 esac
9957 haiku*)
9958 version_type=linux
9959 need_lib_prefix=no
9960 need_version=no
9961 dynamic_linker="$host_os runtime_loader"
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LIBRARY_PATH
9965 shlibpath_overrides_runpath=yes
9966 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9967 hardcode_into_libs=yes
9970 hpux9* | hpux10* | hpux11*)
9971 # Give a soname corresponding to the major version so that dld.sl refuses to
9972 # link against other versions.
9973 version_type=sunos
9974 need_lib_prefix=no
9975 need_version=no
9976 case $host_cpu in
9977 ia64*)
9978 shrext_cmds='.so'
9979 hardcode_into_libs=yes
9980 dynamic_linker="$host_os dld.so"
9981 shlibpath_var=LD_LIBRARY_PATH
9982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 if test "X$HPUX_IA64_MODE" = X32; then
9986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9987 else
9988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9992 hppa*64*)
9993 shrext_cmds='.sl'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.sl"
9996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10004 shrext_cmds='.sl'
10005 dynamic_linker="$host_os dld.sl"
10006 shlibpath_var=SHLIB_PATH
10007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10011 esac
10012 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10013 postinstall_cmds='chmod 555 $lib'
10014 # or fails outright, so override atomically:
10015 install_override_mode=555
10018 interix[3-9]*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 shlibpath_overrides_runpath=no
10027 hardcode_into_libs=yes
10030 irix5* | irix6* | nonstopux*)
10031 case $host_os in
10032 nonstopux*) version_type=nonstopux ;;
10034 if test "$lt_cv_prog_gnu_ld" = yes; then
10035 version_type=linux
10036 else
10037 version_type=irix
10038 fi ;;
10039 esac
10040 need_lib_prefix=no
10041 need_version=no
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10044 case $host_os in
10045 irix5* | nonstopux*)
10046 libsuff= shlibsuff=
10049 case $LD in # libtool.m4 will add one of these switches to LD
10050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10051 libsuff= shlibsuff= libmagic=32-bit;;
10052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10053 libsuff=32 shlibsuff=N32 libmagic=N32;;
10054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10055 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10056 *) libsuff= shlibsuff= libmagic=never-match;;
10057 esac
10059 esac
10060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10061 shlibpath_overrides_runpath=no
10062 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10063 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10064 hardcode_into_libs=yes
10067 # No shared lib support for Linux oldld, aout, or coff.
10068 linux*oldld* | linux*aout* | linux*coff*)
10069 dynamic_linker=no
10072 # This must be Linux ELF.
10074 # uclinux* changes (here and below) have been submitted to the libtool
10075 # project, but have not yet been accepted: they are GCC-local changes
10076 # for the time being. (See
10077 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10078 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10079 version_type=linux
10080 need_lib_prefix=no
10081 need_version=no
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=no
10088 # Some binutils ld are patched to set DT_RUNPATH
10089 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 lt_cv_shlibpath_overrides_runpath=no
10093 save_LDFLAGS=$LDFLAGS
10094 save_libdir=$libdir
10095 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10096 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10097 if test x$gcc_no_link = xyes; then
10098 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10104 main ()
10108 return 0;
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10113 lt_cv_shlibpath_overrides_runpath=yes
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LDFLAGS=$save_LDFLAGS
10119 libdir=$save_libdir
10123 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10125 # This implies no fast_install, which is unacceptable.
10126 # Some rework will be needed to allow for fast_install
10127 # before this can be enabled.
10128 hardcode_into_libs=yes
10130 # Append ld.so.conf contents to the search path
10131 if test -f /etc/ld.so.conf; then
10132 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' ' '`
10133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10136 # We used to test for /lib/ld.so.1 and disable shared libraries on
10137 # powerpc, because MkLinux only supported shared libraries with the
10138 # GNU dynamic linker. Since this was broken with cross compilers,
10139 # most powerpc-linux boxes support dynamic linking these days and
10140 # people can always --disable-shared, the test was removed, and we
10141 # assume the GNU/Linux dynamic linker is in use.
10142 dynamic_linker='GNU/Linux ld.so'
10145 netbsd*)
10146 version_type=sunos
10147 need_lib_prefix=no
10148 need_version=no
10149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10152 dynamic_linker='NetBSD (a.out) ld.so'
10153 else
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 dynamic_linker='NetBSD ld.elf_so'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=yes
10160 hardcode_into_libs=yes
10163 newsos6)
10164 version_type=linux
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath=yes
10170 *nto* | *qnx*)
10171 version_type=qnx
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=no
10178 hardcode_into_libs=yes
10179 dynamic_linker='ldqnx.so'
10182 openbsd*)
10183 version_type=sunos
10184 sys_lib_dlsearch_path_spec="/usr/lib"
10185 need_lib_prefix=no
10186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10187 case $host_os in
10188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10189 *) need_version=no ;;
10190 esac
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10195 case $host_os in
10196 openbsd2.[89] | openbsd2.[89].*)
10197 shlibpath_overrides_runpath=no
10200 shlibpath_overrides_runpath=yes
10202 esac
10203 else
10204 shlibpath_overrides_runpath=yes
10208 os2*)
10209 libname_spec='$name'
10210 shrext_cmds=".dll"
10211 need_lib_prefix=no
10212 library_names_spec='$libname${shared_ext} $libname.a'
10213 dynamic_linker='OS/2 ld.exe'
10214 shlibpath_var=LIBPATH
10217 osf3* | osf4* | osf5*)
10218 version_type=osf
10219 need_lib_prefix=no
10220 need_version=no
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10228 rdos*)
10229 dynamic_linker=no
10232 solaris*)
10233 version_type=linux
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=yes
10240 hardcode_into_libs=yes
10241 # ldd complains unless libraries are executable
10242 postinstall_cmds='chmod +x $lib'
10245 sunos4*)
10246 version_type=sunos
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10248 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 shlibpath_overrides_runpath=yes
10251 if test "$with_gnu_ld" = yes; then
10252 need_lib_prefix=no
10254 need_version=yes
10257 sysv4 | sysv4.3*)
10258 version_type=linux
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 case $host_vendor in
10263 sni)
10264 shlibpath_overrides_runpath=no
10265 need_lib_prefix=no
10266 runpath_var=LD_RUN_PATH
10268 siemens)
10269 need_lib_prefix=no
10271 motorola)
10272 need_lib_prefix=no
10273 need_version=no
10274 shlibpath_overrides_runpath=no
10275 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10277 esac
10280 sysv4*MP*)
10281 if test -d /usr/nec ;then
10282 version_type=linux
10283 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10284 soname_spec='$libname${shared_ext}.$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10290 version_type=freebsd-elf
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 if test "$with_gnu_ld" = yes; then
10299 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10300 else
10301 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10302 case $host_os in
10303 sco3.2v5*)
10304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10306 esac
10308 sys_lib_dlsearch_path_spec='/usr/lib'
10311 tpf*)
10312 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=no
10319 hardcode_into_libs=yes
10322 uts4*)
10323 version_type=linux
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10329 # Shared libraries for VwWorks, >= 7 only at this stage
10330 # and (fpic) still incompatible with "large" code models
10331 # in a few configurations. Only for RTP mode in any case,
10332 # and upon explicit request at configure time.
10333 vxworks7*)
10334 dynamic_linker=no
10335 case ${with_multisubdir}-${enable_shared} in
10336 *large*)
10338 *mrtp*-yes)
10339 version_type=linux
10340 need_lib_prefix=no
10341 need_version=no
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 dynamic_linker="$host_os module_loader"
10346 esac
10349 dynamic_linker=no
10351 esac
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10353 $as_echo "$dynamic_linker" >&6; }
10354 test "$dynamic_linker" = no && can_build_shared=no
10356 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10357 if test "$GCC" = yes; then
10358 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10362 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10365 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10460 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10461 hardcode_action=
10462 if test -n "$hardcode_libdir_flag_spec" ||
10463 test -n "$runpath_var" ||
10464 test "X$hardcode_automatic" = "Xyes" ; then
10466 # We can hardcode non-existent directories.
10467 if test "$hardcode_direct" != no &&
10468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10469 # have to relink, otherwise we might link with an installed library
10470 # when we should be linking with a yet-to-be-installed one
10471 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10472 test "$hardcode_minus_L" != no; then
10473 # Linking always hardcodes the temporary library directory.
10474 hardcode_action=relink
10475 else
10476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10477 hardcode_action=immediate
10479 else
10480 # We cannot hardcode anything, or else we can only hardcode existing
10481 # directories.
10482 hardcode_action=unsupported
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10485 $as_echo "$hardcode_action" >&6; }
10487 if test "$hardcode_action" = relink ||
10488 test "$inherit_rpath" = yes; then
10489 # Fast installation is not supported
10490 enable_fast_install=no
10491 elif test "$shlibpath_overrides_runpath" = yes ||
10492 test "$enable_shared" = no; then
10493 # Fast installation is not necessary
10494 enable_fast_install=needless
10502 if test "x$enable_dlopen" != xyes; then
10503 enable_dlopen=unknown
10504 enable_dlopen_self=unknown
10505 enable_dlopen_self_static=unknown
10506 else
10507 lt_cv_dlopen=no
10508 lt_cv_dlopen_libs=
10510 case $host_os in
10511 beos*)
10512 lt_cv_dlopen="load_add_on"
10513 lt_cv_dlopen_libs=
10514 lt_cv_dlopen_self=yes
10517 mingw* | pw32* | cegcc*)
10518 lt_cv_dlopen="LoadLibrary"
10519 lt_cv_dlopen_libs=
10522 cygwin*)
10523 lt_cv_dlopen="dlopen"
10524 lt_cv_dlopen_libs=
10527 darwin*)
10528 # if libdl is installed we need to link against it
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10530 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10531 if ${ac_cv_lib_dl_dlopen+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-ldl $LIBS"
10536 if test x$gcc_no_link = xyes; then
10537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char dlopen ();
10550 main ()
10552 return dlopen ();
10554 return 0;
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 ac_cv_lib_dl_dlopen=yes
10559 else
10560 ac_cv_lib_dl_dlopen=no
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10567 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10568 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570 else
10572 lt_cv_dlopen="dyld"
10573 lt_cv_dlopen_libs=
10574 lt_cv_dlopen_self=yes
10581 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10582 if test "x$ac_cv_func_shl_load" = xyes; then :
10583 lt_cv_dlopen="shl_load"
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10586 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10587 if ${ac_cv_lib_dld_shl_load+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-ldld $LIBS"
10592 if test x$gcc_no_link = xyes; then
10593 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10598 /* Override any GCC internal prototype to avoid an error.
10599 Use char because int might match the return type of a GCC
10600 builtin and then its argument prototype would still apply. */
10601 #ifdef __cplusplus
10602 extern "C"
10603 #endif
10604 char shl_load ();
10606 main ()
10608 return shl_load ();
10610 return 0;
10612 _ACEOF
10613 if ac_fn_c_try_link "$LINENO"; then :
10614 ac_cv_lib_dld_shl_load=yes
10615 else
10616 ac_cv_lib_dld_shl_load=no
10618 rm -f core conftest.err conftest.$ac_objext \
10619 conftest$ac_exeext conftest.$ac_ext
10620 LIBS=$ac_check_lib_save_LIBS
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10623 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10624 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10626 else
10627 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10628 if test "x$ac_cv_func_dlopen" = xyes; then :
10629 lt_cv_dlopen="dlopen"
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10632 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10633 if ${ac_cv_lib_dl_dlopen+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-ldl $LIBS"
10638 if test x$gcc_no_link = xyes; then
10639 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char dlopen ();
10652 main ()
10654 return dlopen ();
10656 return 0;
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_dl_dlopen=yes
10661 else
10662 ac_cv_lib_dl_dlopen=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10669 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10670 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10674 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10675 if ${ac_cv_lib_svld_dlopen+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 ac_check_lib_save_LIBS=$LIBS
10679 LIBS="-lsvld $LIBS"
10680 if test x$gcc_no_link = xyes; then
10681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char dlopen ();
10694 main ()
10696 return dlopen ();
10698 return 0;
10700 _ACEOF
10701 if ac_fn_c_try_link "$LINENO"; then :
10702 ac_cv_lib_svld_dlopen=yes
10703 else
10704 ac_cv_lib_svld_dlopen=no
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10708 LIBS=$ac_check_lib_save_LIBS
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10712 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10714 else
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10717 if ${ac_cv_lib_dld_dld_link+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 ac_check_lib_save_LIBS=$LIBS
10721 LIBS="-ldld $LIBS"
10722 if test x$gcc_no_link = xyes; then
10723 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char dld_link ();
10736 main ()
10738 return dld_link ();
10740 return 0;
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 ac_cv_lib_dld_dld_link=yes
10745 else
10746 ac_cv_lib_dld_dld_link=no
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10753 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10754 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10755 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10774 esac
10776 if test "x$lt_cv_dlopen" != xno; then
10777 enable_dlopen=yes
10778 else
10779 enable_dlopen=no
10782 case $lt_cv_dlopen in
10783 dlopen)
10784 save_CPPFLAGS="$CPPFLAGS"
10785 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10787 save_LDFLAGS="$LDFLAGS"
10788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10790 save_LIBS="$LIBS"
10791 LIBS="$lt_cv_dlopen_libs $LIBS"
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10794 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10795 if ${lt_cv_dlopen_self+:} false; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 if test "$cross_compiling" = yes; then :
10799 lt_cv_dlopen_self=cross
10800 else
10801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10802 lt_status=$lt_dlunknown
10803 cat > conftest.$ac_ext <<_LT_EOF
10804 #line 10804 "configure"
10805 #include "confdefs.h"
10807 #if HAVE_DLFCN_H
10808 #include <dlfcn.h>
10809 #endif
10811 #include <stdio.h>
10813 #ifdef RTLD_GLOBAL
10814 # define LT_DLGLOBAL RTLD_GLOBAL
10815 #else
10816 # ifdef DL_GLOBAL
10817 # define LT_DLGLOBAL DL_GLOBAL
10818 # else
10819 # define LT_DLGLOBAL 0
10820 # endif
10821 #endif
10823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10824 find out it does not work in some platform. */
10825 #ifndef LT_DLLAZY_OR_NOW
10826 # ifdef RTLD_LAZY
10827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10828 # else
10829 # ifdef DL_LAZY
10830 # define LT_DLLAZY_OR_NOW DL_LAZY
10831 # else
10832 # ifdef RTLD_NOW
10833 # define LT_DLLAZY_OR_NOW RTLD_NOW
10834 # else
10835 # ifdef DL_NOW
10836 # define LT_DLLAZY_OR_NOW DL_NOW
10837 # else
10838 # define LT_DLLAZY_OR_NOW 0
10839 # endif
10840 # endif
10841 # endif
10842 # endif
10843 #endif
10845 /* When -fvisbility=hidden is used, assume the code has been annotated
10846 correspondingly for the symbols needed. */
10847 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10848 void fnord () __attribute__((visibility("default")));
10849 #endif
10851 void fnord () { int i=42; }
10852 int main ()
10854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10855 int status = $lt_dlunknown;
10857 if (self)
10859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10860 else
10862 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10863 else puts (dlerror ());
10865 /* dlclose (self); */
10867 else
10868 puts (dlerror ());
10870 return status;
10872 _LT_EOF
10873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10874 (eval $ac_link) 2>&5
10875 ac_status=$?
10876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10877 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10878 (./conftest; exit; ) >&5 2>/dev/null
10879 lt_status=$?
10880 case x$lt_status in
10881 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10882 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10883 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10884 esac
10885 else :
10886 # compilation failed
10887 lt_cv_dlopen_self=no
10890 rm -fr conftest*
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10895 $as_echo "$lt_cv_dlopen_self" >&6; }
10897 if test "x$lt_cv_dlopen_self" = xyes; then
10898 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10900 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10901 if ${lt_cv_dlopen_self_static+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 if test "$cross_compiling" = yes; then :
10905 lt_cv_dlopen_self_static=cross
10906 else
10907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10908 lt_status=$lt_dlunknown
10909 cat > conftest.$ac_ext <<_LT_EOF
10910 #line 10910 "configure"
10911 #include "confdefs.h"
10913 #if HAVE_DLFCN_H
10914 #include <dlfcn.h>
10915 #endif
10917 #include <stdio.h>
10919 #ifdef RTLD_GLOBAL
10920 # define LT_DLGLOBAL RTLD_GLOBAL
10921 #else
10922 # ifdef DL_GLOBAL
10923 # define LT_DLGLOBAL DL_GLOBAL
10924 # else
10925 # define LT_DLGLOBAL 0
10926 # endif
10927 #endif
10929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10930 find out it does not work in some platform. */
10931 #ifndef LT_DLLAZY_OR_NOW
10932 # ifdef RTLD_LAZY
10933 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10934 # else
10935 # ifdef DL_LAZY
10936 # define LT_DLLAZY_OR_NOW DL_LAZY
10937 # else
10938 # ifdef RTLD_NOW
10939 # define LT_DLLAZY_OR_NOW RTLD_NOW
10940 # else
10941 # ifdef DL_NOW
10942 # define LT_DLLAZY_OR_NOW DL_NOW
10943 # else
10944 # define LT_DLLAZY_OR_NOW 0
10945 # endif
10946 # endif
10947 # endif
10948 # endif
10949 #endif
10951 /* When -fvisbility=hidden is used, assume the code has been annotated
10952 correspondingly for the symbols needed. */
10953 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10954 void fnord () __attribute__((visibility("default")));
10955 #endif
10957 void fnord () { int i=42; }
10958 int main ()
10960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10961 int status = $lt_dlunknown;
10963 if (self)
10965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10966 else
10968 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10969 else puts (dlerror ());
10971 /* dlclose (self); */
10973 else
10974 puts (dlerror ());
10976 return status;
10978 _LT_EOF
10979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10980 (eval $ac_link) 2>&5
10981 ac_status=$?
10982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10983 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10984 (./conftest; exit; ) >&5 2>/dev/null
10985 lt_status=$?
10986 case x$lt_status in
10987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10990 esac
10991 else :
10992 # compilation failed
10993 lt_cv_dlopen_self_static=no
10996 rm -fr conftest*
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11001 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11004 CPPFLAGS="$save_CPPFLAGS"
11005 LDFLAGS="$save_LDFLAGS"
11006 LIBS="$save_LIBS"
11008 esac
11010 case $lt_cv_dlopen_self in
11011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11012 *) enable_dlopen_self=unknown ;;
11013 esac
11015 case $lt_cv_dlopen_self_static in
11016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11017 *) enable_dlopen_self_static=unknown ;;
11018 esac
11037 striplib=
11038 old_striplib=
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11040 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11041 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11043 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045 $as_echo "yes" >&6; }
11046 else
11047 # FIXME - insert some real tests, host_os isn't really good enough
11048 case $host_os in
11049 darwin*)
11050 if test -n "$STRIP" ; then
11051 striplib="$STRIP -x"
11052 old_striplib="$STRIP -S"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054 $as_echo "yes" >&6; }
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; }
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11064 esac
11078 # Report which library types will actually be built
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11080 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11082 $as_echo "$can_build_shared" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11085 $as_echo_n "checking whether to build shared libraries... " >&6; }
11086 test "$can_build_shared" = "no" && enable_shared=no
11088 # On AIX, shared libraries and static libraries use the same namespace, and
11089 # are all built from PIC.
11090 case $host_os in
11091 aix3*)
11092 test "$enable_shared" = yes && enable_static=no
11093 if test -n "$RANLIB"; then
11094 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11095 postinstall_cmds='$RANLIB $lib'
11099 aix[4-9]*)
11100 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11101 test "$enable_shared" = yes && enable_static=no
11104 esac
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11106 $as_echo "$enable_shared" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11109 $as_echo_n "checking whether to build static libraries... " >&6; }
11110 # Make sure either enable_shared or enable_static is yes.
11111 test "$enable_shared" = yes || enable_static=yes
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11113 $as_echo "$enable_static" >&6; }
11119 ac_ext=c
11120 ac_cpp='$CPP $CPPFLAGS'
11121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11125 CC="$lt_save_CC"
11139 ac_config_commands="$ac_config_commands libtool"
11144 # Only expand once:
11148 # Find CPP now so that any conditional tests below won't do it and
11149 # thereby make the resulting definitions conditional.
11150 ac_ext=c
11151 ac_cpp='$CPP $CPPFLAGS'
11152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11156 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11157 # On Suns, sometimes $CPP names a directory.
11158 if test -n "$CPP" && test -d "$CPP"; then
11159 CPP=
11161 if test -z "$CPP"; then
11162 if ${ac_cv_prog_CPP+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 # Double quotes because CPP needs to be expanded
11166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11168 ac_preproc_ok=false
11169 for ac_c_preproc_warn_flag in '' yes
11171 # Use a header file that comes with gcc, so configuring glibc
11172 # with a fresh cross-compiler works.
11173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11174 # <limits.h> exists even on freestanding compilers.
11175 # On the NeXT, cc -E runs the code through the compiler's parser,
11176 # not just through cpp. "Syntax error" is here to catch this case.
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11179 #ifdef __STDC__
11180 # include <limits.h>
11181 #else
11182 # include <assert.h>
11183 #endif
11184 Syntax error
11185 _ACEOF
11186 if ac_fn_c_try_cpp "$LINENO"; then :
11188 else
11189 # Broken: fails on valid input.
11190 continue
11192 rm -f conftest.err conftest.i conftest.$ac_ext
11194 # OK, works on sane cases. Now check whether nonexistent headers
11195 # can be detected and how.
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 #include <ac_nonexistent.h>
11199 _ACEOF
11200 if ac_fn_c_try_cpp "$LINENO"; then :
11201 # Broken: success on invalid input.
11202 continue
11203 else
11204 # Passes both tests.
11205 ac_preproc_ok=:
11206 break
11208 rm -f conftest.err conftest.i conftest.$ac_ext
11210 done
11211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11212 rm -f conftest.i conftest.err conftest.$ac_ext
11213 if $ac_preproc_ok; then :
11214 break
11217 done
11218 ac_cv_prog_CPP=$CPP
11221 CPP=$ac_cv_prog_CPP
11222 else
11223 ac_cv_prog_CPP=$CPP
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11226 $as_echo "$CPP" >&6; }
11227 ac_preproc_ok=false
11228 for ac_c_preproc_warn_flag in '' yes
11230 # Use a header file that comes with gcc, so configuring glibc
11231 # with a fresh cross-compiler works.
11232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 # <limits.h> exists even on freestanding compilers.
11234 # On the NeXT, cc -E runs the code through the compiler's parser,
11235 # not just through cpp. "Syntax error" is here to catch this case.
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #ifdef __STDC__
11239 # include <limits.h>
11240 #else
11241 # include <assert.h>
11242 #endif
11243 Syntax error
11244 _ACEOF
11245 if ac_fn_c_try_cpp "$LINENO"; then :
11247 else
11248 # Broken: fails on valid input.
11249 continue
11251 rm -f conftest.err conftest.i conftest.$ac_ext
11253 # OK, works on sane cases. Now check whether nonexistent headers
11254 # can be detected and how.
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257 #include <ac_nonexistent.h>
11258 _ACEOF
11259 if ac_fn_c_try_cpp "$LINENO"; then :
11260 # Broken: success on invalid input.
11261 continue
11262 else
11263 # Passes both tests.
11264 ac_preproc_ok=:
11265 break
11267 rm -f conftest.err conftest.i conftest.$ac_ext
11269 done
11270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11271 rm -f conftest.i conftest.err conftest.$ac_ext
11272 if $ac_preproc_ok; then :
11274 else
11275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11277 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11278 See \`config.log' for more details" "$LINENO" 5; }
11281 ac_ext=c
11282 ac_cpp='$CPP $CPPFLAGS'
11283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11288 if test -n "$with_cross_host"; then
11289 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
11290 # may not work correctly, because the compiler may not be able to
11291 # link executables.
11293 # We assume newlib. This lets us hard-code the functions we know
11294 # we'll have.
11295 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
11297 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11299 else
11300 if test x$gcc_no_link = xyes; then
11301 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
11302 ac_cv_func_mmap_fixed_mapped=no
11305 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
11309 for ac_header in $ac_header_list
11310 do :
11311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11312 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11315 cat >>confdefs.h <<_ACEOF
11316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317 _ACEOF
11321 done
11330 for ac_func in getpagesize
11331 do :
11332 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11333 if test "x$ac_cv_func_getpagesize" = xyes; then :
11334 cat >>confdefs.h <<_ACEOF
11335 #define HAVE_GETPAGESIZE 1
11336 _ACEOF
11339 done
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11342 $as_echo_n "checking for working mmap... " >&6; }
11343 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 if test "$cross_compiling" = yes; then :
11347 ac_cv_func_mmap_fixed_mapped=no
11348 else
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351 $ac_includes_default
11352 /* malloc might have been renamed as rpl_malloc. */
11353 #undef malloc
11355 /* Thanks to Mike Haertel and Jim Avera for this test.
11356 Here is a matrix of mmap possibilities:
11357 mmap private not fixed
11358 mmap private fixed at somewhere currently unmapped
11359 mmap private fixed at somewhere already mapped
11360 mmap shared not fixed
11361 mmap shared fixed at somewhere currently unmapped
11362 mmap shared fixed at somewhere already mapped
11363 For private mappings, we should verify that changes cannot be read()
11364 back from the file, nor mmap's back from the file at a different
11365 address. (There have been systems where private was not correctly
11366 implemented like the infamous i386 svr4.0, and systems where the
11367 VM page cache was not coherent with the file system buffer cache
11368 like early versions of FreeBSD and possibly contemporary NetBSD.)
11369 For shared mappings, we should conversely verify that changes get
11370 propagated back to all the places they're supposed to be.
11372 Grep wants private fixed already mapped.
11373 The main things grep needs to know about mmap are:
11374 * does it exist and is it safe to write into the mmap'd area
11375 * how to use it (BSD variants) */
11377 #include <fcntl.h>
11378 #include <sys/mman.h>
11380 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11381 char *malloc ();
11382 #endif
11384 /* This mess was copied from the GNU getpagesize.h. */
11385 #ifndef HAVE_GETPAGESIZE
11386 # ifdef _SC_PAGESIZE
11387 # define getpagesize() sysconf(_SC_PAGESIZE)
11388 # else /* no _SC_PAGESIZE */
11389 # ifdef HAVE_SYS_PARAM_H
11390 # include <sys/param.h>
11391 # ifdef EXEC_PAGESIZE
11392 # define getpagesize() EXEC_PAGESIZE
11393 # else /* no EXEC_PAGESIZE */
11394 # ifdef NBPG
11395 # define getpagesize() NBPG * CLSIZE
11396 # ifndef CLSIZE
11397 # define CLSIZE 1
11398 # endif /* no CLSIZE */
11399 # else /* no NBPG */
11400 # ifdef NBPC
11401 # define getpagesize() NBPC
11402 # else /* no NBPC */
11403 # ifdef PAGESIZE
11404 # define getpagesize() PAGESIZE
11405 # endif /* PAGESIZE */
11406 # endif /* no NBPC */
11407 # endif /* no NBPG */
11408 # endif /* no EXEC_PAGESIZE */
11409 # else /* no HAVE_SYS_PARAM_H */
11410 # define getpagesize() 8192 /* punt totally */
11411 # endif /* no HAVE_SYS_PARAM_H */
11412 # endif /* no _SC_PAGESIZE */
11414 #endif /* no HAVE_GETPAGESIZE */
11417 main ()
11419 char *data, *data2, *data3;
11420 const char *cdata2;
11421 int i, pagesize;
11422 int fd, fd2;
11424 pagesize = getpagesize ();
11426 /* First, make a file with some known garbage in it. */
11427 data = (char *) malloc (pagesize);
11428 if (!data)
11429 return 1;
11430 for (i = 0; i < pagesize; ++i)
11431 *(data + i) = rand ();
11432 umask (0);
11433 fd = creat ("conftest.mmap", 0600);
11434 if (fd < 0)
11435 return 2;
11436 if (write (fd, data, pagesize) != pagesize)
11437 return 3;
11438 close (fd);
11440 /* Next, check that the tail of a page is zero-filled. File must have
11441 non-zero length, otherwise we risk SIGBUS for entire page. */
11442 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11443 if (fd2 < 0)
11444 return 4;
11445 cdata2 = "";
11446 if (write (fd2, cdata2, 1) != 1)
11447 return 5;
11448 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11449 if (data2 == MAP_FAILED)
11450 return 6;
11451 for (i = 0; i < pagesize; ++i)
11452 if (*(data2 + i))
11453 return 7;
11454 close (fd2);
11455 if (munmap (data2, pagesize))
11456 return 8;
11458 /* Next, try to mmap the file at a fixed address which already has
11459 something else allocated at it. If we can, also make sure that
11460 we see the same garbage. */
11461 fd = open ("conftest.mmap", O_RDWR);
11462 if (fd < 0)
11463 return 9;
11464 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11465 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11466 return 10;
11467 for (i = 0; i < pagesize; ++i)
11468 if (*(data + i) != *(data2 + i))
11469 return 11;
11471 /* Finally, make sure that changes to the mapped area do not
11472 percolate back to the file as seen by read(). (This is a bug on
11473 some variants of i386 svr4.0.) */
11474 for (i = 0; i < pagesize; ++i)
11475 *(data2 + i) = *(data2 + i) + 1;
11476 data3 = (char *) malloc (pagesize);
11477 if (!data3)
11478 return 12;
11479 if (read (fd, data3, pagesize) != pagesize)
11480 return 13;
11481 for (i = 0; i < pagesize; ++i)
11482 if (*(data + i) != *(data3 + i))
11483 return 14;
11484 close (fd);
11485 return 0;
11487 _ACEOF
11488 if ac_fn_c_try_run "$LINENO"; then :
11489 ac_cv_func_mmap_fixed_mapped=yes
11490 else
11491 ac_cv_func_mmap_fixed_mapped=no
11493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11494 conftest.$ac_objext conftest.beam conftest.$ac_ext
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11499 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11500 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11502 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11505 rm -f conftest.mmap conftest.txt
11508 for ac_func in memcpy strerror
11509 do :
11510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11512 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11513 cat >>confdefs.h <<_ACEOF
11514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11515 _ACEOF
11518 done
11522 for ac_header in unistd.h
11523 do :
11524 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11525 if test "x$ac_cv_header_unistd_h" = xyes; then :
11526 cat >>confdefs.h <<_ACEOF
11527 #define HAVE_UNISTD_H 1
11528 _ACEOF
11532 done
11536 # Check whether --with-toolexeclibdir was given.
11537 if test "${with_toolexeclibdir+set}" = set; then :
11538 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
11542 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
11544 esac
11545 else
11546 with_toolexeclibdir=no
11551 if test -n "$with_cross_host" &&
11552 test x"$with_cross_host" != x"no"; then
11553 toolexecdir='$(exec_prefix)/$(target_alias)'
11554 case ${with_toolexeclibdir} in
11556 toolexeclibdir='$(toolexecdir)/lib'
11559 toolexeclibdir=${with_toolexeclibdir}
11561 esac
11562 else
11563 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11564 toolexeclibdir='$(libdir)'
11566 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11567 multiosdir=/`$CC -print-multi-os-directory`
11568 case $multiosdir in
11569 /.) multiosdir= ;; # Avoid trailing /.
11570 esac
11571 else
11572 multiosdir=
11574 toolexeclibdir=${toolexeclibdir}${multiosdir}
11578 if test -n "$with_target_subdir"; then
11579 TARGET_LIBRARY_TRUE=
11580 TARGET_LIBRARY_FALSE='#'
11581 else
11582 TARGET_LIBRARY_TRUE='#'
11583 TARGET_LIBRARY_FALSE=
11587 if test "${multilib}" = "yes"; then
11588 multilib_arg="--enable-multilib"
11589 else
11590 multilib_arg=
11593 # Enable --enable-host-shared.
11594 # Check whether --enable-host-shared was given.
11595 if test "${enable_host_shared+set}" = set; then :
11596 enableval=$enable_host_shared;
11601 # Enable --enable-host-pie.
11602 # Check whether --enable-host-pie was given.
11603 if test "${enable_host_pie+set}" = set; then :
11604 enableval=$enable_host_pie;
11609 if test x$enable_host_shared = xyes; then
11610 PICFLAG=-fPIC
11611 elif test x$enable_host_pie = xyes; then
11612 PICFLAG=-fPIE
11613 else
11614 PICFLAG=
11618 ac_config_files="$ac_config_files Makefile"
11620 cat >confcache <<\_ACEOF
11621 # This file is a shell script that caches the results of configure
11622 # tests run on this system so they can be shared between configure
11623 # scripts and configure runs, see configure's option --config-cache.
11624 # It is not useful on other systems. If it contains results you don't
11625 # want to keep, you may remove or edit it.
11627 # config.status only pays attention to the cache file if you give it
11628 # the --recheck option to rerun configure.
11630 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11631 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11632 # following values.
11634 _ACEOF
11636 # The following way of writing the cache mishandles newlines in values,
11637 # but we know of no workaround that is simple, portable, and efficient.
11638 # So, we kill variables containing newlines.
11639 # Ultrix sh set writes to stderr and can't be redirected directly,
11640 # and sets the high bit in the cache file unless we assign to the vars.
11642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11643 eval ac_val=\$$ac_var
11644 case $ac_val in #(
11645 *${as_nl}*)
11646 case $ac_var in #(
11647 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11648 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11649 esac
11650 case $ac_var in #(
11651 _ | IFS | as_nl) ;; #(
11652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11653 *) { eval $ac_var=; unset $ac_var;} ;;
11654 esac ;;
11655 esac
11656 done
11658 (set) 2>&1 |
11659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11660 *${as_nl}ac_space=\ *)
11661 # `set' does not quote correctly, so add quotes: double-quote
11662 # substitution turns \\\\ into \\, and sed turns \\ into \.
11663 sed -n \
11664 "s/'/'\\\\''/g;
11665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11666 ;; #(
11668 # `set' quotes correctly as required by POSIX, so do not add quotes.
11669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11671 esac |
11672 sort
11674 sed '
11675 /^ac_cv_env_/b end
11676 t clear
11677 :clear
11678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11679 t end
11680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11681 :end' >>confcache
11682 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11683 if test -w "$cache_file"; then
11684 if test "x$cache_file" != "x/dev/null"; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11686 $as_echo "$as_me: updating cache $cache_file" >&6;}
11687 if test ! -f "$cache_file" || test -h "$cache_file"; then
11688 cat confcache >"$cache_file"
11689 else
11690 case $cache_file in #(
11691 */* | ?:*)
11692 mv -f confcache "$cache_file"$$ &&
11693 mv -f "$cache_file"$$ "$cache_file" ;; #(
11695 mv -f confcache "$cache_file" ;;
11696 esac
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11701 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11704 rm -f confcache
11706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11707 # Let make expand exec_prefix.
11708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11710 # Transform confdefs.h into DEFS.
11711 # Protect against shell expansion while executing Makefile rules.
11712 # Protect against Makefile macro expansion.
11714 # If the first sed substitution is executed (which looks for macros that
11715 # take arguments), then branch to the quote section. Otherwise,
11716 # look for a macro that doesn't take arguments.
11717 ac_script='
11718 :mline
11719 /\\$/{
11721 s,\\\n,,
11722 b mline
11724 t clear
11725 :clear
11726 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11727 t quote
11728 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11729 t quote
11730 b any
11731 :quote
11732 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11733 s/\[/\\&/g
11734 s/\]/\\&/g
11735 s/\$/$$/g
11737 :any
11740 s/^\n//
11741 s/\n/ /g
11745 DEFS=`sed -n "$ac_script" confdefs.h`
11748 ac_libobjs=
11749 ac_ltlibobjs=
11751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11752 # 1. Remove the extension, and $U if already installed.
11753 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11754 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11756 # will be set to the directory where LIBOBJS objects are built.
11757 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11758 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11759 done
11760 LIBOBJS=$ac_libobjs
11762 LTLIBOBJS=$ac_ltlibobjs
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11766 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11767 if test -n "$am_sleep_pid"; then
11768 # Hide warnings about reused PIDs.
11769 wait $am_sleep_pid 2>/dev/null
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11772 $as_echo "done" >&6; }
11773 if test -n "$EXEEXT"; then
11774 am__EXEEXT_TRUE=
11775 am__EXEEXT_FALSE='#'
11776 else
11777 am__EXEEXT_TRUE='#'
11778 am__EXEEXT_FALSE=
11781 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11782 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11785 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11786 as_fn_error $? "conditional \"AMDEP\" was never defined.
11787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11789 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11790 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11793 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11794 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
11795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11798 : "${CONFIG_STATUS=./config.status}"
11799 ac_write_fail=0
11800 ac_clean_files_save=$ac_clean_files
11801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11803 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11804 as_write_fail=0
11805 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11806 #! $SHELL
11807 # Generated by $as_me.
11808 # Run this file to recreate the current configuration.
11809 # Compiler output produced by configure, useful for debugging
11810 # configure, is in config.log if it exists.
11812 debug=false
11813 ac_cs_recheck=false
11814 ac_cs_silent=false
11816 SHELL=\${CONFIG_SHELL-$SHELL}
11817 export SHELL
11818 _ASEOF
11819 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11820 ## -------------------- ##
11821 ## M4sh Initialization. ##
11822 ## -------------------- ##
11824 # Be more Bourne compatible
11825 DUALCASE=1; export DUALCASE # for MKS sh
11826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11827 emulate sh
11828 NULLCMD=:
11829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11830 # is contrary to our usage. Disable this feature.
11831 alias -g '${1+"$@"}'='"$@"'
11832 setopt NO_GLOB_SUBST
11833 else
11834 case `(set -o) 2>/dev/null` in #(
11835 *posix*) :
11836 set -o posix ;; #(
11837 *) :
11839 esac
11843 as_nl='
11845 export as_nl
11846 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11847 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11850 # Prefer a ksh shell builtin over an external printf program on Solaris,
11851 # but without wasting forks for bash or zsh.
11852 if test -z "$BASH_VERSION$ZSH_VERSION" \
11853 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11854 as_echo='print -r --'
11855 as_echo_n='print -rn --'
11856 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11857 as_echo='printf %s\n'
11858 as_echo_n='printf %s'
11859 else
11860 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11861 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11862 as_echo_n='/usr/ucb/echo -n'
11863 else
11864 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11865 as_echo_n_body='eval
11866 arg=$1;
11867 case $arg in #(
11868 *"$as_nl"*)
11869 expr "X$arg" : "X\\(.*\\)$as_nl";
11870 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11871 esac;
11872 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11874 export as_echo_n_body
11875 as_echo_n='sh -c $as_echo_n_body as_echo'
11877 export as_echo_body
11878 as_echo='sh -c $as_echo_body as_echo'
11881 # The user is always right.
11882 if test "${PATH_SEPARATOR+set}" != set; then
11883 PATH_SEPARATOR=:
11884 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11885 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11886 PATH_SEPARATOR=';'
11891 # IFS
11892 # We need space, tab and new line, in precisely that order. Quoting is
11893 # there to prevent editors from complaining about space-tab.
11894 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11895 # splitting by setting IFS to empty value.)
11896 IFS=" "" $as_nl"
11898 # Find who we are. Look in the path if we contain no directory separator.
11899 as_myself=
11900 case $0 in #((
11901 *[\\/]* ) as_myself=$0 ;;
11902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903 for as_dir in $PATH
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
11907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11908 done
11909 IFS=$as_save_IFS
11912 esac
11913 # We did not find ourselves, most probably we were run as `sh COMMAND'
11914 # in which case we are not to be found in the path.
11915 if test "x$as_myself" = x; then
11916 as_myself=$0
11918 if test ! -f "$as_myself"; then
11919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11920 exit 1
11923 # Unset variables that we do not need and which cause bugs (e.g. in
11924 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11925 # suppresses any "Segmentation fault" message there. '((' could
11926 # trigger a bug in pdksh 5.2.14.
11927 for as_var in BASH_ENV ENV MAIL MAILPATH
11928 do eval test x\${$as_var+set} = xset \
11929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11930 done
11931 PS1='$ '
11932 PS2='> '
11933 PS4='+ '
11935 # NLS nuisances.
11936 LC_ALL=C
11937 export LC_ALL
11938 LANGUAGE=C
11939 export LANGUAGE
11941 # CDPATH.
11942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11945 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11946 # ----------------------------------------
11947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11949 # script with STATUS, using 1 if that was 0.
11950 as_fn_error ()
11952 as_status=$1; test $as_status -eq 0 && as_status=1
11953 if test "$4"; then
11954 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11957 $as_echo "$as_me: error: $2" >&2
11958 as_fn_exit $as_status
11959 } # as_fn_error
11962 # as_fn_set_status STATUS
11963 # -----------------------
11964 # Set $? to STATUS, without forking.
11965 as_fn_set_status ()
11967 return $1
11968 } # as_fn_set_status
11970 # as_fn_exit STATUS
11971 # -----------------
11972 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11973 as_fn_exit ()
11975 set +e
11976 as_fn_set_status $1
11977 exit $1
11978 } # as_fn_exit
11980 # as_fn_unset VAR
11981 # ---------------
11982 # Portably unset VAR.
11983 as_fn_unset ()
11985 { eval $1=; unset $1;}
11987 as_unset=as_fn_unset
11988 # as_fn_append VAR VALUE
11989 # ----------------------
11990 # Append the text in VALUE to the end of the definition contained in VAR. Take
11991 # advantage of any shell optimizations that allow amortized linear growth over
11992 # repeated appends, instead of the typical quadratic growth present in naive
11993 # implementations.
11994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11995 eval 'as_fn_append ()
11997 eval $1+=\$2
11999 else
12000 as_fn_append ()
12002 eval $1=\$$1\$2
12004 fi # as_fn_append
12006 # as_fn_arith ARG...
12007 # ------------------
12008 # Perform arithmetic evaluation on the ARGs, and store the result in the
12009 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12010 # must be portable across $(()) and expr.
12011 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12012 eval 'as_fn_arith ()
12014 as_val=$(( $* ))
12016 else
12017 as_fn_arith ()
12019 as_val=`expr "$@" || test $? -eq 1`
12021 fi # as_fn_arith
12024 if expr a : '\(a\)' >/dev/null 2>&1 &&
12025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12026 as_expr=expr
12027 else
12028 as_expr=false
12031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12032 as_basename=basename
12033 else
12034 as_basename=false
12037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12038 as_dirname=dirname
12039 else
12040 as_dirname=false
12043 as_me=`$as_basename -- "$0" ||
12044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12045 X"$0" : 'X\(//\)$' \| \
12046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12047 $as_echo X/"$0" |
12048 sed '/^.*\/\([^/][^/]*\)\/*$/{
12049 s//\1/
12052 /^X\/\(\/\/\)$/{
12053 s//\1/
12056 /^X\/\(\/\).*/{
12057 s//\1/
12060 s/.*/./; q'`
12062 # Avoid depending upon Character Ranges.
12063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12066 as_cr_digits='0123456789'
12067 as_cr_alnum=$as_cr_Letters$as_cr_digits
12069 ECHO_C= ECHO_N= ECHO_T=
12070 case `echo -n x` in #(((((
12071 -n*)
12072 case `echo 'xy\c'` in
12073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12074 xy) ECHO_C='\c';;
12075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12076 ECHO_T=' ';;
12077 esac;;
12079 ECHO_N='-n';;
12080 esac
12082 rm -f conf$$ conf$$.exe conf$$.file
12083 if test -d conf$$.dir; then
12084 rm -f conf$$.dir/conf$$.file
12085 else
12086 rm -f conf$$.dir
12087 mkdir conf$$.dir 2>/dev/null
12089 if (echo >conf$$.file) 2>/dev/null; then
12090 if ln -s conf$$.file conf$$ 2>/dev/null; then
12091 as_ln_s='ln -s'
12092 # ... but there are two gotchas:
12093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12095 # In both cases, we have to default to `cp -pR'.
12096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12097 as_ln_s='cp -pR'
12098 elif ln conf$$.file conf$$ 2>/dev/null; then
12099 as_ln_s=ln
12100 else
12101 as_ln_s='cp -pR'
12103 else
12104 as_ln_s='cp -pR'
12106 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12107 rmdir conf$$.dir 2>/dev/null
12110 # as_fn_mkdir_p
12111 # -------------
12112 # Create "$as_dir" as a directory, including parents if necessary.
12113 as_fn_mkdir_p ()
12116 case $as_dir in #(
12117 -*) as_dir=./$as_dir;;
12118 esac
12119 test -d "$as_dir" || eval $as_mkdir_p || {
12120 as_dirs=
12121 while :; do
12122 case $as_dir in #(
12123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12124 *) as_qdir=$as_dir;;
12125 esac
12126 as_dirs="'$as_qdir' $as_dirs"
12127 as_dir=`$as_dirname -- "$as_dir" ||
12128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12129 X"$as_dir" : 'X\(//\)[^/]' \| \
12130 X"$as_dir" : 'X\(//\)$' \| \
12131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12132 $as_echo X"$as_dir" |
12133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12134 s//\1/
12137 /^X\(\/\/\)[^/].*/{
12138 s//\1/
12141 /^X\(\/\/\)$/{
12142 s//\1/
12145 /^X\(\/\).*/{
12146 s//\1/
12149 s/.*/./; q'`
12150 test -d "$as_dir" && break
12151 done
12152 test -z "$as_dirs" || eval "mkdir $as_dirs"
12153 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12156 } # as_fn_mkdir_p
12157 if mkdir -p . 2>/dev/null; then
12158 as_mkdir_p='mkdir -p "$as_dir"'
12159 else
12160 test -d ./-p && rmdir ./-p
12161 as_mkdir_p=false
12165 # as_fn_executable_p FILE
12166 # -----------------------
12167 # Test if FILE is an executable regular file.
12168 as_fn_executable_p ()
12170 test -f "$1" && test -x "$1"
12171 } # as_fn_executable_p
12172 as_test_x='test -x'
12173 as_executable_p=as_fn_executable_p
12175 # Sed expression to map a string onto a valid CPP name.
12176 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12178 # Sed expression to map a string onto a valid variable name.
12179 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12182 exec 6>&1
12183 ## ----------------------------------- ##
12184 ## Main body of $CONFIG_STATUS script. ##
12185 ## ----------------------------------- ##
12186 _ASEOF
12187 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12190 # Save the log message, to keep $0 and so on meaningful, and to
12191 # report actual input values of CONFIG_FILES etc. instead of their
12192 # values after options handling.
12193 ac_log="
12194 This file was extended by zlib $as_me 1.1.4, which was
12195 generated by GNU Autoconf 2.69. Invocation command line was
12197 CONFIG_FILES = $CONFIG_FILES
12198 CONFIG_HEADERS = $CONFIG_HEADERS
12199 CONFIG_LINKS = $CONFIG_LINKS
12200 CONFIG_COMMANDS = $CONFIG_COMMANDS
12201 $ $0 $@
12203 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12206 _ACEOF
12208 case $ac_config_files in *"
12209 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12210 esac
12214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12215 # Files that config.status was made for.
12216 config_files="$ac_config_files"
12217 config_commands="$ac_config_commands"
12219 _ACEOF
12221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12222 ac_cs_usage="\
12223 \`$as_me' instantiates files and other configuration actions
12224 from templates according to the current configuration. Unless the files
12225 and actions are specified as TAGs, all are instantiated by default.
12227 Usage: $0 [OPTION]... [TAG]...
12229 -h, --help print this help, then exit
12230 -V, --version print version number and configuration settings, then exit
12231 --config print configuration, then exit
12232 -q, --quiet, --silent
12233 do not print progress messages
12234 -d, --debug don't remove temporary files
12235 --recheck update $as_me by reconfiguring in the same conditions
12236 --file=FILE[:TEMPLATE]
12237 instantiate the configuration file FILE
12239 Configuration files:
12240 $config_files
12242 Configuration commands:
12243 $config_commands
12245 Report bugs to the package provider."
12247 _ACEOF
12248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12250 ac_cs_version="\\
12251 zlib config.status 1.1.4
12252 configured by $0, generated by GNU Autoconf 2.69,
12253 with options \\"\$ac_cs_config\\"
12255 Copyright (C) 2012 Free Software Foundation, Inc.
12256 This config.status script is free software; the Free Software Foundation
12257 gives unlimited permission to copy, distribute and modify it."
12259 ac_pwd='$ac_pwd'
12260 srcdir='$srcdir'
12261 INSTALL='$INSTALL'
12262 MKDIR_P='$MKDIR_P'
12263 AWK='$AWK'
12264 test -n "\$AWK" || AWK=awk
12265 _ACEOF
12267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12268 # The default lists apply if the user does not specify any file.
12269 ac_need_defaults=:
12270 while test $# != 0
12272 case $1 in
12273 --*=?*)
12274 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12275 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12276 ac_shift=:
12278 --*=)
12279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12280 ac_optarg=
12281 ac_shift=:
12284 ac_option=$1
12285 ac_optarg=$2
12286 ac_shift=shift
12288 esac
12290 case $ac_option in
12291 # Handling of the options.
12292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12293 ac_cs_recheck=: ;;
12294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12295 $as_echo "$ac_cs_version"; exit ;;
12296 --config | --confi | --conf | --con | --co | --c )
12297 $as_echo "$ac_cs_config"; exit ;;
12298 --debug | --debu | --deb | --de | --d | -d )
12299 debug=: ;;
12300 --file | --fil | --fi | --f )
12301 $ac_shift
12302 case $ac_optarg in
12303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12304 '') as_fn_error $? "missing file argument" ;;
12305 esac
12306 as_fn_append CONFIG_FILES " '$ac_optarg'"
12307 ac_need_defaults=false;;
12308 --he | --h | --help | --hel | -h )
12309 $as_echo "$ac_cs_usage"; exit ;;
12310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12311 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12312 ac_cs_silent=: ;;
12314 # This is an error.
12315 -*) as_fn_error $? "unrecognized option: \`$1'
12316 Try \`$0 --help' for more information." ;;
12318 *) as_fn_append ac_config_targets " $1"
12319 ac_need_defaults=false ;;
12321 esac
12322 shift
12323 done
12325 ac_configure_extra_args=
12327 if $ac_cs_silent; then
12328 exec 6>/dev/null
12329 ac_configure_extra_args="$ac_configure_extra_args --silent"
12332 _ACEOF
12333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12334 if \$ac_cs_recheck; then
12335 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12336 shift
12337 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12338 CONFIG_SHELL='$SHELL'
12339 export CONFIG_SHELL
12340 exec "\$@"
12343 _ACEOF
12344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345 exec 5>>config.log
12347 echo
12348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12349 ## Running $as_me. ##
12350 _ASBOX
12351 $as_echo "$ac_log"
12352 } >&5
12354 _ACEOF
12355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12357 # INIT-COMMANDS
12360 srcdir="$srcdir"
12361 host="$host"
12362 target="$target"
12363 with_multisubdir="$with_multisubdir"
12364 with_multisrctop="$with_multisrctop"
12365 with_target_subdir="$with_target_subdir"
12366 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12367 multi_basedir="$multi_basedir"
12368 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12369 CC="$CC"
12370 CXX="$CXX"
12371 GFORTRAN="$GFORTRAN"
12372 GDC="$GDC"
12373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12376 # The HP-UX ksh and POSIX shell print the target directory to stdout
12377 # if CDPATH is set.
12378 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12380 sed_quote_subst='$sed_quote_subst'
12381 double_quote_subst='$double_quote_subst'
12382 delay_variable_subst='$delay_variable_subst'
12383 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12384 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12385 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12386 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12387 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12388 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12389 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12390 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12391 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12392 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12393 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12394 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12395 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12396 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12397 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12398 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12399 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12400 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12401 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12402 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12403 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12404 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12405 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12406 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12407 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12408 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12409 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12410 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12411 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12412 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12413 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12414 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12415 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12416 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12417 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12418 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12419 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12420 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12421 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12422 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12423 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12424 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12425 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12426 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12427 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12428 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12429 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12430 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12431 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"`'
12432 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12433 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12434 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12435 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12436 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12437 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12438 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12439 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12440 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12441 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12442 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12443 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12444 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12445 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12446 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12447 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12448 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12449 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12450 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12451 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12452 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12453 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12454 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12455 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12456 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12457 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12458 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12459 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12460 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12461 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12462 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12463 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12464 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12465 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12466 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12467 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12468 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12469 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12470 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12471 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12472 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12473 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12474 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12475 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12476 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12477 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12478 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12479 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12480 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12481 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12482 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12483 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12484 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12485 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12486 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12487 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12488 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12489 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12490 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12491 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12492 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12493 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12494 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12495 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12496 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12497 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12498 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12499 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12500 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12501 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12502 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12504 LTCC='$LTCC'
12505 LTCFLAGS='$LTCFLAGS'
12506 compiler='$compiler_DEFAULT'
12508 # A function that is used when there is no print builtin or printf.
12509 func_fallback_echo ()
12511 eval 'cat <<_LTECHO_EOF
12513 _LTECHO_EOF'
12516 # Quote evaled strings.
12517 for var in SHELL \
12518 ECHO \
12519 SED \
12520 GREP \
12521 EGREP \
12522 FGREP \
12523 LD \
12524 NM \
12525 LN_S \
12526 lt_SP2NL \
12527 lt_NL2SP \
12528 reload_flag \
12529 OBJDUMP \
12530 deplibs_check_method \
12531 file_magic_cmd \
12532 AR \
12533 AR_FLAGS \
12534 STRIP \
12535 RANLIB \
12536 CC \
12537 CFLAGS \
12538 compiler \
12539 lt_cv_sys_global_symbol_pipe \
12540 lt_cv_sys_global_symbol_to_cdecl \
12541 lt_cv_sys_global_symbol_to_c_name_address \
12542 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12543 lt_prog_compiler_no_builtin_flag \
12544 lt_prog_compiler_wl \
12545 lt_prog_compiler_pic \
12546 lt_prog_compiler_static \
12547 lt_cv_prog_compiler_c_o \
12548 need_locks \
12549 DSYMUTIL \
12550 NMEDIT \
12551 LIPO \
12552 OTOOL \
12553 OTOOL64 \
12554 shrext_cmds \
12555 export_dynamic_flag_spec \
12556 whole_archive_flag_spec \
12557 compiler_needs_object \
12558 with_gnu_ld \
12559 allow_undefined_flag \
12560 no_undefined_flag \
12561 hardcode_libdir_flag_spec \
12562 hardcode_libdir_flag_spec_ld \
12563 hardcode_libdir_separator \
12564 fix_srcfile_path \
12565 exclude_expsyms \
12566 include_expsyms \
12567 file_list_spec \
12568 variables_saved_for_relink \
12569 libname_spec \
12570 library_names_spec \
12571 soname_spec \
12572 install_override_mode \
12573 finish_eval \
12574 old_striplib \
12575 striplib; do
12576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12577 *[\\\\\\\`\\"\\\$]*)
12578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12583 esac
12584 done
12586 # Double-quote double-evaled strings.
12587 for var in reload_cmds \
12588 old_postinstall_cmds \
12589 old_postuninstall_cmds \
12590 old_archive_cmds \
12591 extract_expsyms_cmds \
12592 old_archive_from_new_cmds \
12593 old_archive_from_expsyms_cmds \
12594 archive_cmds \
12595 archive_expsym_cmds \
12596 module_cmds \
12597 module_expsym_cmds \
12598 export_symbols_cmds \
12599 prelink_cmds \
12600 postinstall_cmds \
12601 postuninstall_cmds \
12602 finish_cmds \
12603 sys_lib_search_path_spec \
12604 sys_lib_dlsearch_path_spec; do
12605 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12606 *[\\\\\\\`\\"\\\$]*)
12607 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12610 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12612 esac
12613 done
12615 ac_aux_dir='$ac_aux_dir'
12616 xsi_shell='$xsi_shell'
12617 lt_shell_append='$lt_shell_append'
12619 # See if we are running on zsh, and set the options which allow our
12620 # commands through without removal of \ escapes INIT.
12621 if test -n "\${ZSH_VERSION+set}" ; then
12622 setopt NO_GLOB_SUBST
12626 PACKAGE='$PACKAGE'
12627 VERSION='$VERSION'
12628 TIMESTAMP='$TIMESTAMP'
12629 RM='$RM'
12630 ofile='$ofile'
12635 _ACEOF
12637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12639 # Handling of arguments.
12640 for ac_config_target in $ac_config_targets
12642 case $ac_config_target in
12643 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12645 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12648 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12649 esac
12650 done
12653 # If the user did not use the arguments to specify the items to instantiate,
12654 # then the envvar interface is used. Set only those that are not.
12655 # We use the long form for the default assignment because of an extremely
12656 # bizarre bug on SunOS 4.1.3.
12657 if $ac_need_defaults; then
12658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12662 # Have a temporary directory for convenience. Make it in the build tree
12663 # simply because there is no reason against having it here, and in addition,
12664 # creating and moving files from /tmp can sometimes cause problems.
12665 # Hook for its removal unless debugging.
12666 # Note that there is a small window in which the directory will not be cleaned:
12667 # after its creation but before its name has been assigned to `$tmp'.
12668 $debug ||
12670 tmp= ac_tmp=
12671 trap 'exit_status=$?
12672 : "${ac_tmp:=$tmp}"
12673 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12675 trap 'as_fn_exit 1' 1 2 13 15
12677 # Create a (secure) tmp directory for tmp files.
12680 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12681 test -d "$tmp"
12682 } ||
12684 tmp=./conf$$-$RANDOM
12685 (umask 077 && mkdir "$tmp")
12686 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12687 ac_tmp=$tmp
12689 # Set up the scripts for CONFIG_FILES section.
12690 # No need to generate them if there are no CONFIG_FILES.
12691 # This happens for instance with `./config.status config.h'.
12692 if test -n "$CONFIG_FILES"; then
12695 ac_cr=`echo X | tr X '\015'`
12696 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12697 # But we know of no other shell where ac_cr would be empty at this
12698 # point, so we can use a bashism as a fallback.
12699 if test "x$ac_cr" = x; then
12700 eval ac_cr=\$\'\\r\'
12702 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12704 ac_cs_awk_cr='\\r'
12705 else
12706 ac_cs_awk_cr=$ac_cr
12709 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12710 _ACEOF
12714 echo "cat >conf$$subs.awk <<_ACEOF" &&
12715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12716 echo "_ACEOF"
12717 } >conf$$subs.sh ||
12718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12719 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12720 ac_delim='%!_!# '
12721 for ac_last_try in false false false false false :; do
12722 . ./conf$$subs.sh ||
12723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12725 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12726 if test $ac_delim_n = $ac_delim_num; then
12727 break
12728 elif $ac_last_try; then
12729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12730 else
12731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12733 done
12734 rm -f conf$$subs.sh
12736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12737 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12738 _ACEOF
12739 sed -n '
12741 s/^/S["/; s/!.*/"]=/
12744 s/^[^!]*!//
12745 :repl
12746 t repl
12747 s/'"$ac_delim"'$//
12748 t delim
12751 s/\(.\{148\}\)..*/\1/
12752 t more1
12753 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12756 b repl
12757 :more1
12758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12761 s/.\{148\}//
12762 t nl
12763 :delim
12765 s/\(.\{148\}\)..*/\1/
12766 t more2
12767 s/["\\]/\\&/g; s/^/"/; s/$/"/
12770 :more2
12771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12774 s/.\{148\}//
12775 t delim
12776 ' <conf$$subs.awk | sed '
12777 /^[^""]/{
12779 s/\n//
12781 ' >>$CONFIG_STATUS || ac_write_fail=1
12782 rm -f conf$$subs.awk
12783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12784 _ACAWK
12785 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12786 for (key in S) S_is_set[key] = 1
12787 FS = "\a"
12791 line = $ 0
12792 nfields = split(line, field, "@")
12793 substed = 0
12794 len = length(field[1])
12795 for (i = 2; i < nfields; i++) {
12796 key = field[i]
12797 keylen = length(key)
12798 if (S_is_set[key]) {
12799 value = S[key]
12800 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12801 len += length(value) + length(field[++i])
12802 substed = 1
12803 } else
12804 len += 1 + keylen
12807 print line
12810 _ACAWK
12811 _ACEOF
12812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12815 else
12817 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12818 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12819 _ACEOF
12821 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12822 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12823 # trailing colons and then remove the whole line if VPATH becomes empty
12824 # (actually we leave an empty line to preserve line numbers).
12825 if test "x$srcdir" = x.; then
12826 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12828 s///
12829 s/^/:/
12830 s/[ ]*$/:/
12831 s/:\$(srcdir):/:/g
12832 s/:\${srcdir}:/:/g
12833 s/:@srcdir@:/:/g
12834 s/^:*//
12835 s/:*$//
12837 s/\(=[ ]*\).*/\1/
12839 s/\n//
12840 s/^[^=]*=[ ]*$//
12844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12845 fi # test -n "$CONFIG_FILES"
12848 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12849 shift
12850 for ac_tag
12852 case $ac_tag in
12853 :[FHLC]) ac_mode=$ac_tag; continue;;
12854 esac
12855 case $ac_mode$ac_tag in
12856 :[FHL]*:*);;
12857 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12858 :[FH]-) ac_tag=-:-;;
12859 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12860 esac
12861 ac_save_IFS=$IFS
12862 IFS=:
12863 set x $ac_tag
12864 IFS=$ac_save_IFS
12865 shift
12866 ac_file=$1
12867 shift
12869 case $ac_mode in
12870 :L) ac_source=$1;;
12871 :[FH])
12872 ac_file_inputs=
12873 for ac_f
12875 case $ac_f in
12876 -) ac_f="$ac_tmp/stdin";;
12877 *) # Look for the file first in the build tree, then in the source tree
12878 # (if the path is not absolute). The absolute path cannot be DOS-style,
12879 # because $ac_f cannot contain `:'.
12880 test -f "$ac_f" ||
12881 case $ac_f in
12882 [\\/$]*) false;;
12883 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12884 esac ||
12885 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12886 esac
12887 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12888 as_fn_append ac_file_inputs " '$ac_f'"
12889 done
12891 # Let's still pretend it is `configure' which instantiates (i.e., don't
12892 # use $as_me), people would be surprised to read:
12893 # /* config.h. Generated by config.status. */
12894 configure_input='Generated from '`
12895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12896 `' by configure.'
12897 if test x"$ac_file" != x-; then
12898 configure_input="$ac_file. $configure_input"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12900 $as_echo "$as_me: creating $ac_file" >&6;}
12902 # Neutralize special characters interpreted by sed in replacement strings.
12903 case $configure_input in #(
12904 *\&* | *\|* | *\\* )
12905 ac_sed_conf_input=`$as_echo "$configure_input" |
12906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12907 *) ac_sed_conf_input=$configure_input;;
12908 esac
12910 case $ac_tag in
12911 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12913 esac
12915 esac
12917 ac_dir=`$as_dirname -- "$ac_file" ||
12918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919 X"$ac_file" : 'X\(//\)[^/]' \| \
12920 X"$ac_file" : 'X\(//\)$' \| \
12921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12922 $as_echo X"$ac_file" |
12923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12924 s//\1/
12927 /^X\(\/\/\)[^/].*/{
12928 s//\1/
12931 /^X\(\/\/\)$/{
12932 s//\1/
12935 /^X\(\/\).*/{
12936 s//\1/
12939 s/.*/./; q'`
12940 as_dir="$ac_dir"; as_fn_mkdir_p
12941 ac_builddir=.
12943 case "$ac_dir" in
12944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12946 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12947 # A ".." for each directory in $ac_dir_suffix.
12948 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12949 case $ac_top_builddir_sub in
12950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12952 esac ;;
12953 esac
12954 ac_abs_top_builddir=$ac_pwd
12955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12956 # for backward compatibility:
12957 ac_top_builddir=$ac_top_build_prefix
12959 case $srcdir in
12960 .) # We are building in place.
12961 ac_srcdir=.
12962 ac_top_srcdir=$ac_top_builddir_sub
12963 ac_abs_top_srcdir=$ac_pwd ;;
12964 [\\/]* | ?:[\\/]* ) # Absolute name.
12965 ac_srcdir=$srcdir$ac_dir_suffix;
12966 ac_top_srcdir=$srcdir
12967 ac_abs_top_srcdir=$srcdir ;;
12968 *) # Relative name.
12969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12970 ac_top_srcdir=$ac_top_build_prefix$srcdir
12971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12972 esac
12973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12976 case $ac_mode in
12979 # CONFIG_FILE
12982 case $INSTALL in
12983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12985 esac
12986 ac_MKDIR_P=$MKDIR_P
12987 case $MKDIR_P in
12988 [\\/$]* | ?:[\\/]* ) ;;
12989 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12990 esac
12991 _ACEOF
12993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12994 # If the template does not know about datarootdir, expand it.
12995 # FIXME: This hack should be removed a few years after 2.60.
12996 ac_datarootdir_hack=; ac_datarootdir_seen=
12997 ac_sed_dataroot='
12998 /datarootdir/ {
13002 /@datadir@/p
13003 /@docdir@/p
13004 /@infodir@/p
13005 /@localedir@/p
13006 /@mandir@/p'
13007 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13008 *datarootdir*) ac_datarootdir_seen=yes;;
13009 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13011 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13012 _ACEOF
13013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13014 ac_datarootdir_hack='
13015 s&@datadir@&$datadir&g
13016 s&@docdir@&$docdir&g
13017 s&@infodir@&$infodir&g
13018 s&@localedir@&$localedir&g
13019 s&@mandir@&$mandir&g
13020 s&\\\${datarootdir}&$datarootdir&g' ;;
13021 esac
13022 _ACEOF
13024 # Neutralize VPATH when `$srcdir' = `.'.
13025 # Shell code in configure.ac might set extrasub.
13026 # FIXME: do we really want to maintain this feature?
13027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13028 ac_sed_extra="$ac_vpsub
13029 $extrasub
13030 _ACEOF
13031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13034 s|@configure_input@|$ac_sed_conf_input|;t t
13035 s&@top_builddir@&$ac_top_builddir_sub&;t t
13036 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13037 s&@srcdir@&$ac_srcdir&;t t
13038 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13039 s&@top_srcdir@&$ac_top_srcdir&;t t
13040 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13041 s&@builddir@&$ac_builddir&;t t
13042 s&@abs_builddir@&$ac_abs_builddir&;t t
13043 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13044 s&@INSTALL@&$ac_INSTALL&;t t
13045 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13046 $ac_datarootdir_hack
13048 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13049 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13051 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13052 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13053 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13054 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13056 which seems to be undefined. Please make sure it is defined" >&5
13057 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13058 which seems to be undefined. Please make sure it is defined" >&2;}
13060 rm -f "$ac_tmp/stdin"
13061 case $ac_file in
13062 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13063 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13064 esac \
13065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13069 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13070 $as_echo "$as_me: executing $ac_file commands" >&6;}
13072 esac
13075 case $ac_file$ac_mode in
13076 "default-1":C)
13077 # Only add multilib support code if we just rebuilt the top-level
13078 # Makefile.
13079 case " $CONFIG_FILES " in
13080 *" Makefile "*)
13081 ac_file=Makefile . ${multi_basedir}/config-ml.in
13083 esac ;;
13084 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13085 # Older Autoconf quotes --file arguments for eval, but not when files
13086 # are listed without --file. Let's play safe and only enable the eval
13087 # if we detect the quoting.
13088 case $CONFIG_FILES in
13089 *\'*) eval set x "$CONFIG_FILES" ;;
13090 *) set x $CONFIG_FILES ;;
13091 esac
13092 shift
13093 for mf
13095 # Strip MF so we end up with the name of the file.
13096 mf=`echo "$mf" | sed -e 's/:.*$//'`
13097 # Check whether this is an Automake generated Makefile or not.
13098 # We used to match only the files named 'Makefile.in', but
13099 # some people rename them; so instead we look at the file content.
13100 # Grep'ing the first line is not enough: some people post-process
13101 # each Makefile.in and add a new line on top of each file to say so.
13102 # Grep'ing the whole file is not good either: AIX grep has a line
13103 # limit of 2048, but all sed's we know have understand at least 4000.
13104 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13105 dirpart=`$as_dirname -- "$mf" ||
13106 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13107 X"$mf" : 'X\(//\)[^/]' \| \
13108 X"$mf" : 'X\(//\)$' \| \
13109 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13110 $as_echo X"$mf" |
13111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13112 s//\1/
13115 /^X\(\/\/\)[^/].*/{
13116 s//\1/
13119 /^X\(\/\/\)$/{
13120 s//\1/
13123 /^X\(\/\).*/{
13124 s//\1/
13127 s/.*/./; q'`
13128 else
13129 continue
13131 # Extract the definition of DEPDIR, am__include, and am__quote
13132 # from the Makefile without running 'make'.
13133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13134 test -z "$DEPDIR" && continue
13135 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13136 test -z "$am__include" && continue
13137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13138 # Find all dependency output files, they are included files with
13139 # $(DEPDIR) in their names. We invoke sed twice because it is the
13140 # simplest approach to changing $(DEPDIR) to its actual value in the
13141 # expansion.
13142 for file in `sed -n "
13143 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13144 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13145 # Make sure the directory exists.
13146 test -f "$dirpart/$file" && continue
13147 fdir=`$as_dirname -- "$file" ||
13148 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13149 X"$file" : 'X\(//\)[^/]' \| \
13150 X"$file" : 'X\(//\)$' \| \
13151 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13152 $as_echo X"$file" |
13153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13154 s//\1/
13157 /^X\(\/\/\)[^/].*/{
13158 s//\1/
13161 /^X\(\/\/\)$/{
13162 s//\1/
13165 /^X\(\/\).*/{
13166 s//\1/
13169 s/.*/./; q'`
13170 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13171 # echo "creating $dirpart/$file"
13172 echo '# dummy' > "$dirpart/$file"
13173 done
13174 done
13177 "libtool":C)
13179 # See if we are running on zsh, and set the options which allow our
13180 # commands through without removal of \ escapes.
13181 if test -n "${ZSH_VERSION+set}" ; then
13182 setopt NO_GLOB_SUBST
13185 cfgfile="${ofile}T"
13186 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13187 $RM "$cfgfile"
13189 cat <<_LT_EOF >> "$cfgfile"
13190 #! $SHELL
13192 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13193 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13195 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13197 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13198 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13199 # Written by Gordon Matzigkeit, 1996
13201 # This file is part of GNU Libtool.
13203 # GNU Libtool is free software; you can redistribute it and/or
13204 # modify it under the terms of the GNU General Public License as
13205 # published by the Free Software Foundation; either version 2 of
13206 # the License, or (at your option) any later version.
13208 # As a special exception to the GNU General Public License,
13209 # if you distribute this file as part of a program or library that
13210 # is built using GNU Libtool, you may include this file under the
13211 # same distribution terms that you use for the rest of that program.
13213 # GNU Libtool is distributed in the hope that it will be useful,
13214 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13215 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13216 # GNU General Public License for more details.
13218 # You should have received a copy of the GNU General Public License
13219 # along with GNU Libtool; see the file COPYING. If not, a copy
13220 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13221 # obtained by writing to the Free Software Foundation, Inc.,
13222 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13225 # The names of the tagged configurations supported by this script.
13226 available_tags=""
13228 # ### BEGIN LIBTOOL CONFIG
13230 # Which release of libtool.m4 was used?
13231 macro_version=$macro_version
13232 macro_revision=$macro_revision
13234 # Whether or not to build shared libraries.
13235 build_libtool_libs=$enable_shared
13237 # Whether or not to build static libraries.
13238 build_old_libs=$enable_static
13240 # What type of objects to build.
13241 pic_mode=$pic_mode
13243 # Whether or not to optimize for fast installation.
13244 fast_install=$enable_fast_install
13246 # Shell to use when invoking shell scripts.
13247 SHELL=$lt_SHELL
13249 # An echo program that protects backslashes.
13250 ECHO=$lt_ECHO
13252 # The host system.
13253 host_alias=$host_alias
13254 host=$host
13255 host_os=$host_os
13257 # The build system.
13258 build_alias=$build_alias
13259 build=$build
13260 build_os=$build_os
13262 # A sed program that does not truncate output.
13263 SED=$lt_SED
13265 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13266 Xsed="\$SED -e 1s/^X//"
13268 # A grep program that handles long lines.
13269 GREP=$lt_GREP
13271 # An ERE matcher.
13272 EGREP=$lt_EGREP
13274 # A literal string matcher.
13275 FGREP=$lt_FGREP
13277 # A BSD- or MS-compatible name lister.
13278 NM=$lt_NM
13280 # Whether we need soft or hard links.
13281 LN_S=$lt_LN_S
13283 # What is the maximum length of a command?
13284 max_cmd_len=$max_cmd_len
13286 # Object file suffix (normally "o").
13287 objext=$ac_objext
13289 # Executable file suffix (normally "").
13290 exeext=$exeext
13292 # whether the shell understands "unset".
13293 lt_unset=$lt_unset
13295 # turn spaces into newlines.
13296 SP2NL=$lt_lt_SP2NL
13298 # turn newlines into spaces.
13299 NL2SP=$lt_lt_NL2SP
13301 # An object symbol dumper.
13302 OBJDUMP=$lt_OBJDUMP
13304 # Method to check whether dependent libraries are shared objects.
13305 deplibs_check_method=$lt_deplibs_check_method
13307 # Command to use when deplibs_check_method == "file_magic".
13308 file_magic_cmd=$lt_file_magic_cmd
13310 # The archiver.
13311 AR=$lt_AR
13312 AR_FLAGS=$lt_AR_FLAGS
13314 # A symbol stripping program.
13315 STRIP=$lt_STRIP
13317 # Commands used to install an old-style archive.
13318 RANLIB=$lt_RANLIB
13319 old_postinstall_cmds=$lt_old_postinstall_cmds
13320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13322 # Whether to use a lock for old archive extraction.
13323 lock_old_archive_extraction=$lock_old_archive_extraction
13325 # A C compiler.
13326 LTCC=$lt_CC
13328 # LTCC compiler flags.
13329 LTCFLAGS=$lt_CFLAGS
13331 # Take the output of nm and produce a listing of raw symbols and C names.
13332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13334 # Transform the output of nm in a proper C declaration.
13335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13337 # Transform the output of nm in a C name address pair.
13338 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13340 # Transform the output of nm in a C name address pair when lib prefix is needed.
13341 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13343 # The name of the directory that contains temporary libtool files.
13344 objdir=$objdir
13346 # Used to examine libraries when file_magic_cmd begins with "file".
13347 MAGIC_CMD=$MAGIC_CMD
13349 # Must we lock files when doing compilation?
13350 need_locks=$lt_need_locks
13352 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13353 DSYMUTIL=$lt_DSYMUTIL
13355 # Tool to change global to local symbols on Mac OS X.
13356 NMEDIT=$lt_NMEDIT
13358 # Tool to manipulate fat objects and archives on Mac OS X.
13359 LIPO=$lt_LIPO
13361 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13362 OTOOL=$lt_OTOOL
13364 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13365 OTOOL64=$lt_OTOOL64
13367 # Old archive suffix (normally "a").
13368 libext=$libext
13370 # Shared library suffix (normally ".so").
13371 shrext_cmds=$lt_shrext_cmds
13373 # The commands to extract the exported symbol list from a shared archive.
13374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13376 # Variables whose values should be saved in libtool wrapper scripts and
13377 # restored at link time.
13378 variables_saved_for_relink=$lt_variables_saved_for_relink
13380 # Do we need the "lib" prefix for modules?
13381 need_lib_prefix=$need_lib_prefix
13383 # Do we need a version for libraries?
13384 need_version=$need_version
13386 # Library versioning type.
13387 version_type=$version_type
13389 # Shared library runtime path variable.
13390 runpath_var=$runpath_var
13392 # Shared library path variable.
13393 shlibpath_var=$shlibpath_var
13395 # Is shlibpath searched before the hard-coded library search path?
13396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13398 # Format of library name prefix.
13399 libname_spec=$lt_libname_spec
13401 # List of archive names. First name is the real one, the rest are links.
13402 # The last name is the one that the linker finds with -lNAME
13403 library_names_spec=$lt_library_names_spec
13405 # The coded name of the library, if different from the real name.
13406 soname_spec=$lt_soname_spec
13408 # Permission mode override for installation of shared libraries.
13409 install_override_mode=$lt_install_override_mode
13411 # Command to use after installation of a shared archive.
13412 postinstall_cmds=$lt_postinstall_cmds
13414 # Command to use after uninstallation of a shared archive.
13415 postuninstall_cmds=$lt_postuninstall_cmds
13417 # Commands used to finish a libtool library installation in a directory.
13418 finish_cmds=$lt_finish_cmds
13420 # As "finish_cmds", except a single script fragment to be evaled but
13421 # not shown.
13422 finish_eval=$lt_finish_eval
13424 # Whether we should hardcode library paths into libraries.
13425 hardcode_into_libs=$hardcode_into_libs
13427 # Compile-time system search path for libraries.
13428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13430 # Run-time system search path for libraries.
13431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13433 # Whether dlopen is supported.
13434 dlopen_support=$enable_dlopen
13436 # Whether dlopen of programs is supported.
13437 dlopen_self=$enable_dlopen_self
13439 # Whether dlopen of statically linked programs is supported.
13440 dlopen_self_static=$enable_dlopen_self_static
13442 # Commands to strip libraries.
13443 old_striplib=$lt_old_striplib
13444 striplib=$lt_striplib
13447 # The linker used to build libraries.
13448 LD=$lt_LD
13450 # How to create reloadable object files.
13451 reload_flag=$lt_reload_flag
13452 reload_cmds=$lt_reload_cmds
13454 # Commands used to build an old-style archive.
13455 old_archive_cmds=$lt_old_archive_cmds
13457 # A language specific compiler.
13458 CC=$lt_compiler
13460 # Is the compiler the GNU compiler?
13461 with_gcc=$GCC
13463 # Compiler flag to turn off builtin functions.
13464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13466 # How to pass a linker flag through the compiler.
13467 wl=$lt_lt_prog_compiler_wl
13469 # Additional compiler flags for building library objects.
13470 pic_flag=$lt_lt_prog_compiler_pic
13472 # Compiler flag to prevent dynamic linking.
13473 link_static_flag=$lt_lt_prog_compiler_static
13475 # Does compiler simultaneously support -c and -o options?
13476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13478 # Whether or not to add -lc for building shared libraries.
13479 build_libtool_need_lc=$archive_cmds_need_lc
13481 # Whether or not to disallow shared libs when runtime libs are static.
13482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13484 # Compiler flag to allow reflexive dlopens.
13485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13487 # Compiler flag to generate shared objects directly from archives.
13488 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13490 # Whether the compiler copes with passing no objects directly.
13491 compiler_needs_object=$lt_compiler_needs_object
13493 # Create an old-style archive from a shared archive.
13494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13496 # Create a temporary old-style archive to link instead of a shared archive.
13497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13499 # Commands used to build a shared archive.
13500 archive_cmds=$lt_archive_cmds
13501 archive_expsym_cmds=$lt_archive_expsym_cmds
13503 # Commands used to build a loadable module if different from building
13504 # a shared archive.
13505 module_cmds=$lt_module_cmds
13506 module_expsym_cmds=$lt_module_expsym_cmds
13508 # Whether we are building with GNU ld or not.
13509 with_gnu_ld=$lt_with_gnu_ld
13511 # Flag that allows shared libraries with undefined symbols to be built.
13512 allow_undefined_flag=$lt_allow_undefined_flag
13514 # Flag that enforces no undefined symbols.
13515 no_undefined_flag=$lt_no_undefined_flag
13517 # Flag to hardcode \$libdir into a binary during linking.
13518 # This must work even if \$libdir does not exist
13519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13521 # If ld is used when linking, flag to hardcode \$libdir into a binary
13522 # during linking. This must work even if \$libdir does not exist.
13523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13525 # Whether we need a single "-rpath" flag with a separated argument.
13526 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13529 # DIR into the resulting binary.
13530 hardcode_direct=$hardcode_direct
13532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13533 # DIR into the resulting binary and the resulting library dependency is
13534 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13535 # library is relocated.
13536 hardcode_direct_absolute=$hardcode_direct_absolute
13538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13539 # into the resulting binary.
13540 hardcode_minus_L=$hardcode_minus_L
13542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13543 # into the resulting binary.
13544 hardcode_shlibpath_var=$hardcode_shlibpath_var
13546 # Set to "yes" if building a shared library automatically hardcodes DIR
13547 # into the library and all subsequent libraries and executables linked
13548 # against it.
13549 hardcode_automatic=$hardcode_automatic
13551 # Set to yes if linker adds runtime paths of dependent libraries
13552 # to runtime path list.
13553 inherit_rpath=$inherit_rpath
13555 # Whether libtool must link a program against all its dependency libraries.
13556 link_all_deplibs=$link_all_deplibs
13558 # Fix the shell variable \$srcfile for the compiler.
13559 fix_srcfile_path=$lt_fix_srcfile_path
13561 # Set to "yes" if exported symbols are required.
13562 always_export_symbols=$always_export_symbols
13564 # The commands to list exported symbols.
13565 export_symbols_cmds=$lt_export_symbols_cmds
13567 # Symbols that should not be listed in the preloaded symbols.
13568 exclude_expsyms=$lt_exclude_expsyms
13570 # Symbols that must always be exported.
13571 include_expsyms=$lt_include_expsyms
13573 # Commands necessary for linking programs (against libraries) with templates.
13574 prelink_cmds=$lt_prelink_cmds
13576 # Specify filename containing input files.
13577 file_list_spec=$lt_file_list_spec
13579 # How to hardcode a shared library path into an executable.
13580 hardcode_action=$hardcode_action
13582 # ### END LIBTOOL CONFIG
13584 _LT_EOF
13586 case $host_os in
13587 aix3*)
13588 cat <<\_LT_EOF >> "$cfgfile"
13589 # AIX sometimes has problems with the GCC collect2 program. For some
13590 # reason, if we set the COLLECT_NAMES environment variable, the problems
13591 # vanish in a puff of smoke.
13592 if test "X${COLLECT_NAMES+set}" != Xset; then
13593 COLLECT_NAMES=
13594 export COLLECT_NAMES
13596 _LT_EOF
13598 esac
13601 ltmain="$ac_aux_dir/ltmain.sh"
13604 # We use sed instead of cat because bash on DJGPP gets confused if
13605 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13606 # text mode, it properly converts lines to CR/LF. This bash problem
13607 # is reportedly fixed, but why not run on old versions too?
13608 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13609 || (rm -f "$cfgfile"; exit 1)
13611 case $xsi_shell in
13612 yes)
13613 cat << \_LT_EOF >> "$cfgfile"
13615 # func_dirname file append nondir_replacement
13616 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13617 # otherwise set result to NONDIR_REPLACEMENT.
13618 func_dirname ()
13620 case ${1} in
13621 */*) func_dirname_result="${1%/*}${2}" ;;
13622 * ) func_dirname_result="${3}" ;;
13623 esac
13626 # func_basename file
13627 func_basename ()
13629 func_basename_result="${1##*/}"
13632 # func_dirname_and_basename file append nondir_replacement
13633 # perform func_basename and func_dirname in a single function
13634 # call:
13635 # dirname: Compute the dirname of FILE. If nonempty,
13636 # add APPEND to the result, otherwise set result
13637 # to NONDIR_REPLACEMENT.
13638 # value returned in "$func_dirname_result"
13639 # basename: Compute filename of FILE.
13640 # value retuned in "$func_basename_result"
13641 # Implementation must be kept synchronized with func_dirname
13642 # and func_basename. For efficiency, we do not delegate to
13643 # those functions but instead duplicate the functionality here.
13644 func_dirname_and_basename ()
13646 case ${1} in
13647 */*) func_dirname_result="${1%/*}${2}" ;;
13648 * ) func_dirname_result="${3}" ;;
13649 esac
13650 func_basename_result="${1##*/}"
13653 # func_stripname prefix suffix name
13654 # strip PREFIX and SUFFIX off of NAME.
13655 # PREFIX and SUFFIX must not contain globbing or regex special
13656 # characters, hashes, percent signs, but SUFFIX may contain a leading
13657 # dot (in which case that matches only a dot).
13658 func_stripname ()
13660 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13661 # positional parameters, so assign one to ordinary parameter first.
13662 func_stripname_result=${3}
13663 func_stripname_result=${func_stripname_result#"${1}"}
13664 func_stripname_result=${func_stripname_result%"${2}"}
13667 # func_opt_split
13668 func_opt_split ()
13670 func_opt_split_opt=${1%%=*}
13671 func_opt_split_arg=${1#*=}
13674 # func_lo2o object
13675 func_lo2o ()
13677 case ${1} in
13678 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13679 *) func_lo2o_result=${1} ;;
13680 esac
13683 # func_xform libobj-or-source
13684 func_xform ()
13686 func_xform_result=${1%.*}.lo
13689 # func_arith arithmetic-term...
13690 func_arith ()
13692 func_arith_result=$(( $* ))
13695 # func_len string
13696 # STRING may not start with a hyphen.
13697 func_len ()
13699 func_len_result=${#1}
13702 _LT_EOF
13704 *) # Bourne compatible functions.
13705 cat << \_LT_EOF >> "$cfgfile"
13707 # func_dirname file append nondir_replacement
13708 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13709 # otherwise set result to NONDIR_REPLACEMENT.
13710 func_dirname ()
13712 # Extract subdirectory from the argument.
13713 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13714 if test "X$func_dirname_result" = "X${1}"; then
13715 func_dirname_result="${3}"
13716 else
13717 func_dirname_result="$func_dirname_result${2}"
13721 # func_basename file
13722 func_basename ()
13724 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13728 # func_stripname prefix suffix name
13729 # strip PREFIX and SUFFIX off of NAME.
13730 # PREFIX and SUFFIX must not contain globbing or regex special
13731 # characters, hashes, percent signs, but SUFFIX may contain a leading
13732 # dot (in which case that matches only a dot).
13733 # func_strip_suffix prefix name
13734 func_stripname ()
13736 case ${2} in
13737 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13738 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13739 esac
13742 # sed scripts:
13743 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13744 my_sed_long_arg='1s/^-[^=]*=//'
13746 # func_opt_split
13747 func_opt_split ()
13749 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13750 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13753 # func_lo2o object
13754 func_lo2o ()
13756 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13759 # func_xform libobj-or-source
13760 func_xform ()
13762 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13765 # func_arith arithmetic-term...
13766 func_arith ()
13768 func_arith_result=`expr "$@"`
13771 # func_len string
13772 # STRING may not start with a hyphen.
13773 func_len ()
13775 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13778 _LT_EOF
13779 esac
13781 case $lt_shell_append in
13782 yes)
13783 cat << \_LT_EOF >> "$cfgfile"
13785 # func_append var value
13786 # Append VALUE to the end of shell variable VAR.
13787 func_append ()
13789 eval "$1+=\$2"
13791 _LT_EOF
13794 cat << \_LT_EOF >> "$cfgfile"
13796 # func_append var value
13797 # Append VALUE to the end of shell variable VAR.
13798 func_append ()
13800 eval "$1=\$$1\$2"
13803 _LT_EOF
13805 esac
13808 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13809 || (rm -f "$cfgfile"; exit 1)
13811 mv -f "$cfgfile" "$ofile" ||
13812 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13813 chmod +x "$ofile"
13817 esac
13818 done # for ac_tag
13821 as_fn_exit 0
13822 _ACEOF
13823 ac_clean_files=$ac_clean_files_save
13825 test $ac_write_fail = 0 ||
13826 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13829 # configure is writing to config.log, and then calls config.status.
13830 # config.status does its own redirection, appending to config.log.
13831 # Unfortunately, on DOS this fails, as config.log is still kept open
13832 # by configure, so config.status won't be able to write to it; its
13833 # output is simply discarded. So we exec the FD to /dev/null,
13834 # effectively closing config.log, so it can be properly (re)opened and
13835 # appended to by config.status. When coming back to configure, we
13836 # need to make the FD available again.
13837 if test "$no_create" != yes; then
13838 ac_cs_success=:
13839 ac_config_status_args=
13840 test "$silent" = yes &&
13841 ac_config_status_args="$ac_config_status_args --quiet"
13842 exec 5>/dev/null
13843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13844 exec 5>>config.log
13845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13846 # would make configure fail if this is the last instruction.
13847 $ac_cs_success || as_fn_exit 1
13849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13851 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}