* g++.dg/cpp/ucn-1.C: Fix typo.
[official-gcc.git] / libssp / configure
blob44b00bad10f067085d465fbf9376a64a3c38c09d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libssp 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libssp'
558 PACKAGE_TARNAME='libssp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='libssp 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="ssp.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 toolexeclibdir
606 toolexecdir
607 enable_static
608 enable_shared
609 lt_host_flags
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 RANLIB
617 OBJDUMP
618 LN_S
620 ac_ct_DUMPBIN
621 DUMPBIN
623 FGREP
625 LIBTOOL
626 ssp_have_usable_vsnprintf
627 EGREP
628 GREP
629 LIBSSP_USE_SYMVER_SUN_FALSE
630 LIBSSP_USE_SYMVER_SUN_TRUE
631 LIBSSP_USE_SYMVER_GNU_FALSE
632 LIBSSP_USE_SYMVER_GNU_TRUE
633 LIBSSP_USE_SYMVER_FALSE
634 LIBSSP_USE_SYMVER_TRUE
636 am__fastdepCC_FALSE
637 am__fastdepCC_TRUE
638 CCDEPMODE
639 am__nodep
640 AMDEPBACKSLASH
641 AMDEP_FALSE
642 AMDEP_TRUE
643 am__quote
644 am__include
645 DEPDIR
646 OBJEXT
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 LDFLAGS
651 CFLAGS
653 multi_basedir
654 MAINT
655 MAINTAINER_MODE_FALSE
656 MAINTAINER_MODE_TRUE
657 am__untar
658 am__tar
659 AMTAR
660 am__leading_dot
661 SET_MAKE
663 mkdir_p
664 MKDIR_P
665 INSTALL_STRIP_PROGRAM
666 STRIP
667 install_sh
668 MAKEINFO
669 AUTOHEADER
670 AUTOMAKE
671 AUTOCONF
672 ACLOCAL
673 VERSION
674 PACKAGE
675 CYGPATH_W
676 am__isrc
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 target_noncanonical
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_version_specific_runtime_libs
735 enable_maintainer_mode
736 enable_multilib
737 enable_dependency_tracking
738 enable_symvers
739 enable_shared
740 enable_static
741 with_pic
742 enable_fast_install
743 with_gnu_ld
744 enable_libtool_lock
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
750 CPPFLAGS'
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 ac_unrecognized_opts=
757 ac_unrecognized_sep=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
801 ac_prev=
802 ac_dashdash=
803 for ac_option
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
821 ac_dashdash=yes ;;
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
840 --config-cache | -C)
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) as_fn_error "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information."
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 esac
1158 done
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error "missing argument to $ac_option"
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206 If a cross compiler is detected then cross compile mode will be used." >&2
1207 elif test "x$build_alias" != "x$host_alias"; then
1208 cross_compiling=yes
1212 ac_tool_prefix=
1213 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1215 test "$silent" = yes && exec 6>/dev/null
1218 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219 ac_ls_di=`ls -di .` &&
1220 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221 as_fn_error "working directory cannot be determined"
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 as_fn_error "pwd does not report name of working directory"
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$as_myself" ||
1231 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$as_myself" : 'X\(//\)[^/]' \| \
1233 X"$as_myself" : 'X\(//\)$' \| \
1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235 $as_echo X"$as_myself" |
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 s//\1/
1240 /^X\(\/\/\)[^/].*/{
1241 s//\1/
1244 /^X\(\/\/\)$/{
1245 s//\1/
1248 /^X\(\/\).*/{
1249 s//\1/
1252 s/.*/./; q'`
1253 srcdir=$ac_confdir
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 srcdir=..
1257 else
1258 ac_srcdir_defaulted=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/libssp]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1347 cat <<\_ACEOF
1349 Program names:
1350 --program-prefix=PREFIX prepend PREFIX to installed program names
1351 --program-suffix=SUFFIX append SUFFIX to installed program names
1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354 System types:
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 --target=TARGET configure for building compilers for TARGET [HOST]
1358 _ACEOF
1361 if test -n "$ac_init_help"; then
1362 case $ac_init_help in
1363 short | recursive ) echo "Configuration of libssp 1.0:";;
1364 esac
1365 cat <<\_ACEOF
1367 Optional Features:
1368 --disable-option-checking ignore unrecognized --enable/--with options
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1371 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1372 --enable-maintainer-mode enable make rules and dependencies not useful
1373 (and sometimes confusing) to the casual installer
1374 --enable-multilib build many library versions (default)
1375 --disable-dependency-tracking speeds up one-time build
1376 --enable-dependency-tracking do not reject slow dependency extractors
1377 --disable-symvers disable symbol versioning for libssp
1378 --enable-shared[=PKGS] build shared libraries [default=yes]
1379 --enable-static[=PKGS] build static libraries [default=yes]
1380 --enable-fast-install[=PKGS]
1381 optimize for fast installation [default=yes]
1382 --disable-libtool-lock avoid locking (might break parallel builds)
1384 Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-pic try to use only PIC/non-PIC objects [default=use
1388 both]
1389 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CPP C preprocessor
1401 Use these variables to override the choices made by `configure' or to help
1402 it to find libraries and programs with nonstandard names/locations.
1404 Report bugs to the package provider.
1405 _ACEOF
1406 ac_status=$?
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" ||
1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 continue
1415 ac_builddir=.
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1433 case $srcdir in
1434 .) # We are building in place.
1435 ac_srcdir=.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1457 else
1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1461 done
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466 cat <<\_ACEOF
1467 libssp configure 1.0
1468 generated by GNU Autoconf 2.64
1470 Copyright (C) 2009 Free Software Foundation, Inc.
1471 This configure script is free software; the Free Software Foundation
1472 gives unlimited permission to copy, distribute and modify it.
1473 _ACEOF
1474 exit
1477 ## ------------------------ ##
1478 ## Autoconf initialization. ##
1479 ## ------------------------ ##
1481 # ac_fn_c_try_compile LINENO
1482 # --------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_c_try_compile ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1512 ac_retval=1
1514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1515 return $ac_retval
1517 } # ac_fn_c_try_compile
1519 # ac_fn_c_try_cpp LINENO
1520 # ----------------------
1521 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_cpp ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 if { { ac_try="$ac_cpp conftest.$ac_ext"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } >/dev/null && {
1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 }; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549 ac_retval=1
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
1554 } # ac_fn_c_try_cpp
1556 # ac_fn_c_try_link LINENO
1557 # -----------------------
1558 # Try to link conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_link ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 $as_test_x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1600 } # ac_fn_c_try_link
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1606 # accordingly.
1607 ac_fn_c_check_header_mongrel ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1614 $as_echo_n "(cached) " >&6
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619 else
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1630 else
1631 ac_header_compiler=no
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646 else
1647 ac_header_preproc=no
1649 rm -f conftest.err conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1729 } # ac_fn_c_try_run
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_check_func LINENO FUNC VAR
1763 # ----------------------------------
1764 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1765 ac_fn_c_check_func ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 if test x$gcc_no_link = xyes; then
1774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1787 #ifdef __STDC__
1788 # include <limits.h>
1789 #else
1790 # include <assert.h>
1791 #endif
1793 #undef $2
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1798 #ifdef __cplusplus
1799 extern "C"
1800 #endif
1801 char $2 ();
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1806 choke me
1807 #endif
1810 main ()
1812 return $2 ();
1814 return 0;
1816 _ACEOF
1817 if ac_fn_c_try_link "$LINENO"; then :
1818 eval "$3=yes"
1819 else
1820 eval "$3=no"
1822 rm -f core conftest.err conftest.$ac_objext \
1823 conftest$ac_exeext conftest.$ac_ext
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_func
1831 cat >config.log <<_ACEOF
1832 This file contains any messages produced by compilers while
1833 running configure, to aid debugging if configure makes a mistake.
1835 It was created by libssp $as_me 1.0, which was
1836 generated by GNU Autoconf 2.64. Invocation command line was
1838 $ $0 $@
1840 _ACEOF
1841 exec 5>>config.log
1843 cat <<_ASUNAME
1844 ## --------- ##
1845 ## Platform. ##
1846 ## --------- ##
1848 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1849 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1850 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1851 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1852 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1855 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1857 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1858 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1859 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1860 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1861 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1862 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1863 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1865 _ASUNAME
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 $as_echo "PATH: $as_dir"
1873 done
1874 IFS=$as_save_IFS
1876 } >&5
1878 cat >&5 <<_ACEOF
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1885 _ACEOF
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1899 for ac_arg
1901 case $ac_arg in
1902 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904 | -silent | --silent | --silen | --sile | --sil)
1905 continue ;;
1906 *\'*)
1907 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 esac
1909 case $ac_pass in
1910 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912 as_fn_append ac_configure_args1 " '$ac_arg'"
1913 if test $ac_must_keep_next = true; then
1914 ac_must_keep_next=false # Got value, back to normal.
1915 else
1916 case $ac_arg in
1917 *=* | --config-cache | -C | -disable-* | --disable-* \
1918 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920 | -with-* | --with-* | -without-* | --without-* | --x)
1921 case "$ac_configure_args0 " in
1922 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923 esac
1925 -* ) ac_must_keep_next=true ;;
1926 esac
1928 as_fn_append ac_configure_args " '$ac_arg'"
1930 esac
1931 done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log. We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942 # Save into config.log some information that might help in debugging.
1944 echo
1946 cat <<\_ASBOX
1947 ## ---------------- ##
1948 ## Cache variables. ##
1949 ## ---------------- ##
1950 _ASBOX
1951 echo
1952 # The following way of writing the cache mishandles newlines in values,
1954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955 eval ac_val=\$$ac_var
1956 case $ac_val in #(
1957 *${as_nl}*)
1958 case $ac_var in #(
1959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1961 esac
1962 case $ac_var in #(
1963 _ | IFS | as_nl) ;; #(
1964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965 *) { eval $ac_var=; unset $ac_var;} ;;
1966 esac ;;
1967 esac
1968 done
1969 (set) 2>&1 |
1970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971 *${as_nl}ac_space=\ *)
1972 sed -n \
1973 "s/'\''/'\''\\\\'\'''\''/g;
1974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1975 ;; #(
1977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1979 esac |
1980 sort
1982 echo
1984 cat <<\_ASBOX
1985 ## ----------------- ##
1986 ## Output variables. ##
1987 ## ----------------- ##
1988 _ASBOX
1989 echo
1990 for ac_var in $ac_subst_vars
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 $as_echo "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
2000 if test -n "$ac_subst_files"; then
2001 cat <<\_ASBOX
2002 ## ------------------- ##
2003 ## File substitutions. ##
2004 ## ------------------- ##
2005 _ASBOX
2006 echo
2007 for ac_var in $ac_subst_files
2009 eval ac_val=\$$ac_var
2010 case $ac_val in
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012 esac
2013 $as_echo "$ac_var='\''$ac_val'\''"
2014 done | sort
2015 echo
2018 if test -s confdefs.h; then
2019 cat <<\_ASBOX
2020 ## ----------- ##
2021 ## confdefs.h. ##
2022 ## ----------- ##
2023 _ASBOX
2024 echo
2025 cat confdefs.h
2026 echo
2028 test "$ac_signal" != 0 &&
2029 $as_echo "$as_me: caught signal $ac_signal"
2030 $as_echo "$as_me: exit $exit_status"
2031 } >&5
2032 rm -f core *.core core.conftest.* &&
2033 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034 exit $exit_status
2036 for ac_signal in 1 2 13 15; do
2037 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2038 done
2039 ac_signal=0
2041 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2042 rm -f -r conftest* confdefs.h
2044 $as_echo "/* confdefs.h */" > confdefs.h
2046 # Predefined preprocessor variables.
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_NAME "$PACKAGE_NAME"
2050 _ACEOF
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054 _ACEOF
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2058 _ACEOF
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_STRING "$PACKAGE_STRING"
2062 _ACEOF
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066 _ACEOF
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_URL "$PACKAGE_URL"
2070 _ACEOF
2073 # Let the site file select an alternate cache file if it wants to.
2074 # Prefer an explicitly selected file to automatically selected ones.
2075 ac_site_file1=NONE
2076 ac_site_file2=NONE
2077 if test -n "$CONFIG_SITE"; then
2078 ac_site_file1=$CONFIG_SITE
2079 elif test "x$prefix" != xNONE; then
2080 ac_site_file1=$prefix/share/config.site
2081 ac_site_file2=$prefix/etc/config.site
2082 else
2083 ac_site_file1=$ac_default_prefix/share/config.site
2084 ac_site_file2=$ac_default_prefix/etc/config.site
2086 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 test "x$ac_site_file" = xNONE && continue
2089 if test -r "$ac_site_file"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2091 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2092 sed 's/^/| /' "$ac_site_file" >&5
2093 . "$ac_site_file"
2095 done
2097 if test -r "$cache_file"; then
2098 # Some versions of bash will fail to source /dev/null (special
2099 # files actually), so we avoid doing that.
2100 if test -f "$cache_file"; then
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102 $as_echo "$as_me: loading cache $cache_file" >&6;}
2103 case $cache_file in
2104 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105 *) . "./$cache_file";;
2106 esac
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110 $as_echo "$as_me: creating cache $cache_file" >&6;}
2111 >$cache_file
2114 # Check that the precious variables saved in the cache have kept the same
2115 # value.
2116 ac_cache_corrupted=false
2117 for ac_var in $ac_precious_vars; do
2118 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119 eval ac_new_set=\$ac_env_${ac_var}_set
2120 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121 eval ac_new_val=\$ac_env_${ac_var}_value
2122 case $ac_old_set,$ac_new_set in
2123 set,)
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126 ac_cache_corrupted=: ;;
2127 ,set)
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130 ac_cache_corrupted=: ;;
2131 ,);;
2133 if test "x$ac_old_val" != "x$ac_new_val"; then
2134 # differences in whitespace do not lead to failure.
2135 ac_old_val_w=`echo x $ac_old_val`
2136 ac_new_val_w=`echo x $ac_new_val`
2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140 ac_cache_corrupted=:
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144 eval $ac_var=\$ac_old_val
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2147 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2149 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2150 fi;;
2151 esac
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2154 case $ac_new_val in
2155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2157 esac
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161 esac
2163 done
2164 if $ac_cache_corrupted; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2171 ## -------------------- ##
2172 ## Main body of script. ##
2173 ## -------------------- ##
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 ac_aux_dir=
2187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2188 for ac_t in install-sh install.sh shtool; do
2189 if test -f "$ac_dir/$ac_t"; then
2190 ac_aux_dir=$ac_dir
2191 ac_install_sh="$ac_aux_dir/$ac_t -c"
2192 break 2
2194 done
2195 done
2196 if test -z "$ac_aux_dir"; then
2197 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2200 # These three variables are undocumented and unsupported,
2201 # and are intended to be withdrawn in a future Autoconf release.
2202 # They can cause serious problems if a builder's source tree is in a directory
2203 # whose full name contains unusual characters.
2204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2209 # Make sure we can run config.sub.
2210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2211 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2214 $as_echo_n "checking build system type... " >&6; }
2215 if test "${ac_cv_build+set}" = set; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 ac_build_alias=$build_alias
2219 test "x$ac_build_alias" = x &&
2220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2221 test "x$ac_build_alias" = x &&
2222 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2223 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2224 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2228 $as_echo "$ac_cv_build" >&6; }
2229 case $ac_cv_build in
2230 *-*-*) ;;
2231 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2232 esac
2233 build=$ac_cv_build
2234 ac_save_IFS=$IFS; IFS='-'
2235 set x $ac_cv_build
2236 shift
2237 build_cpu=$1
2238 build_vendor=$2
2239 shift; shift
2240 # Remember, the first character of IFS is used to create $*,
2241 # except with old shells:
2242 build_os=$*
2243 IFS=$ac_save_IFS
2244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2248 $as_echo_n "checking host system type... " >&6; }
2249 if test "${ac_cv_host+set}" = set; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 if test "x$host_alias" = x; then
2253 ac_cv_host=$ac_cv_build
2254 else
2255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2256 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2261 $as_echo "$ac_cv_host" >&6; }
2262 case $ac_cv_host in
2263 *-*-*) ;;
2264 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2265 esac
2266 host=$ac_cv_host
2267 ac_save_IFS=$IFS; IFS='-'
2268 set x $ac_cv_host
2269 shift
2270 host_cpu=$1
2271 host_vendor=$2
2272 shift; shift
2273 # Remember, the first character of IFS is used to create $*,
2274 # except with old shells:
2275 host_os=$*
2276 IFS=$ac_save_IFS
2277 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2281 $as_echo_n "checking target system type... " >&6; }
2282 if test "${ac_cv_target+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 if test "x$target_alias" = x; then
2286 ac_cv_target=$ac_cv_host
2287 else
2288 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2289 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2294 $as_echo "$ac_cv_target" >&6; }
2295 case $ac_cv_target in
2296 *-*-*) ;;
2297 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2298 esac
2299 target=$ac_cv_target
2300 ac_save_IFS=$IFS; IFS='-'
2301 set x $ac_cv_target
2302 shift
2303 target_cpu=$1
2304 target_vendor=$2
2305 shift; shift
2306 # Remember, the first character of IFS is used to create $*,
2307 # except with old shells:
2308 target_os=$*
2309 IFS=$ac_save_IFS
2310 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2313 # The aliases save the names the user supplied, while $host etc.
2314 # will get canonicalized.
2315 test -n "$target_alias" &&
2316 test "$program_prefix$program_suffix$program_transform_name" = \
2317 NONENONEs,x,x, &&
2318 program_prefix=${target_alias}-
2320 case ${build_alias} in
2321 "") build_noncanonical=${build} ;;
2322 *) build_noncanonical=${build_alias} ;;
2323 esac
2325 case ${host_alias} in
2326 "") host_noncanonical=${build_noncanonical} ;;
2327 *) host_noncanonical=${host_alias} ;;
2328 esac
2330 case ${target_alias} in
2331 "") target_noncanonical=${host_noncanonical} ;;
2332 *) target_noncanonical=${target_alias} ;;
2333 esac
2338 am__api_version='1.11'
2340 # Find a good install program. We prefer a C program (faster),
2341 # so one script is as good as another. But avoid the broken or
2342 # incompatible versions:
2343 # SysV /etc/install, /usr/sbin/install
2344 # SunOS /usr/etc/install
2345 # IRIX /sbin/install
2346 # AIX /bin/install
2347 # AmigaOS /C/install, which installs bootblocks on floppy discs
2348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2351 # OS/2's system install, which has a completely different semantic
2352 # ./install, which can be erroneously created by make from ./install.sh.
2353 # Reject install programs that cannot install multiple files.
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2355 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2356 if test -z "$INSTALL"; then
2357 if test "${ac_cv_path_install+set}" = set; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 # Account for people who put trailing slashes in PATH elements.
2366 case $as_dir/ in #((
2367 ./ | .// | /[cC]/* | \
2368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2369 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2370 /usr/ucb/* ) ;;
2372 # OSF1 and SCO ODT 3.0 have their own names for install.
2373 # Don't use installbsd from OSF since it installs stuff as root
2374 # by default.
2375 for ac_prog in ginstall scoinst install; do
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2378 if test $ac_prog = install &&
2379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # AIX install. It has an incompatible calling convention.
2382 elif test $ac_prog = install &&
2383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384 # program-specific install script used by HP pwplus--don't use.
2386 else
2387 rm -rf conftest.one conftest.two conftest.dir
2388 echo one > conftest.one
2389 echo two > conftest.two
2390 mkdir conftest.dir
2391 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2392 test -s conftest.one && test -s conftest.two &&
2393 test -s conftest.dir/conftest.one &&
2394 test -s conftest.dir/conftest.two
2395 then
2396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 break 3
2401 done
2402 done
2404 esac
2406 done
2407 IFS=$as_save_IFS
2409 rm -rf conftest.one conftest.two conftest.dir
2412 if test "${ac_cv_path_install+set}" = set; then
2413 INSTALL=$ac_cv_path_install
2414 else
2415 # As a last resort, use the slow shell script. Don't cache a
2416 # value for INSTALL within a source directory, because that will
2417 # break other packages using the cache if that directory is
2418 # removed, or if the value is a relative name.
2419 INSTALL=$ac_install_sh
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2423 $as_echo "$INSTALL" >&6; }
2425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2426 # It thinks the first close brace ends the variable substitution.
2427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2434 $as_echo_n "checking whether build environment is sane... " >&6; }
2435 # Just in case
2436 sleep 1
2437 echo timestamp > conftest.file
2438 # Reject unsafe characters in $srcdir or the absolute working directory
2439 # name. Accept space and tab only in the latter.
2440 am_lf='
2442 case `pwd` in
2443 *[\\\"\#\$\&\'\`$am_lf]*)
2444 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2445 esac
2446 case $srcdir in
2447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2448 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2449 esac
2451 # Do `set' in a subshell so we don't clobber the current shell's
2452 # arguments. Must try -L first in case configure is actually a
2453 # symlink; some systems play weird games with the mod time of symlinks
2454 # (eg FreeBSD returns the mod time of the symlink's containing
2455 # directory).
2456 if (
2457 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2458 if test "$*" = "X"; then
2459 # -L didn't work.
2460 set X `ls -t "$srcdir/configure" conftest.file`
2462 rm -f conftest.file
2463 if test "$*" != "X $srcdir/configure conftest.file" \
2464 && test "$*" != "X conftest.file $srcdir/configure"; then
2466 # If neither matched, then we have a broken ls. This can happen
2467 # if, for instance, CONFIG_SHELL is bash and it inherits a
2468 # broken ls alias from the environment. This has actually
2469 # happened. Such a system could not be considered "sane".
2470 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2471 alias in your environment" "$LINENO" 5
2474 test "$2" = conftest.file
2476 then
2477 # Ok.
2479 else
2480 as_fn_error "newly created file is older than distributed files!
2481 Check your system clock" "$LINENO" 5
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2485 test "$program_prefix" != NONE &&
2486 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495 # expand $ac_aux_dir to an absolute path
2496 am_aux_dir=`cd $ac_aux_dir && pwd`
2498 if test x"${MISSING+set}" != xset; then
2499 case $am_aux_dir in
2500 *\ * | *\ *)
2501 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2504 esac
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --run true"; then
2508 am_missing_run="$MISSING --run "
2509 else
2510 am_missing_run=
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2515 if test x"${install_sh}" != xset; then
2516 case $am_aux_dir in
2517 *\ * | *\ *)
2518 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 install_sh="\${SHELL} $am_aux_dir/install-sh"
2521 esac
2524 # Installed binaries are usually stripped using `strip' when the user
2525 # run `make install-strip'. However `strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the `STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_STRIP+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$STRIP"; then
2538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2568 if test -z "$ac_cv_prog_STRIP"; then
2569 ac_ct_STRIP=$STRIP
2570 # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$ac_ct_STRIP"; then
2578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_STRIP="strip"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2606 if test "x$ac_ct_STRIP" = x; then
2607 STRIP=":"
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 STRIP=$ac_ct_STRIP
2617 else
2618 STRIP="$ac_cv_prog_STRIP"
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627 if test "${ac_cv_path_mkdir+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_prog in mkdir gmkdir; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2638 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639 'mkdir (GNU coreutils) '* | \
2640 'mkdir (coreutils) '* | \
2641 'mkdir (fileutils) '4.1*)
2642 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643 break 3;;
2644 esac
2645 done
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 if test "${ac_cv_path_mkdir+set}" = set; then
2653 MKDIR_P="$ac_cv_path_mkdir -p"
2654 else
2655 # As a last resort, use the slow shell script. Don't cache a
2656 # value for MKDIR_P within a source directory, because that will
2657 # break other packages using the cache if that directory is
2658 # removed, or if the value is a relative name.
2659 test -d ./--version && rmdir ./--version
2660 MKDIR_P="$ac_install_sh -d"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2666 mkdir_p="$MKDIR_P"
2667 case $mkdir_p in
2668 [\\/$]* | ?:[\\/]*) ;;
2669 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2670 esac
2672 for ac_prog in gawk mawk nawk awk
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_AWK+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2711 test -n "$AWK" && break
2712 done
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2716 set x ${MAKE-make}
2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 cat >conftest.make <<\_ACEOF
2722 SHELL = /bin/sh
2723 all:
2724 @echo '@@@%%%=$(MAKE)=@@@%%%'
2725 _ACEOF
2726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2728 *@@@%%%=?*=@@@%%%*)
2729 eval ac_cv_prog_make_${ac_make}_set=yes;;
2731 eval ac_cv_prog_make_${ac_make}_set=no;;
2732 esac
2733 rm -f conftest.make
2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 SET_MAKE=
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 SET_MAKE="MAKE=${MAKE-make}"
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2748 am__leading_dot=.
2749 else
2750 am__leading_dot=_
2752 rmdir .tst 2>/dev/null
2754 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756 # is not polluted with repeated "-I."
2757 am__isrc=' -I$(srcdir)'
2758 # test to see if srcdir already configured
2759 if test -f $srcdir/config.status; then
2760 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2764 # test whether we have cygpath
2765 if test -z "$CYGPATH_W"; then
2766 if (cygpath --version) >/dev/null 2>/dev/null; then
2767 CYGPATH_W='cygpath -w'
2768 else
2769 CYGPATH_W=echo
2774 # Define the identity of the package.
2775 PACKAGE='libssp'
2776 VERSION='1.0'
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE "$PACKAGE"
2781 _ACEOF
2784 cat >>confdefs.h <<_ACEOF
2785 #define VERSION "$VERSION"
2786 _ACEOF
2788 # Some tools Automake needs.
2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2804 # We need awk for the "check" target. The system "awk" is bad on
2805 # some platforms.
2806 # Always define AMTAR for backward compatibility. Yes, it's still used
2807 # in the wild :-( We should find a proper way to deprecate it ...
2808 AMTAR='$${TAR-tar}'
2810 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2818 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2819 # Check whether --enable-version-specific-runtime-libs was given.
2820 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2821 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2822 yes) version_specific_libs=yes ;;
2823 no) version_specific_libs=no ;;
2824 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2825 esac
2826 else
2827 version_specific_libs=no
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2831 $as_echo "$version_specific_libs" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2835 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2836 # Check whether --enable-maintainer-mode was given.
2837 if test "${enable_maintainer_mode+set}" = set; then :
2838 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2839 else
2840 USE_MAINTAINER_MODE=no
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2844 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2845 if test $USE_MAINTAINER_MODE = yes; then
2846 MAINTAINER_MODE_TRUE=
2847 MAINTAINER_MODE_FALSE='#'
2848 else
2849 MAINTAINER_MODE_TRUE='#'
2850 MAINTAINER_MODE_FALSE=
2853 MAINT=$MAINTAINER_MODE_TRUE
2859 # Default to --enable-multilib
2860 # Check whether --enable-multilib was given.
2861 if test "${enable_multilib+set}" = set; then :
2862 enableval=$enable_multilib; case "$enableval" in
2863 yes) multilib=yes ;;
2864 no) multilib=no ;;
2865 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2866 esac
2867 else
2868 multilib=yes
2872 # We may get other options which we leave undocumented:
2873 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2874 # See config-ml.in if you want the gory details.
2876 if test "$srcdir" = "."; then
2877 if test "$with_target_subdir" != "."; then
2878 multi_basedir="$srcdir/$with_multisrctop../.."
2879 else
2880 multi_basedir="$srcdir/$with_multisrctop.."
2882 else
2883 multi_basedir="$srcdir/.."
2887 # Even if the default multilib is not a cross compilation,
2888 # it may be that some of the other multilibs are.
2889 if test $cross_compiling = no && test $multilib = yes \
2890 && test "x${with_multisubdir}" != x ; then
2891 cross_compiling=maybe
2894 ac_config_commands="$ac_config_commands default-1"
2897 target_alias=${target_alias-$host_alias}
2900 ac_config_headers="$ac_config_headers config.h"
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2910 # We must force CC to /not/ be precious variables; otherwise
2911 # the wrong, non-multilib-adjusted value will be used in multilibs.
2912 # As a side effect, we have to subst CFLAGS ourselves.
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_CC"; then
2961 ac_ct_CC=$CC
2962 # Extract the first word of "gcc", so it can be a program name with args.
2963 set dummy gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_CC" = x; then
2999 CC=""
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007 CC=$ac_ct_CC
3009 else
3010 CC="$ac_cv_prog_CC"
3013 if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3054 if test -z "$CC"; then
3055 # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 ac_prog_rejected=no
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074 ac_prog_rejected=yes
3075 continue
3077 ac_cv_prog_CC="cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3085 if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3088 shift
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3093 shift
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3135 done
3136 done
3137 IFS=$as_save_IFS
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3151 test -n "$CC" && break
3152 done
3154 if test -z "$CC"; then
3155 ac_ct_CC=$CC
3156 for ac_prog in cl.exe
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_ac_ct_CC="$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3181 IFS=$as_save_IFS
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3195 test -n "$ac_ct_CC" && break
3196 done
3198 if test "x$ac_ct_CC" = x; then
3199 CC=""
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207 CC=$ac_ct_CC
3214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error "no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details." "$LINENO" 5; }
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221 set X $ac_compile
3222 ac_compiler=$2
3223 for ac_option in --version -v -V -qversion; do
3224 { { ac_try="$ac_compiler $ac_option >&5"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232 ac_status=$?
3233 if test -s conftest.err; then
3234 sed '10a\
3235 ... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3238 rm -f conftest.er1 conftest.err
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 done
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 # FIXME: Cleanup?
3256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3257 (eval $ac_link) 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; then :
3261 gcc_no_link=no
3262 else
3263 gcc_no_link=yes
3265 if test x$gcc_no_link = xyes; then
3266 # Setting cross_compile will disable run tests; it will
3267 # also disable AC_CHECK_FILE but that's generally
3268 # correct if we can't link.
3269 cross_compiling=yes
3270 EXEEXT=
3271 else
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 ac_clean_files_save=$ac_clean_files
3284 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3285 # Try to create an executable without -o first, disregard a.out.
3286 # It will help us diagnose broken compilers, and finding out an intuition
3287 # of exeext.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3289 $as_echo_n "checking for C compiler default output file name... " >&6; }
3290 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292 # The possible output files:
3293 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295 ac_rmfiles=
3296 for ac_file in $ac_files
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3300 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3301 esac
3302 done
3303 rm -f $ac_rmfiles
3305 if { { ac_try="$ac_link_default"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_link_default") 2>&5
3313 ac_status=$?
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }; then :
3316 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3317 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3318 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3319 # so that the user can short-circuit this test for compilers unknown to
3320 # Autoconf.
3321 for ac_file in $ac_files ''
3323 test -f "$ac_file" || continue
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3327 [ab].out )
3328 # We found the default executable, but exeext='' is most
3329 # certainly right.
3330 break;;
3331 *.* )
3332 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3333 then :; else
3334 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 # We set ac_cv_exeext here because the later test for it is not
3337 # safe: cross compilers may not add the suffix if given an `-o'
3338 # argument, so we may need to know it at that point already.
3339 # Even if this section looks crufty: it has the advantage of
3340 # actually working.
3341 break;;
3343 break;;
3344 esac
3345 done
3346 test "$ac_cv_exeext" = no && ac_cv_exeext=
3348 else
3349 ac_file=''
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3352 $as_echo "$ac_file" >&6; }
3353 if test -z "$ac_file"; then :
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { as_fn_set_status 77
3360 as_fn_error "C compiler cannot create executables
3361 See \`config.log' for more details." "$LINENO" 5; }; }
3363 ac_exeext=$ac_cv_exeext
3365 # Check that the compiler produces executables we can run. If not, either
3366 # the compiler is broken, or we cross compile.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3368 $as_echo_n "checking whether the C compiler works... " >&6; }
3369 # If not cross compiling, check that we can run a simple program.
3370 if test "$cross_compiling" != yes; then
3371 if { ac_try='./$ac_file'
3372 { { case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_try") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; }; then
3382 cross_compiling=no
3383 else
3384 if test "$cross_compiling" = maybe; then
3385 cross_compiling=yes
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error "cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details." "$LINENO" 5; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396 $as_echo "yes" >&6; }
3398 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3399 ac_clean_files=$ac_clean_files_save
3400 # Check that the compiler produces executables we can run. If not, either
3401 # the compiler is broken, or we cross compile.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3403 $as_echo_n "checking whether we are cross compiling... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405 $as_echo "$cross_compiling" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3408 $as_echo_n "checking for suffix of executables... " >&6; }
3409 if { { ac_try="$ac_link"
3410 case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3421 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3422 # work properly (i.e., refer to `conftest.exe'), while it won't with
3423 # `rm'.
3424 for ac_file in conftest.exe conftest conftest.*; do
3425 test -f "$ac_file" || continue
3426 case $ac_file in
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 break;;
3430 * ) break;;
3431 esac
3432 done
3433 else
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error "cannot compute suffix of executables: cannot compile and link
3437 See \`config.log' for more details." "$LINENO" 5; }
3439 rm -f conftest$ac_cv_exeext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3441 $as_echo "$ac_cv_exeext" >&6; }
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if test "${ac_cv_objext+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3456 main ()
3460 return 0;
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_compile") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
3475 for ac_file in conftest.o conftest.obj conftest.*; do
3476 test -f "$ac_file" || continue;
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 break;;
3481 esac
3482 done
3483 else
3484 $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." "$LINENO" 5; }
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3497 ac_objext=$OBJEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 main ()
3509 #ifndef __GNUC__
3510 choke me
3511 #endif
3514 return 0;
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_compiler_gnu=yes
3519 else
3520 ac_compiler_gnu=no
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529 GCC=yes
3530 else
3531 GCC=
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if test "${ac_cv_prog_cc_g+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 main ()
3552 return 0;
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_g=yes
3557 else
3558 CFLAGS=""
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3563 main ()
3567 return 0;
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3572 else
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3574 CFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3579 main ()
3583 return 0;
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_g=yes
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599 CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601 if test "$GCC" = yes; then
3602 CFLAGS="-g -O2"
3603 else
3604 CFLAGS="-g"
3606 else
3607 if test "$GCC" = yes; then
3608 CFLAGS="-O2"
3609 else
3610 CFLAGS=
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3633 return p[i];
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3666 main ()
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 return 0;
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 DEPDIR="${am__leading_dot}deps"
3711 ac_config_commands="$ac_config_commands depfiles"
3714 am_make=${MAKE-make}
3715 cat > confinc << 'END'
3716 am__doit:
3717 @echo this is the am__doit target
3718 .PHONY: am__doit
3720 # If we don't find an include directive, just comment out the code.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3722 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3723 am__include="#"
3724 am__quote=
3725 _am_result=none
3726 # First try GNU make style include.
3727 echo "include confinc" > confmf
3728 # Ignore all kinds of additional output from `make'.
3729 case `$am_make -s -f confmf 2> /dev/null` in #(
3730 *the\ am__doit\ target*)
3731 am__include=include
3732 am__quote=
3733 _am_result=GNU
3735 esac
3736 # Now try BSD make style include.
3737 if test "$am__include" = "#"; then
3738 echo '.include "confinc"' > confmf
3739 case `$am_make -s -f confmf 2> /dev/null` in #(
3740 *the\ am__doit\ target*)
3741 am__include=.include
3742 am__quote="\""
3743 _am_result=BSD
3745 esac
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3750 $as_echo "$_am_result" >&6; }
3751 rm -f confinc confmf
3753 # Check whether --enable-dependency-tracking was given.
3754 if test "${enable_dependency_tracking+set}" = set; then :
3755 enableval=$enable_dependency_tracking;
3758 if test "x$enable_dependency_tracking" != xno; then
3759 am_depcomp="$ac_aux_dir/depcomp"
3760 AMDEPBACKSLASH='\'
3761 am__nodep='_no'
3763 if test "x$enable_dependency_tracking" != xno; then
3764 AMDEP_TRUE=
3765 AMDEP_FALSE='#'
3766 else
3767 AMDEP_TRUE='#'
3768 AMDEP_FALSE=
3773 depcc="$CC" am_compiler_list=
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3785 # in D'.
3786 rm -rf conftest.dir
3787 mkdir conftest.dir
3788 # Copy depcomp to subdir because otherwise we won't find it if we're
3789 # using a relative directory.
3790 cp "$am_depcomp" conftest.dir
3791 cd conftest.dir
3792 # We will build objects and dependencies in a subdirectory because
3793 # it helps to detect inapplicable dependency modes. For instance
3794 # both Tru64's cc and ICC support -MD to output dependencies as a
3795 # side effect of compilation, but ICC will put the dependencies in
3796 # the current directory while Tru64 will put them in the object
3797 # directory.
3798 mkdir sub
3800 am_cv_CC_dependencies_compiler_type=none
3801 if test "$am_compiler_list" = ""; then
3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 am__universal=false
3805 case " $depcc " in #(
3806 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807 esac
3809 for depmode in $am_compiler_list; do
3810 # Setup a source with many dependencies, because some compilers
3811 # like to wrap large dependency lists on column 80 (with \), and
3812 # we should not choose a depcomp mode which is confused by this.
3814 # We need to recreate these files for each test, as the compiler may
3815 # overwrite some of them when testing with obscure command lines.
3816 # This happens at least with the AIX C compiler.
3817 : > sub/conftest.c
3818 for i in 1 2 3 4 5 6; do
3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821 # Solaris 8's {/usr,}/bin/sh.
3822 touch sub/conftst$i.h
3823 done
3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3826 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827 # mode. It turns out that the SunPro C++ compiler does not properly
3828 # handle `-M -o', and we need to detect this. Also, some Intel
3829 # versions had trouble with output in subdirs
3830 am__obj=sub/conftest.${OBJEXT-o}
3831 am__minus_obj="-o $am__obj"
3832 case $depmode in
3833 gcc)
3834 # This depmode causes a compiler race in universal mode.
3835 test "$am__universal" = false || continue
3837 nosideeffect)
3838 # after this tag, mechanisms are not by side-effect, so they'll
3839 # only be used when explicitly requested
3840 if test "x$enable_dependency_tracking" = xyes; then
3841 continue
3842 else
3843 break
3846 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847 # This compiler won't grok `-c -o', but also, the minuso test has
3848 # not run yet. These depmodes are late enough in the game, and
3849 # so weak that their functioning should not be impacted.
3850 am__obj=conftest.${OBJEXT-o}
3851 am__minus_obj=
3853 none) break ;;
3854 esac
3855 if depmode=$depmode \
3856 source=sub/conftest.c object=$am__obj \
3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859 >/dev/null 2>conftest.err &&
3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864 # icc doesn't choke on unknown options, it will just issue warnings
3865 # or remarks (even with -Werror). So we grep stderr for any message
3866 # that says an option was ignored or not supported.
3867 # When given -MP, icc 7.0 and 7.1 complain thusly:
3868 # icc: Command line warning: ignoring option '-M'; no argument required
3869 # The diagnosis changed in icc 8.0:
3870 # icc: Command line remark: option '-MP' not supported
3871 if (grep 'ignoring option' conftest.err ||
3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873 am_cv_CC_dependencies_compiler_type=$depmode
3874 break
3877 done
3879 cd ..
3880 rm -rf conftest.dir
3881 else
3882 am_cv_CC_dependencies_compiler_type=none
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_TRUE=
3894 am__fastdepCC_FALSE='#'
3895 else
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3905 if test "x$GCC" != "xyes"; then
3906 as_fn_error "libssp must be built with GCC" "$LINENO" 5
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3914 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3915 # On Suns, sometimes $CPP names a directory.
3916 if test -n "$CPP" && test -d "$CPP"; then
3917 CPP=
3919 if test -z "$CPP"; then
3920 if test "${ac_cv_prog_CPP+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 # Double quotes because CPP needs to be expanded
3924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3926 ac_preproc_ok=false
3927 for ac_c_preproc_warn_flag in '' yes
3929 # Use a header file that comes with gcc, so configuring glibc
3930 # with a fresh cross-compiler works.
3931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932 # <limits.h> exists even on freestanding compilers.
3933 # On the NeXT, cc -E runs the code through the compiler's parser,
3934 # not just through cpp. "Syntax error" is here to catch this case.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #ifdef __STDC__
3938 # include <limits.h>
3939 #else
3940 # include <assert.h>
3941 #endif
3942 Syntax error
3943 _ACEOF
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3946 else
3947 # Broken: fails on valid input.
3948 continue
3950 rm -f conftest.err conftest.$ac_ext
3952 # OK, works on sane cases. Now check whether nonexistent headers
3953 # can be detected and how.
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if ac_fn_c_try_cpp "$LINENO"; then :
3959 # Broken: success on invalid input.
3960 continue
3961 else
3962 # Passes both tests.
3963 ac_preproc_ok=:
3964 break
3966 rm -f conftest.err conftest.$ac_ext
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then :
3972 break
3975 done
3976 ac_cv_prog_CPP=$CPP
3979 CPP=$ac_cv_prog_CPP
3980 else
3981 ac_cv_prog_CPP=$CPP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3984 $as_echo "$CPP" >&6; }
3985 ac_preproc_ok=false
3986 for ac_c_preproc_warn_flag in '' yes
3988 # Use a header file that comes with gcc, so configuring glibc
3989 # with a fresh cross-compiler works.
3990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 # <limits.h> exists even on freestanding compilers.
3992 # On the NeXT, cc -E runs the code through the compiler's parser,
3993 # not just through cpp. "Syntax error" is here to catch this case.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #ifdef __STDC__
3997 # include <limits.h>
3998 #else
3999 # include <assert.h>
4000 #endif
4001 Syntax error
4002 _ACEOF
4003 if ac_fn_c_try_cpp "$LINENO"; then :
4005 else
4006 # Broken: fails on valid input.
4007 continue
4009 rm -f conftest.err conftest.$ac_ext
4011 # OK, works on sane cases. Now check whether nonexistent headers
4012 # can be detected and how.
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 #include <ac_nonexistent.h>
4016 _ACEOF
4017 if ac_fn_c_try_cpp "$LINENO"; then :
4018 # Broken: success on invalid input.
4019 continue
4020 else
4021 # Passes both tests.
4022 ac_preproc_ok=:
4023 break
4025 rm -f conftest.err conftest.$ac_ext
4027 done
4028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4029 rm -f conftest.err conftest.$ac_ext
4030 if $ac_preproc_ok; then :
4032 else
4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4035 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4036 See \`config.log' for more details." "$LINENO" 5; }
4039 ac_ext=c
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4047 $as_echo_n "checking whether -fstack-protector works... " >&6; }
4048 save_CFLAGS="$CFLAGS"
4049 CFLAGS="$CFLAGS -fstack-protector -Werror"
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4054 void __attribute__((noinline)) bar (char *x)
4056 __builtin_memset (x, 0, 64);
4059 main ()
4061 char buf[64]; bar (buf);
4063 return 0;
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4068 $as_echo "yes" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 CFLAGS="$save_CFLAGS"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4077 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4081 void __attribute__((visibility ("hidden"))) bar (void) {}
4083 main ()
4087 return 0;
4089 _ACEOF
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091 ssp_hidden=yes
4092 else
4093 ssp_hidden=no
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4097 $as_echo "$ssp_hidden" >&6; }
4098 if test x$ssp_hidden = xyes; then
4100 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4105 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
4106 # Check whether --enable-symvers was given.
4107 if test "${enable_symvers+set}" = set; then :
4108 enableval=$enable_symvers; ssp_use_symver=$enableval
4109 else
4110 ssp_use_symver=yes
4113 if test "x$ssp_use_symver" != xno; then
4114 if test x$gcc_no_link = xyes; then
4115 # If we cannot link, we cannot build shared libraries, so do not use
4116 # symbol versioning.
4117 ssp_use_symver=no
4118 else
4119 save_LDFLAGS="$LDFLAGS"
4120 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4121 cat > conftest.map <<EOF
4122 FOO_1.0 {
4123 global: *foo*; bar; local: *;
4126 if test x$gcc_no_link = xyes; then
4127 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 int foo;
4133 main ()
4137 return 0;
4139 _ACEOF
4140 if ac_fn_c_try_link "$LINENO"; then :
4141 ssp_use_symver=gnu
4142 else
4143 ssp_use_symver=no
4145 rm -f core conftest.err conftest.$ac_objext \
4146 conftest$ac_exeext conftest.$ac_ext
4147 if test x$ssp_use_symver = xno; then
4148 case "$target_os" in
4149 solaris2*)
4150 LDFLAGS="$save_LDFLAGS"
4151 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
4152 # Sun ld cannot handle wildcards and treats all entries as undefined.
4153 cat > conftest.map <<EOF
4154 FOO_1.0 {
4155 global: foo; local: *;
4158 if test x$gcc_no_link = xyes; then
4159 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 int foo;
4165 main ()
4169 return 0;
4171 _ACEOF
4172 if ac_fn_c_try_link "$LINENO"; then :
4173 ssp_use_symver=sun
4174 else
4175 ssp_use_symver=no
4177 rm -f core conftest.err conftest.$ac_objext \
4178 conftest$ac_exeext conftest.$ac_ext
4180 esac
4182 LDFLAGS="$save_LDFLAGS"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4186 $as_echo "$ssp_use_symver" >&6; }
4187 if test "x$ssp_use_symver" != xno; then
4188 LIBSSP_USE_SYMVER_TRUE=
4189 LIBSSP_USE_SYMVER_FALSE='#'
4190 else
4191 LIBSSP_USE_SYMVER_TRUE='#'
4192 LIBSSP_USE_SYMVER_FALSE=
4195 if test "x$ssp_use_symver" = xgnu; then
4196 LIBSSP_USE_SYMVER_GNU_TRUE=
4197 LIBSSP_USE_SYMVER_GNU_FALSE='#'
4198 else
4199 LIBSSP_USE_SYMVER_GNU_TRUE='#'
4200 LIBSSP_USE_SYMVER_GNU_FALSE=
4203 if test "x$ssp_use_symver" = xsun; then
4204 LIBSSP_USE_SYMVER_SUN_TRUE=
4205 LIBSSP_USE_SYMVER_SUN_FALSE='#'
4206 else
4207 LIBSSP_USE_SYMVER_SUN_TRUE='#'
4208 LIBSSP_USE_SYMVER_SUN_FALSE=
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4214 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215 if test "${ac_cv_path_GREP+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -z "$GREP"; then
4219 ac_path_GREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in grep ggrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP="$ac_path_GREP"
4250 ac_path_GREP_max=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4258 $ac_path_GREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_GREP"; then
4264 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4266 else
4267 ac_cv_path_GREP=$GREP
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4272 $as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP="$ac_cv_path_GREP"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277 $as_echo_n "checking for egrep... " >&6; }
4278 if test "${ac_cv_path_EGREP+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4282 then ac_cv_path_EGREP="$GREP -E"
4283 else
4284 if test -z "$EGREP"; then
4285 ac_path_EGREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in egrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4295 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4296 # Check for GNU ac_path_EGREP and select it if it is found.
4297 # Check for GNU $ac_path_EGREP
4298 case `"$ac_path_EGREP" --version 2>&1` in
4299 *GNU*)
4300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4302 ac_count=0
4303 $as_echo_n 0123456789 >"conftest.in"
4304 while :
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'EGREP' >> "conftest.nl"
4310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 as_fn_arith $ac_count + 1 && ac_count=$as_val
4313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_EGREP="$ac_path_EGREP"
4316 ac_path_EGREP_max=$ac_count
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4320 done
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 esac
4324 $ac_path_EGREP_found && break 3
4325 done
4326 done
4327 done
4328 IFS=$as_save_IFS
4329 if test -z "$ac_cv_path_EGREP"; then
4330 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 else
4333 ac_cv_path_EGREP=$EGREP
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339 $as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP="$ac_cv_path_EGREP"
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4344 $as_echo_n "checking for ANSI C header files... " >&6; }
4345 if test "${ac_cv_header_stdc+set}" = set; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdlib.h>
4351 #include <stdarg.h>
4352 #include <string.h>
4353 #include <float.h>
4356 main ()
4360 return 0;
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_cv_header_stdc=yes
4365 else
4366 ac_cv_header_stdc=no
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 if test $ac_cv_header_stdc = yes; then
4371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #include <string.h>
4376 _ACEOF
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 $EGREP "memchr" >/dev/null 2>&1; then :
4380 else
4381 ac_cv_header_stdc=no
4383 rm -f conftest*
4387 if test $ac_cv_header_stdc = yes; then
4388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <stdlib.h>
4393 _ACEOF
4394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4395 $EGREP "free" >/dev/null 2>&1; then :
4397 else
4398 ac_cv_header_stdc=no
4400 rm -f conftest*
4404 if test $ac_cv_header_stdc = yes; then
4405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4406 if test "$cross_compiling" = yes; then :
4408 else
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ctype.h>
4412 #include <stdlib.h>
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416 #else
4417 # define ISLOWER(c) \
4418 (('a' <= (c) && (c) <= 'i') \
4419 || ('j' <= (c) && (c) <= 'r') \
4420 || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422 #endif
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4426 main ()
4428 int i;
4429 for (i = 0; i < 256; i++)
4430 if (XOR (islower (i), ISLOWER (i))
4431 || toupper (i) != TOUPPER (i))
4432 return 2;
4433 return 0;
4435 _ACEOF
4436 if ac_fn_c_try_run "$LINENO"; then :
4438 else
4439 ac_cv_header_stdc=no
4441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4442 conftest.$ac_objext conftest.beam conftest.$ac_ext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4448 $as_echo "$ac_cv_header_stdc" >&6; }
4449 if test $ac_cv_header_stdc = yes; then
4451 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4457 inttypes.h stdint.h unistd.h
4458 do :
4459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4460 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4462 eval as_val=\$$as_ac_Header
4463 if test "x$as_val" = x""yes; then :
4464 cat >>confdefs.h <<_ACEOF
4465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4466 _ACEOF
4470 done
4473 for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4474 do :
4475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4477 eval as_val=\$$as_ac_Header
4478 if test "x$as_val" = x""yes; then :
4479 cat >>confdefs.h <<_ACEOF
4480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481 _ACEOF
4485 done
4488 if test x$gcc_no_link = xyes; then
4489 # Presume the ISO C functions are available; add target-specific
4490 # configuration here if required.
4491 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4493 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4495 else
4496 for ac_func in memmove mempcpy strncpy strncat
4497 do :
4498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4500 eval as_val=\$$as_ac_var
4501 if test "x$as_val" = x""yes; then :
4502 cat >>confdefs.h <<_ACEOF
4503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4504 _ACEOF
4507 done
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4512 $as_echo_n "checking whether vsnprintf is usable... " >&6; }
4513 if test "$cross_compiling" = yes; then :
4514 ssp_have_usable_vsnprintf=undef
4515 else
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4519 #include <stdarg.h>
4520 #include <string.h>
4521 #include <stdio.h>
4522 int foo (char *buf, size_t n, const char *fmt, ...)
4524 va_list ap;
4525 int ret;
4526 va_start (ap, fmt);
4527 ret = vsnprintf (buf, n, fmt, ap);
4528 va_end (ap);
4529 return ret;
4532 main ()
4534 char buf[8]; memset (buf, 'A', sizeof (buf));
4535 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4536 return 1;
4537 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4539 return 0;
4541 _ACEOF
4542 if ac_fn_c_try_run "$LINENO"; then :
4543 ssp_have_usable_vsnprintf=define
4544 else
4545 ssp_have_usable_vsnprintf=undef
4547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4548 conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4555 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 case `pwd` in
4564 *\ * | *\ *)
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4566 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4567 esac
4571 macro_version='2.2.7a'
4572 macro_revision='1.3134'
4586 ltmain="$ac_aux_dir/ltmain.sh"
4588 # Backslashify metacharacters that are still active within
4589 # double-quoted strings.
4590 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4592 # Same as above, but do not quote variable references.
4593 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4595 # Sed substitution to delay expansion of an escaped shell variable in a
4596 # double_quote_subst'ed string.
4597 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4599 # Sed substitution to delay expansion of an escaped single quote.
4600 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4602 # Sed substitution to avoid accidental globbing in evaled expressions
4603 no_glob_subst='s/\*/\\\*/g'
4605 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4607 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4610 $as_echo_n "checking how to print strings... " >&6; }
4611 # Test print first, because it will be a builtin if present.
4612 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4613 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4614 ECHO='print -r --'
4615 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4616 ECHO='printf %s\n'
4617 else
4618 # Use this function as a fallback that always works.
4619 func_fallback_echo ()
4621 eval 'cat <<_LTECHO_EOF
4623 _LTECHO_EOF'
4625 ECHO='func_fallback_echo'
4628 # func_echo_all arg...
4629 # Invoke $ECHO with all args, space-separated.
4630 func_echo_all ()
4632 $ECHO ""
4635 case "$ECHO" in
4636 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4637 $as_echo "printf" >&6; } ;;
4638 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4639 $as_echo "print -r" >&6; } ;;
4640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4641 $as_echo "cat" >&6; } ;;
4642 esac
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4659 if test "${ac_cv_path_SED+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4663 for ac_i in 1 2 3 4 5 6 7; do
4664 ac_script="$ac_script$as_nl$ac_script"
4665 done
4666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4667 { ac_script=; unset ac_script;}
4668 if test -z "$SED"; then
4669 ac_path_SED_found=false
4670 # Loop through the user's path and test for each of PROGNAME-LIST
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_prog in sed gsed; do
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4679 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4680 # Check for GNU ac_path_SED and select it if it is found.
4681 # Check for GNU $ac_path_SED
4682 case `"$ac_path_SED" --version 2>&1` in
4683 *GNU*)
4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4686 ac_count=0
4687 $as_echo_n 0123456789 >"conftest.in"
4688 while :
4690 cat "conftest.in" "conftest.in" >"conftest.tmp"
4691 mv "conftest.tmp" "conftest.in"
4692 cp "conftest.in" "conftest.nl"
4693 $as_echo '' >> "conftest.nl"
4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696 as_fn_arith $ac_count + 1 && ac_count=$as_val
4697 if test $ac_count -gt ${ac_path_SED_max-0}; then
4698 # Best one so far, save it but keep looking for a better one
4699 ac_cv_path_SED="$ac_path_SED"
4700 ac_path_SED_max=$ac_count
4702 # 10*(2^10) chars as input seems more than enough
4703 test $ac_count -gt 10 && break
4704 done
4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4708 $ac_path_SED_found && break 3
4709 done
4710 done
4711 done
4712 IFS=$as_save_IFS
4713 if test -z "$ac_cv_path_SED"; then
4714 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4716 else
4717 ac_cv_path_SED=$SED
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4722 $as_echo "$ac_cv_path_SED" >&6; }
4723 SED="$ac_cv_path_SED"
4724 rm -f conftest.sed
4726 test -z "$SED" && SED=sed
4727 Xsed="$SED -e 1s/^X//"
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4740 $as_echo_n "checking for fgrep... " >&6; }
4741 if test "${ac_cv_path_FGREP+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4745 then ac_cv_path_FGREP="$GREP -F"
4746 else
4747 if test -z "$FGREP"; then
4748 ac_path_FGREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_prog in fgrep; do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4758 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4759 # Check for GNU ac_path_FGREP and select it if it is found.
4760 # Check for GNU $ac_path_FGREP
4761 case `"$ac_path_FGREP" --version 2>&1` in
4762 *GNU*)
4763 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4765 ac_count=0
4766 $as_echo_n 0123456789 >"conftest.in"
4767 while :
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 $as_echo 'FGREP' >> "conftest.nl"
4773 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 as_fn_arith $ac_count + 1 && ac_count=$as_val
4776 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_FGREP="$ac_path_FGREP"
4779 ac_path_FGREP_max=$ac_count
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4783 done
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4787 $ac_path_FGREP_found && break 3
4788 done
4789 done
4790 done
4791 IFS=$as_save_IFS
4792 if test -z "$ac_cv_path_FGREP"; then
4793 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4795 else
4796 ac_cv_path_FGREP=$FGREP
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4802 $as_echo "$ac_cv_path_FGREP" >&6; }
4803 FGREP="$ac_cv_path_FGREP"
4806 test -z "$GREP" && GREP=grep
4826 # Check whether --with-gnu-ld was given.
4827 if test "${with_gnu_ld+set}" = set; then :
4828 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4829 else
4830 with_gnu_ld=no
4833 ac_prog=ld
4834 if test "$GCC" = yes; then
4835 # Check if gcc -print-prog-name=ld gives a path.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4837 $as_echo_n "checking for ld used by $CC... " >&6; }
4838 case $host in
4839 *-*-mingw*)
4840 # gcc leaves a trailing carriage return which upsets mingw
4841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4844 esac
4845 case $ac_prog in
4846 # Accept absolute paths.
4847 [\\/]* | ?:[\\/]*)
4848 re_direlt='/[^/][^/]*/\.\./'
4849 # Canonicalize the pathname of ld
4850 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4851 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4852 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4853 done
4854 test -z "$LD" && LD="$ac_prog"
4857 # If it fails, then pretend we aren't using GCC.
4858 ac_prog=ld
4861 # If it is relative, then search for the first ld in PATH.
4862 with_gnu_ld=unknown
4864 esac
4865 elif test "$with_gnu_ld" = yes; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4867 $as_echo_n "checking for GNU ld... " >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4870 $as_echo_n "checking for non-GNU ld... " >&6; }
4872 if test "${lt_cv_path_LD+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -z "$LD"; then
4876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4877 for ac_dir in $PATH; do
4878 IFS="$lt_save_ifs"
4879 test -z "$ac_dir" && ac_dir=.
4880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4881 lt_cv_path_LD="$ac_dir/$ac_prog"
4882 # Check to see if the program is GNU ld. I'd rather use --version,
4883 # but apparently some variants of GNU ld only accept -v.
4884 # Break only if it was the GNU/non-GNU ld that we prefer.
4885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4886 *GNU* | *'with BFD'*)
4887 test "$with_gnu_ld" != no && break
4890 test "$with_gnu_ld" != yes && break
4892 esac
4894 done
4895 IFS="$lt_save_ifs"
4896 else
4897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4901 LD="$lt_cv_path_LD"
4902 if test -n "$LD"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4904 $as_echo "$LD" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4909 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4911 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4912 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4916 case `$LD -v 2>&1 </dev/null` in
4917 *GNU* | *'with BFD'*)
4918 lt_cv_prog_gnu_ld=yes
4921 lt_cv_prog_gnu_ld=no
4923 esac
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4926 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4927 with_gnu_ld=$lt_cv_prog_gnu_ld
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4938 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4939 if test "${lt_cv_path_NM+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$NM"; then
4943 # Let the user override the test.
4944 lt_cv_path_NM="$NM"
4945 else
4946 lt_nm_to_check="${ac_tool_prefix}nm"
4947 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4948 lt_nm_to_check="$lt_nm_to_check nm"
4950 for lt_tmp_nm in $lt_nm_to_check; do
4951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4953 IFS="$lt_save_ifs"
4954 test -z "$ac_dir" && ac_dir=.
4955 tmp_nm="$ac_dir/$lt_tmp_nm"
4956 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4957 # Check to see if the nm accepts a BSD-compat flag.
4958 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4959 # nm: unknown option "B" ignored
4960 # Tru64's nm complains that /dev/null is an invalid object file
4961 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4962 */dev/null* | *'Invalid file or object type'*)
4963 lt_cv_path_NM="$tmp_nm -B"
4964 break
4967 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4968 */dev/null*)
4969 lt_cv_path_NM="$tmp_nm -p"
4970 break
4973 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4974 continue # so that we can try to find one that supports BSD flags
4976 esac
4978 esac
4980 done
4981 IFS="$lt_save_ifs"
4982 done
4983 : ${lt_cv_path_NM=no}
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4987 $as_echo "$lt_cv_path_NM" >&6; }
4988 if test "$lt_cv_path_NM" != "no"; then
4989 NM="$lt_cv_path_NM"
4990 else
4991 # Didn't find any BSD compatible name lister, look for dumpbin.
4992 if test -n "$DUMPBIN"; then :
4993 # Let the user override the test.
4994 else
4995 if test -n "$ac_tool_prefix"; then
4996 for ac_prog in dumpbin "link -dump"
4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$DUMPBIN"; then
5006 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 DUMPBIN=$ac_cv_prog_DUMPBIN
5026 if test -n "$DUMPBIN"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5028 $as_echo "$DUMPBIN" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 test -n "$DUMPBIN" && break
5036 done
5038 if test -z "$DUMPBIN"; then
5039 ac_ct_DUMPBIN=$DUMPBIN
5040 for ac_prog in dumpbin "link -dump"
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_DUMPBIN"; then
5050 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5070 if test -n "$ac_ct_DUMPBIN"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5072 $as_echo "$ac_ct_DUMPBIN" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$ac_ct_DUMPBIN" && break
5080 done
5082 if test "x$ac_ct_DUMPBIN" = x; then
5083 DUMPBIN=":"
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091 DUMPBIN=$ac_ct_DUMPBIN
5095 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5096 *COFF*)
5097 DUMPBIN="$DUMPBIN -symbols"
5100 DUMPBIN=:
5102 esac
5105 if test "$DUMPBIN" != ":"; then
5106 NM="$DUMPBIN"
5109 test -z "$NM" && NM=nm
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5117 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5118 if test "${lt_cv_nm_interface+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 lt_cv_nm_interface="BSD nm"
5122 echo "int some_variable = 0;" > conftest.$ac_ext
5123 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5124 (eval "$ac_compile" 2>conftest.err)
5125 cat conftest.err >&5
5126 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5127 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5128 cat conftest.err >&5
5129 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5130 cat conftest.out >&5
5131 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5132 lt_cv_nm_interface="MS dumpbin"
5134 rm -f conftest*
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5137 $as_echo "$lt_cv_nm_interface" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5140 $as_echo_n "checking whether ln -s works... " >&6; }
5141 LN_S=$as_ln_s
5142 if test "$LN_S" = "ln -s"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144 $as_echo "yes" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5147 $as_echo "no, using $LN_S" >&6; }
5150 # find the maximum length of command line arguments
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5153 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5157 teststring="ABCD"
5159 case $build_os in
5160 msdosdjgpp*)
5161 # On DJGPP, this test can blow up pretty badly due to problems in libc
5162 # (any single argument exceeding 2000 bytes causes a buffer overrun
5163 # during glob expansion). Even if it were fixed, the result of this
5164 # check would be larger than it should be.
5165 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5168 gnu*)
5169 # Under GNU Hurd, this test is not required because there is
5170 # no limit to the length of command line arguments.
5171 # Libtool will interpret -1 as no limit whatsoever
5172 lt_cv_sys_max_cmd_len=-1;
5175 cygwin* | mingw* | cegcc*)
5176 # On Win9x/ME, this test blows up -- it succeeds, but takes
5177 # about 5 minutes as the teststring grows exponentially.
5178 # Worse, since 9x/ME are not pre-emptively multitasking,
5179 # you end up with a "frozen" computer, even though with patience
5180 # the test eventually succeeds (with a max line length of 256k).
5181 # Instead, let's just punt: use the minimum linelength reported by
5182 # all of the supported platforms: 8192 (on NT/2K/XP).
5183 lt_cv_sys_max_cmd_len=8192;
5186 mint*)
5187 # On MiNT this can take a long time and run out of memory.
5188 lt_cv_sys_max_cmd_len=8192;
5191 amigaos*)
5192 # On AmigaOS with pdksh, this test takes hours, literally.
5193 # So we just punt and use a minimum line length of 8192.
5194 lt_cv_sys_max_cmd_len=8192;
5197 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5198 # This has been around since 386BSD, at least. Likely further.
5199 if test -x /sbin/sysctl; then
5200 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5201 elif test -x /usr/sbin/sysctl; then
5202 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5203 else
5204 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5206 # And add a safety zone
5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5211 interix*)
5212 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5213 lt_cv_sys_max_cmd_len=196608
5216 osf*)
5217 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5218 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5219 # nice to cause kernel panics so lets avoid the loop below.
5220 # First set a reasonable default.
5221 lt_cv_sys_max_cmd_len=16384
5223 if test -x /sbin/sysconfig; then
5224 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5225 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5226 esac
5229 sco3.2v5*)
5230 lt_cv_sys_max_cmd_len=102400
5232 sysv5* | sco5v6* | sysv4.2uw2*)
5233 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5234 if test -n "$kargmax"; then
5235 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5236 else
5237 lt_cv_sys_max_cmd_len=32768
5241 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5242 if test -n "$lt_cv_sys_max_cmd_len"; then
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5245 else
5246 # Make teststring a little bigger before we do anything with it.
5247 # a 1K string should be a reasonable start.
5248 for i in 1 2 3 4 5 6 7 8 ; do
5249 teststring=$teststring$teststring
5250 done
5251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5252 # If test is not a shell built-in, we'll probably end up computing a
5253 # maximum length that is only half of the actual maximum length, but
5254 # we can't tell.
5255 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5256 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5257 test $i != 17 # 1/2 MB should be enough
5259 i=`expr $i + 1`
5260 teststring=$teststring$teststring
5261 done
5262 # Only check the string length outside the loop.
5263 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5264 teststring=
5265 # Add a significant safety factor because C++ compilers can tack on
5266 # massive amounts of additional arguments before passing them to the
5267 # linker. It appears as though 1/2 is a usable value.
5268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5271 esac
5275 if test -n $lt_cv_sys_max_cmd_len ; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5277 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5280 $as_echo "none" >&6; }
5282 max_cmd_len=$lt_cv_sys_max_cmd_len
5289 : ${CP="cp -f"}
5290 : ${MV="mv -f"}
5291 : ${RM="rm -f"}
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5294 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5295 # Try some XSI features
5296 xsi_shell=no
5297 ( _lt_dummy="a/b/c"
5298 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5299 = c,a/b,, \
5300 && eval 'test $(( 1 + 1 )) -eq 2 \
5301 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5302 && xsi_shell=yes
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5304 $as_echo "$xsi_shell" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5308 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5309 lt_shell_append=no
5310 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5311 >/dev/null 2>&1 \
5312 && lt_shell_append=yes
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5314 $as_echo "$lt_shell_append" >&6; }
5317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5318 lt_unset=unset
5319 else
5320 lt_unset=false
5327 # test EBCDIC or ASCII
5328 case `echo X|tr X '\101'` in
5329 A) # ASCII based system
5330 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5331 lt_SP2NL='tr \040 \012'
5332 lt_NL2SP='tr \015\012 \040\040'
5334 *) # EBCDIC based system
5335 lt_SP2NL='tr \100 \n'
5336 lt_NL2SP='tr \r\n \100\100'
5338 esac
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5349 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5350 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 lt_cv_ld_reload_flag='-r'
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5356 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5357 reload_flag=$lt_cv_ld_reload_flag
5358 case $reload_flag in
5359 "" | " "*) ;;
5360 *) reload_flag=" $reload_flag" ;;
5361 esac
5362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5363 case $host_os in
5364 darwin*)
5365 if test "$GCC" = yes; then
5366 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5367 else
5368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5371 esac
5381 if test -n "$ac_tool_prefix"; then
5382 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5383 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 if test -n "$OBJDUMP"; then
5390 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5403 done
5404 done
5405 IFS=$as_save_IFS
5409 OBJDUMP=$ac_cv_prog_OBJDUMP
5410 if test -n "$OBJDUMP"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5412 $as_echo "$OBJDUMP" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5420 if test -z "$ac_cv_prog_OBJDUMP"; then
5421 ac_ct_OBJDUMP=$OBJDUMP
5422 # Extract the first word of "objdump", so it can be a program name with args.
5423 set dummy objdump; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 if test -n "$ac_ct_OBJDUMP"; then
5430 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5443 done
5444 done
5445 IFS=$as_save_IFS
5449 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5450 if test -n "$ac_ct_OBJDUMP"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5452 $as_echo "$ac_ct_OBJDUMP" >&6; }
5453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5458 if test "x$ac_ct_OBJDUMP" = x; then
5459 OBJDUMP="false"
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465 ac_tool_warned=yes ;;
5466 esac
5467 OBJDUMP=$ac_ct_OBJDUMP
5469 else
5470 OBJDUMP="$ac_cv_prog_OBJDUMP"
5473 test -z "$OBJDUMP" && OBJDUMP=objdump
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5484 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5485 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 lt_cv_file_magic_cmd='$MAGIC_CMD'
5489 lt_cv_file_magic_test_file=
5490 lt_cv_deplibs_check_method='unknown'
5491 # Need to set the preceding variable on all platforms that support
5492 # interlibrary dependencies.
5493 # 'none' -- dependencies not supported.
5494 # `unknown' -- same as none, but documents that we really don't know.
5495 # 'pass_all' -- all dependencies passed with no checks.
5496 # 'test_compile' -- check by making test program.
5497 # 'file_magic [[regex]]' -- check by looking for files in library path
5498 # which responds to the $file_magic_cmd with a given extended regex.
5499 # If you have `file' or equivalent on your system and you're not sure
5500 # whether `pass_all' will *always* work, you probably want this one.
5502 case $host_os in
5503 aix[4-9]*)
5504 lt_cv_deplibs_check_method=pass_all
5507 beos*)
5508 lt_cv_deplibs_check_method=pass_all
5511 bsdi[45]*)
5512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5513 lt_cv_file_magic_cmd='/usr/bin/file -L'
5514 lt_cv_file_magic_test_file=/shlib/libc.so
5517 cygwin*)
5518 # func_win32_libid is a shell function defined in ltmain.sh
5519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5520 lt_cv_file_magic_cmd='func_win32_libid'
5523 mingw* | pw32*)
5524 # Base MSYS/MinGW do not provide the 'file' command needed by
5525 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5526 # unless we find 'file', for example because we are cross-compiling.
5527 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5528 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5530 lt_cv_file_magic_cmd='func_win32_libid'
5531 else
5532 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5533 lt_cv_file_magic_cmd='$OBJDUMP -f'
5537 cegcc*)
5538 # use the weaker test based on 'objdump'. See mingw*.
5539 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5540 lt_cv_file_magic_cmd='$OBJDUMP -f'
5543 darwin* | rhapsody*)
5544 lt_cv_deplibs_check_method=pass_all
5547 freebsd* | dragonfly*)
5548 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5549 case $host_cpu in
5550 i*86 )
5551 # Not sure whether the presence of OpenBSD here was a mistake.
5552 # Let's accept both of them until this is cleared up.
5553 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5554 lt_cv_file_magic_cmd=/usr/bin/file
5555 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5557 esac
5558 else
5559 lt_cv_deplibs_check_method=pass_all
5563 gnu*)
5564 lt_cv_deplibs_check_method=pass_all
5567 haiku*)
5568 lt_cv_deplibs_check_method=pass_all
5571 hpux10.20* | hpux11*)
5572 lt_cv_file_magic_cmd=/usr/bin/file
5573 case $host_cpu in
5574 ia64*)
5575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5576 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5578 hppa*64*)
5579 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]'
5580 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5584 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5586 esac
5589 interix[3-9]*)
5590 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5594 irix5* | irix6* | nonstopux*)
5595 case $LD in
5596 *-32|*"-32 ") libmagic=32-bit;;
5597 *-n32|*"-n32 ") libmagic=N32;;
5598 *-64|*"-64 ") libmagic=64-bit;;
5599 *) libmagic=never-match;;
5600 esac
5601 lt_cv_deplibs_check_method=pass_all
5604 # This must be Linux ELF.
5605 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5606 lt_cv_deplibs_check_method=pass_all
5609 netbsd*)
5610 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5612 else
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5617 newos6*)
5618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5619 lt_cv_file_magic_cmd=/usr/bin/file
5620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5623 *nto* | *qnx*)
5624 lt_cv_deplibs_check_method=pass_all
5627 openbsd*)
5628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5630 else
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5635 osf3* | osf4* | osf5*)
5636 lt_cv_deplibs_check_method=pass_all
5639 rdos*)
5640 lt_cv_deplibs_check_method=pass_all
5643 solaris*)
5644 lt_cv_deplibs_check_method=pass_all
5647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5648 lt_cv_deplibs_check_method=pass_all
5651 sysv4 | sysv4.3*)
5652 case $host_vendor in
5653 motorola)
5654 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]'
5655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5657 ncr)
5658 lt_cv_deplibs_check_method=pass_all
5660 sequent)
5661 lt_cv_file_magic_cmd='/bin/file'
5662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5664 sni)
5665 lt_cv_file_magic_cmd='/bin/file'
5666 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5667 lt_cv_file_magic_test_file=/lib/libc.so
5669 siemens)
5670 lt_cv_deplibs_check_method=pass_all
5673 lt_cv_deplibs_check_method=pass_all
5675 esac
5678 tpf*)
5679 lt_cv_deplibs_check_method=pass_all
5681 esac
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5685 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5686 file_magic_cmd=$lt_cv_file_magic_cmd
5687 deplibs_check_method=$lt_cv_deplibs_check_method
5688 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5701 if test -n "$ac_tool_prefix"; then
5702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}ar; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_AR+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$AR"; then
5710 ac_cv_prog_AR="$AR" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_AR="${ac_tool_prefix}ar"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5723 done
5724 done
5725 IFS=$as_save_IFS
5729 AR=$ac_cv_prog_AR
5730 if test -n "$AR"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5732 $as_echo "$AR" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5740 if test -z "$ac_cv_prog_AR"; then
5741 ac_ct_AR=$AR
5742 # Extract the first word of "ar", so it can be a program name with args.
5743 set dummy ar; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 if test -n "$ac_ct_AR"; then
5750 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_ac_ct_AR="ar"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5763 done
5764 done
5765 IFS=$as_save_IFS
5769 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5770 if test -n "$ac_ct_AR"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5772 $as_echo "$ac_ct_AR" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5778 if test "x$ac_ct_AR" = x; then
5779 AR="false"
5780 else
5781 case $cross_compiling:$ac_tool_warned in
5782 yes:)
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5785 ac_tool_warned=yes ;;
5786 esac
5787 AR=$ac_ct_AR
5789 else
5790 AR="$ac_cv_prog_AR"
5793 test -z "$AR" && AR=ar
5794 test -z "$AR_FLAGS" && AR_FLAGS=cru
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}strip; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_STRIP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$STRIP"; then
5815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 STRIP=$ac_cv_prog_STRIP
5835 if test -n "$STRIP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5837 $as_echo "$STRIP" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_STRIP"; then
5846 ac_ct_STRIP=$STRIP
5847 # Extract the first word of "strip", so it can be a program name with args.
5848 set dummy strip; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_STRIP"; then
5855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_STRIP="strip"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5875 if test -n "$ac_ct_STRIP"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5877 $as_echo "$ac_ct_STRIP" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_STRIP" = x; then
5884 STRIP=":"
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 STRIP=$ac_ct_STRIP
5894 else
5895 STRIP="$ac_cv_prog_STRIP"
5898 test -z "$STRIP" && STRIP=:
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$RANLIB"; then
5914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 RANLIB=$ac_cv_prog_RANLIB
5934 if test -n "$RANLIB"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5936 $as_echo "$RANLIB" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5944 if test -z "$ac_cv_prog_RANLIB"; then
5945 ac_ct_RANLIB=$RANLIB
5946 # Extract the first word of "ranlib", so it can be a program name with args.
5947 set dummy ranlib; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -n "$ac_ct_RANLIB"; then
5954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_prog_ac_ct_RANLIB="ranlib"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5967 done
5968 done
5969 IFS=$as_save_IFS
5973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5974 if test -n "$ac_ct_RANLIB"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5976 $as_echo "$ac_ct_RANLIB" >&6; }
5977 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5982 if test "x$ac_ct_RANLIB" = x; then
5983 RANLIB=":"
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991 RANLIB=$ac_ct_RANLIB
5993 else
5994 RANLIB="$ac_cv_prog_RANLIB"
5997 test -z "$RANLIB" && RANLIB=:
6004 # Determine commands to create old-style static archives.
6005 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6006 old_postinstall_cmds='chmod 644 $oldlib'
6007 old_postuninstall_cmds=
6009 if test -n "$RANLIB"; then
6010 case $host_os in
6011 openbsd*)
6012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6017 esac
6018 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6021 case $host_os in
6022 darwin*)
6023 lock_old_archive_extraction=yes ;;
6025 lock_old_archive_extraction=no ;;
6026 esac
6066 # If no C compiler was specified, use CC.
6067 LTCC=${LTCC-"$CC"}
6069 # If no C compiler flags were specified, use CFLAGS.
6070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6072 # Allow CC to be a program name with arguments.
6073 compiler=$CC
6076 # Check for command to grab the raw symbol name followed by C symbol from nm.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6078 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6079 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6083 # These are sane defaults that work on at least a few old systems.
6084 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6086 # Character class describing NM global symbol codes.
6087 symcode='[BCDEGRST]'
6089 # Regexp to match symbols that can be accessed directly from C.
6090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6092 # Define system-specific variables.
6093 case $host_os in
6094 aix*)
6095 symcode='[BCDT]'
6097 cygwin* | mingw* | pw32* | cegcc*)
6098 symcode='[ABCDGISTW]'
6100 hpux*)
6101 if test "$host_cpu" = ia64; then
6102 symcode='[ABCDEGRST]'
6105 irix* | nonstopux*)
6106 symcode='[BCDEGRST]'
6108 osf*)
6109 symcode='[BCDEGQRST]'
6111 solaris*)
6112 symcode='[BDRT]'
6114 sco3.2v5*)
6115 symcode='[DT]'
6117 sysv4.2uw2*)
6118 symcode='[DT]'
6120 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6121 symcode='[ABDT]'
6123 sysv4)
6124 symcode='[DFNSTU]'
6126 esac
6128 # If we're using GNU nm, then use its standard symbol codes.
6129 case `$NM -V 2>&1` in
6130 *GNU* | *'with BFD'*)
6131 symcode='[ABCDGIRSTW]' ;;
6132 esac
6134 # Transform an extracted symbol line into a proper C declaration.
6135 # Some systems (esp. on ia64) link data and code symbols differently,
6136 # so use this general approach.
6137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6139 # Transform an extracted symbol line into symbol name and symbol address
6140 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6141 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'"
6143 # Handle CRLF in mingw tool chain
6144 opt_cr=
6145 case $build_os in
6146 mingw*)
6147 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6149 esac
6151 # Try without a prefix underscore, then with it.
6152 for ac_symprfx in "" "_"; do
6154 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6155 symxfrm="\\1 $ac_symprfx\\2 \\2"
6157 # Write the raw and C identifiers.
6158 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159 # Fake it for dumpbin and say T for any non-static function
6160 # and D for any global variable.
6161 # Also find C++ and __fastcall symbols from MSVC++,
6162 # which start with @ or ?.
6163 lt_cv_sys_global_symbol_pipe="$AWK '"\
6164 " {last_section=section; section=\$ 3};"\
6165 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6166 " \$ 0!~/External *\|/{next};"\
6167 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6168 " {if(hide[section]) next};"\
6169 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6170 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6171 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6172 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6173 " ' prfx=^$ac_symprfx"
6174 else
6175 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6178 # Check to see that the pipe works correctly.
6179 pipe_works=no
6181 rm -f conftest*
6182 cat > conftest.$ac_ext <<_LT_EOF
6183 #ifdef __cplusplus
6184 extern "C" {
6185 #endif
6186 char nm_test_var;
6187 void nm_test_func(void);
6188 void nm_test_func(void){}
6189 #ifdef __cplusplus
6191 #endif
6192 int main(){nm_test_var='a';nm_test_func();return(0);}
6193 _LT_EOF
6195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }; then
6200 # Now try to grab the symbols.
6201 nlist=conftest.nm
6202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6203 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6204 ac_status=$?
6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206 test $ac_status = 0; } && test -s "$nlist"; then
6207 # Try sorting and uniquifying the output.
6208 if sort "$nlist" | uniq > "$nlist"T; then
6209 mv -f "$nlist"T "$nlist"
6210 else
6211 rm -f "$nlist"T
6214 # Make sure that we snagged all the symbols we need.
6215 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6216 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6217 cat <<_LT_EOF > conftest.$ac_ext
6218 #ifdef __cplusplus
6219 extern "C" {
6220 #endif
6222 _LT_EOF
6223 # Now generate the symbol file.
6224 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6226 cat <<_LT_EOF >> conftest.$ac_ext
6228 /* The mapping between symbol names and symbols. */
6229 const struct {
6230 const char *name;
6231 void *address;
6233 lt__PROGRAM__LTX_preloaded_symbols[] =
6235 { "@PROGRAM@", (void *) 0 },
6236 _LT_EOF
6237 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6238 cat <<\_LT_EOF >> conftest.$ac_ext
6239 {0, (void *) 0}
6242 /* This works around a problem in FreeBSD linker */
6243 #ifdef FREEBSD_WORKAROUND
6244 static const void *lt_preloaded_setup() {
6245 return lt__PROGRAM__LTX_preloaded_symbols;
6247 #endif
6249 #ifdef __cplusplus
6251 #endif
6252 _LT_EOF
6253 # Now try linking the two files.
6254 mv conftest.$ac_objext conftstm.$ac_objext
6255 lt_save_LIBS="$LIBS"
6256 lt_save_CFLAGS="$CFLAGS"
6257 LIBS="conftstm.$ac_objext"
6258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6260 (eval $ac_link) 2>&5
6261 ac_status=$?
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6264 pipe_works=yes
6266 LIBS="$lt_save_LIBS"
6267 CFLAGS="$lt_save_CFLAGS"
6268 else
6269 echo "cannot find nm_test_func in $nlist" >&5
6271 else
6272 echo "cannot find nm_test_var in $nlist" >&5
6274 else
6275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6277 else
6278 echo "$progname: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 rm -rf conftest* conftst*
6283 # Do not use the global_symbol_pipe unless it works.
6284 if test "$pipe_works" = yes; then
6285 break
6286 else
6287 lt_cv_sys_global_symbol_pipe=
6289 done
6293 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6294 lt_cv_sys_global_symbol_to_cdecl=
6296 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6298 $as_echo "failed" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6301 $as_echo "ok" >&6; }
6325 # Check whether --enable-libtool-lock was given.
6326 if test "${enable_libtool_lock+set}" = set; then :
6327 enableval=$enable_libtool_lock;
6330 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6332 # Some flags need to be propagated to the compiler or linker for good
6333 # libtool support.
6334 case $host in
6335 ia64-*-hpux*)
6336 # Find out which ABI we are using.
6337 echo 'int i;' > conftest.$ac_ext
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339 (eval $ac_compile) 2>&5
6340 ac_status=$?
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6343 case `/usr/bin/file conftest.$ac_objext` in
6344 *ELF-32*)
6345 HPUX_IA64_MODE="32"
6347 *ELF-64*)
6348 HPUX_IA64_MODE="64"
6350 esac
6352 rm -rf conftest*
6354 *-*-irix6*)
6355 # Find out which ABI we are using.
6356 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358 (eval $ac_compile) 2>&5
6359 ac_status=$?
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; then
6362 if test "$lt_cv_prog_gnu_ld" = yes; then
6363 case `/usr/bin/file conftest.$ac_objext` in
6364 *32-bit*)
6365 LD="${LD-ld} -melf32bsmip"
6367 *N32*)
6368 LD="${LD-ld} -melf32bmipn32"
6370 *64-bit*)
6371 LD="${LD-ld} -melf64bmip"
6373 esac
6374 else
6375 case `/usr/bin/file conftest.$ac_objext` in
6376 *32-bit*)
6377 LD="${LD-ld} -32"
6379 *N32*)
6380 LD="${LD-ld} -n32"
6382 *64-bit*)
6383 LD="${LD-ld} -64"
6385 esac
6388 rm -rf conftest*
6391 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6392 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6393 # Find out which ABI we are using.
6394 echo 'int i;' > conftest.$ac_ext
6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396 (eval $ac_compile) 2>&5
6397 ac_status=$?
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; }; then
6400 case `/usr/bin/file conftest.o` in
6401 *32-bit*)
6402 case $host in
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_i386_fbsd"
6406 x86_64-*linux*)
6407 case `/usr/bin/file conftest.o` in
6408 *x86-64*)
6409 LD="${LD-ld} -m elf32_x86_64"
6412 LD="${LD-ld} -m elf_i386"
6414 esac
6416 powerpc64le-*linux*)
6417 LD="${LD-ld} -m elf32lppclinux"
6419 powerpc64-*linux*)
6420 LD="${LD-ld} -m elf32ppclinux"
6422 s390x-*linux*)
6423 LD="${LD-ld} -m elf_s390"
6425 sparc64-*linux*)
6426 LD="${LD-ld} -m elf32_sparc"
6428 esac
6430 *64-bit*)
6431 case $host in
6432 x86_64-*kfreebsd*-gnu)
6433 LD="${LD-ld} -m elf_x86_64_fbsd"
6435 x86_64-*linux*)
6436 LD="${LD-ld} -m elf_x86_64"
6438 powerpcle-*linux*)
6439 LD="${LD-ld} -m elf64lppc"
6441 powerpc-*linux*)
6442 LD="${LD-ld} -m elf64ppc"
6444 s390*-*linux*|s390*-*tpf*)
6445 LD="${LD-ld} -m elf64_s390"
6447 sparc*-*linux*)
6448 LD="${LD-ld} -m elf64_sparc"
6450 esac
6452 esac
6454 rm -rf conftest*
6457 *-*-sco3.2v5*)
6458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6459 SAVE_CFLAGS="$CFLAGS"
6460 CFLAGS="$CFLAGS -belf"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6462 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6463 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 ac_ext=c
6467 ac_cpp='$CPP $CPPFLAGS'
6468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472 if test x$gcc_no_link = xyes; then
6473 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6479 main ()
6483 return 0;
6485 _ACEOF
6486 if ac_fn_c_try_link "$LINENO"; then :
6487 lt_cv_cc_needs_belf=yes
6488 else
6489 lt_cv_cc_needs_belf=no
6491 rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 ac_ext=c
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6501 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6502 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6503 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6504 CFLAGS="$SAVE_CFLAGS"
6507 sparc*-*solaris*)
6508 # Find out which ABI we are using.
6509 echo 'int i;' > conftest.$ac_ext
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511 (eval $ac_compile) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }; then
6515 case `/usr/bin/file conftest.o` in
6516 *64-bit*)
6517 case $lt_cv_prog_gnu_ld in
6518 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6520 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6521 LD="${LD-ld} -64"
6524 esac
6526 esac
6528 rm -rf conftest*
6530 esac
6532 need_locks="$enable_libtool_lock"
6535 case $host_os in
6536 rhapsody* | darwin*)
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$DSYMUTIL"; then
6546 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6566 if test -n "$DSYMUTIL"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6568 $as_echo "$DSYMUTIL" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6576 if test -z "$ac_cv_prog_DSYMUTIL"; then
6577 ac_ct_DSYMUTIL=$DSYMUTIL
6578 # Extract the first word of "dsymutil", so it can be a program name with args.
6579 set dummy dsymutil; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$ac_ct_DSYMUTIL"; then
6586 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6605 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6606 if test -n "$ac_ct_DSYMUTIL"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6608 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6614 if test "x$ac_ct_DSYMUTIL" = x; then
6615 DSYMUTIL=":"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 DSYMUTIL=$ac_ct_DSYMUTIL
6625 else
6626 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$NMEDIT"; then
6638 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6651 done
6652 done
6653 IFS=$as_save_IFS
6657 NMEDIT=$ac_cv_prog_NMEDIT
6658 if test -n "$NMEDIT"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6660 $as_echo "$NMEDIT" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_NMEDIT"; then
6669 ac_ct_NMEDIT=$NMEDIT
6670 # Extract the first word of "nmedit", so it can be a program name with args.
6671 set dummy nmedit; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$ac_ct_NMEDIT"; then
6678 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6698 if test -n "$ac_ct_NMEDIT"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6700 $as_echo "$ac_ct_NMEDIT" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_NMEDIT" = x; then
6707 NMEDIT=":"
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710 yes:)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 NMEDIT=$ac_ct_NMEDIT
6717 else
6718 NMEDIT="$ac_cv_prog_NMEDIT"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_LIPO+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$LIPO"; then
6730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6743 done
6744 done
6745 IFS=$as_save_IFS
6749 LIPO=$ac_cv_prog_LIPO
6750 if test -n "$LIPO"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6752 $as_echo "$LIPO" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_LIPO"; then
6761 ac_ct_LIPO=$LIPO
6762 # Extract the first word of "lipo", so it can be a program name with args.
6763 set dummy lipo; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_LIPO"; then
6770 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_LIPO="lipo"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6790 if test -n "$ac_ct_LIPO"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6792 $as_echo "$ac_ct_LIPO" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_LIPO" = x; then
6799 LIPO=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 LIPO=$ac_ct_LIPO
6809 else
6810 LIPO="$ac_cv_prog_LIPO"
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}otool; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 if test -n "$OTOOL"; then
6822 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6835 done
6836 done
6837 IFS=$as_save_IFS
6841 OTOOL=$ac_cv_prog_OTOOL
6842 if test -n "$OTOOL"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6844 $as_echo "$OTOOL" >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6852 if test -z "$ac_cv_prog_OTOOL"; then
6853 ac_ct_OTOOL=$OTOOL
6854 # Extract the first word of "otool", so it can be a program name with args.
6855 set dummy otool; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 if test -n "$ac_ct_OTOOL"; then
6862 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_OTOOL="otool"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6875 done
6876 done
6877 IFS=$as_save_IFS
6881 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6882 if test -n "$ac_ct_OTOOL"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6884 $as_echo "$ac_ct_OTOOL" >&6; }
6885 else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6890 if test "x$ac_ct_OTOOL" = x; then
6891 OTOOL=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 OTOOL=$ac_ct_OTOOL
6901 else
6902 OTOOL="$ac_cv_prog_OTOOL"
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 if test -n "$OTOOL64"; then
6914 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6927 done
6928 done
6929 IFS=$as_save_IFS
6933 OTOOL64=$ac_cv_prog_OTOOL64
6934 if test -n "$OTOOL64"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6936 $as_echo "$OTOOL64" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6944 if test -z "$ac_cv_prog_OTOOL64"; then
6945 ac_ct_OTOOL64=$OTOOL64
6946 # Extract the first word of "otool64", so it can be a program name with args.
6947 set dummy otool64; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 if test -n "$ac_ct_OTOOL64"; then
6954 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_prog_ac_ct_OTOOL64="otool64"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6967 done
6968 done
6969 IFS=$as_save_IFS
6973 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6974 if test -n "$ac_ct_OTOOL64"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6976 $as_echo "$ac_ct_OTOOL64" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6982 if test "x$ac_ct_OTOOL64" = x; then
6983 OTOOL64=":"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991 OTOOL64=$ac_ct_OTOOL64
6993 else
6994 OTOOL64="$ac_cv_prog_OTOOL64"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7024 $as_echo_n "checking for -single_module linker flag... " >&6; }
7025 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 lt_cv_apple_cc_single_mod=no
7029 if test -z "${LT_MULTI_MODULE}"; then
7030 # By default we will add the -single_module flag. You can override
7031 # by either setting the environment variable LT_MULTI_MODULE
7032 # non-empty at configure time, or by adding -multi_module to the
7033 # link flags.
7034 rm -rf libconftest.dylib*
7035 echo "int foo(void){return 1;}" > conftest.c
7036 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7037 -dynamiclib -Wl,-single_module conftest.c" >&5
7038 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7039 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7040 _lt_result=$?
7041 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7042 lt_cv_apple_cc_single_mod=yes
7043 else
7044 cat conftest.err >&5
7046 rm -rf libconftest.dylib*
7047 rm -f conftest.*
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7051 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7053 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7054 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 lt_cv_ld_exported_symbols_list=no
7058 save_LDFLAGS=$LDFLAGS
7059 echo "_main" > conftest.sym
7060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7061 if test x$gcc_no_link = xyes; then
7062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7068 main ()
7072 return 0;
7074 _ACEOF
7075 if ac_fn_c_try_link "$LINENO"; then :
7076 lt_cv_ld_exported_symbols_list=yes
7077 else
7078 lt_cv_ld_exported_symbols_list=no
7080 rm -f core conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7082 LDFLAGS="$save_LDFLAGS"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7086 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7088 $as_echo_n "checking for -force_load linker flag... " >&6; }
7089 if test "${lt_cv_ld_force_load+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 lt_cv_ld_force_load=no
7093 cat > conftest.c << _LT_EOF
7094 int forced_loaded() { return 2;}
7095 _LT_EOF
7096 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7097 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7098 echo "$AR cru libconftest.a conftest.o" >&5
7099 $AR cru libconftest.a conftest.o 2>&5
7100 cat > conftest.c << _LT_EOF
7101 int main() { return 0;}
7102 _LT_EOF
7103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7105 _lt_result=$?
7106 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7107 lt_cv_ld_force_load=yes
7108 else
7109 cat conftest.err >&5
7111 rm -f conftest.err libconftest.a conftest conftest.c
7112 rm -rf conftest.dSYM
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7116 $as_echo "$lt_cv_ld_force_load" >&6; }
7117 case $host_os in
7118 rhapsody* | darwin1.[012])
7119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7120 darwin1.*)
7121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7122 darwin*) # darwin 5.x on
7123 # if running on 10.5 or later, the deployment target defaults
7124 # to the OS version, if on x86, and 10.4, the deployment
7125 # target defaults to 10.4. Don't you love it?
7126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7129 10.[012][,.]*)
7130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7131 10.*)
7132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7133 esac
7135 esac
7136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7137 _lt_dar_single_mod='$single_module'
7139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7141 else
7142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7144 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7145 _lt_dsymutil='~$DSYMUTIL $lib || :'
7146 else
7147 _lt_dsymutil=
7150 esac
7152 for ac_header in dlfcn.h
7153 do :
7154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7156 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7157 cat >>confdefs.h <<_ACEOF
7158 #define HAVE_DLFCN_H 1
7159 _ACEOF
7163 done
7169 # Set options
7173 enable_dlopen=no
7176 enable_win32_dll=no
7179 # Check whether --enable-shared was given.
7180 if test "${enable_shared+set}" = set; then :
7181 enableval=$enable_shared; p=${PACKAGE-default}
7182 case $enableval in
7183 yes) enable_shared=yes ;;
7184 no) enable_shared=no ;;
7186 enable_shared=no
7187 # Look at the argument we got. We use all the common list separators.
7188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7189 for pkg in $enableval; do
7190 IFS="$lt_save_ifs"
7191 if test "X$pkg" = "X$p"; then
7192 enable_shared=yes
7194 done
7195 IFS="$lt_save_ifs"
7197 esac
7198 else
7199 enable_shared=yes
7210 # Check whether --enable-static was given.
7211 if test "${enable_static+set}" = set; then :
7212 enableval=$enable_static; p=${PACKAGE-default}
7213 case $enableval in
7214 yes) enable_static=yes ;;
7215 no) enable_static=no ;;
7217 enable_static=no
7218 # Look at the argument we got. We use all the common list separators.
7219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7220 for pkg in $enableval; do
7221 IFS="$lt_save_ifs"
7222 if test "X$pkg" = "X$p"; then
7223 enable_static=yes
7225 done
7226 IFS="$lt_save_ifs"
7228 esac
7229 else
7230 enable_static=yes
7242 # Check whether --with-pic was given.
7243 if test "${with_pic+set}" = set; then :
7244 withval=$with_pic; pic_mode="$withval"
7245 else
7246 pic_mode=default
7250 test -z "$pic_mode" && pic_mode=default
7258 # Check whether --enable-fast-install was given.
7259 if test "${enable_fast_install+set}" = set; then :
7260 enableval=$enable_fast_install; p=${PACKAGE-default}
7261 case $enableval in
7262 yes) enable_fast_install=yes ;;
7263 no) enable_fast_install=no ;;
7265 enable_fast_install=no
7266 # Look at the argument we got. We use all the common list separators.
7267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7268 for pkg in $enableval; do
7269 IFS="$lt_save_ifs"
7270 if test "X$pkg" = "X$p"; then
7271 enable_fast_install=yes
7273 done
7274 IFS="$lt_save_ifs"
7276 esac
7277 else
7278 enable_fast_install=yes
7291 # This can be used to rebuild libtool when needed
7292 LIBTOOL_DEPS="$ltmain"
7294 # Always use our own libtool.
7295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7322 test -z "$LN_S" && LN_S="ln -s"
7337 if test -n "${ZSH_VERSION+set}" ; then
7338 setopt NO_GLOB_SUBST
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7342 $as_echo_n "checking for objdir... " >&6; }
7343 if test "${lt_cv_objdir+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 rm -f .libs 2>/dev/null
7347 mkdir .libs 2>/dev/null
7348 if test -d .libs; then
7349 lt_cv_objdir=.libs
7350 else
7351 # MS-DOS does not allow filenames that begin with a dot.
7352 lt_cv_objdir=_libs
7354 rmdir .libs 2>/dev/null
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7357 $as_echo "$lt_cv_objdir" >&6; }
7358 objdir=$lt_cv_objdir
7364 cat >>confdefs.h <<_ACEOF
7365 #define LT_OBJDIR "$lt_cv_objdir/"
7366 _ACEOF
7371 case $host_os in
7372 aix3*)
7373 # AIX sometimes has problems with the GCC collect2 program. For some
7374 # reason, if we set the COLLECT_NAMES environment variable, the problems
7375 # vanish in a puff of smoke.
7376 if test "X${COLLECT_NAMES+set}" != Xset; then
7377 COLLECT_NAMES=
7378 export COLLECT_NAMES
7381 esac
7383 # Global variables:
7384 ofile=libtool
7385 can_build_shared=yes
7387 # All known linkers require a `.a' archive for static linking (except MSVC,
7388 # which needs '.lib').
7389 libext=a
7391 with_gnu_ld="$lt_cv_prog_gnu_ld"
7393 old_CC="$CC"
7394 old_CFLAGS="$CFLAGS"
7396 # Set sane defaults for various variables
7397 test -z "$CC" && CC=cc
7398 test -z "$LTCC" && LTCC=$CC
7399 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7400 test -z "$LD" && LD=ld
7401 test -z "$ac_objext" && ac_objext=o
7403 for cc_temp in $compiler""; do
7404 case $cc_temp in
7405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7407 \-*) ;;
7408 *) break;;
7409 esac
7410 done
7411 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7414 # Only perform the check for file, if the check method requires it
7415 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7416 case $deplibs_check_method in
7417 file_magic*)
7418 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7420 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7421 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 case $MAGIC_CMD in
7425 [\\/*] | ?:[\\/]*)
7426 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7429 lt_save_MAGIC_CMD="$MAGIC_CMD"
7430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7431 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7432 for ac_dir in $ac_dummy; do
7433 IFS="$lt_save_ifs"
7434 test -z "$ac_dir" && ac_dir=.
7435 if test -f $ac_dir/${ac_tool_prefix}file; then
7436 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7437 if test -n "$file_magic_test_file"; then
7438 case $deplibs_check_method in
7439 "file_magic "*)
7440 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7443 $EGREP "$file_magic_regex" > /dev/null; then
7445 else
7446 cat <<_LT_EOF 1>&2
7448 *** Warning: the command libtool uses to detect shared libraries,
7449 *** $file_magic_cmd, produces output that libtool cannot recognize.
7450 *** The result is that libtool may fail to recognize shared libraries
7451 *** as such. This will affect the creation of libtool libraries that
7452 *** depend on shared libraries, but programs linked with such libtool
7453 *** libraries will work regardless of this problem. Nevertheless, you
7454 *** may want to report the problem to your system manager and/or to
7455 *** bug-libtool@gnu.org
7457 _LT_EOF
7458 fi ;;
7459 esac
7461 break
7463 done
7464 IFS="$lt_save_ifs"
7465 MAGIC_CMD="$lt_save_MAGIC_CMD"
7467 esac
7470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471 if test -n "$MAGIC_CMD"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7473 $as_echo "$MAGIC_CMD" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7483 if test -z "$lt_cv_path_MAGIC_CMD"; then
7484 if test -n "$ac_tool_prefix"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7486 $as_echo_n "checking for file... " >&6; }
7487 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 case $MAGIC_CMD in
7491 [\\/*] | ?:[\\/]*)
7492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7495 lt_save_MAGIC_CMD="$MAGIC_CMD"
7496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7498 for ac_dir in $ac_dummy; do
7499 IFS="$lt_save_ifs"
7500 test -z "$ac_dir" && ac_dir=.
7501 if test -f $ac_dir/file; then
7502 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7503 if test -n "$file_magic_test_file"; then
7504 case $deplibs_check_method in
7505 "file_magic "*)
7506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7509 $EGREP "$file_magic_regex" > /dev/null; then
7511 else
7512 cat <<_LT_EOF 1>&2
7514 *** Warning: the command libtool uses to detect shared libraries,
7515 *** $file_magic_cmd, produces output that libtool cannot recognize.
7516 *** The result is that libtool may fail to recognize shared libraries
7517 *** as such. This will affect the creation of libtool libraries that
7518 *** depend on shared libraries, but programs linked with such libtool
7519 *** libraries will work regardless of this problem. Nevertheless, you
7520 *** may want to report the problem to your system manager and/or to
7521 *** bug-libtool@gnu.org
7523 _LT_EOF
7524 fi ;;
7525 esac
7527 break
7529 done
7530 IFS="$lt_save_ifs"
7531 MAGIC_CMD="$lt_save_MAGIC_CMD"
7533 esac
7536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537 if test -n "$MAGIC_CMD"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7539 $as_echo "$MAGIC_CMD" >&6; }
7540 else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7546 else
7547 MAGIC_CMD=:
7553 esac
7555 # Use C for the default configuration in the libtool script
7557 lt_save_CC="$CC"
7558 ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7565 # Source file extension for C test sources.
7566 ac_ext=c
7568 # Object file extension for compiled C test sources.
7569 objext=o
7570 objext=$objext
7572 # Code to be used in simple compile tests
7573 lt_simple_compile_test_code="int some_variable = 0;"
7575 # Code to be used in simple link tests
7576 lt_simple_link_test_code='int main(){return(0);}'
7584 # If no C compiler was specified, use CC.
7585 LTCC=${LTCC-"$CC"}
7587 # If no C compiler flags were specified, use CFLAGS.
7588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7590 # Allow CC to be a program name with arguments.
7591 compiler=$CC
7593 # Save the default compiler, since it gets overwritten when the other
7594 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7595 compiler_DEFAULT=$CC
7597 # save warnings/boilerplate of simple test code
7598 ac_outfile=conftest.$ac_objext
7599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7601 _lt_compiler_boilerplate=`cat conftest.err`
7602 $RM conftest*
7604 ac_outfile=conftest.$ac_objext
7605 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7607 _lt_linker_boilerplate=`cat conftest.err`
7608 $RM -r conftest*
7611 ## CAVEAT EMPTOR:
7612 ## There is no encapsulation within the following macros, do not change
7613 ## the running order or otherwise move them around unless you know exactly
7614 ## what you are doing...
7615 if test -n "$compiler"; then
7617 lt_prog_compiler_no_builtin_flag=
7619 if test "$GCC" = yes; then
7620 case $cc_basename in
7621 nvcc*)
7622 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7624 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7625 esac
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7628 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7629 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 lt_cv_prog_compiler_rtti_exceptions=no
7633 ac_outfile=conftest.$ac_objext
7634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7635 lt_compiler_flag="-fno-rtti -fno-exceptions"
7636 # Insert the option either (1) after the last *FLAGS variable, or
7637 # (2) before a word containing "conftest.", or (3) at the end.
7638 # Note that $ac_compile itself does not contain backslashes and begins
7639 # with a dollar sign (not a hyphen), so the echo should work correctly.
7640 # The option is referenced via a variable to avoid confusing sed.
7641 lt_compile=`echo "$ac_compile" | $SED \
7642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7644 -e 's:$: $lt_compiler_flag:'`
7645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7646 (eval "$lt_compile" 2>conftest.err)
7647 ac_status=$?
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 if (exit $ac_status) && test -s "$ac_outfile"; then
7651 # The compiler can only warn and ignore the option if not recognized
7652 # So say no if there are warnings other than the usual output.
7653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7656 lt_cv_prog_compiler_rtti_exceptions=yes
7659 $RM conftest*
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7663 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7666 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7667 else
7678 lt_prog_compiler_wl=
7679 lt_prog_compiler_pic=
7680 lt_prog_compiler_static=
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7683 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7685 if test "$GCC" = yes; then
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_static='-static'
7689 case $host_os in
7690 aix*)
7691 # All AIX code is PIC.
7692 if test "$host_cpu" = ia64; then
7693 # AIX 5 now supports IA64 processor
7694 lt_prog_compiler_static='-Bstatic'
7696 lt_prog_compiler_pic='-fPIC'
7699 amigaos*)
7700 case $host_cpu in
7701 powerpc)
7702 # see comment about AmigaOS4 .so support
7703 lt_prog_compiler_pic='-fPIC'
7705 m68k)
7706 # FIXME: we need at least 68020 code to build shared libraries, but
7707 # adding the `-m68020' flag to GCC prevents building anything better,
7708 # like `-m68040'.
7709 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7711 esac
7714 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7715 # PIC is the default for these OSes.
7718 mingw* | cygwin* | pw32* | os2* | cegcc*)
7719 # This hack is so that the source file can tell whether it is being
7720 # built for inclusion in a dll (and should export symbols for example).
7721 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7722 # (--disable-auto-import) libraries
7723 lt_prog_compiler_pic='-DDLL_EXPORT'
7726 darwin* | rhapsody*)
7727 # PIC is the default on this platform
7728 # Common symbols not allowed in MH_DYLIB files
7729 lt_prog_compiler_pic='-fno-common'
7732 haiku*)
7733 # PIC is the default for Haiku.
7734 # The "-static" flag exists, but is broken.
7735 lt_prog_compiler_static=
7738 hpux*)
7739 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7740 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7741 # sets the default TLS model and affects inlining.
7742 case $host_cpu in
7743 hppa*64*)
7744 # +Z the default
7747 lt_prog_compiler_pic='-fPIC'
7749 esac
7752 interix[3-9]*)
7753 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7754 # Instead, we relocate shared libraries at runtime.
7757 msdosdjgpp*)
7758 # Just because we use GCC doesn't mean we suddenly get shared libraries
7759 # on systems that don't support them.
7760 lt_prog_compiler_can_build_shared=no
7761 enable_shared=no
7764 *nto* | *qnx*)
7765 # QNX uses GNU C++, but need to define -shared option too, otherwise
7766 # it will coredump.
7767 lt_prog_compiler_pic='-fPIC -shared'
7770 sysv4*MP*)
7771 if test -d /usr/nec; then
7772 lt_prog_compiler_pic=-Kconform_pic
7777 lt_prog_compiler_pic='-fPIC'
7779 esac
7781 case $cc_basename in
7782 nvcc*) # Cuda Compiler Driver 2.2
7783 lt_prog_compiler_wl='-Xlinker '
7784 lt_prog_compiler_pic='-Xcompiler -fPIC'
7786 esac
7787 else
7788 # PORTME Check for flag to pass linker flags through the system compiler.
7789 case $host_os in
7790 aix*)
7791 lt_prog_compiler_wl='-Wl,'
7792 if test "$host_cpu" = ia64; then
7793 # AIX 5 now supports IA64 processor
7794 lt_prog_compiler_static='-Bstatic'
7795 else
7796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7800 mingw* | cygwin* | pw32* | os2* | cegcc*)
7801 # This hack is so that the source file can tell whether it is being
7802 # built for inclusion in a dll (and should export symbols for example).
7803 lt_prog_compiler_pic='-DDLL_EXPORT'
7806 hpux9* | hpux10* | hpux11*)
7807 lt_prog_compiler_wl='-Wl,'
7808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7809 # not for PA HP-UX.
7810 case $host_cpu in
7811 hppa*64*|ia64*)
7812 # +Z the default
7815 lt_prog_compiler_pic='+Z'
7817 esac
7818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7819 lt_prog_compiler_static='${wl}-a ${wl}archive'
7822 irix5* | irix6* | nonstopux*)
7823 lt_prog_compiler_wl='-Wl,'
7824 # PIC (with -KPIC) is the default.
7825 lt_prog_compiler_static='-non_shared'
7828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7829 case $cc_basename in
7830 # old Intel for x86_64 which still supported -KPIC.
7831 ecc*)
7832 lt_prog_compiler_wl='-Wl,'
7833 lt_prog_compiler_pic='-KPIC'
7834 lt_prog_compiler_static='-static'
7836 # icc used to be incompatible with GCC.
7837 # ICC 10 doesn't accept -KPIC any more.
7838 icc* | ifort*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-fPIC'
7841 lt_prog_compiler_static='-static'
7843 # Lahey Fortran 8.1.
7844 lf95*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_pic='--shared'
7847 lt_prog_compiler_static='--static'
7849 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7850 # Portland Group compilers (*not* the Pentium gcc compiler,
7851 # which looks to be a dead project)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-fpic'
7854 lt_prog_compiler_static='-Bstatic'
7856 ccc*)
7857 lt_prog_compiler_wl='-Wl,'
7858 # All Alpha code is PIC.
7859 lt_prog_compiler_static='-non_shared'
7861 xl* | bgxl* | bgf* | mpixl*)
7862 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-qpic'
7865 lt_prog_compiler_static='-qstaticlink'
7868 case `$CC -V 2>&1 | sed 5q` in
7869 *Sun\ F* | *Sun*Fortran*)
7870 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7871 lt_prog_compiler_pic='-KPIC'
7872 lt_prog_compiler_static='-Bstatic'
7873 lt_prog_compiler_wl=''
7875 *Sun\ C*)
7876 # Sun C 5.9
7877 lt_prog_compiler_pic='-KPIC'
7878 lt_prog_compiler_static='-Bstatic'
7879 lt_prog_compiler_wl='-Wl,'
7881 esac
7883 esac
7886 newsos6)
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7891 *nto* | *qnx*)
7892 # QNX uses GNU C++, but need to define -shared option too, otherwise
7893 # it will coredump.
7894 lt_prog_compiler_pic='-fPIC -shared'
7897 osf3* | osf4* | osf5*)
7898 lt_prog_compiler_wl='-Wl,'
7899 # All OSF/1 code is PIC.
7900 lt_prog_compiler_static='-non_shared'
7903 rdos*)
7904 lt_prog_compiler_static='-non_shared'
7907 solaris*)
7908 lt_prog_compiler_pic='-KPIC'
7909 lt_prog_compiler_static='-Bstatic'
7910 case $cc_basename in
7911 f77* | f90* | f95*)
7912 lt_prog_compiler_wl='-Qoption ld ';;
7914 lt_prog_compiler_wl='-Wl,';;
7915 esac
7918 sunos4*)
7919 lt_prog_compiler_wl='-Qoption ld '
7920 lt_prog_compiler_pic='-PIC'
7921 lt_prog_compiler_static='-Bstatic'
7924 sysv4 | sysv4.2uw2* | sysv4.3*)
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_pic='-KPIC'
7927 lt_prog_compiler_static='-Bstatic'
7930 sysv4*MP*)
7931 if test -d /usr/nec ;then
7932 lt_prog_compiler_pic='-Kconform_pic'
7933 lt_prog_compiler_static='-Bstatic'
7937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_pic='-KPIC'
7940 lt_prog_compiler_static='-Bstatic'
7943 unicos*)
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_can_build_shared=no
7948 uts4*)
7949 lt_prog_compiler_pic='-pic'
7950 lt_prog_compiler_static='-Bstatic'
7954 lt_prog_compiler_can_build_shared=no
7956 esac
7959 case $host_os in
7960 # For platforms which do not support PIC, -DPIC is meaningless:
7961 *djgpp*)
7962 lt_prog_compiler_pic=
7965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7967 esac
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7969 $as_echo "$lt_prog_compiler_pic" >&6; }
7977 # Check to make sure the PIC flag actually works.
7979 if test -n "$lt_prog_compiler_pic"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7981 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7982 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 lt_cv_prog_compiler_pic_works=no
7986 ac_outfile=conftest.$ac_objext
7987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7988 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7989 # Insert the option either (1) after the last *FLAGS variable, or
7990 # (2) before a word containing "conftest.", or (3) at the end.
7991 # Note that $ac_compile itself does not contain backslashes and begins
7992 # with a dollar sign (not a hyphen), so the echo should work correctly.
7993 # The option is referenced via a variable to avoid confusing sed.
7994 lt_compile=`echo "$ac_compile" | $SED \
7995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7997 -e 's:$: $lt_compiler_flag:'`
7998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7999 (eval "$lt_compile" 2>conftest.err)
8000 ac_status=$?
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 if (exit $ac_status) && test -s "$ac_outfile"; then
8004 # The compiler can only warn and ignore the option if not recognized
8005 # So say no if there are warnings other than the usual output.
8006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8009 lt_cv_prog_compiler_pic_works=yes
8012 $RM conftest*
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8016 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8018 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8019 case $lt_prog_compiler_pic in
8020 "" | " "*) ;;
8021 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8022 esac
8023 else
8024 lt_prog_compiler_pic=
8025 lt_prog_compiler_can_build_shared=no
8036 # Check to make sure the static flag actually works.
8038 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8040 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8041 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 lt_cv_prog_compiler_static_works=no
8045 save_LDFLAGS="$LDFLAGS"
8046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8049 # The linker can only warn and ignore the option if not recognized
8050 # So say no if there are warnings
8051 if test -s conftest.err; then
8052 # Append any errors to the config.log.
8053 cat conftest.err 1>&5
8054 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8056 if diff conftest.exp conftest.er2 >/dev/null; then
8057 lt_cv_prog_compiler_static_works=yes
8059 else
8060 lt_cv_prog_compiler_static_works=yes
8063 $RM -r conftest*
8064 LDFLAGS="$save_LDFLAGS"
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8068 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8070 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8072 else
8073 lt_prog_compiler_static=
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8084 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 lt_cv_prog_compiler_c_o=no
8088 $RM -r conftest 2>/dev/null
8089 mkdir conftest
8090 cd conftest
8091 mkdir out
8092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8094 lt_compiler_flag="-o out/conftest2.$ac_objext"
8095 # Insert the option either (1) after the last *FLAGS variable, or
8096 # (2) before a word containing "conftest.", or (3) at the end.
8097 # Note that $ac_compile itself does not contain backslashes and begins
8098 # with a dollar sign (not a hyphen), so the echo should work correctly.
8099 lt_compile=`echo "$ac_compile" | $SED \
8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8102 -e 's:$: $lt_compiler_flag:'`
8103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8104 (eval "$lt_compile" 2>out/conftest.err)
8105 ac_status=$?
8106 cat out/conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8109 then
8110 # The compiler can only warn and ignore the option if not recognized
8111 # So say no if there are warnings
8112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8115 lt_cv_prog_compiler_c_o=yes
8118 chmod u+w . 2>&5
8119 $RM conftest*
8120 # SGI C++ compiler will create directory out/ii_files/ for
8121 # template instantiation
8122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8123 $RM out/* && rmdir out
8124 cd ..
8125 $RM -r conftest
8126 $RM conftest*
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8130 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8139 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 lt_cv_prog_compiler_c_o=no
8143 $RM -r conftest 2>/dev/null
8144 mkdir conftest
8145 cd conftest
8146 mkdir out
8147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8149 lt_compiler_flag="-o out/conftest2.$ac_objext"
8150 # Insert the option either (1) after the last *FLAGS variable, or
8151 # (2) before a word containing "conftest.", or (3) at the end.
8152 # Note that $ac_compile itself does not contain backslashes and begins
8153 # with a dollar sign (not a hyphen), so the echo should work correctly.
8154 lt_compile=`echo "$ac_compile" | $SED \
8155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8157 -e 's:$: $lt_compiler_flag:'`
8158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8159 (eval "$lt_compile" 2>out/conftest.err)
8160 ac_status=$?
8161 cat out/conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8164 then
8165 # The compiler can only warn and ignore the option if not recognized
8166 # So say no if there are warnings
8167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8170 lt_cv_prog_compiler_c_o=yes
8173 chmod u+w . 2>&5
8174 $RM conftest*
8175 # SGI C++ compiler will create directory out/ii_files/ for
8176 # template instantiation
8177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8178 $RM out/* && rmdir out
8179 cd ..
8180 $RM -r conftest
8181 $RM conftest*
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8190 hard_links="nottested"
8191 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8192 # do not overwrite the value of need_locks provided by the user
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8194 $as_echo_n "checking if we can lock with hard links... " >&6; }
8195 hard_links=yes
8196 $RM conftest*
8197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8198 touch conftest.a
8199 ln conftest.a conftest.b 2>&5 || hard_links=no
8200 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8202 $as_echo "$hard_links" >&6; }
8203 if test "$hard_links" = no; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8205 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8206 need_locks=warn
8208 else
8209 need_locks=no
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8218 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8220 runpath_var=
8221 allow_undefined_flag=
8222 always_export_symbols=no
8223 archive_cmds=
8224 archive_expsym_cmds=
8225 compiler_needs_object=no
8226 enable_shared_with_static_runtimes=no
8227 export_dynamic_flag_spec=
8228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8229 hardcode_automatic=no
8230 hardcode_direct=no
8231 hardcode_direct_absolute=no
8232 hardcode_libdir_flag_spec=
8233 hardcode_libdir_flag_spec_ld=
8234 hardcode_libdir_separator=
8235 hardcode_minus_L=no
8236 hardcode_shlibpath_var=unsupported
8237 inherit_rpath=no
8238 link_all_deplibs=unknown
8239 module_cmds=
8240 module_expsym_cmds=
8241 old_archive_from_new_cmds=
8242 old_archive_from_expsyms_cmds=
8243 thread_safe_flag_spec=
8244 whole_archive_flag_spec=
8245 # include_expsyms should be a list of space-separated symbols to be *always*
8246 # included in the symbol list
8247 include_expsyms=
8248 # exclude_expsyms can be an extended regexp of symbols to exclude
8249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8251 # as well as any symbol that contains `d'.
8252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8254 # platforms (ab)use it in PIC code, but their linkers get confused if
8255 # the symbol is explicitly referenced. Since portable code cannot
8256 # rely on this symbol name, it's probably fine to never include it in
8257 # preloaded symbol tables.
8258 # Exclude shared library initialization/finalization symbols.
8259 extract_expsyms_cmds=
8261 case $host_os in
8262 cygwin* | mingw* | pw32* | cegcc*)
8263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8264 # When not using gcc, we currently assume that we are using
8265 # Microsoft Visual C++.
8266 if test "$GCC" != yes; then
8267 with_gnu_ld=no
8270 interix*)
8271 # we just hope/assume this is gcc and not c89 (= MSVC++)
8272 with_gnu_ld=yes
8274 openbsd*)
8275 with_gnu_ld=no
8277 esac
8279 ld_shlibs=yes
8281 # On some targets, GNU ld is compatible enough with the native linker
8282 # that we're better off using the native interface for both.
8283 lt_use_gnu_ld_interface=no
8284 if test "$with_gnu_ld" = yes; then
8285 case $host_os in
8286 aix*)
8287 # The AIX port of GNU ld has always aspired to compatibility
8288 # with the native linker. However, as the warning in the GNU ld
8289 # block says, versions before 2.19.5* couldn't really create working
8290 # shared libraries, regardless of the interface used.
8291 case `$LD -v 2>&1` in
8292 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8293 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8294 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8296 lt_use_gnu_ld_interface=yes
8298 esac
8301 lt_use_gnu_ld_interface=yes
8303 esac
8306 if test "$lt_use_gnu_ld_interface" = yes; then
8307 # If archive_cmds runs LD, not CC, wlarc should be empty
8308 wlarc='${wl}'
8310 # Set some defaults for GNU ld with shared library support. These
8311 # are reset later if shared libraries are not supported. Putting them
8312 # here allows them to be overridden if necessary.
8313 runpath_var=LD_RUN_PATH
8314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8315 export_dynamic_flag_spec='${wl}--export-dynamic'
8316 # ancient GNU ld didn't support --whole-archive et. al.
8317 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8318 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8319 else
8320 whole_archive_flag_spec=
8322 supports_anon_versioning=no
8323 case `$LD -v 2>&1` in
8324 *GNU\ gold*) supports_anon_versioning=yes ;;
8325 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8326 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8327 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8328 *\ 2.11.*) ;; # other 2.11 versions
8329 *) supports_anon_versioning=yes ;;
8330 esac
8332 # See if GNU ld supports shared libraries.
8333 case $host_os in
8334 aix[3-9]*)
8335 # On AIX/PPC, the GNU linker is very broken
8336 if test "$host_cpu" != ia64; then
8337 ld_shlibs=no
8338 cat <<_LT_EOF 1>&2
8340 *** Warning: the GNU linker, at least up to release 2.19, is reported
8341 *** to be unable to reliably create shared libraries on AIX.
8342 *** Therefore, libtool is disabling shared libraries support. If you
8343 *** really care for shared libraries, you may want to install binutils
8344 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8345 *** You will then need to restart the configuration process.
8347 _LT_EOF
8351 amigaos*)
8352 case $host_cpu in
8353 powerpc)
8354 # see comment about AmigaOS4 .so support
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356 archive_expsym_cmds=''
8358 m68k)
8359 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)'
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 hardcode_minus_L=yes
8363 esac
8366 beos*)
8367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8368 allow_undefined_flag=unsupported
8369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8370 # support --undefined. This deserves some investigation. FIXME
8371 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 else
8373 ld_shlibs=no
8377 cygwin* | mingw* | pw32* | cegcc*)
8378 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8379 # as there is no search path for DLLs.
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 export_dynamic_flag_spec='${wl}--export-all-symbols'
8382 allow_undefined_flag=unsupported
8383 always_export_symbols=no
8384 enable_shared_with_static_runtimes=yes
8385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8387 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8389 # If the export-symbols file already is a .def file (1st line
8390 # is EXPORTS), use it as is; otherwise, prepend...
8391 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8392 cp $export_symbols $output_objdir/$soname.def;
8393 else
8394 echo EXPORTS > $output_objdir/$soname.def;
8395 cat $export_symbols >> $output_objdir/$soname.def;
8397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8398 else
8399 ld_shlibs=no
8403 haiku*)
8404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405 link_all_deplibs=yes
8408 interix[3-9]*)
8409 hardcode_direct=no
8410 hardcode_shlibpath_var=no
8411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8412 export_dynamic_flag_spec='${wl}-E'
8413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8414 # Instead, shared libraries are loaded at an image base (0x10000000 by
8415 # default) and relocated if they conflict, which is a slow very memory
8416 # consuming and fragmenting process. To avoid this, we pick a random,
8417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8418 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8420 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'
8423 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8424 tmp_diet=no
8425 if test "$host_os" = linux-dietlibc; then
8426 case $cc_basename in
8427 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8428 esac
8430 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8431 && test "$tmp_diet" = no
8432 then
8433 tmp_addflag=' $pic_flag'
8434 tmp_sharedflag='-shared'
8435 case $cc_basename,$host_cpu in
8436 pgcc*) # Portland Group C compiler
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 tmp_addflag=' $pic_flag'
8440 pgf77* | pgf90* | pgf95* | pgfortran*)
8441 # Portland Group f77 and f90 compilers
8442 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'
8443 tmp_addflag=' $pic_flag -Mnomain' ;;
8444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8445 tmp_addflag=' -i_dynamic' ;;
8446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8447 tmp_addflag=' -i_dynamic -nofor_main' ;;
8448 ifc* | ifort*) # Intel Fortran compiler
8449 tmp_addflag=' -nofor_main' ;;
8450 lf95*) # Lahey Fortran 8.1
8451 whole_archive_flag_spec=
8452 tmp_sharedflag='--shared' ;;
8453 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8454 tmp_sharedflag='-qmkshrobj'
8455 tmp_addflag= ;;
8456 nvcc*) # Cuda Compiler Driver 2.2
8457 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'
8458 compiler_needs_object=yes
8460 esac
8461 case `$CC -V 2>&1 | sed 5q` in
8462 *Sun\ C*) # Sun C 5.9
8463 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'
8464 compiler_needs_object=yes
8465 tmp_sharedflag='-G' ;;
8466 *Sun\ F*) # Sun Fortran 8.3
8467 tmp_sharedflag='-G' ;;
8468 esac
8469 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 if test "x$supports_anon_versioning" = xyes; then
8472 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8474 echo "local: *; };" >> $output_objdir/$libname.ver~
8475 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8478 case $cc_basename in
8479 xlf* | bgf* | bgxlf* | mpixlf*)
8480 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8481 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8482 hardcode_libdir_flag_spec=
8483 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8484 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8485 if test "x$supports_anon_versioning" = xyes; then
8486 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8488 echo "local: *; };" >> $output_objdir/$libname.ver~
8489 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8492 esac
8493 else
8494 ld_shlibs=no
8498 netbsd*)
8499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8500 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8501 wlarc=
8502 else
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8508 solaris*)
8509 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8510 ld_shlibs=no
8511 cat <<_LT_EOF 1>&2
8513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8514 *** create shared libraries on Solaris systems. Therefore, libtool
8515 *** is disabling shared libraries support. We urge you to upgrade GNU
8516 *** binutils to release 2.9.1 or newer. Another option is to modify
8517 *** your PATH or compiler configuration so that the native linker is
8518 *** used, and then restart.
8520 _LT_EOF
8521 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8524 else
8525 ld_shlibs=no
8529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8530 case `$LD -v 2>&1` in
8531 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8532 ld_shlibs=no
8533 cat <<_LT_EOF 1>&2
8535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8536 *** reliably create shared libraries on SCO systems. Therefore, libtool
8537 *** is disabling shared libraries support. We urge you to upgrade GNU
8538 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8539 *** your PATH or compiler configuration so that the native linker is
8540 *** used, and then restart.
8542 _LT_EOF
8545 # For security reasons, it is highly recommended that you always
8546 # use absolute paths for naming shared libraries, and exclude the
8547 # DT_RUNPATH tag from executables and libraries. But doing so
8548 # requires that you compile everything twice, which is a pain.
8549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8553 else
8554 ld_shlibs=no
8557 esac
8560 sunos4*)
8561 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8562 wlarc=
8563 hardcode_direct=yes
8564 hardcode_shlibpath_var=no
8568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8571 else
8572 ld_shlibs=no
8575 esac
8577 if test "$ld_shlibs" = no; then
8578 runpath_var=
8579 hardcode_libdir_flag_spec=
8580 export_dynamic_flag_spec=
8581 whole_archive_flag_spec=
8583 else
8584 # PORTME fill in a description of your system's linker (not GNU ld)
8585 case $host_os in
8586 aix3*)
8587 allow_undefined_flag=unsupported
8588 always_export_symbols=yes
8589 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'
8590 # Note: this linker hardcodes the directories in LIBPATH if there
8591 # are no directories specified by -L.
8592 hardcode_minus_L=yes
8593 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8594 # Neither direct hardcoding nor static linking is supported with a
8595 # broken collect2.
8596 hardcode_direct=unsupported
8600 aix[4-9]*)
8601 if test "$host_cpu" = ia64; then
8602 # On IA64, the linker does run time linking by default, so we don't
8603 # have to do anything special.
8604 aix_use_runtimelinking=no
8605 exp_sym_flag='-Bexport'
8606 no_entry_flag=""
8607 else
8608 # If we're using GNU nm, then we don't want the "-C" option.
8609 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8610 # Also, AIX nm treats weak defined symbols like other global
8611 # defined symbols, whereas GNU nm marks them as "W".
8612 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8613 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'
8614 else
8615 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8617 aix_use_runtimelinking=no
8619 # Test if we are trying to use run time linking or normal
8620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8621 # need to do runtime linking.
8622 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8623 for ld_flag in $LDFLAGS; do
8624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8625 aix_use_runtimelinking=yes
8626 break
8628 done
8630 esac
8632 exp_sym_flag='-bexport'
8633 no_entry_flag='-bnoentry'
8636 # When large executables or shared objects are built, AIX ld can
8637 # have problems creating the table of contents. If linking a library
8638 # or program results in "error TOC overflow" add -mminimal-toc to
8639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8642 archive_cmds=''
8643 hardcode_direct=yes
8644 hardcode_direct_absolute=yes
8645 hardcode_libdir_separator=':'
8646 link_all_deplibs=yes
8647 file_list_spec='${wl}-f,'
8649 if test "$GCC" = yes; then
8650 case $host_os in aix4.[012]|aix4.[012].*)
8651 # We only want to do this on AIX 4.2 and lower, the check
8652 # below for broken collect2 doesn't work under 4.3+
8653 collect2name=`${CC} -print-prog-name=collect2`
8654 if test -f "$collect2name" &&
8655 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8656 then
8657 # We have reworked collect2
8659 else
8660 # We have old collect2
8661 hardcode_direct=unsupported
8662 # It fails to find uninstalled libraries when the uninstalled
8663 # path is not listed in the libpath. Setting hardcode_minus_L
8664 # to unsupported forces relinking
8665 hardcode_minus_L=yes
8666 hardcode_libdir_flag_spec='-L$libdir'
8667 hardcode_libdir_separator=
8670 esac
8671 shared_flag='-shared'
8672 if test "$aix_use_runtimelinking" = yes; then
8673 shared_flag="$shared_flag "'${wl}-G'
8675 else
8676 # not using gcc
8677 if test "$host_cpu" = ia64; then
8678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8679 # chokes on -Wl,-G. The following line is correct:
8680 shared_flag='-G'
8681 else
8682 if test "$aix_use_runtimelinking" = yes; then
8683 shared_flag='${wl}-G'
8684 else
8685 shared_flag='${wl}-bM:SRE'
8690 export_dynamic_flag_spec='${wl}-bexpall'
8691 # It seems that -bexpall does not export symbols beginning with
8692 # underscore (_), so it is better to generate a list of symbols to export.
8693 always_export_symbols=yes
8694 if test "$aix_use_runtimelinking" = yes; then
8695 # Warning - without using the other runtime loading flags (-brtl),
8696 # -berok will link without error, but may produce a broken library.
8697 allow_undefined_flag='-berok'
8698 # Determine the default libpath from the value encoded in an
8699 # empty executable.
8700 if test x$gcc_no_link = xyes; then
8701 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8707 main ()
8711 return 0;
8713 _ACEOF
8714 if ac_fn_c_try_link "$LINENO"; then :
8716 lt_aix_libpath_sed='
8717 /Import File Strings/,/^$/ {
8718 /^0/ {
8719 s/^0 *\(.*\)$/\1/
8723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8724 # Check for a 64-bit object if we didn't find anything.
8725 if test -z "$aix_libpath"; then
8726 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8729 rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8734 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"
8735 else
8736 if test "$host_cpu" = ia64; then
8737 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8738 allow_undefined_flag="-z nodefs"
8739 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"
8740 else
8741 # Determine the default libpath from the value encoded in an
8742 # empty executable.
8743 if test x$gcc_no_link = xyes; then
8744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8750 main ()
8754 return 0;
8756 _ACEOF
8757 if ac_fn_c_try_link "$LINENO"; then :
8759 lt_aix_libpath_sed='
8760 /Import File Strings/,/^$/ {
8761 /^0/ {
8762 s/^0 *\(.*\)$/\1/
8766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8767 # Check for a 64-bit object if we didn't find anything.
8768 if test -z "$aix_libpath"; then
8769 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772 rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8776 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8777 # Warning - without using the other run time loading flags,
8778 # -berok will link without error, but may produce a broken library.
8779 no_undefined_flag=' ${wl}-bernotok'
8780 allow_undefined_flag=' ${wl}-berok'
8781 if test "$with_gnu_ld" = yes; then
8782 # We only use this code for GNU lds that support --whole-archive.
8783 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8784 else
8785 # Exported symbols can be pulled into shared objects from archives
8786 whole_archive_flag_spec='$convenience'
8788 archive_cmds_need_lc=yes
8789 # This is similar to how AIX traditionally builds its shared libraries.
8790 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'
8795 amigaos*)
8796 case $host_cpu in
8797 powerpc)
8798 # see comment about AmigaOS4 .so support
8799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800 archive_expsym_cmds=''
8802 m68k)
8803 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)'
8804 hardcode_libdir_flag_spec='-L$libdir'
8805 hardcode_minus_L=yes
8807 esac
8810 bsdi[45]*)
8811 export_dynamic_flag_spec=-rdynamic
8814 cygwin* | mingw* | pw32* | cegcc*)
8815 # When not using gcc, we currently assume that we are using
8816 # Microsoft Visual C++.
8817 # hardcode_libdir_flag_spec is actually meaningless, as there is
8818 # no search path for DLLs.
8819 hardcode_libdir_flag_spec=' '
8820 allow_undefined_flag=unsupported
8821 # Tell ltmain to make .lib files, not .a files.
8822 libext=lib
8823 # Tell ltmain to make .dll files, not .so files.
8824 shrext_cmds=".dll"
8825 # FIXME: Setting linknames here is a bad hack.
8826 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8827 # The linker will automatically build a .lib file if we build a DLL.
8828 old_archive_from_new_cmds='true'
8829 # FIXME: Should let the user specify the lib program.
8830 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8831 fix_srcfile_path='`cygpath -w "$srcfile"`'
8832 enable_shared_with_static_runtimes=yes
8835 darwin* | rhapsody*)
8838 archive_cmds_need_lc=no
8839 hardcode_direct=no
8840 hardcode_automatic=yes
8841 hardcode_shlibpath_var=unsupported
8842 if test "$lt_cv_ld_force_load" = "yes"; then
8843 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\"`'
8844 else
8845 whole_archive_flag_spec=''
8847 link_all_deplibs=yes
8848 allow_undefined_flag="$_lt_dar_allow_undefined"
8849 case $cc_basename in
8850 ifort*) _lt_dar_can_shared=yes ;;
8851 *) _lt_dar_can_shared=$GCC ;;
8852 esac
8853 if test "$_lt_dar_can_shared" = "yes"; then
8854 output_verbose_link_cmd=func_echo_all
8855 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8856 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8857 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}"
8858 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}"
8860 else
8861 ld_shlibs=no
8866 dgux*)
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 hardcode_shlibpath_var=no
8872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8873 # support. Future versions do this automatically, but an explicit c++rt0.o
8874 # does not break anything, and helps significantly (at the cost of a little
8875 # extra space).
8876 freebsd2.2*)
8877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8878 hardcode_libdir_flag_spec='-R$libdir'
8879 hardcode_direct=yes
8880 hardcode_shlibpath_var=no
8883 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8884 freebsd2.*)
8885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8886 hardcode_direct=yes
8887 hardcode_minus_L=yes
8888 hardcode_shlibpath_var=no
8891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8892 freebsd* | dragonfly*)
8893 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8894 hardcode_libdir_flag_spec='-R$libdir'
8895 hardcode_direct=yes
8896 hardcode_shlibpath_var=no
8899 hpux9*)
8900 if test "$GCC" = yes; then
8901 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'
8902 else
8903 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'
8905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8906 hardcode_libdir_separator=:
8907 hardcode_direct=yes
8909 # hardcode_minus_L: Not really in the search PATH,
8910 # but as the default location of the library.
8911 hardcode_minus_L=yes
8912 export_dynamic_flag_spec='${wl}-E'
8915 hpux10*)
8916 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8918 else
8919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8921 if test "$with_gnu_ld" = no; then
8922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8923 hardcode_libdir_flag_spec_ld='+b $libdir'
8924 hardcode_libdir_separator=:
8925 hardcode_direct=yes
8926 hardcode_direct_absolute=yes
8927 export_dynamic_flag_spec='${wl}-E'
8928 # hardcode_minus_L: Not really in the search PATH,
8929 # but as the default location of the library.
8930 hardcode_minus_L=yes
8934 hpux11*)
8935 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8936 case $host_cpu in
8937 hppa*64*)
8938 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8940 ia64*)
8941 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8946 esac
8947 else
8948 case $host_cpu in
8949 hppa*64*)
8950 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 ia64*)
8953 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8957 # Older versions of the 11.00 compiler do not understand -b yet
8958 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8960 $as_echo_n "checking if $CC understands -b... " >&6; }
8961 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 lt_cv_prog_compiler__b=no
8965 save_LDFLAGS="$LDFLAGS"
8966 LDFLAGS="$LDFLAGS -b"
8967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8969 # The linker can only warn and ignore the option if not recognized
8970 # So say no if there are warnings
8971 if test -s conftest.err; then
8972 # Append any errors to the config.log.
8973 cat conftest.err 1>&5
8974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8976 if diff conftest.exp conftest.er2 >/dev/null; then
8977 lt_cv_prog_compiler__b=yes
8979 else
8980 lt_cv_prog_compiler__b=yes
8983 $RM -r conftest*
8984 LDFLAGS="$save_LDFLAGS"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8988 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8990 if test x"$lt_cv_prog_compiler__b" = xyes; then
8991 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8992 else
8993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8997 esac
8999 if test "$with_gnu_ld" = no; then
9000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9001 hardcode_libdir_separator=:
9003 case $host_cpu in
9004 hppa*64*|ia64*)
9005 hardcode_direct=no
9006 hardcode_shlibpath_var=no
9009 hardcode_direct=yes
9010 hardcode_direct_absolute=yes
9011 export_dynamic_flag_spec='${wl}-E'
9013 # hardcode_minus_L: Not really in the search PATH,
9014 # but as the default location of the library.
9015 hardcode_minus_L=yes
9017 esac
9021 irix5* | irix6* | nonstopux*)
9022 if test "$GCC" = yes; then
9023 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'
9024 # Try to use the -exported_symbol ld option, if it does not
9025 # work, assume that -exports_file does not work either and
9026 # implicitly export all symbols.
9027 save_LDFLAGS="$LDFLAGS"
9028 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9029 if test x$gcc_no_link = xyes; then
9030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 int foo(void) {}
9035 _ACEOF
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 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'
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 LDFLAGS="$save_LDFLAGS"
9043 else
9044 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'
9045 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'
9047 archive_cmds_need_lc='no'
9048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9049 hardcode_libdir_separator=:
9050 inherit_rpath=yes
9051 link_all_deplibs=yes
9054 netbsd*)
9055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9057 else
9058 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9060 hardcode_libdir_flag_spec='-R$libdir'
9061 hardcode_direct=yes
9062 hardcode_shlibpath_var=no
9065 newsos6)
9066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_direct=yes
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 hardcode_libdir_separator=:
9070 hardcode_shlibpath_var=no
9073 *nto* | *qnx*)
9076 openbsd*)
9077 if test -f /usr/libexec/ld.so; then
9078 hardcode_direct=yes
9079 hardcode_shlibpath_var=no
9080 hardcode_direct_absolute=yes
9081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9085 export_dynamic_flag_spec='${wl}-E'
9086 else
9087 case $host_os in
9088 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9090 hardcode_libdir_flag_spec='-R$libdir'
9093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9096 esac
9098 else
9099 ld_shlibs=no
9103 os2*)
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_minus_L=yes
9106 allow_undefined_flag=unsupported
9107 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'
9108 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9111 osf3*)
9112 if test "$GCC" = yes; then
9113 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9114 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'
9115 else
9116 allow_undefined_flag=' -expect_unresolved \*'
9117 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'
9119 archive_cmds_need_lc='no'
9120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9121 hardcode_libdir_separator=:
9124 osf4* | osf5*) # as osf3* with the addition of -msym flag
9125 if test "$GCC" = yes; then
9126 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9127 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'
9128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129 else
9130 allow_undefined_flag=' -expect_unresolved \*'
9131 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'
9132 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~
9133 $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'
9135 # Both c and cxx compiler support -rpath directly
9136 hardcode_libdir_flag_spec='-rpath $libdir'
9138 archive_cmds_need_lc='no'
9139 hardcode_libdir_separator=:
9142 solaris*)
9143 no_undefined_flag=' -z defs'
9144 if test "$GCC" = yes; then
9145 wlarc='${wl}'
9146 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9148 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9149 else
9150 case `$CC -V 2>&1` in
9151 *"Compilers 5.0"*)
9152 wlarc=''
9153 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9154 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9155 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9158 wlarc='${wl}'
9159 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9161 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9163 esac
9165 hardcode_libdir_flag_spec='-R$libdir'
9166 hardcode_shlibpath_var=no
9167 case $host_os in
9168 solaris2.[0-5] | solaris2.[0-5].*) ;;
9170 # The compiler driver will combine and reorder linker options,
9171 # but understands `-z linker_flag'. GCC discards it without `$wl',
9172 # but is careful enough not to reorder.
9173 # Supported since Solaris 2.6 (maybe 2.5.1?)
9174 if test "$GCC" = yes; then
9175 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9176 else
9177 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9180 esac
9181 link_all_deplibs=yes
9184 sunos4*)
9185 if test "x$host_vendor" = xsequent; then
9186 # Use $CC to link under sequent, because it throws in some extra .o
9187 # files that make .init and .fini sections work.
9188 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9189 else
9190 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_libdir_flag_spec='-L$libdir'
9193 hardcode_direct=yes
9194 hardcode_minus_L=yes
9195 hardcode_shlibpath_var=no
9198 sysv4)
9199 case $host_vendor in
9200 sni)
9201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9202 hardcode_direct=yes # is this really true???
9204 siemens)
9205 ## LD is ld it makes a PLAMLIB
9206 ## CC just makes a GrossModule.
9207 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9208 reload_cmds='$CC -r -o $output$reload_objs'
9209 hardcode_direct=no
9211 motorola)
9212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9213 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9215 esac
9216 runpath_var='LD_RUN_PATH'
9217 hardcode_shlibpath_var=no
9220 sysv4.3*)
9221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222 hardcode_shlibpath_var=no
9223 export_dynamic_flag_spec='-Bexport'
9226 sysv4*MP*)
9227 if test -d /usr/nec; then
9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_shlibpath_var=no
9230 runpath_var=LD_RUN_PATH
9231 hardcode_runpath_var=yes
9232 ld_shlibs=yes
9236 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9237 no_undefined_flag='${wl}-z,text'
9238 archive_cmds_need_lc=no
9239 hardcode_shlibpath_var=no
9240 runpath_var='LD_RUN_PATH'
9242 if test "$GCC" = yes; then
9243 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9245 else
9246 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9251 sysv5* | sco3.2v5* | sco5v6*)
9252 # Note: We can NOT use -z defs as we might desire, because we do not
9253 # link with -lc, and that would cause any symbols used from libc to
9254 # always be unresolved, which means just about no library would
9255 # ever link correctly. If we're not using GNU ld we use -z text
9256 # though, which does catch some bad symbols but isn't as heavy-handed
9257 # as -z defs.
9258 no_undefined_flag='${wl}-z,text'
9259 allow_undefined_flag='${wl}-z,nodefs'
9260 archive_cmds_need_lc=no
9261 hardcode_shlibpath_var=no
9262 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9263 hardcode_libdir_separator=':'
9264 link_all_deplibs=yes
9265 export_dynamic_flag_spec='${wl}-Bexport'
9266 runpath_var='LD_RUN_PATH'
9268 if test "$GCC" = yes; then
9269 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9270 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9271 else
9272 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9277 uts4*)
9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_shlibpath_var=no
9284 ld_shlibs=no
9286 esac
9288 if test x$host_vendor = xsni; then
9289 case $host in
9290 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9291 export_dynamic_flag_spec='${wl}-Blargedynsym'
9293 esac
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9298 $as_echo "$ld_shlibs" >&6; }
9299 test "$ld_shlibs" = no && can_build_shared=no
9301 with_gnu_ld=$with_gnu_ld
9318 # Do we need to explicitly link libc?
9320 case "x$archive_cmds_need_lc" in
9321 x|xyes)
9322 # Assume -lc should be added
9323 archive_cmds_need_lc=yes
9325 if test "$enable_shared" = yes && test "$GCC" = yes; then
9326 case $archive_cmds in
9327 *'~'*)
9328 # FIXME: we may have to deal with multi-command sequences.
9330 '$CC '*)
9331 # Test whether the compiler implicitly links with -lc since on some
9332 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9333 # to ld, don't add -lc before -lgcc.
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9335 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9336 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 $RM conftest*
9340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9343 (eval $ac_compile) 2>&5
9344 ac_status=$?
9345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9346 test $ac_status = 0; } 2>conftest.err; then
9347 soname=conftest
9348 lib=conftest
9349 libobjs=conftest.$ac_objext
9350 deplibs=
9351 wl=$lt_prog_compiler_wl
9352 pic_flag=$lt_prog_compiler_pic
9353 compiler_flags=-v
9354 linker_flags=-v
9355 verstring=
9356 output_objdir=.
9357 libname=conftest
9358 lt_save_allow_undefined_flag=$allow_undefined_flag
9359 allow_undefined_flag=
9360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9362 ac_status=$?
9363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9364 test $ac_status = 0; }
9365 then
9366 lt_cv_archive_cmds_need_lc=no
9367 else
9368 lt_cv_archive_cmds_need_lc=yes
9370 allow_undefined_flag=$lt_save_allow_undefined_flag
9371 else
9372 cat conftest.err 1>&5
9374 $RM conftest*
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9378 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9379 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9381 esac
9384 esac
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9545 if test "$GCC" = yes; then
9546 case $host_os in
9547 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9548 *) lt_awk_arg="/^libraries:/" ;;
9549 esac
9550 case $host_os in
9551 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9552 *) lt_sed_strip_eq="s,=/,/,g" ;;
9553 esac
9554 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9555 case $lt_search_path_spec in
9556 *\;*)
9557 # if the path contains ";" then we assume it to be the separator
9558 # otherwise default to the standard path separator (i.e. ":") - it is
9559 # assumed that no part of a normal pathname contains ";" but that should
9560 # okay in the real world where ";" in dirpaths is itself problematic.
9561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9564 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9566 esac
9567 # Ok, now we have the path, separated by spaces, we can step through it
9568 # and add multilib dir if necessary.
9569 lt_tmp_lt_search_path_spec=
9570 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9571 for lt_sys_path in $lt_search_path_spec; do
9572 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9573 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9574 else
9575 test -d "$lt_sys_path" && \
9576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9578 done
9579 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9580 BEGIN {RS=" "; FS="/|\n";} {
9581 lt_foo="";
9582 lt_count=0;
9583 for (lt_i = NF; lt_i > 0; lt_i--) {
9584 if ($lt_i != "" && $lt_i != ".") {
9585 if ($lt_i == "..") {
9586 lt_count++;
9587 } else {
9588 if (lt_count == 0) {
9589 lt_foo="/" $lt_i lt_foo;
9590 } else {
9591 lt_count--;
9596 if (lt_foo != "") { lt_freq[lt_foo]++; }
9597 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9599 # AWK program above erroneously prepends '/' to C:/dos/paths
9600 # for these hosts.
9601 case $host_os in
9602 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9603 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9604 esac
9605 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9606 else
9607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9609 library_names_spec=
9610 libname_spec='lib$name'
9611 soname_spec=
9612 shrext_cmds=".so"
9613 postinstall_cmds=
9614 postuninstall_cmds=
9615 finish_cmds=
9616 finish_eval=
9617 shlibpath_var=
9618 shlibpath_overrides_runpath=unknown
9619 version_type=none
9620 dynamic_linker="$host_os ld.so"
9621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9622 need_lib_prefix=unknown
9623 hardcode_into_libs=no
9625 # when you set need_version to no, make sure it does not cause -set_version
9626 # flags to be left without arguments
9627 need_version=unknown
9629 case $host_os in
9630 aix3*)
9631 version_type=linux
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9633 shlibpath_var=LIBPATH
9635 # AIX 3 has no versioning support, so we append a major version to the name.
9636 soname_spec='${libname}${release}${shared_ext}$major'
9639 aix[4-9]*)
9640 version_type=linux
9641 need_lib_prefix=no
9642 need_version=no
9643 hardcode_into_libs=yes
9644 if test "$host_cpu" = ia64; then
9645 # AIX 5 supports IA64
9646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 else
9649 # With GCC up to 2.95.x, collect2 would create an import file
9650 # for dependence libraries. The import file would start with
9651 # the line `#! .'. This would cause the generated library to
9652 # depend on `.', always an invalid library. This was fixed in
9653 # development snapshots of GCC prior to 3.0.
9654 case $host_os in
9655 aix4 | aix4.[01] | aix4.[01].*)
9656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9657 echo ' yes '
9658 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9660 else
9661 can_build_shared=no
9664 esac
9665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9666 # soname into executable. Probably we can add versioning support to
9667 # collect2, so additional links can be useful in future.
9668 if test "$aix_use_runtimelinking" = yes; then
9669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9670 # instead of lib<name>.a to let people know that these are not
9671 # typical AIX shared libraries.
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673 else
9674 # We preserve .a as extension for shared libraries through AIX4.2
9675 # and later when we are not doing run time linking.
9676 library_names_spec='${libname}${release}.a $libname.a'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9679 shlibpath_var=LIBPATH
9683 amigaos*)
9684 case $host_cpu in
9685 powerpc)
9686 # Since July 2007 AmigaOS4 officially supports .so libraries.
9687 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 m68k)
9691 library_names_spec='$libname.ixlibrary $libname.a'
9692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9693 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'
9695 esac
9698 beos*)
9699 library_names_spec='${libname}${shared_ext}'
9700 dynamic_linker="$host_os ld.so"
9701 shlibpath_var=LIBRARY_PATH
9704 bsdi[45]*)
9705 version_type=linux
9706 need_version=no
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9713 # the default ld.so.conf also contains /usr/contrib/lib and
9714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9715 # libtool to hard-code these into programs
9718 cygwin* | mingw* | pw32* | cegcc*)
9719 version_type=windows
9720 shrext_cmds=".dll"
9721 need_version=no
9722 need_lib_prefix=no
9724 case $GCC,$host_os in
9725 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9726 library_names_spec='$libname.dll.a'
9727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9728 postinstall_cmds='base_file=`basename \${file}`~
9729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9730 dldir=$destdir/`dirname \$dlpath`~
9731 test -d \$dldir || mkdir -p \$dldir~
9732 $install_prog $dir/$dlname \$dldir/$dlname~
9733 chmod a+x \$dldir/$dlname~
9734 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9735 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9737 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9738 dlpath=$dir/\$dldll~
9739 $RM \$dlpath'
9740 shlibpath_overrides_runpath=yes
9742 case $host_os in
9743 cygwin*)
9744 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9745 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9749 mingw* | cegcc*)
9750 # MinGW DLLs use traditional 'lib' prefix
9751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9753 pw32*)
9754 # pw32 DLLs use 'pw' prefix rather than 'lib'
9755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9757 esac
9761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9763 esac
9764 dynamic_linker='Win32 ld.exe'
9765 # FIXME: first we should search . and the directory the executable is in
9766 shlibpath_var=PATH
9769 darwin* | rhapsody*)
9770 dynamic_linker="$host_os dyld"
9771 version_type=darwin
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9775 soname_spec='${libname}${release}${major}$shared_ext'
9776 shlibpath_overrides_runpath=yes
9777 shlibpath_var=DYLD_LIBRARY_PATH
9778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9784 dgux*)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9793 freebsd* | dragonfly*)
9794 # DragonFly does not have aout. When/if they implement a new
9795 # versioning mechanism, adjust this.
9796 if test -x /usr/bin/objformat; then
9797 objformat=`/usr/bin/objformat`
9798 else
9799 case $host_os in
9800 freebsd[23].*) objformat=aout ;;
9801 *) objformat=elf ;;
9802 esac
9804 version_type=freebsd-$objformat
9805 case $version_type in
9806 freebsd-elf*)
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9808 need_version=no
9809 need_lib_prefix=no
9811 freebsd-*)
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9813 need_version=yes
9815 esac
9816 shlibpath_var=LD_LIBRARY_PATH
9817 case $host_os in
9818 freebsd2.*)
9819 shlibpath_overrides_runpath=yes
9821 freebsd3.[01]* | freebsdelf3.[01]*)
9822 shlibpath_overrides_runpath=yes
9823 hardcode_into_libs=yes
9825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9827 shlibpath_overrides_runpath=no
9828 hardcode_into_libs=yes
9830 *) # from 4.6 on, and DragonFly
9831 shlibpath_overrides_runpath=yes
9832 hardcode_into_libs=yes
9834 esac
9837 gnu*)
9838 version_type=linux
9839 need_lib_prefix=no
9840 need_version=no
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 hardcode_into_libs=yes
9847 haiku*)
9848 version_type=linux
9849 need_lib_prefix=no
9850 need_version=no
9851 dynamic_linker="$host_os runtime_loader"
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LIBRARY_PATH
9855 shlibpath_overrides_runpath=yes
9856 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9857 hardcode_into_libs=yes
9860 hpux9* | hpux10* | hpux11*)
9861 # Give a soname corresponding to the major version so that dld.sl refuses to
9862 # link against other versions.
9863 version_type=sunos
9864 need_lib_prefix=no
9865 need_version=no
9866 case $host_cpu in
9867 ia64*)
9868 shrext_cmds='.so'
9869 hardcode_into_libs=yes
9870 dynamic_linker="$host_os dld.so"
9871 shlibpath_var=LD_LIBRARY_PATH
9872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874 soname_spec='${libname}${release}${shared_ext}$major'
9875 if test "X$HPUX_IA64_MODE" = X32; then
9876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9877 else
9878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9882 hppa*64*)
9883 shrext_cmds='.sl'
9884 hardcode_into_libs=yes
9885 dynamic_linker="$host_os dld.sl"
9886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9894 shrext_cmds='.sl'
9895 dynamic_linker="$host_os dld.sl"
9896 shlibpath_var=SHLIB_PATH
9897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9901 esac
9902 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9903 postinstall_cmds='chmod 555 $lib'
9904 # or fails outright, so override atomically:
9905 install_override_mode=555
9908 interix[3-9]*)
9909 version_type=linux
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 shlibpath_overrides_runpath=no
9917 hardcode_into_libs=yes
9920 irix5* | irix6* | nonstopux*)
9921 case $host_os in
9922 nonstopux*) version_type=nonstopux ;;
9924 if test "$lt_cv_prog_gnu_ld" = yes; then
9925 version_type=linux
9926 else
9927 version_type=irix
9928 fi ;;
9929 esac
9930 need_lib_prefix=no
9931 need_version=no
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9934 case $host_os in
9935 irix5* | nonstopux*)
9936 libsuff= shlibsuff=
9939 case $LD in # libtool.m4 will add one of these switches to LD
9940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9941 libsuff= shlibsuff= libmagic=32-bit;;
9942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9943 libsuff=32 shlibsuff=N32 libmagic=N32;;
9944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9945 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9946 *) libsuff= shlibsuff= libmagic=never-match;;
9947 esac
9949 esac
9950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9951 shlibpath_overrides_runpath=no
9952 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9953 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9954 hardcode_into_libs=yes
9957 # No shared lib support for Linux oldld, aout, or coff.
9958 linux*oldld* | linux*aout* | linux*coff*)
9959 dynamic_linker=no
9962 # This must be Linux ELF.
9963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9964 version_type=linux
9965 need_lib_prefix=no
9966 need_version=no
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 shlibpath_overrides_runpath=no
9973 # Some binutils ld are patched to set DT_RUNPATH
9974 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 lt_cv_shlibpath_overrides_runpath=no
9978 save_LDFLAGS=$LDFLAGS
9979 save_libdir=$libdir
9980 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9981 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9982 if test x$gcc_no_link = xyes; then
9983 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9989 main ()
9993 return 0;
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9998 lt_cv_shlibpath_overrides_runpath=yes
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LDFLAGS=$save_LDFLAGS
10004 libdir=$save_libdir
10008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10010 # This implies no fast_install, which is unacceptable.
10011 # Some rework will be needed to allow for fast_install
10012 # before this can be enabled.
10013 hardcode_into_libs=yes
10015 # Append ld.so.conf contents to the search path
10016 if test -f /etc/ld.so.conf; then
10017 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' ' '`
10018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10021 # We used to test for /lib/ld.so.1 and disable shared libraries on
10022 # powerpc, because MkLinux only supported shared libraries with the
10023 # GNU dynamic linker. Since this was broken with cross compilers,
10024 # most powerpc-linux boxes support dynamic linking these days and
10025 # people can always --disable-shared, the test was removed, and we
10026 # assume the GNU/Linux dynamic linker is in use.
10027 dynamic_linker='GNU/Linux ld.so'
10030 netbsd*)
10031 version_type=sunos
10032 need_lib_prefix=no
10033 need_version=no
10034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10037 dynamic_linker='NetBSD (a.out) ld.so'
10038 else
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 dynamic_linker='NetBSD ld.elf_so'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=yes
10045 hardcode_into_libs=yes
10048 newsos6)
10049 version_type=linux
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10055 *nto* | *qnx*)
10056 version_type=qnx
10057 need_lib_prefix=no
10058 need_version=no
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 shlibpath_var=LD_LIBRARY_PATH
10062 shlibpath_overrides_runpath=no
10063 hardcode_into_libs=yes
10064 dynamic_linker='ldqnx.so'
10067 openbsd*)
10068 version_type=sunos
10069 sys_lib_dlsearch_path_spec="/usr/lib"
10070 need_lib_prefix=no
10071 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10072 case $host_os in
10073 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10074 *) need_version=no ;;
10075 esac
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10078 shlibpath_var=LD_LIBRARY_PATH
10079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10080 case $host_os in
10081 openbsd2.[89] | openbsd2.[89].*)
10082 shlibpath_overrides_runpath=no
10085 shlibpath_overrides_runpath=yes
10087 esac
10088 else
10089 shlibpath_overrides_runpath=yes
10093 os2*)
10094 libname_spec='$name'
10095 shrext_cmds=".dll"
10096 need_lib_prefix=no
10097 library_names_spec='$libname${shared_ext} $libname.a'
10098 dynamic_linker='OS/2 ld.exe'
10099 shlibpath_var=LIBPATH
10102 osf3* | osf4* | osf5*)
10103 version_type=osf
10104 need_lib_prefix=no
10105 need_version=no
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10110 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10113 rdos*)
10114 dynamic_linker=no
10117 solaris*)
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes
10125 hardcode_into_libs=yes
10126 # ldd complains unless libraries are executable
10127 postinstall_cmds='chmod +x $lib'
10130 sunos4*)
10131 version_type=sunos
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=yes
10136 if test "$with_gnu_ld" = yes; then
10137 need_lib_prefix=no
10139 need_version=yes
10142 sysv4 | sysv4.3*)
10143 version_type=linux
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 case $host_vendor in
10148 sni)
10149 shlibpath_overrides_runpath=no
10150 need_lib_prefix=no
10151 runpath_var=LD_RUN_PATH
10153 siemens)
10154 need_lib_prefix=no
10156 motorola)
10157 need_lib_prefix=no
10158 need_version=no
10159 shlibpath_overrides_runpath=no
10160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10162 esac
10165 sysv4*MP*)
10166 if test -d /usr/nec ;then
10167 version_type=linux
10168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10169 soname_spec='$libname${shared_ext}.$major'
10170 shlibpath_var=LD_LIBRARY_PATH
10174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10175 version_type=freebsd-elf
10176 need_lib_prefix=no
10177 need_version=no
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10180 shlibpath_var=LD_LIBRARY_PATH
10181 shlibpath_overrides_runpath=yes
10182 hardcode_into_libs=yes
10183 if test "$with_gnu_ld" = yes; then
10184 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10185 else
10186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10187 case $host_os in
10188 sco3.2v5*)
10189 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10191 esac
10193 sys_lib_dlsearch_path_spec='/usr/lib'
10196 tpf*)
10197 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10198 version_type=linux
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=no
10204 hardcode_into_libs=yes
10207 uts4*)
10208 version_type=linux
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 shlibpath_var=LD_LIBRARY_PATH
10215 dynamic_linker=no
10217 esac
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10219 $as_echo "$dynamic_linker" >&6; }
10220 test "$dynamic_linker" = no && can_build_shared=no
10222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10223 if test "$GCC" = yes; then
10224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10227 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10228 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10230 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10231 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10326 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10327 hardcode_action=
10328 if test -n "$hardcode_libdir_flag_spec" ||
10329 test -n "$runpath_var" ||
10330 test "X$hardcode_automatic" = "Xyes" ; then
10332 # We can hardcode non-existent directories.
10333 if test "$hardcode_direct" != no &&
10334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10335 # have to relink, otherwise we might link with an installed library
10336 # when we should be linking with a yet-to-be-installed one
10337 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10338 test "$hardcode_minus_L" != no; then
10339 # Linking always hardcodes the temporary library directory.
10340 hardcode_action=relink
10341 else
10342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10343 hardcode_action=immediate
10345 else
10346 # We cannot hardcode anything, or else we can only hardcode existing
10347 # directories.
10348 hardcode_action=unsupported
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10351 $as_echo "$hardcode_action" >&6; }
10353 if test "$hardcode_action" = relink ||
10354 test "$inherit_rpath" = yes; then
10355 # Fast installation is not supported
10356 enable_fast_install=no
10357 elif test "$shlibpath_overrides_runpath" = yes ||
10358 test "$enable_shared" = no; then
10359 # Fast installation is not necessary
10360 enable_fast_install=needless
10368 if test "x$enable_dlopen" != xyes; then
10369 enable_dlopen=unknown
10370 enable_dlopen_self=unknown
10371 enable_dlopen_self_static=unknown
10372 else
10373 lt_cv_dlopen=no
10374 lt_cv_dlopen_libs=
10376 case $host_os in
10377 beos*)
10378 lt_cv_dlopen="load_add_on"
10379 lt_cv_dlopen_libs=
10380 lt_cv_dlopen_self=yes
10383 mingw* | pw32* | cegcc*)
10384 lt_cv_dlopen="LoadLibrary"
10385 lt_cv_dlopen_libs=
10388 cygwin*)
10389 lt_cv_dlopen="dlopen"
10390 lt_cv_dlopen_libs=
10393 darwin*)
10394 # if libdl is installed we need to link against it
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10397 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-ldl $LIBS"
10402 if test x$gcc_no_link = xyes; then
10403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char dlopen ();
10416 main ()
10418 return dlopen ();
10420 return 0;
10422 _ACEOF
10423 if ac_fn_c_try_link "$LINENO"; then :
10424 ac_cv_lib_dl_dlopen=yes
10425 else
10426 ac_cv_lib_dl_dlopen=no
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 LIBS=$ac_check_lib_save_LIBS
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10434 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10436 else
10438 lt_cv_dlopen="dyld"
10439 lt_cv_dlopen_libs=
10440 lt_cv_dlopen_self=yes
10447 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10448 if test "x$ac_cv_func_shl_load" = x""yes; then :
10449 lt_cv_dlopen="shl_load"
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10453 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-ldld $LIBS"
10458 if test x$gcc_no_link = xyes; then
10459 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 /* Override any GCC internal prototype to avoid an error.
10465 Use char because int might match the return type of a GCC
10466 builtin and then its argument prototype would still apply. */
10467 #ifdef __cplusplus
10468 extern "C"
10469 #endif
10470 char shl_load ();
10472 main ()
10474 return shl_load ();
10476 return 0;
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 ac_cv_lib_dld_shl_load=yes
10481 else
10482 ac_cv_lib_dld_shl_load=no
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10489 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10490 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10492 else
10493 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10494 if test "x$ac_cv_func_dlopen" = x""yes; then :
10495 lt_cv_dlopen="dlopen"
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10498 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 ac_check_lib_save_LIBS=$LIBS
10503 LIBS="-ldl $LIBS"
10504 if test x$gcc_no_link = xyes; then
10505 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10510 /* Override any GCC internal prototype to avoid an error.
10511 Use char because int might match the return type of a GCC
10512 builtin and then its argument prototype would still apply. */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char dlopen ();
10518 main ()
10520 return dlopen ();
10522 return 0;
10524 _ACEOF
10525 if ac_fn_c_try_link "$LINENO"; then :
10526 ac_cv_lib_dl_dlopen=yes
10527 else
10528 ac_cv_lib_dl_dlopen=no
10530 rm -f core conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532 LIBS=$ac_check_lib_save_LIBS
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10535 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10536 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10540 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10541 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 ac_check_lib_save_LIBS=$LIBS
10545 LIBS="-lsvld $LIBS"
10546 if test x$gcc_no_link = xyes; then
10547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char dlopen ();
10560 main ()
10562 return dlopen ();
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 ac_cv_lib_svld_dlopen=yes
10569 else
10570 ac_cv_lib_svld_dlopen=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10578 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-ldld $LIBS"
10588 if test x$gcc_no_link = xyes; then
10589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char dld_link ();
10602 main ()
10604 return dld_link ();
10606 return 0;
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"; then :
10610 ac_cv_lib_dld_dld_link=yes
10611 else
10612 ac_cv_lib_dld_dld_link=no
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_lib_save_LIBS
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10619 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10620 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10621 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10640 esac
10642 if test "x$lt_cv_dlopen" != xno; then
10643 enable_dlopen=yes
10644 else
10645 enable_dlopen=no
10648 case $lt_cv_dlopen in
10649 dlopen)
10650 save_CPPFLAGS="$CPPFLAGS"
10651 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10653 save_LDFLAGS="$LDFLAGS"
10654 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10656 save_LIBS="$LIBS"
10657 LIBS="$lt_cv_dlopen_libs $LIBS"
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10660 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10661 if test "${lt_cv_dlopen_self+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 if test "$cross_compiling" = yes; then :
10665 lt_cv_dlopen_self=cross
10666 else
10667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10668 lt_status=$lt_dlunknown
10669 cat > conftest.$ac_ext <<_LT_EOF
10670 #line 10670 "configure"
10671 #include "confdefs.h"
10673 #if HAVE_DLFCN_H
10674 #include <dlfcn.h>
10675 #endif
10677 #include <stdio.h>
10679 #ifdef RTLD_GLOBAL
10680 # define LT_DLGLOBAL RTLD_GLOBAL
10681 #else
10682 # ifdef DL_GLOBAL
10683 # define LT_DLGLOBAL DL_GLOBAL
10684 # else
10685 # define LT_DLGLOBAL 0
10686 # endif
10687 #endif
10689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10690 find out it does not work in some platform. */
10691 #ifndef LT_DLLAZY_OR_NOW
10692 # ifdef RTLD_LAZY
10693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10694 # else
10695 # ifdef DL_LAZY
10696 # define LT_DLLAZY_OR_NOW DL_LAZY
10697 # else
10698 # ifdef RTLD_NOW
10699 # define LT_DLLAZY_OR_NOW RTLD_NOW
10700 # else
10701 # ifdef DL_NOW
10702 # define LT_DLLAZY_OR_NOW DL_NOW
10703 # else
10704 # define LT_DLLAZY_OR_NOW 0
10705 # endif
10706 # endif
10707 # endif
10708 # endif
10709 #endif
10711 /* When -fvisbility=hidden is used, assume the code has been annotated
10712 correspondingly for the symbols needed. */
10713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10714 void fnord () __attribute__((visibility("default")));
10715 #endif
10717 void fnord () { int i=42; }
10718 int main ()
10720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10721 int status = $lt_dlunknown;
10723 if (self)
10725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10726 else
10728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10729 else puts (dlerror ());
10731 /* dlclose (self); */
10733 else
10734 puts (dlerror ());
10736 return status;
10738 _LT_EOF
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10740 (eval $ac_link) 2>&5
10741 ac_status=$?
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10744 (./conftest; exit; ) >&5 2>/dev/null
10745 lt_status=$?
10746 case x$lt_status in
10747 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10748 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10749 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10750 esac
10751 else :
10752 # compilation failed
10753 lt_cv_dlopen_self=no
10756 rm -fr conftest*
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10761 $as_echo "$lt_cv_dlopen_self" >&6; }
10763 if test "x$lt_cv_dlopen_self" = xyes; then
10764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10766 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10767 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 if test "$cross_compiling" = yes; then :
10771 lt_cv_dlopen_self_static=cross
10772 else
10773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10774 lt_status=$lt_dlunknown
10775 cat > conftest.$ac_ext <<_LT_EOF
10776 #line 10776 "configure"
10777 #include "confdefs.h"
10779 #if HAVE_DLFCN_H
10780 #include <dlfcn.h>
10781 #endif
10783 #include <stdio.h>
10785 #ifdef RTLD_GLOBAL
10786 # define LT_DLGLOBAL RTLD_GLOBAL
10787 #else
10788 # ifdef DL_GLOBAL
10789 # define LT_DLGLOBAL DL_GLOBAL
10790 # else
10791 # define LT_DLGLOBAL 0
10792 # endif
10793 #endif
10795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10796 find out it does not work in some platform. */
10797 #ifndef LT_DLLAZY_OR_NOW
10798 # ifdef RTLD_LAZY
10799 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10800 # else
10801 # ifdef DL_LAZY
10802 # define LT_DLLAZY_OR_NOW DL_LAZY
10803 # else
10804 # ifdef RTLD_NOW
10805 # define LT_DLLAZY_OR_NOW RTLD_NOW
10806 # else
10807 # ifdef DL_NOW
10808 # define LT_DLLAZY_OR_NOW DL_NOW
10809 # else
10810 # define LT_DLLAZY_OR_NOW 0
10811 # endif
10812 # endif
10813 # endif
10814 # endif
10815 #endif
10817 /* When -fvisbility=hidden is used, assume the code has been annotated
10818 correspondingly for the symbols needed. */
10819 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10820 void fnord () __attribute__((visibility("default")));
10821 #endif
10823 void fnord () { int i=42; }
10824 int main ()
10826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10827 int status = $lt_dlunknown;
10829 if (self)
10831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10832 else
10834 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10835 else puts (dlerror ());
10837 /* dlclose (self); */
10839 else
10840 puts (dlerror ());
10842 return status;
10844 _LT_EOF
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10846 (eval $ac_link) 2>&5
10847 ac_status=$?
10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10850 (./conftest; exit; ) >&5 2>/dev/null
10851 lt_status=$?
10852 case x$lt_status in
10853 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10854 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10855 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10856 esac
10857 else :
10858 # compilation failed
10859 lt_cv_dlopen_self_static=no
10862 rm -fr conftest*
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10867 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10870 CPPFLAGS="$save_CPPFLAGS"
10871 LDFLAGS="$save_LDFLAGS"
10872 LIBS="$save_LIBS"
10874 esac
10876 case $lt_cv_dlopen_self in
10877 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10878 *) enable_dlopen_self=unknown ;;
10879 esac
10881 case $lt_cv_dlopen_self_static in
10882 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10883 *) enable_dlopen_self_static=unknown ;;
10884 esac
10903 striplib=
10904 old_striplib=
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10906 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10907 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10909 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911 $as_echo "yes" >&6; }
10912 else
10913 # FIXME - insert some real tests, host_os isn't really good enough
10914 case $host_os in
10915 darwin*)
10916 if test -n "$STRIP" ; then
10917 striplib="$STRIP -x"
10918 old_striplib="$STRIP -S"
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920 $as_echo "yes" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10930 esac
10944 # Report which library types will actually be built
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10946 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10948 $as_echo "$can_build_shared" >&6; }
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10951 $as_echo_n "checking whether to build shared libraries... " >&6; }
10952 test "$can_build_shared" = "no" && enable_shared=no
10954 # On AIX, shared libraries and static libraries use the same namespace, and
10955 # are all built from PIC.
10956 case $host_os in
10957 aix3*)
10958 test "$enable_shared" = yes && enable_static=no
10959 if test -n "$RANLIB"; then
10960 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10961 postinstall_cmds='$RANLIB $lib'
10965 aix[4-9]*)
10966 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10967 test "$enable_shared" = yes && enable_static=no
10970 esac
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10972 $as_echo "$enable_shared" >&6; }
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10975 $as_echo_n "checking whether to build static libraries... " >&6; }
10976 # Make sure either enable_shared or enable_static is yes.
10977 test "$enable_shared" = yes || enable_static=yes
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10979 $as_echo "$enable_static" >&6; }
10985 ac_ext=c
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10991 CC="$lt_save_CC"
11005 ac_config_commands="$ac_config_commands libtool"
11010 # Only expand once:
11016 case $host in
11017 *-cygwin* | *-mingw*)
11018 # 'host' will be top-level target in the case of a target lib,
11019 # we must compare to with_cross_host to decide if this is a native
11020 # or cross-compiler and select where to install dlls appropriately.
11021 if test -n "$with_cross_host" &&
11022 test x"$with_cross_host" != x"no"; then
11023 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11024 else
11025 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11029 lt_host_flags=
11031 esac
11038 # Calculate toolexeclibdir
11039 # Also toolexecdir, though it's only used in toolexeclibdir
11040 case ${version_specific_libs} in
11041 yes)
11042 # Need the gcc compiler version to know where to install libraries
11043 # and header files if --enable-version-specific-runtime-libs option
11044 # is selected.
11045 toolexecdir='$(libdir)/gcc/$(target_alias)'
11046 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11049 if test -n "$with_cross_host" &&
11050 test x"$with_cross_host" != x"no"; then
11051 # Install a library built with a cross compiler in tooldir, not libdir.
11052 toolexecdir='$(exec_prefix)/$(target_alias)'
11053 toolexeclibdir='$(toolexecdir)/lib'
11054 else
11055 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11056 toolexeclibdir='$(libdir)'
11058 multi_os_directory=`$CC -print-multi-os-directory`
11059 case $multi_os_directory in
11060 .) ;; # Avoid trailing /.
11061 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11062 esac
11064 esac
11068 if test ${multilib} = yes; then
11069 multilib_arg="--enable-multilib"
11070 else
11071 multilib_arg=
11074 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
11076 cat >confcache <<\_ACEOF
11077 # This file is a shell script that caches the results of configure
11078 # tests run on this system so they can be shared between configure
11079 # scripts and configure runs, see configure's option --config-cache.
11080 # It is not useful on other systems. If it contains results you don't
11081 # want to keep, you may remove or edit it.
11083 # config.status only pays attention to the cache file if you give it
11084 # the --recheck option to rerun configure.
11086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11088 # following values.
11090 _ACEOF
11092 # The following way of writing the cache mishandles newlines in values,
11093 # but we know of no workaround that is simple, portable, and efficient.
11094 # So, we kill variables containing newlines.
11095 # Ultrix sh set writes to stderr and can't be redirected directly,
11096 # and sets the high bit in the cache file unless we assign to the vars.
11098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11099 eval ac_val=\$$ac_var
11100 case $ac_val in #(
11101 *${as_nl}*)
11102 case $ac_var in #(
11103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11105 esac
11106 case $ac_var in #(
11107 _ | IFS | as_nl) ;; #(
11108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11109 *) { eval $ac_var=; unset $ac_var;} ;;
11110 esac ;;
11111 esac
11112 done
11114 (set) 2>&1 |
11115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11116 *${as_nl}ac_space=\ *)
11117 # `set' does not quote correctly, so add quotes: double-quote
11118 # substitution turns \\\\ into \\, and sed turns \\ into \.
11119 sed -n \
11120 "s/'/'\\\\''/g;
11121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11122 ;; #(
11124 # `set' quotes correctly as required by POSIX, so do not add quotes.
11125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11127 esac |
11128 sort
11130 sed '
11131 /^ac_cv_env_/b end
11132 t clear
11133 :clear
11134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11135 t end
11136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11137 :end' >>confcache
11138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11139 if test -w "$cache_file"; then
11140 test "x$cache_file" != "x/dev/null" &&
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11142 $as_echo "$as_me: updating cache $cache_file" >&6;}
11143 cat confcache >$cache_file
11144 else
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11149 rm -f confcache
11151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11152 # Let make expand exec_prefix.
11153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11155 DEFS=-DHAVE_CONFIG_H
11157 ac_libobjs=
11158 ac_ltlibobjs=
11159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11160 # 1. Remove the extension, and $U if already installed.
11161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11164 # will be set to the directory where LIBOBJS objects are built.
11165 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11166 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11167 done
11168 LIBOBJS=$ac_libobjs
11170 LTLIBOBJS=$ac_ltlibobjs
11173 if test -n "$EXEEXT"; then
11174 am__EXEEXT_TRUE=
11175 am__EXEEXT_FALSE='#'
11176 else
11177 am__EXEEXT_TRUE='#'
11178 am__EXEEXT_FALSE=
11181 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11182 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11185 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11186 as_fn_error "conditional \"AMDEP\" was never defined.
11187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11190 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11193 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
11194 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
11195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11197 if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then
11198 as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined.
11199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11201 if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then
11202 as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined.
11203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11206 : ${CONFIG_STATUS=./config.status}
11207 ac_write_fail=0
11208 ac_clean_files_save=$ac_clean_files
11209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11211 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11212 as_write_fail=0
11213 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11214 #! $SHELL
11215 # Generated by $as_me.
11216 # Run this file to recreate the current configuration.
11217 # Compiler output produced by configure, useful for debugging
11218 # configure, is in config.log if it exists.
11220 debug=false
11221 ac_cs_recheck=false
11222 ac_cs_silent=false
11224 SHELL=\${CONFIG_SHELL-$SHELL}
11225 export SHELL
11226 _ASEOF
11227 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11228 ## -------------------- ##
11229 ## M4sh Initialization. ##
11230 ## -------------------- ##
11232 # Be more Bourne compatible
11233 DUALCASE=1; export DUALCASE # for MKS sh
11234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11235 emulate sh
11236 NULLCMD=:
11237 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11238 # is contrary to our usage. Disable this feature.
11239 alias -g '${1+"$@"}'='"$@"'
11240 setopt NO_GLOB_SUBST
11241 else
11242 case `(set -o) 2>/dev/null` in #(
11243 *posix*) :
11244 set -o posix ;; #(
11245 *) :
11247 esac
11251 as_nl='
11253 export as_nl
11254 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11255 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11257 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11258 # Prefer a ksh shell builtin over an external printf program on Solaris,
11259 # but without wasting forks for bash or zsh.
11260 if test -z "$BASH_VERSION$ZSH_VERSION" \
11261 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11262 as_echo='print -r --'
11263 as_echo_n='print -rn --'
11264 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11265 as_echo='printf %s\n'
11266 as_echo_n='printf %s'
11267 else
11268 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11269 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11270 as_echo_n='/usr/ucb/echo -n'
11271 else
11272 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11273 as_echo_n_body='eval
11274 arg=$1;
11275 case $arg in #(
11276 *"$as_nl"*)
11277 expr "X$arg" : "X\\(.*\\)$as_nl";
11278 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11279 esac;
11280 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11282 export as_echo_n_body
11283 as_echo_n='sh -c $as_echo_n_body as_echo'
11285 export as_echo_body
11286 as_echo='sh -c $as_echo_body as_echo'
11289 # The user is always right.
11290 if test "${PATH_SEPARATOR+set}" != set; then
11291 PATH_SEPARATOR=:
11292 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11293 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11294 PATH_SEPARATOR=';'
11299 # IFS
11300 # We need space, tab and new line, in precisely that order. Quoting is
11301 # there to prevent editors from complaining about space-tab.
11302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11303 # splitting by setting IFS to empty value.)
11304 IFS=" "" $as_nl"
11306 # Find who we are. Look in the path if we contain no directory separator.
11307 case $0 in #((
11308 *[\\/]* ) as_myself=$0 ;;
11309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11315 done
11316 IFS=$as_save_IFS
11319 esac
11320 # We did not find ourselves, most probably we were run as `sh COMMAND'
11321 # in which case we are not to be found in the path.
11322 if test "x$as_myself" = x; then
11323 as_myself=$0
11325 if test ! -f "$as_myself"; then
11326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11327 exit 1
11330 # Unset variables that we do not need and which cause bugs (e.g. in
11331 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11332 # suppresses any "Segmentation fault" message there. '((' could
11333 # trigger a bug in pdksh 5.2.14.
11334 for as_var in BASH_ENV ENV MAIL MAILPATH
11335 do eval test x\${$as_var+set} = xset \
11336 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11337 done
11338 PS1='$ '
11339 PS2='> '
11340 PS4='+ '
11342 # NLS nuisances.
11343 LC_ALL=C
11344 export LC_ALL
11345 LANGUAGE=C
11346 export LANGUAGE
11348 # CDPATH.
11349 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11352 # as_fn_error ERROR [LINENO LOG_FD]
11353 # ---------------------------------
11354 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11355 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11356 # script with status $?, using 1 if that was 0.
11357 as_fn_error ()
11359 as_status=$?; test $as_status -eq 0 && as_status=1
11360 if test "$3"; then
11361 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11362 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11364 $as_echo "$as_me: error: $1" >&2
11365 as_fn_exit $as_status
11366 } # as_fn_error
11369 # as_fn_set_status STATUS
11370 # -----------------------
11371 # Set $? to STATUS, without forking.
11372 as_fn_set_status ()
11374 return $1
11375 } # as_fn_set_status
11377 # as_fn_exit STATUS
11378 # -----------------
11379 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11380 as_fn_exit ()
11382 set +e
11383 as_fn_set_status $1
11384 exit $1
11385 } # as_fn_exit
11387 # as_fn_unset VAR
11388 # ---------------
11389 # Portably unset VAR.
11390 as_fn_unset ()
11392 { eval $1=; unset $1;}
11394 as_unset=as_fn_unset
11395 # as_fn_append VAR VALUE
11396 # ----------------------
11397 # Append the text in VALUE to the end of the definition contained in VAR. Take
11398 # advantage of any shell optimizations that allow amortized linear growth over
11399 # repeated appends, instead of the typical quadratic growth present in naive
11400 # implementations.
11401 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11402 eval 'as_fn_append ()
11404 eval $1+=\$2
11406 else
11407 as_fn_append ()
11409 eval $1=\$$1\$2
11411 fi # as_fn_append
11413 # as_fn_arith ARG...
11414 # ------------------
11415 # Perform arithmetic evaluation on the ARGs, and store the result in the
11416 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11417 # must be portable across $(()) and expr.
11418 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11419 eval 'as_fn_arith ()
11421 as_val=$(( $* ))
11423 else
11424 as_fn_arith ()
11426 as_val=`expr "$@" || test $? -eq 1`
11428 fi # as_fn_arith
11431 if expr a : '\(a\)' >/dev/null 2>&1 &&
11432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11433 as_expr=expr
11434 else
11435 as_expr=false
11438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11439 as_basename=basename
11440 else
11441 as_basename=false
11444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11445 as_dirname=dirname
11446 else
11447 as_dirname=false
11450 as_me=`$as_basename -- "$0" ||
11451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11452 X"$0" : 'X\(//\)$' \| \
11453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11454 $as_echo X/"$0" |
11455 sed '/^.*\/\([^/][^/]*\)\/*$/{
11456 s//\1/
11459 /^X\/\(\/\/\)$/{
11460 s//\1/
11463 /^X\/\(\/\).*/{
11464 s//\1/
11467 s/.*/./; q'`
11469 # Avoid depending upon Character Ranges.
11470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11473 as_cr_digits='0123456789'
11474 as_cr_alnum=$as_cr_Letters$as_cr_digits
11476 ECHO_C= ECHO_N= ECHO_T=
11477 case `echo -n x` in #(((((
11478 -n*)
11479 case `echo 'xy\c'` in
11480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11481 xy) ECHO_C='\c';;
11482 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11483 ECHO_T=' ';;
11484 esac;;
11486 ECHO_N='-n';;
11487 esac
11489 rm -f conf$$ conf$$.exe conf$$.file
11490 if test -d conf$$.dir; then
11491 rm -f conf$$.dir/conf$$.file
11492 else
11493 rm -f conf$$.dir
11494 mkdir conf$$.dir 2>/dev/null
11496 if (echo >conf$$.file) 2>/dev/null; then
11497 if ln -s conf$$.file conf$$ 2>/dev/null; then
11498 as_ln_s='ln -s'
11499 # ... but there are two gotchas:
11500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11502 # In both cases, we have to default to `cp -p'.
11503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11504 as_ln_s='cp -p'
11505 elif ln conf$$.file conf$$ 2>/dev/null; then
11506 as_ln_s=ln
11507 else
11508 as_ln_s='cp -p'
11510 else
11511 as_ln_s='cp -p'
11513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11514 rmdir conf$$.dir 2>/dev/null
11517 # as_fn_mkdir_p
11518 # -------------
11519 # Create "$as_dir" as a directory, including parents if necessary.
11520 as_fn_mkdir_p ()
11523 case $as_dir in #(
11524 -*) as_dir=./$as_dir;;
11525 esac
11526 test -d "$as_dir" || eval $as_mkdir_p || {
11527 as_dirs=
11528 while :; do
11529 case $as_dir in #(
11530 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11531 *) as_qdir=$as_dir;;
11532 esac
11533 as_dirs="'$as_qdir' $as_dirs"
11534 as_dir=`$as_dirname -- "$as_dir" ||
11535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11536 X"$as_dir" : 'X\(//\)[^/]' \| \
11537 X"$as_dir" : 'X\(//\)$' \| \
11538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11539 $as_echo X"$as_dir" |
11540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11541 s//\1/
11544 /^X\(\/\/\)[^/].*/{
11545 s//\1/
11548 /^X\(\/\/\)$/{
11549 s//\1/
11552 /^X\(\/\).*/{
11553 s//\1/
11556 s/.*/./; q'`
11557 test -d "$as_dir" && break
11558 done
11559 test -z "$as_dirs" || eval "mkdir $as_dirs"
11560 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11563 } # as_fn_mkdir_p
11564 if mkdir -p . 2>/dev/null; then
11565 as_mkdir_p='mkdir -p "$as_dir"'
11566 else
11567 test -d ./-p && rmdir ./-p
11568 as_mkdir_p=false
11571 if test -x / >/dev/null 2>&1; then
11572 as_test_x='test -x'
11573 else
11574 if ls -dL / >/dev/null 2>&1; then
11575 as_ls_L_option=L
11576 else
11577 as_ls_L_option=
11579 as_test_x='
11580 eval sh -c '\''
11581 if test -d "$1"; then
11582 test -d "$1/.";
11583 else
11584 case $1 in #(
11585 -*)set "./$1";;
11586 esac;
11587 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11588 ???[sx]*):;;*)false;;esac;fi
11589 '\'' sh
11592 as_executable_p=$as_test_x
11594 # Sed expression to map a string onto a valid CPP name.
11595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11597 # Sed expression to map a string onto a valid variable name.
11598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11601 exec 6>&1
11602 ## ----------------------------------- ##
11603 ## Main body of $CONFIG_STATUS script. ##
11604 ## ----------------------------------- ##
11605 _ASEOF
11606 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11609 # Save the log message, to keep $0 and so on meaningful, and to
11610 # report actual input values of CONFIG_FILES etc. instead of their
11611 # values after options handling.
11612 ac_log="
11613 This file was extended by libssp $as_me 1.0, which was
11614 generated by GNU Autoconf 2.64. Invocation command line was
11616 CONFIG_FILES = $CONFIG_FILES
11617 CONFIG_HEADERS = $CONFIG_HEADERS
11618 CONFIG_LINKS = $CONFIG_LINKS
11619 CONFIG_COMMANDS = $CONFIG_COMMANDS
11620 $ $0 $@
11622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11625 _ACEOF
11627 case $ac_config_files in *"
11628 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11629 esac
11631 case $ac_config_headers in *"
11632 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11633 esac
11636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11637 # Files that config.status was made for.
11638 config_files="$ac_config_files"
11639 config_headers="$ac_config_headers"
11640 config_commands="$ac_config_commands"
11642 _ACEOF
11644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11645 ac_cs_usage="\
11646 \`$as_me' instantiates files and other configuration actions
11647 from templates according to the current configuration. Unless the files
11648 and actions are specified as TAGs, all are instantiated by default.
11650 Usage: $0 [OPTION]... [TAG]...
11652 -h, --help print this help, then exit
11653 -V, --version print version number and configuration settings, then exit
11654 -q, --quiet, --silent
11655 do not print progress messages
11656 -d, --debug don't remove temporary files
11657 --recheck update $as_me by reconfiguring in the same conditions
11658 --file=FILE[:TEMPLATE]
11659 instantiate the configuration file FILE
11660 --header=FILE[:TEMPLATE]
11661 instantiate the configuration header FILE
11663 Configuration files:
11664 $config_files
11666 Configuration headers:
11667 $config_headers
11669 Configuration commands:
11670 $config_commands
11672 Report bugs to the package provider."
11674 _ACEOF
11675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11676 ac_cs_version="\\
11677 libssp config.status 1.0
11678 configured by $0, generated by GNU Autoconf 2.64,
11679 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11681 Copyright (C) 2009 Free Software Foundation, Inc.
11682 This config.status script is free software; the Free Software Foundation
11683 gives unlimited permission to copy, distribute and modify it."
11685 ac_pwd='$ac_pwd'
11686 srcdir='$srcdir'
11687 INSTALL='$INSTALL'
11688 MKDIR_P='$MKDIR_P'
11689 AWK='$AWK'
11690 test -n "\$AWK" || AWK=awk
11691 _ACEOF
11693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11694 # The default lists apply if the user does not specify any file.
11695 ac_need_defaults=:
11696 while test $# != 0
11698 case $1 in
11699 --*=*)
11700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11702 ac_shift=:
11705 ac_option=$1
11706 ac_optarg=$2
11707 ac_shift=shift
11709 esac
11711 case $ac_option in
11712 # Handling of the options.
11713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11714 ac_cs_recheck=: ;;
11715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11716 $as_echo "$ac_cs_version"; exit ;;
11717 --debug | --debu | --deb | --de | --d | -d )
11718 debug=: ;;
11719 --file | --fil | --fi | --f )
11720 $ac_shift
11721 case $ac_optarg in
11722 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11723 esac
11724 as_fn_append CONFIG_FILES " '$ac_optarg'"
11725 ac_need_defaults=false;;
11726 --header | --heade | --head | --hea )
11727 $ac_shift
11728 case $ac_optarg in
11729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11730 esac
11731 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11732 ac_need_defaults=false;;
11733 --he | --h)
11734 # Conflict between --help and --header
11735 as_fn_error "ambiguous option: \`$1'
11736 Try \`$0 --help' for more information.";;
11737 --help | --hel | -h )
11738 $as_echo "$ac_cs_usage"; exit ;;
11739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11741 ac_cs_silent=: ;;
11743 # This is an error.
11744 -*) as_fn_error "unrecognized option: \`$1'
11745 Try \`$0 --help' for more information." ;;
11747 *) as_fn_append ac_config_targets " $1"
11748 ac_need_defaults=false ;;
11750 esac
11751 shift
11752 done
11754 ac_configure_extra_args=
11756 if $ac_cs_silent; then
11757 exec 6>/dev/null
11758 ac_configure_extra_args="$ac_configure_extra_args --silent"
11761 _ACEOF
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763 if \$ac_cs_recheck; then
11764 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11765 shift
11766 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11767 CONFIG_SHELL='$SHELL'
11768 export CONFIG_SHELL
11769 exec "\$@"
11772 _ACEOF
11773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11774 exec 5>>config.log
11776 echo
11777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11778 ## Running $as_me. ##
11779 _ASBOX
11780 $as_echo "$ac_log"
11781 } >&5
11783 _ACEOF
11784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11786 # INIT-COMMANDS
11789 srcdir="$srcdir"
11790 host="$host"
11791 target="$target"
11792 with_multisubdir="$with_multisubdir"
11793 with_multisrctop="$with_multisrctop"
11794 with_target_subdir="$with_target_subdir"
11795 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11796 multi_basedir="$multi_basedir"
11797 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11798 CC="$CC"
11799 CXX="$CXX"
11800 GFORTRAN="$GFORTRAN"
11801 GCJ="$GCJ"
11802 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11805 # The HP-UX ksh and POSIX shell print the target directory to stdout
11806 # if CDPATH is set.
11807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11809 sed_quote_subst='$sed_quote_subst'
11810 double_quote_subst='$double_quote_subst'
11811 delay_variable_subst='$delay_variable_subst'
11812 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11813 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11814 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11815 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11816 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11817 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11818 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11819 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11820 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11821 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11822 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11823 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11824 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11825 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11826 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11827 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11828 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11829 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11830 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11831 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11832 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11833 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11834 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11835 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11836 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11837 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11838 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11839 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11840 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11841 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11842 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11843 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11844 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11845 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11846 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11847 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11848 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11849 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11850 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11851 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11852 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11853 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11854 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11855 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11856 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11857 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11858 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11859 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11860 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"`'
11861 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11862 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11863 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11864 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11865 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11866 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11867 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11868 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11869 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11870 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11871 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11872 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11873 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11874 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11875 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11876 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11877 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11878 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11879 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11880 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11881 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11882 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11883 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11884 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11885 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11886 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11887 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11888 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11889 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11890 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11891 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11892 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11893 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11894 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11895 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11896 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11897 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11898 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11899 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11900 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11901 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11902 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11903 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11904 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11905 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11906 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11907 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11908 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11909 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11910 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11911 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11912 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11913 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11914 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11915 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11916 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11917 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11918 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11919 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11920 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11921 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11922 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11923 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11924 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11925 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11926 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11927 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11928 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11929 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11930 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11931 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11933 LTCC='$LTCC'
11934 LTCFLAGS='$LTCFLAGS'
11935 compiler='$compiler_DEFAULT'
11937 # A function that is used when there is no print builtin or printf.
11938 func_fallback_echo ()
11940 eval 'cat <<_LTECHO_EOF
11942 _LTECHO_EOF'
11945 # Quote evaled strings.
11946 for var in SHELL \
11947 ECHO \
11948 SED \
11949 GREP \
11950 EGREP \
11951 FGREP \
11952 LD \
11953 NM \
11954 LN_S \
11955 lt_SP2NL \
11956 lt_NL2SP \
11957 reload_flag \
11958 OBJDUMP \
11959 deplibs_check_method \
11960 file_magic_cmd \
11961 AR \
11962 AR_FLAGS \
11963 STRIP \
11964 RANLIB \
11965 CC \
11966 CFLAGS \
11967 compiler \
11968 lt_cv_sys_global_symbol_pipe \
11969 lt_cv_sys_global_symbol_to_cdecl \
11970 lt_cv_sys_global_symbol_to_c_name_address \
11971 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11972 lt_prog_compiler_no_builtin_flag \
11973 lt_prog_compiler_wl \
11974 lt_prog_compiler_pic \
11975 lt_prog_compiler_static \
11976 lt_cv_prog_compiler_c_o \
11977 need_locks \
11978 DSYMUTIL \
11979 NMEDIT \
11980 LIPO \
11981 OTOOL \
11982 OTOOL64 \
11983 shrext_cmds \
11984 export_dynamic_flag_spec \
11985 whole_archive_flag_spec \
11986 compiler_needs_object \
11987 with_gnu_ld \
11988 allow_undefined_flag \
11989 no_undefined_flag \
11990 hardcode_libdir_flag_spec \
11991 hardcode_libdir_flag_spec_ld \
11992 hardcode_libdir_separator \
11993 fix_srcfile_path \
11994 exclude_expsyms \
11995 include_expsyms \
11996 file_list_spec \
11997 variables_saved_for_relink \
11998 libname_spec \
11999 library_names_spec \
12000 soname_spec \
12001 install_override_mode \
12002 finish_eval \
12003 old_striplib \
12004 striplib; do
12005 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12006 *[\\\\\\\`\\"\\\$]*)
12007 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12010 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12012 esac
12013 done
12015 # Double-quote double-evaled strings.
12016 for var in reload_cmds \
12017 old_postinstall_cmds \
12018 old_postuninstall_cmds \
12019 old_archive_cmds \
12020 extract_expsyms_cmds \
12021 old_archive_from_new_cmds \
12022 old_archive_from_expsyms_cmds \
12023 archive_cmds \
12024 archive_expsym_cmds \
12025 module_cmds \
12026 module_expsym_cmds \
12027 export_symbols_cmds \
12028 prelink_cmds \
12029 postinstall_cmds \
12030 postuninstall_cmds \
12031 finish_cmds \
12032 sys_lib_search_path_spec \
12033 sys_lib_dlsearch_path_spec; do
12034 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12035 *[\\\\\\\`\\"\\\$]*)
12036 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12039 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12041 esac
12042 done
12044 ac_aux_dir='$ac_aux_dir'
12045 xsi_shell='$xsi_shell'
12046 lt_shell_append='$lt_shell_append'
12048 # See if we are running on zsh, and set the options which allow our
12049 # commands through without removal of \ escapes INIT.
12050 if test -n "\${ZSH_VERSION+set}" ; then
12051 setopt NO_GLOB_SUBST
12055 PACKAGE='$PACKAGE'
12056 VERSION='$VERSION'
12057 TIMESTAMP='$TIMESTAMP'
12058 RM='$RM'
12059 ofile='$ofile'
12064 _ACEOF
12066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12068 # Handling of arguments.
12069 for ac_config_target in $ac_config_targets
12071 case $ac_config_target in
12072 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12073 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12074 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12075 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12077 "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
12079 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12080 esac
12081 done
12084 # If the user did not use the arguments to specify the items to instantiate,
12085 # then the envvar interface is used. Set only those that are not.
12086 # We use the long form for the default assignment because of an extremely
12087 # bizarre bug on SunOS 4.1.3.
12088 if $ac_need_defaults; then
12089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12094 # Have a temporary directory for convenience. Make it in the build tree
12095 # simply because there is no reason against having it here, and in addition,
12096 # creating and moving files from /tmp can sometimes cause problems.
12097 # Hook for its removal unless debugging.
12098 # Note that there is a small window in which the directory will not be cleaned:
12099 # after its creation but before its name has been assigned to `$tmp'.
12100 $debug ||
12102 tmp=
12103 trap 'exit_status=$?
12104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12106 trap 'as_fn_exit 1' 1 2 13 15
12108 # Create a (secure) tmp directory for tmp files.
12111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12112 test -n "$tmp" && test -d "$tmp"
12113 } ||
12115 tmp=./conf$$-$RANDOM
12116 (umask 077 && mkdir "$tmp")
12117 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12119 # Set up the scripts for CONFIG_FILES section.
12120 # No need to generate them if there are no CONFIG_FILES.
12121 # This happens for instance with `./config.status config.h'.
12122 if test -n "$CONFIG_FILES"; then
12125 ac_cr=`echo X | tr X '\015'`
12126 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12127 # But we know of no other shell where ac_cr would be empty at this
12128 # point, so we can use a bashism as a fallback.
12129 if test "x$ac_cr" = x; then
12130 eval ac_cr=\$\'\\r\'
12132 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12133 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12134 ac_cs_awk_cr='\r'
12135 else
12136 ac_cs_awk_cr=$ac_cr
12139 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12140 _ACEOF
12144 echo "cat >conf$$subs.awk <<_ACEOF" &&
12145 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12146 echo "_ACEOF"
12147 } >conf$$subs.sh ||
12148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12149 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12150 ac_delim='%!_!# '
12151 for ac_last_try in false false false false false :; do
12152 . ./conf$$subs.sh ||
12153 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12155 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12156 if test $ac_delim_n = $ac_delim_num; then
12157 break
12158 elif $ac_last_try; then
12159 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12160 else
12161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12163 done
12164 rm -f conf$$subs.sh
12166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12167 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12168 _ACEOF
12169 sed -n '
12171 s/^/S["/; s/!.*/"]=/
12174 s/^[^!]*!//
12175 :repl
12176 t repl
12177 s/'"$ac_delim"'$//
12178 t delim
12181 s/\(.\{148\}\).*/\1/
12182 t more1
12183 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12186 b repl
12187 :more1
12188 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12191 s/.\{148\}//
12192 t nl
12193 :delim
12195 s/\(.\{148\}\).*/\1/
12196 t more2
12197 s/["\\]/\\&/g; s/^/"/; s/$/"/
12200 :more2
12201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12204 s/.\{148\}//
12205 t delim
12206 ' <conf$$subs.awk | sed '
12207 /^[^""]/{
12209 s/\n//
12211 ' >>$CONFIG_STATUS || ac_write_fail=1
12212 rm -f conf$$subs.awk
12213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12214 _ACAWK
12215 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12216 for (key in S) S_is_set[key] = 1
12217 FS = "\a"
12221 line = $ 0
12222 nfields = split(line, field, "@")
12223 substed = 0
12224 len = length(field[1])
12225 for (i = 2; i < nfields; i++) {
12226 key = field[i]
12227 keylen = length(key)
12228 if (S_is_set[key]) {
12229 value = S[key]
12230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12231 len += length(value) + length(field[++i])
12232 substed = 1
12233 } else
12234 len += 1 + keylen
12237 print line
12240 _ACAWK
12241 _ACEOF
12242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12243 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12244 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12245 else
12247 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12248 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12249 _ACEOF
12251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12253 # trailing colons and then remove the whole line if VPATH becomes empty
12254 # (actually we leave an empty line to preserve line numbers).
12255 if test "x$srcdir" = x.; then
12256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12257 s/:*\$(srcdir):*/:/
12258 s/:*\${srcdir}:*/:/
12259 s/:*@srcdir@:*/:/
12260 s/^\([^=]*=[ ]*\):*/\1/
12261 s/:*$//
12262 s/^[^=]*=[ ]*$//
12266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12267 fi # test -n "$CONFIG_FILES"
12269 # Set up the scripts for CONFIG_HEADERS section.
12270 # No need to generate them if there are no CONFIG_HEADERS.
12271 # This happens for instance with `./config.status Makefile'.
12272 if test -n "$CONFIG_HEADERS"; then
12273 cat >"$tmp/defines.awk" <<\_ACAWK ||
12274 BEGIN {
12275 _ACEOF
12277 # Transform confdefs.h into an awk script `defines.awk', embedded as
12278 # here-document in config.status, that substitutes the proper values into
12279 # config.h.in to produce config.h.
12281 # Create a delimiter string that does not exist in confdefs.h, to ease
12282 # handling of long lines.
12283 ac_delim='%!_!# '
12284 for ac_last_try in false false :; do
12285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12286 if test -z "$ac_t"; then
12287 break
12288 elif $ac_last_try; then
12289 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12290 else
12291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12293 done
12295 # For the awk script, D is an array of macro values keyed by name,
12296 # likewise P contains macro parameters if any. Preserve backslash
12297 # newline sequences.
12299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12300 sed -n '
12301 s/.\{148\}/&'"$ac_delim"'/g
12302 t rset
12303 :rset
12304 s/^[ ]*#[ ]*define[ ][ ]*/ /
12305 t def
12307 :def
12308 s/\\$//
12309 t bsnl
12310 s/["\\]/\\&/g
12311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12312 D["\1"]=" \3"/p
12313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12315 :bsnl
12316 s/["\\]/\\&/g
12317 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12318 D["\1"]=" \3\\\\\\n"\\/p
12319 t cont
12320 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12321 t cont
12323 :cont
12325 s/.\{148\}/&'"$ac_delim"'/g
12326 t clear
12327 :clear
12328 s/\\$//
12329 t bsnlc
12330 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12332 :bsnlc
12333 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12334 b cont
12335 ' <confdefs.h | sed '
12336 s/'"$ac_delim"'/"\\\
12337 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12340 for (key in D) D_is_set[key] = 1
12341 FS = "\a"
12343 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12344 line = \$ 0
12345 split(line, arg, " ")
12346 if (arg[1] == "#") {
12347 defundef = arg[2]
12348 mac1 = arg[3]
12349 } else {
12350 defundef = substr(arg[1], 2)
12351 mac1 = arg[2]
12353 split(mac1, mac2, "(") #)
12354 macro = mac2[1]
12355 prefix = substr(line, 1, index(line, defundef) - 1)
12356 if (D_is_set[macro]) {
12357 # Preserve the white space surrounding the "#".
12358 print prefix "define", macro P[macro] D[macro]
12359 next
12360 } else {
12361 # Replace #undef with comments. This is necessary, for example,
12362 # in the case of _POSIX_SOURCE, which is predefined and required
12363 # on some systems where configure will not decide to define it.
12364 if (defundef == "undef") {
12365 print "/*", prefix defundef, macro, "*/"
12366 next
12370 { print }
12371 _ACAWK
12372 _ACEOF
12373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12374 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12375 fi # test -n "$CONFIG_HEADERS"
12378 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12379 shift
12380 for ac_tag
12382 case $ac_tag in
12383 :[FHLC]) ac_mode=$ac_tag; continue;;
12384 esac
12385 case $ac_mode$ac_tag in
12386 :[FHL]*:*);;
12387 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12388 :[FH]-) ac_tag=-:-;;
12389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12390 esac
12391 ac_save_IFS=$IFS
12392 IFS=:
12393 set x $ac_tag
12394 IFS=$ac_save_IFS
12395 shift
12396 ac_file=$1
12397 shift
12399 case $ac_mode in
12400 :L) ac_source=$1;;
12401 :[FH])
12402 ac_file_inputs=
12403 for ac_f
12405 case $ac_f in
12406 -) ac_f="$tmp/stdin";;
12407 *) # Look for the file first in the build tree, then in the source tree
12408 # (if the path is not absolute). The absolute path cannot be DOS-style,
12409 # because $ac_f cannot contain `:'.
12410 test -f "$ac_f" ||
12411 case $ac_f in
12412 [\\/$]*) false;;
12413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12414 esac ||
12415 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12416 esac
12417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12418 as_fn_append ac_file_inputs " '$ac_f'"
12419 done
12421 # Let's still pretend it is `configure' which instantiates (i.e., don't
12422 # use $as_me), people would be surprised to read:
12423 # /* config.h. Generated by config.status. */
12424 configure_input='Generated from '`
12425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12426 `' by configure.'
12427 if test x"$ac_file" != x-; then
12428 configure_input="$ac_file. $configure_input"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12430 $as_echo "$as_me: creating $ac_file" >&6;}
12432 # Neutralize special characters interpreted by sed in replacement strings.
12433 case $configure_input in #(
12434 *\&* | *\|* | *\\* )
12435 ac_sed_conf_input=`$as_echo "$configure_input" |
12436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12437 *) ac_sed_conf_input=$configure_input;;
12438 esac
12440 case $ac_tag in
12441 *:-:* | *:-) cat >"$tmp/stdin" \
12442 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12443 esac
12445 esac
12447 ac_dir=`$as_dirname -- "$ac_file" ||
12448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12449 X"$ac_file" : 'X\(//\)[^/]' \| \
12450 X"$ac_file" : 'X\(//\)$' \| \
12451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12452 $as_echo X"$ac_file" |
12453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12454 s//\1/
12457 /^X\(\/\/\)[^/].*/{
12458 s//\1/
12461 /^X\(\/\/\)$/{
12462 s//\1/
12465 /^X\(\/\).*/{
12466 s//\1/
12469 s/.*/./; q'`
12470 as_dir="$ac_dir"; as_fn_mkdir_p
12471 ac_builddir=.
12473 case "$ac_dir" in
12474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12477 # A ".." for each directory in $ac_dir_suffix.
12478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12479 case $ac_top_builddir_sub in
12480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12482 esac ;;
12483 esac
12484 ac_abs_top_builddir=$ac_pwd
12485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12486 # for backward compatibility:
12487 ac_top_builddir=$ac_top_build_prefix
12489 case $srcdir in
12490 .) # We are building in place.
12491 ac_srcdir=.
12492 ac_top_srcdir=$ac_top_builddir_sub
12493 ac_abs_top_srcdir=$ac_pwd ;;
12494 [\\/]* | ?:[\\/]* ) # Absolute name.
12495 ac_srcdir=$srcdir$ac_dir_suffix;
12496 ac_top_srcdir=$srcdir
12497 ac_abs_top_srcdir=$srcdir ;;
12498 *) # Relative name.
12499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12500 ac_top_srcdir=$ac_top_build_prefix$srcdir
12501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12502 esac
12503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12506 case $ac_mode in
12509 # CONFIG_FILE
12512 case $INSTALL in
12513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12515 esac
12516 ac_MKDIR_P=$MKDIR_P
12517 case $MKDIR_P in
12518 [\\/$]* | ?:[\\/]* ) ;;
12519 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12520 esac
12521 _ACEOF
12523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12524 # If the template does not know about datarootdir, expand it.
12525 # FIXME: This hack should be removed a few years after 2.60.
12526 ac_datarootdir_hack=; ac_datarootdir_seen=
12527 ac_sed_dataroot='
12528 /datarootdir/ {
12532 /@datadir@/p
12533 /@docdir@/p
12534 /@infodir@/p
12535 /@localedir@/p
12536 /@mandir@/p'
12537 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12538 *datarootdir*) ac_datarootdir_seen=yes;;
12539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12541 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12542 _ACEOF
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544 ac_datarootdir_hack='
12545 s&@datadir@&$datadir&g
12546 s&@docdir@&$docdir&g
12547 s&@infodir@&$infodir&g
12548 s&@localedir@&$localedir&g
12549 s&@mandir@&$mandir&g
12550 s&\\\${datarootdir}&$datarootdir&g' ;;
12551 esac
12552 _ACEOF
12554 # Neutralize VPATH when `$srcdir' = `.'.
12555 # Shell code in configure.ac might set extrasub.
12556 # FIXME: do we really want to maintain this feature?
12557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12558 ac_sed_extra="$ac_vpsub
12559 $extrasub
12560 _ACEOF
12561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12564 s|@configure_input@|$ac_sed_conf_input|;t t
12565 s&@top_builddir@&$ac_top_builddir_sub&;t t
12566 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12567 s&@srcdir@&$ac_srcdir&;t t
12568 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12569 s&@top_srcdir@&$ac_top_srcdir&;t t
12570 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12571 s&@builddir@&$ac_builddir&;t t
12572 s&@abs_builddir@&$ac_abs_builddir&;t t
12573 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12574 s&@INSTALL@&$ac_INSTALL&;t t
12575 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12576 $ac_datarootdir_hack
12578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12579 || as_fn_error "could not create $ac_file" "$LINENO" 5
12581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12585 which seems to be undefined. Please make sure it is defined." >&5
12586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12587 which seems to be undefined. Please make sure it is defined." >&2;}
12589 rm -f "$tmp/stdin"
12590 case $ac_file in
12591 -) cat "$tmp/out" && rm -f "$tmp/out";;
12592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12593 esac \
12594 || as_fn_error "could not create $ac_file" "$LINENO" 5
12598 # CONFIG_HEADER
12600 if test x"$ac_file" != x-; then
12602 $as_echo "/* $configure_input */" \
12603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12604 } >"$tmp/config.h" \
12605 || as_fn_error "could not create $ac_file" "$LINENO" 5
12606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12608 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12609 else
12610 rm -f "$ac_file"
12611 mv "$tmp/config.h" "$ac_file" \
12612 || as_fn_error "could not create $ac_file" "$LINENO" 5
12614 else
12615 $as_echo "/* $configure_input */" \
12616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12617 || as_fn_error "could not create -" "$LINENO" 5
12619 # Compute "$ac_file"'s index in $config_headers.
12620 _am_arg="$ac_file"
12621 _am_stamp_count=1
12622 for _am_header in $config_headers :; do
12623 case $_am_header in
12624 $_am_arg | $_am_arg:* )
12625 break ;;
12627 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12628 esac
12629 done
12630 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12631 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12632 X"$_am_arg" : 'X\(//\)[^/]' \| \
12633 X"$_am_arg" : 'X\(//\)$' \| \
12634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12635 $as_echo X"$_am_arg" |
12636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12637 s//\1/
12640 /^X\(\/\/\)[^/].*/{
12641 s//\1/
12644 /^X\(\/\/\)$/{
12645 s//\1/
12648 /^X\(\/\).*/{
12649 s//\1/
12652 s/.*/./; q'`/stamp-h$_am_stamp_count
12655 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12656 $as_echo "$as_me: executing $ac_file commands" >&6;}
12658 esac
12661 case $ac_file$ac_mode in
12662 "default-1":C)
12663 # Only add multilib support code if we just rebuilt the top-level
12664 # Makefile.
12665 case " $CONFIG_FILES " in
12666 *" Makefile "*)
12667 ac_file=Makefile . ${multi_basedir}/config-ml.in
12669 esac ;;
12670 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12671 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12672 # are listed without --file. Let's play safe and only enable the eval
12673 # if we detect the quoting.
12674 case $CONFIG_FILES in
12675 *\'*) eval set x "$CONFIG_FILES" ;;
12676 *) set x $CONFIG_FILES ;;
12677 esac
12678 shift
12679 for mf
12681 # Strip MF so we end up with the name of the file.
12682 mf=`echo "$mf" | sed -e 's/:.*$//'`
12683 # Check whether this is an Automake generated Makefile or not.
12684 # We used to match only the files named `Makefile.in', but
12685 # some people rename them; so instead we look at the file content.
12686 # Grep'ing the first line is not enough: some people post-process
12687 # each Makefile.in and add a new line on top of each file to say so.
12688 # Grep'ing the whole file is not good either: AIX grep has a line
12689 # limit of 2048, but all sed's we know have understand at least 4000.
12690 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12691 dirpart=`$as_dirname -- "$mf" ||
12692 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12693 X"$mf" : 'X\(//\)[^/]' \| \
12694 X"$mf" : 'X\(//\)$' \| \
12695 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12696 $as_echo X"$mf" |
12697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12698 s//\1/
12701 /^X\(\/\/\)[^/].*/{
12702 s//\1/
12705 /^X\(\/\/\)$/{
12706 s//\1/
12709 /^X\(\/\).*/{
12710 s//\1/
12713 s/.*/./; q'`
12714 else
12715 continue
12717 # Extract the definition of DEPDIR, am__include, and am__quote
12718 # from the Makefile without running `make'.
12719 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12720 test -z "$DEPDIR" && continue
12721 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12722 test -z "am__include" && continue
12723 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12724 # When using ansi2knr, U may be empty or an underscore; expand it
12725 U=`sed -n 's/^U = //p' < "$mf"`
12726 # Find all dependency output files, they are included files with
12727 # $(DEPDIR) in their names. We invoke sed twice because it is the
12728 # simplest approach to changing $(DEPDIR) to its actual value in the
12729 # expansion.
12730 for file in `sed -n "
12731 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12732 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12733 # Make sure the directory exists.
12734 test -f "$dirpart/$file" && continue
12735 fdir=`$as_dirname -- "$file" ||
12736 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12737 X"$file" : 'X\(//\)[^/]' \| \
12738 X"$file" : 'X\(//\)$' \| \
12739 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12740 $as_echo X"$file" |
12741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12742 s//\1/
12745 /^X\(\/\/\)[^/].*/{
12746 s//\1/
12749 /^X\(\/\/\)$/{
12750 s//\1/
12753 /^X\(\/\).*/{
12754 s//\1/
12757 s/.*/./; q'`
12758 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12759 # echo "creating $dirpart/$file"
12760 echo '# dummy' > "$dirpart/$file"
12761 done
12762 done
12765 "libtool":C)
12767 # See if we are running on zsh, and set the options which allow our
12768 # commands through without removal of \ escapes.
12769 if test -n "${ZSH_VERSION+set}" ; then
12770 setopt NO_GLOB_SUBST
12773 cfgfile="${ofile}T"
12774 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12775 $RM "$cfgfile"
12777 cat <<_LT_EOF >> "$cfgfile"
12778 #! $SHELL
12780 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12781 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12783 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12785 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12786 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12787 # Written by Gordon Matzigkeit, 1996
12789 # This file is part of GNU Libtool.
12791 # GNU Libtool is free software; you can redistribute it and/or
12792 # modify it under the terms of the GNU General Public License as
12793 # published by the Free Software Foundation; either version 2 of
12794 # the License, or (at your option) any later version.
12796 # As a special exception to the GNU General Public License,
12797 # if you distribute this file as part of a program or library that
12798 # is built using GNU Libtool, you may include this file under the
12799 # same distribution terms that you use for the rest of that program.
12801 # GNU Libtool is distributed in the hope that it will be useful,
12802 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12803 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12804 # GNU General Public License for more details.
12806 # You should have received a copy of the GNU General Public License
12807 # along with GNU Libtool; see the file COPYING. If not, a copy
12808 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12809 # obtained by writing to the Free Software Foundation, Inc.,
12810 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12813 # The names of the tagged configurations supported by this script.
12814 available_tags=""
12816 # ### BEGIN LIBTOOL CONFIG
12818 # Which release of libtool.m4 was used?
12819 macro_version=$macro_version
12820 macro_revision=$macro_revision
12822 # Whether or not to build shared libraries.
12823 build_libtool_libs=$enable_shared
12825 # Whether or not to build static libraries.
12826 build_old_libs=$enable_static
12828 # What type of objects to build.
12829 pic_mode=$pic_mode
12831 # Whether or not to optimize for fast installation.
12832 fast_install=$enable_fast_install
12834 # Shell to use when invoking shell scripts.
12835 SHELL=$lt_SHELL
12837 # An echo program that protects backslashes.
12838 ECHO=$lt_ECHO
12840 # The host system.
12841 host_alias=$host_alias
12842 host=$host
12843 host_os=$host_os
12845 # The build system.
12846 build_alias=$build_alias
12847 build=$build
12848 build_os=$build_os
12850 # A sed program that does not truncate output.
12851 SED=$lt_SED
12853 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12854 Xsed="\$SED -e 1s/^X//"
12856 # A grep program that handles long lines.
12857 GREP=$lt_GREP
12859 # An ERE matcher.
12860 EGREP=$lt_EGREP
12862 # A literal string matcher.
12863 FGREP=$lt_FGREP
12865 # A BSD- or MS-compatible name lister.
12866 NM=$lt_NM
12868 # Whether we need soft or hard links.
12869 LN_S=$lt_LN_S
12871 # What is the maximum length of a command?
12872 max_cmd_len=$max_cmd_len
12874 # Object file suffix (normally "o").
12875 objext=$ac_objext
12877 # Executable file suffix (normally "").
12878 exeext=$exeext
12880 # whether the shell understands "unset".
12881 lt_unset=$lt_unset
12883 # turn spaces into newlines.
12884 SP2NL=$lt_lt_SP2NL
12886 # turn newlines into spaces.
12887 NL2SP=$lt_lt_NL2SP
12889 # An object symbol dumper.
12890 OBJDUMP=$lt_OBJDUMP
12892 # Method to check whether dependent libraries are shared objects.
12893 deplibs_check_method=$lt_deplibs_check_method
12895 # Command to use when deplibs_check_method == "file_magic".
12896 file_magic_cmd=$lt_file_magic_cmd
12898 # The archiver.
12899 AR=$lt_AR
12900 AR_FLAGS=$lt_AR_FLAGS
12902 # A symbol stripping program.
12903 STRIP=$lt_STRIP
12905 # Commands used to install an old-style archive.
12906 RANLIB=$lt_RANLIB
12907 old_postinstall_cmds=$lt_old_postinstall_cmds
12908 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12910 # Whether to use a lock for old archive extraction.
12911 lock_old_archive_extraction=$lock_old_archive_extraction
12913 # A C compiler.
12914 LTCC=$lt_CC
12916 # LTCC compiler flags.
12917 LTCFLAGS=$lt_CFLAGS
12919 # Take the output of nm and produce a listing of raw symbols and C names.
12920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12922 # Transform the output of nm in a proper C declaration.
12923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12925 # Transform the output of nm in a C name address pair.
12926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12928 # Transform the output of nm in a C name address pair when lib prefix is needed.
12929 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12931 # The name of the directory that contains temporary libtool files.
12932 objdir=$objdir
12934 # Used to examine libraries when file_magic_cmd begins with "file".
12935 MAGIC_CMD=$MAGIC_CMD
12937 # Must we lock files when doing compilation?
12938 need_locks=$lt_need_locks
12940 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12941 DSYMUTIL=$lt_DSYMUTIL
12943 # Tool to change global to local symbols on Mac OS X.
12944 NMEDIT=$lt_NMEDIT
12946 # Tool to manipulate fat objects and archives on Mac OS X.
12947 LIPO=$lt_LIPO
12949 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12950 OTOOL=$lt_OTOOL
12952 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12953 OTOOL64=$lt_OTOOL64
12955 # Old archive suffix (normally "a").
12956 libext=$libext
12958 # Shared library suffix (normally ".so").
12959 shrext_cmds=$lt_shrext_cmds
12961 # The commands to extract the exported symbol list from a shared archive.
12962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12964 # Variables whose values should be saved in libtool wrapper scripts and
12965 # restored at link time.
12966 variables_saved_for_relink=$lt_variables_saved_for_relink
12968 # Do we need the "lib" prefix for modules?
12969 need_lib_prefix=$need_lib_prefix
12971 # Do we need a version for libraries?
12972 need_version=$need_version
12974 # Library versioning type.
12975 version_type=$version_type
12977 # Shared library runtime path variable.
12978 runpath_var=$runpath_var
12980 # Shared library path variable.
12981 shlibpath_var=$shlibpath_var
12983 # Is shlibpath searched before the hard-coded library search path?
12984 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12986 # Format of library name prefix.
12987 libname_spec=$lt_libname_spec
12989 # List of archive names. First name is the real one, the rest are links.
12990 # The last name is the one that the linker finds with -lNAME
12991 library_names_spec=$lt_library_names_spec
12993 # The coded name of the library, if different from the real name.
12994 soname_spec=$lt_soname_spec
12996 # Permission mode override for installation of shared libraries.
12997 install_override_mode=$lt_install_override_mode
12999 # Command to use after installation of a shared archive.
13000 postinstall_cmds=$lt_postinstall_cmds
13002 # Command to use after uninstallation of a shared archive.
13003 postuninstall_cmds=$lt_postuninstall_cmds
13005 # Commands used to finish a libtool library installation in a directory.
13006 finish_cmds=$lt_finish_cmds
13008 # As "finish_cmds", except a single script fragment to be evaled but
13009 # not shown.
13010 finish_eval=$lt_finish_eval
13012 # Whether we should hardcode library paths into libraries.
13013 hardcode_into_libs=$hardcode_into_libs
13015 # Compile-time system search path for libraries.
13016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13018 # Run-time system search path for libraries.
13019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13021 # Whether dlopen is supported.
13022 dlopen_support=$enable_dlopen
13024 # Whether dlopen of programs is supported.
13025 dlopen_self=$enable_dlopen_self
13027 # Whether dlopen of statically linked programs is supported.
13028 dlopen_self_static=$enable_dlopen_self_static
13030 # Commands to strip libraries.
13031 old_striplib=$lt_old_striplib
13032 striplib=$lt_striplib
13035 # The linker used to build libraries.
13036 LD=$lt_LD
13038 # How to create reloadable object files.
13039 reload_flag=$lt_reload_flag
13040 reload_cmds=$lt_reload_cmds
13042 # Commands used to build an old-style archive.
13043 old_archive_cmds=$lt_old_archive_cmds
13045 # A language specific compiler.
13046 CC=$lt_compiler
13048 # Is the compiler the GNU compiler?
13049 with_gcc=$GCC
13051 # Compiler flag to turn off builtin functions.
13052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13054 # How to pass a linker flag through the compiler.
13055 wl=$lt_lt_prog_compiler_wl
13057 # Additional compiler flags for building library objects.
13058 pic_flag=$lt_lt_prog_compiler_pic
13060 # Compiler flag to prevent dynamic linking.
13061 link_static_flag=$lt_lt_prog_compiler_static
13063 # Does compiler simultaneously support -c and -o options?
13064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13066 # Whether or not to add -lc for building shared libraries.
13067 build_libtool_need_lc=$archive_cmds_need_lc
13069 # Whether or not to disallow shared libs when runtime libs are static.
13070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13072 # Compiler flag to allow reflexive dlopens.
13073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13075 # Compiler flag to generate shared objects directly from archives.
13076 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13078 # Whether the compiler copes with passing no objects directly.
13079 compiler_needs_object=$lt_compiler_needs_object
13081 # Create an old-style archive from a shared archive.
13082 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13084 # Create a temporary old-style archive to link instead of a shared archive.
13085 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13087 # Commands used to build a shared archive.
13088 archive_cmds=$lt_archive_cmds
13089 archive_expsym_cmds=$lt_archive_expsym_cmds
13091 # Commands used to build a loadable module if different from building
13092 # a shared archive.
13093 module_cmds=$lt_module_cmds
13094 module_expsym_cmds=$lt_module_expsym_cmds
13096 # Whether we are building with GNU ld or not.
13097 with_gnu_ld=$lt_with_gnu_ld
13099 # Flag that allows shared libraries with undefined symbols to be built.
13100 allow_undefined_flag=$lt_allow_undefined_flag
13102 # Flag that enforces no undefined symbols.
13103 no_undefined_flag=$lt_no_undefined_flag
13105 # Flag to hardcode \$libdir into a binary during linking.
13106 # This must work even if \$libdir does not exist
13107 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13109 # If ld is used when linking, flag to hardcode \$libdir into a binary
13110 # during linking. This must work even if \$libdir does not exist.
13111 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13113 # Whether we need a single "-rpath" flag with a separated argument.
13114 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13116 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13117 # DIR into the resulting binary.
13118 hardcode_direct=$hardcode_direct
13120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13121 # DIR into the resulting binary and the resulting library dependency is
13122 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13123 # library is relocated.
13124 hardcode_direct_absolute=$hardcode_direct_absolute
13126 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13127 # into the resulting binary.
13128 hardcode_minus_L=$hardcode_minus_L
13130 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13131 # into the resulting binary.
13132 hardcode_shlibpath_var=$hardcode_shlibpath_var
13134 # Set to "yes" if building a shared library automatically hardcodes DIR
13135 # into the library and all subsequent libraries and executables linked
13136 # against it.
13137 hardcode_automatic=$hardcode_automatic
13139 # Set to yes if linker adds runtime paths of dependent libraries
13140 # to runtime path list.
13141 inherit_rpath=$inherit_rpath
13143 # Whether libtool must link a program against all its dependency libraries.
13144 link_all_deplibs=$link_all_deplibs
13146 # Fix the shell variable \$srcfile for the compiler.
13147 fix_srcfile_path=$lt_fix_srcfile_path
13149 # Set to "yes" if exported symbols are required.
13150 always_export_symbols=$always_export_symbols
13152 # The commands to list exported symbols.
13153 export_symbols_cmds=$lt_export_symbols_cmds
13155 # Symbols that should not be listed in the preloaded symbols.
13156 exclude_expsyms=$lt_exclude_expsyms
13158 # Symbols that must always be exported.
13159 include_expsyms=$lt_include_expsyms
13161 # Commands necessary for linking programs (against libraries) with templates.
13162 prelink_cmds=$lt_prelink_cmds
13164 # Specify filename containing input files.
13165 file_list_spec=$lt_file_list_spec
13167 # How to hardcode a shared library path into an executable.
13168 hardcode_action=$hardcode_action
13170 # ### END LIBTOOL CONFIG
13172 _LT_EOF
13174 case $host_os in
13175 aix3*)
13176 cat <<\_LT_EOF >> "$cfgfile"
13177 # AIX sometimes has problems with the GCC collect2 program. For some
13178 # reason, if we set the COLLECT_NAMES environment variable, the problems
13179 # vanish in a puff of smoke.
13180 if test "X${COLLECT_NAMES+set}" != Xset; then
13181 COLLECT_NAMES=
13182 export COLLECT_NAMES
13184 _LT_EOF
13186 esac
13189 ltmain="$ac_aux_dir/ltmain.sh"
13192 # We use sed instead of cat because bash on DJGPP gets confused if
13193 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13194 # text mode, it properly converts lines to CR/LF. This bash problem
13195 # is reportedly fixed, but why not run on old versions too?
13196 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13197 || (rm -f "$cfgfile"; exit 1)
13199 case $xsi_shell in
13200 yes)
13201 cat << \_LT_EOF >> "$cfgfile"
13203 # func_dirname file append nondir_replacement
13204 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13205 # otherwise set result to NONDIR_REPLACEMENT.
13206 func_dirname ()
13208 case ${1} in
13209 */*) func_dirname_result="${1%/*}${2}" ;;
13210 * ) func_dirname_result="${3}" ;;
13211 esac
13214 # func_basename file
13215 func_basename ()
13217 func_basename_result="${1##*/}"
13220 # func_dirname_and_basename file append nondir_replacement
13221 # perform func_basename and func_dirname in a single function
13222 # call:
13223 # dirname: Compute the dirname of FILE. If nonempty,
13224 # add APPEND to the result, otherwise set result
13225 # to NONDIR_REPLACEMENT.
13226 # value returned in "$func_dirname_result"
13227 # basename: Compute filename of FILE.
13228 # value retuned in "$func_basename_result"
13229 # Implementation must be kept synchronized with func_dirname
13230 # and func_basename. For efficiency, we do not delegate to
13231 # those functions but instead duplicate the functionality here.
13232 func_dirname_and_basename ()
13234 case ${1} in
13235 */*) func_dirname_result="${1%/*}${2}" ;;
13236 * ) func_dirname_result="${3}" ;;
13237 esac
13238 func_basename_result="${1##*/}"
13241 # func_stripname prefix suffix name
13242 # strip PREFIX and SUFFIX off of NAME.
13243 # PREFIX and SUFFIX must not contain globbing or regex special
13244 # characters, hashes, percent signs, but SUFFIX may contain a leading
13245 # dot (in which case that matches only a dot).
13246 func_stripname ()
13248 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13249 # positional parameters, so assign one to ordinary parameter first.
13250 func_stripname_result=${3}
13251 func_stripname_result=${func_stripname_result#"${1}"}
13252 func_stripname_result=${func_stripname_result%"${2}"}
13255 # func_opt_split
13256 func_opt_split ()
13258 func_opt_split_opt=${1%%=*}
13259 func_opt_split_arg=${1#*=}
13262 # func_lo2o object
13263 func_lo2o ()
13265 case ${1} in
13266 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13267 *) func_lo2o_result=${1} ;;
13268 esac
13271 # func_xform libobj-or-source
13272 func_xform ()
13274 func_xform_result=${1%.*}.lo
13277 # func_arith arithmetic-term...
13278 func_arith ()
13280 func_arith_result=$(( $* ))
13283 # func_len string
13284 # STRING may not start with a hyphen.
13285 func_len ()
13287 func_len_result=${#1}
13290 _LT_EOF
13292 *) # Bourne compatible functions.
13293 cat << \_LT_EOF >> "$cfgfile"
13295 # func_dirname file append nondir_replacement
13296 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13297 # otherwise set result to NONDIR_REPLACEMENT.
13298 func_dirname ()
13300 # Extract subdirectory from the argument.
13301 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13302 if test "X$func_dirname_result" = "X${1}"; then
13303 func_dirname_result="${3}"
13304 else
13305 func_dirname_result="$func_dirname_result${2}"
13309 # func_basename file
13310 func_basename ()
13312 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13316 # func_stripname prefix suffix name
13317 # strip PREFIX and SUFFIX off of NAME.
13318 # PREFIX and SUFFIX must not contain globbing or regex special
13319 # characters, hashes, percent signs, but SUFFIX may contain a leading
13320 # dot (in which case that matches only a dot).
13321 # func_strip_suffix prefix name
13322 func_stripname ()
13324 case ${2} in
13325 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13326 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13327 esac
13330 # sed scripts:
13331 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13332 my_sed_long_arg='1s/^-[^=]*=//'
13334 # func_opt_split
13335 func_opt_split ()
13337 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13338 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13341 # func_lo2o object
13342 func_lo2o ()
13344 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13347 # func_xform libobj-or-source
13348 func_xform ()
13350 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13353 # func_arith arithmetic-term...
13354 func_arith ()
13356 func_arith_result=`expr "$@"`
13359 # func_len string
13360 # STRING may not start with a hyphen.
13361 func_len ()
13363 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13366 _LT_EOF
13367 esac
13369 case $lt_shell_append in
13370 yes)
13371 cat << \_LT_EOF >> "$cfgfile"
13373 # func_append var value
13374 # Append VALUE to the end of shell variable VAR.
13375 func_append ()
13377 eval "$1+=\$2"
13379 _LT_EOF
13382 cat << \_LT_EOF >> "$cfgfile"
13384 # func_append var value
13385 # Append VALUE to the end of shell variable VAR.
13386 func_append ()
13388 eval "$1=\$$1\$2"
13391 _LT_EOF
13393 esac
13396 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13397 || (rm -f "$cfgfile"; exit 1)
13399 mv -f "$cfgfile" "$ofile" ||
13400 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13401 chmod +x "$ofile"
13405 esac
13406 done # for ac_tag
13409 as_fn_exit 0
13410 _ACEOF
13411 ac_clean_files=$ac_clean_files_save
13413 test $ac_write_fail = 0 ||
13414 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13417 # configure is writing to config.log, and then calls config.status.
13418 # config.status does its own redirection, appending to config.log.
13419 # Unfortunately, on DOS this fails, as config.log is still kept open
13420 # by configure, so config.status won't be able to write to it; its
13421 # output is simply discarded. So we exec the FD to /dev/null,
13422 # effectively closing config.log, so it can be properly (re)opened and
13423 # appended to by config.status. When coming back to configure, we
13424 # need to make the FD available again.
13425 if test "$no_create" != yes; then
13426 ac_cs_success=:
13427 ac_config_status_args=
13428 test "$silent" = yes &&
13429 ac_config_status_args="$ac_config_status_args --quiet"
13430 exec 5>/dev/null
13431 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13432 exec 5>>config.log
13433 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13434 # would make configure fail if this is the last instruction.
13435 $ac_cs_success || as_fn_exit $?
13437 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13439 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}