Add testcase of PR c++/90448, already fixed in trunk.
[official-gcc.git] / zlib / configure
blob484a4938f4a81c3b05a5c3e7334b92bbb25ae444
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 TARGET_LIBRARY_FALSE
639 TARGET_LIBRARY_TRUE
640 toolexeclibdir
641 toolexecdir
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
657 EGREP
658 GREP
660 LIBTOOL
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 am__nodep
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
678 COMPPATH
679 MAINT
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 AM_BACKSLASH
683 AM_DEFAULT_VERBOSITY
684 AM_DEFAULT_V
685 AM_V
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 mkinstalldirs
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 multi_basedir
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_multilib
765 enable_silent_rules
766 enable_maintainer_mode
767 with_target_subdir
768 with_cross_host
769 with_system_zlib
770 enable_dependency_tracking
771 enable_shared
772 enable_static
773 with_pic
774 enable_fast_install
775 with_gnu_ld
776 enable_libtool_lock
777 with_toolexeclibdir
778 enable_host_shared
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
784 CPPFLAGS'
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
835 ac_prev=
836 ac_dashdash=
837 for ac_option
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
856 ac_dashdash=yes ;;
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
875 --config-cache | -C)
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 esac
1193 done
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1277 /^X\(\/\/\)$/{
1278 s//\1/
1281 /^X\(\/\).*/{
1282 s//\1/
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1290 else
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1380 cat <<\_ACEOF
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391 _ACEOF
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of zlib 1.1.4:";;
1397 esac
1398 cat <<\_ACEOF
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-multilib build many library versions (default)
1405 --enable-silent-rules less verbose build output (undo: "make V=1")
1406 --disable-silent-rules verbose build output (undo: "make V=0")
1407 --enable-maintainer-mode
1408 enable make rules and dependencies not useful (and
1409 sometimes confusing) to the casual installer
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --enable-host-shared build host code as shared libraries
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-target-subdir=SUBDIR
1425 configuring in a subdirectory
1426 --with-cross-host=HOST configuring with a cross compiler
1427 --with-system-zlib use installed libz
1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-toolexeclibdir=DIR
1432 install libraries built with a cross compiler within
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 CPP C preprocessor
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to the package provider.
1449 _ACEOF
1450 ac_status=$?
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1477 case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510 cat <<\_ACEOF
1511 zlib configure 1.1.4
1512 generated by GNU Autoconf 2.69
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518 exit
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552 else
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1556 ac_retval=1
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1561 } # ac_fn_c_try_compile
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1597 ac_retval=1
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_c_try_link
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1620 else
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 eval "$3=yes"
1628 else
1629 eval "$3=no"
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 } # ac_fn_c_check_header_compile
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=1
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_cpp
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=$ac_status
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_run
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 if test x$gcc_no_link = xyes; then
1731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1750 #undef $2
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1767 main ()
1769 return $2 ();
1771 return 0;
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_func
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1793 # accordingly.
1794 ac_fn_c_check_header_mongrel ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if eval \${$3+:} false; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 else
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1817 else
1818 ac_header_compiler=no
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1833 else
1834 ac_header_preproc=no
1836 rm -f conftest.err conftest.i conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 yes:no: )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 no:yes:* )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 esac
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 eval "$3=\$ac_header_compiler"
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_header_mongrel
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1879 It was created by zlib $as_me 1.1.4, which was
1880 generated by GNU Autoconf 2.69. Invocation command line was
1882 $ $0 $@
1884 _ACEOF
1885 exec 5>>config.log
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909 _ASUNAME
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 $as_echo "PATH: $as_dir"
1917 done
1918 IFS=$as_save_IFS
1920 } >&5
1922 cat >&5 <<_ACEOF
1925 ## ----------- ##
1926 ## Core tests. ##
1927 ## ----------- ##
1929 _ACEOF
1932 # Keep a trace of the command line.
1933 # Strip out --no-create and --no-recursion so they do not pile up.
1934 # Strip out --silent because we don't want to record it for future runs.
1935 # Also quote any args containing shell meta-characters.
1936 # Make two passes to allow for proper duplicate-argument suppression.
1937 ac_configure_args=
1938 ac_configure_args0=
1939 ac_configure_args1=
1940 ac_must_keep_next=false
1941 for ac_pass in 1 2
1943 for ac_arg
1945 case $ac_arg in
1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948 | -silent | --silent | --silen | --sile | --sil)
1949 continue ;;
1950 *\'*)
1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 esac
1953 case $ac_pass in
1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 as_fn_append ac_configure_args1 " '$ac_arg'"
1957 if test $ac_must_keep_next = true; then
1958 ac_must_keep_next=false # Got value, back to normal.
1959 else
1960 case $ac_arg in
1961 *=* | --config-cache | -C | -disable-* | --disable-* \
1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964 | -with-* | --with-* | -without-* | --without-* | --x)
1965 case "$ac_configure_args0 " in
1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967 esac
1969 -* ) ac_must_keep_next=true ;;
1970 esac
1972 as_fn_append ac_configure_args " '$ac_arg'"
1974 esac
1975 done
1976 done
1977 { ac_configure_args0=; unset ac_configure_args0;}
1978 { ac_configure_args1=; unset ac_configure_args1;}
1980 # When interrupted or exit'd, cleanup temporary files, and complete
1981 # config.log. We remove comments because anyway the quotes in there
1982 # would cause problems or look ugly.
1983 # WARNING: Use '\'' to represent an apostrophe within the trap.
1984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985 trap 'exit_status=$?
1986 # Save into config.log some information that might help in debugging.
1988 echo
1990 $as_echo "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 esac |
2022 sort
2024 echo
2026 $as_echo "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029 echo
2030 for ac_var in $ac_subst_vars
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2040 if test -n "$ac_subst_files"; then
2041 $as_echo "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044 echo
2045 for ac_var in $ac_subst_files
2047 eval ac_val=\$$ac_var
2048 case $ac_val in
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 esac
2051 $as_echo "$ac_var='\''$ac_val'\''"
2052 done | sort
2053 echo
2056 if test -s confdefs.h; then
2057 $as_echo "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060 echo
2061 cat confdefs.h
2062 echo
2064 test "$ac_signal" != 0 &&
2065 $as_echo "$as_me: caught signal $ac_signal"
2066 $as_echo "$as_me: exit $exit_status"
2067 } >&5
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070 exit $exit_status
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2080 $as_echo "/* confdefs.h */" > confdefs.h
2082 # Predefined preprocessor variables.
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_STRING "$PACKAGE_STRING"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_URL "$PACKAGE_URL"
2106 _ACEOF
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer an explicitly selected file to automatically selected ones.
2111 ac_site_file1=NONE
2112 ac_site_file2=NONE
2113 if test -n "$CONFIG_SITE"; then
2114 # We do not want a PATH search for config.site.
2115 case $CONFIG_SITE in #((
2116 -*) ac_site_file1=./$CONFIG_SITE;;
2117 */*) ac_site_file1=$CONFIG_SITE;;
2118 *) ac_site_file1=./$CONFIG_SITE;;
2119 esac
2120 elif test "x$prefix" != xNONE; then
2121 ac_site_file1=$prefix/share/config.site
2122 ac_site_file2=$prefix/etc/config.site
2123 else
2124 ac_site_file1=$ac_default_prefix/share/config.site
2125 ac_site_file2=$ac_default_prefix/etc/config.site
2127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 test "x$ac_site_file" = xNONE && continue
2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133 sed 's/^/| /' "$ac_site_file" >&5
2134 . "$ac_site_file" \
2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 as_fn_error $? "failed to load site script $ac_site_file
2138 See \`config.log' for more details" "$LINENO" 5; }
2140 done
2142 if test -r "$cache_file"; then
2143 # Some versions of bash will fail to source /dev/null (special files
2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148 case $cache_file in
2149 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150 *) . "./$cache_file";;
2151 esac
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156 >$cache_file
2159 as_fn_append ac_header_list " stdlib.h"
2160 as_fn_append ac_header_list " unistd.h"
2161 as_fn_append ac_header_list " sys/param.h"
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 if test -n "${with_target_subdir}"; then
2236 # Default to --enable-multilib
2237 # Check whether --enable-multilib was given.
2238 if test "${enable_multilib+set}" = set; then :
2239 enableval=$enable_multilib; case "$enableval" in
2240 yes) multilib=yes ;;
2241 no) multilib=no ;;
2242 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2243 esac
2244 else
2245 multilib=yes
2249 # We may get other options which we leave undocumented:
2250 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2251 # See config-ml.in if you want the gory details.
2253 if test "$srcdir" = "."; then
2254 if test "$with_target_subdir" != "."; then
2255 multi_basedir="$srcdir/$with_multisrctop../.."
2256 else
2257 multi_basedir="$srcdir/$with_multisrctop.."
2259 else
2260 multi_basedir="$srcdir/.."
2264 # Even if the default multilib is not a cross compilation,
2265 # it may be that some of the other multilibs are.
2266 if test $cross_compiling = no && test $multilib = yes \
2267 && test "x${with_multisubdir}" != x ; then
2268 cross_compiling=maybe
2271 ac_config_commands="$ac_config_commands default-1"
2275 ac_aux_dir=
2276 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2277 if test -f "$ac_dir/install-sh"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/install-sh -c"
2280 break
2281 elif test -f "$ac_dir/install.sh"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/install.sh -c"
2284 break
2285 elif test -f "$ac_dir/shtool"; then
2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 break
2290 done
2291 if test -z "$ac_aux_dir"; then
2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304 # Make sure we can run config.sub.
2305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309 $as_echo_n "checking build system type... " >&6; }
2310 if ${ac_cv_build+:} false; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 ac_build_alias=$build_alias
2314 test "x$ac_build_alias" = x &&
2315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316 test "x$ac_build_alias" = x &&
2317 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2325 *-*-*) ;;
2326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2327 esac
2328 build=$ac_cv_build
2329 ac_save_IFS=$IFS; IFS='-'
2330 set x $ac_cv_build
2331 shift
2332 build_cpu=$1
2333 build_vendor=$2
2334 shift; shift
2335 # Remember, the first character of IFS is used to create $*,
2336 # except with old shells:
2337 build_os=$*
2338 IFS=$ac_save_IFS
2339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343 $as_echo_n "checking host system type... " >&6; }
2344 if ${ac_cv_host+:} false; then :
2345 $as_echo_n "(cached) " >&6
2346 else
2347 if test "x$host_alias" = x; then
2348 ac_cv_host=$ac_cv_build
2349 else
2350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356 $as_echo "$ac_cv_host" >&6; }
2357 case $ac_cv_host in
2358 *-*-*) ;;
2359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2360 esac
2361 host=$ac_cv_host
2362 ac_save_IFS=$IFS; IFS='-'
2363 set x $ac_cv_host
2364 shift
2365 host_cpu=$1
2366 host_vendor=$2
2367 shift; shift
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2370 host_os=$*
2371 IFS=$ac_save_IFS
2372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2376 $as_echo_n "checking target system type... " >&6; }
2377 if ${ac_cv_target+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
2382 else
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2389 $as_echo "$ac_cv_target" >&6; }
2390 case $ac_cv_target in
2391 *-*-*) ;;
2392 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2393 esac
2394 target=$ac_cv_target
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_target
2397 shift
2398 target_cpu=$1
2399 target_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 target_os=$*
2404 IFS=$ac_save_IFS
2405 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2408 # The aliases save the names the user supplied, while $host etc.
2409 # will get canonicalized.
2410 test -n "$target_alias" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2412 NONENONEs,x,x, &&
2413 program_prefix=${target_alias}-
2416 # This works around an automake problem.
2417 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2420 am__api_version='1.15'
2422 # Find a good install program. We prefer a C program (faster),
2423 # so one script is as good as another. But avoid the broken or
2424 # incompatible versions:
2425 # SysV /etc/install, /usr/sbin/install
2426 # SunOS /usr/etc/install
2427 # IRIX /sbin/install
2428 # AIX /bin/install
2429 # AmigaOS /C/install, which installs bootblocks on floppy discs
2430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2433 # OS/2's system install, which has a completely different semantic
2434 # ./install, which can be erroneously created by make from ./install.sh.
2435 # Reject install programs that cannot install multiple files.
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2437 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2438 if test -z "$INSTALL"; then
2439 if ${ac_cv_path_install+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 # Account for people who put trailing slashes in PATH elements.
2448 case $as_dir/ in #((
2449 ./ | .// | /[cC]/* | \
2450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2451 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2452 /usr/ucb/* ) ;;
2454 # OSF1 and SCO ODT 3.0 have their own names for install.
2455 # Don't use installbsd from OSF since it installs stuff as root
2456 # by default.
2457 for ac_prog in ginstall scoinst install; do
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2460 if test $ac_prog = install &&
2461 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2462 # AIX install. It has an incompatible calling convention.
2464 elif test $ac_prog = install &&
2465 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # program-specific install script used by HP pwplus--don't use.
2468 else
2469 rm -rf conftest.one conftest.two conftest.dir
2470 echo one > conftest.one
2471 echo two > conftest.two
2472 mkdir conftest.dir
2473 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2474 test -s conftest.one && test -s conftest.two &&
2475 test -s conftest.dir/conftest.one &&
2476 test -s conftest.dir/conftest.two
2477 then
2478 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2479 break 3
2483 done
2484 done
2486 esac
2488 done
2489 IFS=$as_save_IFS
2491 rm -rf conftest.one conftest.two conftest.dir
2494 if test "${ac_cv_path_install+set}" = set; then
2495 INSTALL=$ac_cv_path_install
2496 else
2497 # As a last resort, use the slow shell script. Don't cache a
2498 # value for INSTALL within a source directory, because that will
2499 # break other packages using the cache if that directory is
2500 # removed, or if the value is a relative name.
2501 INSTALL=$ac_install_sh
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2505 $as_echo "$INSTALL" >&6; }
2507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2508 # It thinks the first close brace ends the variable substitution.
2509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2513 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2516 $as_echo_n "checking whether build environment is sane... " >&6; }
2517 # Reject unsafe characters in $srcdir or the absolute working directory
2518 # name. Accept space and tab only in the latter.
2519 am_lf='
2521 case `pwd` in
2522 *[\\\"\#\$\&\'\`$am_lf]*)
2523 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2524 esac
2525 case $srcdir in
2526 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2527 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2528 esac
2530 # Do 'set' in a subshell so we don't clobber the current shell's
2531 # arguments. Must try -L first in case configure is actually a
2532 # symlink; some systems play weird games with the mod time of symlinks
2533 # (eg FreeBSD returns the mod time of the symlink's containing
2534 # directory).
2535 if (
2536 am_has_slept=no
2537 for am_try in 1 2; do
2538 echo "timestamp, slept: $am_has_slept" > conftest.file
2539 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2540 if test "$*" = "X"; then
2541 # -L didn't work.
2542 set X `ls -t "$srcdir/configure" conftest.file`
2544 if test "$*" != "X $srcdir/configure conftest.file" \
2545 && test "$*" != "X conftest.file $srcdir/configure"; then
2547 # If neither matched, then we have a broken ls. This can happen
2548 # if, for instance, CONFIG_SHELL is bash and it inherits a
2549 # broken ls alias from the environment. This has actually
2550 # happened. Such a system could not be considered "sane".
2551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2552 alias in your environment" "$LINENO" 5
2554 if test "$2" = conftest.file || test $am_try -eq 2; then
2555 break
2557 # Just in case.
2558 sleep 1
2559 am_has_slept=yes
2560 done
2561 test "$2" = conftest.file
2563 then
2564 # Ok.
2566 else
2567 as_fn_error $? "newly created file is older than distributed files!
2568 Check your system clock" "$LINENO" 5
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571 $as_echo "yes" >&6; }
2572 # If we didn't sleep, we still need to ensure time stamps of config.status and
2573 # generated files are strictly newer.
2574 am_sleep_pid=
2575 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2576 ( sleep 1 ) &
2577 am_sleep_pid=$!
2580 rm -f conftest.file
2582 test "$program_prefix" != NONE &&
2583 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2584 # Use a double $ so make ignores it.
2585 test "$program_suffix" != NONE &&
2586 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2587 # Double any \ or $.
2588 # By default was `s,x,x', remove it if useless.
2589 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2590 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2592 # Expand $ac_aux_dir to an absolute path.
2593 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2595 if test x"${MISSING+set}" != xset; then
2596 case $am_aux_dir in
2597 *\ * | *\ *)
2598 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2600 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2601 esac
2603 # Use eval to expand $SHELL
2604 if eval "$MISSING --is-lightweight"; then
2605 am_missing_run="$MISSING "
2606 else
2607 am_missing_run=
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2609 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2612 if test x"${install_sh+set}" != xset; then
2613 case $am_aux_dir in
2614 *\ * | *\ *)
2615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2617 install_sh="\${SHELL} $am_aux_dir/install-sh"
2618 esac
2621 # Installed binaries are usually stripped using 'strip' when the user
2622 # run "make install-strip". However 'strip' might not be the right
2623 # tool to use in cross-compilation environments, therefore Automake
2624 # will honor the 'STRIP' environment variable to overrule this program.
2625 if test "$cross_compiling" != no; then
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}strip; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if ${ac_cv_prog_STRIP+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$STRIP"; then
2635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2654 STRIP=$ac_cv_prog_STRIP
2655 if test -n "$STRIP"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2657 $as_echo "$STRIP" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2665 if test -z "$ac_cv_prog_STRIP"; then
2666 ac_ct_STRIP=$STRIP
2667 # Extract the first word of "strip", so it can be a program name with args.
2668 set dummy strip; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 if test -n "$ac_ct_STRIP"; then
2675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_STRIP="strip"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2688 done
2689 done
2690 IFS=$as_save_IFS
2694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2695 if test -n "$ac_ct_STRIP"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2697 $as_echo "$ac_ct_STRIP" >&6; }
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2703 if test "x$ac_ct_STRIP" = x; then
2704 STRIP=":"
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2711 esac
2712 STRIP=$ac_ct_STRIP
2714 else
2715 STRIP="$ac_cv_prog_STRIP"
2719 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2722 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2723 if test -z "$MKDIR_P"; then
2724 if ${ac_cv_path_mkdir+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_prog in mkdir gmkdir; do
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2735 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2736 'mkdir (GNU coreutils) '* | \
2737 'mkdir (coreutils) '* | \
2738 'mkdir (fileutils) '4.1*)
2739 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2740 break 3;;
2741 esac
2742 done
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 test -d ./--version && rmdir ./--version
2750 if test "${ac_cv_path_mkdir+set}" = set; then
2751 MKDIR_P="$ac_cv_path_mkdir -p"
2752 else
2753 # As a last resort, use the slow shell script. Don't cache a
2754 # value for MKDIR_P within a source directory, because that will
2755 # break other packages using the cache if that directory is
2756 # removed, or if the value is a relative name.
2757 MKDIR_P="$ac_install_sh -d"
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2761 $as_echo "$MKDIR_P" >&6; }
2763 for ac_prog in gawk mawk nawk awk
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_AWK+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$AWK"; then
2773 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_prog_AWK="$ac_prog"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2788 IFS=$as_save_IFS
2792 AWK=$ac_cv_prog_AWK
2793 if test -n "$AWK"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2795 $as_echo "$AWK" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2802 test -n "$AWK" && break
2803 done
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807 set x ${MAKE-make}
2808 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 cat >conftest.make <<\_ACEOF
2813 SHELL = /bin/sh
2814 all:
2815 @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 _ACEOF
2817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819 *@@@%%%=?*=@@@%%%*)
2820 eval ac_cv_prog_make_${ac_make}_set=yes;;
2822 eval ac_cv_prog_make_${ac_make}_set=no;;
2823 esac
2824 rm -f conftest.make
2826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828 $as_echo "yes" >&6; }
2829 SET_MAKE=
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 SET_MAKE="MAKE=${MAKE-make}"
2836 rm -rf .tst 2>/dev/null
2837 mkdir .tst 2>/dev/null
2838 if test -d .tst; then
2839 am__leading_dot=.
2840 else
2841 am__leading_dot=_
2843 rmdir .tst 2>/dev/null
2845 # Check whether --enable-silent-rules was given.
2846 if test "${enable_silent_rules+set}" = set; then :
2847 enableval=$enable_silent_rules;
2850 case $enable_silent_rules in # (((
2851 yes) AM_DEFAULT_VERBOSITY=0;;
2852 no) AM_DEFAULT_VERBOSITY=1;;
2853 *) AM_DEFAULT_VERBOSITY=1;;
2854 esac
2855 am_make=${MAKE-make}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2857 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2858 if ${am_cv_make_support_nested_variables+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if $as_echo 'TRUE=$(BAR$(V))
2862 BAR0=false
2863 BAR1=true
2865 am__doit:
2866 @$(TRUE)
2867 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2868 am_cv_make_support_nested_variables=yes
2869 else
2870 am_cv_make_support_nested_variables=no
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2874 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2875 if test $am_cv_make_support_nested_variables = yes; then
2876 AM_V='$(V)'
2877 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2878 else
2879 AM_V=$AM_DEFAULT_VERBOSITY
2880 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2882 AM_BACKSLASH='\'
2884 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2886 # is not polluted with repeated "-I."
2887 am__isrc=' -I$(srcdir)'
2888 # test to see if srcdir already configured
2889 if test -f $srcdir/config.status; then
2890 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2894 # test whether we have cygpath
2895 if test -z "$CYGPATH_W"; then
2896 if (cygpath --version) >/dev/null 2>/dev/null; then
2897 CYGPATH_W='cygpath -w'
2898 else
2899 CYGPATH_W=echo
2904 # Define the identity of the package.
2905 PACKAGE='zlib'
2906 VERSION='1.1.4'
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE "$PACKAGE"
2911 _ACEOF
2914 cat >>confdefs.h <<_ACEOF
2915 #define VERSION "$VERSION"
2916 _ACEOF
2918 # Some tools Automake needs.
2920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2934 # For better backward compatibility. To be removed once Automake 1.9.x
2935 # dies out for good. For more background, see:
2936 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2937 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2938 mkdir_p='$(MKDIR_P)'
2940 # We need awk for the "check" target (and possibly the TAP driver). The
2941 # system "awk" is bad on some platforms.
2942 # Always define AMTAR for backward compatibility. Yes, it's still used
2943 # in the wild :-( We should find a proper way to deprecate it ...
2944 AMTAR='$${TAR-tar}'
2947 # We'll loop over all known methods to create a tar archive until one works.
2948 _am_tools='gnutar pax cpio none'
2950 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2957 # POSIX will say in a future version that running "rm -f" with no argument
2958 # is OK; and we want to be able to make that assumption in our Makefile
2959 # recipes. So use an aggressive probe to check that the usage we want is
2960 # actually supported "in the wild" to an acceptable degree.
2961 # See automake bug#10828.
2962 # To make any issue more visible, cause the running configure to be aborted
2963 # by default if the 'rm' program in use doesn't match our expectations; the
2964 # user can still override this though.
2965 if rm -f && rm -fr && rm -rf; then : OK; else
2966 cat >&2 <<'END'
2967 Oops!
2969 Your 'rm' program seems unable to run without file operands specified
2970 on the command line, even when the '-f' option is present. This is contrary
2971 to the behaviour of most rm programs out there, and not conforming with
2972 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2974 Please tell bug-automake@gnu.org about your system, including the value
2975 of your $PATH and any error possibly output before this message. This
2976 can help us improve future automake versions.
2979 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2980 echo 'Configuration will proceed anyway, since you have set the' >&2
2981 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2982 echo >&2
2983 else
2984 cat >&2 <<'END'
2985 Aborting the configuration process, to ensure you take notice of the issue.
2987 You can download and install GNU coreutils to get an 'rm' implementation
2988 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2990 If you want to complete the configuration process using your problematic
2991 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2992 to "yes", and re-run configure.
2995 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3002 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3003 # Check whether --enable-maintainer-mode was given.
3004 if test "${enable_maintainer_mode+set}" = set; then :
3005 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3006 else
3007 USE_MAINTAINER_MODE=no
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3011 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3012 if test $USE_MAINTAINER_MODE = yes; then
3013 MAINTAINER_MODE_TRUE=
3014 MAINTAINER_MODE_FALSE='#'
3015 else
3016 MAINTAINER_MODE_TRUE='#'
3017 MAINTAINER_MODE_FALSE=
3020 MAINT=$MAINTAINER_MODE_TRUE
3025 # Check whether --with-target-subdir was given.
3026 if test "${with_target_subdir+set}" = set; then :
3027 withval=$with_target_subdir;
3031 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
3032 COMPPATH=.
3033 else
3034 COMPPATH=..
3039 # Check whether --with-cross-host was given.
3040 if test "${with_cross_host+set}" = set; then :
3041 withval=$with_cross_host;
3045 # Check whether --enable-multilib was given.
3046 if test "${enable_multilib+set}" = set; then :
3047 enableval=$enable_multilib; case "${enableval}" in
3048 yes) multilib=yes ;;
3049 no) multilib=no ;;
3050 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
3051 esac
3052 else
3053 test -z "$with_target_subdir" && multilib=no || multilib=yes
3057 # Check whether --with-system-zlib was given.
3058 if test "${with_system_zlib+set}" = set; then :
3059 withval=$with_system_zlib;
3063 # Make sure we don't test executables when making cross-tools.
3066 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3067 # We must force CC to /not/ be precious variables; otherwise
3068 # the wrong, non-multilib-adjusted value will be used in multilibs.
3069 # As a side effect, we have to subst CFLAGS ourselves.
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3117 if test -z "$ac_cv_prog_CC"; then
3118 ac_ct_CC=$CC
3119 # Extract the first word of "gcc", so it can be a program name with args.
3120 set dummy gcc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="gcc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3142 IFS=$as_save_IFS
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3155 if test "x$ac_ct_CC" = x; then
3156 CC=""
3157 else
3158 case $cross_compiling:$ac_tool_warned in
3159 yes:)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162 ac_tool_warned=yes ;;
3163 esac
3164 CC=$ac_ct_CC
3166 else
3167 CC="$ac_cv_prog_CC"
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}cc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_CC="${ac_tool_prefix}cc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3193 done
3194 done
3195 IFS=$as_save_IFS
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3211 if test -z "$CC"; then
3212 # Extract the first word of "cc", so it can be a program name with args.
3213 set dummy cc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 else
3222 ac_prog_rejected=no
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3231 ac_prog_rejected=yes
3232 continue
3234 ac_cv_prog_CC="cc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3238 done
3239 done
3240 IFS=$as_save_IFS
3242 if test $ac_prog_rejected = yes; then
3243 # We found a bogon in the path, so make sure we never use it.
3244 set dummy $ac_cv_prog_CC
3245 shift
3246 if test $# != 0; then
3247 # We chose a different compiler from the bogus one.
3248 # However, it has the same basename, so the bogon will be chosen
3249 # first if we set CC to just the basename; use the full file name.
3250 shift
3251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 for ac_prog in cl.exe
3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3308 test -n "$CC" && break
3309 done
3311 if test -z "$CC"; then
3312 ac_ct_CC=$CC
3313 for ac_prog in cl.exe
3315 # Extract the first word of "$ac_prog", so it can be a program name with args.
3316 set dummy $ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_CC="$ac_prog"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3336 done
3337 done
3338 IFS=$as_save_IFS
3342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3352 test -n "$ac_ct_CC" && break
3353 done
3355 if test "x$ac_ct_CC" = x; then
3356 CC=""
3357 else
3358 case $cross_compiling:$ac_tool_warned in
3359 yes:)
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3362 ac_tool_warned=yes ;;
3363 esac
3364 CC=$ac_ct_CC
3371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "no acceptable C compiler found in \$PATH
3374 See \`config.log' for more details" "$LINENO" 5; }
3376 # Provide some information about the compiler.
3377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3378 set X $ac_compile
3379 ac_compiler=$2
3380 for ac_option in --version -v -V -qversion; do
3381 { { ac_try="$ac_compiler $ac_option >&5"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389 ac_status=$?
3390 if test -s conftest.err; then
3391 sed '10a\
3392 ... rest of stderr output deleted ...
3393 10q' conftest.err >conftest.er1
3394 cat conftest.er1 >&5
3396 rm -f conftest.er1 conftest.err
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3399 done
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main ()
3409 return 0;
3411 _ACEOF
3412 # FIXME: Cleanup?
3413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3414 (eval $ac_link) 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 gcc_no_link=no
3419 else
3420 gcc_no_link=yes
3422 if test x$gcc_no_link = xyes; then
3423 # Setting cross_compile will disable run tests; it will
3424 # also disable AC_CHECK_FILE but that's generally
3425 # correct if we can't link.
3426 cross_compiling=yes
3427 EXEEXT=
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 ac_clean_files_save=$ac_clean_files
3441 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3442 # Try to create an executable without -o first, disregard a.out.
3443 # It will help us diagnose broken compilers, and finding out an intuition
3444 # of exeext.
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3446 $as_echo_n "checking whether the C compiler works... " >&6; }
3447 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3449 # The possible output files:
3450 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452 ac_rmfiles=
3453 for ac_file in $ac_files
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3458 esac
3459 done
3460 rm -f $ac_rmfiles
3462 if { { ac_try="$ac_link_default"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link_default") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3474 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3475 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3476 # so that the user can short-circuit this test for compilers unknown to
3477 # Autoconf.
3478 for ac_file in $ac_files ''
3480 test -f "$ac_file" || continue
3481 case $ac_file in
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484 [ab].out )
3485 # We found the default executable, but exeext='' is most
3486 # certainly right.
3487 break;;
3488 *.* )
3489 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3490 then :; else
3491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 # We set ac_cv_exeext here because the later test for it is not
3494 # safe: cross compilers may not add the suffix if given an `-o'
3495 # argument, so we may need to know it at that point already.
3496 # Even if this section looks crufty: it has the advantage of
3497 # actually working.
3498 break;;
3500 break;;
3501 esac
3502 done
3503 test "$ac_cv_exeext" = no && ac_cv_exeext=
3505 else
3506 ac_file=''
3508 if test -z "$ac_file"; then :
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error 77 "C compiler cannot create executables
3517 See \`config.log' for more details" "$LINENO" 5; }
3518 else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3520 $as_echo "yes" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3523 $as_echo_n "checking for C compiler default output file name... " >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3525 $as_echo "$ac_file" >&6; }
3526 ac_exeext=$ac_cv_exeext
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3531 $as_echo_n "checking for suffix of executables... " >&6; }
3532 if { { ac_try="$ac_link"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_link") 2>&5
3540 ac_status=$?
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; then :
3543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3545 # work properly (i.e., refer to `conftest.exe'), while it won't with
3546 # `rm'.
3547 for ac_file in conftest.exe conftest conftest.*; do
3548 test -f "$ac_file" || continue
3549 case $ac_file in
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 break;;
3553 * ) break;;
3554 esac
3555 done
3556 else
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3560 See \`config.log' for more details" "$LINENO" 5; }
3562 rm -f conftest conftest$ac_cv_exeext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3568 ac_exeext=$EXEEXT
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 #include <stdio.h>
3573 main ()
3575 FILE *f = fopen ("conftest.out", "w");
3576 return ferror (f) || fclose (f) != 0;
3579 return 0;
3581 _ACEOF
3582 ac_clean_files="$ac_clean_files conftest.out"
3583 # Check that the compiler produces executables we can run. If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3586 $as_echo_n "checking whether we are cross compiling... " >&6; }
3587 if test "$cross_compiling" != yes; then
3588 { { ac_try="$ac_link"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }
3599 if { ac_try='./conftest$ac_cv_exeext'
3600 { { case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_try") 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; }; then
3610 cross_compiling=no
3611 else
3612 if test "$cross_compiling" = maybe; then
3613 cross_compiling=yes
3614 else
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $? "cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details" "$LINENO" 5; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3624 $as_echo "$cross_compiling" >&6; }
3626 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3627 ac_clean_files=$ac_clean_files_save
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3630 $as_echo_n "checking for suffix of object files... " >&6; }
3631 if ${ac_cv_objext+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3638 main ()
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.o conftest.obj
3646 if { { ac_try="$ac_compile"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compile") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; then :
3657 for ac_file in conftest.o conftest.obj conftest.*; do
3658 test -f "$ac_file" || continue;
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3662 break;;
3663 esac
3664 done
3665 else
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot compute suffix of object files: cannot compile
3672 See \`config.log' for more details" "$LINENO" 5; }
3674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3677 $as_echo "$ac_cv_objext" >&6; }
3678 OBJEXT=$ac_cv_objext
3679 ac_objext=$OBJEXT
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3681 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3682 if ${ac_cv_c_compiler_gnu+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3689 main ()
3691 #ifndef __GNUC__
3692 choke me
3693 #endif
3696 return 0;
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_compiler_gnu=yes
3701 else
3702 ac_compiler_gnu=no
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3709 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3710 if test $ac_compiler_gnu = yes; then
3711 GCC=yes
3712 else
3713 GCC=
3715 ac_test_CFLAGS=${CFLAGS+set}
3716 ac_save_CFLAGS=$CFLAGS
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3718 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3719 if ${ac_cv_prog_cc_g+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 ac_save_c_werror_flag=$ac_c_werror_flag
3723 ac_c_werror_flag=yes
3724 ac_cv_prog_cc_g=no
3725 CFLAGS="-g"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_g=yes
3739 else
3740 CFLAGS=""
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3754 else
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3761 main ()
3765 return 0;
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3779 $as_echo "$ac_cv_prog_cc_g" >&6; }
3780 if test "$ac_test_CFLAGS" = set; then
3781 CFLAGS=$ac_save_CFLAGS
3782 elif test $ac_cv_prog_cc_g = yes; then
3783 if test "$GCC" = yes; then
3784 CFLAGS="-g -O2"
3785 else
3786 CFLAGS="-g"
3788 else
3789 if test "$GCC" = yes; then
3790 CFLAGS="-O2"
3791 else
3792 CFLAGS=
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3796 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3797 if ${ac_cv_prog_cc_c89+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_cv_prog_cc_c89=no
3801 ac_save_CC=$CC
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <stdarg.h>
3805 #include <stdio.h>
3806 struct stat;
3807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3808 struct buf { int x; };
3809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3810 static char *e (p, i)
3811 char **p;
3812 int i;
3814 return p[i];
3816 static char *f (char * (*g) (char **, int), char **p, ...)
3818 char *s;
3819 va_list v;
3820 va_start (v,p);
3821 s = g (p, va_arg (v,int));
3822 va_end (v);
3823 return s;
3826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3827 function prototypes and stuff, but not '\xHH' hex character constants.
3828 These don't provoke an error unfortunately, instead are silently treated
3829 as 'x'. The following induces an error, until -std is added to get
3830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3831 array size at least. It's necessary to write '\x00'==0 to get something
3832 that's true only with -std. */
3833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3836 inside strings and character constants. */
3837 #define FOO(x) 'x'
3838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3840 int test (int i, double x);
3841 struct s1 {int (*f) (int a);};
3842 struct s2 {int (*f) (double a);};
3843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3844 int argc;
3845 char **argv;
3847 main ()
3849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3851 return 0;
3853 _ACEOF
3854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3857 CC="$ac_save_CC $ac_arg"
3858 if ac_fn_c_try_compile "$LINENO"; then :
3859 ac_cv_prog_cc_c89=$ac_arg
3861 rm -f core conftest.err conftest.$ac_objext
3862 test "x$ac_cv_prog_cc_c89" != "xno" && break
3863 done
3864 rm -f conftest.$ac_ext
3865 CC=$ac_save_CC
3868 # AC_CACHE_VAL
3869 case "x$ac_cv_prog_cc_c89" in
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3872 $as_echo "none needed" >&6; } ;;
3873 xno)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3875 $as_echo "unsupported" >&6; } ;;
3877 CC="$CC $ac_cv_prog_cc_c89"
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3880 esac
3881 if test "x$ac_cv_prog_cc_c89" != xno; then :
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3897 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3898 if ${am_cv_prog_cc_c_o+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 # Make sure it works both with $CC and with simple cc.
3913 # Following AC_PROG_CC_C_O, we do the test twice because some
3914 # compilers refuse to overwrite an existing .o file with -o,
3915 # though they will create one.
3916 am_cv_prog_cc_c_o=yes
3917 for am_i in 1 2; do
3918 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3919 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } \
3923 && test -f conftest2.$ac_objext; then
3924 : OK
3925 else
3926 am_cv_prog_cc_c_o=no
3927 break
3929 done
3930 rm -f core conftest*
3931 unset am_i
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3934 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3935 if test "$am_cv_prog_cc_c_o" != yes; then
3936 # Losing compiler, so override with the script.
3937 # FIXME: It is wrong to rewrite CC.
3938 # But if we don't then we get into trouble of one sort or another.
3939 # A longer-term fix would be to have automake use am__CC in this case,
3940 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3941 CC="$am_aux_dir/compile $CC"
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 DEPDIR="${am__leading_dot}deps"
3951 ac_config_commands="$ac_config_commands depfiles"
3954 am_make=${MAKE-make}
3955 cat > confinc << 'END'
3956 am__doit:
3957 @echo this is the am__doit target
3958 .PHONY: am__doit
3960 # If we don't find an include directive, just comment out the code.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3962 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3963 am__include="#"
3964 am__quote=
3965 _am_result=none
3966 # First try GNU make style include.
3967 echo "include confinc" > confmf
3968 # Ignore all kinds of additional output from 'make'.
3969 case `$am_make -s -f confmf 2> /dev/null` in #(
3970 *the\ am__doit\ target*)
3971 am__include=include
3972 am__quote=
3973 _am_result=GNU
3975 esac
3976 # Now try BSD make style include.
3977 if test "$am__include" = "#"; then
3978 echo '.include "confinc"' > confmf
3979 case `$am_make -s -f confmf 2> /dev/null` in #(
3980 *the\ am__doit\ target*)
3981 am__include=.include
3982 am__quote="\""
3983 _am_result=BSD
3985 esac
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3990 $as_echo "$_am_result" >&6; }
3991 rm -f confinc confmf
3993 # Check whether --enable-dependency-tracking was given.
3994 if test "${enable_dependency_tracking+set}" = set; then :
3995 enableval=$enable_dependency_tracking;
3998 if test "x$enable_dependency_tracking" != xno; then
3999 am_depcomp="$ac_aux_dir/depcomp"
4000 AMDEPBACKSLASH='\'
4001 am__nodep='_no'
4003 if test "x$enable_dependency_tracking" != xno; then
4004 AMDEP_TRUE=
4005 AMDEP_FALSE='#'
4006 else
4007 AMDEP_TRUE='#'
4008 AMDEP_FALSE=
4013 depcc="$CC" am_compiler_list=
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4016 $as_echo_n "checking dependency style of $depcc... " >&6; }
4017 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4021 # We make a subdir and do the tests there. Otherwise we can end up
4022 # making bogus files that we don't know about and never remove. For
4023 # instance it was reported that on HP-UX the gcc test will end up
4024 # making a dummy file named 'D' -- because '-MD' means "put the output
4025 # in D".
4026 rm -rf conftest.dir
4027 mkdir conftest.dir
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4031 cd conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4037 # directory.
4038 mkdir sub
4040 am_cv_CC_dependencies_compiler_type=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4044 am__universal=false
4045 case " $depcc " in #(
4046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 esac
4049 for depmode in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4057 : > sub/conftest.c
4058 for i in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4060 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4061 # Solaris 10 /bin/sh.
4062 echo '/* dummy */' > sub/conftst$i.h
4063 done
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4066 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4067 # mode. It turns out that the SunPro C++ compiler does not properly
4068 # handle '-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs.
4070 am__obj=sub/conftest.${OBJEXT-o}
4071 am__minus_obj="-o $am__obj"
4072 case $depmode in
4073 gcc)
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false || continue
4077 nosideeffect)
4078 # After this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested.
4080 if test "x$enable_dependency_tracking" = xyes; then
4081 continue
4082 else
4083 break
4086 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4087 # This compiler won't grok '-c -o', but also, the minuso test has
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj=conftest.${OBJEXT-o}
4091 am__minus_obj=
4093 none) break ;;
4094 esac
4095 if depmode=$depmode \
4096 source=sub/conftest.c object=$am__obj \
4097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4099 >/dev/null 2>conftest.err &&
4100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type=$depmode
4114 break
4117 done
4119 cd ..
4120 rm -rf conftest.dir
4121 else
4122 am_cv_CC_dependencies_compiler_type=none
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_TRUE=
4134 am__fastdepCC_FALSE='#'
4135 else
4136 am__fastdepCC_TRUE='#'
4137 am__fastdepCC_FALSE=
4145 case `pwd` in
4146 *\ * | *\ *)
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4148 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4149 esac
4153 macro_version='2.2.7a'
4154 macro_revision='1.3134'
4168 ltmain="$ac_aux_dir/ltmain.sh"
4170 # Backslashify metacharacters that are still active within
4171 # double-quoted strings.
4172 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4174 # Same as above, but do not quote variable references.
4175 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4177 # Sed substitution to delay expansion of an escaped shell variable in a
4178 # double_quote_subst'ed string.
4179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4181 # Sed substitution to delay expansion of an escaped single quote.
4182 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4184 # Sed substitution to avoid accidental globbing in evaled expressions
4185 no_glob_subst='s/\*/\\\*/g'
4187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4192 $as_echo_n "checking how to print strings... " >&6; }
4193 # Test print first, because it will be a builtin if present.
4194 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4196 ECHO='print -r --'
4197 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4198 ECHO='printf %s\n'
4199 else
4200 # Use this function as a fallback that always works.
4201 func_fallback_echo ()
4203 eval 'cat <<_LTECHO_EOF
4205 _LTECHO_EOF'
4207 ECHO='func_fallback_echo'
4210 # func_echo_all arg...
4211 # Invoke $ECHO with all args, space-separated.
4212 func_echo_all ()
4214 $ECHO ""
4217 case "$ECHO" in
4218 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4219 $as_echo "printf" >&6; } ;;
4220 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4221 $as_echo "print -r" >&6; } ;;
4222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4223 $as_echo "cat" >&6; } ;;
4224 esac
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4240 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4241 if ${ac_cv_path_SED+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4245 for ac_i in 1 2 3 4 5 6 7; do
4246 ac_script="$ac_script$as_nl$ac_script"
4247 done
4248 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4249 { ac_script=; unset ac_script;}
4250 if test -z "$SED"; then
4251 ac_path_SED_found=false
4252 # Loop through the user's path and test for each of PROGNAME-LIST
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_prog in sed gsed; do
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4261 as_fn_executable_p "$ac_path_SED" || continue
4262 # Check for GNU ac_path_SED and select it if it is found.
4263 # Check for GNU $ac_path_SED
4264 case `"$ac_path_SED" --version 2>&1` in
4265 *GNU*)
4266 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4268 ac_count=0
4269 $as_echo_n 0123456789 >"conftest.in"
4270 while :
4272 cat "conftest.in" "conftest.in" >"conftest.tmp"
4273 mv "conftest.tmp" "conftest.in"
4274 cp "conftest.in" "conftest.nl"
4275 $as_echo '' >> "conftest.nl"
4276 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4278 as_fn_arith $ac_count + 1 && ac_count=$as_val
4279 if test $ac_count -gt ${ac_path_SED_max-0}; then
4280 # Best one so far, save it but keep looking for a better one
4281 ac_cv_path_SED="$ac_path_SED"
4282 ac_path_SED_max=$ac_count
4284 # 10*(2^10) chars as input seems more than enough
4285 test $ac_count -gt 10 && break
4286 done
4287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288 esac
4290 $ac_path_SED_found && break 3
4291 done
4292 done
4293 done
4294 IFS=$as_save_IFS
4295 if test -z "$ac_cv_path_SED"; then
4296 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4298 else
4299 ac_cv_path_SED=$SED
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4304 $as_echo "$ac_cv_path_SED" >&6; }
4305 SED="$ac_cv_path_SED"
4306 rm -f conftest.sed
4308 test -z "$SED" && SED=sed
4309 Xsed="$SED -e 1s/^X//"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4322 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4323 if ${ac_cv_path_GREP+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -z "$GREP"; then
4327 ac_path_GREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in grep ggrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337 as_fn_executable_p "$ac_path_GREP" || continue
4338 # Check for GNU ac_path_GREP and select it if it is found.
4339 # Check for GNU $ac_path_GREP
4340 case `"$ac_path_GREP" --version 2>&1` in
4341 *GNU*)
4342 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344 ac_count=0
4345 $as_echo_n 0123456789 >"conftest.in"
4346 while :
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'GREP' >> "conftest.nl"
4352 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 as_fn_arith $ac_count + 1 && ac_count=$as_val
4355 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_GREP="$ac_path_GREP"
4358 ac_path_GREP_max=$ac_count
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 esac
4366 $ac_path_GREP_found && break 3
4367 done
4368 done
4369 done
4370 IFS=$as_save_IFS
4371 if test -z "$ac_cv_path_GREP"; then
4372 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4374 else
4375 ac_cv_path_GREP=$GREP
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4380 $as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4385 $as_echo_n "checking for egrep... " >&6; }
4386 if ${ac_cv_path_EGREP+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390 then ac_cv_path_EGREP="$GREP -E"
4391 else
4392 if test -z "$EGREP"; then
4393 ac_path_EGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in egrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_EGREP" || continue
4404 # Check for GNU ac_path_EGREP and select it if it is found.
4405 # Check for GNU $ac_path_EGREP
4406 case `"$ac_path_EGREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'EGREP' >> "conftest.nl"
4418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_EGREP="$ac_path_EGREP"
4424 ac_path_EGREP_max=$ac_count
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4432 $ac_path_EGREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_EGREP"; then
4438 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440 else
4441 ac_cv_path_EGREP=$EGREP
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4447 $as_echo "$ac_cv_path_EGREP" >&6; }
4448 EGREP="$ac_cv_path_EGREP"
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4452 $as_echo_n "checking for fgrep... " >&6; }
4453 if ${ac_cv_path_FGREP+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4457 then ac_cv_path_FGREP="$GREP -F"
4458 else
4459 if test -z "$FGREP"; then
4460 ac_path_FGREP_found=false
4461 # Loop through the user's path and test for each of PROGNAME-LIST
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_prog in fgrep; do
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4470 as_fn_executable_p "$ac_path_FGREP" || continue
4471 # Check for GNU ac_path_FGREP and select it if it is found.
4472 # Check for GNU $ac_path_FGREP
4473 case `"$ac_path_FGREP" --version 2>&1` in
4474 *GNU*)
4475 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4477 ac_count=0
4478 $as_echo_n 0123456789 >"conftest.in"
4479 while :
4481 cat "conftest.in" "conftest.in" >"conftest.tmp"
4482 mv "conftest.tmp" "conftest.in"
4483 cp "conftest.in" "conftest.nl"
4484 $as_echo 'FGREP' >> "conftest.nl"
4485 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4487 as_fn_arith $ac_count + 1 && ac_count=$as_val
4488 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4489 # Best one so far, save it but keep looking for a better one
4490 ac_cv_path_FGREP="$ac_path_FGREP"
4491 ac_path_FGREP_max=$ac_count
4493 # 10*(2^10) chars as input seems more than enough
4494 test $ac_count -gt 10 && break
4495 done
4496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497 esac
4499 $ac_path_FGREP_found && break 3
4500 done
4501 done
4502 done
4503 IFS=$as_save_IFS
4504 if test -z "$ac_cv_path_FGREP"; then
4505 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4507 else
4508 ac_cv_path_FGREP=$FGREP
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4514 $as_echo "$ac_cv_path_FGREP" >&6; }
4515 FGREP="$ac_cv_path_FGREP"
4518 test -z "$GREP" && GREP=grep
4538 # Check whether --with-gnu-ld was given.
4539 if test "${with_gnu_ld+set}" = set; then :
4540 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4541 else
4542 with_gnu_ld=no
4545 ac_prog=ld
4546 if test "$GCC" = yes; then
4547 # Check if gcc -print-prog-name=ld gives a path.
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4549 $as_echo_n "checking for ld used by $CC... " >&6; }
4550 case $host in
4551 *-*-mingw*)
4552 # gcc leaves a trailing carriage return which upsets mingw
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556 esac
4557 case $ac_prog in
4558 # Accept absolute paths.
4559 [\\/]* | ?:[\\/]*)
4560 re_direlt='/[^/][^/]*/\.\./'
4561 # Canonicalize the pathname of ld
4562 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4563 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4564 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4565 done
4566 test -z "$LD" && LD="$ac_prog"
4569 # If it fails, then pretend we aren't using GCC.
4570 ac_prog=ld
4573 # If it is relative, then search for the first ld in PATH.
4574 with_gnu_ld=unknown
4576 esac
4577 elif test "$with_gnu_ld" = yes; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4579 $as_echo_n "checking for GNU ld... " >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4582 $as_echo_n "checking for non-GNU ld... " >&6; }
4584 if ${lt_cv_path_LD+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -z "$LD"; then
4588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589 for ac_dir in $PATH; do
4590 IFS="$lt_save_ifs"
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4593 lt_cv_path_LD="$ac_dir/$ac_prog"
4594 # Check to see if the program is GNU ld. I'd rather use --version,
4595 # but apparently some variants of GNU ld only accept -v.
4596 # Break only if it was the GNU/non-GNU ld that we prefer.
4597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4598 *GNU* | *'with BFD'*)
4599 test "$with_gnu_ld" != no && break
4602 test "$with_gnu_ld" != yes && break
4604 esac
4606 done
4607 IFS="$lt_save_ifs"
4608 else
4609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4613 LD="$lt_cv_path_LD"
4614 if test -n "$LD"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4616 $as_echo "$LD" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4621 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4624 if ${lt_cv_prog_gnu_ld+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4628 case `$LD -v 2>&1 </dev/null` in
4629 *GNU* | *'with BFD'*)
4630 lt_cv_prog_gnu_ld=yes
4633 lt_cv_prog_gnu_ld=no
4635 esac
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4639 with_gnu_ld=$lt_cv_prog_gnu_ld
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4650 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4651 if ${lt_cv_path_NM+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$NM"; then
4655 # Let the user override the test.
4656 lt_cv_path_NM="$NM"
4657 else
4658 lt_nm_to_check="${ac_tool_prefix}nm"
4659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4660 lt_nm_to_check="$lt_nm_to_check nm"
4662 for lt_tmp_nm in $lt_nm_to_check; do
4663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4665 IFS="$lt_save_ifs"
4666 test -z "$ac_dir" && ac_dir=.
4667 tmp_nm="$ac_dir/$lt_tmp_nm"
4668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4669 # Check to see if the nm accepts a BSD-compat flag.
4670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4671 # nm: unknown option "B" ignored
4672 # Tru64's nm complains that /dev/null is an invalid object file
4673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4674 */dev/null* | *'Invalid file or object type'*)
4675 lt_cv_path_NM="$tmp_nm -B"
4676 break
4679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4680 */dev/null*)
4681 lt_cv_path_NM="$tmp_nm -p"
4682 break
4685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4686 continue # so that we can try to find one that supports BSD flags
4688 esac
4690 esac
4692 done
4693 IFS="$lt_save_ifs"
4694 done
4695 : ${lt_cv_path_NM=no}
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4699 $as_echo "$lt_cv_path_NM" >&6; }
4700 if test "$lt_cv_path_NM" != "no"; then
4701 NM="$lt_cv_path_NM"
4702 else
4703 # Didn't find any BSD compatible name lister, look for dumpbin.
4704 if test -n "$DUMPBIN"; then :
4705 # Let the user override the test.
4706 else
4707 if test -n "$ac_tool_prefix"; then
4708 for ac_prog in dumpbin "link -dump"
4710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_DUMPBIN+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if test -n "$DUMPBIN"; then
4718 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4731 done
4732 done
4733 IFS=$as_save_IFS
4737 DUMPBIN=$ac_cv_prog_DUMPBIN
4738 if test -n "$DUMPBIN"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4740 $as_echo "$DUMPBIN" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4747 test -n "$DUMPBIN" && break
4748 done
4750 if test -z "$DUMPBIN"; then
4751 ac_ct_DUMPBIN=$DUMPBIN
4752 for ac_prog in dumpbin "link -dump"
4754 # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4781 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4782 if test -n "$ac_ct_DUMPBIN"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4784 $as_echo "$ac_ct_DUMPBIN" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4791 test -n "$ac_ct_DUMPBIN" && break
4792 done
4794 if test "x$ac_ct_DUMPBIN" = x; then
4795 DUMPBIN=":"
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798 yes:)
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 DUMPBIN=$ac_ct_DUMPBIN
4807 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4808 *COFF*)
4809 DUMPBIN="$DUMPBIN -symbols"
4812 DUMPBIN=:
4814 esac
4817 if test "$DUMPBIN" != ":"; then
4818 NM="$DUMPBIN"
4821 test -z "$NM" && NM=nm
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4829 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4830 if ${lt_cv_nm_interface+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 lt_cv_nm_interface="BSD nm"
4834 echo "int some_variable = 0;" > conftest.$ac_ext
4835 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4836 (eval "$ac_compile" 2>conftest.err)
4837 cat conftest.err >&5
4838 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4839 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4840 cat conftest.err >&5
4841 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4842 cat conftest.out >&5
4843 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4844 lt_cv_nm_interface="MS dumpbin"
4846 rm -f conftest*
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4849 $as_echo "$lt_cv_nm_interface" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4852 $as_echo_n "checking whether ln -s works... " >&6; }
4853 LN_S=$as_ln_s
4854 if test "$LN_S" = "ln -s"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4856 $as_echo "yes" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4859 $as_echo "no, using $LN_S" >&6; }
4862 # find the maximum length of command line arguments
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4864 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4865 if ${lt_cv_sys_max_cmd_len+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4869 teststring="ABCD"
4871 case $build_os in
4872 msdosdjgpp*)
4873 # On DJGPP, this test can blow up pretty badly due to problems in libc
4874 # (any single argument exceeding 2000 bytes causes a buffer overrun
4875 # during glob expansion). Even if it were fixed, the result of this
4876 # check would be larger than it should be.
4877 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4880 gnu*)
4881 # Under GNU Hurd, this test is not required because there is
4882 # no limit to the length of command line arguments.
4883 # Libtool will interpret -1 as no limit whatsoever
4884 lt_cv_sys_max_cmd_len=-1;
4887 cygwin* | mingw* | cegcc*)
4888 # On Win9x/ME, this test blows up -- it succeeds, but takes
4889 # about 5 minutes as the teststring grows exponentially.
4890 # Worse, since 9x/ME are not pre-emptively multitasking,
4891 # you end up with a "frozen" computer, even though with patience
4892 # the test eventually succeeds (with a max line length of 256k).
4893 # Instead, let's just punt: use the minimum linelength reported by
4894 # all of the supported platforms: 8192 (on NT/2K/XP).
4895 lt_cv_sys_max_cmd_len=8192;
4898 mint*)
4899 # On MiNT this can take a long time and run out of memory.
4900 lt_cv_sys_max_cmd_len=8192;
4903 amigaos*)
4904 # On AmigaOS with pdksh, this test takes hours, literally.
4905 # So we just punt and use a minimum line length of 8192.
4906 lt_cv_sys_max_cmd_len=8192;
4909 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4910 # This has been around since 386BSD, at least. Likely further.
4911 if test -x /sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4913 elif test -x /usr/sbin/sysctl; then
4914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4915 else
4916 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4918 # And add a safety zone
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4923 interix*)
4924 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4925 lt_cv_sys_max_cmd_len=196608
4928 osf*)
4929 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4930 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4931 # nice to cause kernel panics so lets avoid the loop below.
4932 # First set a reasonable default.
4933 lt_cv_sys_max_cmd_len=16384
4935 if test -x /sbin/sysconfig; then
4936 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4937 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4938 esac
4941 sco3.2v5*)
4942 lt_cv_sys_max_cmd_len=102400
4944 sysv5* | sco5v6* | sysv4.2uw2*)
4945 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4946 if test -n "$kargmax"; then
4947 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4948 else
4949 lt_cv_sys_max_cmd_len=32768
4953 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4954 if test -n "$lt_cv_sys_max_cmd_len"; then
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4957 else
4958 # Make teststring a little bigger before we do anything with it.
4959 # a 1K string should be a reasonable start.
4960 for i in 1 2 3 4 5 6 7 8 ; do
4961 teststring=$teststring$teststring
4962 done
4963 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4964 # If test is not a shell built-in, we'll probably end up computing a
4965 # maximum length that is only half of the actual maximum length, but
4966 # we can't tell.
4967 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4968 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4969 test $i != 17 # 1/2 MB should be enough
4971 i=`expr $i + 1`
4972 teststring=$teststring$teststring
4973 done
4974 # Only check the string length outside the loop.
4975 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4976 teststring=
4977 # Add a significant safety factor because C++ compilers can tack on
4978 # massive amounts of additional arguments before passing them to the
4979 # linker. It appears as though 1/2 is a usable value.
4980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983 esac
4987 if test -n $lt_cv_sys_max_cmd_len ; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4989 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4992 $as_echo "none" >&6; }
4994 max_cmd_len=$lt_cv_sys_max_cmd_len
5001 : ${CP="cp -f"}
5002 : ${MV="mv -f"}
5003 : ${RM="rm -f"}
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5006 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5007 # Try some XSI features
5008 xsi_shell=no
5009 ( _lt_dummy="a/b/c"
5010 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5011 = c,a/b,, \
5012 && eval 'test $(( 1 + 1 )) -eq 2 \
5013 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5014 && xsi_shell=yes
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5016 $as_echo "$xsi_shell" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5020 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5021 lt_shell_append=no
5022 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5023 >/dev/null 2>&1 \
5024 && lt_shell_append=yes
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5026 $as_echo "$lt_shell_append" >&6; }
5029 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5030 lt_unset=unset
5031 else
5032 lt_unset=false
5039 # test EBCDIC or ASCII
5040 case `echo X|tr X '\101'` in
5041 A) # ASCII based system
5042 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5043 lt_SP2NL='tr \040 \012'
5044 lt_NL2SP='tr \015\012 \040\040'
5046 *) # EBCDIC based system
5047 lt_SP2NL='tr \100 \n'
5048 lt_NL2SP='tr \r\n \100\100'
5050 esac
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5061 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5062 if ${lt_cv_ld_reload_flag+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 lt_cv_ld_reload_flag='-r'
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5068 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5069 reload_flag=$lt_cv_ld_reload_flag
5070 case $reload_flag in
5071 "" | " "*) ;;
5072 *) reload_flag=" $reload_flag" ;;
5073 esac
5074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5075 case $host_os in
5076 darwin*)
5077 if test "$GCC" = yes; then
5078 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5079 else
5080 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5083 esac
5093 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5095 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_OBJDUMP+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$OBJDUMP"; then
5102 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5121 OBJDUMP=$ac_cv_prog_OBJDUMP
5122 if test -n "$OBJDUMP"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5124 $as_echo "$OBJDUMP" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5132 if test -z "$ac_cv_prog_OBJDUMP"; then
5133 ac_ct_OBJDUMP=$OBJDUMP
5134 # Extract the first word of "objdump", so it can be a program name with args.
5135 set dummy objdump; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$ac_ct_OBJDUMP"; then
5142 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5162 if test -n "$ac_ct_OBJDUMP"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5164 $as_echo "$ac_ct_OBJDUMP" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5170 if test "x$ac_ct_OBJDUMP" = x; then
5171 OBJDUMP="false"
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177 ac_tool_warned=yes ;;
5178 esac
5179 OBJDUMP=$ac_ct_OBJDUMP
5181 else
5182 OBJDUMP="$ac_cv_prog_OBJDUMP"
5185 test -z "$OBJDUMP" && OBJDUMP=objdump
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5196 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5197 if ${lt_cv_deplibs_check_method+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 lt_cv_file_magic_cmd='$MAGIC_CMD'
5201 lt_cv_file_magic_test_file=
5202 lt_cv_deplibs_check_method='unknown'
5203 # Need to set the preceding variable on all platforms that support
5204 # interlibrary dependencies.
5205 # 'none' -- dependencies not supported.
5206 # `unknown' -- same as none, but documents that we really don't know.
5207 # 'pass_all' -- all dependencies passed with no checks.
5208 # 'test_compile' -- check by making test program.
5209 # 'file_magic [[regex]]' -- check by looking for files in library path
5210 # which responds to the $file_magic_cmd with a given extended regex.
5211 # If you have `file' or equivalent on your system and you're not sure
5212 # whether `pass_all' will *always* work, you probably want this one.
5214 case $host_os in
5215 aix[4-9]*)
5216 lt_cv_deplibs_check_method=pass_all
5219 beos*)
5220 lt_cv_deplibs_check_method=pass_all
5223 bsdi[45]*)
5224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5225 lt_cv_file_magic_cmd='/usr/bin/file -L'
5226 lt_cv_file_magic_test_file=/shlib/libc.so
5229 cygwin*)
5230 # func_win32_libid is a shell function defined in ltmain.sh
5231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5232 lt_cv_file_magic_cmd='func_win32_libid'
5235 mingw* | pw32*)
5236 # Base MSYS/MinGW do not provide the 'file' command needed by
5237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5238 # unless we find 'file', for example because we are cross-compiling.
5239 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5240 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5241 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5242 lt_cv_file_magic_cmd='func_win32_libid'
5243 else
5244 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5245 lt_cv_file_magic_cmd='$OBJDUMP -f'
5249 cegcc*)
5250 # use the weaker test based on 'objdump'. See mingw*.
5251 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5252 lt_cv_file_magic_cmd='$OBJDUMP -f'
5255 darwin* | rhapsody*)
5256 lt_cv_deplibs_check_method=pass_all
5259 freebsd* | dragonfly*)
5260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5261 case $host_cpu in
5262 i*86 )
5263 # Not sure whether the presence of OpenBSD here was a mistake.
5264 # Let's accept both of them until this is cleared up.
5265 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5266 lt_cv_file_magic_cmd=/usr/bin/file
5267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5269 esac
5270 else
5271 lt_cv_deplibs_check_method=pass_all
5275 gnu*)
5276 lt_cv_deplibs_check_method=pass_all
5279 haiku*)
5280 lt_cv_deplibs_check_method=pass_all
5283 hpux10.20* | hpux11*)
5284 lt_cv_file_magic_cmd=/usr/bin/file
5285 case $host_cpu in
5286 ia64*)
5287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5288 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5290 hppa*64*)
5291 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]'
5292 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5296 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5298 esac
5301 interix[3-9]*)
5302 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5306 irix5* | irix6* | nonstopux*)
5307 case $LD in
5308 *-32|*"-32 ") libmagic=32-bit;;
5309 *-n32|*"-n32 ") libmagic=N32;;
5310 *-64|*"-64 ") libmagic=64-bit;;
5311 *) libmagic=never-match;;
5312 esac
5313 lt_cv_deplibs_check_method=pass_all
5316 # This must be Linux ELF.
5317 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5318 lt_cv_deplibs_check_method=pass_all
5321 netbsd*)
5322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5324 else
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5329 newos6*)
5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5331 lt_cv_file_magic_cmd=/usr/bin/file
5332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5335 *nto* | *qnx*)
5336 lt_cv_deplibs_check_method=pass_all
5339 openbsd*)
5340 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5342 else
5343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5347 osf3* | osf4* | osf5*)
5348 lt_cv_deplibs_check_method=pass_all
5351 rdos*)
5352 lt_cv_deplibs_check_method=pass_all
5355 solaris*)
5356 lt_cv_deplibs_check_method=pass_all
5359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5360 lt_cv_deplibs_check_method=pass_all
5363 sysv4 | sysv4.3*)
5364 case $host_vendor in
5365 motorola)
5366 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]'
5367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5369 ncr)
5370 lt_cv_deplibs_check_method=pass_all
5372 sequent)
5373 lt_cv_file_magic_cmd='/bin/file'
5374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5376 sni)
5377 lt_cv_file_magic_cmd='/bin/file'
5378 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5379 lt_cv_file_magic_test_file=/lib/libc.so
5381 siemens)
5382 lt_cv_deplibs_check_method=pass_all
5385 lt_cv_deplibs_check_method=pass_all
5387 esac
5390 tpf*)
5391 lt_cv_deplibs_check_method=pass_all
5393 esac
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5397 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5398 file_magic_cmd=$lt_cv_file_magic_cmd
5399 deplibs_check_method=$lt_cv_deplibs_check_method
5400 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5413 if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}ar; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_AR+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$AR"; then
5422 ac_cv_prog_AR="$AR" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_AR="${ac_tool_prefix}ar"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5435 done
5436 done
5437 IFS=$as_save_IFS
5441 AR=$ac_cv_prog_AR
5442 if test -n "$AR"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5444 $as_echo "$AR" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5452 if test -z "$ac_cv_prog_AR"; then
5453 ac_ct_AR=$AR
5454 # Extract the first word of "ar", so it can be a program name with args.
5455 set dummy ar; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$ac_ct_AR"; then
5462 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_ac_ct_AR="ar"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5475 done
5476 done
5477 IFS=$as_save_IFS
5481 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5482 if test -n "$ac_ct_AR"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5484 $as_echo "$ac_ct_AR" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5490 if test "x$ac_ct_AR" = x; then
5491 AR="false"
5492 else
5493 case $cross_compiling:$ac_tool_warned in
5494 yes:)
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497 ac_tool_warned=yes ;;
5498 esac
5499 AR=$ac_ct_AR
5501 else
5502 AR="$ac_cv_prog_AR"
5505 test -z "$AR" && AR=ar
5506 test -z "$AR_FLAGS" && AR_FLAGS=cru
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}strip; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_STRIP+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$STRIP"; then
5527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 STRIP=$ac_cv_prog_STRIP
5547 if test -n "$STRIP"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5549 $as_echo "$STRIP" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5557 if test -z "$ac_cv_prog_STRIP"; then
5558 ac_ct_STRIP=$STRIP
5559 # Extract the first word of "strip", so it can be a program name with args.
5560 set dummy strip; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$ac_ct_STRIP"; then
5567 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_ac_ct_STRIP="strip"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5586 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5587 if test -n "$ac_ct_STRIP"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5589 $as_echo "$ac_ct_STRIP" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5595 if test "x$ac_ct_STRIP" = x; then
5596 STRIP=":"
5597 else
5598 case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5603 esac
5604 STRIP=$ac_ct_STRIP
5606 else
5607 STRIP="$ac_cv_prog_STRIP"
5610 test -z "$STRIP" && STRIP=:
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_RANLIB+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$RANLIB"; then
5626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5645 RANLIB=$ac_cv_prog_RANLIB
5646 if test -n "$RANLIB"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5648 $as_echo "$RANLIB" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5656 if test -z "$ac_cv_prog_RANLIB"; then
5657 ac_ct_RANLIB=$RANLIB
5658 # Extract the first word of "ranlib", so it can be a program name with args.
5659 set dummy ranlib; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$ac_ct_RANLIB"; then
5666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_ac_ct_RANLIB="ranlib"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5679 done
5680 done
5681 IFS=$as_save_IFS
5685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5686 if test -n "$ac_ct_RANLIB"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5688 $as_echo "$ac_ct_RANLIB" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5694 if test "x$ac_ct_RANLIB" = x; then
5695 RANLIB=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703 RANLIB=$ac_ct_RANLIB
5705 else
5706 RANLIB="$ac_cv_prog_RANLIB"
5709 test -z "$RANLIB" && RANLIB=:
5716 # Determine commands to create old-style static archives.
5717 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5718 old_postinstall_cmds='chmod 644 $oldlib'
5719 old_postuninstall_cmds=
5721 if test -n "$RANLIB"; then
5722 case $host_os in
5723 openbsd*)
5724 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5727 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5729 esac
5730 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5733 case $host_os in
5734 darwin*)
5735 lock_old_archive_extraction=yes ;;
5737 lock_old_archive_extraction=no ;;
5738 esac
5778 # If no C compiler was specified, use CC.
5779 LTCC=${LTCC-"$CC"}
5781 # If no C compiler flags were specified, use CFLAGS.
5782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5784 # Allow CC to be a program name with arguments.
5785 compiler=$CC
5788 # Check for command to grab the raw symbol name followed by C symbol from nm.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5790 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5791 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5795 # These are sane defaults that work on at least a few old systems.
5796 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5798 # Character class describing NM global symbol codes.
5799 symcode='[BCDEGRST]'
5801 # Regexp to match symbols that can be accessed directly from C.
5802 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5804 # Define system-specific variables.
5805 case $host_os in
5806 aix*)
5807 symcode='[BCDT]'
5809 cygwin* | mingw* | pw32* | cegcc*)
5810 symcode='[ABCDGISTW]'
5812 hpux*)
5813 if test "$host_cpu" = ia64; then
5814 symcode='[ABCDEGRST]'
5817 irix* | nonstopux*)
5818 symcode='[BCDEGRST]'
5820 osf*)
5821 symcode='[BCDEGQRST]'
5823 solaris*)
5824 symcode='[BDRT]'
5826 sco3.2v5*)
5827 symcode='[DT]'
5829 sysv4.2uw2*)
5830 symcode='[DT]'
5832 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5833 symcode='[ABDT]'
5835 sysv4)
5836 symcode='[DFNSTU]'
5838 esac
5840 # If we're using GNU nm, then use its standard symbol codes.
5841 case `$NM -V 2>&1` in
5842 *GNU* | *'with BFD'*)
5843 symcode='[ABCDGIRSTW]' ;;
5844 esac
5846 # Transform an extracted symbol line into a proper C declaration.
5847 # Some systems (esp. on ia64) link data and code symbols differently,
5848 # so use this general approach.
5849 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5851 # Transform an extracted symbol line into symbol name and symbol address
5852 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5853 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'"
5855 # Handle CRLF in mingw tool chain
5856 opt_cr=
5857 case $build_os in
5858 mingw*)
5859 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5861 esac
5863 # Try without a prefix underscore, then with it.
5864 for ac_symprfx in "" "_"; do
5866 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5867 symxfrm="\\1 $ac_symprfx\\2 \\2"
5869 # Write the raw and C identifiers.
5870 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5871 # Fake it for dumpbin and say T for any non-static function
5872 # and D for any global variable.
5873 # Also find C++ and __fastcall symbols from MSVC++,
5874 # which start with @ or ?.
5875 lt_cv_sys_global_symbol_pipe="$AWK '"\
5876 " {last_section=section; section=\$ 3};"\
5877 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5878 " \$ 0!~/External *\|/{next};"\
5879 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5880 " {if(hide[section]) next};"\
5881 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5882 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5883 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5884 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5885 " ' prfx=^$ac_symprfx"
5886 else
5887 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5890 # Check to see that the pipe works correctly.
5891 pipe_works=no
5893 rm -f conftest*
5894 cat > conftest.$ac_ext <<_LT_EOF
5895 #ifdef __cplusplus
5896 extern "C" {
5897 #endif
5898 char nm_test_var;
5899 void nm_test_func(void);
5900 void nm_test_func(void){}
5901 #ifdef __cplusplus
5903 #endif
5904 int main(){nm_test_var='a';nm_test_func();return(0);}
5905 _LT_EOF
5907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5908 (eval $ac_compile) 2>&5
5909 ac_status=$?
5910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5911 test $ac_status = 0; }; then
5912 # Now try to grab the symbols.
5913 nlist=conftest.nm
5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5915 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5916 ac_status=$?
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; } && test -s "$nlist"; then
5919 # Try sorting and uniquifying the output.
5920 if sort "$nlist" | uniq > "$nlist"T; then
5921 mv -f "$nlist"T "$nlist"
5922 else
5923 rm -f "$nlist"T
5926 # Make sure that we snagged all the symbols we need.
5927 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5928 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5929 cat <<_LT_EOF > conftest.$ac_ext
5930 #ifdef __cplusplus
5931 extern "C" {
5932 #endif
5934 _LT_EOF
5935 # Now generate the symbol file.
5936 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5938 cat <<_LT_EOF >> conftest.$ac_ext
5940 /* The mapping between symbol names and symbols. */
5941 const struct {
5942 const char *name;
5943 void *address;
5945 lt__PROGRAM__LTX_preloaded_symbols[] =
5947 { "@PROGRAM@", (void *) 0 },
5948 _LT_EOF
5949 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5950 cat <<\_LT_EOF >> conftest.$ac_ext
5951 {0, (void *) 0}
5954 /* This works around a problem in FreeBSD linker */
5955 #ifdef FREEBSD_WORKAROUND
5956 static const void *lt_preloaded_setup() {
5957 return lt__PROGRAM__LTX_preloaded_symbols;
5959 #endif
5961 #ifdef __cplusplus
5963 #endif
5964 _LT_EOF
5965 # Now try linking the two files.
5966 mv conftest.$ac_objext conftstm.$ac_objext
5967 lt_save_LIBS="$LIBS"
5968 lt_save_CFLAGS="$CFLAGS"
5969 LIBS="conftstm.$ac_objext"
5970 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5972 (eval $ac_link) 2>&5
5973 ac_status=$?
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5976 pipe_works=yes
5978 LIBS="$lt_save_LIBS"
5979 CFLAGS="$lt_save_CFLAGS"
5980 else
5981 echo "cannot find nm_test_func in $nlist" >&5
5983 else
5984 echo "cannot find nm_test_var in $nlist" >&5
5986 else
5987 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5989 else
5990 echo "$progname: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 rm -rf conftest* conftst*
5995 # Do not use the global_symbol_pipe unless it works.
5996 if test "$pipe_works" = yes; then
5997 break
5998 else
5999 lt_cv_sys_global_symbol_pipe=
6001 done
6005 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6006 lt_cv_sys_global_symbol_to_cdecl=
6008 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6010 $as_echo "failed" >&6; }
6011 else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6013 $as_echo "ok" >&6; }
6038 # Check whether --enable-libtool-lock was given.
6039 if test "${enable_libtool_lock+set}" = set; then :
6040 enableval=$enable_libtool_lock;
6043 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6045 # Some flags need to be propagated to the compiler or linker for good
6046 # libtool support.
6047 case $host in
6048 ia64-*-hpux*)
6049 # Find out which ABI we are using.
6050 echo 'int i;' > conftest.$ac_ext
6051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6052 (eval $ac_compile) 2>&5
6053 ac_status=$?
6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }; then
6056 case `/usr/bin/file conftest.$ac_objext` in
6057 *ELF-32*)
6058 HPUX_IA64_MODE="32"
6060 *ELF-64*)
6061 HPUX_IA64_MODE="64"
6063 esac
6065 rm -rf conftest*
6067 *-*-irix6*)
6068 # Find out which ABI we are using.
6069 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6071 (eval $ac_compile) 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; then
6075 if test "$lt_cv_prog_gnu_ld" = yes; then
6076 case `/usr/bin/file conftest.$ac_objext` in
6077 *32-bit*)
6078 LD="${LD-ld} -melf32bsmip"
6080 *N32*)
6081 LD="${LD-ld} -melf32bmipn32"
6083 *64-bit*)
6084 LD="${LD-ld} -melf64bmip"
6086 esac
6087 else
6088 case `/usr/bin/file conftest.$ac_objext` in
6089 *32-bit*)
6090 LD="${LD-ld} -32"
6092 *N32*)
6093 LD="${LD-ld} -n32"
6095 *64-bit*)
6096 LD="${LD-ld} -64"
6098 esac
6101 rm -rf conftest*
6104 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6105 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6106 # Find out which ABI we are using.
6107 echo 'int i;' > conftest.$ac_ext
6108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6109 (eval $ac_compile) 2>&5
6110 ac_status=$?
6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112 test $ac_status = 0; }; then
6113 case `/usr/bin/file conftest.o` in
6114 *32-bit*)
6115 case $host in
6116 x86_64-*kfreebsd*-gnu)
6117 LD="${LD-ld} -m elf_i386_fbsd"
6119 x86_64-*linux*)
6120 case `/usr/bin/file conftest.o` in
6121 *x86-64*)
6122 LD="${LD-ld} -m elf32_x86_64"
6125 LD="${LD-ld} -m elf_i386"
6127 esac
6129 powerpc64le-*linux*)
6130 LD="${LD-ld} -m elf32lppclinux"
6132 powerpc64-*linux*)
6133 LD="${LD-ld} -m elf32ppclinux"
6135 s390x-*linux*)
6136 LD="${LD-ld} -m elf_s390"
6138 sparc64-*linux*)
6139 LD="${LD-ld} -m elf32_sparc"
6141 esac
6143 *64-bit*)
6144 case $host in
6145 x86_64-*kfreebsd*-gnu)
6146 LD="${LD-ld} -m elf_x86_64_fbsd"
6148 x86_64-*linux*)
6149 LD="${LD-ld} -m elf_x86_64"
6151 powerpcle-*linux*)
6152 LD="${LD-ld} -m elf64lppc"
6154 powerpc-*linux*)
6155 LD="${LD-ld} -m elf64ppc"
6157 s390*-*linux*|s390*-*tpf*)
6158 LD="${LD-ld} -m elf64_s390"
6160 sparc*-*linux*)
6161 LD="${LD-ld} -m elf64_sparc"
6163 esac
6165 esac
6167 rm -rf conftest*
6170 *-*-sco3.2v5*)
6171 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6172 SAVE_CFLAGS="$CFLAGS"
6173 CFLAGS="$CFLAGS -belf"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6175 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6176 if ${lt_cv_cc_needs_belf+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 ac_ext=c
6180 ac_cpp='$CPP $CPPFLAGS'
6181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185 if test x$gcc_no_link = xyes; then
6186 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6192 main ()
6196 return 0;
6198 _ACEOF
6199 if ac_fn_c_try_link "$LINENO"; then :
6200 lt_cv_cc_needs_belf=yes
6201 else
6202 lt_cv_cc_needs_belf=no
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 ac_ext=c
6207 ac_cpp='$CPP $CPPFLAGS'
6208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6214 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6215 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6216 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6217 CFLAGS="$SAVE_CFLAGS"
6220 sparc*-*solaris*)
6221 # Find out which ABI we are using.
6222 echo 'int i;' > conftest.$ac_ext
6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6224 (eval $ac_compile) 2>&5
6225 ac_status=$?
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; }; then
6228 case `/usr/bin/file conftest.o` in
6229 *64-bit*)
6230 case $lt_cv_prog_gnu_ld in
6231 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6233 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6234 LD="${LD-ld} -64"
6237 esac
6239 esac
6241 rm -rf conftest*
6243 esac
6245 need_locks="$enable_libtool_lock"
6248 case $host_os in
6249 rhapsody* | darwin*)
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 if test -n "$DSYMUTIL"; then
6259 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6272 done
6273 done
6274 IFS=$as_save_IFS
6278 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6279 if test -n "$DSYMUTIL"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6281 $as_echo "$DSYMUTIL" >&6; }
6282 else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6289 if test -z "$ac_cv_prog_DSYMUTIL"; then
6290 ac_ct_DSYMUTIL=$DSYMUTIL
6291 # Extract the first word of "dsymutil", so it can be a program name with args.
6292 set dummy dsymutil; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$ac_ct_DSYMUTIL"; then
6299 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6312 done
6313 done
6314 IFS=$as_save_IFS
6318 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6319 if test -n "$ac_ct_DSYMUTIL"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6321 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6327 if test "x$ac_ct_DSYMUTIL" = x; then
6328 DSYMUTIL=":"
6329 else
6330 case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336 DSYMUTIL=$ac_ct_DSYMUTIL
6338 else
6339 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6342 if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_NMEDIT+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 if test -n "$NMEDIT"; then
6351 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6364 done
6365 done
6366 IFS=$as_save_IFS
6370 NMEDIT=$ac_cv_prog_NMEDIT
6371 if test -n "$NMEDIT"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6373 $as_echo "$NMEDIT" >&6; }
6374 else
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6381 if test -z "$ac_cv_prog_NMEDIT"; then
6382 ac_ct_NMEDIT=$NMEDIT
6383 # Extract the first word of "nmedit", so it can be a program name with args.
6384 set dummy nmedit; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$ac_ct_NMEDIT"; then
6391 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6404 done
6405 done
6406 IFS=$as_save_IFS
6410 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6411 if test -n "$ac_ct_NMEDIT"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6413 $as_echo "$ac_ct_NMEDIT" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6419 if test "x$ac_ct_NMEDIT" = x; then
6420 NMEDIT=":"
6421 else
6422 case $cross_compiling:$ac_tool_warned in
6423 yes:)
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6427 esac
6428 NMEDIT=$ac_ct_NMEDIT
6430 else
6431 NMEDIT="$ac_cv_prog_NMEDIT"
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_LIPO+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 if test -n "$LIPO"; then
6443 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6456 done
6457 done
6458 IFS=$as_save_IFS
6462 LIPO=$ac_cv_prog_LIPO
6463 if test -n "$LIPO"; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6465 $as_echo "$LIPO" >&6; }
6466 else
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 $as_echo "no" >&6; }
6473 if test -z "$ac_cv_prog_LIPO"; then
6474 ac_ct_LIPO=$LIPO
6475 # Extract the first word of "lipo", so it can be a program name with args.
6476 set dummy lipo; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$ac_ct_LIPO"; then
6483 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_ac_ct_LIPO="lipo"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6503 if test -n "$ac_ct_LIPO"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6505 $as_echo "$ac_ct_LIPO" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6511 if test "x$ac_ct_LIPO" = x; then
6512 LIPO=":"
6513 else
6514 case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6519 esac
6520 LIPO=$ac_ct_LIPO
6522 else
6523 LIPO="$ac_cv_prog_LIPO"
6526 if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}otool; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_prog_OTOOL+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 if test -n "$OTOOL"; then
6535 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6548 done
6549 done
6550 IFS=$as_save_IFS
6554 OTOOL=$ac_cv_prog_OTOOL
6555 if test -n "$OTOOL"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6557 $as_echo "$OTOOL" >&6; }
6558 else
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6565 if test -z "$ac_cv_prog_OTOOL"; then
6566 ac_ct_OTOOL=$OTOOL
6567 # Extract the first word of "otool", so it can be a program name with args.
6568 set dummy otool; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 if test -n "$ac_ct_OTOOL"; then
6575 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_ac_ct_OTOOL="otool"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6588 done
6589 done
6590 IFS=$as_save_IFS
6594 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6595 if test -n "$ac_ct_OTOOL"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6597 $as_echo "$ac_ct_OTOOL" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6603 if test "x$ac_ct_OTOOL" = x; then
6604 OTOOL=":"
6605 else
6606 case $cross_compiling:$ac_tool_warned in
6607 yes:)
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6610 ac_tool_warned=yes ;;
6611 esac
6612 OTOOL=$ac_ct_OTOOL
6614 else
6615 OTOOL="$ac_cv_prog_OTOOL"
6618 if test -n "$ac_tool_prefix"; then
6619 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6620 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_OTOOL64+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$OTOOL64"; then
6627 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6640 done
6641 done
6642 IFS=$as_save_IFS
6646 OTOOL64=$ac_cv_prog_OTOOL64
6647 if test -n "$OTOOL64"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6649 $as_echo "$OTOOL64" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6657 if test -z "$ac_cv_prog_OTOOL64"; then
6658 ac_ct_OTOOL64=$OTOOL64
6659 # Extract the first word of "otool64", so it can be a program name with args.
6660 set dummy otool64; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 if test -n "$ac_ct_OTOOL64"; then
6667 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676 ac_cv_prog_ac_ct_OTOOL64="otool64"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6686 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6687 if test -n "$ac_ct_OTOOL64"; then
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6689 $as_echo "$ac_ct_OTOOL64" >&6; }
6690 else
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6695 if test "x$ac_ct_OTOOL64" = x; then
6696 OTOOL64=":"
6697 else
6698 case $cross_compiling:$ac_tool_warned in
6699 yes:)
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702 ac_tool_warned=yes ;;
6703 esac
6704 OTOOL64=$ac_ct_OTOOL64
6706 else
6707 OTOOL64="$ac_cv_prog_OTOOL64"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6737 $as_echo_n "checking for -single_module linker flag... " >&6; }
6738 if ${lt_cv_apple_cc_single_mod+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 lt_cv_apple_cc_single_mod=no
6742 if test -z "${LT_MULTI_MODULE}"; then
6743 # By default we will add the -single_module flag. You can override
6744 # by either setting the environment variable LT_MULTI_MODULE
6745 # non-empty at configure time, or by adding -multi_module to the
6746 # link flags.
6747 rm -rf libconftest.dylib*
6748 echo "int foo(void){return 1;}" > conftest.c
6749 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6750 -dynamiclib -Wl,-single_module conftest.c" >&5
6751 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6752 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6753 _lt_result=$?
6754 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6755 lt_cv_apple_cc_single_mod=yes
6756 else
6757 cat conftest.err >&5
6759 rm -rf libconftest.dylib*
6760 rm -f conftest.*
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6764 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6766 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6767 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 lt_cv_ld_exported_symbols_list=no
6771 save_LDFLAGS=$LDFLAGS
6772 echo "_main" > conftest.sym
6773 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6774 if test x$gcc_no_link = xyes; then
6775 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6781 main ()
6785 return 0;
6787 _ACEOF
6788 if ac_fn_c_try_link "$LINENO"; then :
6789 lt_cv_ld_exported_symbols_list=yes
6790 else
6791 lt_cv_ld_exported_symbols_list=no
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 LDFLAGS="$save_LDFLAGS"
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6799 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6801 $as_echo_n "checking for -force_load linker flag... " >&6; }
6802 if ${lt_cv_ld_force_load+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 lt_cv_ld_force_load=no
6806 cat > conftest.c << _LT_EOF
6807 int forced_loaded() { return 2;}
6808 _LT_EOF
6809 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6810 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6811 echo "$AR cru libconftest.a conftest.o" >&5
6812 $AR cru libconftest.a conftest.o 2>&5
6813 cat > conftest.c << _LT_EOF
6814 int main() { return 0;}
6815 _LT_EOF
6816 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6817 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6818 _lt_result=$?
6819 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6820 lt_cv_ld_force_load=yes
6821 else
6822 cat conftest.err >&5
6824 rm -f conftest.err libconftest.a conftest conftest.c
6825 rm -rf conftest.dSYM
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6829 $as_echo "$lt_cv_ld_force_load" >&6; }
6830 case $host_os in
6831 rhapsody* | darwin1.[012])
6832 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6833 darwin1.*)
6834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6835 darwin*) # darwin 5.x on
6836 # if running on 10.5 or later, the deployment target defaults
6837 # to the OS version, if on x86, and 10.4, the deployment
6838 # target defaults to 10.4. Don't you love it?
6839 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6840 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6841 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6842 10.[012][,.]*)
6843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6844 10.*)
6845 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6846 esac
6848 esac
6849 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6850 _lt_dar_single_mod='$single_module'
6852 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6853 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6854 else
6855 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6857 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6858 _lt_dsymutil='~$DSYMUTIL $lib || :'
6859 else
6860 _lt_dsymutil=
6863 esac
6865 ac_ext=c
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6871 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6872 # On Suns, sometimes $CPP names a directory.
6873 if test -n "$CPP" && test -d "$CPP"; then
6874 CPP=
6876 if test -z "$CPP"; then
6877 if ${ac_cv_prog_CPP+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 # Double quotes because CPP needs to be expanded
6881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6883 ac_preproc_ok=false
6884 for ac_c_preproc_warn_flag in '' yes
6886 # Use a header file that comes with gcc, so configuring glibc
6887 # with a fresh cross-compiler works.
6888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889 # <limits.h> exists even on freestanding compilers.
6890 # On the NeXT, cc -E runs the code through the compiler's parser,
6891 # not just through cpp. "Syntax error" is here to catch this case.
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #ifdef __STDC__
6895 # include <limits.h>
6896 #else
6897 # include <assert.h>
6898 #endif
6899 Syntax error
6900 _ACEOF
6901 if ac_fn_c_try_cpp "$LINENO"; then :
6903 else
6904 # Broken: fails on valid input.
6905 continue
6907 rm -f conftest.err conftest.i conftest.$ac_ext
6909 # OK, works on sane cases. Now check whether nonexistent headers
6910 # can be detected and how.
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 #include <ac_nonexistent.h>
6914 _ACEOF
6915 if ac_fn_c_try_cpp "$LINENO"; then :
6916 # Broken: success on invalid input.
6917 continue
6918 else
6919 # Passes both tests.
6920 ac_preproc_ok=:
6921 break
6923 rm -f conftest.err conftest.i conftest.$ac_ext
6925 done
6926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6927 rm -f conftest.i conftest.err conftest.$ac_ext
6928 if $ac_preproc_ok; then :
6929 break
6932 done
6933 ac_cv_prog_CPP=$CPP
6936 CPP=$ac_cv_prog_CPP
6937 else
6938 ac_cv_prog_CPP=$CPP
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6941 $as_echo "$CPP" >&6; }
6942 ac_preproc_ok=false
6943 for ac_c_preproc_warn_flag in '' yes
6945 # Use a header file that comes with gcc, so configuring glibc
6946 # with a fresh cross-compiler works.
6947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948 # <limits.h> exists even on freestanding compilers.
6949 # On the NeXT, cc -E runs the code through the compiler's parser,
6950 # not just through cpp. "Syntax error" is here to catch this case.
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 #ifdef __STDC__
6954 # include <limits.h>
6955 #else
6956 # include <assert.h>
6957 #endif
6958 Syntax error
6959 _ACEOF
6960 if ac_fn_c_try_cpp "$LINENO"; then :
6962 else
6963 # Broken: fails on valid input.
6964 continue
6966 rm -f conftest.err conftest.i conftest.$ac_ext
6968 # OK, works on sane cases. Now check whether nonexistent headers
6969 # can be detected and how.
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <ac_nonexistent.h>
6973 _ACEOF
6974 if ac_fn_c_try_cpp "$LINENO"; then :
6975 # Broken: success on invalid input.
6976 continue
6977 else
6978 # Passes both tests.
6979 ac_preproc_ok=:
6980 break
6982 rm -f conftest.err conftest.i conftest.$ac_ext
6984 done
6985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6986 rm -f conftest.i conftest.err conftest.$ac_ext
6987 if $ac_preproc_ok; then :
6989 else
6990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6992 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6993 See \`config.log' for more details" "$LINENO" 5; }
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7004 $as_echo_n "checking for ANSI C header files... " >&6; }
7005 if ${ac_cv_header_stdc+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <stdlib.h>
7011 #include <stdarg.h>
7012 #include <string.h>
7013 #include <float.h>
7016 main ()
7020 return 0;
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"; then :
7024 ac_cv_header_stdc=yes
7025 else
7026 ac_cv_header_stdc=no
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 if test $ac_cv_header_stdc = yes; then
7031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 #include <string.h>
7036 _ACEOF
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "memchr" >/dev/null 2>&1; then :
7040 else
7041 ac_cv_header_stdc=no
7043 rm -f conftest*
7047 if test $ac_cv_header_stdc = yes; then
7048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 #include <stdlib.h>
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "free" >/dev/null 2>&1; then :
7057 else
7058 ac_cv_header_stdc=no
7060 rm -f conftest*
7064 if test $ac_cv_header_stdc = yes; then
7065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7066 if test "$cross_compiling" = yes; then :
7068 else
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 #include <ctype.h>
7072 #include <stdlib.h>
7073 #if ((' ' & 0x0FF) == 0x020)
7074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7076 #else
7077 # define ISLOWER(c) \
7078 (('a' <= (c) && (c) <= 'i') \
7079 || ('j' <= (c) && (c) <= 'r') \
7080 || ('s' <= (c) && (c) <= 'z'))
7081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7082 #endif
7084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7086 main ()
7088 int i;
7089 for (i = 0; i < 256; i++)
7090 if (XOR (islower (i), ISLOWER (i))
7091 || toupper (i) != TOUPPER (i))
7092 return 2;
7093 return 0;
7095 _ACEOF
7096 if ac_fn_c_try_run "$LINENO"; then :
7098 else
7099 ac_cv_header_stdc=no
7101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7102 conftest.$ac_objext conftest.beam conftest.$ac_ext
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7108 $as_echo "$ac_cv_header_stdc" >&6; }
7109 if test $ac_cv_header_stdc = yes; then
7111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7117 inttypes.h stdint.h unistd.h
7118 do :
7119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7123 cat >>confdefs.h <<_ACEOF
7124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7125 _ACEOF
7129 done
7132 for ac_header in dlfcn.h
7133 do :
7134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7137 cat >>confdefs.h <<_ACEOF
7138 #define HAVE_DLFCN_H 1
7139 _ACEOF
7143 done
7149 # Set options
7153 enable_dlopen=no
7156 enable_win32_dll=no
7159 # Check whether --enable-shared was given.
7160 if test "${enable_shared+set}" = set; then :
7161 enableval=$enable_shared; p=${PACKAGE-default}
7162 case $enableval in
7163 yes) enable_shared=yes ;;
7164 no) enable_shared=no ;;
7166 enable_shared=no
7167 # Look at the argument we got. We use all the common list separators.
7168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7169 for pkg in $enableval; do
7170 IFS="$lt_save_ifs"
7171 if test "X$pkg" = "X$p"; then
7172 enable_shared=yes
7174 done
7175 IFS="$lt_save_ifs"
7177 esac
7178 else
7179 enable_shared=yes
7190 # Check whether --enable-static was given.
7191 if test "${enable_static+set}" = set; then :
7192 enableval=$enable_static; p=${PACKAGE-default}
7193 case $enableval in
7194 yes) enable_static=yes ;;
7195 no) enable_static=no ;;
7197 enable_static=no
7198 # Look at the argument we got. We use all the common list separators.
7199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7200 for pkg in $enableval; do
7201 IFS="$lt_save_ifs"
7202 if test "X$pkg" = "X$p"; then
7203 enable_static=yes
7205 done
7206 IFS="$lt_save_ifs"
7208 esac
7209 else
7210 enable_static=yes
7222 # Check whether --with-pic was given.
7223 if test "${with_pic+set}" = set; then :
7224 withval=$with_pic; pic_mode="$withval"
7225 else
7226 pic_mode=default
7230 test -z "$pic_mode" && pic_mode=default
7238 # Check whether --enable-fast-install was given.
7239 if test "${enable_fast_install+set}" = set; then :
7240 enableval=$enable_fast_install; p=${PACKAGE-default}
7241 case $enableval in
7242 yes) enable_fast_install=yes ;;
7243 no) enable_fast_install=no ;;
7245 enable_fast_install=no
7246 # Look at the argument we got. We use all the common list separators.
7247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7248 for pkg in $enableval; do
7249 IFS="$lt_save_ifs"
7250 if test "X$pkg" = "X$p"; then
7251 enable_fast_install=yes
7253 done
7254 IFS="$lt_save_ifs"
7256 esac
7257 else
7258 enable_fast_install=yes
7271 # This can be used to rebuild libtool when needed
7272 LIBTOOL_DEPS="$ltmain"
7274 # Always use our own libtool.
7275 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7302 test -z "$LN_S" && LN_S="ln -s"
7317 if test -n "${ZSH_VERSION+set}" ; then
7318 setopt NO_GLOB_SUBST
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7322 $as_echo_n "checking for objdir... " >&6; }
7323 if ${lt_cv_objdir+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 rm -f .libs 2>/dev/null
7327 mkdir .libs 2>/dev/null
7328 if test -d .libs; then
7329 lt_cv_objdir=.libs
7330 else
7331 # MS-DOS does not allow filenames that begin with a dot.
7332 lt_cv_objdir=_libs
7334 rmdir .libs 2>/dev/null
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7337 $as_echo "$lt_cv_objdir" >&6; }
7338 objdir=$lt_cv_objdir
7344 cat >>confdefs.h <<_ACEOF
7345 #define LT_OBJDIR "$lt_cv_objdir/"
7346 _ACEOF
7351 case $host_os in
7352 aix3*)
7353 # AIX sometimes has problems with the GCC collect2 program. For some
7354 # reason, if we set the COLLECT_NAMES environment variable, the problems
7355 # vanish in a puff of smoke.
7356 if test "X${COLLECT_NAMES+set}" != Xset; then
7357 COLLECT_NAMES=
7358 export COLLECT_NAMES
7361 esac
7363 # Global variables:
7364 ofile=libtool
7365 can_build_shared=yes
7367 # All known linkers require a `.a' archive for static linking (except MSVC,
7368 # which needs '.lib').
7369 libext=a
7371 with_gnu_ld="$lt_cv_prog_gnu_ld"
7373 old_CC="$CC"
7374 old_CFLAGS="$CFLAGS"
7376 # Set sane defaults for various variables
7377 test -z "$CC" && CC=cc
7378 test -z "$LTCC" && LTCC=$CC
7379 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7380 test -z "$LD" && LD=ld
7381 test -z "$ac_objext" && ac_objext=o
7383 for cc_temp in $compiler""; do
7384 case $cc_temp in
7385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7387 \-*) ;;
7388 *) break;;
7389 esac
7390 done
7391 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7394 # Only perform the check for file, if the check method requires it
7395 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7396 case $deplibs_check_method in
7397 file_magic*)
7398 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7400 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7401 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 case $MAGIC_CMD in
7405 [\\/*] | ?:[\\/]*)
7406 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7409 lt_save_MAGIC_CMD="$MAGIC_CMD"
7410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7411 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7412 for ac_dir in $ac_dummy; do
7413 IFS="$lt_save_ifs"
7414 test -z "$ac_dir" && ac_dir=.
7415 if test -f $ac_dir/${ac_tool_prefix}file; then
7416 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7417 if test -n "$file_magic_test_file"; then
7418 case $deplibs_check_method in
7419 "file_magic "*)
7420 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7423 $EGREP "$file_magic_regex" > /dev/null; then
7425 else
7426 cat <<_LT_EOF 1>&2
7428 *** Warning: the command libtool uses to detect shared libraries,
7429 *** $file_magic_cmd, produces output that libtool cannot recognize.
7430 *** The result is that libtool may fail to recognize shared libraries
7431 *** as such. This will affect the creation of libtool libraries that
7432 *** depend on shared libraries, but programs linked with such libtool
7433 *** libraries will work regardless of this problem. Nevertheless, you
7434 *** may want to report the problem to your system manager and/or to
7435 *** bug-libtool@gnu.org
7437 _LT_EOF
7438 fi ;;
7439 esac
7441 break
7443 done
7444 IFS="$lt_save_ifs"
7445 MAGIC_CMD="$lt_save_MAGIC_CMD"
7447 esac
7450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7451 if test -n "$MAGIC_CMD"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7453 $as_echo "$MAGIC_CMD" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7463 if test -z "$lt_cv_path_MAGIC_CMD"; then
7464 if test -n "$ac_tool_prefix"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7466 $as_echo_n "checking for file... " >&6; }
7467 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 case $MAGIC_CMD in
7471 [\\/*] | ?:[\\/]*)
7472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7475 lt_save_MAGIC_CMD="$MAGIC_CMD"
7476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7478 for ac_dir in $ac_dummy; do
7479 IFS="$lt_save_ifs"
7480 test -z "$ac_dir" && ac_dir=.
7481 if test -f $ac_dir/file; then
7482 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7483 if test -n "$file_magic_test_file"; then
7484 case $deplibs_check_method in
7485 "file_magic "*)
7486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7489 $EGREP "$file_magic_regex" > /dev/null; then
7491 else
7492 cat <<_LT_EOF 1>&2
7494 *** Warning: the command libtool uses to detect shared libraries,
7495 *** $file_magic_cmd, produces output that libtool cannot recognize.
7496 *** The result is that libtool may fail to recognize shared libraries
7497 *** as such. This will affect the creation of libtool libraries that
7498 *** depend on shared libraries, but programs linked with such libtool
7499 *** libraries will work regardless of this problem. Nevertheless, you
7500 *** may want to report the problem to your system manager and/or to
7501 *** bug-libtool@gnu.org
7503 _LT_EOF
7504 fi ;;
7505 esac
7507 break
7509 done
7510 IFS="$lt_save_ifs"
7511 MAGIC_CMD="$lt_save_MAGIC_CMD"
7513 esac
7516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7517 if test -n "$MAGIC_CMD"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7519 $as_echo "$MAGIC_CMD" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7526 else
7527 MAGIC_CMD=:
7533 esac
7535 # Use C for the default configuration in the libtool script
7537 lt_save_CC="$CC"
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545 # Source file extension for C test sources.
7546 ac_ext=c
7548 # Object file extension for compiled C test sources.
7549 objext=o
7550 objext=$objext
7552 # Code to be used in simple compile tests
7553 lt_simple_compile_test_code="int some_variable = 0;"
7555 # Code to be used in simple link tests
7556 lt_simple_link_test_code='int main(){return(0);}'
7564 # If no C compiler was specified, use CC.
7565 LTCC=${LTCC-"$CC"}
7567 # If no C compiler flags were specified, use CFLAGS.
7568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7570 # Allow CC to be a program name with arguments.
7571 compiler=$CC
7573 # Save the default compiler, since it gets overwritten when the other
7574 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7575 compiler_DEFAULT=$CC
7577 # save warnings/boilerplate of simple test code
7578 ac_outfile=conftest.$ac_objext
7579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7581 _lt_compiler_boilerplate=`cat conftest.err`
7582 $RM conftest*
7584 ac_outfile=conftest.$ac_objext
7585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7587 _lt_linker_boilerplate=`cat conftest.err`
7588 $RM -r conftest*
7591 ## CAVEAT EMPTOR:
7592 ## There is no encapsulation within the following macros, do not change
7593 ## the running order or otherwise move them around unless you know exactly
7594 ## what you are doing...
7595 if test -n "$compiler"; then
7597 lt_prog_compiler_no_builtin_flag=
7599 if test "$GCC" = yes; then
7600 case $cc_basename in
7601 nvcc*)
7602 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7604 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7605 esac
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7608 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7609 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 lt_cv_prog_compiler_rtti_exceptions=no
7613 ac_outfile=conftest.$ac_objext
7614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7615 lt_compiler_flag="-fno-rtti -fno-exceptions"
7616 # Insert the option either (1) after the last *FLAGS variable, or
7617 # (2) before a word containing "conftest.", or (3) at the end.
7618 # Note that $ac_compile itself does not contain backslashes and begins
7619 # with a dollar sign (not a hyphen), so the echo should work correctly.
7620 # The option is referenced via a variable to avoid confusing sed.
7621 lt_compile=`echo "$ac_compile" | $SED \
7622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7624 -e 's:$: $lt_compiler_flag:'`
7625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7626 (eval "$lt_compile" 2>conftest.err)
7627 ac_status=$?
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 if (exit $ac_status) && test -s "$ac_outfile"; then
7631 # The compiler can only warn and ignore the option if not recognized
7632 # So say no if there are warnings other than the usual output.
7633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7636 lt_cv_prog_compiler_rtti_exceptions=yes
7639 $RM conftest*
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7643 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7645 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7646 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7647 else
7658 lt_prog_compiler_wl=
7659 lt_prog_compiler_pic=
7660 lt_prog_compiler_static=
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7663 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7665 if test "$GCC" = yes; then
7666 lt_prog_compiler_wl='-Wl,'
7667 lt_prog_compiler_static='-static'
7669 case $host_os in
7670 aix*)
7671 # All AIX code is PIC.
7672 if test "$host_cpu" = ia64; then
7673 # AIX 5 now supports IA64 processor
7674 lt_prog_compiler_static='-Bstatic'
7676 lt_prog_compiler_pic='-fPIC'
7679 amigaos*)
7680 case $host_cpu in
7681 powerpc)
7682 # see comment about AmigaOS4 .so support
7683 lt_prog_compiler_pic='-fPIC'
7685 m68k)
7686 # FIXME: we need at least 68020 code to build shared libraries, but
7687 # adding the `-m68020' flag to GCC prevents building anything better,
7688 # like `-m68040'.
7689 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7691 esac
7694 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7695 # PIC is the default for these OSes.
7698 mingw* | cygwin* | pw32* | os2* | cegcc*)
7699 # This hack is so that the source file can tell whether it is being
7700 # built for inclusion in a dll (and should export symbols for example).
7701 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7702 # (--disable-auto-import) libraries
7703 lt_prog_compiler_pic='-DDLL_EXPORT'
7706 darwin* | rhapsody*)
7707 # PIC is the default on this platform
7708 # Common symbols not allowed in MH_DYLIB files
7709 lt_prog_compiler_pic='-fno-common'
7712 haiku*)
7713 # PIC is the default for Haiku.
7714 # The "-static" flag exists, but is broken.
7715 lt_prog_compiler_static=
7718 hpux*)
7719 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7720 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7721 # sets the default TLS model and affects inlining.
7722 case $host_cpu in
7723 hppa*64*)
7724 # +Z the default
7727 lt_prog_compiler_pic='-fPIC'
7729 esac
7732 interix[3-9]*)
7733 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7734 # Instead, we relocate shared libraries at runtime.
7737 msdosdjgpp*)
7738 # Just because we use GCC doesn't mean we suddenly get shared libraries
7739 # on systems that don't support them.
7740 lt_prog_compiler_can_build_shared=no
7741 enable_shared=no
7744 *nto* | *qnx*)
7745 # QNX uses GNU C++, but need to define -shared option too, otherwise
7746 # it will coredump.
7747 lt_prog_compiler_pic='-fPIC -shared'
7750 sysv4*MP*)
7751 if test -d /usr/nec; then
7752 lt_prog_compiler_pic=-Kconform_pic
7757 lt_prog_compiler_pic='-fPIC'
7759 esac
7761 case $cc_basename in
7762 nvcc*) # Cuda Compiler Driver 2.2
7763 lt_prog_compiler_wl='-Xlinker '
7764 lt_prog_compiler_pic='-Xcompiler -fPIC'
7766 esac
7767 else
7768 # PORTME Check for flag to pass linker flags through the system compiler.
7769 case $host_os in
7770 aix*)
7771 lt_prog_compiler_wl='-Wl,'
7772 if test "$host_cpu" = ia64; then
7773 # AIX 5 now supports IA64 processor
7774 lt_prog_compiler_static='-Bstatic'
7775 else
7776 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780 mingw* | cygwin* | pw32* | os2* | cegcc*)
7781 # This hack is so that the source file can tell whether it is being
7782 # built for inclusion in a dll (and should export symbols for example).
7783 lt_prog_compiler_pic='-DDLL_EXPORT'
7786 hpux9* | hpux10* | hpux11*)
7787 lt_prog_compiler_wl='-Wl,'
7788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789 # not for PA HP-UX.
7790 case $host_cpu in
7791 hppa*64*|ia64*)
7792 # +Z the default
7795 lt_prog_compiler_pic='+Z'
7797 esac
7798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7799 lt_prog_compiler_static='${wl}-a ${wl}archive'
7802 irix5* | irix6* | nonstopux*)
7803 lt_prog_compiler_wl='-Wl,'
7804 # PIC (with -KPIC) is the default.
7805 lt_prog_compiler_static='-non_shared'
7808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7809 case $cc_basename in
7810 # old Intel for x86_64 which still supported -KPIC.
7811 ecc*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-static'
7816 # icc used to be incompatible with GCC.
7817 # ICC 10 doesn't accept -KPIC any more.
7818 icc* | ifort*)
7819 lt_prog_compiler_wl='-Wl,'
7820 lt_prog_compiler_pic='-fPIC'
7821 lt_prog_compiler_static='-static'
7823 # Lahey Fortran 8.1.
7824 lf95*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='--shared'
7827 lt_prog_compiler_static='--static'
7829 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7830 # Portland Group compilers (*not* the Pentium gcc compiler,
7831 # which looks to be a dead project)
7832 lt_prog_compiler_wl='-Wl,'
7833 lt_prog_compiler_pic='-fpic'
7834 lt_prog_compiler_static='-Bstatic'
7836 ccc*)
7837 lt_prog_compiler_wl='-Wl,'
7838 # All Alpha code is PIC.
7839 lt_prog_compiler_static='-non_shared'
7841 xl* | bgxl* | bgf* | mpixl*)
7842 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7843 lt_prog_compiler_wl='-Wl,'
7844 lt_prog_compiler_pic='-qpic'
7845 lt_prog_compiler_static='-qstaticlink'
7848 case `$CC -V 2>&1 | sed 5q` in
7849 *Sun\ F* | *Sun*Fortran*)
7850 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7851 lt_prog_compiler_pic='-KPIC'
7852 lt_prog_compiler_static='-Bstatic'
7853 lt_prog_compiler_wl=''
7855 *Sun\ C*)
7856 # Sun C 5.9
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-Bstatic'
7859 lt_prog_compiler_wl='-Wl,'
7861 esac
7863 esac
7866 newsos6)
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7871 *nto* | *qnx*)
7872 # QNX uses GNU C++, but need to define -shared option too, otherwise
7873 # it will coredump.
7874 lt_prog_compiler_pic='-fPIC -shared'
7877 osf3* | osf4* | osf5*)
7878 lt_prog_compiler_wl='-Wl,'
7879 # All OSF/1 code is PIC.
7880 lt_prog_compiler_static='-non_shared'
7883 rdos*)
7884 lt_prog_compiler_static='-non_shared'
7887 solaris*)
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7890 case $cc_basename in
7891 f77* | f90* | f95*)
7892 lt_prog_compiler_wl='-Qoption ld ';;
7894 lt_prog_compiler_wl='-Wl,';;
7895 esac
7898 sunos4*)
7899 lt_prog_compiler_wl='-Qoption ld '
7900 lt_prog_compiler_pic='-PIC'
7901 lt_prog_compiler_static='-Bstatic'
7904 sysv4 | sysv4.2uw2* | sysv4.3*)
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_pic='-KPIC'
7907 lt_prog_compiler_static='-Bstatic'
7910 sysv4*MP*)
7911 if test -d /usr/nec ;then
7912 lt_prog_compiler_pic='-Kconform_pic'
7913 lt_prog_compiler_static='-Bstatic'
7917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-Bstatic'
7923 unicos*)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_can_build_shared=no
7928 uts4*)
7929 lt_prog_compiler_pic='-pic'
7930 lt_prog_compiler_static='-Bstatic'
7934 lt_prog_compiler_can_build_shared=no
7936 esac
7939 case $host_os in
7940 # For platforms which do not support PIC, -DPIC is meaningless:
7941 *djgpp*)
7942 lt_prog_compiler_pic=
7945 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7947 esac
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7949 $as_echo "$lt_prog_compiler_pic" >&6; }
7957 # Check to make sure the PIC flag actually works.
7959 if test -n "$lt_prog_compiler_pic"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7961 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7962 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 lt_cv_prog_compiler_pic_works=no
7966 ac_outfile=conftest.$ac_objext
7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7968 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7969 # Insert the option either (1) after the last *FLAGS variable, or
7970 # (2) before a word containing "conftest.", or (3) at the end.
7971 # Note that $ac_compile itself does not contain backslashes and begins
7972 # with a dollar sign (not a hyphen), so the echo should work correctly.
7973 # The option is referenced via a variable to avoid confusing sed.
7974 lt_compile=`echo "$ac_compile" | $SED \
7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977 -e 's:$: $lt_compiler_flag:'`
7978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7979 (eval "$lt_compile" 2>conftest.err)
7980 ac_status=$?
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 if (exit $ac_status) && test -s "$ac_outfile"; then
7984 # The compiler can only warn and ignore the option if not recognized
7985 # So say no if there are warnings other than the usual output.
7986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7989 lt_cv_prog_compiler_pic_works=yes
7992 $RM conftest*
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7996 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7998 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7999 case $lt_prog_compiler_pic in
8000 "" | " "*) ;;
8001 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8002 esac
8003 else
8004 lt_prog_compiler_pic=
8005 lt_prog_compiler_can_build_shared=no
8016 # Check to make sure the static flag actually works.
8018 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8020 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8021 if ${lt_cv_prog_compiler_static_works+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 lt_cv_prog_compiler_static_works=no
8025 save_LDFLAGS="$LDFLAGS"
8026 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8027 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8028 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8029 # The linker can only warn and ignore the option if not recognized
8030 # So say no if there are warnings
8031 if test -s conftest.err; then
8032 # Append any errors to the config.log.
8033 cat conftest.err 1>&5
8034 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8036 if diff conftest.exp conftest.er2 >/dev/null; then
8037 lt_cv_prog_compiler_static_works=yes
8039 else
8040 lt_cv_prog_compiler_static_works=yes
8043 $RM -r conftest*
8044 LDFLAGS="$save_LDFLAGS"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8048 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8050 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8052 else
8053 lt_prog_compiler_static=
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8064 if ${lt_cv_prog_compiler_c_o+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_c_o=no
8068 $RM -r conftest 2>/dev/null
8069 mkdir conftest
8070 cd conftest
8071 mkdir out
8072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8074 lt_compiler_flag="-o out/conftest2.$ac_objext"
8075 # Insert the option either (1) after the last *FLAGS variable, or
8076 # (2) before a word containing "conftest.", or (3) at the end.
8077 # Note that $ac_compile itself does not contain backslashes and begins
8078 # with a dollar sign (not a hyphen), so the echo should work correctly.
8079 lt_compile=`echo "$ac_compile" | $SED \
8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082 -e 's:$: $lt_compiler_flag:'`
8083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8084 (eval "$lt_compile" 2>out/conftest.err)
8085 ac_status=$?
8086 cat out/conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8089 then
8090 # The compiler can only warn and ignore the option if not recognized
8091 # So say no if there are warnings
8092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8095 lt_cv_prog_compiler_c_o=yes
8098 chmod u+w . 2>&5
8099 $RM conftest*
8100 # SGI C++ compiler will create directory out/ii_files/ for
8101 # template instantiation
8102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8103 $RM out/* && rmdir out
8104 cd ..
8105 $RM -r conftest
8106 $RM conftest*
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8118 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8119 if ${lt_cv_prog_compiler_c_o+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 lt_cv_prog_compiler_c_o=no
8123 $RM -r conftest 2>/dev/null
8124 mkdir conftest
8125 cd conftest
8126 mkdir out
8127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8129 lt_compiler_flag="-o out/conftest2.$ac_objext"
8130 # Insert the option either (1) after the last *FLAGS variable, or
8131 # (2) before a word containing "conftest.", or (3) at the end.
8132 # Note that $ac_compile itself does not contain backslashes and begins
8133 # with a dollar sign (not a hyphen), so the echo should work correctly.
8134 lt_compile=`echo "$ac_compile" | $SED \
8135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8137 -e 's:$: $lt_compiler_flag:'`
8138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8139 (eval "$lt_compile" 2>out/conftest.err)
8140 ac_status=$?
8141 cat out/conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8144 then
8145 # The compiler can only warn and ignore the option if not recognized
8146 # So say no if there are warnings
8147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8150 lt_cv_prog_compiler_c_o=yes
8153 chmod u+w . 2>&5
8154 $RM conftest*
8155 # SGI C++ compiler will create directory out/ii_files/ for
8156 # template instantiation
8157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8158 $RM out/* && rmdir out
8159 cd ..
8160 $RM -r conftest
8161 $RM conftest*
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8165 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8170 hard_links="nottested"
8171 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8172 # do not overwrite the value of need_locks provided by the user
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8174 $as_echo_n "checking if we can lock with hard links... " >&6; }
8175 hard_links=yes
8176 $RM conftest*
8177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8178 touch conftest.a
8179 ln conftest.a conftest.b 2>&5 || hard_links=no
8180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8182 $as_echo "$hard_links" >&6; }
8183 if test "$hard_links" = no; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8185 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8186 need_locks=warn
8188 else
8189 need_locks=no
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8198 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8200 runpath_var=
8201 allow_undefined_flag=
8202 always_export_symbols=no
8203 archive_cmds=
8204 archive_expsym_cmds=
8205 compiler_needs_object=no
8206 enable_shared_with_static_runtimes=no
8207 export_dynamic_flag_spec=
8208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8209 hardcode_automatic=no
8210 hardcode_direct=no
8211 hardcode_direct_absolute=no
8212 hardcode_libdir_flag_spec=
8213 hardcode_libdir_flag_spec_ld=
8214 hardcode_libdir_separator=
8215 hardcode_minus_L=no
8216 hardcode_shlibpath_var=unsupported
8217 inherit_rpath=no
8218 link_all_deplibs=unknown
8219 module_cmds=
8220 module_expsym_cmds=
8221 old_archive_from_new_cmds=
8222 old_archive_from_expsyms_cmds=
8223 thread_safe_flag_spec=
8224 whole_archive_flag_spec=
8225 # include_expsyms should be a list of space-separated symbols to be *always*
8226 # included in the symbol list
8227 include_expsyms=
8228 # exclude_expsyms can be an extended regexp of symbols to exclude
8229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8231 # as well as any symbol that contains `d'.
8232 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8234 # platforms (ab)use it in PIC code, but their linkers get confused if
8235 # the symbol is explicitly referenced. Since portable code cannot
8236 # rely on this symbol name, it's probably fine to never include it in
8237 # preloaded symbol tables.
8238 # Exclude shared library initialization/finalization symbols.
8239 extract_expsyms_cmds=
8241 case $host_os in
8242 cygwin* | mingw* | pw32* | cegcc*)
8243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8244 # When not using gcc, we currently assume that we are using
8245 # Microsoft Visual C++.
8246 if test "$GCC" != yes; then
8247 with_gnu_ld=no
8250 interix*)
8251 # we just hope/assume this is gcc and not c89 (= MSVC++)
8252 with_gnu_ld=yes
8254 openbsd*)
8255 with_gnu_ld=no
8257 esac
8259 ld_shlibs=yes
8261 # On some targets, GNU ld is compatible enough with the native linker
8262 # that we're better off using the native interface for both.
8263 lt_use_gnu_ld_interface=no
8264 if test "$with_gnu_ld" = yes; then
8265 case $host_os in
8266 aix*)
8267 # The AIX port of GNU ld has always aspired to compatibility
8268 # with the native linker. However, as the warning in the GNU ld
8269 # block says, versions before 2.19.5* couldn't really create working
8270 # shared libraries, regardless of the interface used.
8271 case `$LD -v 2>&1` in
8272 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8273 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8274 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8276 lt_use_gnu_ld_interface=yes
8278 esac
8281 lt_use_gnu_ld_interface=yes
8283 esac
8286 if test "$lt_use_gnu_ld_interface" = yes; then
8287 # If archive_cmds runs LD, not CC, wlarc should be empty
8288 wlarc='${wl}'
8290 # Set some defaults for GNU ld with shared library support. These
8291 # are reset later if shared libraries are not supported. Putting them
8292 # here allows them to be overridden if necessary.
8293 runpath_var=LD_RUN_PATH
8294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8295 export_dynamic_flag_spec='${wl}--export-dynamic'
8296 # ancient GNU ld didn't support --whole-archive et. al.
8297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8299 else
8300 whole_archive_flag_spec=
8302 supports_anon_versioning=no
8303 case `$LD -v 2>&1` in
8304 *GNU\ gold*) supports_anon_versioning=yes ;;
8305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8308 *\ 2.11.*) ;; # other 2.11 versions
8309 *) supports_anon_versioning=yes ;;
8310 esac
8312 # See if GNU ld supports shared libraries.
8313 case $host_os in
8314 aix[3-9]*)
8315 # On AIX/PPC, the GNU linker is very broken
8316 if test "$host_cpu" != ia64; then
8317 ld_shlibs=no
8318 cat <<_LT_EOF 1>&2
8320 *** Warning: the GNU linker, at least up to release 2.19, is reported
8321 *** to be unable to reliably create shared libraries on AIX.
8322 *** Therefore, libtool is disabling shared libraries support. If you
8323 *** really care for shared libraries, you may want to install binutils
8324 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8325 *** You will then need to restart the configuration process.
8327 _LT_EOF
8331 amigaos*)
8332 case $host_cpu in
8333 powerpc)
8334 # see comment about AmigaOS4 .so support
8335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8336 archive_expsym_cmds=''
8338 m68k)
8339 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)'
8340 hardcode_libdir_flag_spec='-L$libdir'
8341 hardcode_minus_L=yes
8343 esac
8346 beos*)
8347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8348 allow_undefined_flag=unsupported
8349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8350 # support --undefined. This deserves some investigation. FIXME
8351 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 else
8353 ld_shlibs=no
8357 cygwin* | mingw* | pw32* | cegcc*)
8358 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8359 # as there is no search path for DLLs.
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 export_dynamic_flag_spec='${wl}--export-all-symbols'
8362 allow_undefined_flag=unsupported
8363 always_export_symbols=no
8364 enable_shared_with_static_runtimes=yes
8365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8367 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8369 # If the export-symbols file already is a .def file (1st line
8370 # is EXPORTS), use it as is; otherwise, prepend...
8371 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8372 cp $export_symbols $output_objdir/$soname.def;
8373 else
8374 echo EXPORTS > $output_objdir/$soname.def;
8375 cat $export_symbols >> $output_objdir/$soname.def;
8377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8378 else
8379 ld_shlibs=no
8383 haiku*)
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385 link_all_deplibs=yes
8388 interix[3-9]*)
8389 hardcode_direct=no
8390 hardcode_shlibpath_var=no
8391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8392 export_dynamic_flag_spec='${wl}-E'
8393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8394 # Instead, shared libraries are loaded at an image base (0x10000000 by
8395 # default) and relocated if they conflict, which is a slow very memory
8396 # consuming and fragmenting process. To avoid this, we pick a random,
8397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8400 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'
8403 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8404 tmp_diet=no
8405 if test "$host_os" = linux-dietlibc; then
8406 case $cc_basename in
8407 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8408 esac
8410 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8411 && test "$tmp_diet" = no
8412 then
8413 tmp_addflag=' $pic_flag'
8414 tmp_sharedflag='-shared'
8415 case $cc_basename,$host_cpu in
8416 pgcc*) # Portland Group C compiler
8417 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'
8418 tmp_addflag=' $pic_flag'
8420 pgf77* | pgf90* | pgf95* | pgfortran*)
8421 # Portland Group f77 and f90 compilers
8422 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'
8423 tmp_addflag=' $pic_flag -Mnomain' ;;
8424 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8425 tmp_addflag=' -i_dynamic' ;;
8426 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8427 tmp_addflag=' -i_dynamic -nofor_main' ;;
8428 ifc* | ifort*) # Intel Fortran compiler
8429 tmp_addflag=' -nofor_main' ;;
8430 lf95*) # Lahey Fortran 8.1
8431 whole_archive_flag_spec=
8432 tmp_sharedflag='--shared' ;;
8433 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8434 tmp_sharedflag='-qmkshrobj'
8435 tmp_addflag= ;;
8436 nvcc*) # Cuda Compiler Driver 2.2
8437 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'
8438 compiler_needs_object=yes
8440 esac
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ C*) # Sun C 5.9
8443 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'
8444 compiler_needs_object=yes
8445 tmp_sharedflag='-G' ;;
8446 *Sun\ F*) # Sun Fortran 8.3
8447 tmp_sharedflag='-G' ;;
8448 esac
8449 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 if test "x$supports_anon_versioning" = xyes; then
8452 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8454 echo "local: *; };" >> $output_objdir/$libname.ver~
8455 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8458 case $cc_basename in
8459 xlf* | bgf* | bgxlf* | mpixlf*)
8460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8461 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8462 hardcode_libdir_flag_spec=
8463 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8464 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8465 if test "x$supports_anon_versioning" = xyes; then
8466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8468 echo "local: *; };" >> $output_objdir/$libname.ver~
8469 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8472 esac
8473 else
8474 ld_shlibs=no
8478 netbsd*)
8479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8481 wlarc=
8482 else
8483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8488 solaris*)
8489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8490 ld_shlibs=no
8491 cat <<_LT_EOF 1>&2
8493 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8494 *** create shared libraries on Solaris systems. Therefore, libtool
8495 *** is disabling shared libraries support. We urge you to upgrade GNU
8496 *** binutils to release 2.9.1 or newer. Another option is to modify
8497 *** your PATH or compiler configuration so that the native linker is
8498 *** used, and then restart.
8500 _LT_EOF
8501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8504 else
8505 ld_shlibs=no
8509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8510 case `$LD -v 2>&1` in
8511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8512 ld_shlibs=no
8513 cat <<_LT_EOF 1>&2
8515 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8516 *** reliably create shared libraries on SCO systems. Therefore, libtool
8517 *** is disabling shared libraries support. We urge you to upgrade GNU
8518 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8519 *** your PATH or compiler configuration so that the native linker is
8520 *** used, and then restart.
8522 _LT_EOF
8525 # For security reasons, it is highly recommended that you always
8526 # use absolute paths for naming shared libraries, and exclude the
8527 # DT_RUNPATH tag from executables and libraries. But doing so
8528 # requires that you compile everything twice, which is a pain.
8529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533 else
8534 ld_shlibs=no
8537 esac
8540 sunos4*)
8541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8542 wlarc=
8543 hardcode_direct=yes
8544 hardcode_shlibpath_var=no
8548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8551 else
8552 ld_shlibs=no
8555 esac
8557 if test "$ld_shlibs" = no; then
8558 runpath_var=
8559 hardcode_libdir_flag_spec=
8560 export_dynamic_flag_spec=
8561 whole_archive_flag_spec=
8563 else
8564 # PORTME fill in a description of your system's linker (not GNU ld)
8565 case $host_os in
8566 aix3*)
8567 allow_undefined_flag=unsupported
8568 always_export_symbols=yes
8569 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'
8570 # Note: this linker hardcodes the directories in LIBPATH if there
8571 # are no directories specified by -L.
8572 hardcode_minus_L=yes
8573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8574 # Neither direct hardcoding nor static linking is supported with a
8575 # broken collect2.
8576 hardcode_direct=unsupported
8580 aix[4-9]*)
8581 if test "$host_cpu" = ia64; then
8582 # On IA64, the linker does run time linking by default, so we don't
8583 # have to do anything special.
8584 aix_use_runtimelinking=no
8585 exp_sym_flag='-Bexport'
8586 no_entry_flag=""
8587 else
8588 # If we're using GNU nm, then we don't want the "-C" option.
8589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8590 # Also, AIX nm treats weak defined symbols like other global
8591 # defined symbols, whereas GNU nm marks them as "W".
8592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8593 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'
8594 else
8595 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'
8597 aix_use_runtimelinking=no
8599 # Test if we are trying to use run time linking or normal
8600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8601 # need to do runtime linking.
8602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8603 for ld_flag in $LDFLAGS; do
8604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8605 aix_use_runtimelinking=yes
8606 break
8608 done
8610 esac
8612 exp_sym_flag='-bexport'
8613 no_entry_flag='-bnoentry'
8616 # When large executables or shared objects are built, AIX ld can
8617 # have problems creating the table of contents. If linking a library
8618 # or program results in "error TOC overflow" add -mminimal-toc to
8619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8622 archive_cmds=''
8623 hardcode_direct=yes
8624 hardcode_direct_absolute=yes
8625 hardcode_libdir_separator=':'
8626 link_all_deplibs=yes
8627 file_list_spec='${wl}-f,'
8629 if test "$GCC" = yes; then
8630 case $host_os in aix4.[012]|aix4.[012].*)
8631 # We only want to do this on AIX 4.2 and lower, the check
8632 # below for broken collect2 doesn't work under 4.3+
8633 collect2name=`${CC} -print-prog-name=collect2`
8634 if test -f "$collect2name" &&
8635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8636 then
8637 # We have reworked collect2
8639 else
8640 # We have old collect2
8641 hardcode_direct=unsupported
8642 # It fails to find uninstalled libraries when the uninstalled
8643 # path is not listed in the libpath. Setting hardcode_minus_L
8644 # to unsupported forces relinking
8645 hardcode_minus_L=yes
8646 hardcode_libdir_flag_spec='-L$libdir'
8647 hardcode_libdir_separator=
8650 esac
8651 shared_flag='-shared'
8652 if test "$aix_use_runtimelinking" = yes; then
8653 shared_flag="$shared_flag "'${wl}-G'
8655 else
8656 # not using gcc
8657 if test "$host_cpu" = ia64; then
8658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8659 # chokes on -Wl,-G. The following line is correct:
8660 shared_flag='-G'
8661 else
8662 if test "$aix_use_runtimelinking" = yes; then
8663 shared_flag='${wl}-G'
8664 else
8665 shared_flag='${wl}-bM:SRE'
8670 export_dynamic_flag_spec='${wl}-bexpall'
8671 # It seems that -bexpall does not export symbols beginning with
8672 # underscore (_), so it is better to generate a list of symbols to export.
8673 always_export_symbols=yes
8674 if test "$aix_use_runtimelinking" = yes; then
8675 # Warning - without using the other runtime loading flags (-brtl),
8676 # -berok will link without error, but may produce a broken library.
8677 allow_undefined_flag='-berok'
8678 # Determine the default libpath from the value encoded in an
8679 # empty executable.
8680 if test x$gcc_no_link = xyes; then
8681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8687 main ()
8691 return 0;
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"; then :
8696 lt_aix_libpath_sed='
8697 /Import File Strings/,/^$/ {
8698 /^0/ {
8699 s/^0 *\(.*\)$/\1/
8703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8704 # Check for a 64-bit object if we didn't find anything.
8705 if test -z "$aix_libpath"; then
8706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8709 rm -f core conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8714 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"
8715 else
8716 if test "$host_cpu" = ia64; then
8717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8718 allow_undefined_flag="-z nodefs"
8719 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"
8720 else
8721 # Determine the default libpath from the value encoded in an
8722 # empty executable.
8723 if test x$gcc_no_link = xyes; then
8724 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8730 main ()
8734 return 0;
8736 _ACEOF
8737 if ac_fn_c_try_link "$LINENO"; then :
8739 lt_aix_libpath_sed='
8740 /Import File Strings/,/^$/ {
8741 /^0/ {
8742 s/^0 *\(.*\)$/\1/
8746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8747 # Check for a 64-bit object if we didn't find anything.
8748 if test -z "$aix_libpath"; then
8749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8752 rm -f core conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8757 # Warning - without using the other run time loading flags,
8758 # -berok will link without error, but may produce a broken library.
8759 no_undefined_flag=' ${wl}-bernotok'
8760 allow_undefined_flag=' ${wl}-berok'
8761 if test "$with_gnu_ld" = yes; then
8762 # We only use this code for GNU lds that support --whole-archive.
8763 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8764 else
8765 # Exported symbols can be pulled into shared objects from archives
8766 whole_archive_flag_spec='$convenience'
8768 archive_cmds_need_lc=yes
8769 # This is similar to how AIX traditionally builds its shared libraries.
8770 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'
8775 amigaos*)
8776 case $host_cpu in
8777 powerpc)
8778 # see comment about AmigaOS4 .so support
8779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds=''
8782 m68k)
8783 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)'
8784 hardcode_libdir_flag_spec='-L$libdir'
8785 hardcode_minus_L=yes
8787 esac
8790 bsdi[45]*)
8791 export_dynamic_flag_spec=-rdynamic
8794 cygwin* | mingw* | pw32* | cegcc*)
8795 # When not using gcc, we currently assume that we are using
8796 # Microsoft Visual C++.
8797 # hardcode_libdir_flag_spec is actually meaningless, as there is
8798 # no search path for DLLs.
8799 hardcode_libdir_flag_spec=' '
8800 allow_undefined_flag=unsupported
8801 # Tell ltmain to make .lib files, not .a files.
8802 libext=lib
8803 # Tell ltmain to make .dll files, not .so files.
8804 shrext_cmds=".dll"
8805 # FIXME: Setting linknames here is a bad hack.
8806 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8807 # The linker will automatically build a .lib file if we build a DLL.
8808 old_archive_from_new_cmds='true'
8809 # FIXME: Should let the user specify the lib program.
8810 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8811 fix_srcfile_path='`cygpath -w "$srcfile"`'
8812 enable_shared_with_static_runtimes=yes
8815 darwin* | rhapsody*)
8818 archive_cmds_need_lc=no
8819 hardcode_direct=no
8820 hardcode_automatic=yes
8821 hardcode_shlibpath_var=unsupported
8822 if test "$lt_cv_ld_force_load" = "yes"; then
8823 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\"`'
8824 else
8825 whole_archive_flag_spec=''
8827 link_all_deplibs=yes
8828 allow_undefined_flag="$_lt_dar_allow_undefined"
8829 case $cc_basename in
8830 ifort*) _lt_dar_can_shared=yes ;;
8831 *) _lt_dar_can_shared=$GCC ;;
8832 esac
8833 if test "$_lt_dar_can_shared" = "yes"; then
8834 output_verbose_link_cmd=func_echo_all
8835 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8836 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8837 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}"
8838 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}"
8840 else
8841 ld_shlibs=no
8846 dgux*)
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_shlibpath_var=no
8852 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8853 # support. Future versions do this automatically, but an explicit c++rt0.o
8854 # does not break anything, and helps significantly (at the cost of a little
8855 # extra space).
8856 freebsd2.2*)
8857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8858 hardcode_libdir_flag_spec='-R$libdir'
8859 hardcode_direct=yes
8860 hardcode_shlibpath_var=no
8863 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8864 freebsd2.*)
8865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8866 hardcode_direct=yes
8867 hardcode_minus_L=yes
8868 hardcode_shlibpath_var=no
8871 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8872 freebsd* | dragonfly*)
8873 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8874 hardcode_libdir_flag_spec='-R$libdir'
8875 hardcode_direct=yes
8876 hardcode_shlibpath_var=no
8879 hpux9*)
8880 if test "$GCC" = yes; then
8881 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'
8882 else
8883 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'
8885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8886 hardcode_libdir_separator=:
8887 hardcode_direct=yes
8889 # hardcode_minus_L: Not really in the search PATH,
8890 # but as the default location of the library.
8891 hardcode_minus_L=yes
8892 export_dynamic_flag_spec='${wl}-E'
8895 hpux10*)
8896 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8897 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8898 else
8899 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8901 if test "$with_gnu_ld" = no; then
8902 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8903 hardcode_libdir_flag_spec_ld='+b $libdir'
8904 hardcode_libdir_separator=:
8905 hardcode_direct=yes
8906 hardcode_direct_absolute=yes
8907 export_dynamic_flag_spec='${wl}-E'
8908 # hardcode_minus_L: Not really in the search PATH,
8909 # but as the default location of the library.
8910 hardcode_minus_L=yes
8914 hpux11*)
8915 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8916 case $host_cpu in
8917 hppa*64*)
8918 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8920 ia64*)
8921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8924 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8926 esac
8927 else
8928 case $host_cpu in
8929 hppa*64*)
8930 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932 ia64*)
8933 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8937 # Older versions of the 11.00 compiler do not understand -b yet
8938 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8940 $as_echo_n "checking if $CC understands -b... " >&6; }
8941 if ${lt_cv_prog_compiler__b+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler__b=no
8945 save_LDFLAGS="$LDFLAGS"
8946 LDFLAGS="$LDFLAGS -b"
8947 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8949 # The linker can only warn and ignore the option if not recognized
8950 # So say no if there are warnings
8951 if test -s conftest.err; then
8952 # Append any errors to the config.log.
8953 cat conftest.err 1>&5
8954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8956 if diff conftest.exp conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler__b=yes
8959 else
8960 lt_cv_prog_compiler__b=yes
8963 $RM -r conftest*
8964 LDFLAGS="$save_LDFLAGS"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8968 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8970 if test x"$lt_cv_prog_compiler__b" = xyes; then
8971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8972 else
8973 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8977 esac
8979 if test "$with_gnu_ld" = no; then
8980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981 hardcode_libdir_separator=:
8983 case $host_cpu in
8984 hppa*64*|ia64*)
8985 hardcode_direct=no
8986 hardcode_shlibpath_var=no
8989 hardcode_direct=yes
8990 hardcode_direct_absolute=yes
8991 export_dynamic_flag_spec='${wl}-E'
8993 # hardcode_minus_L: Not really in the search PATH,
8994 # but as the default location of the library.
8995 hardcode_minus_L=yes
8997 esac
9001 irix5* | irix6* | nonstopux*)
9002 if test "$GCC" = yes; then
9003 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'
9004 # Try to use the -exported_symbol ld option, if it does not
9005 # work, assume that -exports_file does not work either and
9006 # implicitly export all symbols.
9007 save_LDFLAGS="$LDFLAGS"
9008 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9009 if test x$gcc_no_link = xyes; then
9010 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 int foo(void) {}
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 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'
9020 rm -f core conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 LDFLAGS="$save_LDFLAGS"
9023 else
9024 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'
9025 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'
9027 archive_cmds_need_lc='no'
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 hardcode_libdir_separator=:
9030 inherit_rpath=yes
9031 link_all_deplibs=yes
9034 netbsd*)
9035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9037 else
9038 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9040 hardcode_libdir_flag_spec='-R$libdir'
9041 hardcode_direct=yes
9042 hardcode_shlibpath_var=no
9045 newsos6)
9046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047 hardcode_direct=yes
9048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9049 hardcode_libdir_separator=:
9050 hardcode_shlibpath_var=no
9053 *nto* | *qnx*)
9056 openbsd*)
9057 if test -f /usr/libexec/ld.so; then
9058 hardcode_direct=yes
9059 hardcode_shlibpath_var=no
9060 hardcode_direct_absolute=yes
9061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9065 export_dynamic_flag_spec='${wl}-E'
9066 else
9067 case $host_os in
9068 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9070 hardcode_libdir_flag_spec='-R$libdir'
9073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9076 esac
9078 else
9079 ld_shlibs=no
9083 os2*)
9084 hardcode_libdir_flag_spec='-L$libdir'
9085 hardcode_minus_L=yes
9086 allow_undefined_flag=unsupported
9087 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'
9088 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9091 osf3*)
9092 if test "$GCC" = yes; then
9093 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9094 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'
9095 else
9096 allow_undefined_flag=' -expect_unresolved \*'
9097 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'
9099 archive_cmds_need_lc='no'
9100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101 hardcode_libdir_separator=:
9104 osf4* | osf5*) # as osf3* with the addition of -msym flag
9105 if test "$GCC" = yes; then
9106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9107 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'
9108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9109 else
9110 allow_undefined_flag=' -expect_unresolved \*'
9111 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'
9112 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~
9113 $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'
9115 # Both c and cxx compiler support -rpath directly
9116 hardcode_libdir_flag_spec='-rpath $libdir'
9118 archive_cmds_need_lc='no'
9119 hardcode_libdir_separator=:
9122 solaris*)
9123 no_undefined_flag=' -z defs'
9124 if test "$GCC" = yes; then
9125 wlarc='${wl}'
9126 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9128 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9129 else
9130 case `$CC -V 2>&1` in
9131 *"Compilers 5.0"*)
9132 wlarc=''
9133 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9138 wlarc='${wl}'
9139 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9141 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9143 esac
9145 hardcode_libdir_flag_spec='-R$libdir'
9146 hardcode_shlibpath_var=no
9147 case $host_os in
9148 solaris2.[0-5] | solaris2.[0-5].*) ;;
9150 # The compiler driver will combine and reorder linker options,
9151 # but understands `-z linker_flag'. GCC discards it without `$wl',
9152 # but is careful enough not to reorder.
9153 # Supported since Solaris 2.6 (maybe 2.5.1?)
9154 if test "$GCC" = yes; then
9155 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9156 else
9157 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9160 esac
9161 link_all_deplibs=yes
9164 sunos4*)
9165 if test "x$host_vendor" = xsequent; then
9166 # Use $CC to link under sequent, because it throws in some extra .o
9167 # files that make .init and .fini sections work.
9168 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9169 else
9170 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_direct=yes
9174 hardcode_minus_L=yes
9175 hardcode_shlibpath_var=no
9178 sysv4)
9179 case $host_vendor in
9180 sni)
9181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9182 hardcode_direct=yes # is this really true???
9184 siemens)
9185 ## LD is ld it makes a PLAMLIB
9186 ## CC just makes a GrossModule.
9187 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9188 reload_cmds='$CC -r -o $output$reload_objs'
9189 hardcode_direct=no
9191 motorola)
9192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9193 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9195 esac
9196 runpath_var='LD_RUN_PATH'
9197 hardcode_shlibpath_var=no
9200 sysv4.3*)
9201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9202 hardcode_shlibpath_var=no
9203 export_dynamic_flag_spec='-Bexport'
9206 sysv4*MP*)
9207 if test -d /usr/nec; then
9208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_shlibpath_var=no
9210 runpath_var=LD_RUN_PATH
9211 hardcode_runpath_var=yes
9212 ld_shlibs=yes
9216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9217 no_undefined_flag='${wl}-z,text'
9218 archive_cmds_need_lc=no
9219 hardcode_shlibpath_var=no
9220 runpath_var='LD_RUN_PATH'
9222 if test "$GCC" = yes; then
9223 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9224 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9225 else
9226 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9227 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9231 sysv5* | sco3.2v5* | sco5v6*)
9232 # Note: We can NOT use -z defs as we might desire, because we do not
9233 # link with -lc, and that would cause any symbols used from libc to
9234 # always be unresolved, which means just about no library would
9235 # ever link correctly. If we're not using GNU ld we use -z text
9236 # though, which does catch some bad symbols but isn't as heavy-handed
9237 # as -z defs.
9238 no_undefined_flag='${wl}-z,text'
9239 allow_undefined_flag='${wl}-z,nodefs'
9240 archive_cmds_need_lc=no
9241 hardcode_shlibpath_var=no
9242 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9243 hardcode_libdir_separator=':'
9244 link_all_deplibs=yes
9245 export_dynamic_flag_spec='${wl}-Bexport'
9246 runpath_var='LD_RUN_PATH'
9248 if test "$GCC" = yes; then
9249 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9251 else
9252 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9257 uts4*)
9258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 hardcode_shlibpath_var=no
9264 ld_shlibs=no
9266 esac
9268 if test x$host_vendor = xsni; then
9269 case $host in
9270 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9271 export_dynamic_flag_spec='${wl}-Blargedynsym'
9273 esac
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9278 $as_echo "$ld_shlibs" >&6; }
9279 test "$ld_shlibs" = no && can_build_shared=no
9281 with_gnu_ld=$with_gnu_ld
9298 # Do we need to explicitly link libc?
9300 case "x$archive_cmds_need_lc" in
9301 x|xyes)
9302 # Assume -lc should be added
9303 archive_cmds_need_lc=yes
9305 if test "$enable_shared" = yes && test "$GCC" = yes; then
9306 case $archive_cmds in
9307 *'~'*)
9308 # FIXME: we may have to deal with multi-command sequences.
9310 '$CC '*)
9311 # Test whether the compiler implicitly links with -lc since on some
9312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9313 # to ld, don't add -lc before -lgcc.
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9315 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9316 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 $RM conftest*
9320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9323 (eval $ac_compile) 2>&5
9324 ac_status=$?
9325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9326 test $ac_status = 0; } 2>conftest.err; then
9327 soname=conftest
9328 lib=conftest
9329 libobjs=conftest.$ac_objext
9330 deplibs=
9331 wl=$lt_prog_compiler_wl
9332 pic_flag=$lt_prog_compiler_pic
9333 compiler_flags=-v
9334 linker_flags=-v
9335 verstring=
9336 output_objdir=.
9337 libname=conftest
9338 lt_save_allow_undefined_flag=$allow_undefined_flag
9339 allow_undefined_flag=
9340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9341 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9342 ac_status=$?
9343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9344 test $ac_status = 0; }
9345 then
9346 lt_cv_archive_cmds_need_lc=no
9347 else
9348 lt_cv_archive_cmds_need_lc=yes
9350 allow_undefined_flag=$lt_save_allow_undefined_flag
9351 else
9352 cat conftest.err 1>&5
9354 $RM conftest*
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9358 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9359 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9361 esac
9364 esac
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9523 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9525 if test "$GCC" = yes; then
9526 case $host_os in
9527 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9528 *) lt_awk_arg="/^libraries:/" ;;
9529 esac
9530 case $host_os in
9531 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9532 *) lt_sed_strip_eq="s,=/,/,g" ;;
9533 esac
9534 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9535 case $lt_search_path_spec in
9536 *\;*)
9537 # if the path contains ";" then we assume it to be the separator
9538 # otherwise default to the standard path separator (i.e. ":") - it is
9539 # assumed that no part of a normal pathname contains ";" but that should
9540 # okay in the real world where ";" in dirpaths is itself problematic.
9541 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9544 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9546 esac
9547 # Ok, now we have the path, separated by spaces, we can step through it
9548 # and add multilib dir if necessary.
9549 lt_tmp_lt_search_path_spec=
9550 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9551 for lt_sys_path in $lt_search_path_spec; do
9552 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9553 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9554 else
9555 test -d "$lt_sys_path" && \
9556 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9558 done
9559 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9560 BEGIN {RS=" "; FS="/|\n";} {
9561 lt_foo="";
9562 lt_count=0;
9563 for (lt_i = NF; lt_i > 0; lt_i--) {
9564 if ($lt_i != "" && $lt_i != ".") {
9565 if ($lt_i == "..") {
9566 lt_count++;
9567 } else {
9568 if (lt_count == 0) {
9569 lt_foo="/" $lt_i lt_foo;
9570 } else {
9571 lt_count--;
9576 if (lt_foo != "") { lt_freq[lt_foo]++; }
9577 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9579 # AWK program above erroneously prepends '/' to C:/dos/paths
9580 # for these hosts.
9581 case $host_os in
9582 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9583 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9584 esac
9585 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9586 else
9587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9589 library_names_spec=
9590 libname_spec='lib$name'
9591 soname_spec=
9592 shrext_cmds=".so"
9593 postinstall_cmds=
9594 postuninstall_cmds=
9595 finish_cmds=
9596 finish_eval=
9597 shlibpath_var=
9598 shlibpath_overrides_runpath=unknown
9599 version_type=none
9600 dynamic_linker="$host_os ld.so"
9601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9602 need_lib_prefix=unknown
9603 hardcode_into_libs=no
9605 # when you set need_version to no, make sure it does not cause -set_version
9606 # flags to be left without arguments
9607 need_version=unknown
9609 case $host_os in
9610 aix3*)
9611 version_type=linux
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9613 shlibpath_var=LIBPATH
9615 # AIX 3 has no versioning support, so we append a major version to the name.
9616 soname_spec='${libname}${release}${shared_ext}$major'
9619 aix[4-9]*)
9620 version_type=linux
9621 need_lib_prefix=no
9622 need_version=no
9623 hardcode_into_libs=yes
9624 if test "$host_cpu" = ia64; then
9625 # AIX 5 supports IA64
9626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 else
9629 # With GCC up to 2.95.x, collect2 would create an import file
9630 # for dependence libraries. The import file would start with
9631 # the line `#! .'. This would cause the generated library to
9632 # depend on `.', always an invalid library. This was fixed in
9633 # development snapshots of GCC prior to 3.0.
9634 case $host_os in
9635 aix4 | aix4.[01] | aix4.[01].*)
9636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9637 echo ' yes '
9638 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9640 else
9641 can_build_shared=no
9644 esac
9645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9646 # soname into executable. Probably we can add versioning support to
9647 # collect2, so additional links can be useful in future.
9648 if test "$aix_use_runtimelinking" = yes; then
9649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9650 # instead of lib<name>.a to let people know that these are not
9651 # typical AIX shared libraries.
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 else
9654 # We preserve .a as extension for shared libraries through AIX4.2
9655 # and later when we are not doing run time linking.
9656 library_names_spec='${libname}${release}.a $libname.a'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9659 shlibpath_var=LIBPATH
9663 amigaos*)
9664 case $host_cpu in
9665 powerpc)
9666 # Since July 2007 AmigaOS4 officially supports .so libraries.
9667 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 m68k)
9671 library_names_spec='$libname.ixlibrary $libname.a'
9672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9673 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'
9675 esac
9678 beos*)
9679 library_names_spec='${libname}${shared_ext}'
9680 dynamic_linker="$host_os ld.so"
9681 shlibpath_var=LIBRARY_PATH
9684 bsdi[45]*)
9685 version_type=linux
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9693 # the default ld.so.conf also contains /usr/contrib/lib and
9694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9695 # libtool to hard-code these into programs
9698 cygwin* | mingw* | pw32* | cegcc*)
9699 version_type=windows
9700 shrext_cmds=".dll"
9701 need_version=no
9702 need_lib_prefix=no
9704 case $GCC,$host_os in
9705 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9706 library_names_spec='$libname.dll.a'
9707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9708 postinstall_cmds='base_file=`basename \${file}`~
9709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9710 dldir=$destdir/`dirname \$dlpath`~
9711 test -d \$dldir || mkdir -p \$dldir~
9712 $install_prog $dir/$dlname \$dldir/$dlname~
9713 chmod a+x \$dldir/$dlname~
9714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9718 dlpath=$dir/\$dldll~
9719 $RM \$dlpath'
9720 shlibpath_overrides_runpath=yes
9722 case $host_os in
9723 cygwin*)
9724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9729 mingw* | cegcc*)
9730 # MinGW DLLs use traditional 'lib' prefix
9731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9733 pw32*)
9734 # pw32 DLLs use 'pw' prefix rather than 'lib'
9735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9737 esac
9741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9743 esac
9744 dynamic_linker='Win32 ld.exe'
9745 # FIXME: first we should search . and the directory the executable is in
9746 shlibpath_var=PATH
9749 darwin* | rhapsody*)
9750 dynamic_linker="$host_os dyld"
9751 version_type=darwin
9752 need_lib_prefix=no
9753 need_version=no
9754 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9755 soname_spec='${libname}${release}${major}$shared_ext'
9756 shlibpath_overrides_runpath=yes
9757 shlibpath_var=DYLD_LIBRARY_PATH
9758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9764 dgux*)
9765 version_type=linux
9766 need_lib_prefix=no
9767 need_version=no
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 shlibpath_var=LD_LIBRARY_PATH
9773 freebsd* | dragonfly*)
9774 # DragonFly does not have aout. When/if they implement a new
9775 # versioning mechanism, adjust this.
9776 if test -x /usr/bin/objformat; then
9777 objformat=`/usr/bin/objformat`
9778 else
9779 case $host_os in
9780 freebsd[23].*) objformat=aout ;;
9781 *) objformat=elf ;;
9782 esac
9784 version_type=freebsd-$objformat
9785 case $version_type in
9786 freebsd-elf*)
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9788 need_version=no
9789 need_lib_prefix=no
9791 freebsd-*)
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9793 need_version=yes
9795 esac
9796 shlibpath_var=LD_LIBRARY_PATH
9797 case $host_os in
9798 freebsd2.*)
9799 shlibpath_overrides_runpath=yes
9801 freebsd3.[01]* | freebsdelf3.[01]*)
9802 shlibpath_overrides_runpath=yes
9803 hardcode_into_libs=yes
9805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9807 shlibpath_overrides_runpath=no
9808 hardcode_into_libs=yes
9810 *) # from 4.6 on, and DragonFly
9811 shlibpath_overrides_runpath=yes
9812 hardcode_into_libs=yes
9814 esac
9817 gnu*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 hardcode_into_libs=yes
9827 haiku*)
9828 version_type=linux
9829 need_lib_prefix=no
9830 need_version=no
9831 dynamic_linker="$host_os runtime_loader"
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LIBRARY_PATH
9835 shlibpath_overrides_runpath=yes
9836 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9837 hardcode_into_libs=yes
9840 hpux9* | hpux10* | hpux11*)
9841 # Give a soname corresponding to the major version so that dld.sl refuses to
9842 # link against other versions.
9843 version_type=sunos
9844 need_lib_prefix=no
9845 need_version=no
9846 case $host_cpu in
9847 ia64*)
9848 shrext_cmds='.so'
9849 hardcode_into_libs=yes
9850 dynamic_linker="$host_os dld.so"
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 if test "X$HPUX_IA64_MODE" = X32; then
9856 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9857 else
9858 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9862 hppa*64*)
9863 shrext_cmds='.sl'
9864 hardcode_into_libs=yes
9865 dynamic_linker="$host_os dld.sl"
9866 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9874 shrext_cmds='.sl'
9875 dynamic_linker="$host_os dld.sl"
9876 shlibpath_var=SHLIB_PATH
9877 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9881 esac
9882 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9883 postinstall_cmds='chmod 555 $lib'
9884 # or fails outright, so override atomically:
9885 install_override_mode=555
9888 interix[3-9]*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9900 irix5* | irix6* | nonstopux*)
9901 case $host_os in
9902 nonstopux*) version_type=nonstopux ;;
9904 if test "$lt_cv_prog_gnu_ld" = yes; then
9905 version_type=linux
9906 else
9907 version_type=irix
9908 fi ;;
9909 esac
9910 need_lib_prefix=no
9911 need_version=no
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9914 case $host_os in
9915 irix5* | nonstopux*)
9916 libsuff= shlibsuff=
9919 case $LD in # libtool.m4 will add one of these switches to LD
9920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9921 libsuff= shlibsuff= libmagic=32-bit;;
9922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9923 libsuff=32 shlibsuff=N32 libmagic=N32;;
9924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9926 *) libsuff= shlibsuff= libmagic=never-match;;
9927 esac
9929 esac
9930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9931 shlibpath_overrides_runpath=no
9932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9934 hardcode_into_libs=yes
9937 # No shared lib support for Linux oldld, aout, or coff.
9938 linux*oldld* | linux*aout* | linux*coff*)
9939 dynamic_linker=no
9942 # This must be Linux ELF.
9944 # uclinux* changes (here and below) have been submitted to the libtool
9945 # project, but have not yet been accepted: they are GCC-local changes
9946 # for the time being. (See
9947 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
9948 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9949 version_type=linux
9950 need_lib_prefix=no
9951 need_version=no
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=no
9958 # Some binutils ld are patched to set DT_RUNPATH
9959 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 lt_cv_shlibpath_overrides_runpath=no
9963 save_LDFLAGS=$LDFLAGS
9964 save_libdir=$libdir
9965 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9966 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9967 if test x$gcc_no_link = xyes; then
9968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9974 main ()
9978 return 0;
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9983 lt_cv_shlibpath_overrides_runpath=yes
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LDFLAGS=$save_LDFLAGS
9989 libdir=$save_libdir
9993 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9995 # This implies no fast_install, which is unacceptable.
9996 # Some rework will be needed to allow for fast_install
9997 # before this can be enabled.
9998 hardcode_into_libs=yes
10000 # Append ld.so.conf contents to the search path
10001 if test -f /etc/ld.so.conf; then
10002 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' ' '`
10003 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10006 # We used to test for /lib/ld.so.1 and disable shared libraries on
10007 # powerpc, because MkLinux only supported shared libraries with the
10008 # GNU dynamic linker. Since this was broken with cross compilers,
10009 # most powerpc-linux boxes support dynamic linking these days and
10010 # people can always --disable-shared, the test was removed, and we
10011 # assume the GNU/Linux dynamic linker is in use.
10012 dynamic_linker='GNU/Linux ld.so'
10015 netbsd*)
10016 version_type=sunos
10017 need_lib_prefix=no
10018 need_version=no
10019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10022 dynamic_linker='NetBSD (a.out) ld.so'
10023 else
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 dynamic_linker='NetBSD ld.elf_so'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes
10030 hardcode_into_libs=yes
10033 newsos6)
10034 version_type=linux
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 shlibpath_overrides_runpath=yes
10040 *nto* | *qnx*)
10041 version_type=qnx
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 dynamic_linker='ldqnx.so'
10052 openbsd*)
10053 version_type=sunos
10054 sys_lib_dlsearch_path_spec="/usr/lib"
10055 need_lib_prefix=no
10056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10057 case $host_os in
10058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10059 *) need_version=no ;;
10060 esac
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10065 case $host_os in
10066 openbsd2.[89] | openbsd2.[89].*)
10067 shlibpath_overrides_runpath=no
10070 shlibpath_overrides_runpath=yes
10072 esac
10073 else
10074 shlibpath_overrides_runpath=yes
10078 os2*)
10079 libname_spec='$name'
10080 shrext_cmds=".dll"
10081 need_lib_prefix=no
10082 library_names_spec='$libname${shared_ext} $libname.a'
10083 dynamic_linker='OS/2 ld.exe'
10084 shlibpath_var=LIBPATH
10087 osf3* | osf4* | osf5*)
10088 version_type=osf
10089 need_lib_prefix=no
10090 need_version=no
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10098 rdos*)
10099 dynamic_linker=no
10102 solaris*)
10103 version_type=linux
10104 need_lib_prefix=no
10105 need_version=no
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=yes
10110 hardcode_into_libs=yes
10111 # ldd complains unless libraries are executable
10112 postinstall_cmds='chmod +x $lib'
10115 sunos4*)
10116 version_type=sunos
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10121 if test "$with_gnu_ld" = yes; then
10122 need_lib_prefix=no
10124 need_version=yes
10127 sysv4 | sysv4.3*)
10128 version_type=linux
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 case $host_vendor in
10133 sni)
10134 shlibpath_overrides_runpath=no
10135 need_lib_prefix=no
10136 runpath_var=LD_RUN_PATH
10138 siemens)
10139 need_lib_prefix=no
10141 motorola)
10142 need_lib_prefix=no
10143 need_version=no
10144 shlibpath_overrides_runpath=no
10145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10147 esac
10150 sysv4*MP*)
10151 if test -d /usr/nec ;then
10152 version_type=linux
10153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10154 soname_spec='$libname${shared_ext}.$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10160 version_type=freebsd-elf
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
10168 if test "$with_gnu_ld" = yes; then
10169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10170 else
10171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10172 case $host_os in
10173 sco3.2v5*)
10174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10176 esac
10178 sys_lib_dlsearch_path_spec='/usr/lib'
10181 tpf*)
10182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10183 version_type=linux
10184 need_lib_prefix=no
10185 need_version=no
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=no
10189 hardcode_into_libs=yes
10192 uts4*)
10193 version_type=linux
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10200 dynamic_linker=no
10202 esac
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10204 $as_echo "$dynamic_linker" >&6; }
10205 test "$dynamic_linker" = no && can_build_shared=no
10207 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10208 if test "$GCC" = yes; then
10209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10212 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10215 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10216 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10311 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10312 hardcode_action=
10313 if test -n "$hardcode_libdir_flag_spec" ||
10314 test -n "$runpath_var" ||
10315 test "X$hardcode_automatic" = "Xyes" ; then
10317 # We can hardcode non-existent directories.
10318 if test "$hardcode_direct" != no &&
10319 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10320 # have to relink, otherwise we might link with an installed library
10321 # when we should be linking with a yet-to-be-installed one
10322 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10323 test "$hardcode_minus_L" != no; then
10324 # Linking always hardcodes the temporary library directory.
10325 hardcode_action=relink
10326 else
10327 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10328 hardcode_action=immediate
10330 else
10331 # We cannot hardcode anything, or else we can only hardcode existing
10332 # directories.
10333 hardcode_action=unsupported
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10336 $as_echo "$hardcode_action" >&6; }
10338 if test "$hardcode_action" = relink ||
10339 test "$inherit_rpath" = yes; then
10340 # Fast installation is not supported
10341 enable_fast_install=no
10342 elif test "$shlibpath_overrides_runpath" = yes ||
10343 test "$enable_shared" = no; then
10344 # Fast installation is not necessary
10345 enable_fast_install=needless
10353 if test "x$enable_dlopen" != xyes; then
10354 enable_dlopen=unknown
10355 enable_dlopen_self=unknown
10356 enable_dlopen_self_static=unknown
10357 else
10358 lt_cv_dlopen=no
10359 lt_cv_dlopen_libs=
10361 case $host_os in
10362 beos*)
10363 lt_cv_dlopen="load_add_on"
10364 lt_cv_dlopen_libs=
10365 lt_cv_dlopen_self=yes
10368 mingw* | pw32* | cegcc*)
10369 lt_cv_dlopen="LoadLibrary"
10370 lt_cv_dlopen_libs=
10373 cygwin*)
10374 lt_cv_dlopen="dlopen"
10375 lt_cv_dlopen_libs=
10378 darwin*)
10379 # if libdl is installed we need to link against it
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10382 if ${ac_cv_lib_dl_dlopen+:} false; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 ac_check_lib_save_LIBS=$LIBS
10386 LIBS="-ldl $LIBS"
10387 if test x$gcc_no_link = xyes; then
10388 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10393 /* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10396 #ifdef __cplusplus
10397 extern "C"
10398 #endif
10399 char dlopen ();
10401 main ()
10403 return dlopen ();
10405 return 0;
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 ac_cv_lib_dl_dlopen=yes
10410 else
10411 ac_cv_lib_dl_dlopen=no
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10421 else
10423 lt_cv_dlopen="dyld"
10424 lt_cv_dlopen_libs=
10425 lt_cv_dlopen_self=yes
10432 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10433 if test "x$ac_cv_func_shl_load" = xyes; then :
10434 lt_cv_dlopen="shl_load"
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10437 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10438 if ${ac_cv_lib_dld_shl_load+:} false; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 ac_check_lib_save_LIBS=$LIBS
10442 LIBS="-ldld $LIBS"
10443 if test x$gcc_no_link = xyes; then
10444 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char shl_load ();
10457 main ()
10459 return shl_load ();
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 ac_cv_lib_dld_shl_load=yes
10466 else
10467 ac_cv_lib_dld_shl_load=no
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10474 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10475 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10476 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10477 else
10478 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10479 if test "x$ac_cv_func_dlopen" = xyes; then :
10480 lt_cv_dlopen="dlopen"
10481 else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10483 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10484 if ${ac_cv_lib_dl_dlopen+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-ldl $LIBS"
10489 if test x$gcc_no_link = xyes; then
10490 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char dlopen ();
10503 main ()
10505 return dlopen ();
10507 return 0;
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_lib_dl_dlopen=yes
10512 else
10513 ac_cv_lib_dl_dlopen=no
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10520 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10521 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10525 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10526 if ${ac_cv_lib_svld_dlopen+:} false; then :
10527 $as_echo_n "(cached) " >&6
10528 else
10529 ac_check_lib_save_LIBS=$LIBS
10530 LIBS="-lsvld $LIBS"
10531 if test x$gcc_no_link = xyes; then
10532 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10537 /* Override any GCC internal prototype to avoid an error.
10538 Use char because int might match the return type of a GCC
10539 builtin and then its argument prototype would still apply. */
10540 #ifdef __cplusplus
10541 extern "C"
10542 #endif
10543 char dlopen ();
10545 main ()
10547 return dlopen ();
10549 return 0;
10551 _ACEOF
10552 if ac_fn_c_try_link "$LINENO"; then :
10553 ac_cv_lib_svld_dlopen=yes
10554 else
10555 ac_cv_lib_svld_dlopen=no
10557 rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10562 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10563 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10567 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10568 if ${ac_cv_lib_dld_dld_link+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-ldld $LIBS"
10573 if test x$gcc_no_link = xyes; then
10574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char dld_link ();
10587 main ()
10589 return dld_link ();
10591 return 0;
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 ac_cv_lib_dld_dld_link=yes
10596 else
10597 ac_cv_lib_dld_dld_link=no
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10604 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10605 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10606 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10625 esac
10627 if test "x$lt_cv_dlopen" != xno; then
10628 enable_dlopen=yes
10629 else
10630 enable_dlopen=no
10633 case $lt_cv_dlopen in
10634 dlopen)
10635 save_CPPFLAGS="$CPPFLAGS"
10636 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10638 save_LDFLAGS="$LDFLAGS"
10639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10641 save_LIBS="$LIBS"
10642 LIBS="$lt_cv_dlopen_libs $LIBS"
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10645 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10646 if ${lt_cv_dlopen_self+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 if test "$cross_compiling" = yes; then :
10650 lt_cv_dlopen_self=cross
10651 else
10652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10653 lt_status=$lt_dlunknown
10654 cat > conftest.$ac_ext <<_LT_EOF
10655 #line 10655 "configure"
10656 #include "confdefs.h"
10658 #if HAVE_DLFCN_H
10659 #include <dlfcn.h>
10660 #endif
10662 #include <stdio.h>
10664 #ifdef RTLD_GLOBAL
10665 # define LT_DLGLOBAL RTLD_GLOBAL
10666 #else
10667 # ifdef DL_GLOBAL
10668 # define LT_DLGLOBAL DL_GLOBAL
10669 # else
10670 # define LT_DLGLOBAL 0
10671 # endif
10672 #endif
10674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10675 find out it does not work in some platform. */
10676 #ifndef LT_DLLAZY_OR_NOW
10677 # ifdef RTLD_LAZY
10678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10679 # else
10680 # ifdef DL_LAZY
10681 # define LT_DLLAZY_OR_NOW DL_LAZY
10682 # else
10683 # ifdef RTLD_NOW
10684 # define LT_DLLAZY_OR_NOW RTLD_NOW
10685 # else
10686 # ifdef DL_NOW
10687 # define LT_DLLAZY_OR_NOW DL_NOW
10688 # else
10689 # define LT_DLLAZY_OR_NOW 0
10690 # endif
10691 # endif
10692 # endif
10693 # endif
10694 #endif
10696 /* When -fvisbility=hidden is used, assume the code has been annotated
10697 correspondingly for the symbols needed. */
10698 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10699 void fnord () __attribute__((visibility("default")));
10700 #endif
10702 void fnord () { int i=42; }
10703 int main ()
10705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10706 int status = $lt_dlunknown;
10708 if (self)
10710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10711 else
10713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10714 else puts (dlerror ());
10716 /* dlclose (self); */
10718 else
10719 puts (dlerror ());
10721 return status;
10723 _LT_EOF
10724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10725 (eval $ac_link) 2>&5
10726 ac_status=$?
10727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10729 (./conftest; exit; ) >&5 2>/dev/null
10730 lt_status=$?
10731 case x$lt_status in
10732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10734 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10735 esac
10736 else :
10737 # compilation failed
10738 lt_cv_dlopen_self=no
10741 rm -fr conftest*
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10746 $as_echo "$lt_cv_dlopen_self" >&6; }
10748 if test "x$lt_cv_dlopen_self" = xyes; then
10749 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10752 if ${lt_cv_dlopen_self_static+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 if test "$cross_compiling" = yes; then :
10756 lt_cv_dlopen_self_static=cross
10757 else
10758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10759 lt_status=$lt_dlunknown
10760 cat > conftest.$ac_ext <<_LT_EOF
10761 #line 10761 "configure"
10762 #include "confdefs.h"
10764 #if HAVE_DLFCN_H
10765 #include <dlfcn.h>
10766 #endif
10768 #include <stdio.h>
10770 #ifdef RTLD_GLOBAL
10771 # define LT_DLGLOBAL RTLD_GLOBAL
10772 #else
10773 # ifdef DL_GLOBAL
10774 # define LT_DLGLOBAL DL_GLOBAL
10775 # else
10776 # define LT_DLGLOBAL 0
10777 # endif
10778 #endif
10780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10781 find out it does not work in some platform. */
10782 #ifndef LT_DLLAZY_OR_NOW
10783 # ifdef RTLD_LAZY
10784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10785 # else
10786 # ifdef DL_LAZY
10787 # define LT_DLLAZY_OR_NOW DL_LAZY
10788 # else
10789 # ifdef RTLD_NOW
10790 # define LT_DLLAZY_OR_NOW RTLD_NOW
10791 # else
10792 # ifdef DL_NOW
10793 # define LT_DLLAZY_OR_NOW DL_NOW
10794 # else
10795 # define LT_DLLAZY_OR_NOW 0
10796 # endif
10797 # endif
10798 # endif
10799 # endif
10800 #endif
10802 /* When -fvisbility=hidden is used, assume the code has been annotated
10803 correspondingly for the symbols needed. */
10804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10805 void fnord () __attribute__((visibility("default")));
10806 #endif
10808 void fnord () { int i=42; }
10809 int main ()
10811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10812 int status = $lt_dlunknown;
10814 if (self)
10816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10817 else
10819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10820 else puts (dlerror ());
10822 /* dlclose (self); */
10824 else
10825 puts (dlerror ());
10827 return status;
10829 _LT_EOF
10830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10831 (eval $ac_link) 2>&5
10832 ac_status=$?
10833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10834 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10835 (./conftest; exit; ) >&5 2>/dev/null
10836 lt_status=$?
10837 case x$lt_status in
10838 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10839 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10840 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10841 esac
10842 else :
10843 # compilation failed
10844 lt_cv_dlopen_self_static=no
10847 rm -fr conftest*
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10852 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10855 CPPFLAGS="$save_CPPFLAGS"
10856 LDFLAGS="$save_LDFLAGS"
10857 LIBS="$save_LIBS"
10859 esac
10861 case $lt_cv_dlopen_self in
10862 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10863 *) enable_dlopen_self=unknown ;;
10864 esac
10866 case $lt_cv_dlopen_self_static in
10867 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10868 *) enable_dlopen_self_static=unknown ;;
10869 esac
10888 striplib=
10889 old_striplib=
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10891 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10892 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10893 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10894 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10896 $as_echo "yes" >&6; }
10897 else
10898 # FIXME - insert some real tests, host_os isn't really good enough
10899 case $host_os in
10900 darwin*)
10901 if test -n "$STRIP" ; then
10902 striplib="$STRIP -x"
10903 old_striplib="$STRIP -S"
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10905 $as_echo "yes" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10915 esac
10929 # Report which library types will actually be built
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10931 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10933 $as_echo "$can_build_shared" >&6; }
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10936 $as_echo_n "checking whether to build shared libraries... " >&6; }
10937 test "$can_build_shared" = "no" && enable_shared=no
10939 # On AIX, shared libraries and static libraries use the same namespace, and
10940 # are all built from PIC.
10941 case $host_os in
10942 aix3*)
10943 test "$enable_shared" = yes && enable_static=no
10944 if test -n "$RANLIB"; then
10945 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10946 postinstall_cmds='$RANLIB $lib'
10950 aix[4-9]*)
10951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10952 test "$enable_shared" = yes && enable_static=no
10955 esac
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10957 $as_echo "$enable_shared" >&6; }
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10960 $as_echo_n "checking whether to build static libraries... " >&6; }
10961 # Make sure either enable_shared or enable_static is yes.
10962 test "$enable_shared" = yes || enable_static=yes
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10964 $as_echo "$enable_static" >&6; }
10970 ac_ext=c
10971 ac_cpp='$CPP $CPPFLAGS'
10972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976 CC="$lt_save_CC"
10990 ac_config_commands="$ac_config_commands libtool"
10995 # Only expand once:
10999 # Find CPP now so that any conditional tests below won't do it and
11000 # thereby make the resulting definitions conditional.
11001 ac_ext=c
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11007 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11008 # On Suns, sometimes $CPP names a directory.
11009 if test -n "$CPP" && test -d "$CPP"; then
11010 CPP=
11012 if test -z "$CPP"; then
11013 if ${ac_cv_prog_CPP+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 # Double quotes because CPP needs to be expanded
11017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11019 ac_preproc_ok=false
11020 for ac_c_preproc_warn_flag in '' yes
11022 # Use a header file that comes with gcc, so configuring glibc
11023 # with a fresh cross-compiler works.
11024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11025 # <limits.h> exists even on freestanding compilers.
11026 # On the NeXT, cc -E runs the code through the compiler's parser,
11027 # not just through cpp. "Syntax error" is here to catch this case.
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 #ifdef __STDC__
11031 # include <limits.h>
11032 #else
11033 # include <assert.h>
11034 #endif
11035 Syntax error
11036 _ACEOF
11037 if ac_fn_c_try_cpp "$LINENO"; then :
11039 else
11040 # Broken: fails on valid input.
11041 continue
11043 rm -f conftest.err conftest.i conftest.$ac_ext
11045 # OK, works on sane cases. Now check whether nonexistent headers
11046 # can be detected and how.
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 #include <ac_nonexistent.h>
11050 _ACEOF
11051 if ac_fn_c_try_cpp "$LINENO"; then :
11052 # Broken: success on invalid input.
11053 continue
11054 else
11055 # Passes both tests.
11056 ac_preproc_ok=:
11057 break
11059 rm -f conftest.err conftest.i conftest.$ac_ext
11061 done
11062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11063 rm -f conftest.i conftest.err conftest.$ac_ext
11064 if $ac_preproc_ok; then :
11065 break
11068 done
11069 ac_cv_prog_CPP=$CPP
11072 CPP=$ac_cv_prog_CPP
11073 else
11074 ac_cv_prog_CPP=$CPP
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11077 $as_echo "$CPP" >&6; }
11078 ac_preproc_ok=false
11079 for ac_c_preproc_warn_flag in '' yes
11081 # Use a header file that comes with gcc, so configuring glibc
11082 # with a fresh cross-compiler works.
11083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11084 # <limits.h> exists even on freestanding compilers.
11085 # On the NeXT, cc -E runs the code through the compiler's parser,
11086 # not just through cpp. "Syntax error" is here to catch this case.
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094 Syntax error
11095 _ACEOF
11096 if ac_fn_c_try_cpp "$LINENO"; then :
11098 else
11099 # Broken: fails on valid input.
11100 continue
11102 rm -f conftest.err conftest.i conftest.$ac_ext
11104 # OK, works on sane cases. Now check whether nonexistent headers
11105 # can be detected and how.
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108 #include <ac_nonexistent.h>
11109 _ACEOF
11110 if ac_fn_c_try_cpp "$LINENO"; then :
11111 # Broken: success on invalid input.
11112 continue
11113 else
11114 # Passes both tests.
11115 ac_preproc_ok=:
11116 break
11118 rm -f conftest.err conftest.i conftest.$ac_ext
11120 done
11121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11122 rm -f conftest.i conftest.err conftest.$ac_ext
11123 if $ac_preproc_ok; then :
11125 else
11126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11128 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11129 See \`config.log' for more details" "$LINENO" 5; }
11132 ac_ext=c
11133 ac_cpp='$CPP $CPPFLAGS'
11134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11139 if test -n "$with_cross_host"; then
11140 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
11141 # may not work correctly, because the compiler may not be able to
11142 # link executables.
11144 # We assume newlib. This lets us hard-code the functions we know
11145 # we'll have.
11146 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
11148 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11150 else
11151 if test x$gcc_no_link = xyes; then
11152 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
11153 ac_cv_func_mmap_fixed_mapped=no
11156 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
11160 for ac_header in $ac_header_list
11161 do :
11162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11163 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11165 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11166 cat >>confdefs.h <<_ACEOF
11167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11168 _ACEOF
11172 done
11181 for ac_func in getpagesize
11182 do :
11183 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11184 if test "x$ac_cv_func_getpagesize" = xyes; then :
11185 cat >>confdefs.h <<_ACEOF
11186 #define HAVE_GETPAGESIZE 1
11187 _ACEOF
11190 done
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11193 $as_echo_n "checking for working mmap... " >&6; }
11194 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test "$cross_compiling" = yes; then :
11198 ac_cv_func_mmap_fixed_mapped=no
11199 else
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 $ac_includes_default
11203 /* malloc might have been renamed as rpl_malloc. */
11204 #undef malloc
11206 /* Thanks to Mike Haertel and Jim Avera for this test.
11207 Here is a matrix of mmap possibilities:
11208 mmap private not fixed
11209 mmap private fixed at somewhere currently unmapped
11210 mmap private fixed at somewhere already mapped
11211 mmap shared not fixed
11212 mmap shared fixed at somewhere currently unmapped
11213 mmap shared fixed at somewhere already mapped
11214 For private mappings, we should verify that changes cannot be read()
11215 back from the file, nor mmap's back from the file at a different
11216 address. (There have been systems where private was not correctly
11217 implemented like the infamous i386 svr4.0, and systems where the
11218 VM page cache was not coherent with the file system buffer cache
11219 like early versions of FreeBSD and possibly contemporary NetBSD.)
11220 For shared mappings, we should conversely verify that changes get
11221 propagated back to all the places they're supposed to be.
11223 Grep wants private fixed already mapped.
11224 The main things grep needs to know about mmap are:
11225 * does it exist and is it safe to write into the mmap'd area
11226 * how to use it (BSD variants) */
11228 #include <fcntl.h>
11229 #include <sys/mman.h>
11231 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11232 char *malloc ();
11233 #endif
11235 /* This mess was copied from the GNU getpagesize.h. */
11236 #ifndef HAVE_GETPAGESIZE
11237 # ifdef _SC_PAGESIZE
11238 # define getpagesize() sysconf(_SC_PAGESIZE)
11239 # else /* no _SC_PAGESIZE */
11240 # ifdef HAVE_SYS_PARAM_H
11241 # include <sys/param.h>
11242 # ifdef EXEC_PAGESIZE
11243 # define getpagesize() EXEC_PAGESIZE
11244 # else /* no EXEC_PAGESIZE */
11245 # ifdef NBPG
11246 # define getpagesize() NBPG * CLSIZE
11247 # ifndef CLSIZE
11248 # define CLSIZE 1
11249 # endif /* no CLSIZE */
11250 # else /* no NBPG */
11251 # ifdef NBPC
11252 # define getpagesize() NBPC
11253 # else /* no NBPC */
11254 # ifdef PAGESIZE
11255 # define getpagesize() PAGESIZE
11256 # endif /* PAGESIZE */
11257 # endif /* no NBPC */
11258 # endif /* no NBPG */
11259 # endif /* no EXEC_PAGESIZE */
11260 # else /* no HAVE_SYS_PARAM_H */
11261 # define getpagesize() 8192 /* punt totally */
11262 # endif /* no HAVE_SYS_PARAM_H */
11263 # endif /* no _SC_PAGESIZE */
11265 #endif /* no HAVE_GETPAGESIZE */
11268 main ()
11270 char *data, *data2, *data3;
11271 const char *cdata2;
11272 int i, pagesize;
11273 int fd, fd2;
11275 pagesize = getpagesize ();
11277 /* First, make a file with some known garbage in it. */
11278 data = (char *) malloc (pagesize);
11279 if (!data)
11280 return 1;
11281 for (i = 0; i < pagesize; ++i)
11282 *(data + i) = rand ();
11283 umask (0);
11284 fd = creat ("conftest.mmap", 0600);
11285 if (fd < 0)
11286 return 2;
11287 if (write (fd, data, pagesize) != pagesize)
11288 return 3;
11289 close (fd);
11291 /* Next, check that the tail of a page is zero-filled. File must have
11292 non-zero length, otherwise we risk SIGBUS for entire page. */
11293 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11294 if (fd2 < 0)
11295 return 4;
11296 cdata2 = "";
11297 if (write (fd2, cdata2, 1) != 1)
11298 return 5;
11299 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11300 if (data2 == MAP_FAILED)
11301 return 6;
11302 for (i = 0; i < pagesize; ++i)
11303 if (*(data2 + i))
11304 return 7;
11305 close (fd2);
11306 if (munmap (data2, pagesize))
11307 return 8;
11309 /* Next, try to mmap the file at a fixed address which already has
11310 something else allocated at it. If we can, also make sure that
11311 we see the same garbage. */
11312 fd = open ("conftest.mmap", O_RDWR);
11313 if (fd < 0)
11314 return 9;
11315 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11316 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11317 return 10;
11318 for (i = 0; i < pagesize; ++i)
11319 if (*(data + i) != *(data2 + i))
11320 return 11;
11322 /* Finally, make sure that changes to the mapped area do not
11323 percolate back to the file as seen by read(). (This is a bug on
11324 some variants of i386 svr4.0.) */
11325 for (i = 0; i < pagesize; ++i)
11326 *(data2 + i) = *(data2 + i) + 1;
11327 data3 = (char *) malloc (pagesize);
11328 if (!data3)
11329 return 12;
11330 if (read (fd, data3, pagesize) != pagesize)
11331 return 13;
11332 for (i = 0; i < pagesize; ++i)
11333 if (*(data + i) != *(data3 + i))
11334 return 14;
11335 close (fd);
11336 return 0;
11338 _ACEOF
11339 if ac_fn_c_try_run "$LINENO"; then :
11340 ac_cv_func_mmap_fixed_mapped=yes
11341 else
11342 ac_cv_func_mmap_fixed_mapped=no
11344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11345 conftest.$ac_objext conftest.beam conftest.$ac_ext
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11350 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11351 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11353 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11356 rm -f conftest.mmap conftest.txt
11359 for ac_func in memcpy strerror
11360 do :
11361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11363 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11364 cat >>confdefs.h <<_ACEOF
11365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11366 _ACEOF
11369 done
11373 for ac_header in unistd.h
11374 do :
11375 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11376 if test "x$ac_cv_header_unistd_h" = xyes; then :
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_UNISTD_H 1
11379 _ACEOF
11383 done
11387 # Check whether --with-toolexeclibdir was given.
11388 if test "${with_toolexeclibdir+set}" = set; then :
11389 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
11393 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
11395 esac
11396 else
11397 with_toolexeclibdir=no
11402 if test -n "$with_cross_host" &&
11403 test x"$with_cross_host" != x"no"; then
11404 toolexecdir='$(exec_prefix)/$(target_alias)'
11405 case ${with_toolexeclibdir} in
11407 toolexeclibdir='$(toolexecdir)/lib'
11410 toolexeclibdir=${with_toolexeclibdir}
11412 esac
11413 else
11414 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11415 toolexeclibdir='$(libdir)'
11417 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11418 multiosdir=/`$CC -print-multi-os-directory`
11419 case $multiosdir in
11420 /.) multiosdir= ;; # Avoid trailing /.
11421 esac
11422 else
11423 multiosdir=
11425 toolexeclibdir=${toolexeclibdir}${multiosdir}
11429 if test -n "$with_target_subdir"; then
11430 TARGET_LIBRARY_TRUE=
11431 TARGET_LIBRARY_FALSE='#'
11432 else
11433 TARGET_LIBRARY_TRUE='#'
11434 TARGET_LIBRARY_FALSE=
11438 if test "${multilib}" = "yes"; then
11439 multilib_arg="--enable-multilib"
11440 else
11441 multilib_arg=
11444 # Check whether --enable-host-shared was given.
11445 if test "${enable_host_shared+set}" = set; then :
11446 enableval=$enable_host_shared; PICFLAG=-fPIC
11447 else
11448 PICFLAG=
11453 ac_config_files="$ac_config_files Makefile"
11455 cat >confcache <<\_ACEOF
11456 # This file is a shell script that caches the results of configure
11457 # tests run on this system so they can be shared between configure
11458 # scripts and configure runs, see configure's option --config-cache.
11459 # It is not useful on other systems. If it contains results you don't
11460 # want to keep, you may remove or edit it.
11462 # config.status only pays attention to the cache file if you give it
11463 # the --recheck option to rerun configure.
11465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11467 # following values.
11469 _ACEOF
11471 # The following way of writing the cache mishandles newlines in values,
11472 # but we know of no workaround that is simple, portable, and efficient.
11473 # So, we kill variables containing newlines.
11474 # Ultrix sh set writes to stderr and can't be redirected directly,
11475 # and sets the high bit in the cache file unless we assign to the vars.
11477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11478 eval ac_val=\$$ac_var
11479 case $ac_val in #(
11480 *${as_nl}*)
11481 case $ac_var in #(
11482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11484 esac
11485 case $ac_var in #(
11486 _ | IFS | as_nl) ;; #(
11487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11488 *) { eval $ac_var=; unset $ac_var;} ;;
11489 esac ;;
11490 esac
11491 done
11493 (set) 2>&1 |
11494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11495 *${as_nl}ac_space=\ *)
11496 # `set' does not quote correctly, so add quotes: double-quote
11497 # substitution turns \\\\ into \\, and sed turns \\ into \.
11498 sed -n \
11499 "s/'/'\\\\''/g;
11500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11501 ;; #(
11503 # `set' quotes correctly as required by POSIX, so do not add quotes.
11504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11506 esac |
11507 sort
11509 sed '
11510 /^ac_cv_env_/b end
11511 t clear
11512 :clear
11513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11514 t end
11515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11516 :end' >>confcache
11517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11518 if test -w "$cache_file"; then
11519 if test "x$cache_file" != "x/dev/null"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11521 $as_echo "$as_me: updating cache $cache_file" >&6;}
11522 if test ! -f "$cache_file" || test -h "$cache_file"; then
11523 cat confcache >"$cache_file"
11524 else
11525 case $cache_file in #(
11526 */* | ?:*)
11527 mv -f confcache "$cache_file"$$ &&
11528 mv -f "$cache_file"$$ "$cache_file" ;; #(
11530 mv -f confcache "$cache_file" ;;
11531 esac
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11539 rm -f confcache
11541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11542 # Let make expand exec_prefix.
11543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11545 # Transform confdefs.h into DEFS.
11546 # Protect against shell expansion while executing Makefile rules.
11547 # Protect against Makefile macro expansion.
11549 # If the first sed substitution is executed (which looks for macros that
11550 # take arguments), then branch to the quote section. Otherwise,
11551 # look for a macro that doesn't take arguments.
11552 ac_script='
11553 :mline
11554 /\\$/{
11556 s,\\\n,,
11557 b mline
11559 t clear
11560 :clear
11561 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11562 t quote
11563 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11564 t quote
11565 b any
11566 :quote
11567 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11568 s/\[/\\&/g
11569 s/\]/\\&/g
11570 s/\$/$$/g
11572 :any
11575 s/^\n//
11576 s/\n/ /g
11580 DEFS=`sed -n "$ac_script" confdefs.h`
11583 ac_libobjs=
11584 ac_ltlibobjs=
11586 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11587 # 1. Remove the extension, and $U if already installed.
11588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11589 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11591 # will be set to the directory where LIBOBJS objects are built.
11592 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11593 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11594 done
11595 LIBOBJS=$ac_libobjs
11597 LTLIBOBJS=$ac_ltlibobjs
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11601 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11602 if test -n "$am_sleep_pid"; then
11603 # Hide warnings about reused PIDs.
11604 wait $am_sleep_pid 2>/dev/null
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11607 $as_echo "done" >&6; }
11608 if test -n "$EXEEXT"; then
11609 am__EXEEXT_TRUE=
11610 am__EXEEXT_FALSE='#'
11611 else
11612 am__EXEEXT_TRUE='#'
11613 am__EXEEXT_FALSE=
11616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11617 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11621 as_fn_error $? "conditional \"AMDEP\" was never defined.
11622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11625 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11628 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11629 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
11630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11633 : "${CONFIG_STATUS=./config.status}"
11634 ac_write_fail=0
11635 ac_clean_files_save=$ac_clean_files
11636 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11638 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11639 as_write_fail=0
11640 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11641 #! $SHELL
11642 # Generated by $as_me.
11643 # Run this file to recreate the current configuration.
11644 # Compiler output produced by configure, useful for debugging
11645 # configure, is in config.log if it exists.
11647 debug=false
11648 ac_cs_recheck=false
11649 ac_cs_silent=false
11651 SHELL=\${CONFIG_SHELL-$SHELL}
11652 export SHELL
11653 _ASEOF
11654 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11655 ## -------------------- ##
11656 ## M4sh Initialization. ##
11657 ## -------------------- ##
11659 # Be more Bourne compatible
11660 DUALCASE=1; export DUALCASE # for MKS sh
11661 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11662 emulate sh
11663 NULLCMD=:
11664 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11665 # is contrary to our usage. Disable this feature.
11666 alias -g '${1+"$@"}'='"$@"'
11667 setopt NO_GLOB_SUBST
11668 else
11669 case `(set -o) 2>/dev/null` in #(
11670 *posix*) :
11671 set -o posix ;; #(
11672 *) :
11674 esac
11678 as_nl='
11680 export as_nl
11681 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11682 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11683 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11685 # Prefer a ksh shell builtin over an external printf program on Solaris,
11686 # but without wasting forks for bash or zsh.
11687 if test -z "$BASH_VERSION$ZSH_VERSION" \
11688 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11689 as_echo='print -r --'
11690 as_echo_n='print -rn --'
11691 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11692 as_echo='printf %s\n'
11693 as_echo_n='printf %s'
11694 else
11695 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11696 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11697 as_echo_n='/usr/ucb/echo -n'
11698 else
11699 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11700 as_echo_n_body='eval
11701 arg=$1;
11702 case $arg in #(
11703 *"$as_nl"*)
11704 expr "X$arg" : "X\\(.*\\)$as_nl";
11705 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11706 esac;
11707 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11709 export as_echo_n_body
11710 as_echo_n='sh -c $as_echo_n_body as_echo'
11712 export as_echo_body
11713 as_echo='sh -c $as_echo_body as_echo'
11716 # The user is always right.
11717 if test "${PATH_SEPARATOR+set}" != set; then
11718 PATH_SEPARATOR=:
11719 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11720 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11721 PATH_SEPARATOR=';'
11726 # IFS
11727 # We need space, tab and new line, in precisely that order. Quoting is
11728 # there to prevent editors from complaining about space-tab.
11729 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11730 # splitting by setting IFS to empty value.)
11731 IFS=" "" $as_nl"
11733 # Find who we are. Look in the path if we contain no directory separator.
11734 as_myself=
11735 case $0 in #((
11736 *[\\/]* ) as_myself=$0 ;;
11737 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
11742 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11743 done
11744 IFS=$as_save_IFS
11747 esac
11748 # We did not find ourselves, most probably we were run as `sh COMMAND'
11749 # in which case we are not to be found in the path.
11750 if test "x$as_myself" = x; then
11751 as_myself=$0
11753 if test ! -f "$as_myself"; then
11754 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11755 exit 1
11758 # Unset variables that we do not need and which cause bugs (e.g. in
11759 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11760 # suppresses any "Segmentation fault" message there. '((' could
11761 # trigger a bug in pdksh 5.2.14.
11762 for as_var in BASH_ENV ENV MAIL MAILPATH
11763 do eval test x\${$as_var+set} = xset \
11764 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11765 done
11766 PS1='$ '
11767 PS2='> '
11768 PS4='+ '
11770 # NLS nuisances.
11771 LC_ALL=C
11772 export LC_ALL
11773 LANGUAGE=C
11774 export LANGUAGE
11776 # CDPATH.
11777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11780 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11781 # ----------------------------------------
11782 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11783 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11784 # script with STATUS, using 1 if that was 0.
11785 as_fn_error ()
11787 as_status=$1; test $as_status -eq 0 && as_status=1
11788 if test "$4"; then
11789 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11790 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11792 $as_echo "$as_me: error: $2" >&2
11793 as_fn_exit $as_status
11794 } # as_fn_error
11797 # as_fn_set_status STATUS
11798 # -----------------------
11799 # Set $? to STATUS, without forking.
11800 as_fn_set_status ()
11802 return $1
11803 } # as_fn_set_status
11805 # as_fn_exit STATUS
11806 # -----------------
11807 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11808 as_fn_exit ()
11810 set +e
11811 as_fn_set_status $1
11812 exit $1
11813 } # as_fn_exit
11815 # as_fn_unset VAR
11816 # ---------------
11817 # Portably unset VAR.
11818 as_fn_unset ()
11820 { eval $1=; unset $1;}
11822 as_unset=as_fn_unset
11823 # as_fn_append VAR VALUE
11824 # ----------------------
11825 # Append the text in VALUE to the end of the definition contained in VAR. Take
11826 # advantage of any shell optimizations that allow amortized linear growth over
11827 # repeated appends, instead of the typical quadratic growth present in naive
11828 # implementations.
11829 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11830 eval 'as_fn_append ()
11832 eval $1+=\$2
11834 else
11835 as_fn_append ()
11837 eval $1=\$$1\$2
11839 fi # as_fn_append
11841 # as_fn_arith ARG...
11842 # ------------------
11843 # Perform arithmetic evaluation on the ARGs, and store the result in the
11844 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11845 # must be portable across $(()) and expr.
11846 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11847 eval 'as_fn_arith ()
11849 as_val=$(( $* ))
11851 else
11852 as_fn_arith ()
11854 as_val=`expr "$@" || test $? -eq 1`
11856 fi # as_fn_arith
11859 if expr a : '\(a\)' >/dev/null 2>&1 &&
11860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11861 as_expr=expr
11862 else
11863 as_expr=false
11866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11867 as_basename=basename
11868 else
11869 as_basename=false
11872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11873 as_dirname=dirname
11874 else
11875 as_dirname=false
11878 as_me=`$as_basename -- "$0" ||
11879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11880 X"$0" : 'X\(//\)$' \| \
11881 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11882 $as_echo X/"$0" |
11883 sed '/^.*\/\([^/][^/]*\)\/*$/{
11884 s//\1/
11887 /^X\/\(\/\/\)$/{
11888 s//\1/
11891 /^X\/\(\/\).*/{
11892 s//\1/
11895 s/.*/./; q'`
11897 # Avoid depending upon Character Ranges.
11898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11901 as_cr_digits='0123456789'
11902 as_cr_alnum=$as_cr_Letters$as_cr_digits
11904 ECHO_C= ECHO_N= ECHO_T=
11905 case `echo -n x` in #(((((
11906 -n*)
11907 case `echo 'xy\c'` in
11908 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11909 xy) ECHO_C='\c';;
11910 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11911 ECHO_T=' ';;
11912 esac;;
11914 ECHO_N='-n';;
11915 esac
11917 rm -f conf$$ conf$$.exe conf$$.file
11918 if test -d conf$$.dir; then
11919 rm -f conf$$.dir/conf$$.file
11920 else
11921 rm -f conf$$.dir
11922 mkdir conf$$.dir 2>/dev/null
11924 if (echo >conf$$.file) 2>/dev/null; then
11925 if ln -s conf$$.file conf$$ 2>/dev/null; then
11926 as_ln_s='ln -s'
11927 # ... but there are two gotchas:
11928 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11929 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11930 # In both cases, we have to default to `cp -pR'.
11931 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11932 as_ln_s='cp -pR'
11933 elif ln conf$$.file conf$$ 2>/dev/null; then
11934 as_ln_s=ln
11935 else
11936 as_ln_s='cp -pR'
11938 else
11939 as_ln_s='cp -pR'
11941 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11942 rmdir conf$$.dir 2>/dev/null
11945 # as_fn_mkdir_p
11946 # -------------
11947 # Create "$as_dir" as a directory, including parents if necessary.
11948 as_fn_mkdir_p ()
11951 case $as_dir in #(
11952 -*) as_dir=./$as_dir;;
11953 esac
11954 test -d "$as_dir" || eval $as_mkdir_p || {
11955 as_dirs=
11956 while :; do
11957 case $as_dir in #(
11958 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11959 *) as_qdir=$as_dir;;
11960 esac
11961 as_dirs="'$as_qdir' $as_dirs"
11962 as_dir=`$as_dirname -- "$as_dir" ||
11963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11964 X"$as_dir" : 'X\(//\)[^/]' \| \
11965 X"$as_dir" : 'X\(//\)$' \| \
11966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11967 $as_echo X"$as_dir" |
11968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11969 s//\1/
11972 /^X\(\/\/\)[^/].*/{
11973 s//\1/
11976 /^X\(\/\/\)$/{
11977 s//\1/
11980 /^X\(\/\).*/{
11981 s//\1/
11984 s/.*/./; q'`
11985 test -d "$as_dir" && break
11986 done
11987 test -z "$as_dirs" || eval "mkdir $as_dirs"
11988 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11991 } # as_fn_mkdir_p
11992 if mkdir -p . 2>/dev/null; then
11993 as_mkdir_p='mkdir -p "$as_dir"'
11994 else
11995 test -d ./-p && rmdir ./-p
11996 as_mkdir_p=false
12000 # as_fn_executable_p FILE
12001 # -----------------------
12002 # Test if FILE is an executable regular file.
12003 as_fn_executable_p ()
12005 test -f "$1" && test -x "$1"
12006 } # as_fn_executable_p
12007 as_test_x='test -x'
12008 as_executable_p=as_fn_executable_p
12010 # Sed expression to map a string onto a valid CPP name.
12011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12013 # Sed expression to map a string onto a valid variable name.
12014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12017 exec 6>&1
12018 ## ----------------------------------- ##
12019 ## Main body of $CONFIG_STATUS script. ##
12020 ## ----------------------------------- ##
12021 _ASEOF
12022 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12025 # Save the log message, to keep $0 and so on meaningful, and to
12026 # report actual input values of CONFIG_FILES etc. instead of their
12027 # values after options handling.
12028 ac_log="
12029 This file was extended by zlib $as_me 1.1.4, which was
12030 generated by GNU Autoconf 2.69. Invocation command line was
12032 CONFIG_FILES = $CONFIG_FILES
12033 CONFIG_HEADERS = $CONFIG_HEADERS
12034 CONFIG_LINKS = $CONFIG_LINKS
12035 CONFIG_COMMANDS = $CONFIG_COMMANDS
12036 $ $0 $@
12038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12041 _ACEOF
12043 case $ac_config_files in *"
12044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12045 esac
12049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12050 # Files that config.status was made for.
12051 config_files="$ac_config_files"
12052 config_commands="$ac_config_commands"
12054 _ACEOF
12056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12057 ac_cs_usage="\
12058 \`$as_me' instantiates files and other configuration actions
12059 from templates according to the current configuration. Unless the files
12060 and actions are specified as TAGs, all are instantiated by default.
12062 Usage: $0 [OPTION]... [TAG]...
12064 -h, --help print this help, then exit
12065 -V, --version print version number and configuration settings, then exit
12066 --config print configuration, then exit
12067 -q, --quiet, --silent
12068 do not print progress messages
12069 -d, --debug don't remove temporary files
12070 --recheck update $as_me by reconfiguring in the same conditions
12071 --file=FILE[:TEMPLATE]
12072 instantiate the configuration file FILE
12074 Configuration files:
12075 $config_files
12077 Configuration commands:
12078 $config_commands
12080 Report bugs to the package provider."
12082 _ACEOF
12083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12084 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12085 ac_cs_version="\\
12086 zlib config.status 1.1.4
12087 configured by $0, generated by GNU Autoconf 2.69,
12088 with options \\"\$ac_cs_config\\"
12090 Copyright (C) 2012 Free Software Foundation, Inc.
12091 This config.status script is free software; the Free Software Foundation
12092 gives unlimited permission to copy, distribute and modify it."
12094 ac_pwd='$ac_pwd'
12095 srcdir='$srcdir'
12096 INSTALL='$INSTALL'
12097 MKDIR_P='$MKDIR_P'
12098 AWK='$AWK'
12099 test -n "\$AWK" || AWK=awk
12100 _ACEOF
12102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103 # The default lists apply if the user does not specify any file.
12104 ac_need_defaults=:
12105 while test $# != 0
12107 case $1 in
12108 --*=?*)
12109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12110 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12111 ac_shift=:
12113 --*=)
12114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12115 ac_optarg=
12116 ac_shift=:
12119 ac_option=$1
12120 ac_optarg=$2
12121 ac_shift=shift
12123 esac
12125 case $ac_option in
12126 # Handling of the options.
12127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12128 ac_cs_recheck=: ;;
12129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12130 $as_echo "$ac_cs_version"; exit ;;
12131 --config | --confi | --conf | --con | --co | --c )
12132 $as_echo "$ac_cs_config"; exit ;;
12133 --debug | --debu | --deb | --de | --d | -d )
12134 debug=: ;;
12135 --file | --fil | --fi | --f )
12136 $ac_shift
12137 case $ac_optarg in
12138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12139 '') as_fn_error $? "missing file argument" ;;
12140 esac
12141 as_fn_append CONFIG_FILES " '$ac_optarg'"
12142 ac_need_defaults=false;;
12143 --he | --h | --help | --hel | -h )
12144 $as_echo "$ac_cs_usage"; exit ;;
12145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12147 ac_cs_silent=: ;;
12149 # This is an error.
12150 -*) as_fn_error $? "unrecognized option: \`$1'
12151 Try \`$0 --help' for more information." ;;
12153 *) as_fn_append ac_config_targets " $1"
12154 ac_need_defaults=false ;;
12156 esac
12157 shift
12158 done
12160 ac_configure_extra_args=
12162 if $ac_cs_silent; then
12163 exec 6>/dev/null
12164 ac_configure_extra_args="$ac_configure_extra_args --silent"
12167 _ACEOF
12168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12169 if \$ac_cs_recheck; then
12170 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12171 shift
12172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12173 CONFIG_SHELL='$SHELL'
12174 export CONFIG_SHELL
12175 exec "\$@"
12178 _ACEOF
12179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12180 exec 5>>config.log
12182 echo
12183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12184 ## Running $as_me. ##
12185 _ASBOX
12186 $as_echo "$ac_log"
12187 } >&5
12189 _ACEOF
12190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12192 # INIT-COMMANDS
12195 srcdir="$srcdir"
12196 host="$host"
12197 target="$target"
12198 with_multisubdir="$with_multisubdir"
12199 with_multisrctop="$with_multisrctop"
12200 with_target_subdir="$with_target_subdir"
12201 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12202 multi_basedir="$multi_basedir"
12203 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12204 CC="$CC"
12205 CXX="$CXX"
12206 GFORTRAN="$GFORTRAN"
12207 GDC="$GDC"
12208 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12211 # The HP-UX ksh and POSIX shell print the target directory to stdout
12212 # if CDPATH is set.
12213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12215 sed_quote_subst='$sed_quote_subst'
12216 double_quote_subst='$double_quote_subst'
12217 delay_variable_subst='$delay_variable_subst'
12218 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12219 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12220 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12221 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12222 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12223 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12224 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12225 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12226 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12227 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12228 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12229 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12230 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12231 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12232 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12233 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12234 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12235 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12236 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12237 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12238 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12239 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12240 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12241 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12242 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12243 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12244 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12245 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12246 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12247 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12248 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12249 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12250 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12251 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12252 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12253 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12254 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12255 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12256 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12257 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12258 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12259 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12260 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12261 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12262 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12263 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12264 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12265 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12266 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"`'
12267 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12268 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12269 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12270 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12271 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12272 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12273 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12274 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12275 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12276 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12277 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12278 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12279 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12280 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12281 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12282 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12283 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12284 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12285 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12286 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12287 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12288 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12289 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12290 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12291 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12292 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12293 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12294 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12295 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12296 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12297 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12298 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12299 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12300 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12301 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12302 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12303 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12304 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12305 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12306 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12307 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12313 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12314 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12315 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12316 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12317 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12318 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12319 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12320 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12321 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12322 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12323 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12324 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12325 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12326 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12327 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12328 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12329 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12330 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12331 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12332 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12333 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12334 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12335 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12336 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12337 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12339 LTCC='$LTCC'
12340 LTCFLAGS='$LTCFLAGS'
12341 compiler='$compiler_DEFAULT'
12343 # A function that is used when there is no print builtin or printf.
12344 func_fallback_echo ()
12346 eval 'cat <<_LTECHO_EOF
12348 _LTECHO_EOF'
12351 # Quote evaled strings.
12352 for var in SHELL \
12353 ECHO \
12354 SED \
12355 GREP \
12356 EGREP \
12357 FGREP \
12358 LD \
12359 NM \
12360 LN_S \
12361 lt_SP2NL \
12362 lt_NL2SP \
12363 reload_flag \
12364 OBJDUMP \
12365 deplibs_check_method \
12366 file_magic_cmd \
12367 AR \
12368 AR_FLAGS \
12369 STRIP \
12370 RANLIB \
12371 CC \
12372 CFLAGS \
12373 compiler \
12374 lt_cv_sys_global_symbol_pipe \
12375 lt_cv_sys_global_symbol_to_cdecl \
12376 lt_cv_sys_global_symbol_to_c_name_address \
12377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12378 lt_prog_compiler_no_builtin_flag \
12379 lt_prog_compiler_wl \
12380 lt_prog_compiler_pic \
12381 lt_prog_compiler_static \
12382 lt_cv_prog_compiler_c_o \
12383 need_locks \
12384 DSYMUTIL \
12385 NMEDIT \
12386 LIPO \
12387 OTOOL \
12388 OTOOL64 \
12389 shrext_cmds \
12390 export_dynamic_flag_spec \
12391 whole_archive_flag_spec \
12392 compiler_needs_object \
12393 with_gnu_ld \
12394 allow_undefined_flag \
12395 no_undefined_flag \
12396 hardcode_libdir_flag_spec \
12397 hardcode_libdir_flag_spec_ld \
12398 hardcode_libdir_separator \
12399 fix_srcfile_path \
12400 exclude_expsyms \
12401 include_expsyms \
12402 file_list_spec \
12403 variables_saved_for_relink \
12404 libname_spec \
12405 library_names_spec \
12406 soname_spec \
12407 install_override_mode \
12408 finish_eval \
12409 old_striplib \
12410 striplib; do
12411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12412 *[\\\\\\\`\\"\\\$]*)
12413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12418 esac
12419 done
12421 # Double-quote double-evaled strings.
12422 for var in reload_cmds \
12423 old_postinstall_cmds \
12424 old_postuninstall_cmds \
12425 old_archive_cmds \
12426 extract_expsyms_cmds \
12427 old_archive_from_new_cmds \
12428 old_archive_from_expsyms_cmds \
12429 archive_cmds \
12430 archive_expsym_cmds \
12431 module_cmds \
12432 module_expsym_cmds \
12433 export_symbols_cmds \
12434 prelink_cmds \
12435 postinstall_cmds \
12436 postuninstall_cmds \
12437 finish_cmds \
12438 sys_lib_search_path_spec \
12439 sys_lib_dlsearch_path_spec; do
12440 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12441 *[\\\\\\\`\\"\\\$]*)
12442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12447 esac
12448 done
12450 ac_aux_dir='$ac_aux_dir'
12451 xsi_shell='$xsi_shell'
12452 lt_shell_append='$lt_shell_append'
12454 # See if we are running on zsh, and set the options which allow our
12455 # commands through without removal of \ escapes INIT.
12456 if test -n "\${ZSH_VERSION+set}" ; then
12457 setopt NO_GLOB_SUBST
12461 PACKAGE='$PACKAGE'
12462 VERSION='$VERSION'
12463 TIMESTAMP='$TIMESTAMP'
12464 RM='$RM'
12465 ofile='$ofile'
12470 _ACEOF
12472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474 # Handling of arguments.
12475 for ac_config_target in $ac_config_targets
12477 case $ac_config_target in
12478 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12479 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12480 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12481 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12483 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12484 esac
12485 done
12488 # If the user did not use the arguments to specify the items to instantiate,
12489 # then the envvar interface is used. Set only those that are not.
12490 # We use the long form for the default assignment because of an extremely
12491 # bizarre bug on SunOS 4.1.3.
12492 if $ac_need_defaults; then
12493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12497 # Have a temporary directory for convenience. Make it in the build tree
12498 # simply because there is no reason against having it here, and in addition,
12499 # creating and moving files from /tmp can sometimes cause problems.
12500 # Hook for its removal unless debugging.
12501 # Note that there is a small window in which the directory will not be cleaned:
12502 # after its creation but before its name has been assigned to `$tmp'.
12503 $debug ||
12505 tmp= ac_tmp=
12506 trap 'exit_status=$?
12507 : "${ac_tmp:=$tmp}"
12508 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12510 trap 'as_fn_exit 1' 1 2 13 15
12512 # Create a (secure) tmp directory for tmp files.
12515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12516 test -d "$tmp"
12517 } ||
12519 tmp=./conf$$-$RANDOM
12520 (umask 077 && mkdir "$tmp")
12521 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12522 ac_tmp=$tmp
12524 # Set up the scripts for CONFIG_FILES section.
12525 # No need to generate them if there are no CONFIG_FILES.
12526 # This happens for instance with `./config.status config.h'.
12527 if test -n "$CONFIG_FILES"; then
12530 ac_cr=`echo X | tr X '\015'`
12531 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12532 # But we know of no other shell where ac_cr would be empty at this
12533 # point, so we can use a bashism as a fallback.
12534 if test "x$ac_cr" = x; then
12535 eval ac_cr=\$\'\\r\'
12537 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12538 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12539 ac_cs_awk_cr='\\r'
12540 else
12541 ac_cs_awk_cr=$ac_cr
12544 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12545 _ACEOF
12549 echo "cat >conf$$subs.awk <<_ACEOF" &&
12550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12551 echo "_ACEOF"
12552 } >conf$$subs.sh ||
12553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12554 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12555 ac_delim='%!_!# '
12556 for ac_last_try in false false false false false :; do
12557 . ./conf$$subs.sh ||
12558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12560 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12561 if test $ac_delim_n = $ac_delim_num; then
12562 break
12563 elif $ac_last_try; then
12564 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12565 else
12566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12568 done
12569 rm -f conf$$subs.sh
12571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12572 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12573 _ACEOF
12574 sed -n '
12576 s/^/S["/; s/!.*/"]=/
12579 s/^[^!]*!//
12580 :repl
12581 t repl
12582 s/'"$ac_delim"'$//
12583 t delim
12586 s/\(.\{148\}\)..*/\1/
12587 t more1
12588 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12591 b repl
12592 :more1
12593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12596 s/.\{148\}//
12597 t nl
12598 :delim
12600 s/\(.\{148\}\)..*/\1/
12601 t more2
12602 s/["\\]/\\&/g; s/^/"/; s/$/"/
12605 :more2
12606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12609 s/.\{148\}//
12610 t delim
12611 ' <conf$$subs.awk | sed '
12612 /^[^""]/{
12614 s/\n//
12616 ' >>$CONFIG_STATUS || ac_write_fail=1
12617 rm -f conf$$subs.awk
12618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12619 _ACAWK
12620 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12621 for (key in S) S_is_set[key] = 1
12622 FS = "\a"
12626 line = $ 0
12627 nfields = split(line, field, "@")
12628 substed = 0
12629 len = length(field[1])
12630 for (i = 2; i < nfields; i++) {
12631 key = field[i]
12632 keylen = length(key)
12633 if (S_is_set[key]) {
12634 value = S[key]
12635 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12636 len += length(value) + length(field[++i])
12637 substed = 1
12638 } else
12639 len += 1 + keylen
12642 print line
12645 _ACAWK
12646 _ACEOF
12647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12648 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12649 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12650 else
12652 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12653 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12654 _ACEOF
12656 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12657 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12658 # trailing colons and then remove the whole line if VPATH becomes empty
12659 # (actually we leave an empty line to preserve line numbers).
12660 if test "x$srcdir" = x.; then
12661 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12663 s///
12664 s/^/:/
12665 s/[ ]*$/:/
12666 s/:\$(srcdir):/:/g
12667 s/:\${srcdir}:/:/g
12668 s/:@srcdir@:/:/g
12669 s/^:*//
12670 s/:*$//
12672 s/\(=[ ]*\).*/\1/
12674 s/\n//
12675 s/^[^=]*=[ ]*$//
12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680 fi # test -n "$CONFIG_FILES"
12683 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12684 shift
12685 for ac_tag
12687 case $ac_tag in
12688 :[FHLC]) ac_mode=$ac_tag; continue;;
12689 esac
12690 case $ac_mode$ac_tag in
12691 :[FHL]*:*);;
12692 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12693 :[FH]-) ac_tag=-:-;;
12694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12695 esac
12696 ac_save_IFS=$IFS
12697 IFS=:
12698 set x $ac_tag
12699 IFS=$ac_save_IFS
12700 shift
12701 ac_file=$1
12702 shift
12704 case $ac_mode in
12705 :L) ac_source=$1;;
12706 :[FH])
12707 ac_file_inputs=
12708 for ac_f
12710 case $ac_f in
12711 -) ac_f="$ac_tmp/stdin";;
12712 *) # Look for the file first in the build tree, then in the source tree
12713 # (if the path is not absolute). The absolute path cannot be DOS-style,
12714 # because $ac_f cannot contain `:'.
12715 test -f "$ac_f" ||
12716 case $ac_f in
12717 [\\/$]*) false;;
12718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12719 esac ||
12720 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12721 esac
12722 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12723 as_fn_append ac_file_inputs " '$ac_f'"
12724 done
12726 # Let's still pretend it is `configure' which instantiates (i.e., don't
12727 # use $as_me), people would be surprised to read:
12728 # /* config.h. Generated by config.status. */
12729 configure_input='Generated from '`
12730 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12731 `' by configure.'
12732 if test x"$ac_file" != x-; then
12733 configure_input="$ac_file. $configure_input"
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12735 $as_echo "$as_me: creating $ac_file" >&6;}
12737 # Neutralize special characters interpreted by sed in replacement strings.
12738 case $configure_input in #(
12739 *\&* | *\|* | *\\* )
12740 ac_sed_conf_input=`$as_echo "$configure_input" |
12741 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12742 *) ac_sed_conf_input=$configure_input;;
12743 esac
12745 case $ac_tag in
12746 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12748 esac
12750 esac
12752 ac_dir=`$as_dirname -- "$ac_file" ||
12753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12754 X"$ac_file" : 'X\(//\)[^/]' \| \
12755 X"$ac_file" : 'X\(//\)$' \| \
12756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12757 $as_echo X"$ac_file" |
12758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12759 s//\1/
12762 /^X\(\/\/\)[^/].*/{
12763 s//\1/
12766 /^X\(\/\/\)$/{
12767 s//\1/
12770 /^X\(\/\).*/{
12771 s//\1/
12774 s/.*/./; q'`
12775 as_dir="$ac_dir"; as_fn_mkdir_p
12776 ac_builddir=.
12778 case "$ac_dir" in
12779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12782 # A ".." for each directory in $ac_dir_suffix.
12783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12784 case $ac_top_builddir_sub in
12785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12787 esac ;;
12788 esac
12789 ac_abs_top_builddir=$ac_pwd
12790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12791 # for backward compatibility:
12792 ac_top_builddir=$ac_top_build_prefix
12794 case $srcdir in
12795 .) # We are building in place.
12796 ac_srcdir=.
12797 ac_top_srcdir=$ac_top_builddir_sub
12798 ac_abs_top_srcdir=$ac_pwd ;;
12799 [\\/]* | ?:[\\/]* ) # Absolute name.
12800 ac_srcdir=$srcdir$ac_dir_suffix;
12801 ac_top_srcdir=$srcdir
12802 ac_abs_top_srcdir=$srcdir ;;
12803 *) # Relative name.
12804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12805 ac_top_srcdir=$ac_top_build_prefix$srcdir
12806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12807 esac
12808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12811 case $ac_mode in
12814 # CONFIG_FILE
12817 case $INSTALL in
12818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12820 esac
12821 ac_MKDIR_P=$MKDIR_P
12822 case $MKDIR_P in
12823 [\\/$]* | ?:[\\/]* ) ;;
12824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12825 esac
12826 _ACEOF
12828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12829 # If the template does not know about datarootdir, expand it.
12830 # FIXME: This hack should be removed a few years after 2.60.
12831 ac_datarootdir_hack=; ac_datarootdir_seen=
12832 ac_sed_dataroot='
12833 /datarootdir/ {
12837 /@datadir@/p
12838 /@docdir@/p
12839 /@infodir@/p
12840 /@localedir@/p
12841 /@mandir@/p'
12842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12843 *datarootdir*) ac_datarootdir_seen=yes;;
12844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12847 _ACEOF
12848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12849 ac_datarootdir_hack='
12850 s&@datadir@&$datadir&g
12851 s&@docdir@&$docdir&g
12852 s&@infodir@&$infodir&g
12853 s&@localedir@&$localedir&g
12854 s&@mandir@&$mandir&g
12855 s&\\\${datarootdir}&$datarootdir&g' ;;
12856 esac
12857 _ACEOF
12859 # Neutralize VPATH when `$srcdir' = `.'.
12860 # Shell code in configure.ac might set extrasub.
12861 # FIXME: do we really want to maintain this feature?
12862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12863 ac_sed_extra="$ac_vpsub
12864 $extrasub
12865 _ACEOF
12866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12869 s|@configure_input@|$ac_sed_conf_input|;t t
12870 s&@top_builddir@&$ac_top_builddir_sub&;t t
12871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12872 s&@srcdir@&$ac_srcdir&;t t
12873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12874 s&@top_srcdir@&$ac_top_srcdir&;t t
12875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12876 s&@builddir@&$ac_builddir&;t t
12877 s&@abs_builddir@&$ac_abs_builddir&;t t
12878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12879 s&@INSTALL@&$ac_INSTALL&;t t
12880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12881 $ac_datarootdir_hack
12883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12889 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12891 which seems to be undefined. Please make sure it is defined" >&5
12892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12893 which seems to be undefined. Please make sure it is defined" >&2;}
12895 rm -f "$ac_tmp/stdin"
12896 case $ac_file in
12897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12899 esac \
12900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12904 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12905 $as_echo "$as_me: executing $ac_file commands" >&6;}
12907 esac
12910 case $ac_file$ac_mode in
12911 "default-1":C)
12912 # Only add multilib support code if we just rebuilt the top-level
12913 # Makefile.
12914 case " $CONFIG_FILES " in
12915 *" Makefile "*)
12916 ac_file=Makefile . ${multi_basedir}/config-ml.in
12918 esac ;;
12919 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12920 # Older Autoconf quotes --file arguments for eval, but not when files
12921 # are listed without --file. Let's play safe and only enable the eval
12922 # if we detect the quoting.
12923 case $CONFIG_FILES in
12924 *\'*) eval set x "$CONFIG_FILES" ;;
12925 *) set x $CONFIG_FILES ;;
12926 esac
12927 shift
12928 for mf
12930 # Strip MF so we end up with the name of the file.
12931 mf=`echo "$mf" | sed -e 's/:.*$//'`
12932 # Check whether this is an Automake generated Makefile or not.
12933 # We used to match only the files named 'Makefile.in', but
12934 # some people rename them; so instead we look at the file content.
12935 # Grep'ing the first line is not enough: some people post-process
12936 # each Makefile.in and add a new line on top of each file to say so.
12937 # Grep'ing the whole file is not good either: AIX grep has a line
12938 # limit of 2048, but all sed's we know have understand at least 4000.
12939 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12940 dirpart=`$as_dirname -- "$mf" ||
12941 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12942 X"$mf" : 'X\(//\)[^/]' \| \
12943 X"$mf" : 'X\(//\)$' \| \
12944 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12945 $as_echo X"$mf" |
12946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12947 s//\1/
12950 /^X\(\/\/\)[^/].*/{
12951 s//\1/
12954 /^X\(\/\/\)$/{
12955 s//\1/
12958 /^X\(\/\).*/{
12959 s//\1/
12962 s/.*/./; q'`
12963 else
12964 continue
12966 # Extract the definition of DEPDIR, am__include, and am__quote
12967 # from the Makefile without running 'make'.
12968 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12969 test -z "$DEPDIR" && continue
12970 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12971 test -z "$am__include" && continue
12972 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12973 # Find all dependency output files, they are included files with
12974 # $(DEPDIR) in their names. We invoke sed twice because it is the
12975 # simplest approach to changing $(DEPDIR) to its actual value in the
12976 # expansion.
12977 for file in `sed -n "
12978 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12979 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12980 # Make sure the directory exists.
12981 test -f "$dirpart/$file" && continue
12982 fdir=`$as_dirname -- "$file" ||
12983 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984 X"$file" : 'X\(//\)[^/]' \| \
12985 X"$file" : 'X\(//\)$' \| \
12986 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12987 $as_echo X"$file" |
12988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989 s//\1/
12992 /^X\(\/\/\)[^/].*/{
12993 s//\1/
12996 /^X\(\/\/\)$/{
12997 s//\1/
13000 /^X\(\/\).*/{
13001 s//\1/
13004 s/.*/./; q'`
13005 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13006 # echo "creating $dirpart/$file"
13007 echo '# dummy' > "$dirpart/$file"
13008 done
13009 done
13012 "libtool":C)
13014 # See if we are running on zsh, and set the options which allow our
13015 # commands through without removal of \ escapes.
13016 if test -n "${ZSH_VERSION+set}" ; then
13017 setopt NO_GLOB_SUBST
13020 cfgfile="${ofile}T"
13021 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13022 $RM "$cfgfile"
13024 cat <<_LT_EOF >> "$cfgfile"
13025 #! $SHELL
13027 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13028 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13029 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13032 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13033 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13034 # Written by Gordon Matzigkeit, 1996
13036 # This file is part of GNU Libtool.
13038 # GNU Libtool is free software; you can redistribute it and/or
13039 # modify it under the terms of the GNU General Public License as
13040 # published by the Free Software Foundation; either version 2 of
13041 # the License, or (at your option) any later version.
13043 # As a special exception to the GNU General Public License,
13044 # if you distribute this file as part of a program or library that
13045 # is built using GNU Libtool, you may include this file under the
13046 # same distribution terms that you use for the rest of that program.
13048 # GNU Libtool is distributed in the hope that it will be useful,
13049 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13050 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13051 # GNU General Public License for more details.
13053 # You should have received a copy of the GNU General Public License
13054 # along with GNU Libtool; see the file COPYING. If not, a copy
13055 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13056 # obtained by writing to the Free Software Foundation, Inc.,
13057 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13060 # The names of the tagged configurations supported by this script.
13061 available_tags=""
13063 # ### BEGIN LIBTOOL CONFIG
13065 # Which release of libtool.m4 was used?
13066 macro_version=$macro_version
13067 macro_revision=$macro_revision
13069 # Whether or not to build shared libraries.
13070 build_libtool_libs=$enable_shared
13072 # Whether or not to build static libraries.
13073 build_old_libs=$enable_static
13075 # What type of objects to build.
13076 pic_mode=$pic_mode
13078 # Whether or not to optimize for fast installation.
13079 fast_install=$enable_fast_install
13081 # Shell to use when invoking shell scripts.
13082 SHELL=$lt_SHELL
13084 # An echo program that protects backslashes.
13085 ECHO=$lt_ECHO
13087 # The host system.
13088 host_alias=$host_alias
13089 host=$host
13090 host_os=$host_os
13092 # The build system.
13093 build_alias=$build_alias
13094 build=$build
13095 build_os=$build_os
13097 # A sed program that does not truncate output.
13098 SED=$lt_SED
13100 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13101 Xsed="\$SED -e 1s/^X//"
13103 # A grep program that handles long lines.
13104 GREP=$lt_GREP
13106 # An ERE matcher.
13107 EGREP=$lt_EGREP
13109 # A literal string matcher.
13110 FGREP=$lt_FGREP
13112 # A BSD- or MS-compatible name lister.
13113 NM=$lt_NM
13115 # Whether we need soft or hard links.
13116 LN_S=$lt_LN_S
13118 # What is the maximum length of a command?
13119 max_cmd_len=$max_cmd_len
13121 # Object file suffix (normally "o").
13122 objext=$ac_objext
13124 # Executable file suffix (normally "").
13125 exeext=$exeext
13127 # whether the shell understands "unset".
13128 lt_unset=$lt_unset
13130 # turn spaces into newlines.
13131 SP2NL=$lt_lt_SP2NL
13133 # turn newlines into spaces.
13134 NL2SP=$lt_lt_NL2SP
13136 # An object symbol dumper.
13137 OBJDUMP=$lt_OBJDUMP
13139 # Method to check whether dependent libraries are shared objects.
13140 deplibs_check_method=$lt_deplibs_check_method
13142 # Command to use when deplibs_check_method == "file_magic".
13143 file_magic_cmd=$lt_file_magic_cmd
13145 # The archiver.
13146 AR=$lt_AR
13147 AR_FLAGS=$lt_AR_FLAGS
13149 # A symbol stripping program.
13150 STRIP=$lt_STRIP
13152 # Commands used to install an old-style archive.
13153 RANLIB=$lt_RANLIB
13154 old_postinstall_cmds=$lt_old_postinstall_cmds
13155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13157 # Whether to use a lock for old archive extraction.
13158 lock_old_archive_extraction=$lock_old_archive_extraction
13160 # A C compiler.
13161 LTCC=$lt_CC
13163 # LTCC compiler flags.
13164 LTCFLAGS=$lt_CFLAGS
13166 # Take the output of nm and produce a listing of raw symbols and C names.
13167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13169 # Transform the output of nm in a proper C declaration.
13170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13172 # Transform the output of nm in a C name address pair.
13173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13175 # Transform the output of nm in a C name address pair when lib prefix is needed.
13176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13178 # The name of the directory that contains temporary libtool files.
13179 objdir=$objdir
13181 # Used to examine libraries when file_magic_cmd begins with "file".
13182 MAGIC_CMD=$MAGIC_CMD
13184 # Must we lock files when doing compilation?
13185 need_locks=$lt_need_locks
13187 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13188 DSYMUTIL=$lt_DSYMUTIL
13190 # Tool to change global to local symbols on Mac OS X.
13191 NMEDIT=$lt_NMEDIT
13193 # Tool to manipulate fat objects and archives on Mac OS X.
13194 LIPO=$lt_LIPO
13196 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13197 OTOOL=$lt_OTOOL
13199 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13200 OTOOL64=$lt_OTOOL64
13202 # Old archive suffix (normally "a").
13203 libext=$libext
13205 # Shared library suffix (normally ".so").
13206 shrext_cmds=$lt_shrext_cmds
13208 # The commands to extract the exported symbol list from a shared archive.
13209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13211 # Variables whose values should be saved in libtool wrapper scripts and
13212 # restored at link time.
13213 variables_saved_for_relink=$lt_variables_saved_for_relink
13215 # Do we need the "lib" prefix for modules?
13216 need_lib_prefix=$need_lib_prefix
13218 # Do we need a version for libraries?
13219 need_version=$need_version
13221 # Library versioning type.
13222 version_type=$version_type
13224 # Shared library runtime path variable.
13225 runpath_var=$runpath_var
13227 # Shared library path variable.
13228 shlibpath_var=$shlibpath_var
13230 # Is shlibpath searched before the hard-coded library search path?
13231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13233 # Format of library name prefix.
13234 libname_spec=$lt_libname_spec
13236 # List of archive names. First name is the real one, the rest are links.
13237 # The last name is the one that the linker finds with -lNAME
13238 library_names_spec=$lt_library_names_spec
13240 # The coded name of the library, if different from the real name.
13241 soname_spec=$lt_soname_spec
13243 # Permission mode override for installation of shared libraries.
13244 install_override_mode=$lt_install_override_mode
13246 # Command to use after installation of a shared archive.
13247 postinstall_cmds=$lt_postinstall_cmds
13249 # Command to use after uninstallation of a shared archive.
13250 postuninstall_cmds=$lt_postuninstall_cmds
13252 # Commands used to finish a libtool library installation in a directory.
13253 finish_cmds=$lt_finish_cmds
13255 # As "finish_cmds", except a single script fragment to be evaled but
13256 # not shown.
13257 finish_eval=$lt_finish_eval
13259 # Whether we should hardcode library paths into libraries.
13260 hardcode_into_libs=$hardcode_into_libs
13262 # Compile-time system search path for libraries.
13263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13265 # Run-time system search path for libraries.
13266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13268 # Whether dlopen is supported.
13269 dlopen_support=$enable_dlopen
13271 # Whether dlopen of programs is supported.
13272 dlopen_self=$enable_dlopen_self
13274 # Whether dlopen of statically linked programs is supported.
13275 dlopen_self_static=$enable_dlopen_self_static
13277 # Commands to strip libraries.
13278 old_striplib=$lt_old_striplib
13279 striplib=$lt_striplib
13282 # The linker used to build libraries.
13283 LD=$lt_LD
13285 # How to create reloadable object files.
13286 reload_flag=$lt_reload_flag
13287 reload_cmds=$lt_reload_cmds
13289 # Commands used to build an old-style archive.
13290 old_archive_cmds=$lt_old_archive_cmds
13292 # A language specific compiler.
13293 CC=$lt_compiler
13295 # Is the compiler the GNU compiler?
13296 with_gcc=$GCC
13298 # Compiler flag to turn off builtin functions.
13299 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13301 # How to pass a linker flag through the compiler.
13302 wl=$lt_lt_prog_compiler_wl
13304 # Additional compiler flags for building library objects.
13305 pic_flag=$lt_lt_prog_compiler_pic
13307 # Compiler flag to prevent dynamic linking.
13308 link_static_flag=$lt_lt_prog_compiler_static
13310 # Does compiler simultaneously support -c and -o options?
13311 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13313 # Whether or not to add -lc for building shared libraries.
13314 build_libtool_need_lc=$archive_cmds_need_lc
13316 # Whether or not to disallow shared libs when runtime libs are static.
13317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13319 # Compiler flag to allow reflexive dlopens.
13320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13322 # Compiler flag to generate shared objects directly from archives.
13323 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13325 # Whether the compiler copes with passing no objects directly.
13326 compiler_needs_object=$lt_compiler_needs_object
13328 # Create an old-style archive from a shared archive.
13329 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13331 # Create a temporary old-style archive to link instead of a shared archive.
13332 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13334 # Commands used to build a shared archive.
13335 archive_cmds=$lt_archive_cmds
13336 archive_expsym_cmds=$lt_archive_expsym_cmds
13338 # Commands used to build a loadable module if different from building
13339 # a shared archive.
13340 module_cmds=$lt_module_cmds
13341 module_expsym_cmds=$lt_module_expsym_cmds
13343 # Whether we are building with GNU ld or not.
13344 with_gnu_ld=$lt_with_gnu_ld
13346 # Flag that allows shared libraries with undefined symbols to be built.
13347 allow_undefined_flag=$lt_allow_undefined_flag
13349 # Flag that enforces no undefined symbols.
13350 no_undefined_flag=$lt_no_undefined_flag
13352 # Flag to hardcode \$libdir into a binary during linking.
13353 # This must work even if \$libdir does not exist
13354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13356 # If ld is used when linking, flag to hardcode \$libdir into a binary
13357 # during linking. This must work even if \$libdir does not exist.
13358 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13360 # Whether we need a single "-rpath" flag with a separated argument.
13361 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13364 # DIR into the resulting binary.
13365 hardcode_direct=$hardcode_direct
13367 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13368 # DIR into the resulting binary and the resulting library dependency is
13369 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13370 # library is relocated.
13371 hardcode_direct_absolute=$hardcode_direct_absolute
13373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13374 # into the resulting binary.
13375 hardcode_minus_L=$hardcode_minus_L
13377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13378 # into the resulting binary.
13379 hardcode_shlibpath_var=$hardcode_shlibpath_var
13381 # Set to "yes" if building a shared library automatically hardcodes DIR
13382 # into the library and all subsequent libraries and executables linked
13383 # against it.
13384 hardcode_automatic=$hardcode_automatic
13386 # Set to yes if linker adds runtime paths of dependent libraries
13387 # to runtime path list.
13388 inherit_rpath=$inherit_rpath
13390 # Whether libtool must link a program against all its dependency libraries.
13391 link_all_deplibs=$link_all_deplibs
13393 # Fix the shell variable \$srcfile for the compiler.
13394 fix_srcfile_path=$lt_fix_srcfile_path
13396 # Set to "yes" if exported symbols are required.
13397 always_export_symbols=$always_export_symbols
13399 # The commands to list exported symbols.
13400 export_symbols_cmds=$lt_export_symbols_cmds
13402 # Symbols that should not be listed in the preloaded symbols.
13403 exclude_expsyms=$lt_exclude_expsyms
13405 # Symbols that must always be exported.
13406 include_expsyms=$lt_include_expsyms
13408 # Commands necessary for linking programs (against libraries) with templates.
13409 prelink_cmds=$lt_prelink_cmds
13411 # Specify filename containing input files.
13412 file_list_spec=$lt_file_list_spec
13414 # How to hardcode a shared library path into an executable.
13415 hardcode_action=$hardcode_action
13417 # ### END LIBTOOL CONFIG
13419 _LT_EOF
13421 case $host_os in
13422 aix3*)
13423 cat <<\_LT_EOF >> "$cfgfile"
13424 # AIX sometimes has problems with the GCC collect2 program. For some
13425 # reason, if we set the COLLECT_NAMES environment variable, the problems
13426 # vanish in a puff of smoke.
13427 if test "X${COLLECT_NAMES+set}" != Xset; then
13428 COLLECT_NAMES=
13429 export COLLECT_NAMES
13431 _LT_EOF
13433 esac
13436 ltmain="$ac_aux_dir/ltmain.sh"
13439 # We use sed instead of cat because bash on DJGPP gets confused if
13440 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13441 # text mode, it properly converts lines to CR/LF. This bash problem
13442 # is reportedly fixed, but why not run on old versions too?
13443 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13444 || (rm -f "$cfgfile"; exit 1)
13446 case $xsi_shell in
13447 yes)
13448 cat << \_LT_EOF >> "$cfgfile"
13450 # func_dirname file append nondir_replacement
13451 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13452 # otherwise set result to NONDIR_REPLACEMENT.
13453 func_dirname ()
13455 case ${1} in
13456 */*) func_dirname_result="${1%/*}${2}" ;;
13457 * ) func_dirname_result="${3}" ;;
13458 esac
13461 # func_basename file
13462 func_basename ()
13464 func_basename_result="${1##*/}"
13467 # func_dirname_and_basename file append nondir_replacement
13468 # perform func_basename and func_dirname in a single function
13469 # call:
13470 # dirname: Compute the dirname of FILE. If nonempty,
13471 # add APPEND to the result, otherwise set result
13472 # to NONDIR_REPLACEMENT.
13473 # value returned in "$func_dirname_result"
13474 # basename: Compute filename of FILE.
13475 # value retuned in "$func_basename_result"
13476 # Implementation must be kept synchronized with func_dirname
13477 # and func_basename. For efficiency, we do not delegate to
13478 # those functions but instead duplicate the functionality here.
13479 func_dirname_and_basename ()
13481 case ${1} in
13482 */*) func_dirname_result="${1%/*}${2}" ;;
13483 * ) func_dirname_result="${3}" ;;
13484 esac
13485 func_basename_result="${1##*/}"
13488 # func_stripname prefix suffix name
13489 # strip PREFIX and SUFFIX off of NAME.
13490 # PREFIX and SUFFIX must not contain globbing or regex special
13491 # characters, hashes, percent signs, but SUFFIX may contain a leading
13492 # dot (in which case that matches only a dot).
13493 func_stripname ()
13495 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13496 # positional parameters, so assign one to ordinary parameter first.
13497 func_stripname_result=${3}
13498 func_stripname_result=${func_stripname_result#"${1}"}
13499 func_stripname_result=${func_stripname_result%"${2}"}
13502 # func_opt_split
13503 func_opt_split ()
13505 func_opt_split_opt=${1%%=*}
13506 func_opt_split_arg=${1#*=}
13509 # func_lo2o object
13510 func_lo2o ()
13512 case ${1} in
13513 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13514 *) func_lo2o_result=${1} ;;
13515 esac
13518 # func_xform libobj-or-source
13519 func_xform ()
13521 func_xform_result=${1%.*}.lo
13524 # func_arith arithmetic-term...
13525 func_arith ()
13527 func_arith_result=$(( $* ))
13530 # func_len string
13531 # STRING may not start with a hyphen.
13532 func_len ()
13534 func_len_result=${#1}
13537 _LT_EOF
13539 *) # Bourne compatible functions.
13540 cat << \_LT_EOF >> "$cfgfile"
13542 # func_dirname file append nondir_replacement
13543 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13544 # otherwise set result to NONDIR_REPLACEMENT.
13545 func_dirname ()
13547 # Extract subdirectory from the argument.
13548 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13549 if test "X$func_dirname_result" = "X${1}"; then
13550 func_dirname_result="${3}"
13551 else
13552 func_dirname_result="$func_dirname_result${2}"
13556 # func_basename file
13557 func_basename ()
13559 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13563 # func_stripname prefix suffix name
13564 # strip PREFIX and SUFFIX off of NAME.
13565 # PREFIX and SUFFIX must not contain globbing or regex special
13566 # characters, hashes, percent signs, but SUFFIX may contain a leading
13567 # dot (in which case that matches only a dot).
13568 # func_strip_suffix prefix name
13569 func_stripname ()
13571 case ${2} in
13572 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13573 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13574 esac
13577 # sed scripts:
13578 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13579 my_sed_long_arg='1s/^-[^=]*=//'
13581 # func_opt_split
13582 func_opt_split ()
13584 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13585 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13588 # func_lo2o object
13589 func_lo2o ()
13591 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13594 # func_xform libobj-or-source
13595 func_xform ()
13597 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13600 # func_arith arithmetic-term...
13601 func_arith ()
13603 func_arith_result=`expr "$@"`
13606 # func_len string
13607 # STRING may not start with a hyphen.
13608 func_len ()
13610 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13613 _LT_EOF
13614 esac
13616 case $lt_shell_append in
13617 yes)
13618 cat << \_LT_EOF >> "$cfgfile"
13620 # func_append var value
13621 # Append VALUE to the end of shell variable VAR.
13622 func_append ()
13624 eval "$1+=\$2"
13626 _LT_EOF
13629 cat << \_LT_EOF >> "$cfgfile"
13631 # func_append var value
13632 # Append VALUE to the end of shell variable VAR.
13633 func_append ()
13635 eval "$1=\$$1\$2"
13638 _LT_EOF
13640 esac
13643 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13644 || (rm -f "$cfgfile"; exit 1)
13646 mv -f "$cfgfile" "$ofile" ||
13647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13648 chmod +x "$ofile"
13652 esac
13653 done # for ac_tag
13656 as_fn_exit 0
13657 _ACEOF
13658 ac_clean_files=$ac_clean_files_save
13660 test $ac_write_fail = 0 ||
13661 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13664 # configure is writing to config.log, and then calls config.status.
13665 # config.status does its own redirection, appending to config.log.
13666 # Unfortunately, on DOS this fails, as config.log is still kept open
13667 # by configure, so config.status won't be able to write to it; its
13668 # output is simply discarded. So we exec the FD to /dev/null,
13669 # effectively closing config.log, so it can be properly (re)opened and
13670 # appended to by config.status. When coming back to configure, we
13671 # need to make the FD available again.
13672 if test "$no_create" != yes; then
13673 ac_cs_success=:
13674 ac_config_status_args=
13675 test "$silent" = yes &&
13676 ac_config_status_args="$ac_config_status_args --quiet"
13677 exec 5>/dev/null
13678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13679 exec 5>>config.log
13680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13681 # would make configure fail if this is the last instruction.
13682 $ac_cs_success || as_fn_exit 1
13684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13686 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}