Fix PR47021: ADDR_EXPRs don't contain SCoP parameters.
[official-gcc/graphite-test-results.git] / libssp / configure
blob21614f95005f9929c40552f36e29a143ba9fa357
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 AMDEPBACKSLASH
640 AMDEP_FALSE
641 AMDEP_TRUE
642 am__quote
643 am__include
644 DEPDIR
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
652 multi_basedir
653 MAINT
654 MAINTAINER_MODE_FALSE
655 MAINTAINER_MODE_TRUE
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_noncanonical
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_version_specific_runtime_libs
734 enable_maintainer_mode
735 enable_multilib
736 enable_dependency_tracking
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 enable_libtool_lock
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
748 CPPFLAGS'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
799 ac_prev=
800 ac_dashdash=
801 for ac_option
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
819 ac_dashdash=yes ;;
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
838 --config-cache | -C)
839 cache_file=config.cache ;;
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1133 -*) as_fn_error "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information."
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 esac
1156 done
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error "missing argument to $ac_option"
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213 test "$silent" = yes && exec 6>/dev/null
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error "pwd does not report name of working directory"
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1242 /^X\(\/\/\)$/{
1243 s//\1/
1246 /^X\(\/\).*/{
1247 s//\1/
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1255 else
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1284 # Report the --help message.
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1297 Defaults for the options are specified in brackets.
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1321 For better control, use the options below.
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/libssp]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1345 cat <<\_ACEOF
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 --target=TARGET configure for building compilers for TARGET [HOST]
1356 _ACEOF
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of libssp 1.0:";;
1362 esac
1363 cat <<\_ACEOF
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1370 --enable-maintainer-mode enable make rules and dependencies not useful
1371 (and sometimes confusing) to the casual installer
1372 --enable-multilib build many library versions (default)
1373 --disable-dependency-tracking speeds up one-time build
1374 --enable-dependency-tracking do not reject slow dependency extractors
1375 --enable-shared[=PKGS] build shared libraries [default=yes]
1376 --enable-static[=PKGS] build static libraries [default=yes]
1377 --enable-fast-install[=PKGS]
1378 optimize for fast installation [default=yes]
1379 --disable-libtool-lock avoid locking (might break parallel builds)
1381 Optional Packages:
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-pic try to use only PIC/non-PIC objects [default=use
1385 both]
1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to the package provider.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 libssp configure 1.0
1465 generated by GNU Autoconf 2.64
1467 Copyright (C) 2009 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 return $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_cpp ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_cpp conftest.$ac_ext"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } >/dev/null && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=1
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 return $ac_retval
1551 } # ac_fn_c_try_cpp
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_link ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 $as_test_x conftest$ac_exeext
1581 }; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 return $ac_retval
1597 } # ac_fn_c_try_link
1599 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1600 # -------------------------------------------------------
1601 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1602 # the include files in INCLUDES and setting the cache variable VAR
1603 # accordingly.
1604 ac_fn_c_check_header_mongrel ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1611 $as_echo_n "(cached) " >&6
1613 eval ac_res=\$$3
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1616 else
1617 # Is the header compilable?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1619 $as_echo_n "checking $2 usability... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 ac_header_compiler=yes
1627 else
1628 ac_header_compiler=no
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1632 $as_echo "$ac_header_compiler" >&6; }
1634 # Is the header present?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1636 $as_echo_n "checking $2 presence... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_cpp "$LINENO"; then :
1642 ac_header_preproc=yes
1643 else
1644 ac_header_preproc=no
1646 rm -f conftest.err conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1648 $as_echo "$ac_header_preproc" >&6; }
1650 # So? What about this header?
1651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 yes:no: )
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1654 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 no:yes:* )
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1660 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1662 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1664 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1666 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1668 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 esac
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 eval "$3=\$ac_header_compiler"
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 } # ac_fn_c_check_header_mongrel
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_c_try_run ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=$ac_status
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 return $ac_retval
1726 } # ac_fn_c_try_run
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_c_check_header_compile
1759 # ac_fn_c_check_func LINENO FUNC VAR
1760 # ----------------------------------
1761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1762 ac_fn_c_check_func ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1769 else
1770 if test x$gcc_no_link = xyes; then
1771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1777 #define $2 innocuous_$2
1779 /* System header to define __stub macros and hopefully few prototypes,
1780 which can conflict with char $2 (); below.
1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782 <limits.h> exists even on freestanding compilers. */
1784 #ifdef __STDC__
1785 # include <limits.h>
1786 #else
1787 # include <assert.h>
1788 #endif
1790 #undef $2
1792 /* Override any GCC internal prototype to avoid an error.
1793 Use char because int might match the return type of a GCC
1794 builtin and then its argument prototype would still apply. */
1795 #ifdef __cplusplus
1796 extern "C"
1797 #endif
1798 char $2 ();
1799 /* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802 #if defined __stub_$2 || defined __stub___$2
1803 choke me
1804 #endif
1807 main ()
1809 return $2 ();
1811 return 0;
1813 _ACEOF
1814 if ac_fn_c_try_link "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1819 rm -f core conftest.err conftest.$ac_objext \
1820 conftest$ac_exeext conftest.$ac_ext
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 } # ac_fn_c_check_func
1828 cat >config.log <<_ACEOF
1829 This file contains any messages produced by compilers while
1830 running configure, to aid debugging if configure makes a mistake.
1832 It was created by libssp $as_me 1.0, which was
1833 generated by GNU Autoconf 2.64. Invocation command line was
1835 $ $0 $@
1837 _ACEOF
1838 exec 5>>config.log
1840 cat <<_ASUNAME
1841 ## --------- ##
1842 ## Platform. ##
1843 ## --------- ##
1845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1862 _ASUNAME
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 $as_echo "PATH: $as_dir"
1870 done
1871 IFS=$as_save_IFS
1873 } >&5
1875 cat >&5 <<_ACEOF
1878 ## ----------- ##
1879 ## Core tests. ##
1880 ## ----------- ##
1882 _ACEOF
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1890 ac_configure_args=
1891 ac_configure_args0=
1892 ac_configure_args1=
1893 ac_must_keep_next=false
1894 for ac_pass in 1 2
1896 for ac_arg
1898 case $ac_arg in
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1902 continue ;;
1903 *\'*)
1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 esac
1906 case $ac_pass in
1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1909 as_fn_append ac_configure_args1 " '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1912 else
1913 case $ac_arg in
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 esac
1922 -* ) ac_must_keep_next=true ;;
1923 esac
1925 as_fn_append ac_configure_args " '$ac_arg'"
1927 esac
1928 done
1929 done
1930 { ac_configure_args0=; unset ac_configure_args0;}
1931 { ac_configure_args1=; unset ac_configure_args1;}
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Save into config.log some information that might help in debugging.
1941 echo
1943 cat <<\_ASBOX
1944 ## ---------------- ##
1945 ## Cache variables. ##
1946 ## ---------------- ##
1947 _ASBOX
1948 echo
1949 # The following way of writing the cache mishandles newlines in values,
1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in #(
1954 *${as_nl}*)
1955 case $ac_var in #(
1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958 esac
1959 case $ac_var in #(
1960 _ | IFS | as_nl) ;; #(
1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962 *) { eval $ac_var=; unset $ac_var;} ;;
1963 esac ;;
1964 esac
1965 done
1966 (set) 2>&1 |
1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968 *${as_nl}ac_space=\ *)
1969 sed -n \
1970 "s/'\''/'\''\\\\'\'''\''/g;
1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972 ;; #(
1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 esac |
1977 sort
1979 echo
1981 cat <<\_ASBOX
1982 ## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##
1985 _ASBOX
1986 echo
1987 for ac_var in $ac_subst_vars
1989 eval ac_val=\$$ac_var
1990 case $ac_val in
1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 esac
1993 $as_echo "$ac_var='\''$ac_val'\''"
1994 done | sort
1995 echo
1997 if test -n "$ac_subst_files"; then
1998 cat <<\_ASBOX
1999 ## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##
2002 _ASBOX
2003 echo
2004 for ac_var in $ac_subst_files
2006 eval ac_val=\$$ac_var
2007 case $ac_val in
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 esac
2010 $as_echo "$ac_var='\''$ac_val'\''"
2011 done | sort
2012 echo
2015 if test -s confdefs.h; then
2016 cat <<\_ASBOX
2017 ## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##
2020 _ASBOX
2021 echo
2022 cat confdefs.h
2023 echo
2025 test "$ac_signal" != 0 &&
2026 $as_echo "$as_me: caught signal $ac_signal"
2027 $as_echo "$as_me: exit $exit_status"
2028 } >&5
2029 rm -f core *.core core.conftest.* &&
2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031 exit $exit_status
2033 for ac_signal in 1 2 13 15; do
2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035 done
2036 ac_signal=0
2038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2039 rm -f -r conftest* confdefs.h
2041 $as_echo "/* confdefs.h */" > confdefs.h
2043 # Predefined preprocessor variables.
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_NAME "$PACKAGE_NAME"
2047 _ACEOF
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051 _ACEOF
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2055 _ACEOF
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_STRING "$PACKAGE_STRING"
2059 _ACEOF
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063 _ACEOF
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_URL "$PACKAGE_URL"
2067 _ACEOF
2070 # Let the site file select an alternate cache file if it wants to.
2071 # Prefer an explicitly selected file to automatically selected ones.
2072 ac_site_file1=NONE
2073 ac_site_file2=NONE
2074 if test -n "$CONFIG_SITE"; then
2075 ac_site_file1=$CONFIG_SITE
2076 elif test "x$prefix" != xNONE; then
2077 ac_site_file1=$prefix/share/config.site
2078 ac_site_file2=$prefix/etc/config.site
2079 else
2080 ac_site_file1=$ac_default_prefix/share/config.site
2081 ac_site_file2=$ac_default_prefix/etc/config.site
2083 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085 test "x$ac_site_file" = xNONE && continue
2086 if test -r "$ac_site_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2090 . "$ac_site_file"
2092 done
2094 if test -r "$cache_file"; then
2095 # Some versions of bash will fail to source /dev/null (special
2096 # files actually), so we avoid doing that.
2097 if test -f "$cache_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2099 $as_echo "$as_me: loading cache $cache_file" >&6;}
2100 case $cache_file in
2101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102 *) . "./$cache_file";;
2103 esac
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2107 $as_echo "$as_me: creating cache $cache_file" >&6;}
2108 >$cache_file
2111 # Check that the precious variables saved in the cache have kept the same
2112 # value.
2113 ac_cache_corrupted=false
2114 for ac_var in $ac_precious_vars; do
2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2116 eval ac_new_set=\$ac_env_${ac_var}_set
2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2118 eval ac_new_val=\$ac_env_${ac_var}_value
2119 case $ac_old_set,$ac_new_set in
2120 set,)
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2124 ,set)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,);;
2130 if test "x$ac_old_val" != "x$ac_new_val"; then
2131 # differences in whitespace do not lead to failure.
2132 ac_old_val_w=`echo x $ac_old_val`
2133 ac_new_val_w=`echo x $ac_new_val`
2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2136 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137 ac_cache_corrupted=:
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2140 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2141 eval $ac_var=\$ac_old_val
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2144 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2146 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2147 fi;;
2148 esac
2149 # Pass precious variables to config.status.
2150 if test "$ac_new_set" = set; then
2151 case $ac_new_val in
2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 *) ac_arg=$ac_var=$ac_new_val ;;
2154 esac
2155 case " $ac_configure_args " in
2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158 esac
2160 done
2161 if $ac_cache_corrupted; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2165 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168 ## -------------------- ##
2169 ## Main body of script. ##
2170 ## -------------------- ##
2172 ac_ext=c
2173 ac_cpp='$CPP $CPPFLAGS'
2174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2183 ac_aux_dir=
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 break 2
2191 done
2192 done
2193 if test -z "$ac_aux_dir"; then
2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2197 # These three variables are undocumented and unsupported,
2198 # and are intended to be withdrawn in a future Autoconf release.
2199 # They can cause serious problems if a builder's source tree is in a directory
2200 # whose full name contains unusual characters.
2201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206 # Make sure we can run config.sub.
2207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211 $as_echo_n "checking build system type... " >&6; }
2212 if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 ac_build_alias=$build_alias
2216 test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218 test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225 $as_echo "$ac_cv_build" >&6; }
2226 case $ac_cv_build in
2227 *-*-*) ;;
2228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229 esac
2230 build=$ac_cv_build
2231 ac_save_IFS=$IFS; IFS='-'
2232 set x $ac_cv_build
2233 shift
2234 build_cpu=$1
2235 build_vendor=$2
2236 shift; shift
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2239 build_os=$*
2240 IFS=$ac_save_IFS
2241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2245 $as_echo_n "checking host system type... " >&6; }
2246 if test "${ac_cv_host+set}" = set; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 if test "x$host_alias" = x; then
2250 ac_cv_host=$ac_cv_build
2251 else
2252 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2253 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2258 $as_echo "$ac_cv_host" >&6; }
2259 case $ac_cv_host in
2260 *-*-*) ;;
2261 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2262 esac
2263 host=$ac_cv_host
2264 ac_save_IFS=$IFS; IFS='-'
2265 set x $ac_cv_host
2266 shift
2267 host_cpu=$1
2268 host_vendor=$2
2269 shift; shift
2270 # Remember, the first character of IFS is used to create $*,
2271 # except with old shells:
2272 host_os=$*
2273 IFS=$ac_save_IFS
2274 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2278 $as_echo_n "checking target system type... " >&6; }
2279 if test "${ac_cv_target+set}" = set; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 if test "x$target_alias" = x; then
2283 ac_cv_target=$ac_cv_host
2284 else
2285 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2286 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2291 $as_echo "$ac_cv_target" >&6; }
2292 case $ac_cv_target in
2293 *-*-*) ;;
2294 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2295 esac
2296 target=$ac_cv_target
2297 ac_save_IFS=$IFS; IFS='-'
2298 set x $ac_cv_target
2299 shift
2300 target_cpu=$1
2301 target_vendor=$2
2302 shift; shift
2303 # Remember, the first character of IFS is used to create $*,
2304 # except with old shells:
2305 target_os=$*
2306 IFS=$ac_save_IFS
2307 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2310 # The aliases save the names the user supplied, while $host etc.
2311 # will get canonicalized.
2312 test -n "$target_alias" &&
2313 test "$program_prefix$program_suffix$program_transform_name" = \
2314 NONENONEs,x,x, &&
2315 program_prefix=${target_alias}-
2317 case ${build_alias} in
2318 "") build_noncanonical=${build} ;;
2319 *) build_noncanonical=${build_alias} ;;
2320 esac
2322 case ${host_alias} in
2323 "") host_noncanonical=${build_noncanonical} ;;
2324 *) host_noncanonical=${host_alias} ;;
2325 esac
2327 case ${target_alias} in
2328 "") target_noncanonical=${host_noncanonical} ;;
2329 *) target_noncanonical=${target_alias} ;;
2330 esac
2335 am__api_version='1.11'
2337 # Find a good install program. We prefer a C program (faster),
2338 # so one script is as good as another. But avoid the broken or
2339 # incompatible versions:
2340 # SysV /etc/install, /usr/sbin/install
2341 # SunOS /usr/etc/install
2342 # IRIX /sbin/install
2343 # AIX /bin/install
2344 # AmigaOS /C/install, which installs bootblocks on floppy discs
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # OS/2's system install, which has a completely different semantic
2349 # ./install, which can be erroneously created by make from ./install.sh.
2350 # Reject install programs that cannot install multiple files.
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2353 if test -z "$INSTALL"; then
2354 if test "${ac_cv_path_install+set}" = set; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 # Account for people who put trailing slashes in PATH elements.
2363 case $as_dir/ in #((
2364 ./ | .// | /[cC]/* | \
2365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2367 /usr/ucb/* ) ;;
2369 # OSF1 and SCO ODT 3.0 have their own names for install.
2370 # Don't use installbsd from OSF since it installs stuff as root
2371 # by default.
2372 for ac_prog in ginstall scoinst install; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2375 if test $ac_prog = install &&
2376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # AIX install. It has an incompatible calling convention.
2379 elif test $ac_prog = install &&
2380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # program-specific install script used by HP pwplus--don't use.
2383 else
2384 rm -rf conftest.one conftest.two conftest.dir
2385 echo one > conftest.one
2386 echo two > conftest.two
2387 mkdir conftest.dir
2388 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389 test -s conftest.one && test -s conftest.two &&
2390 test -s conftest.dir/conftest.one &&
2391 test -s conftest.dir/conftest.two
2392 then
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 break 3
2398 done
2399 done
2401 esac
2403 done
2404 IFS=$as_save_IFS
2406 rm -rf conftest.one conftest.two conftest.dir
2409 if test "${ac_cv_path_install+set}" = set; then
2410 INSTALL=$ac_cv_path_install
2411 else
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for INSTALL within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 INSTALL=$ac_install_sh
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420 $as_echo "$INSTALL" >&6; }
2422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423 # It thinks the first close brace ends the variable substitution.
2424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431 $as_echo_n "checking whether build environment is sane... " >&6; }
2432 # Just in case
2433 sleep 1
2434 echo timestamp > conftest.file
2435 # Reject unsafe characters in $srcdir or the absolute working directory
2436 # name. Accept space and tab only in the latter.
2437 am_lf='
2439 case `pwd` in
2440 *[\\\"\#\$\&\'\`$am_lf]*)
2441 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2442 esac
2443 case $srcdir in
2444 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2445 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2446 esac
2448 # Do `set' in a subshell so we don't clobber the current shell's
2449 # arguments. Must try -L first in case configure is actually a
2450 # symlink; some systems play weird games with the mod time of symlinks
2451 # (eg FreeBSD returns the mod time of the symlink's containing
2452 # directory).
2453 if (
2454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455 if test "$*" = "X"; then
2456 # -L didn't work.
2457 set X `ls -t "$srcdir/configure" conftest.file`
2459 rm -f conftest.file
2460 if test "$*" != "X $srcdir/configure conftest.file" \
2461 && test "$*" != "X conftest.file $srcdir/configure"; then
2463 # If neither matched, then we have a broken ls. This can happen
2464 # if, for instance, CONFIG_SHELL is bash and it inherits a
2465 # broken ls alias from the environment. This has actually
2466 # happened. Such a system could not be considered "sane".
2467 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2468 alias in your environment" "$LINENO" 5
2471 test "$2" = conftest.file
2473 then
2474 # Ok.
2476 else
2477 as_fn_error "newly created file is older than distributed files!
2478 Check your system clock" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 test "$program_prefix" != NONE &&
2483 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2484 # Use a double $ so make ignores it.
2485 test "$program_suffix" != NONE &&
2486 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2487 # Double any \ or $.
2488 # By default was `s,x,x', remove it if useless.
2489 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2490 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2492 # expand $ac_aux_dir to an absolute path
2493 am_aux_dir=`cd $ac_aux_dir && pwd`
2495 if test x"${MISSING+set}" != xset; then
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2500 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2501 esac
2503 # Use eval to expand $SHELL
2504 if eval "$MISSING --run true"; then
2505 am_missing_run="$MISSING --run "
2506 else
2507 am_missing_run=
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2509 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2512 if test x"${install_sh}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2517 install_sh="\${SHELL} $am_aux_dir/install-sh"
2518 esac
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2548 done
2549 done
2550 IFS=$as_save_IFS
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557 $as_echo "$STRIP" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2565 if test -z "$ac_cv_prog_STRIP"; then
2566 ac_ct_STRIP=$STRIP
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2590 IFS=$as_save_IFS
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597 $as_echo "$ac_ct_STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2603 if test "x$ac_ct_STRIP" = x; then
2604 STRIP=":"
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612 STRIP=$ac_ct_STRIP
2614 else
2615 STRIP="$ac_cv_prog_STRIP"
2619 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2623 if test -z "$MKDIR_P"; then
2624 if test "${ac_cv_path_mkdir+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_prog in mkdir gmkdir; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2636 'mkdir (GNU coreutils) '* | \
2637 'mkdir (coreutils) '* | \
2638 'mkdir (fileutils) '4.1*)
2639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 break 3;;
2641 esac
2642 done
2643 done
2644 done
2645 IFS=$as_save_IFS
2649 if test "${ac_cv_path_mkdir+set}" = set; then
2650 MKDIR_P="$ac_cv_path_mkdir -p"
2651 else
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for MKDIR_P within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 test -d ./--version && rmdir ./--version
2657 MKDIR_P="$ac_install_sh -d"
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2661 $as_echo "$MKDIR_P" >&6; }
2663 mkdir_p="$MKDIR_P"
2664 case $mkdir_p in
2665 [\\/$]* | ?:[\\/]*) ;;
2666 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2667 esac
2669 for ac_prog in gawk mawk nawk awk
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if test "${ac_cv_prog_AWK+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2694 IFS=$as_save_IFS
2698 AWK=$ac_cv_prog_AWK
2699 if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701 $as_echo "$AWK" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2708 test -n "$AWK" && break
2709 done
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713 set x ${MAKE-make}
2714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 cat >conftest.make <<\_ACEOF
2719 SHELL = /bin/sh
2720 all:
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725 *@@@%%%=?*=@@@%%%*)
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2729 esac
2730 rm -f conftest.make
2732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 $as_echo "yes" >&6; }
2735 SET_MAKE=
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2749 rmdir .tst 2>/dev/null
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753 # is not polluted with repeated "-I."
2754 am__isrc=' -I$(srcdir)'
2755 # test to see if srcdir already configured
2756 if test -f $srcdir/config.status; then
2757 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 # test whether we have cygpath
2762 if test -z "$CYGPATH_W"; then
2763 if (cygpath --version) >/dev/null 2>/dev/null; then
2764 CYGPATH_W='cygpath -w'
2765 else
2766 CYGPATH_W=echo
2771 # Define the identity of the package.
2772 PACKAGE='libssp'
2773 VERSION='1.0'
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE "$PACKAGE"
2778 _ACEOF
2781 cat >>confdefs.h <<_ACEOF
2782 #define VERSION "$VERSION"
2783 _ACEOF
2785 # Some tools Automake needs.
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2801 # We need awk for the "check" target. The system "awk" is bad on
2802 # some platforms.
2803 # Always define AMTAR for backward compatibility.
2805 AMTAR=${AMTAR-"${am_missing_run}tar"}
2807 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2815 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2816 # Check whether --enable-version-specific-runtime-libs was given.
2817 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2818 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2819 yes) version_specific_libs=yes ;;
2820 no) version_specific_libs=no ;;
2821 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2822 esac
2823 else
2824 version_specific_libs=no
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2828 $as_echo "$version_specific_libs" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2832 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2833 # Check whether --enable-maintainer-mode was given.
2834 if test "${enable_maintainer_mode+set}" = set; then :
2835 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2836 else
2837 USE_MAINTAINER_MODE=no
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2841 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2842 if test $USE_MAINTAINER_MODE = yes; then
2843 MAINTAINER_MODE_TRUE=
2844 MAINTAINER_MODE_FALSE='#'
2845 else
2846 MAINTAINER_MODE_TRUE='#'
2847 MAINTAINER_MODE_FALSE=
2850 MAINT=$MAINTAINER_MODE_TRUE
2856 # Default to --enable-multilib
2857 # Check whether --enable-multilib was given.
2858 if test "${enable_multilib+set}" = set; then :
2859 enableval=$enable_multilib; case "$enableval" in
2860 yes) multilib=yes ;;
2861 no) multilib=no ;;
2862 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2863 esac
2864 else
2865 multilib=yes
2869 # We may get other options which we leave undocumented:
2870 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2871 # See config-ml.in if you want the gory details.
2873 if test "$srcdir" = "."; then
2874 if test "$with_target_subdir" != "."; then
2875 multi_basedir="$srcdir/$with_multisrctop../.."
2876 else
2877 multi_basedir="$srcdir/$with_multisrctop.."
2879 else
2880 multi_basedir="$srcdir/.."
2884 # Even if the default multilib is not a cross compilation,
2885 # it may be that some of the other multilibs are.
2886 if test $cross_compiling = no && test $multilib = yes \
2887 && test "x${with_multisubdir}" != x ; then
2888 cross_compiling=maybe
2891 ac_config_commands="$ac_config_commands default-1"
2894 target_alias=${target_alias-$host_alias}
2897 ac_config_headers="$ac_config_headers config.h"
2900 ac_ext=c
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2907 # We must force CC to /not/ be precious variables; otherwise
2908 # the wrong, non-multilib-adjusted value will be used in multilibs.
2909 # As a side effect, we have to subst CFLAGS ourselves.
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2989 $as_echo "$ac_ct_CC" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3006 else
3007 CC="$ac_cv_prog_CC"
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}cc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="${ac_tool_prefix}cc"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 $as_echo "$CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3051 if test -z "$CC"; then
3052 # Extract the first word of "cc", so it can be a program name with args.
3053 set dummy cc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 ac_prog_rejected=no
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3071 ac_prog_rejected=yes
3072 continue
3074 ac_cv_prog_CC="cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3080 IFS=$as_save_IFS
3082 if test $ac_prog_rejected = yes; then
3083 # We found a bogon in the path, so make sure we never use it.
3084 set dummy $ac_cv_prog_CC
3085 shift
3086 if test $# != 0; then
3087 # We chose a different compiler from the bogus one.
3088 # However, it has the same basename, so the bogon will be chosen
3089 # first if we set CC to just the basename; use the full file name.
3090 shift
3091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3107 if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in cl.exe
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_CC+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3132 done
3133 done
3134 IFS=$as_save_IFS
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3148 test -n "$CC" && break
3149 done
3151 if test -z "$CC"; then
3152 ac_ct_CC=$CC
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$ac_ct_CC"; then
3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_ac_ct_CC="$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3178 IFS=$as_save_IFS
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3185 $as_echo "$ac_ct_CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$ac_ct_CC" && break
3193 done
3195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned=yes ;;
3203 esac
3204 CC=$ac_ct_CC
3211 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error "no acceptable C compiler found in \$PATH
3214 See \`config.log' for more details." "$LINENO" 5; }
3216 # Provide some information about the compiler.
3217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3218 set X $ac_compile
3219 ac_compiler=$2
3220 for ac_option in --version -v -V -qversion; do
3221 { { ac_try="$ac_compiler $ac_option >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3229 ac_status=$?
3230 if test -s conftest.err; then
3231 sed '10a\
3232 ... rest of stderr output deleted ...
3233 10q' conftest.err >conftest.er1
3234 cat conftest.er1 >&5
3235 rm -f conftest.er1 conftest.err
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }
3239 done
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 # FIXME: Cleanup?
3253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3254 (eval $ac_link) 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 gcc_no_link=no
3259 else
3260 gcc_no_link=yes
3262 if test x$gcc_no_link = xyes; then
3263 # Setting cross_compile will disable run tests; it will
3264 # also disable AC_CHECK_FILE but that's generally
3265 # correct if we can't link.
3266 cross_compiling=yes
3267 EXEEXT=
3268 else
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 ac_clean_files_save=$ac_clean_files
3281 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3282 # Try to create an executable without -o first, disregard a.out.
3283 # It will help us diagnose broken compilers, and finding out an intuition
3284 # of exeext.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289 # The possible output files:
3290 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3292 ac_rmfiles=
3293 for ac_file in $ac_files
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299 done
3300 rm -f $ac_rmfiles
3302 if { { ac_try="$ac_link_default"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link_default") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3316 # so that the user can short-circuit this test for compilers unknown to
3317 # Autoconf.
3318 for ac_file in $ac_files ''
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3324 [ab].out )
3325 # We found the default executable, but exeext='' is most
3326 # certainly right.
3327 break;;
3328 *.* )
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330 then :; else
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3337 # actually working.
3338 break;;
3340 break;;
3341 esac
3342 done
3343 test "$ac_cv_exeext" = no && ac_cv_exeext=
3345 else
3346 ac_file=''
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 if test -z "$ac_file"; then :
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { as_fn_set_status 77
3357 as_fn_error "C compiler cannot create executables
3358 See \`config.log' for more details." "$LINENO" 5; }; }
3360 ac_exeext=$ac_cv_exeext
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 # If not cross compiling, check that we can run a simple program.
3367 if test "$cross_compiling" != yes; then
3368 if { ac_try='./$ac_file'
3369 { { case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details." "$LINENO" 5; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3395 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3396 ac_clean_files=$ac_clean_files_save
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402 $as_echo "$cross_compiling" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3405 $as_echo_n "checking for suffix of executables... " >&6; }
3406 if { { ac_try="$ac_link"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_link") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 # `rm'.
3421 for ac_file in conftest.exe conftest conftest.*; do
3422 test -f "$ac_file" || continue
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 break;;
3427 * ) break;;
3428 esac
3429 done
3430 else
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." "$LINENO" 5; }
3436 rm -f conftest$ac_cv_exeext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
3440 rm -f conftest.$ac_ext
3441 EXEEXT=$ac_cv_exeext
3442 ac_exeext=$EXEEXT
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445 $as_echo_n "checking for suffix of object files... " >&6; }
3446 if test "${ac_cv_objext+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3453 main ()
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compile") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 for ac_file in conftest.o conftest.obj conftest.*; do
3473 test -f "$ac_file" || continue;
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3477 break;;
3478 esac
3479 done
3480 else
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error "cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details." "$LINENO" 5; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492 $as_echo "$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3504 main ()
3506 #ifndef __GNUC__
3507 choke me
3508 #endif
3511 return 0;
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_compiler_gnu=yes
3516 else
3517 ac_compiler_gnu=no
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525 if test $ac_compiler_gnu = yes; then
3526 GCC=yes
3527 else
3528 GCC=
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3534 if test "${ac_cv_prog_cc_g+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3539 ac_cv_prog_cc_g=no
3540 CFLAGS="-g"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3545 main ()
3549 return 0;
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_prog_cc_g=yes
3554 else
3555 CFLAGS=""
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3569 else
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3571 CFLAGS="-g"
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 main ()
3580 return 0;
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_g=yes
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594 $as_echo "$ac_cv_prog_cc_g" >&6; }
3595 if test "$ac_test_CFLAGS" = set; then
3596 CFLAGS=$ac_save_CFLAGS
3597 elif test $ac_cv_prog_cc_g = yes; then
3598 if test "$GCC" = yes; then
3599 CFLAGS="-g -O2"
3600 else
3601 CFLAGS="-g"
3603 else
3604 if test "$GCC" = yes; then
3605 CFLAGS="-O2"
3606 else
3607 CFLAGS=
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 ac_cv_prog_cc_c89=no
3616 ac_save_CC=$CC
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3630 return p[i];
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3663 main ()
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 return 0;
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_c89=$ac_arg
3677 rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 done
3680 rm -f conftest.$ac_ext
3681 CC=$ac_save_CC
3684 # AC_CACHE_VAL
3685 case "x$ac_cv_prog_cc_c89" in
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688 $as_echo "none needed" >&6; } ;;
3689 xno)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3691 $as_echo "unsupported" >&6; } ;;
3693 CC="$CC $ac_cv_prog_cc_c89"
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3695 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3696 esac
3697 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 DEPDIR="${am__leading_dot}deps"
3708 ac_config_commands="$ac_config_commands depfiles"
3711 am_make=${MAKE-make}
3712 cat > confinc << 'END'
3713 am__doit:
3714 @echo this is the am__doit target
3715 .PHONY: am__doit
3717 # If we don't find an include directive, just comment out the code.
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3719 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3720 am__include="#"
3721 am__quote=
3722 _am_result=none
3723 # First try GNU make style include.
3724 echo "include confinc" > confmf
3725 # Ignore all kinds of additional output from `make'.
3726 case `$am_make -s -f confmf 2> /dev/null` in #(
3727 *the\ am__doit\ target*)
3728 am__include=include
3729 am__quote=
3730 _am_result=GNU
3732 esac
3733 # Now try BSD make style include.
3734 if test "$am__include" = "#"; then
3735 echo '.include "confinc"' > confmf
3736 case `$am_make -s -f confmf 2> /dev/null` in #(
3737 *the\ am__doit\ target*)
3738 am__include=.include
3739 am__quote="\""
3740 _am_result=BSD
3742 esac
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3747 $as_echo "$_am_result" >&6; }
3748 rm -f confinc confmf
3750 # Check whether --enable-dependency-tracking was given.
3751 if test "${enable_dependency_tracking+set}" = set; then :
3752 enableval=$enable_dependency_tracking;
3755 if test "x$enable_dependency_tracking" != xno; then
3756 am_depcomp="$ac_aux_dir/depcomp"
3757 AMDEPBACKSLASH='\'
3759 if test "x$enable_dependency_tracking" != xno; then
3760 AMDEP_TRUE=
3761 AMDEP_FALSE='#'
3762 else
3763 AMDEP_TRUE='#'
3764 AMDEP_FALSE=
3769 depcc="$CC" am_compiler_list=
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3872 done
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3900 if test "x$GCC" != "xyes"; then
3901 as_fn_error "libssp must be built with GCC" "$LINENO" 5
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3909 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3910 # On Suns, sometimes $CPP names a directory.
3911 if test -n "$CPP" && test -d "$CPP"; then
3912 CPP=
3914 if test -z "$CPP"; then
3915 if test "${ac_cv_prog_CPP+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 # Double quotes because CPP needs to be expanded
3919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3921 ac_preproc_ok=false
3922 for ac_c_preproc_warn_flag in '' yes
3924 # Use a header file that comes with gcc, so configuring glibc
3925 # with a fresh cross-compiler works.
3926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927 # <limits.h> exists even on freestanding compilers.
3928 # On the NeXT, cc -E runs the code through the compiler's parser,
3929 # not just through cpp. "Syntax error" is here to catch this case.
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #ifdef __STDC__
3933 # include <limits.h>
3934 #else
3935 # include <assert.h>
3936 #endif
3937 Syntax error
3938 _ACEOF
3939 if ac_fn_c_try_cpp "$LINENO"; then :
3941 else
3942 # Broken: fails on valid input.
3943 continue
3945 rm -f conftest.err conftest.$ac_ext
3947 # OK, works on sane cases. Now check whether nonexistent headers
3948 # can be detected and how.
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 #include <ac_nonexistent.h>
3952 _ACEOF
3953 if ac_fn_c_try_cpp "$LINENO"; then :
3954 # Broken: success on invalid input.
3955 continue
3956 else
3957 # Passes both tests.
3958 ac_preproc_ok=:
3959 break
3961 rm -f conftest.err conftest.$ac_ext
3963 done
3964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3965 rm -f conftest.err conftest.$ac_ext
3966 if $ac_preproc_ok; then :
3967 break
3970 done
3971 ac_cv_prog_CPP=$CPP
3974 CPP=$ac_cv_prog_CPP
3975 else
3976 ac_cv_prog_CPP=$CPP
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3979 $as_echo "$CPP" >&6; }
3980 ac_preproc_ok=false
3981 for ac_c_preproc_warn_flag in '' yes
3983 # Use a header file that comes with gcc, so configuring glibc
3984 # with a fresh cross-compiler works.
3985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3986 # <limits.h> exists even on freestanding compilers.
3987 # On the NeXT, cc -E runs the code through the compiler's parser,
3988 # not just through cpp. "Syntax error" is here to catch this case.
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996 Syntax error
3997 _ACEOF
3998 if ac_fn_c_try_cpp "$LINENO"; then :
4000 else
4001 # Broken: fails on valid input.
4002 continue
4004 rm -f conftest.err conftest.$ac_ext
4006 # OK, works on sane cases. Now check whether nonexistent headers
4007 # can be detected and how.
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if ac_fn_c_try_cpp "$LINENO"; then :
4013 # Broken: success on invalid input.
4014 continue
4015 else
4016 # Passes both tests.
4017 ac_preproc_ok=:
4018 break
4020 rm -f conftest.err conftest.$ac_ext
4022 done
4023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4024 rm -f conftest.err conftest.$ac_ext
4025 if $ac_preproc_ok; then :
4027 else
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4031 See \`config.log' for more details." "$LINENO" 5; }
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector works" >&5
4042 $as_echo_n "checking whether -fstack-protector works... " >&6; }
4043 save_CFLAGS="$CFLAGS"
4044 CFLAGS="$CFLAGS -fstack-protector -Werror"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4049 void __attribute__((noinline)) bar (char *x)
4051 __builtin_memset (x, 0, 64);
4054 main ()
4056 char buf[64]; bar (buf);
4058 return 0;
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 CFLAGS="$save_CFLAGS"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4072 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4076 void __attribute__((visibility ("hidden"))) bar (void) {}
4078 main ()
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ssp_hidden=yes
4087 else
4088 ssp_hidden=no
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4092 $as_echo "$ssp_hidden" >&6; }
4093 if test x$ssp_hidden = xyes; then
4095 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4100 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
4101 if test x$gcc_no_link = xyes; then
4102 # If we cannot link, we cannot build shared libraries, so do not use
4103 # symbol versioning.
4104 ssp_use_symver=no
4105 else
4106 save_LDFLAGS="$LDFLAGS"
4107 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4108 cat > conftest.map <<EOF
4109 FOO_1.0 {
4110 global: *foo*; bar; local: *;
4113 if test x$gcc_no_link = xyes; then
4114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118 int foo;
4120 main ()
4124 return 0;
4126 _ACEOF
4127 if ac_fn_c_try_link "$LINENO"; then :
4128 ssp_use_symver=gnu
4129 else
4130 ssp_use_symver=no
4132 rm -f core conftest.err conftest.$ac_objext \
4133 conftest$ac_exeext conftest.$ac_ext
4134 if test x$ssp_use_symver = xno; then
4135 case "$target_os" in
4136 solaris2*)
4137 LDFLAGS="$save_LDFLAGS"
4138 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
4139 # Sun ld cannot handle wildcards and treats all entries as undefined.
4140 cat > conftest.map <<EOF
4141 FOO_1.0 {
4142 global: foo; local: *;
4145 if test x$gcc_no_link = xyes; then
4146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 int foo;
4152 main ()
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_link "$LINENO"; then :
4160 ssp_use_symver=sun
4161 else
4162 ssp_use_symver=no
4164 rm -f core conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
4167 esac
4169 LDFLAGS="$save_LDFLAGS"
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4172 $as_echo "$ssp_use_symver" >&6; }
4173 if test "x$ssp_use_symver" != xno; then
4174 LIBSSP_USE_SYMVER_TRUE=
4175 LIBSSP_USE_SYMVER_FALSE='#'
4176 else
4177 LIBSSP_USE_SYMVER_TRUE='#'
4178 LIBSSP_USE_SYMVER_FALSE=
4181 if test "x$ssp_use_symver" = xgnu; then
4182 LIBSSP_USE_SYMVER_GNU_TRUE=
4183 LIBSSP_USE_SYMVER_GNU_FALSE='#'
4184 else
4185 LIBSSP_USE_SYMVER_GNU_TRUE='#'
4186 LIBSSP_USE_SYMVER_GNU_FALSE=
4189 if test "x$ssp_use_symver" = xsun; then
4190 LIBSSP_USE_SYMVER_SUN_TRUE=
4191 LIBSSP_USE_SYMVER_SUN_FALSE='#'
4192 else
4193 LIBSSP_USE_SYMVER_SUN_TRUE='#'
4194 LIBSSP_USE_SYMVER_SUN_FALSE=
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if test "${ac_cv_path_GREP+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -z "$GREP"; then
4205 ac_path_GREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in grep ggrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217 # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'GREP' >> "conftest.nl"
4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_GREP="$ac_path_GREP"
4236 ac_path_GREP_max=$ac_count
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4244 $ac_path_GREP_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_GREP"; then
4250 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4252 else
4253 ac_cv_path_GREP=$GREP
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259 GREP="$ac_cv_path_GREP"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if test "${ac_cv_path_EGREP+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268 then ac_cv_path_EGREP="$GREP -E"
4269 else
4270 if test -z "$EGREP"; then
4271 ac_path_EGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in egrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283 # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'EGREP' >> "conftest.nl"
4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_EGREP="$ac_path_EGREP"
4302 ac_path_EGREP_max=$ac_count
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4310 $ac_path_EGREP_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_EGREP"; then
4316 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4318 else
4319 ac_cv_path_EGREP=$EGREP
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326 EGREP="$ac_cv_path_EGREP"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if test "${ac_cv_header_stdc+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <stdlib.h>
4337 #include <stdarg.h>
4338 #include <string.h>
4339 #include <float.h>
4342 main ()
4346 return 0;
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ac_cv_header_stdc=yes
4351 else
4352 ac_cv_header_stdc=no
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 if test $ac_cv_header_stdc = yes; then
4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <string.h>
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "memchr" >/dev/null 2>&1; then :
4366 else
4367 ac_cv_header_stdc=no
4369 rm -f conftest*
4373 if test $ac_cv_header_stdc = yes; then
4374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #include <stdlib.h>
4379 _ACEOF
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "free" >/dev/null 2>&1; then :
4383 else
4384 ac_cv_header_stdc=no
4386 rm -f conftest*
4390 if test $ac_cv_header_stdc = yes; then
4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392 if test "$cross_compiling" = yes; then :
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <ctype.h>
4398 #include <stdlib.h>
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4402 #else
4403 # define ISLOWER(c) \
4404 (('a' <= (c) && (c) <= 'i') \
4405 || ('j' <= (c) && (c) <= 'r') \
4406 || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408 #endif
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4412 main ()
4414 int i;
4415 for (i = 0; i < 256; i++)
4416 if (XOR (islower (i), ISLOWER (i))
4417 || toupper (i) != TOUPPER (i))
4418 return 2;
4419 return 0;
4421 _ACEOF
4422 if ac_fn_c_try_run "$LINENO"; then :
4424 else
4425 ac_cv_header_stdc=no
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428 conftest.$ac_objext conftest.beam conftest.$ac_ext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443 inttypes.h stdint.h unistd.h
4444 do :
4445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4448 eval as_val=\$$as_ac_Header
4449 if test "x$as_val" = x""yes; then :
4450 cat >>confdefs.h <<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4452 _ACEOF
4456 done
4459 for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4460 do :
4461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4462 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4463 eval as_val=\$$as_ac_Header
4464 if test "x$as_val" = x""yes; then :
4465 cat >>confdefs.h <<_ACEOF
4466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4467 _ACEOF
4471 done
4474 if test x$gcc_no_link = xyes; then
4475 # Presume the ISO C functions are available; add target-specific
4476 # configuration here if required.
4477 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4479 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4481 else
4482 for ac_func in memmove mempcpy strncpy strncat
4483 do :
4484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4486 eval as_val=\$$as_ac_var
4487 if test "x$as_val" = x""yes; then :
4488 cat >>confdefs.h <<_ACEOF
4489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4490 _ACEOF
4493 done
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4498 $as_echo_n "checking whether vsnprintf is usable... " >&6; }
4499 if test "$cross_compiling" = yes; then :
4500 ssp_have_usable_vsnprintf=undef
4501 else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4505 #include <stdarg.h>
4506 #include <string.h>
4507 #include <stdio.h>
4508 int foo (char *buf, size_t n, const char *fmt, ...)
4510 va_list ap;
4511 int ret;
4512 va_start (ap, fmt);
4513 ret = vsnprintf (buf, n, fmt, ap);
4514 va_end (ap);
4515 return ret;
4518 main ()
4520 char buf[8]; memset (buf, 'A', sizeof (buf));
4521 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4522 return 1;
4523 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4525 return 0;
4527 _ACEOF
4528 if ac_fn_c_try_run "$LINENO"; then :
4529 ssp_have_usable_vsnprintf=define
4530 else
4531 ssp_have_usable_vsnprintf=undef
4533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4534 conftest.$ac_objext conftest.beam conftest.$ac_ext
4537 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4539 $as_echo "yes" >&6; }
4541 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4549 case `pwd` in
4550 *\ * | *\ *)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4553 esac
4557 macro_version='2.2.7a'
4558 macro_revision='1.3134'
4572 ltmain="$ac_aux_dir/ltmain.sh"
4574 # Backslashify metacharacters that are still active within
4575 # double-quoted strings.
4576 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4578 # Same as above, but do not quote variable references.
4579 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4581 # Sed substitution to delay expansion of an escaped shell variable in a
4582 # double_quote_subst'ed string.
4583 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4585 # Sed substitution to delay expansion of an escaped single quote.
4586 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4588 # Sed substitution to avoid accidental globbing in evaled expressions
4589 no_glob_subst='s/\*/\\\*/g'
4591 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4596 $as_echo_n "checking how to print strings... " >&6; }
4597 # Test print first, because it will be a builtin if present.
4598 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4600 ECHO='print -r --'
4601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4602 ECHO='printf %s\n'
4603 else
4604 # Use this function as a fallback that always works.
4605 func_fallback_echo ()
4607 eval 'cat <<_LTECHO_EOF
4609 _LTECHO_EOF'
4611 ECHO='func_fallback_echo'
4614 # func_echo_all arg...
4615 # Invoke $ECHO with all args, space-separated.
4616 func_echo_all ()
4618 $ECHO ""
4621 case "$ECHO" in
4622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4623 $as_echo "printf" >&6; } ;;
4624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4625 $as_echo "print -r" >&6; } ;;
4626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4627 $as_echo "cat" >&6; } ;;
4628 esac
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4645 if test "${ac_cv_path_SED+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4649 for ac_i in 1 2 3 4 5 6 7; do
4650 ac_script="$ac_script$as_nl$ac_script"
4651 done
4652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4653 { ac_script=; unset ac_script;}
4654 if test -z "$SED"; then
4655 ac_path_SED_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in sed gsed; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4665 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4666 # Check for GNU ac_path_SED and select it if it is found.
4667 # Check for GNU $ac_path_SED
4668 case `"$ac_path_SED" --version 2>&1` in
4669 *GNU*)
4670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo '' >> "conftest.nl"
4680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_SED_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_SED="$ac_path_SED"
4686 ac_path_SED_max=$ac_count
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 esac
4694 $ac_path_SED_found && break 3
4695 done
4696 done
4697 done
4698 IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_SED"; then
4700 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4702 else
4703 ac_cv_path_SED=$SED
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4708 $as_echo "$ac_cv_path_SED" >&6; }
4709 SED="$ac_cv_path_SED"
4710 rm -f conftest.sed
4712 test -z "$SED" && SED=sed
4713 Xsed="$SED -e 1s/^X//"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4726 $as_echo_n "checking for fgrep... " >&6; }
4727 if test "${ac_cv_path_FGREP+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4731 then ac_cv_path_FGREP="$GREP -F"
4732 else
4733 if test -z "$FGREP"; then
4734 ac_path_FGREP_found=false
4735 # Loop through the user's path and test for each of PROGNAME-LIST
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_prog in fgrep; do
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4744 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4745 # Check for GNU ac_path_FGREP and select it if it is found.
4746 # Check for GNU $ac_path_FGREP
4747 case `"$ac_path_FGREP" --version 2>&1` in
4748 *GNU*)
4749 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4751 ac_count=0
4752 $as_echo_n 0123456789 >"conftest.in"
4753 while :
4755 cat "conftest.in" "conftest.in" >"conftest.tmp"
4756 mv "conftest.tmp" "conftest.in"
4757 cp "conftest.in" "conftest.nl"
4758 $as_echo 'FGREP' >> "conftest.nl"
4759 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4761 as_fn_arith $ac_count + 1 && ac_count=$as_val
4762 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4763 # Best one so far, save it but keep looking for a better one
4764 ac_cv_path_FGREP="$ac_path_FGREP"
4765 ac_path_FGREP_max=$ac_count
4767 # 10*(2^10) chars as input seems more than enough
4768 test $ac_count -gt 10 && break
4769 done
4770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 esac
4773 $ac_path_FGREP_found && break 3
4774 done
4775 done
4776 done
4777 IFS=$as_save_IFS
4778 if test -z "$ac_cv_path_FGREP"; then
4779 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781 else
4782 ac_cv_path_FGREP=$FGREP
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4788 $as_echo "$ac_cv_path_FGREP" >&6; }
4789 FGREP="$ac_cv_path_FGREP"
4792 test -z "$GREP" && GREP=grep
4812 # Check whether --with-gnu-ld was given.
4813 if test "${with_gnu_ld+set}" = set; then :
4814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4815 else
4816 with_gnu_ld=no
4819 ac_prog=ld
4820 if test "$GCC" = yes; then
4821 # Check if gcc -print-prog-name=ld gives a path.
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4823 $as_echo_n "checking for ld used by $CC... " >&6; }
4824 case $host in
4825 *-*-mingw*)
4826 # gcc leaves a trailing carriage return which upsets mingw
4827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4830 esac
4831 case $ac_prog in
4832 # Accept absolute paths.
4833 [\\/]* | ?:[\\/]*)
4834 re_direlt='/[^/][^/]*/\.\./'
4835 # Canonicalize the pathname of ld
4836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4839 done
4840 test -z "$LD" && LD="$ac_prog"
4843 # If it fails, then pretend we aren't using GCC.
4844 ac_prog=ld
4847 # If it is relative, then search for the first ld in PATH.
4848 with_gnu_ld=unknown
4850 esac
4851 elif test "$with_gnu_ld" = yes; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4853 $as_echo_n "checking for GNU ld... " >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4856 $as_echo_n "checking for non-GNU ld... " >&6; }
4858 if test "${lt_cv_path_LD+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -z "$LD"; then
4862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863 for ac_dir in $PATH; do
4864 IFS="$lt_save_ifs"
4865 test -z "$ac_dir" && ac_dir=.
4866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4867 lt_cv_path_LD="$ac_dir/$ac_prog"
4868 # Check to see if the program is GNU ld. I'd rather use --version,
4869 # but apparently some variants of GNU ld only accept -v.
4870 # Break only if it was the GNU/non-GNU ld that we prefer.
4871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4872 *GNU* | *'with BFD'*)
4873 test "$with_gnu_ld" != no && break
4876 test "$with_gnu_ld" != yes && break
4878 esac
4880 done
4881 IFS="$lt_save_ifs"
4882 else
4883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4887 LD="$lt_cv_path_LD"
4888 if test -n "$LD"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4890 $as_echo "$LD" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4895 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4898 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4902 case `$LD -v 2>&1 </dev/null` in
4903 *GNU* | *'with BFD'*)
4904 lt_cv_prog_gnu_ld=yes
4907 lt_cv_prog_gnu_ld=no
4909 esac
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4912 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4913 with_gnu_ld=$lt_cv_prog_gnu_ld
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4924 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4925 if test "${lt_cv_path_NM+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$NM"; then
4929 # Let the user override the test.
4930 lt_cv_path_NM="$NM"
4931 else
4932 lt_nm_to_check="${ac_tool_prefix}nm"
4933 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4934 lt_nm_to_check="$lt_nm_to_check nm"
4936 for lt_tmp_nm in $lt_nm_to_check; do
4937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4939 IFS="$lt_save_ifs"
4940 test -z "$ac_dir" && ac_dir=.
4941 tmp_nm="$ac_dir/$lt_tmp_nm"
4942 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4943 # Check to see if the nm accepts a BSD-compat flag.
4944 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4945 # nm: unknown option "B" ignored
4946 # Tru64's nm complains that /dev/null is an invalid object file
4947 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4948 */dev/null* | *'Invalid file or object type'*)
4949 lt_cv_path_NM="$tmp_nm -B"
4950 break
4953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4954 */dev/null*)
4955 lt_cv_path_NM="$tmp_nm -p"
4956 break
4959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4960 continue # so that we can try to find one that supports BSD flags
4962 esac
4964 esac
4966 done
4967 IFS="$lt_save_ifs"
4968 done
4969 : ${lt_cv_path_NM=no}
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4973 $as_echo "$lt_cv_path_NM" >&6; }
4974 if test "$lt_cv_path_NM" != "no"; then
4975 NM="$lt_cv_path_NM"
4976 else
4977 # Didn't find any BSD compatible name lister, look for dumpbin.
4978 if test -n "$DUMPBIN"; then :
4979 # Let the user override the test.
4980 else
4981 if test -n "$ac_tool_prefix"; then
4982 for ac_prog in dumpbin "link -dump"
4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$DUMPBIN"; then
4992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 DUMPBIN=$ac_cv_prog_DUMPBIN
5012 if test -n "$DUMPBIN"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5014 $as_echo "$DUMPBIN" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$DUMPBIN" && break
5022 done
5024 if test -z "$DUMPBIN"; then
5025 ac_ct_DUMPBIN=$DUMPBIN
5026 for ac_prog in dumpbin "link -dump"
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_DUMPBIN"; then
5036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5049 done
5050 done
5051 IFS=$as_save_IFS
5055 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5056 if test -n "$ac_ct_DUMPBIN"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5058 $as_echo "$ac_ct_DUMPBIN" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5065 test -n "$ac_ct_DUMPBIN" && break
5066 done
5068 if test "x$ac_ct_DUMPBIN" = x; then
5069 DUMPBIN=":"
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072 yes:)
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned=yes ;;
5076 esac
5077 DUMPBIN=$ac_ct_DUMPBIN
5081 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5082 *COFF*)
5083 DUMPBIN="$DUMPBIN -symbols"
5086 DUMPBIN=:
5088 esac
5091 if test "$DUMPBIN" != ":"; then
5092 NM="$DUMPBIN"
5095 test -z "$NM" && NM=nm
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5103 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5104 if test "${lt_cv_nm_interface+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 lt_cv_nm_interface="BSD nm"
5108 echo "int some_variable = 0;" > conftest.$ac_ext
5109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5110 (eval "$ac_compile" 2>conftest.err)
5111 cat conftest.err >&5
5112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5114 cat conftest.err >&5
5115 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5116 cat conftest.out >&5
5117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5118 lt_cv_nm_interface="MS dumpbin"
5120 rm -f conftest*
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5123 $as_echo "$lt_cv_nm_interface" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5126 $as_echo_n "checking whether ln -s works... " >&6; }
5127 LN_S=$as_ln_s
5128 if test "$LN_S" = "ln -s"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5130 $as_echo "yes" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5133 $as_echo "no, using $LN_S" >&6; }
5136 # find the maximum length of command line arguments
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5138 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5139 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5143 teststring="ABCD"
5145 case $build_os in
5146 msdosdjgpp*)
5147 # On DJGPP, this test can blow up pretty badly due to problems in libc
5148 # (any single argument exceeding 2000 bytes causes a buffer overrun
5149 # during glob expansion). Even if it were fixed, the result of this
5150 # check would be larger than it should be.
5151 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5154 gnu*)
5155 # Under GNU Hurd, this test is not required because there is
5156 # no limit to the length of command line arguments.
5157 # Libtool will interpret -1 as no limit whatsoever
5158 lt_cv_sys_max_cmd_len=-1;
5161 cygwin* | mingw* | cegcc*)
5162 # On Win9x/ME, this test blows up -- it succeeds, but takes
5163 # about 5 minutes as the teststring grows exponentially.
5164 # Worse, since 9x/ME are not pre-emptively multitasking,
5165 # you end up with a "frozen" computer, even though with patience
5166 # the test eventually succeeds (with a max line length of 256k).
5167 # Instead, let's just punt: use the minimum linelength reported by
5168 # all of the supported platforms: 8192 (on NT/2K/XP).
5169 lt_cv_sys_max_cmd_len=8192;
5172 mint*)
5173 # On MiNT this can take a long time and run out of memory.
5174 lt_cv_sys_max_cmd_len=8192;
5177 amigaos*)
5178 # On AmigaOS with pdksh, this test takes hours, literally.
5179 # So we just punt and use a minimum line length of 8192.
5180 lt_cv_sys_max_cmd_len=8192;
5183 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5184 # This has been around since 386BSD, at least. Likely further.
5185 if test -x /sbin/sysctl; then
5186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5187 elif test -x /usr/sbin/sysctl; then
5188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5189 else
5190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5192 # And add a safety zone
5193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5197 interix*)
5198 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5199 lt_cv_sys_max_cmd_len=196608
5202 osf*)
5203 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5204 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5205 # nice to cause kernel panics so lets avoid the loop below.
5206 # First set a reasonable default.
5207 lt_cv_sys_max_cmd_len=16384
5209 if test -x /sbin/sysconfig; then
5210 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5211 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5212 esac
5215 sco3.2v5*)
5216 lt_cv_sys_max_cmd_len=102400
5218 sysv5* | sco5v6* | sysv4.2uw2*)
5219 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5220 if test -n "$kargmax"; then
5221 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5222 else
5223 lt_cv_sys_max_cmd_len=32768
5227 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5228 if test -n "$lt_cv_sys_max_cmd_len"; then
5229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5231 else
5232 # Make teststring a little bigger before we do anything with it.
5233 # a 1K string should be a reasonable start.
5234 for i in 1 2 3 4 5 6 7 8 ; do
5235 teststring=$teststring$teststring
5236 done
5237 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5238 # If test is not a shell built-in, we'll probably end up computing a
5239 # maximum length that is only half of the actual maximum length, but
5240 # we can't tell.
5241 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5242 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5243 test $i != 17 # 1/2 MB should be enough
5245 i=`expr $i + 1`
5246 teststring=$teststring$teststring
5247 done
5248 # Only check the string length outside the loop.
5249 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5250 teststring=
5251 # Add a significant safety factor because C++ compilers can tack on
5252 # massive amounts of additional arguments before passing them to the
5253 # linker. It appears as though 1/2 is a usable value.
5254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5257 esac
5261 if test -n $lt_cv_sys_max_cmd_len ; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5263 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5266 $as_echo "none" >&6; }
5268 max_cmd_len=$lt_cv_sys_max_cmd_len
5275 : ${CP="cp -f"}
5276 : ${MV="mv -f"}
5277 : ${RM="rm -f"}
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5280 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5281 # Try some XSI features
5282 xsi_shell=no
5283 ( _lt_dummy="a/b/c"
5284 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5285 = c,a/b,, \
5286 && eval 'test $(( 1 + 1 )) -eq 2 \
5287 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5288 && xsi_shell=yes
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5290 $as_echo "$xsi_shell" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5294 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5295 lt_shell_append=no
5296 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5297 >/dev/null 2>&1 \
5298 && lt_shell_append=yes
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5300 $as_echo "$lt_shell_append" >&6; }
5303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5304 lt_unset=unset
5305 else
5306 lt_unset=false
5313 # test EBCDIC or ASCII
5314 case `echo X|tr X '\101'` in
5315 A) # ASCII based system
5316 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5317 lt_SP2NL='tr \040 \012'
5318 lt_NL2SP='tr \015\012 \040\040'
5320 *) # EBCDIC based system
5321 lt_SP2NL='tr \100 \n'
5322 lt_NL2SP='tr \r\n \100\100'
5324 esac
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5335 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5336 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 lt_cv_ld_reload_flag='-r'
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5342 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5343 reload_flag=$lt_cv_ld_reload_flag
5344 case $reload_flag in
5345 "" | " "*) ;;
5346 *) reload_flag=" $reload_flag" ;;
5347 esac
5348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5349 case $host_os in
5350 darwin*)
5351 if test "$GCC" = yes; then
5352 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5353 else
5354 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5357 esac
5367 if test -n "$ac_tool_prefix"; then
5368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$OBJDUMP"; then
5376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 OBJDUMP=$ac_cv_prog_OBJDUMP
5396 if test -n "$OBJDUMP"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5398 $as_echo "$OBJDUMP" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5406 if test -z "$ac_cv_prog_OBJDUMP"; then
5407 ac_ct_OBJDUMP=$OBJDUMP
5408 # Extract the first word of "objdump", so it can be a program name with args.
5409 set dummy objdump; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$ac_ct_OBJDUMP"; then
5416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5436 if test -n "$ac_ct_OBJDUMP"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5438 $as_echo "$ac_ct_OBJDUMP" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5444 if test "x$ac_ct_OBJDUMP" = x; then
5445 OBJDUMP="false"
5446 else
5447 case $cross_compiling:$ac_tool_warned in
5448 yes:)
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451 ac_tool_warned=yes ;;
5452 esac
5453 OBJDUMP=$ac_ct_OBJDUMP
5455 else
5456 OBJDUMP="$ac_cv_prog_OBJDUMP"
5459 test -z "$OBJDUMP" && OBJDUMP=objdump
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5470 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5471 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 lt_cv_file_magic_cmd='$MAGIC_CMD'
5475 lt_cv_file_magic_test_file=
5476 lt_cv_deplibs_check_method='unknown'
5477 # Need to set the preceding variable on all platforms that support
5478 # interlibrary dependencies.
5479 # 'none' -- dependencies not supported.
5480 # `unknown' -- same as none, but documents that we really don't know.
5481 # 'pass_all' -- all dependencies passed with no checks.
5482 # 'test_compile' -- check by making test program.
5483 # 'file_magic [[regex]]' -- check by looking for files in library path
5484 # which responds to the $file_magic_cmd with a given extended regex.
5485 # If you have `file' or equivalent on your system and you're not sure
5486 # whether `pass_all' will *always* work, you probably want this one.
5488 case $host_os in
5489 aix[4-9]*)
5490 lt_cv_deplibs_check_method=pass_all
5493 beos*)
5494 lt_cv_deplibs_check_method=pass_all
5497 bsdi[45]*)
5498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5499 lt_cv_file_magic_cmd='/usr/bin/file -L'
5500 lt_cv_file_magic_test_file=/shlib/libc.so
5503 cygwin*)
5504 # func_win32_libid is a shell function defined in ltmain.sh
5505 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5506 lt_cv_file_magic_cmd='func_win32_libid'
5509 mingw* | pw32*)
5510 # Base MSYS/MinGW do not provide the 'file' command needed by
5511 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5512 # unless we find 'file', for example because we are cross-compiling.
5513 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5514 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5516 lt_cv_file_magic_cmd='func_win32_libid'
5517 else
5518 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5519 lt_cv_file_magic_cmd='$OBJDUMP -f'
5523 cegcc*)
5524 # use the weaker test based on 'objdump'. See mingw*.
5525 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5526 lt_cv_file_magic_cmd='$OBJDUMP -f'
5529 darwin* | rhapsody*)
5530 lt_cv_deplibs_check_method=pass_all
5533 freebsd* | dragonfly*)
5534 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5535 case $host_cpu in
5536 i*86 )
5537 # Not sure whether the presence of OpenBSD here was a mistake.
5538 # Let's accept both of them until this is cleared up.
5539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5543 esac
5544 else
5545 lt_cv_deplibs_check_method=pass_all
5549 gnu*)
5550 lt_cv_deplibs_check_method=pass_all
5553 haiku*)
5554 lt_cv_deplibs_check_method=pass_all
5557 hpux10.20* | hpux11*)
5558 lt_cv_file_magic_cmd=/usr/bin/file
5559 case $host_cpu in
5560 ia64*)
5561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5564 hppa*64*)
5565 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]'
5566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5572 esac
5575 interix[3-9]*)
5576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5580 irix5* | irix6* | nonstopux*)
5581 case $LD in
5582 *-32|*"-32 ") libmagic=32-bit;;
5583 *-n32|*"-n32 ") libmagic=N32;;
5584 *-64|*"-64 ") libmagic=64-bit;;
5585 *) libmagic=never-match;;
5586 esac
5587 lt_cv_deplibs_check_method=pass_all
5590 # This must be Linux ELF.
5591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5592 lt_cv_deplibs_check_method=pass_all
5595 netbsd*)
5596 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5598 else
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5603 newos6*)
5604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5605 lt_cv_file_magic_cmd=/usr/bin/file
5606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5609 *nto* | *qnx*)
5610 lt_cv_deplibs_check_method=pass_all
5613 openbsd*)
5614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5616 else
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621 osf3* | osf4* | osf5*)
5622 lt_cv_deplibs_check_method=pass_all
5625 rdos*)
5626 lt_cv_deplibs_check_method=pass_all
5629 solaris*)
5630 lt_cv_deplibs_check_method=pass_all
5633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5634 lt_cv_deplibs_check_method=pass_all
5637 sysv4 | sysv4.3*)
5638 case $host_vendor in
5639 motorola)
5640 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]'
5641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643 ncr)
5644 lt_cv_deplibs_check_method=pass_all
5646 sequent)
5647 lt_cv_file_magic_cmd='/bin/file'
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650 sni)
5651 lt_cv_file_magic_cmd='/bin/file'
5652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5653 lt_cv_file_magic_test_file=/lib/libc.so
5655 siemens)
5656 lt_cv_deplibs_check_method=pass_all
5659 lt_cv_deplibs_check_method=pass_all
5661 esac
5664 tpf*)
5665 lt_cv_deplibs_check_method=pass_all
5667 esac
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5671 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5672 file_magic_cmd=$lt_cv_file_magic_cmd
5673 deplibs_check_method=$lt_cv_deplibs_check_method
5674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}ar; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if test "${ac_cv_prog_AR+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if test -n "$AR"; then
5696 ac_cv_prog_AR="$AR" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_AR="${ac_tool_prefix}ar"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5709 done
5710 done
5711 IFS=$as_save_IFS
5715 AR=$ac_cv_prog_AR
5716 if test -n "$AR"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5718 $as_echo "$AR" >&6; }
5719 else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5726 if test -z "$ac_cv_prog_AR"; then
5727 ac_ct_AR=$AR
5728 # Extract the first word of "ar", so it can be a program name with args.
5729 set dummy ar; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if test -n "$ac_ct_AR"; then
5736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_ac_ct_AR="ar"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5749 done
5750 done
5751 IFS=$as_save_IFS
5755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5756 if test -n "$ac_ct_AR"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5758 $as_echo "$ac_ct_AR" >&6; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5764 if test "x$ac_ct_AR" = x; then
5765 AR="false"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5772 esac
5773 AR=$ac_ct_AR
5775 else
5776 AR="$ac_cv_prog_AR"
5779 test -z "$AR" && AR=ar
5780 test -z "$AR_FLAGS" && AR_FLAGS=cru
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}strip; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_STRIP+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$STRIP"; then
5801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5820 STRIP=$ac_cv_prog_STRIP
5821 if test -n "$STRIP"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5823 $as_echo "$STRIP" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5831 if test -z "$ac_cv_prog_STRIP"; then
5832 ac_ct_STRIP=$STRIP
5833 # Extract the first word of "strip", so it can be a program name with args.
5834 set dummy strip; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_STRIP"; then
5841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_STRIP="strip"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5854 done
5855 done
5856 IFS=$as_save_IFS
5860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5861 if test -n "$ac_ct_STRIP"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5863 $as_echo "$ac_ct_STRIP" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5869 if test "x$ac_ct_STRIP" = x; then
5870 STRIP=":"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 STRIP=$ac_ct_STRIP
5880 else
5881 STRIP="$ac_cv_prog_STRIP"
5884 test -z "$STRIP" && STRIP=:
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 if test -n "$RANLIB"; then
5900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5913 done
5914 done
5915 IFS=$as_save_IFS
5919 RANLIB=$ac_cv_prog_RANLIB
5920 if test -n "$RANLIB"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5922 $as_echo "$RANLIB" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5930 if test -z "$ac_cv_prog_RANLIB"; then
5931 ac_ct_RANLIB=$RANLIB
5932 # Extract the first word of "ranlib", so it can be a program name with args.
5933 set dummy ranlib; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if test -n "$ac_ct_RANLIB"; then
5940 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_prog_ac_ct_RANLIB="ranlib"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5953 done
5954 done
5955 IFS=$as_save_IFS
5959 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5960 if test -n "$ac_ct_RANLIB"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5962 $as_echo "$ac_ct_RANLIB" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5968 if test "x$ac_ct_RANLIB" = x; then
5969 RANLIB=":"
5970 else
5971 case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977 RANLIB=$ac_ct_RANLIB
5979 else
5980 RANLIB="$ac_cv_prog_RANLIB"
5983 test -z "$RANLIB" && RANLIB=:
5990 # Determine commands to create old-style static archives.
5991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5992 old_postinstall_cmds='chmod 644 $oldlib'
5993 old_postuninstall_cmds=
5995 if test -n "$RANLIB"; then
5996 case $host_os in
5997 openbsd*)
5998 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6003 esac
6004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6007 case $host_os in
6008 darwin*)
6009 lock_old_archive_extraction=yes ;;
6011 lock_old_archive_extraction=no ;;
6012 esac
6052 # If no C compiler was specified, use CC.
6053 LTCC=${LTCC-"$CC"}
6055 # If no C compiler flags were specified, use CFLAGS.
6056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6058 # Allow CC to be a program name with arguments.
6059 compiler=$CC
6062 # Check for command to grab the raw symbol name followed by C symbol from nm.
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6064 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6065 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6069 # These are sane defaults that work on at least a few old systems.
6070 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6072 # Character class describing NM global symbol codes.
6073 symcode='[BCDEGRST]'
6075 # Regexp to match symbols that can be accessed directly from C.
6076 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6078 # Define system-specific variables.
6079 case $host_os in
6080 aix*)
6081 symcode='[BCDT]'
6083 cygwin* | mingw* | pw32* | cegcc*)
6084 symcode='[ABCDGISTW]'
6086 hpux*)
6087 if test "$host_cpu" = ia64; then
6088 symcode='[ABCDEGRST]'
6091 irix* | nonstopux*)
6092 symcode='[BCDEGRST]'
6094 osf*)
6095 symcode='[BCDEGQRST]'
6097 solaris*)
6098 symcode='[BDRT]'
6100 sco3.2v5*)
6101 symcode='[DT]'
6103 sysv4.2uw2*)
6104 symcode='[DT]'
6106 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6107 symcode='[ABDT]'
6109 sysv4)
6110 symcode='[DFNSTU]'
6112 esac
6114 # If we're using GNU nm, then use its standard symbol codes.
6115 case `$NM -V 2>&1` in
6116 *GNU* | *'with BFD'*)
6117 symcode='[ABCDGIRSTW]' ;;
6118 esac
6120 # Transform an extracted symbol line into a proper C declaration.
6121 # Some systems (esp. on ia64) link data and code symbols differently,
6122 # so use this general approach.
6123 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6125 # Transform an extracted symbol line into symbol name and symbol address
6126 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6127 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'"
6129 # Handle CRLF in mingw tool chain
6130 opt_cr=
6131 case $build_os in
6132 mingw*)
6133 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6135 esac
6137 # Try without a prefix underscore, then with it.
6138 for ac_symprfx in "" "_"; do
6140 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6141 symxfrm="\\1 $ac_symprfx\\2 \\2"
6143 # Write the raw and C identifiers.
6144 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6145 # Fake it for dumpbin and say T for any non-static function
6146 # and D for any global variable.
6147 # Also find C++ and __fastcall symbols from MSVC++,
6148 # which start with @ or ?.
6149 lt_cv_sys_global_symbol_pipe="$AWK '"\
6150 " {last_section=section; section=\$ 3};"\
6151 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6152 " \$ 0!~/External *\|/{next};"\
6153 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6154 " {if(hide[section]) next};"\
6155 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6156 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6157 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6158 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6159 " ' prfx=^$ac_symprfx"
6160 else
6161 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6164 # Check to see that the pipe works correctly.
6165 pipe_works=no
6167 rm -f conftest*
6168 cat > conftest.$ac_ext <<_LT_EOF
6169 #ifdef __cplusplus
6170 extern "C" {
6171 #endif
6172 char nm_test_var;
6173 void nm_test_func(void);
6174 void nm_test_func(void){}
6175 #ifdef __cplusplus
6177 #endif
6178 int main(){nm_test_var='a';nm_test_func();return(0);}
6179 _LT_EOF
6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6182 (eval $ac_compile) 2>&5
6183 ac_status=$?
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }; then
6186 # Now try to grab the symbols.
6187 nlist=conftest.nm
6188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6189 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6190 ac_status=$?
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; } && test -s "$nlist"; then
6193 # Try sorting and uniquifying the output.
6194 if sort "$nlist" | uniq > "$nlist"T; then
6195 mv -f "$nlist"T "$nlist"
6196 else
6197 rm -f "$nlist"T
6200 # Make sure that we snagged all the symbols we need.
6201 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6202 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6203 cat <<_LT_EOF > conftest.$ac_ext
6204 #ifdef __cplusplus
6205 extern "C" {
6206 #endif
6208 _LT_EOF
6209 # Now generate the symbol file.
6210 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6212 cat <<_LT_EOF >> conftest.$ac_ext
6214 /* The mapping between symbol names and symbols. */
6215 const struct {
6216 const char *name;
6217 void *address;
6219 lt__PROGRAM__LTX_preloaded_symbols[] =
6221 { "@PROGRAM@", (void *) 0 },
6222 _LT_EOF
6223 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6224 cat <<\_LT_EOF >> conftest.$ac_ext
6225 {0, (void *) 0}
6228 /* This works around a problem in FreeBSD linker */
6229 #ifdef FREEBSD_WORKAROUND
6230 static const void *lt_preloaded_setup() {
6231 return lt__PROGRAM__LTX_preloaded_symbols;
6233 #endif
6235 #ifdef __cplusplus
6237 #endif
6238 _LT_EOF
6239 # Now try linking the two files.
6240 mv conftest.$ac_objext conftstm.$ac_objext
6241 lt_save_LIBS="$LIBS"
6242 lt_save_CFLAGS="$CFLAGS"
6243 LIBS="conftstm.$ac_objext"
6244 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6246 (eval $ac_link) 2>&5
6247 ac_status=$?
6248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6250 pipe_works=yes
6252 LIBS="$lt_save_LIBS"
6253 CFLAGS="$lt_save_CFLAGS"
6254 else
6255 echo "cannot find nm_test_func in $nlist" >&5
6257 else
6258 echo "cannot find nm_test_var in $nlist" >&5
6260 else
6261 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6263 else
6264 echo "$progname: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 rm -rf conftest* conftst*
6269 # Do not use the global_symbol_pipe unless it works.
6270 if test "$pipe_works" = yes; then
6271 break
6272 else
6273 lt_cv_sys_global_symbol_pipe=
6275 done
6279 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6280 lt_cv_sys_global_symbol_to_cdecl=
6282 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6284 $as_echo "failed" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6287 $as_echo "ok" >&6; }
6311 # Check whether --enable-libtool-lock was given.
6312 if test "${enable_libtool_lock+set}" = set; then :
6313 enableval=$enable_libtool_lock;
6316 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6318 # Some flags need to be propagated to the compiler or linker for good
6319 # libtool support.
6320 case $host in
6321 ia64-*-hpux*)
6322 # Find out which ABI we are using.
6323 echo 'int i;' > conftest.$ac_ext
6324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325 (eval $ac_compile) 2>&5
6326 ac_status=$?
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }; then
6329 case `/usr/bin/file conftest.$ac_objext` in
6330 *ELF-32*)
6331 HPUX_IA64_MODE="32"
6333 *ELF-64*)
6334 HPUX_IA64_MODE="64"
6336 esac
6338 rm -rf conftest*
6340 *-*-irix6*)
6341 # Find out which ABI we are using.
6342 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6344 (eval $ac_compile) 2>&5
6345 ac_status=$?
6346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; }; then
6348 if test "$lt_cv_prog_gnu_ld" = yes; then
6349 case `/usr/bin/file conftest.$ac_objext` in
6350 *32-bit*)
6351 LD="${LD-ld} -melf32bsmip"
6353 *N32*)
6354 LD="${LD-ld} -melf32bmipn32"
6356 *64-bit*)
6357 LD="${LD-ld} -melf64bmip"
6359 esac
6360 else
6361 case `/usr/bin/file conftest.$ac_objext` in
6362 *32-bit*)
6363 LD="${LD-ld} -32"
6365 *N32*)
6366 LD="${LD-ld} -n32"
6368 *64-bit*)
6369 LD="${LD-ld} -64"
6371 esac
6374 rm -rf conftest*
6377 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6378 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6379 # Find out which ABI we are using.
6380 echo 'int i;' > conftest.$ac_ext
6381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6382 (eval $ac_compile) 2>&5
6383 ac_status=$?
6384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385 test $ac_status = 0; }; then
6386 case `/usr/bin/file conftest.o` in
6387 *32-bit*)
6388 case $host in
6389 x86_64-*kfreebsd*-gnu)
6390 LD="${LD-ld} -m elf_i386_fbsd"
6392 x86_64-*linux*)
6393 LD="${LD-ld} -m elf_i386"
6395 ppc64-*linux*|powerpc64-*linux*)
6396 LD="${LD-ld} -m elf32ppclinux"
6398 s390x-*linux*)
6399 LD="${LD-ld} -m elf_s390"
6401 sparc64-*linux*)
6402 LD="${LD-ld} -m elf32_sparc"
6404 esac
6406 *64-bit*)
6407 case $host in
6408 x86_64-*kfreebsd*-gnu)
6409 LD="${LD-ld} -m elf_x86_64_fbsd"
6411 x86_64-*linux*)
6412 LD="${LD-ld} -m elf_x86_64"
6414 ppc*-*linux*|powerpc*-*linux*)
6415 LD="${LD-ld} -m elf64ppc"
6417 s390*-*linux*|s390*-*tpf*)
6418 LD="${LD-ld} -m elf64_s390"
6420 sparc*-*linux*)
6421 LD="${LD-ld} -m elf64_sparc"
6423 esac
6425 esac
6427 rm -rf conftest*
6430 *-*-sco3.2v5*)
6431 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6432 SAVE_CFLAGS="$CFLAGS"
6433 CFLAGS="$CFLAGS -belf"
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6435 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6436 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445 if test x$gcc_no_link = xyes; then
6446 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6452 main ()
6456 return 0;
6458 _ACEOF
6459 if ac_fn_c_try_link "$LINENO"; then :
6460 lt_cv_cc_needs_belf=yes
6461 else
6462 lt_cv_cc_needs_belf=no
6464 rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
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
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6474 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6477 CFLAGS="$SAVE_CFLAGS"
6480 sparc*-*solaris*)
6481 # Find out which ABI we are using.
6482 echo 'int i;' > conftest.$ac_ext
6483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }; then
6488 case `/usr/bin/file conftest.o` in
6489 *64-bit*)
6490 case $lt_cv_prog_gnu_ld in
6491 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6493 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6494 LD="${LD-ld} -64"
6497 esac
6499 esac
6501 rm -rf conftest*
6503 esac
6505 need_locks="$enable_libtool_lock"
6508 case $host_os in
6509 rhapsody* | darwin*)
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$DSYMUTIL"; then
6519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6534 IFS=$as_save_IFS
6538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6539 if test -n "$DSYMUTIL"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6541 $as_echo "$DSYMUTIL" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test -z "$ac_cv_prog_DSYMUTIL"; then
6550 ac_ct_DSYMUTIL=$DSYMUTIL
6551 # Extract the first word of "dsymutil", so it can be a program name with args.
6552 set dummy dsymutil; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$ac_ct_DSYMUTIL"; then
6559 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6574 IFS=$as_save_IFS
6578 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6579 if test -n "$ac_ct_DSYMUTIL"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6581 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 if test "x$ac_ct_DSYMUTIL" = x; then
6588 DSYMUTIL=":"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596 DSYMUTIL=$ac_ct_DSYMUTIL
6598 else
6599 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$NMEDIT"; then
6611 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6624 done
6625 done
6626 IFS=$as_save_IFS
6630 NMEDIT=$ac_cv_prog_NMEDIT
6631 if test -n "$NMEDIT"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6633 $as_echo "$NMEDIT" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6641 if test -z "$ac_cv_prog_NMEDIT"; then
6642 ac_ct_NMEDIT=$NMEDIT
6643 # Extract the first word of "nmedit", so it can be a program name with args.
6644 set dummy nmedit; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$ac_ct_NMEDIT"; then
6651 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6664 done
6665 done
6666 IFS=$as_save_IFS
6670 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6671 if test -n "$ac_ct_NMEDIT"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6673 $as_echo "$ac_ct_NMEDIT" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6679 if test "x$ac_ct_NMEDIT" = x; then
6680 NMEDIT=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 NMEDIT=$ac_ct_NMEDIT
6690 else
6691 NMEDIT="$ac_cv_prog_NMEDIT"
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_LIPO+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$LIPO"; then
6703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6722 LIPO=$ac_cv_prog_LIPO
6723 if test -n "$LIPO"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6725 $as_echo "$LIPO" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6733 if test -z "$ac_cv_prog_LIPO"; then
6734 ac_ct_LIPO=$LIPO
6735 # Extract the first word of "lipo", so it can be a program name with args.
6736 set dummy lipo; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$ac_ct_LIPO"; then
6743 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_ac_ct_LIPO="lipo"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6756 done
6757 done
6758 IFS=$as_save_IFS
6762 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6763 if test -n "$ac_ct_LIPO"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6765 $as_echo "$ac_ct_LIPO" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6771 if test "x$ac_ct_LIPO" = x; then
6772 LIPO=":"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 LIPO=$ac_ct_LIPO
6782 else
6783 LIPO="$ac_cv_prog_LIPO"
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}otool; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$OTOOL"; then
6795 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6808 done
6809 done
6810 IFS=$as_save_IFS
6814 OTOOL=$ac_cv_prog_OTOOL
6815 if test -n "$OTOOL"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6817 $as_echo "$OTOOL" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6825 if test -z "$ac_cv_prog_OTOOL"; then
6826 ac_ct_OTOOL=$OTOOL
6827 # Extract the first word of "otool", so it can be a program name with args.
6828 set dummy otool; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_OTOOL"; then
6835 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_OTOOL="otool"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6848 done
6849 done
6850 IFS=$as_save_IFS
6854 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6855 if test -n "$ac_ct_OTOOL"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6857 $as_echo "$ac_ct_OTOOL" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6863 if test "x$ac_ct_OTOOL" = x; then
6864 OTOOL=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 OTOOL=$ac_ct_OTOOL
6874 else
6875 OTOOL="$ac_cv_prog_OTOOL"
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$OTOOL64"; then
6887 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 OTOOL64=$ac_cv_prog_OTOOL64
6907 if test -n "$OTOOL64"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6909 $as_echo "$OTOOL64" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6917 if test -z "$ac_cv_prog_OTOOL64"; then
6918 ac_ct_OTOOL64=$OTOOL64
6919 # Extract the first word of "otool64", so it can be a program name with args.
6920 set dummy otool64; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$ac_ct_OTOOL64"; then
6927 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_OTOOL64="otool64"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6946 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6947 if test -n "$ac_ct_OTOOL64"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6949 $as_echo "$ac_ct_OTOOL64" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6955 if test "x$ac_ct_OTOOL64" = x; then
6956 OTOOL64=":"
6957 else
6958 case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964 OTOOL64=$ac_ct_OTOOL64
6966 else
6967 OTOOL64="$ac_cv_prog_OTOOL64"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6997 $as_echo_n "checking for -single_module linker flag... " >&6; }
6998 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 lt_cv_apple_cc_single_mod=no
7002 if test -z "${LT_MULTI_MODULE}"; then
7003 # By default we will add the -single_module flag. You can override
7004 # by either setting the environment variable LT_MULTI_MODULE
7005 # non-empty at configure time, or by adding -multi_module to the
7006 # link flags.
7007 rm -rf libconftest.dylib*
7008 echo "int foo(void){return 1;}" > conftest.c
7009 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7010 -dynamiclib -Wl,-single_module conftest.c" >&5
7011 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7012 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7013 _lt_result=$?
7014 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7015 lt_cv_apple_cc_single_mod=yes
7016 else
7017 cat conftest.err >&5
7019 rm -rf libconftest.dylib*
7020 rm -f conftest.*
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7024 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7026 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7027 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 lt_cv_ld_exported_symbols_list=no
7031 save_LDFLAGS=$LDFLAGS
7032 echo "_main" > conftest.sym
7033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7034 if test x$gcc_no_link = xyes; then
7035 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7041 main ()
7045 return 0;
7047 _ACEOF
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 lt_cv_ld_exported_symbols_list=yes
7050 else
7051 lt_cv_ld_exported_symbols_list=no
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 LDFLAGS="$save_LDFLAGS"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7059 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7061 $as_echo_n "checking for -force_load linker flag... " >&6; }
7062 if test "${lt_cv_ld_force_load+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 lt_cv_ld_force_load=no
7066 cat > conftest.c << _LT_EOF
7067 int forced_loaded() { return 2;}
7068 _LT_EOF
7069 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7070 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7071 echo "$AR cru libconftest.a conftest.o" >&5
7072 $AR cru libconftest.a conftest.o 2>&5
7073 cat > conftest.c << _LT_EOF
7074 int main() { return 0;}
7075 _LT_EOF
7076 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7077 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7078 _lt_result=$?
7079 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7080 lt_cv_ld_force_load=yes
7081 else
7082 cat conftest.err >&5
7084 rm -f conftest.err libconftest.a conftest conftest.c
7085 rm -rf conftest.dSYM
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7089 $as_echo "$lt_cv_ld_force_load" >&6; }
7090 case $host_os in
7091 rhapsody* | darwin1.[012])
7092 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7093 darwin1.*)
7094 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095 darwin*) # darwin 5.x on
7096 # if running on 10.5 or later, the deployment target defaults
7097 # to the OS version, if on x86, and 10.4, the deployment
7098 # target defaults to 10.4. Don't you love it?
7099 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7100 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7101 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7102 10.[012]*)
7103 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7104 10.*)
7105 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7106 esac
7108 esac
7109 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7110 _lt_dar_single_mod='$single_module'
7112 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7113 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7114 else
7115 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7117 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7118 _lt_dsymutil='~$DSYMUTIL $lib || :'
7119 else
7120 _lt_dsymutil=
7123 esac
7125 for ac_header in dlfcn.h
7126 do :
7127 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7129 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7130 cat >>confdefs.h <<_ACEOF
7131 #define HAVE_DLFCN_H 1
7132 _ACEOF
7136 done
7142 # Set options
7146 enable_dlopen=no
7149 enable_win32_dll=no
7152 # Check whether --enable-shared was given.
7153 if test "${enable_shared+set}" = set; then :
7154 enableval=$enable_shared; p=${PACKAGE-default}
7155 case $enableval in
7156 yes) enable_shared=yes ;;
7157 no) enable_shared=no ;;
7159 enable_shared=no
7160 # Look at the argument we got. We use all the common list separators.
7161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7162 for pkg in $enableval; do
7163 IFS="$lt_save_ifs"
7164 if test "X$pkg" = "X$p"; then
7165 enable_shared=yes
7167 done
7168 IFS="$lt_save_ifs"
7170 esac
7171 else
7172 enable_shared=yes
7183 # Check whether --enable-static was given.
7184 if test "${enable_static+set}" = set; then :
7185 enableval=$enable_static; p=${PACKAGE-default}
7186 case $enableval in
7187 yes) enable_static=yes ;;
7188 no) enable_static=no ;;
7190 enable_static=no
7191 # Look at the argument we got. We use all the common list separators.
7192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7193 for pkg in $enableval; do
7194 IFS="$lt_save_ifs"
7195 if test "X$pkg" = "X$p"; then
7196 enable_static=yes
7198 done
7199 IFS="$lt_save_ifs"
7201 esac
7202 else
7203 enable_static=yes
7215 # Check whether --with-pic was given.
7216 if test "${with_pic+set}" = set; then :
7217 withval=$with_pic; pic_mode="$withval"
7218 else
7219 pic_mode=default
7223 test -z "$pic_mode" && pic_mode=default
7231 # Check whether --enable-fast-install was given.
7232 if test "${enable_fast_install+set}" = set; then :
7233 enableval=$enable_fast_install; p=${PACKAGE-default}
7234 case $enableval in
7235 yes) enable_fast_install=yes ;;
7236 no) enable_fast_install=no ;;
7238 enable_fast_install=no
7239 # Look at the argument we got. We use all the common list separators.
7240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7241 for pkg in $enableval; do
7242 IFS="$lt_save_ifs"
7243 if test "X$pkg" = "X$p"; then
7244 enable_fast_install=yes
7246 done
7247 IFS="$lt_save_ifs"
7249 esac
7250 else
7251 enable_fast_install=yes
7264 # This can be used to rebuild libtool when needed
7265 LIBTOOL_DEPS="$ltmain"
7267 # Always use our own libtool.
7268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7295 test -z "$LN_S" && LN_S="ln -s"
7310 if test -n "${ZSH_VERSION+set}" ; then
7311 setopt NO_GLOB_SUBST
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7315 $as_echo_n "checking for objdir... " >&6; }
7316 if test "${lt_cv_objdir+set}" = set; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 rm -f .libs 2>/dev/null
7320 mkdir .libs 2>/dev/null
7321 if test -d .libs; then
7322 lt_cv_objdir=.libs
7323 else
7324 # MS-DOS does not allow filenames that begin with a dot.
7325 lt_cv_objdir=_libs
7327 rmdir .libs 2>/dev/null
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7330 $as_echo "$lt_cv_objdir" >&6; }
7331 objdir=$lt_cv_objdir
7337 cat >>confdefs.h <<_ACEOF
7338 #define LT_OBJDIR "$lt_cv_objdir/"
7339 _ACEOF
7344 case $host_os in
7345 aix3*)
7346 # AIX sometimes has problems with the GCC collect2 program. For some
7347 # reason, if we set the COLLECT_NAMES environment variable, the problems
7348 # vanish in a puff of smoke.
7349 if test "X${COLLECT_NAMES+set}" != Xset; then
7350 COLLECT_NAMES=
7351 export COLLECT_NAMES
7354 esac
7356 # Global variables:
7357 ofile=libtool
7358 can_build_shared=yes
7360 # All known linkers require a `.a' archive for static linking (except MSVC,
7361 # which needs '.lib').
7362 libext=a
7364 with_gnu_ld="$lt_cv_prog_gnu_ld"
7366 old_CC="$CC"
7367 old_CFLAGS="$CFLAGS"
7369 # Set sane defaults for various variables
7370 test -z "$CC" && CC=cc
7371 test -z "$LTCC" && LTCC=$CC
7372 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7373 test -z "$LD" && LD=ld
7374 test -z "$ac_objext" && ac_objext=o
7376 for cc_temp in $compiler""; do
7377 case $cc_temp in
7378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7380 \-*) ;;
7381 *) break;;
7382 esac
7383 done
7384 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7387 # Only perform the check for file, if the check method requires it
7388 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7389 case $deplibs_check_method in
7390 file_magic*)
7391 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7393 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 case $MAGIC_CMD in
7398 [\\/*] | ?:[\\/]*)
7399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402 lt_save_MAGIC_CMD="$MAGIC_CMD"
7403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405 for ac_dir in $ac_dummy; do
7406 IFS="$lt_save_ifs"
7407 test -z "$ac_dir" && ac_dir=.
7408 if test -f $ac_dir/${ac_tool_prefix}file; then
7409 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7410 if test -n "$file_magic_test_file"; then
7411 case $deplibs_check_method in
7412 "file_magic "*)
7413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416 $EGREP "$file_magic_regex" > /dev/null; then
7418 else
7419 cat <<_LT_EOF 1>&2
7421 *** Warning: the command libtool uses to detect shared libraries,
7422 *** $file_magic_cmd, produces output that libtool cannot recognize.
7423 *** The result is that libtool may fail to recognize shared libraries
7424 *** as such. This will affect the creation of libtool libraries that
7425 *** depend on shared libraries, but programs linked with such libtool
7426 *** libraries will work regardless of this problem. Nevertheless, you
7427 *** may want to report the problem to your system manager and/or to
7428 *** bug-libtool@gnu.org
7430 _LT_EOF
7431 fi ;;
7432 esac
7434 break
7436 done
7437 IFS="$lt_save_ifs"
7438 MAGIC_CMD="$lt_save_MAGIC_CMD"
7440 esac
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if test -n "$MAGIC_CMD"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7446 $as_echo "$MAGIC_CMD" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7456 if test -z "$lt_cv_path_MAGIC_CMD"; then
7457 if test -n "$ac_tool_prefix"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7459 $as_echo_n "checking for file... " >&6; }
7460 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 case $MAGIC_CMD in
7464 [\\/*] | ?:[\\/]*)
7465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7468 lt_save_MAGIC_CMD="$MAGIC_CMD"
7469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7471 for ac_dir in $ac_dummy; do
7472 IFS="$lt_save_ifs"
7473 test -z "$ac_dir" && ac_dir=.
7474 if test -f $ac_dir/file; then
7475 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7476 if test -n "$file_magic_test_file"; then
7477 case $deplibs_check_method in
7478 "file_magic "*)
7479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7482 $EGREP "$file_magic_regex" > /dev/null; then
7484 else
7485 cat <<_LT_EOF 1>&2
7487 *** Warning: the command libtool uses to detect shared libraries,
7488 *** $file_magic_cmd, produces output that libtool cannot recognize.
7489 *** The result is that libtool may fail to recognize shared libraries
7490 *** as such. This will affect the creation of libtool libraries that
7491 *** depend on shared libraries, but programs linked with such libtool
7492 *** libraries will work regardless of this problem. Nevertheless, you
7493 *** may want to report the problem to your system manager and/or to
7494 *** bug-libtool@gnu.org
7496 _LT_EOF
7497 fi ;;
7498 esac
7500 break
7502 done
7503 IFS="$lt_save_ifs"
7504 MAGIC_CMD="$lt_save_MAGIC_CMD"
7506 esac
7509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7510 if test -n "$MAGIC_CMD"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7512 $as_echo "$MAGIC_CMD" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7519 else
7520 MAGIC_CMD=:
7526 esac
7528 # Use C for the default configuration in the libtool script
7530 lt_save_CC="$CC"
7531 ac_ext=c
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538 # Source file extension for C test sources.
7539 ac_ext=c
7541 # Object file extension for compiled C test sources.
7542 objext=o
7543 objext=$objext
7545 # Code to be used in simple compile tests
7546 lt_simple_compile_test_code="int some_variable = 0;"
7548 # Code to be used in simple link tests
7549 lt_simple_link_test_code='int main(){return(0);}'
7557 # If no C compiler was specified, use CC.
7558 LTCC=${LTCC-"$CC"}
7560 # If no C compiler flags were specified, use CFLAGS.
7561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7563 # Allow CC to be a program name with arguments.
7564 compiler=$CC
7566 # Save the default compiler, since it gets overwritten when the other
7567 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7568 compiler_DEFAULT=$CC
7570 # save warnings/boilerplate of simple test code
7571 ac_outfile=conftest.$ac_objext
7572 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7573 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7574 _lt_compiler_boilerplate=`cat conftest.err`
7575 $RM conftest*
7577 ac_outfile=conftest.$ac_objext
7578 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7579 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7580 _lt_linker_boilerplate=`cat conftest.err`
7581 $RM -r conftest*
7584 ## CAVEAT EMPTOR:
7585 ## There is no encapsulation within the following macros, do not change
7586 ## the running order or otherwise move them around unless you know exactly
7587 ## what you are doing...
7588 if test -n "$compiler"; then
7590 lt_prog_compiler_no_builtin_flag=
7592 if test "$GCC" = yes; then
7593 case $cc_basename in
7594 nvcc*)
7595 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7597 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7598 esac
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7602 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 lt_cv_prog_compiler_rtti_exceptions=no
7606 ac_outfile=conftest.$ac_objext
7607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7608 lt_compiler_flag="-fno-rtti -fno-exceptions"
7609 # Insert the option either (1) after the last *FLAGS variable, or
7610 # (2) before a word containing "conftest.", or (3) at the end.
7611 # Note that $ac_compile itself does not contain backslashes and begins
7612 # with a dollar sign (not a hyphen), so the echo should work correctly.
7613 # The option is referenced via a variable to avoid confusing sed.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>conftest.err)
7620 ac_status=$?
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s "$ac_outfile"; then
7624 # The compiler can only warn and ignore the option if not recognized
7625 # So say no if there are warnings other than the usual output.
7626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7629 lt_cv_prog_compiler_rtti_exceptions=yes
7632 $RM conftest*
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7638 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7639 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7640 else
7651 lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7658 if test "$GCC" = yes; then
7659 lt_prog_compiler_wl='-Wl,'
7660 lt_prog_compiler_static='-static'
7662 case $host_os in
7663 aix*)
7664 # All AIX code is PIC.
7665 if test "$host_cpu" = ia64; then
7666 # AIX 5 now supports IA64 processor
7667 lt_prog_compiler_static='-Bstatic'
7671 amigaos*)
7672 case $host_cpu in
7673 powerpc)
7674 # see comment about AmigaOS4 .so support
7675 lt_prog_compiler_pic='-fPIC'
7677 m68k)
7678 # FIXME: we need at least 68020 code to build shared libraries, but
7679 # adding the `-m68020' flag to GCC prevents building anything better,
7680 # like `-m68040'.
7681 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7683 esac
7686 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7687 # PIC is the default for these OSes.
7690 mingw* | cygwin* | pw32* | os2* | cegcc*)
7691 # This hack is so that the source file can tell whether it is being
7692 # built for inclusion in a dll (and should export symbols for example).
7693 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7694 # (--disable-auto-import) libraries
7695 lt_prog_compiler_pic='-DDLL_EXPORT'
7698 darwin* | rhapsody*)
7699 # PIC is the default on this platform
7700 # Common symbols not allowed in MH_DYLIB files
7701 lt_prog_compiler_pic='-fno-common'
7704 haiku*)
7705 # PIC is the default for Haiku.
7706 # The "-static" flag exists, but is broken.
7707 lt_prog_compiler_static=
7710 hpux*)
7711 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7712 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7713 # sets the default TLS model and affects inlining.
7714 case $host_cpu in
7715 hppa*64*)
7716 # +Z the default
7719 lt_prog_compiler_pic='-fPIC'
7721 esac
7724 interix[3-9]*)
7725 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7726 # Instead, we relocate shared libraries at runtime.
7729 msdosdjgpp*)
7730 # Just because we use GCC doesn't mean we suddenly get shared libraries
7731 # on systems that don't support them.
7732 lt_prog_compiler_can_build_shared=no
7733 enable_shared=no
7736 *nto* | *qnx*)
7737 # QNX uses GNU C++, but need to define -shared option too, otherwise
7738 # it will coredump.
7739 lt_prog_compiler_pic='-fPIC -shared'
7742 sysv4*MP*)
7743 if test -d /usr/nec; then
7744 lt_prog_compiler_pic=-Kconform_pic
7749 lt_prog_compiler_pic='-fPIC'
7751 esac
7753 case $cc_basename in
7754 nvcc*) # Cuda Compiler Driver 2.2
7755 lt_prog_compiler_wl='-Xlinker '
7756 lt_prog_compiler_pic='-Xcompiler -fPIC'
7758 esac
7759 else
7760 # PORTME Check for flag to pass linker flags through the system compiler.
7761 case $host_os in
7762 aix*)
7763 lt_prog_compiler_wl='-Wl,'
7764 if test "$host_cpu" = ia64; then
7765 # AIX 5 now supports IA64 processor
7766 lt_prog_compiler_static='-Bstatic'
7767 else
7768 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7772 mingw* | cygwin* | pw32* | os2* | cegcc*)
7773 # This hack is so that the source file can tell whether it is being
7774 # built for inclusion in a dll (and should export symbols for example).
7775 lt_prog_compiler_pic='-DDLL_EXPORT'
7778 hpux9* | hpux10* | hpux11*)
7779 lt_prog_compiler_wl='-Wl,'
7780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7781 # not for PA HP-UX.
7782 case $host_cpu in
7783 hppa*64*|ia64*)
7784 # +Z the default
7787 lt_prog_compiler_pic='+Z'
7789 esac
7790 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7791 lt_prog_compiler_static='${wl}-a ${wl}archive'
7794 irix5* | irix6* | nonstopux*)
7795 lt_prog_compiler_wl='-Wl,'
7796 # PIC (with -KPIC) is the default.
7797 lt_prog_compiler_static='-non_shared'
7800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7801 case $cc_basename in
7802 # old Intel for x86_64 which still supported -KPIC.
7803 ecc*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-static'
7808 # icc used to be incompatible with GCC.
7809 # ICC 10 doesn't accept -KPIC any more.
7810 icc* | ifort*)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-fPIC'
7813 lt_prog_compiler_static='-static'
7815 # Lahey Fortran 8.1.
7816 lf95*)
7817 lt_prog_compiler_wl='-Wl,'
7818 lt_prog_compiler_pic='--shared'
7819 lt_prog_compiler_static='--static'
7821 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7822 # Portland Group compilers (*not* the Pentium gcc compiler,
7823 # which looks to be a dead project)
7824 lt_prog_compiler_wl='-Wl,'
7825 lt_prog_compiler_pic='-fpic'
7826 lt_prog_compiler_static='-Bstatic'
7828 ccc*)
7829 lt_prog_compiler_wl='-Wl,'
7830 # All Alpha code is PIC.
7831 lt_prog_compiler_static='-non_shared'
7833 xl* | bgxl* | bgf* | mpixl*)
7834 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-qpic'
7837 lt_prog_compiler_static='-qstaticlink'
7840 case `$CC -V 2>&1 | sed 5q` in
7841 *Sun\ F* | *Sun*Fortran*)
7842 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 lt_prog_compiler_wl=''
7847 *Sun\ C*)
7848 # Sun C 5.9
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7851 lt_prog_compiler_wl='-Wl,'
7853 esac
7855 esac
7858 newsos6)
7859 lt_prog_compiler_pic='-KPIC'
7860 lt_prog_compiler_static='-Bstatic'
7863 *nto* | *qnx*)
7864 # QNX uses GNU C++, but need to define -shared option too, otherwise
7865 # it will coredump.
7866 lt_prog_compiler_pic='-fPIC -shared'
7869 osf3* | osf4* | osf5*)
7870 lt_prog_compiler_wl='-Wl,'
7871 # All OSF/1 code is PIC.
7872 lt_prog_compiler_static='-non_shared'
7875 rdos*)
7876 lt_prog_compiler_static='-non_shared'
7879 solaris*)
7880 lt_prog_compiler_pic='-KPIC'
7881 lt_prog_compiler_static='-Bstatic'
7882 case $cc_basename in
7883 f77* | f90* | f95*)
7884 lt_prog_compiler_wl='-Qoption ld ';;
7886 lt_prog_compiler_wl='-Wl,';;
7887 esac
7890 sunos4*)
7891 lt_prog_compiler_wl='-Qoption ld '
7892 lt_prog_compiler_pic='-PIC'
7893 lt_prog_compiler_static='-Bstatic'
7896 sysv4 | sysv4.2uw2* | sysv4.3*)
7897 lt_prog_compiler_wl='-Wl,'
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7902 sysv4*MP*)
7903 if test -d /usr/nec ;then
7904 lt_prog_compiler_pic='-Kconform_pic'
7905 lt_prog_compiler_static='-Bstatic'
7909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-Bstatic'
7915 unicos*)
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_can_build_shared=no
7920 uts4*)
7921 lt_prog_compiler_pic='-pic'
7922 lt_prog_compiler_static='-Bstatic'
7926 lt_prog_compiler_can_build_shared=no
7928 esac
7931 case $host_os in
7932 # For platforms which do not support PIC, -DPIC is meaningless:
7933 *djgpp*)
7934 lt_prog_compiler_pic=
7937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7939 esac
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7941 $as_echo "$lt_prog_compiler_pic" >&6; }
7949 # Check to make sure the PIC flag actually works.
7951 if test -n "$lt_prog_compiler_pic"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7953 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7954 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 lt_cv_prog_compiler_pic_works=no
7958 ac_outfile=conftest.$ac_objext
7959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7960 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7961 # Insert the option either (1) after the last *FLAGS variable, or
7962 # (2) before a word containing "conftest.", or (3) at the end.
7963 # Note that $ac_compile itself does not contain backslashes and begins
7964 # with a dollar sign (not a hyphen), so the echo should work correctly.
7965 # The option is referenced via a variable to avoid confusing sed.
7966 lt_compile=`echo "$ac_compile" | $SED \
7967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7969 -e 's:$: $lt_compiler_flag:'`
7970 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7971 (eval "$lt_compile" 2>conftest.err)
7972 ac_status=$?
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 if (exit $ac_status) && test -s "$ac_outfile"; then
7976 # The compiler can only warn and ignore the option if not recognized
7977 # So say no if there are warnings other than the usual output.
7978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7980 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7981 lt_cv_prog_compiler_pic_works=yes
7984 $RM conftest*
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7988 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7990 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7991 case $lt_prog_compiler_pic in
7992 "" | " "*) ;;
7993 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7994 esac
7995 else
7996 lt_prog_compiler_pic=
7997 lt_prog_compiler_can_build_shared=no
8008 # Check to make sure the static flag actually works.
8010 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8012 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8013 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 lt_cv_prog_compiler_static_works=no
8017 save_LDFLAGS="$LDFLAGS"
8018 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8019 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8020 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8021 # The linker can only warn and ignore the option if not recognized
8022 # So say no if there are warnings
8023 if test -s conftest.err; then
8024 # Append any errors to the config.log.
8025 cat conftest.err 1>&5
8026 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8028 if diff conftest.exp conftest.er2 >/dev/null; then
8029 lt_cv_prog_compiler_static_works=yes
8031 else
8032 lt_cv_prog_compiler_static_works=yes
8035 $RM -r conftest*
8036 LDFLAGS="$save_LDFLAGS"
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8040 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8042 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8044 else
8045 lt_prog_compiler_static=
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8056 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 lt_cv_prog_compiler_c_o=no
8060 $RM -r conftest 2>/dev/null
8061 mkdir conftest
8062 cd conftest
8063 mkdir out
8064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8066 lt_compiler_flag="-o out/conftest2.$ac_objext"
8067 # Insert the option either (1) after the last *FLAGS variable, or
8068 # (2) before a word containing "conftest.", or (3) at the end.
8069 # Note that $ac_compile itself does not contain backslashes and begins
8070 # with a dollar sign (not a hyphen), so the echo should work correctly.
8071 lt_compile=`echo "$ac_compile" | $SED \
8072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8074 -e 's:$: $lt_compiler_flag:'`
8075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8076 (eval "$lt_compile" 2>out/conftest.err)
8077 ac_status=$?
8078 cat out/conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8081 then
8082 # The compiler can only warn and ignore the option if not recognized
8083 # So say no if there are warnings
8084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8087 lt_cv_prog_compiler_c_o=yes
8090 chmod u+w . 2>&5
8091 $RM conftest*
8092 # SGI C++ compiler will create directory out/ii_files/ for
8093 # template instantiation
8094 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8095 $RM out/* && rmdir out
8096 cd ..
8097 $RM -r conftest
8098 $RM conftest*
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8102 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8111 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 lt_cv_prog_compiler_c_o=no
8115 $RM -r conftest 2>/dev/null
8116 mkdir conftest
8117 cd conftest
8118 mkdir out
8119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8121 lt_compiler_flag="-o out/conftest2.$ac_objext"
8122 # Insert the option either (1) after the last *FLAGS variable, or
8123 # (2) before a word containing "conftest.", or (3) at the end.
8124 # Note that $ac_compile itself does not contain backslashes and begins
8125 # with a dollar sign (not a hyphen), so the echo should work correctly.
8126 lt_compile=`echo "$ac_compile" | $SED \
8127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8129 -e 's:$: $lt_compiler_flag:'`
8130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8131 (eval "$lt_compile" 2>out/conftest.err)
8132 ac_status=$?
8133 cat out/conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8136 then
8137 # The compiler can only warn and ignore the option if not recognized
8138 # So say no if there are warnings
8139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8142 lt_cv_prog_compiler_c_o=yes
8145 chmod u+w . 2>&5
8146 $RM conftest*
8147 # SGI C++ compiler will create directory out/ii_files/ for
8148 # template instantiation
8149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8150 $RM out/* && rmdir out
8151 cd ..
8152 $RM -r conftest
8153 $RM conftest*
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8162 hard_links="nottested"
8163 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8164 # do not overwrite the value of need_locks provided by the user
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8166 $as_echo_n "checking if we can lock with hard links... " >&6; }
8167 hard_links=yes
8168 $RM conftest*
8169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8170 touch conftest.a
8171 ln conftest.a conftest.b 2>&5 || hard_links=no
8172 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8174 $as_echo "$hard_links" >&6; }
8175 if test "$hard_links" = no; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8177 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8178 need_locks=warn
8180 else
8181 need_locks=no
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8190 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8192 runpath_var=
8193 allow_undefined_flag=
8194 always_export_symbols=no
8195 archive_cmds=
8196 archive_expsym_cmds=
8197 compiler_needs_object=no
8198 enable_shared_with_static_runtimes=no
8199 export_dynamic_flag_spec=
8200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8201 hardcode_automatic=no
8202 hardcode_direct=no
8203 hardcode_direct_absolute=no
8204 hardcode_libdir_flag_spec=
8205 hardcode_libdir_flag_spec_ld=
8206 hardcode_libdir_separator=
8207 hardcode_minus_L=no
8208 hardcode_shlibpath_var=unsupported
8209 inherit_rpath=no
8210 link_all_deplibs=unknown
8211 module_cmds=
8212 module_expsym_cmds=
8213 old_archive_from_new_cmds=
8214 old_archive_from_expsyms_cmds=
8215 thread_safe_flag_spec=
8216 whole_archive_flag_spec=
8217 # include_expsyms should be a list of space-separated symbols to be *always*
8218 # included in the symbol list
8219 include_expsyms=
8220 # exclude_expsyms can be an extended regexp of symbols to exclude
8221 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8222 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8223 # as well as any symbol that contains `d'.
8224 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8225 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8226 # platforms (ab)use it in PIC code, but their linkers get confused if
8227 # the symbol is explicitly referenced. Since portable code cannot
8228 # rely on this symbol name, it's probably fine to never include it in
8229 # preloaded symbol tables.
8230 # Exclude shared library initialization/finalization symbols.
8231 extract_expsyms_cmds=
8233 case $host_os in
8234 cygwin* | mingw* | pw32* | cegcc*)
8235 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8236 # When not using gcc, we currently assume that we are using
8237 # Microsoft Visual C++.
8238 if test "$GCC" != yes; then
8239 with_gnu_ld=no
8242 interix*)
8243 # we just hope/assume this is gcc and not c89 (= MSVC++)
8244 with_gnu_ld=yes
8246 openbsd*)
8247 with_gnu_ld=no
8249 esac
8251 ld_shlibs=yes
8253 # On some targets, GNU ld is compatible enough with the native linker
8254 # that we're better off using the native interface for both.
8255 lt_use_gnu_ld_interface=no
8256 if test "$with_gnu_ld" = yes; then
8257 case $host_os in
8258 aix*)
8259 # The AIX port of GNU ld has always aspired to compatibility
8260 # with the native linker. However, as the warning in the GNU ld
8261 # block says, versions before 2.19.5* couldn't really create working
8262 # shared libraries, regardless of the interface used.
8263 case `$LD -v 2>&1` in
8264 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8265 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8266 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8268 lt_use_gnu_ld_interface=yes
8270 esac
8273 lt_use_gnu_ld_interface=yes
8275 esac
8278 if test "$lt_use_gnu_ld_interface" = yes; then
8279 # If archive_cmds runs LD, not CC, wlarc should be empty
8280 wlarc='${wl}'
8282 # Set some defaults for GNU ld with shared library support. These
8283 # are reset later if shared libraries are not supported. Putting them
8284 # here allows them to be overridden if necessary.
8285 runpath_var=LD_RUN_PATH
8286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8287 export_dynamic_flag_spec='${wl}--export-dynamic'
8288 # ancient GNU ld didn't support --whole-archive et. al.
8289 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8290 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8291 else
8292 whole_archive_flag_spec=
8294 supports_anon_versioning=no
8295 case `$LD -v 2>&1` in
8296 *GNU\ gold*) supports_anon_versioning=yes ;;
8297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8300 *\ 2.11.*) ;; # other 2.11 versions
8301 *) supports_anon_versioning=yes ;;
8302 esac
8304 # See if GNU ld supports shared libraries.
8305 case $host_os in
8306 aix[3-9]*)
8307 # On AIX/PPC, the GNU linker is very broken
8308 if test "$host_cpu" != ia64; then
8309 ld_shlibs=no
8310 cat <<_LT_EOF 1>&2
8312 *** Warning: the GNU linker, at least up to release 2.19, is reported
8313 *** to be unable to reliably create shared libraries on AIX.
8314 *** Therefore, libtool is disabling shared libraries support. If you
8315 *** really care for shared libraries, you may want to install binutils
8316 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8317 *** You will then need to restart the configuration process.
8319 _LT_EOF
8323 amigaos*)
8324 case $host_cpu in
8325 powerpc)
8326 # see comment about AmigaOS4 .so support
8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 archive_expsym_cmds=''
8330 m68k)
8331 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)'
8332 hardcode_libdir_flag_spec='-L$libdir'
8333 hardcode_minus_L=yes
8335 esac
8338 beos*)
8339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8340 allow_undefined_flag=unsupported
8341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8342 # support --undefined. This deserves some investigation. FIXME
8343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344 else
8345 ld_shlibs=no
8349 cygwin* | mingw* | pw32* | cegcc*)
8350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8351 # as there is no search path for DLLs.
8352 hardcode_libdir_flag_spec='-L$libdir'
8353 export_dynamic_flag_spec='${wl}--export-all-symbols'
8354 allow_undefined_flag=unsupported
8355 always_export_symbols=no
8356 enable_shared_with_static_runtimes=yes
8357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8359 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8361 # If the export-symbols file already is a .def file (1st line
8362 # is EXPORTS), use it as is; otherwise, prepend...
8363 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8364 cp $export_symbols $output_objdir/$soname.def;
8365 else
8366 echo EXPORTS > $output_objdir/$soname.def;
8367 cat $export_symbols >> $output_objdir/$soname.def;
8369 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8370 else
8371 ld_shlibs=no
8375 haiku*)
8376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8377 link_all_deplibs=yes
8380 interix[3-9]*)
8381 hardcode_direct=no
8382 hardcode_shlibpath_var=no
8383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8384 export_dynamic_flag_spec='${wl}-E'
8385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8386 # Instead, shared libraries are loaded at an image base (0x10000000 by
8387 # default) and relocated if they conflict, which is a slow very memory
8388 # consuming and fragmenting process. To avoid this, we pick a random,
8389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8392 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'
8395 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8396 tmp_diet=no
8397 if test "$host_os" = linux-dietlibc; then
8398 case $cc_basename in
8399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8400 esac
8402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8403 && test "$tmp_diet" = no
8404 then
8405 tmp_addflag=
8406 tmp_sharedflag='-shared'
8407 case $cc_basename,$host_cpu in
8408 pgcc*) # Portland Group C compiler
8409 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'
8410 tmp_addflag=' $pic_flag'
8412 pgf77* | pgf90* | pgf95* | pgfortran*)
8413 # Portland Group f77 and f90 compilers
8414 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'
8415 tmp_addflag=' $pic_flag -Mnomain' ;;
8416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8417 tmp_addflag=' -i_dynamic' ;;
8418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8419 tmp_addflag=' -i_dynamic -nofor_main' ;;
8420 ifc* | ifort*) # Intel Fortran compiler
8421 tmp_addflag=' -nofor_main' ;;
8422 lf95*) # Lahey Fortran 8.1
8423 whole_archive_flag_spec=
8424 tmp_sharedflag='--shared' ;;
8425 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8426 tmp_sharedflag='-qmkshrobj'
8427 tmp_addflag= ;;
8428 nvcc*) # Cuda Compiler Driver 2.2
8429 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'
8430 compiler_needs_object=yes
8432 esac
8433 case `$CC -V 2>&1 | sed 5q` in
8434 *Sun\ C*) # Sun C 5.9
8435 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'
8436 compiler_needs_object=yes
8437 tmp_sharedflag='-G' ;;
8438 *Sun\ F*) # Sun Fortran 8.3
8439 tmp_sharedflag='-G' ;;
8440 esac
8441 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443 if test "x$supports_anon_versioning" = xyes; then
8444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8446 echo "local: *; };" >> $output_objdir/$libname.ver~
8447 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8450 case $cc_basename in
8451 xlf* | bgf* | bgxlf* | mpixlf*)
8452 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8453 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8454 hardcode_libdir_flag_spec=
8455 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8456 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8457 if test "x$supports_anon_versioning" = xyes; then
8458 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8460 echo "local: *; };" >> $output_objdir/$libname.ver~
8461 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8464 esac
8465 else
8466 ld_shlibs=no
8470 netbsd*)
8471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8472 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8473 wlarc=
8474 else
8475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8480 solaris*)
8481 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8482 ld_shlibs=no
8483 cat <<_LT_EOF 1>&2
8485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8486 *** create shared libraries on Solaris systems. Therefore, libtool
8487 *** is disabling shared libraries support. We urge you to upgrade GNU
8488 *** binutils to release 2.9.1 or newer. Another option is to modify
8489 *** your PATH or compiler configuration so that the native linker is
8490 *** used, and then restart.
8492 _LT_EOF
8493 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8496 else
8497 ld_shlibs=no
8501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8502 case `$LD -v 2>&1` in
8503 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8504 ld_shlibs=no
8505 cat <<_LT_EOF 1>&2
8507 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8508 *** reliably create shared libraries on SCO systems. Therefore, libtool
8509 *** is disabling shared libraries support. We urge you to upgrade GNU
8510 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8511 *** your PATH or compiler configuration so that the native linker is
8512 *** used, and then restart.
8514 _LT_EOF
8517 # For security reasons, it is highly recommended that you always
8518 # use absolute paths for naming shared libraries, and exclude the
8519 # DT_RUNPATH tag from executables and libraries. But doing so
8520 # requires that you compile everything twice, which is a pain.
8521 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8525 else
8526 ld_shlibs=no
8529 esac
8532 sunos4*)
8533 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8534 wlarc=
8535 hardcode_direct=yes
8536 hardcode_shlibpath_var=no
8540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8543 else
8544 ld_shlibs=no
8547 esac
8549 if test "$ld_shlibs" = no; then
8550 runpath_var=
8551 hardcode_libdir_flag_spec=
8552 export_dynamic_flag_spec=
8553 whole_archive_flag_spec=
8555 else
8556 # PORTME fill in a description of your system's linker (not GNU ld)
8557 case $host_os in
8558 aix3*)
8559 allow_undefined_flag=unsupported
8560 always_export_symbols=yes
8561 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'
8562 # Note: this linker hardcodes the directories in LIBPATH if there
8563 # are no directories specified by -L.
8564 hardcode_minus_L=yes
8565 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8566 # Neither direct hardcoding nor static linking is supported with a
8567 # broken collect2.
8568 hardcode_direct=unsupported
8572 aix[4-9]*)
8573 if test "$host_cpu" = ia64; then
8574 # On IA64, the linker does run time linking by default, so we don't
8575 # have to do anything special.
8576 aix_use_runtimelinking=no
8577 exp_sym_flag='-Bexport'
8578 no_entry_flag=""
8579 else
8580 # If we're using GNU nm, then we don't want the "-C" option.
8581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8582 # Also, AIX nm treats weak defined symbols like other global
8583 # defined symbols, whereas GNU nm marks them as "W".
8584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8585 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'
8586 else
8587 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'
8589 aix_use_runtimelinking=no
8591 # Test if we are trying to use run time linking or normal
8592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8593 # need to do runtime linking.
8594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8595 for ld_flag in $LDFLAGS; do
8596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8597 aix_use_runtimelinking=yes
8598 break
8600 done
8602 esac
8604 exp_sym_flag='-bexport'
8605 no_entry_flag='-bnoentry'
8608 # When large executables or shared objects are built, AIX ld can
8609 # have problems creating the table of contents. If linking a library
8610 # or program results in "error TOC overflow" add -mminimal-toc to
8611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8614 archive_cmds=''
8615 hardcode_direct=yes
8616 hardcode_direct_absolute=yes
8617 hardcode_libdir_separator=':'
8618 link_all_deplibs=yes
8619 file_list_spec='${wl}-f,'
8621 if test "$GCC" = yes; then
8622 case $host_os in aix4.[012]|aix4.[012].*)
8623 # We only want to do this on AIX 4.2 and lower, the check
8624 # below for broken collect2 doesn't work under 4.3+
8625 collect2name=`${CC} -print-prog-name=collect2`
8626 if test -f "$collect2name" &&
8627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8628 then
8629 # We have reworked collect2
8631 else
8632 # We have old collect2
8633 hardcode_direct=unsupported
8634 # It fails to find uninstalled libraries when the uninstalled
8635 # path is not listed in the libpath. Setting hardcode_minus_L
8636 # to unsupported forces relinking
8637 hardcode_minus_L=yes
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_libdir_separator=
8642 esac
8643 shared_flag='-shared'
8644 if test "$aix_use_runtimelinking" = yes; then
8645 shared_flag="$shared_flag "'${wl}-G'
8647 else
8648 # not using gcc
8649 if test "$host_cpu" = ia64; then
8650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8651 # chokes on -Wl,-G. The following line is correct:
8652 shared_flag='-G'
8653 else
8654 if test "$aix_use_runtimelinking" = yes; then
8655 shared_flag='${wl}-G'
8656 else
8657 shared_flag='${wl}-bM:SRE'
8662 export_dynamic_flag_spec='${wl}-bexpall'
8663 # It seems that -bexpall does not export symbols beginning with
8664 # underscore (_), so it is better to generate a list of symbols to export.
8665 always_export_symbols=yes
8666 if test "$aix_use_runtimelinking" = yes; then
8667 # Warning - without using the other runtime loading flags (-brtl),
8668 # -berok will link without error, but may produce a broken library.
8669 allow_undefined_flag='-berok'
8670 # Determine the default libpath from the value encoded in an
8671 # empty executable.
8672 if test x$gcc_no_link = xyes; then
8673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8679 main ()
8683 return 0;
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8688 lt_aix_libpath_sed='
8689 /Import File Strings/,/^$/ {
8690 /^0/ {
8691 s/^0 *\(.*\)$/\1/
8695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8696 # Check for a 64-bit object if we didn't find anything.
8697 if test -z "$aix_libpath"; then
8698 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8701 rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8706 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"
8707 else
8708 if test "$host_cpu" = ia64; then
8709 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8710 allow_undefined_flag="-z nodefs"
8711 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"
8712 else
8713 # Determine the default libpath from the value encoded in an
8714 # empty executable.
8715 if test x$gcc_no_link = xyes; then
8716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8722 main ()
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_link "$LINENO"; then :
8731 lt_aix_libpath_sed='
8732 /Import File Strings/,/^$/ {
8733 /^0/ {
8734 s/^0 *\(.*\)$/\1/
8738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8739 # Check for a 64-bit object if we didn't find anything.
8740 if test -z "$aix_libpath"; then
8741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8744 rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8749 # Warning - without using the other run time loading flags,
8750 # -berok will link without error, but may produce a broken library.
8751 no_undefined_flag=' ${wl}-bernotok'
8752 allow_undefined_flag=' ${wl}-berok'
8753 if test "$with_gnu_ld" = yes; then
8754 # We only use this code for GNU lds that support --whole-archive.
8755 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8756 else
8757 # Exported symbols can be pulled into shared objects from archives
8758 whole_archive_flag_spec='$convenience'
8760 archive_cmds_need_lc=yes
8761 # This is similar to how AIX traditionally builds its shared libraries.
8762 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'
8767 amigaos*)
8768 case $host_cpu in
8769 powerpc)
8770 # see comment about AmigaOS4 .so support
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds=''
8774 m68k)
8775 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)'
8776 hardcode_libdir_flag_spec='-L$libdir'
8777 hardcode_minus_L=yes
8779 esac
8782 bsdi[45]*)
8783 export_dynamic_flag_spec=-rdynamic
8786 cygwin* | mingw* | pw32* | cegcc*)
8787 # When not using gcc, we currently assume that we are using
8788 # Microsoft Visual C++.
8789 # hardcode_libdir_flag_spec is actually meaningless, as there is
8790 # no search path for DLLs.
8791 hardcode_libdir_flag_spec=' '
8792 allow_undefined_flag=unsupported
8793 # Tell ltmain to make .lib files, not .a files.
8794 libext=lib
8795 # Tell ltmain to make .dll files, not .so files.
8796 shrext_cmds=".dll"
8797 # FIXME: Setting linknames here is a bad hack.
8798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8799 # The linker will automatically build a .lib file if we build a DLL.
8800 old_archive_from_new_cmds='true'
8801 # FIXME: Should let the user specify the lib program.
8802 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8803 fix_srcfile_path='`cygpath -w "$srcfile"`'
8804 enable_shared_with_static_runtimes=yes
8807 darwin* | rhapsody*)
8810 archive_cmds_need_lc=no
8811 hardcode_direct=no
8812 hardcode_automatic=yes
8813 hardcode_shlibpath_var=unsupported
8814 if test "$lt_cv_ld_force_load" = "yes"; then
8815 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\"`'
8816 else
8817 whole_archive_flag_spec=''
8819 link_all_deplibs=yes
8820 allow_undefined_flag="$_lt_dar_allow_undefined"
8821 case $cc_basename in
8822 ifort*) _lt_dar_can_shared=yes ;;
8823 *) _lt_dar_can_shared=$GCC ;;
8824 esac
8825 if test "$_lt_dar_can_shared" = "yes"; then
8826 output_verbose_link_cmd=func_echo_all
8827 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8828 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8829 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}"
8830 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}"
8832 else
8833 ld_shlibs=no
8838 dgux*)
8839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 hardcode_shlibpath_var=no
8844 freebsd1*)
8845 ld_shlibs=no
8848 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8849 # support. Future versions do this automatically, but an explicit c++rt0.o
8850 # does not break anything, and helps significantly (at the cost of a little
8851 # extra space).
8852 freebsd2.2*)
8853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8854 hardcode_libdir_flag_spec='-R$libdir'
8855 hardcode_direct=yes
8856 hardcode_shlibpath_var=no
8859 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8860 freebsd2*)
8861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8862 hardcode_direct=yes
8863 hardcode_minus_L=yes
8864 hardcode_shlibpath_var=no
8867 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8868 freebsd* | dragonfly*)
8869 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8870 hardcode_libdir_flag_spec='-R$libdir'
8871 hardcode_direct=yes
8872 hardcode_shlibpath_var=no
8875 hpux9*)
8876 if test "$GCC" = yes; then
8877 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'
8878 else
8879 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'
8881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8882 hardcode_libdir_separator=:
8883 hardcode_direct=yes
8885 # hardcode_minus_L: Not really in the search PATH,
8886 # but as the default location of the library.
8887 hardcode_minus_L=yes
8888 export_dynamic_flag_spec='${wl}-E'
8891 hpux10*)
8892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8894 else
8895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8897 if test "$with_gnu_ld" = no; then
8898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8899 hardcode_libdir_flag_spec_ld='+b $libdir'
8900 hardcode_libdir_separator=:
8901 hardcode_direct=yes
8902 hardcode_direct_absolute=yes
8903 export_dynamic_flag_spec='${wl}-E'
8904 # hardcode_minus_L: Not really in the search PATH,
8905 # but as the default location of the library.
8906 hardcode_minus_L=yes
8910 hpux11*)
8911 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8912 case $host_cpu in
8913 hppa*64*)
8914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8916 ia64*)
8917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8920 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8922 esac
8923 else
8924 case $host_cpu in
8925 hppa*64*)
8926 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 ia64*)
8929 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8933 # Older versions of the 11.00 compiler do not understand -b yet
8934 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8936 $as_echo_n "checking if $CC understands -b... " >&6; }
8937 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 lt_cv_prog_compiler__b=no
8941 save_LDFLAGS="$LDFLAGS"
8942 LDFLAGS="$LDFLAGS -b"
8943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8945 # The linker can only warn and ignore the option if not recognized
8946 # So say no if there are warnings
8947 if test -s conftest.err; then
8948 # Append any errors to the config.log.
8949 cat conftest.err 1>&5
8950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8952 if diff conftest.exp conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler__b=yes
8955 else
8956 lt_cv_prog_compiler__b=yes
8959 $RM -r conftest*
8960 LDFLAGS="$save_LDFLAGS"
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8964 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8966 if test x"$lt_cv_prog_compiler__b" = xyes; then
8967 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8968 else
8969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8973 esac
8975 if test "$with_gnu_ld" = no; then
8976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8977 hardcode_libdir_separator=:
8979 case $host_cpu in
8980 hppa*64*|ia64*)
8981 hardcode_direct=no
8982 hardcode_shlibpath_var=no
8985 hardcode_direct=yes
8986 hardcode_direct_absolute=yes
8987 export_dynamic_flag_spec='${wl}-E'
8989 # hardcode_minus_L: Not really in the search PATH,
8990 # but as the default location of the library.
8991 hardcode_minus_L=yes
8993 esac
8997 irix5* | irix6* | nonstopux*)
8998 if test "$GCC" = yes; then
8999 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'
9000 # Try to use the -exported_symbol ld option, if it does not
9001 # work, assume that -exports_file does not work either and
9002 # implicitly export all symbols.
9003 save_LDFLAGS="$LDFLAGS"
9004 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9005 if test x$gcc_no_link = xyes; then
9006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 int foo(void) {}
9011 _ACEOF
9012 if ac_fn_c_try_link "$LINENO"; then :
9013 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'
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 LDFLAGS="$save_LDFLAGS"
9019 else
9020 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'
9021 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'
9023 archive_cmds_need_lc='no'
9024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025 hardcode_libdir_separator=:
9026 inherit_rpath=yes
9027 link_all_deplibs=yes
9030 netbsd*)
9031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9033 else
9034 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9036 hardcode_libdir_flag_spec='-R$libdir'
9037 hardcode_direct=yes
9038 hardcode_shlibpath_var=no
9041 newsos6)
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_direct=yes
9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045 hardcode_libdir_separator=:
9046 hardcode_shlibpath_var=no
9049 *nto* | *qnx*)
9052 openbsd*)
9053 if test -f /usr/libexec/ld.so; then
9054 hardcode_direct=yes
9055 hardcode_shlibpath_var=no
9056 hardcode_direct_absolute=yes
9057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9061 export_dynamic_flag_spec='${wl}-E'
9062 else
9063 case $host_os in
9064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-R$libdir'
9069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9072 esac
9074 else
9075 ld_shlibs=no
9079 os2*)
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9082 allow_undefined_flag=unsupported
9083 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'
9084 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9087 osf3*)
9088 if test "$GCC" = yes; then
9089 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9090 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'
9091 else
9092 allow_undefined_flag=' -expect_unresolved \*'
9093 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'
9095 archive_cmds_need_lc='no'
9096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9097 hardcode_libdir_separator=:
9100 osf4* | osf5*) # as osf3* with the addition of -msym flag
9101 if test "$GCC" = yes; then
9102 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9103 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'
9104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9105 else
9106 allow_undefined_flag=' -expect_unresolved \*'
9107 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'
9108 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~
9109 $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'
9111 # Both c and cxx compiler support -rpath directly
9112 hardcode_libdir_flag_spec='-rpath $libdir'
9114 archive_cmds_need_lc='no'
9115 hardcode_libdir_separator=:
9118 solaris*)
9119 no_undefined_flag=' -z defs'
9120 if test "$GCC" = yes; then
9121 wlarc='${wl}'
9122 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9124 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9125 else
9126 case `$CC -V 2>&1` in
9127 *"Compilers 5.0"*)
9128 wlarc=''
9129 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9131 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9134 wlarc='${wl}'
9135 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9136 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9137 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9139 esac
9141 hardcode_libdir_flag_spec='-R$libdir'
9142 hardcode_shlibpath_var=no
9143 case $host_os in
9144 solaris2.[0-5] | solaris2.[0-5].*) ;;
9146 # The compiler driver will combine and reorder linker options,
9147 # but understands `-z linker_flag'. GCC discards it without `$wl',
9148 # but is careful enough not to reorder.
9149 # Supported since Solaris 2.6 (maybe 2.5.1?)
9150 if test "$GCC" = yes; then
9151 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9152 else
9153 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9156 esac
9157 link_all_deplibs=yes
9160 sunos4*)
9161 if test "x$host_vendor" = xsequent; then
9162 # Use $CC to link under sequent, because it throws in some extra .o
9163 # files that make .init and .fini sections work.
9164 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9165 else
9166 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9168 hardcode_libdir_flag_spec='-L$libdir'
9169 hardcode_direct=yes
9170 hardcode_minus_L=yes
9171 hardcode_shlibpath_var=no
9174 sysv4)
9175 case $host_vendor in
9176 sni)
9177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9178 hardcode_direct=yes # is this really true???
9180 siemens)
9181 ## LD is ld it makes a PLAMLIB
9182 ## CC just makes a GrossModule.
9183 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9184 reload_cmds='$CC -r -o $output$reload_objs'
9185 hardcode_direct=no
9187 motorola)
9188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9189 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9191 esac
9192 runpath_var='LD_RUN_PATH'
9193 hardcode_shlibpath_var=no
9196 sysv4.3*)
9197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9198 hardcode_shlibpath_var=no
9199 export_dynamic_flag_spec='-Bexport'
9202 sysv4*MP*)
9203 if test -d /usr/nec; then
9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9205 hardcode_shlibpath_var=no
9206 runpath_var=LD_RUN_PATH
9207 hardcode_runpath_var=yes
9208 ld_shlibs=yes
9212 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9213 no_undefined_flag='${wl}-z,text'
9214 archive_cmds_need_lc=no
9215 hardcode_shlibpath_var=no
9216 runpath_var='LD_RUN_PATH'
9218 if test "$GCC" = yes; then
9219 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9221 else
9222 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9227 sysv5* | sco3.2v5* | sco5v6*)
9228 # Note: We can NOT use -z defs as we might desire, because we do not
9229 # link with -lc, and that would cause any symbols used from libc to
9230 # always be unresolved, which means just about no library would
9231 # ever link correctly. If we're not using GNU ld we use -z text
9232 # though, which does catch some bad symbols but isn't as heavy-handed
9233 # as -z defs.
9234 no_undefined_flag='${wl}-z,text'
9235 allow_undefined_flag='${wl}-z,nodefs'
9236 archive_cmds_need_lc=no
9237 hardcode_shlibpath_var=no
9238 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9239 hardcode_libdir_separator=':'
9240 link_all_deplibs=yes
9241 export_dynamic_flag_spec='${wl}-Bexport'
9242 runpath_var='LD_RUN_PATH'
9244 if test "$GCC" = yes; then
9245 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9246 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 else
9248 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9249 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 uts4*)
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_shlibpath_var=no
9260 ld_shlibs=no
9262 esac
9264 if test x$host_vendor = xsni; then
9265 case $host in
9266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9267 export_dynamic_flag_spec='${wl}-Blargedynsym'
9269 esac
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9274 $as_echo "$ld_shlibs" >&6; }
9275 test "$ld_shlibs" = no && can_build_shared=no
9277 with_gnu_ld=$with_gnu_ld
9294 # Do we need to explicitly link libc?
9296 case "x$archive_cmds_need_lc" in
9297 x|xyes)
9298 # Assume -lc should be added
9299 archive_cmds_need_lc=yes
9301 if test "$enable_shared" = yes && test "$GCC" = yes; then
9302 case $archive_cmds in
9303 *'~'*)
9304 # FIXME: we may have to deal with multi-command sequences.
9306 '$CC '*)
9307 # Test whether the compiler implicitly links with -lc since on some
9308 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9309 # to ld, don't add -lc before -lgcc.
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9311 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9312 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 $RM conftest*
9316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9319 (eval $ac_compile) 2>&5
9320 ac_status=$?
9321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9322 test $ac_status = 0; } 2>conftest.err; then
9323 soname=conftest
9324 lib=conftest
9325 libobjs=conftest.$ac_objext
9326 deplibs=
9327 wl=$lt_prog_compiler_wl
9328 pic_flag=$lt_prog_compiler_pic
9329 compiler_flags=-v
9330 linker_flags=-v
9331 verstring=
9332 output_objdir=.
9333 libname=conftest
9334 lt_save_allow_undefined_flag=$allow_undefined_flag
9335 allow_undefined_flag=
9336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9337 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9338 ac_status=$?
9339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9340 test $ac_status = 0; }
9341 then
9342 lt_cv_archive_cmds_need_lc=no
9343 else
9344 lt_cv_archive_cmds_need_lc=yes
9346 allow_undefined_flag=$lt_save_allow_undefined_flag
9347 else
9348 cat conftest.err 1>&5
9350 $RM conftest*
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9354 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9355 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9357 esac
9360 esac
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9519 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9521 if test "$GCC" = yes; then
9522 case $host_os in
9523 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9524 *) lt_awk_arg="/^libraries:/" ;;
9525 esac
9526 case $host_os in
9527 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9528 *) lt_sed_strip_eq="s,=/,/,g" ;;
9529 esac
9530 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9531 case $lt_search_path_spec in
9532 *\;*)
9533 # if the path contains ";" then we assume it to be the separator
9534 # otherwise default to the standard path separator (i.e. ":") - it is
9535 # assumed that no part of a normal pathname contains ";" but that should
9536 # okay in the real world where ";" in dirpaths is itself problematic.
9537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9542 esac
9543 # Ok, now we have the path, separated by spaces, we can step through it
9544 # and add multilib dir if necessary.
9545 lt_tmp_lt_search_path_spec=
9546 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9547 for lt_sys_path in $lt_search_path_spec; do
9548 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9550 else
9551 test -d "$lt_sys_path" && \
9552 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9554 done
9555 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9556 BEGIN {RS=" "; FS="/|\n";} {
9557 lt_foo="";
9558 lt_count=0;
9559 for (lt_i = NF; lt_i > 0; lt_i--) {
9560 if ($lt_i != "" && $lt_i != ".") {
9561 if ($lt_i == "..") {
9562 lt_count++;
9563 } else {
9564 if (lt_count == 0) {
9565 lt_foo="/" $lt_i lt_foo;
9566 } else {
9567 lt_count--;
9572 if (lt_foo != "") { lt_freq[lt_foo]++; }
9573 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9575 # AWK program above erroneously prepends '/' to C:/dos/paths
9576 # for these hosts.
9577 case $host_os in
9578 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9579 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9580 esac
9581 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9582 else
9583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9585 library_names_spec=
9586 libname_spec='lib$name'
9587 soname_spec=
9588 shrext_cmds=".so"
9589 postinstall_cmds=
9590 postuninstall_cmds=
9591 finish_cmds=
9592 finish_eval=
9593 shlibpath_var=
9594 shlibpath_overrides_runpath=unknown
9595 version_type=none
9596 dynamic_linker="$host_os ld.so"
9597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9598 need_lib_prefix=unknown
9599 hardcode_into_libs=no
9601 # when you set need_version to no, make sure it does not cause -set_version
9602 # flags to be left without arguments
9603 need_version=unknown
9605 case $host_os in
9606 aix3*)
9607 version_type=linux
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9609 shlibpath_var=LIBPATH
9611 # AIX 3 has no versioning support, so we append a major version to the name.
9612 soname_spec='${libname}${release}${shared_ext}$major'
9615 aix[4-9]*)
9616 version_type=linux
9617 need_lib_prefix=no
9618 need_version=no
9619 hardcode_into_libs=yes
9620 if test "$host_cpu" = ia64; then
9621 # AIX 5 supports IA64
9622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 else
9625 # With GCC up to 2.95.x, collect2 would create an import file
9626 # for dependence libraries. The import file would start with
9627 # the line `#! .'. This would cause the generated library to
9628 # depend on `.', always an invalid library. This was fixed in
9629 # development snapshots of GCC prior to 3.0.
9630 case $host_os in
9631 aix4 | aix4.[01] | aix4.[01].*)
9632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9633 echo ' yes '
9634 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9636 else
9637 can_build_shared=no
9640 esac
9641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9642 # soname into executable. Probably we can add versioning support to
9643 # collect2, so additional links can be useful in future.
9644 if test "$aix_use_runtimelinking" = yes; then
9645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9646 # instead of lib<name>.a to let people know that these are not
9647 # typical AIX shared libraries.
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649 else
9650 # We preserve .a as extension for shared libraries through AIX4.2
9651 # and later when we are not doing run time linking.
9652 library_names_spec='${libname}${release}.a $libname.a'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9655 shlibpath_var=LIBPATH
9659 amigaos*)
9660 case $host_cpu in
9661 powerpc)
9662 # Since July 2007 AmigaOS4 officially supports .so libraries.
9663 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 m68k)
9667 library_names_spec='$libname.ixlibrary $libname.a'
9668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9669 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'
9671 esac
9674 beos*)
9675 library_names_spec='${libname}${shared_ext}'
9676 dynamic_linker="$host_os ld.so"
9677 shlibpath_var=LIBRARY_PATH
9680 bsdi[45]*)
9681 version_type=linux
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9688 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9689 # the default ld.so.conf also contains /usr/contrib/lib and
9690 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9691 # libtool to hard-code these into programs
9694 cygwin* | mingw* | pw32* | cegcc*)
9695 version_type=windows
9696 shrext_cmds=".dll"
9697 need_version=no
9698 need_lib_prefix=no
9700 case $GCC,$host_os in
9701 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9702 library_names_spec='$libname.dll.a'
9703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9704 postinstall_cmds='base_file=`basename \${file}`~
9705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9706 dldir=$destdir/`dirname \$dlpath`~
9707 test -d \$dldir || mkdir -p \$dldir~
9708 $install_prog $dir/$dlname \$dldir/$dlname~
9709 chmod a+x \$dldir/$dlname~
9710 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9711 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9714 dlpath=$dir/\$dldll~
9715 $RM \$dlpath'
9716 shlibpath_overrides_runpath=yes
9718 case $host_os in
9719 cygwin*)
9720 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9721 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9723 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9725 mingw* | cegcc*)
9726 # MinGW DLLs use traditional 'lib' prefix
9727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9729 pw32*)
9730 # pw32 DLLs use 'pw' prefix rather than 'lib'
9731 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9733 esac
9737 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9739 esac
9740 dynamic_linker='Win32 ld.exe'
9741 # FIXME: first we should search . and the directory the executable is in
9742 shlibpath_var=PATH
9745 darwin* | rhapsody*)
9746 dynamic_linker="$host_os dyld"
9747 version_type=darwin
9748 need_lib_prefix=no
9749 need_version=no
9750 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9751 soname_spec='${libname}${release}${major}$shared_ext'
9752 shlibpath_overrides_runpath=yes
9753 shlibpath_var=DYLD_LIBRARY_PATH
9754 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9756 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9760 dgux*)
9761 version_type=linux
9762 need_lib_prefix=no
9763 need_version=no
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 shlibpath_var=LD_LIBRARY_PATH
9769 freebsd1*)
9770 dynamic_linker=no
9773 freebsd* | dragonfly*)
9774 # DragonFly does not have aout. When/if they implement a new
9775 # versioning mechanism, adjust this.
9776 if test -x /usr/bin/objformat; then
9777 objformat=`/usr/bin/objformat`
9778 else
9779 case $host_os in
9780 freebsd[123]*) objformat=aout ;;
9781 *) objformat=elf ;;
9782 esac
9784 version_type=freebsd-$objformat
9785 case $version_type in
9786 freebsd-elf*)
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9788 need_version=no
9789 need_lib_prefix=no
9791 freebsd-*)
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9793 need_version=yes
9795 esac
9796 shlibpath_var=LD_LIBRARY_PATH
9797 case $host_os in
9798 freebsd2*)
9799 shlibpath_overrides_runpath=yes
9801 freebsd3.[01]* | freebsdelf3.[01]*)
9802 shlibpath_overrides_runpath=yes
9803 hardcode_into_libs=yes
9805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9807 shlibpath_overrides_runpath=no
9808 hardcode_into_libs=yes
9810 *) # from 4.6 on, and DragonFly
9811 shlibpath_overrides_runpath=yes
9812 hardcode_into_libs=yes
9814 esac
9817 gnu*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 hardcode_into_libs=yes
9827 haiku*)
9828 version_type=linux
9829 need_lib_prefix=no
9830 need_version=no
9831 dynamic_linker="$host_os runtime_loader"
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LIBRARY_PATH
9835 shlibpath_overrides_runpath=yes
9836 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9837 hardcode_into_libs=yes
9840 hpux9* | hpux10* | hpux11*)
9841 # Give a soname corresponding to the major version so that dld.sl refuses to
9842 # link against other versions.
9843 version_type=sunos
9844 need_lib_prefix=no
9845 need_version=no
9846 case $host_cpu in
9847 ia64*)
9848 shrext_cmds='.so'
9849 hardcode_into_libs=yes
9850 dynamic_linker="$host_os dld.so"
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 if test "X$HPUX_IA64_MODE" = X32; then
9856 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9857 else
9858 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9862 hppa*64*)
9863 shrext_cmds='.sl'
9864 hardcode_into_libs=yes
9865 dynamic_linker="$host_os dld.sl"
9866 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9874 shrext_cmds='.sl'
9875 dynamic_linker="$host_os dld.sl"
9876 shlibpath_var=SHLIB_PATH
9877 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9881 esac
9882 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9883 postinstall_cmds='chmod 555 $lib'
9884 # or fails outright, so override atomically:
9885 install_override_mode=555
9888 interix[3-9]*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9900 irix5* | irix6* | nonstopux*)
9901 case $host_os in
9902 nonstopux*) version_type=nonstopux ;;
9904 if test "$lt_cv_prog_gnu_ld" = yes; then
9905 version_type=linux
9906 else
9907 version_type=irix
9908 fi ;;
9909 esac
9910 need_lib_prefix=no
9911 need_version=no
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9914 case $host_os in
9915 irix5* | nonstopux*)
9916 libsuff= shlibsuff=
9919 case $LD in # libtool.m4 will add one of these switches to LD
9920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9921 libsuff= shlibsuff= libmagic=32-bit;;
9922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9923 libsuff=32 shlibsuff=N32 libmagic=N32;;
9924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9926 *) libsuff= shlibsuff= libmagic=never-match;;
9927 esac
9929 esac
9930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9931 shlibpath_overrides_runpath=no
9932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9934 hardcode_into_libs=yes
9937 # No shared lib support for Linux oldld, aout, or coff.
9938 linux*oldld* | linux*aout* | linux*coff*)
9939 dynamic_linker=no
9942 # This must be Linux ELF.
9943 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9944 version_type=linux
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 shlibpath_overrides_runpath=no
9953 # Some binutils ld are patched to set DT_RUNPATH
9954 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 lt_cv_shlibpath_overrides_runpath=no
9958 save_LDFLAGS=$LDFLAGS
9959 save_libdir=$libdir
9960 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9961 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9962 if test x$gcc_no_link = xyes; then
9963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9969 main ()
9973 return 0;
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9978 lt_cv_shlibpath_overrides_runpath=yes
9981 rm -f core conftest.err conftest.$ac_objext \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LDFLAGS=$save_LDFLAGS
9984 libdir=$save_libdir
9988 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9990 # This implies no fast_install, which is unacceptable.
9991 # Some rework will be needed to allow for fast_install
9992 # before this can be enabled.
9993 hardcode_into_libs=yes
9995 # Append ld.so.conf contents to the search path
9996 if test -f /etc/ld.so.conf; then
9997 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' ' '`
9998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10001 # We used to test for /lib/ld.so.1 and disable shared libraries on
10002 # powerpc, because MkLinux only supported shared libraries with the
10003 # GNU dynamic linker. Since this was broken with cross compilers,
10004 # most powerpc-linux boxes support dynamic linking these days and
10005 # people can always --disable-shared, the test was removed, and we
10006 # assume the GNU/Linux dynamic linker is in use.
10007 dynamic_linker='GNU/Linux ld.so'
10010 netbsd*)
10011 version_type=sunos
10012 need_lib_prefix=no
10013 need_version=no
10014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10017 dynamic_linker='NetBSD (a.out) ld.so'
10018 else
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 dynamic_linker='NetBSD ld.elf_so'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 shlibpath_overrides_runpath=yes
10025 hardcode_into_libs=yes
10028 newsos6)
10029 version_type=linux
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes
10035 *nto* | *qnx*)
10036 version_type=qnx
10037 need_lib_prefix=no
10038 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath=no
10043 hardcode_into_libs=yes
10044 dynamic_linker='ldqnx.so'
10047 openbsd*)
10048 version_type=sunos
10049 sys_lib_dlsearch_path_spec="/usr/lib"
10050 need_lib_prefix=no
10051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10052 case $host_os in
10053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10054 *) need_version=no ;;
10055 esac
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10060 case $host_os in
10061 openbsd2.[89] | openbsd2.[89].*)
10062 shlibpath_overrides_runpath=no
10065 shlibpath_overrides_runpath=yes
10067 esac
10068 else
10069 shlibpath_overrides_runpath=yes
10073 os2*)
10074 libname_spec='$name'
10075 shrext_cmds=".dll"
10076 need_lib_prefix=no
10077 library_names_spec='$libname${shared_ext} $libname.a'
10078 dynamic_linker='OS/2 ld.exe'
10079 shlibpath_var=LIBPATH
10082 osf3* | osf4* | osf5*)
10083 version_type=osf
10084 need_lib_prefix=no
10085 need_version=no
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10093 rdos*)
10094 dynamic_linker=no
10097 solaris*)
10098 version_type=linux
10099 need_lib_prefix=no
10100 need_version=no
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes
10105 hardcode_into_libs=yes
10106 # ldd complains unless libraries are executable
10107 postinstall_cmds='chmod +x $lib'
10110 sunos4*)
10111 version_type=sunos
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=yes
10116 if test "$with_gnu_ld" = yes; then
10117 need_lib_prefix=no
10119 need_version=yes
10122 sysv4 | sysv4.3*)
10123 version_type=linux
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 case $host_vendor in
10128 sni)
10129 shlibpath_overrides_runpath=no
10130 need_lib_prefix=no
10131 runpath_var=LD_RUN_PATH
10133 siemens)
10134 need_lib_prefix=no
10136 motorola)
10137 need_lib_prefix=no
10138 need_version=no
10139 shlibpath_overrides_runpath=no
10140 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10142 esac
10145 sysv4*MP*)
10146 if test -d /usr/nec ;then
10147 version_type=linux
10148 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10149 soname_spec='$libname${shared_ext}.$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10155 version_type=freebsd-elf
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 shlibpath_overrides_runpath=yes
10162 hardcode_into_libs=yes
10163 if test "$with_gnu_ld" = yes; then
10164 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10165 else
10166 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10167 case $host_os in
10168 sco3.2v5*)
10169 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10171 esac
10173 sys_lib_dlsearch_path_spec='/usr/lib'
10176 tpf*)
10177 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10178 version_type=linux
10179 need_lib_prefix=no
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10187 uts4*)
10188 version_type=linux
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 shlibpath_var=LD_LIBRARY_PATH
10195 dynamic_linker=no
10197 esac
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10199 $as_echo "$dynamic_linker" >&6; }
10200 test "$dynamic_linker" = no && can_build_shared=no
10202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10203 if test "$GCC" = yes; then
10204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10208 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10210 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10307 hardcode_action=
10308 if test -n "$hardcode_libdir_flag_spec" ||
10309 test -n "$runpath_var" ||
10310 test "X$hardcode_automatic" = "Xyes" ; then
10312 # We can hardcode non-existent directories.
10313 if test "$hardcode_direct" != no &&
10314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10315 # have to relink, otherwise we might link with an installed library
10316 # when we should be linking with a yet-to-be-installed one
10317 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10318 test "$hardcode_minus_L" != no; then
10319 # Linking always hardcodes the temporary library directory.
10320 hardcode_action=relink
10321 else
10322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10323 hardcode_action=immediate
10325 else
10326 # We cannot hardcode anything, or else we can only hardcode existing
10327 # directories.
10328 hardcode_action=unsupported
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10331 $as_echo "$hardcode_action" >&6; }
10333 if test "$hardcode_action" = relink ||
10334 test "$inherit_rpath" = yes; then
10335 # Fast installation is not supported
10336 enable_fast_install=no
10337 elif test "$shlibpath_overrides_runpath" = yes ||
10338 test "$enable_shared" = no; then
10339 # Fast installation is not necessary
10340 enable_fast_install=needless
10348 if test "x$enable_dlopen" != xyes; then
10349 enable_dlopen=unknown
10350 enable_dlopen_self=unknown
10351 enable_dlopen_self_static=unknown
10352 else
10353 lt_cv_dlopen=no
10354 lt_cv_dlopen_libs=
10356 case $host_os in
10357 beos*)
10358 lt_cv_dlopen="load_add_on"
10359 lt_cv_dlopen_libs=
10360 lt_cv_dlopen_self=yes
10363 mingw* | pw32* | cegcc*)
10364 lt_cv_dlopen="LoadLibrary"
10365 lt_cv_dlopen_libs=
10368 cygwin*)
10369 lt_cv_dlopen="dlopen"
10370 lt_cv_dlopen_libs=
10373 darwin*)
10374 # if libdl is installed we need to link against it
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10377 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-ldl $LIBS"
10382 if test x$gcc_no_link = xyes; then
10383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10388 /* Override any GCC internal prototype to avoid an error.
10389 Use char because int might match the return type of a GCC
10390 builtin and then its argument prototype would still apply. */
10391 #ifdef __cplusplus
10392 extern "C"
10393 #endif
10394 char dlopen ();
10396 main ()
10398 return dlopen ();
10400 return 0;
10402 _ACEOF
10403 if ac_fn_c_try_link "$LINENO"; then :
10404 ac_cv_lib_dl_dlopen=yes
10405 else
10406 ac_cv_lib_dl_dlopen=no
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 LIBS=$ac_check_lib_save_LIBS
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10414 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10416 else
10418 lt_cv_dlopen="dyld"
10419 lt_cv_dlopen_libs=
10420 lt_cv_dlopen_self=yes
10427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10428 if test "x$ac_cv_func_shl_load" = x""yes; then :
10429 lt_cv_dlopen="shl_load"
10430 else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-ldld $LIBS"
10438 if test x$gcc_no_link = xyes; then
10439 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 /* Override any GCC internal prototype to avoid an error.
10445 Use char because int might match the return type of a GCC
10446 builtin and then its argument prototype would still apply. */
10447 #ifdef __cplusplus
10448 extern "C"
10449 #endif
10450 char shl_load ();
10452 main ()
10454 return shl_load ();
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 ac_cv_lib_dld_shl_load=yes
10461 else
10462 ac_cv_lib_dld_shl_load=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 LIBS=$ac_check_lib_save_LIBS
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10469 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10470 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10471 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10472 else
10473 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10474 if test "x$ac_cv_func_dlopen" = x""yes; then :
10475 lt_cv_dlopen="dlopen"
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10478 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 ac_check_lib_save_LIBS=$LIBS
10483 LIBS="-ldl $LIBS"
10484 if test x$gcc_no_link = xyes; then
10485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10490 /* Override any GCC internal prototype to avoid an error.
10491 Use char because int might match the return type of a GCC
10492 builtin and then its argument prototype would still apply. */
10493 #ifdef __cplusplus
10494 extern "C"
10495 #endif
10496 char dlopen ();
10498 main ()
10500 return dlopen ();
10502 return 0;
10504 _ACEOF
10505 if ac_fn_c_try_link "$LINENO"; then :
10506 ac_cv_lib_dl_dlopen=yes
10507 else
10508 ac_cv_lib_dl_dlopen=no
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10516 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10520 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10521 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-lsvld $LIBS"
10526 if test x$gcc_no_link = xyes; then
10527 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10532 /* Override any GCC internal prototype to avoid an error.
10533 Use char because int might match the return type of a GCC
10534 builtin and then its argument prototype would still apply. */
10535 #ifdef __cplusplus
10536 extern "C"
10537 #endif
10538 char dlopen ();
10540 main ()
10542 return dlopen ();
10544 return 0;
10546 _ACEOF
10547 if ac_fn_c_try_link "$LINENO"; then :
10548 ac_cv_lib_svld_dlopen=yes
10549 else
10550 ac_cv_lib_svld_dlopen=no
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554 LIBS=$ac_check_lib_save_LIBS
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10557 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10558 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10562 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10563 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-ldld $LIBS"
10568 if test x$gcc_no_link = xyes; then
10569 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10577 #ifdef __cplusplus
10578 extern "C"
10579 #endif
10580 char dld_link ();
10582 main ()
10584 return dld_link ();
10586 return 0;
10588 _ACEOF
10589 if ac_fn_c_try_link "$LINENO"; then :
10590 ac_cv_lib_dld_dld_link=yes
10591 else
10592 ac_cv_lib_dld_dld_link=no
10594 rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 LIBS=$ac_check_lib_save_LIBS
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10599 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10600 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10601 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10620 esac
10622 if test "x$lt_cv_dlopen" != xno; then
10623 enable_dlopen=yes
10624 else
10625 enable_dlopen=no
10628 case $lt_cv_dlopen in
10629 dlopen)
10630 save_CPPFLAGS="$CPPFLAGS"
10631 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10633 save_LDFLAGS="$LDFLAGS"
10634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10636 save_LIBS="$LIBS"
10637 LIBS="$lt_cv_dlopen_libs $LIBS"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10640 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10641 if test "${lt_cv_dlopen_self+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 if test "$cross_compiling" = yes; then :
10645 lt_cv_dlopen_self=cross
10646 else
10647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10648 lt_status=$lt_dlunknown
10649 cat > conftest.$ac_ext <<_LT_EOF
10650 #line 10650 "configure"
10651 #include "confdefs.h"
10653 #if HAVE_DLFCN_H
10654 #include <dlfcn.h>
10655 #endif
10657 #include <stdio.h>
10659 #ifdef RTLD_GLOBAL
10660 # define LT_DLGLOBAL RTLD_GLOBAL
10661 #else
10662 # ifdef DL_GLOBAL
10663 # define LT_DLGLOBAL DL_GLOBAL
10664 # else
10665 # define LT_DLGLOBAL 0
10666 # endif
10667 #endif
10669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10670 find out it does not work in some platform. */
10671 #ifndef LT_DLLAZY_OR_NOW
10672 # ifdef RTLD_LAZY
10673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10674 # else
10675 # ifdef DL_LAZY
10676 # define LT_DLLAZY_OR_NOW DL_LAZY
10677 # else
10678 # ifdef RTLD_NOW
10679 # define LT_DLLAZY_OR_NOW RTLD_NOW
10680 # else
10681 # ifdef DL_NOW
10682 # define LT_DLLAZY_OR_NOW DL_NOW
10683 # else
10684 # define LT_DLLAZY_OR_NOW 0
10685 # endif
10686 # endif
10687 # endif
10688 # endif
10689 #endif
10691 /* When -fvisbility=hidden is used, assume the code has been annotated
10692 correspondingly for the symbols needed. */
10693 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10694 void fnord () __attribute__((visibility("default")));
10695 #endif
10697 void fnord () { int i=42; }
10698 int main ()
10700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10701 int status = $lt_dlunknown;
10703 if (self)
10705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10706 else
10708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10709 else puts (dlerror ());
10711 /* dlclose (self); */
10713 else
10714 puts (dlerror ());
10716 return status;
10718 _LT_EOF
10719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10720 (eval $ac_link) 2>&5
10721 ac_status=$?
10722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10724 (./conftest; exit; ) >&5 2>/dev/null
10725 lt_status=$?
10726 case x$lt_status in
10727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10729 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10730 esac
10731 else :
10732 # compilation failed
10733 lt_cv_dlopen_self=no
10736 rm -fr conftest*
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10741 $as_echo "$lt_cv_dlopen_self" >&6; }
10743 if test "x$lt_cv_dlopen_self" = xyes; then
10744 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10746 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10747 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 if test "$cross_compiling" = yes; then :
10751 lt_cv_dlopen_self_static=cross
10752 else
10753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10754 lt_status=$lt_dlunknown
10755 cat > conftest.$ac_ext <<_LT_EOF
10756 #line 10756 "configure"
10757 #include "confdefs.h"
10759 #if HAVE_DLFCN_H
10760 #include <dlfcn.h>
10761 #endif
10763 #include <stdio.h>
10765 #ifdef RTLD_GLOBAL
10766 # define LT_DLGLOBAL RTLD_GLOBAL
10767 #else
10768 # ifdef DL_GLOBAL
10769 # define LT_DLGLOBAL DL_GLOBAL
10770 # else
10771 # define LT_DLGLOBAL 0
10772 # endif
10773 #endif
10775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10776 find out it does not work in some platform. */
10777 #ifndef LT_DLLAZY_OR_NOW
10778 # ifdef RTLD_LAZY
10779 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10780 # else
10781 # ifdef DL_LAZY
10782 # define LT_DLLAZY_OR_NOW DL_LAZY
10783 # else
10784 # ifdef RTLD_NOW
10785 # define LT_DLLAZY_OR_NOW RTLD_NOW
10786 # else
10787 # ifdef DL_NOW
10788 # define LT_DLLAZY_OR_NOW DL_NOW
10789 # else
10790 # define LT_DLLAZY_OR_NOW 0
10791 # endif
10792 # endif
10793 # endif
10794 # endif
10795 #endif
10797 /* When -fvisbility=hidden is used, assume the code has been annotated
10798 correspondingly for the symbols needed. */
10799 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10800 void fnord () __attribute__((visibility("default")));
10801 #endif
10803 void fnord () { int i=42; }
10804 int main ()
10806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10807 int status = $lt_dlunknown;
10809 if (self)
10811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10812 else
10814 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10815 else puts (dlerror ());
10817 /* dlclose (self); */
10819 else
10820 puts (dlerror ());
10822 return status;
10824 _LT_EOF
10825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10826 (eval $ac_link) 2>&5
10827 ac_status=$?
10828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10830 (./conftest; exit; ) >&5 2>/dev/null
10831 lt_status=$?
10832 case x$lt_status in
10833 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10834 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10835 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10836 esac
10837 else :
10838 # compilation failed
10839 lt_cv_dlopen_self_static=no
10842 rm -fr conftest*
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10847 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10850 CPPFLAGS="$save_CPPFLAGS"
10851 LDFLAGS="$save_LDFLAGS"
10852 LIBS="$save_LIBS"
10854 esac
10856 case $lt_cv_dlopen_self in
10857 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10858 *) enable_dlopen_self=unknown ;;
10859 esac
10861 case $lt_cv_dlopen_self_static in
10862 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10863 *) enable_dlopen_self_static=unknown ;;
10864 esac
10883 striplib=
10884 old_striplib=
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10886 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10887 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10888 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10889 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10891 $as_echo "yes" >&6; }
10892 else
10893 # FIXME - insert some real tests, host_os isn't really good enough
10894 case $host_os in
10895 darwin*)
10896 if test -n "$STRIP" ; then
10897 striplib="$STRIP -x"
10898 old_striplib="$STRIP -S"
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10900 $as_echo "yes" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10910 esac
10924 # Report which library types will actually be built
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10926 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10928 $as_echo "$can_build_shared" >&6; }
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10931 $as_echo_n "checking whether to build shared libraries... " >&6; }
10932 test "$can_build_shared" = "no" && enable_shared=no
10934 # On AIX, shared libraries and static libraries use the same namespace, and
10935 # are all built from PIC.
10936 case $host_os in
10937 aix3*)
10938 test "$enable_shared" = yes && enable_static=no
10939 if test -n "$RANLIB"; then
10940 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10941 postinstall_cmds='$RANLIB $lib'
10945 aix[4-9]*)
10946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10947 test "$enable_shared" = yes && enable_static=no
10950 esac
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10952 $as_echo "$enable_shared" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10955 $as_echo_n "checking whether to build static libraries... " >&6; }
10956 # Make sure either enable_shared or enable_static is yes.
10957 test "$enable_shared" = yes || enable_static=yes
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10959 $as_echo "$enable_static" >&6; }
10965 ac_ext=c
10966 ac_cpp='$CPP $CPPFLAGS'
10967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10971 CC="$lt_save_CC"
10985 ac_config_commands="$ac_config_commands libtool"
10990 # Only expand once:
10996 case $host in
10997 *-cygwin* | *-mingw*)
10998 # 'host' will be top-level target in the case of a target lib,
10999 # we must compare to with_cross_host to decide if this is a native
11000 # or cross-compiler and select where to install dlls appropriately.
11001 if test -n "$with_cross_host" &&
11002 test x"$with_cross_host" != x"no"; then
11003 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11004 else
11005 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11009 lt_host_flags=
11011 esac
11018 # Calculate toolexeclibdir
11019 # Also toolexecdir, though it's only used in toolexeclibdir
11020 case ${version_specific_libs} in
11021 yes)
11022 # Need the gcc compiler version to know where to install libraries
11023 # and header files if --enable-version-specific-runtime-libs option
11024 # is selected.
11025 toolexecdir='$(libdir)/gcc/$(target_alias)'
11026 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11029 if test -n "$with_cross_host" &&
11030 test x"$with_cross_host" != x"no"; then
11031 # Install a library built with a cross compiler in tooldir, not libdir.
11032 toolexecdir='$(exec_prefix)/$(target_alias)'
11033 toolexeclibdir='$(toolexecdir)/lib'
11034 else
11035 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11036 toolexeclibdir='$(libdir)'
11038 multi_os_directory=`$CC -print-multi-os-directory`
11039 case $multi_os_directory in
11040 .) ;; # Avoid trailing /.
11041 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11042 esac
11044 esac
11048 if test ${multilib} = yes; then
11049 multilib_arg="--enable-multilib"
11050 else
11051 multilib_arg=
11054 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
11056 cat >confcache <<\_ACEOF
11057 # This file is a shell script that caches the results of configure
11058 # tests run on this system so they can be shared between configure
11059 # scripts and configure runs, see configure's option --config-cache.
11060 # It is not useful on other systems. If it contains results you don't
11061 # want to keep, you may remove or edit it.
11063 # config.status only pays attention to the cache file if you give it
11064 # the --recheck option to rerun configure.
11066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11068 # following values.
11070 _ACEOF
11072 # The following way of writing the cache mishandles newlines in values,
11073 # but we know of no workaround that is simple, portable, and efficient.
11074 # So, we kill variables containing newlines.
11075 # Ultrix sh set writes to stderr and can't be redirected directly,
11076 # and sets the high bit in the cache file unless we assign to the vars.
11078 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11079 eval ac_val=\$$ac_var
11080 case $ac_val in #(
11081 *${as_nl}*)
11082 case $ac_var in #(
11083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11084 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11085 esac
11086 case $ac_var in #(
11087 _ | IFS | as_nl) ;; #(
11088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11089 *) { eval $ac_var=; unset $ac_var;} ;;
11090 esac ;;
11091 esac
11092 done
11094 (set) 2>&1 |
11095 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11096 *${as_nl}ac_space=\ *)
11097 # `set' does not quote correctly, so add quotes: double-quote
11098 # substitution turns \\\\ into \\, and sed turns \\ into \.
11099 sed -n \
11100 "s/'/'\\\\''/g;
11101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11102 ;; #(
11104 # `set' quotes correctly as required by POSIX, so do not add quotes.
11105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11107 esac |
11108 sort
11110 sed '
11111 /^ac_cv_env_/b end
11112 t clear
11113 :clear
11114 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11115 t end
11116 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11117 :end' >>confcache
11118 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11119 if test -w "$cache_file"; then
11120 test "x$cache_file" != "x/dev/null" &&
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11122 $as_echo "$as_me: updating cache $cache_file" >&6;}
11123 cat confcache >$cache_file
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11129 rm -f confcache
11131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11132 # Let make expand exec_prefix.
11133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11135 DEFS=-DHAVE_CONFIG_H
11137 ac_libobjs=
11138 ac_ltlibobjs=
11139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11140 # 1. Remove the extension, and $U if already installed.
11141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11142 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11144 # will be set to the directory where LIBOBJS objects are built.
11145 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11146 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11147 done
11148 LIBOBJS=$ac_libobjs
11150 LTLIBOBJS=$ac_ltlibobjs
11153 if test -n "$EXEEXT"; then
11154 am__EXEEXT_TRUE=
11155 am__EXEEXT_FALSE='#'
11156 else
11157 am__EXEEXT_TRUE='#'
11158 am__EXEEXT_FALSE=
11161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11162 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11165 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11166 as_fn_error "conditional \"AMDEP\" was never defined.
11167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11169 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11170 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11173 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
11174 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
11175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11177 if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then
11178 as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined.
11179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11181 if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then
11182 as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined.
11183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11186 : ${CONFIG_STATUS=./config.status}
11187 ac_write_fail=0
11188 ac_clean_files_save=$ac_clean_files
11189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11192 as_write_fail=0
11193 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11194 #! $SHELL
11195 # Generated by $as_me.
11196 # Run this file to recreate the current configuration.
11197 # Compiler output produced by configure, useful for debugging
11198 # configure, is in config.log if it exists.
11200 debug=false
11201 ac_cs_recheck=false
11202 ac_cs_silent=false
11204 SHELL=\${CONFIG_SHELL-$SHELL}
11205 export SHELL
11206 _ASEOF
11207 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11208 ## -------------------- ##
11209 ## M4sh Initialization. ##
11210 ## -------------------- ##
11212 # Be more Bourne compatible
11213 DUALCASE=1; export DUALCASE # for MKS sh
11214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11215 emulate sh
11216 NULLCMD=:
11217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11218 # is contrary to our usage. Disable this feature.
11219 alias -g '${1+"$@"}'='"$@"'
11220 setopt NO_GLOB_SUBST
11221 else
11222 case `(set -o) 2>/dev/null` in #(
11223 *posix*) :
11224 set -o posix ;; #(
11225 *) :
11227 esac
11231 as_nl='
11233 export as_nl
11234 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11235 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11236 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11238 # Prefer a ksh shell builtin over an external printf program on Solaris,
11239 # but without wasting forks for bash or zsh.
11240 if test -z "$BASH_VERSION$ZSH_VERSION" \
11241 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11242 as_echo='print -r --'
11243 as_echo_n='print -rn --'
11244 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11245 as_echo='printf %s\n'
11246 as_echo_n='printf %s'
11247 else
11248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11250 as_echo_n='/usr/ucb/echo -n'
11251 else
11252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11253 as_echo_n_body='eval
11254 arg=$1;
11255 case $arg in #(
11256 *"$as_nl"*)
11257 expr "X$arg" : "X\\(.*\\)$as_nl";
11258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11259 esac;
11260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11262 export as_echo_n_body
11263 as_echo_n='sh -c $as_echo_n_body as_echo'
11265 export as_echo_body
11266 as_echo='sh -c $as_echo_body as_echo'
11269 # The user is always right.
11270 if test "${PATH_SEPARATOR+set}" != set; then
11271 PATH_SEPARATOR=:
11272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11274 PATH_SEPARATOR=';'
11279 # IFS
11280 # We need space, tab and new line, in precisely that order. Quoting is
11281 # there to prevent editors from complaining about space-tab.
11282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11283 # splitting by setting IFS to empty value.)
11284 IFS=" "" $as_nl"
11286 # Find who we are. Look in the path if we contain no directory separator.
11287 case $0 in #((
11288 *[\\/]* ) as_myself=$0 ;;
11289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11295 done
11296 IFS=$as_save_IFS
11299 esac
11300 # We did not find ourselves, most probably we were run as `sh COMMAND'
11301 # in which case we are not to be found in the path.
11302 if test "x$as_myself" = x; then
11303 as_myself=$0
11305 if test ! -f "$as_myself"; then
11306 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11307 exit 1
11310 # Unset variables that we do not need and which cause bugs (e.g. in
11311 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11312 # suppresses any "Segmentation fault" message there. '((' could
11313 # trigger a bug in pdksh 5.2.14.
11314 for as_var in BASH_ENV ENV MAIL MAILPATH
11315 do eval test x\${$as_var+set} = xset \
11316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11317 done
11318 PS1='$ '
11319 PS2='> '
11320 PS4='+ '
11322 # NLS nuisances.
11323 LC_ALL=C
11324 export LC_ALL
11325 LANGUAGE=C
11326 export LANGUAGE
11328 # CDPATH.
11329 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11332 # as_fn_error ERROR [LINENO LOG_FD]
11333 # ---------------------------------
11334 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11335 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11336 # script with status $?, using 1 if that was 0.
11337 as_fn_error ()
11339 as_status=$?; test $as_status -eq 0 && as_status=1
11340 if test "$3"; then
11341 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11342 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11344 $as_echo "$as_me: error: $1" >&2
11345 as_fn_exit $as_status
11346 } # as_fn_error
11349 # as_fn_set_status STATUS
11350 # -----------------------
11351 # Set $? to STATUS, without forking.
11352 as_fn_set_status ()
11354 return $1
11355 } # as_fn_set_status
11357 # as_fn_exit STATUS
11358 # -----------------
11359 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11360 as_fn_exit ()
11362 set +e
11363 as_fn_set_status $1
11364 exit $1
11365 } # as_fn_exit
11367 # as_fn_unset VAR
11368 # ---------------
11369 # Portably unset VAR.
11370 as_fn_unset ()
11372 { eval $1=; unset $1;}
11374 as_unset=as_fn_unset
11375 # as_fn_append VAR VALUE
11376 # ----------------------
11377 # Append the text in VALUE to the end of the definition contained in VAR. Take
11378 # advantage of any shell optimizations that allow amortized linear growth over
11379 # repeated appends, instead of the typical quadratic growth present in naive
11380 # implementations.
11381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11382 eval 'as_fn_append ()
11384 eval $1+=\$2
11386 else
11387 as_fn_append ()
11389 eval $1=\$$1\$2
11391 fi # as_fn_append
11393 # as_fn_arith ARG...
11394 # ------------------
11395 # Perform arithmetic evaluation on the ARGs, and store the result in the
11396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11397 # must be portable across $(()) and expr.
11398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11399 eval 'as_fn_arith ()
11401 as_val=$(( $* ))
11403 else
11404 as_fn_arith ()
11406 as_val=`expr "$@" || test $? -eq 1`
11408 fi # as_fn_arith
11411 if expr a : '\(a\)' >/dev/null 2>&1 &&
11412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11413 as_expr=expr
11414 else
11415 as_expr=false
11418 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11419 as_basename=basename
11420 else
11421 as_basename=false
11424 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11425 as_dirname=dirname
11426 else
11427 as_dirname=false
11430 as_me=`$as_basename -- "$0" ||
11431 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11432 X"$0" : 'X\(//\)$' \| \
11433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11434 $as_echo X/"$0" |
11435 sed '/^.*\/\([^/][^/]*\)\/*$/{
11436 s//\1/
11439 /^X\/\(\/\/\)$/{
11440 s//\1/
11443 /^X\/\(\/\).*/{
11444 s//\1/
11447 s/.*/./; q'`
11449 # Avoid depending upon Character Ranges.
11450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11453 as_cr_digits='0123456789'
11454 as_cr_alnum=$as_cr_Letters$as_cr_digits
11456 ECHO_C= ECHO_N= ECHO_T=
11457 case `echo -n x` in #(((((
11458 -n*)
11459 case `echo 'xy\c'` in
11460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11461 xy) ECHO_C='\c';;
11462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11463 ECHO_T=' ';;
11464 esac;;
11466 ECHO_N='-n';;
11467 esac
11469 rm -f conf$$ conf$$.exe conf$$.file
11470 if test -d conf$$.dir; then
11471 rm -f conf$$.dir/conf$$.file
11472 else
11473 rm -f conf$$.dir
11474 mkdir conf$$.dir 2>/dev/null
11476 if (echo >conf$$.file) 2>/dev/null; then
11477 if ln -s conf$$.file conf$$ 2>/dev/null; then
11478 as_ln_s='ln -s'
11479 # ... but there are two gotchas:
11480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11482 # In both cases, we have to default to `cp -p'.
11483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11484 as_ln_s='cp -p'
11485 elif ln conf$$.file conf$$ 2>/dev/null; then
11486 as_ln_s=ln
11487 else
11488 as_ln_s='cp -p'
11490 else
11491 as_ln_s='cp -p'
11493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11494 rmdir conf$$.dir 2>/dev/null
11497 # as_fn_mkdir_p
11498 # -------------
11499 # Create "$as_dir" as a directory, including parents if necessary.
11500 as_fn_mkdir_p ()
11503 case $as_dir in #(
11504 -*) as_dir=./$as_dir;;
11505 esac
11506 test -d "$as_dir" || eval $as_mkdir_p || {
11507 as_dirs=
11508 while :; do
11509 case $as_dir in #(
11510 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11511 *) as_qdir=$as_dir;;
11512 esac
11513 as_dirs="'$as_qdir' $as_dirs"
11514 as_dir=`$as_dirname -- "$as_dir" ||
11515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11516 X"$as_dir" : 'X\(//\)[^/]' \| \
11517 X"$as_dir" : 'X\(//\)$' \| \
11518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11519 $as_echo X"$as_dir" |
11520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11521 s//\1/
11524 /^X\(\/\/\)[^/].*/{
11525 s//\1/
11528 /^X\(\/\/\)$/{
11529 s//\1/
11532 /^X\(\/\).*/{
11533 s//\1/
11536 s/.*/./; q'`
11537 test -d "$as_dir" && break
11538 done
11539 test -z "$as_dirs" || eval "mkdir $as_dirs"
11540 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11543 } # as_fn_mkdir_p
11544 if mkdir -p . 2>/dev/null; then
11545 as_mkdir_p='mkdir -p "$as_dir"'
11546 else
11547 test -d ./-p && rmdir ./-p
11548 as_mkdir_p=false
11551 if test -x / >/dev/null 2>&1; then
11552 as_test_x='test -x'
11553 else
11554 if ls -dL / >/dev/null 2>&1; then
11555 as_ls_L_option=L
11556 else
11557 as_ls_L_option=
11559 as_test_x='
11560 eval sh -c '\''
11561 if test -d "$1"; then
11562 test -d "$1/.";
11563 else
11564 case $1 in #(
11565 -*)set "./$1";;
11566 esac;
11567 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11568 ???[sx]*):;;*)false;;esac;fi
11569 '\'' sh
11572 as_executable_p=$as_test_x
11574 # Sed expression to map a string onto a valid CPP name.
11575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11577 # Sed expression to map a string onto a valid variable name.
11578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11581 exec 6>&1
11582 ## ----------------------------------- ##
11583 ## Main body of $CONFIG_STATUS script. ##
11584 ## ----------------------------------- ##
11585 _ASEOF
11586 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11589 # Save the log message, to keep $0 and so on meaningful, and to
11590 # report actual input values of CONFIG_FILES etc. instead of their
11591 # values after options handling.
11592 ac_log="
11593 This file was extended by libssp $as_me 1.0, which was
11594 generated by GNU Autoconf 2.64. Invocation command line was
11596 CONFIG_FILES = $CONFIG_FILES
11597 CONFIG_HEADERS = $CONFIG_HEADERS
11598 CONFIG_LINKS = $CONFIG_LINKS
11599 CONFIG_COMMANDS = $CONFIG_COMMANDS
11600 $ $0 $@
11602 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11605 _ACEOF
11607 case $ac_config_files in *"
11608 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11609 esac
11611 case $ac_config_headers in *"
11612 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11613 esac
11616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11617 # Files that config.status was made for.
11618 config_files="$ac_config_files"
11619 config_headers="$ac_config_headers"
11620 config_commands="$ac_config_commands"
11622 _ACEOF
11624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11625 ac_cs_usage="\
11626 \`$as_me' instantiates files and other configuration actions
11627 from templates according to the current configuration. Unless the files
11628 and actions are specified as TAGs, all are instantiated by default.
11630 Usage: $0 [OPTION]... [TAG]...
11632 -h, --help print this help, then exit
11633 -V, --version print version number and configuration settings, then exit
11634 -q, --quiet, --silent
11635 do not print progress messages
11636 -d, --debug don't remove temporary files
11637 --recheck update $as_me by reconfiguring in the same conditions
11638 --file=FILE[:TEMPLATE]
11639 instantiate the configuration file FILE
11640 --header=FILE[:TEMPLATE]
11641 instantiate the configuration header FILE
11643 Configuration files:
11644 $config_files
11646 Configuration headers:
11647 $config_headers
11649 Configuration commands:
11650 $config_commands
11652 Report bugs to the package provider."
11654 _ACEOF
11655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11656 ac_cs_version="\\
11657 libssp config.status 1.0
11658 configured by $0, generated by GNU Autoconf 2.64,
11659 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11661 Copyright (C) 2009 Free Software Foundation, Inc.
11662 This config.status script is free software; the Free Software Foundation
11663 gives unlimited permission to copy, distribute and modify it."
11665 ac_pwd='$ac_pwd'
11666 srcdir='$srcdir'
11667 INSTALL='$INSTALL'
11668 MKDIR_P='$MKDIR_P'
11669 AWK='$AWK'
11670 test -n "\$AWK" || AWK=awk
11671 _ACEOF
11673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11674 # The default lists apply if the user does not specify any file.
11675 ac_need_defaults=:
11676 while test $# != 0
11678 case $1 in
11679 --*=*)
11680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11682 ac_shift=:
11685 ac_option=$1
11686 ac_optarg=$2
11687 ac_shift=shift
11689 esac
11691 case $ac_option in
11692 # Handling of the options.
11693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11694 ac_cs_recheck=: ;;
11695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11696 $as_echo "$ac_cs_version"; exit ;;
11697 --debug | --debu | --deb | --de | --d | -d )
11698 debug=: ;;
11699 --file | --fil | --fi | --f )
11700 $ac_shift
11701 case $ac_optarg in
11702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11703 esac
11704 as_fn_append CONFIG_FILES " '$ac_optarg'"
11705 ac_need_defaults=false;;
11706 --header | --heade | --head | --hea )
11707 $ac_shift
11708 case $ac_optarg in
11709 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11710 esac
11711 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11712 ac_need_defaults=false;;
11713 --he | --h)
11714 # Conflict between --help and --header
11715 as_fn_error "ambiguous option: \`$1'
11716 Try \`$0 --help' for more information.";;
11717 --help | --hel | -h )
11718 $as_echo "$ac_cs_usage"; exit ;;
11719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11721 ac_cs_silent=: ;;
11723 # This is an error.
11724 -*) as_fn_error "unrecognized option: \`$1'
11725 Try \`$0 --help' for more information." ;;
11727 *) as_fn_append ac_config_targets " $1"
11728 ac_need_defaults=false ;;
11730 esac
11731 shift
11732 done
11734 ac_configure_extra_args=
11736 if $ac_cs_silent; then
11737 exec 6>/dev/null
11738 ac_configure_extra_args="$ac_configure_extra_args --silent"
11741 _ACEOF
11742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11743 if \$ac_cs_recheck; then
11744 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11745 shift
11746 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11747 CONFIG_SHELL='$SHELL'
11748 export CONFIG_SHELL
11749 exec "\$@"
11752 _ACEOF
11753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11754 exec 5>>config.log
11756 echo
11757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11758 ## Running $as_me. ##
11759 _ASBOX
11760 $as_echo "$ac_log"
11761 } >&5
11763 _ACEOF
11764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11766 # INIT-COMMANDS
11769 srcdir="$srcdir"
11770 host="$host"
11771 target="$target"
11772 with_multisubdir="$with_multisubdir"
11773 with_multisrctop="$with_multisrctop"
11774 with_target_subdir="$with_target_subdir"
11775 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11776 multi_basedir="$multi_basedir"
11777 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11778 CC="$CC"
11779 CXX="$CXX"
11780 GFORTRAN="$GFORTRAN"
11781 GCJ="$GCJ"
11782 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11785 # The HP-UX ksh and POSIX shell print the target directory to stdout
11786 # if CDPATH is set.
11787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11789 sed_quote_subst='$sed_quote_subst'
11790 double_quote_subst='$double_quote_subst'
11791 delay_variable_subst='$delay_variable_subst'
11792 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11793 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11794 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11795 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11796 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11797 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11798 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11799 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11800 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11801 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11802 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11803 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11804 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11805 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11806 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11807 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11808 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11809 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11810 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11811 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11812 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11813 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11814 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11815 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11816 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11817 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11818 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11819 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11820 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11821 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11822 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11823 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11824 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11825 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11826 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11827 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11828 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11829 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11830 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11831 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11832 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11833 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11834 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11835 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11836 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11837 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11838 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11839 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11840 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"`'
11841 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11842 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11843 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11844 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11845 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11846 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11847 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11848 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11849 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11850 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11851 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11852 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11853 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11854 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11855 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11856 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11857 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11858 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11859 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11860 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11861 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11862 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11863 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11864 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11865 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11866 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11867 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11868 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11869 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11870 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11871 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11872 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11873 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11874 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11875 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11876 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11877 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11878 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11879 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11880 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11881 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11882 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11883 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11884 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11885 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11886 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11887 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11888 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11889 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11890 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11891 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11892 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11893 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11894 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11895 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11896 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11897 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11898 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11899 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11900 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11901 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11902 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11903 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11904 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11905 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11906 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11907 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11908 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11909 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11910 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11911 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11913 LTCC='$LTCC'
11914 LTCFLAGS='$LTCFLAGS'
11915 compiler='$compiler_DEFAULT'
11917 # A function that is used when there is no print builtin or printf.
11918 func_fallback_echo ()
11920 eval 'cat <<_LTECHO_EOF
11922 _LTECHO_EOF'
11925 # Quote evaled strings.
11926 for var in SHELL \
11927 ECHO \
11928 SED \
11929 GREP \
11930 EGREP \
11931 FGREP \
11932 LD \
11933 NM \
11934 LN_S \
11935 lt_SP2NL \
11936 lt_NL2SP \
11937 reload_flag \
11938 OBJDUMP \
11939 deplibs_check_method \
11940 file_magic_cmd \
11941 AR \
11942 AR_FLAGS \
11943 STRIP \
11944 RANLIB \
11945 CC \
11946 CFLAGS \
11947 compiler \
11948 lt_cv_sys_global_symbol_pipe \
11949 lt_cv_sys_global_symbol_to_cdecl \
11950 lt_cv_sys_global_symbol_to_c_name_address \
11951 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11952 lt_prog_compiler_no_builtin_flag \
11953 lt_prog_compiler_wl \
11954 lt_prog_compiler_pic \
11955 lt_prog_compiler_static \
11956 lt_cv_prog_compiler_c_o \
11957 need_locks \
11958 DSYMUTIL \
11959 NMEDIT \
11960 LIPO \
11961 OTOOL \
11962 OTOOL64 \
11963 shrext_cmds \
11964 export_dynamic_flag_spec \
11965 whole_archive_flag_spec \
11966 compiler_needs_object \
11967 with_gnu_ld \
11968 allow_undefined_flag \
11969 no_undefined_flag \
11970 hardcode_libdir_flag_spec \
11971 hardcode_libdir_flag_spec_ld \
11972 hardcode_libdir_separator \
11973 fix_srcfile_path \
11974 exclude_expsyms \
11975 include_expsyms \
11976 file_list_spec \
11977 variables_saved_for_relink \
11978 libname_spec \
11979 library_names_spec \
11980 soname_spec \
11981 install_override_mode \
11982 finish_eval \
11983 old_striplib \
11984 striplib; do
11985 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11986 *[\\\\\\\`\\"\\\$]*)
11987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11992 esac
11993 done
11995 # Double-quote double-evaled strings.
11996 for var in reload_cmds \
11997 old_postinstall_cmds \
11998 old_postuninstall_cmds \
11999 old_archive_cmds \
12000 extract_expsyms_cmds \
12001 old_archive_from_new_cmds \
12002 old_archive_from_expsyms_cmds \
12003 archive_cmds \
12004 archive_expsym_cmds \
12005 module_cmds \
12006 module_expsym_cmds \
12007 export_symbols_cmds \
12008 prelink_cmds \
12009 postinstall_cmds \
12010 postuninstall_cmds \
12011 finish_cmds \
12012 sys_lib_search_path_spec \
12013 sys_lib_dlsearch_path_spec; do
12014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12015 *[\\\\\\\`\\"\\\$]*)
12016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12021 esac
12022 done
12024 ac_aux_dir='$ac_aux_dir'
12025 xsi_shell='$xsi_shell'
12026 lt_shell_append='$lt_shell_append'
12028 # See if we are running on zsh, and set the options which allow our
12029 # commands through without removal of \ escapes INIT.
12030 if test -n "\${ZSH_VERSION+set}" ; then
12031 setopt NO_GLOB_SUBST
12035 PACKAGE='$PACKAGE'
12036 VERSION='$VERSION'
12037 TIMESTAMP='$TIMESTAMP'
12038 RM='$RM'
12039 ofile='$ofile'
12044 _ACEOF
12046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12048 # Handling of arguments.
12049 for ac_config_target in $ac_config_targets
12051 case $ac_config_target in
12052 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12053 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12054 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12055 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12056 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12057 "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
12059 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12060 esac
12061 done
12064 # If the user did not use the arguments to specify the items to instantiate,
12065 # then the envvar interface is used. Set only those that are not.
12066 # We use the long form for the default assignment because of an extremely
12067 # bizarre bug on SunOS 4.1.3.
12068 if $ac_need_defaults; then
12069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12074 # Have a temporary directory for convenience. Make it in the build tree
12075 # simply because there is no reason against having it here, and in addition,
12076 # creating and moving files from /tmp can sometimes cause problems.
12077 # Hook for its removal unless debugging.
12078 # Note that there is a small window in which the directory will not be cleaned:
12079 # after its creation but before its name has been assigned to `$tmp'.
12080 $debug ||
12082 tmp=
12083 trap 'exit_status=$?
12084 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12086 trap 'as_fn_exit 1' 1 2 13 15
12088 # Create a (secure) tmp directory for tmp files.
12091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12092 test -n "$tmp" && test -d "$tmp"
12093 } ||
12095 tmp=./conf$$-$RANDOM
12096 (umask 077 && mkdir "$tmp")
12097 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12099 # Set up the scripts for CONFIG_FILES section.
12100 # No need to generate them if there are no CONFIG_FILES.
12101 # This happens for instance with `./config.status config.h'.
12102 if test -n "$CONFIG_FILES"; then
12105 ac_cr=`echo X | tr X '\015'`
12106 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12107 # But we know of no other shell where ac_cr would be empty at this
12108 # point, so we can use a bashism as a fallback.
12109 if test "x$ac_cr" = x; then
12110 eval ac_cr=\$\'\\r\'
12112 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12113 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12114 ac_cs_awk_cr='\r'
12115 else
12116 ac_cs_awk_cr=$ac_cr
12119 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12120 _ACEOF
12124 echo "cat >conf$$subs.awk <<_ACEOF" &&
12125 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12126 echo "_ACEOF"
12127 } >conf$$subs.sh ||
12128 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12129 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12130 ac_delim='%!_!# '
12131 for ac_last_try in false false false false false :; do
12132 . ./conf$$subs.sh ||
12133 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12135 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12136 if test $ac_delim_n = $ac_delim_num; then
12137 break
12138 elif $ac_last_try; then
12139 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12140 else
12141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12143 done
12144 rm -f conf$$subs.sh
12146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12147 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12148 _ACEOF
12149 sed -n '
12151 s/^/S["/; s/!.*/"]=/
12154 s/^[^!]*!//
12155 :repl
12156 t repl
12157 s/'"$ac_delim"'$//
12158 t delim
12161 s/\(.\{148\}\).*/\1/
12162 t more1
12163 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12166 b repl
12167 :more1
12168 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12171 s/.\{148\}//
12172 t nl
12173 :delim
12175 s/\(.\{148\}\).*/\1/
12176 t more2
12177 s/["\\]/\\&/g; s/^/"/; s/$/"/
12180 :more2
12181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12184 s/.\{148\}//
12185 t delim
12186 ' <conf$$subs.awk | sed '
12187 /^[^""]/{
12189 s/\n//
12191 ' >>$CONFIG_STATUS || ac_write_fail=1
12192 rm -f conf$$subs.awk
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 _ACAWK
12195 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12196 for (key in S) S_is_set[key] = 1
12197 FS = "\a"
12201 line = $ 0
12202 nfields = split(line, field, "@")
12203 substed = 0
12204 len = length(field[1])
12205 for (i = 2; i < nfields; i++) {
12206 key = field[i]
12207 keylen = length(key)
12208 if (S_is_set[key]) {
12209 value = S[key]
12210 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12211 len += length(value) + length(field[++i])
12212 substed = 1
12213 } else
12214 len += 1 + keylen
12217 print line
12220 _ACAWK
12221 _ACEOF
12222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12223 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12224 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12225 else
12227 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12228 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12229 _ACEOF
12231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12233 # trailing colons and then remove the whole line if VPATH becomes empty
12234 # (actually we leave an empty line to preserve line numbers).
12235 if test "x$srcdir" = x.; then
12236 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12237 s/:*\$(srcdir):*/:/
12238 s/:*\${srcdir}:*/:/
12239 s/:*@srcdir@:*/:/
12240 s/^\([^=]*=[ ]*\):*/\1/
12241 s/:*$//
12242 s/^[^=]*=[ ]*$//
12246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12247 fi # test -n "$CONFIG_FILES"
12249 # Set up the scripts for CONFIG_HEADERS section.
12250 # No need to generate them if there are no CONFIG_HEADERS.
12251 # This happens for instance with `./config.status Makefile'.
12252 if test -n "$CONFIG_HEADERS"; then
12253 cat >"$tmp/defines.awk" <<\_ACAWK ||
12254 BEGIN {
12255 _ACEOF
12257 # Transform confdefs.h into an awk script `defines.awk', embedded as
12258 # here-document in config.status, that substitutes the proper values into
12259 # config.h.in to produce config.h.
12261 # Create a delimiter string that does not exist in confdefs.h, to ease
12262 # handling of long lines.
12263 ac_delim='%!_!# '
12264 for ac_last_try in false false :; do
12265 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12266 if test -z "$ac_t"; then
12267 break
12268 elif $ac_last_try; then
12269 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12270 else
12271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12273 done
12275 # For the awk script, D is an array of macro values keyed by name,
12276 # likewise P contains macro parameters if any. Preserve backslash
12277 # newline sequences.
12279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12280 sed -n '
12281 s/.\{148\}/&'"$ac_delim"'/g
12282 t rset
12283 :rset
12284 s/^[ ]*#[ ]*define[ ][ ]*/ /
12285 t def
12287 :def
12288 s/\\$//
12289 t bsnl
12290 s/["\\]/\\&/g
12291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12292 D["\1"]=" \3"/p
12293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12295 :bsnl
12296 s/["\\]/\\&/g
12297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12298 D["\1"]=" \3\\\\\\n"\\/p
12299 t cont
12300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12301 t cont
12303 :cont
12305 s/.\{148\}/&'"$ac_delim"'/g
12306 t clear
12307 :clear
12308 s/\\$//
12309 t bsnlc
12310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12312 :bsnlc
12313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12314 b cont
12315 ' <confdefs.h | sed '
12316 s/'"$ac_delim"'/"\\\
12317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12320 for (key in D) D_is_set[key] = 1
12321 FS = "\a"
12323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12324 line = \$ 0
12325 split(line, arg, " ")
12326 if (arg[1] == "#") {
12327 defundef = arg[2]
12328 mac1 = arg[3]
12329 } else {
12330 defundef = substr(arg[1], 2)
12331 mac1 = arg[2]
12333 split(mac1, mac2, "(") #)
12334 macro = mac2[1]
12335 prefix = substr(line, 1, index(line, defundef) - 1)
12336 if (D_is_set[macro]) {
12337 # Preserve the white space surrounding the "#".
12338 print prefix "define", macro P[macro] D[macro]
12339 next
12340 } else {
12341 # Replace #undef with comments. This is necessary, for example,
12342 # in the case of _POSIX_SOURCE, which is predefined and required
12343 # on some systems where configure will not decide to define it.
12344 if (defundef == "undef") {
12345 print "/*", prefix defundef, macro, "*/"
12346 next
12350 { print }
12351 _ACAWK
12352 _ACEOF
12353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12354 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12355 fi # test -n "$CONFIG_HEADERS"
12358 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12359 shift
12360 for ac_tag
12362 case $ac_tag in
12363 :[FHLC]) ac_mode=$ac_tag; continue;;
12364 esac
12365 case $ac_mode$ac_tag in
12366 :[FHL]*:*);;
12367 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12368 :[FH]-) ac_tag=-:-;;
12369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12370 esac
12371 ac_save_IFS=$IFS
12372 IFS=:
12373 set x $ac_tag
12374 IFS=$ac_save_IFS
12375 shift
12376 ac_file=$1
12377 shift
12379 case $ac_mode in
12380 :L) ac_source=$1;;
12381 :[FH])
12382 ac_file_inputs=
12383 for ac_f
12385 case $ac_f in
12386 -) ac_f="$tmp/stdin";;
12387 *) # Look for the file first in the build tree, then in the source tree
12388 # (if the path is not absolute). The absolute path cannot be DOS-style,
12389 # because $ac_f cannot contain `:'.
12390 test -f "$ac_f" ||
12391 case $ac_f in
12392 [\\/$]*) false;;
12393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12394 esac ||
12395 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12396 esac
12397 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12398 as_fn_append ac_file_inputs " '$ac_f'"
12399 done
12401 # Let's still pretend it is `configure' which instantiates (i.e., don't
12402 # use $as_me), people would be surprised to read:
12403 # /* config.h. Generated by config.status. */
12404 configure_input='Generated from '`
12405 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12406 `' by configure.'
12407 if test x"$ac_file" != x-; then
12408 configure_input="$ac_file. $configure_input"
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12410 $as_echo "$as_me: creating $ac_file" >&6;}
12412 # Neutralize special characters interpreted by sed in replacement strings.
12413 case $configure_input in #(
12414 *\&* | *\|* | *\\* )
12415 ac_sed_conf_input=`$as_echo "$configure_input" |
12416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12417 *) ac_sed_conf_input=$configure_input;;
12418 esac
12420 case $ac_tag in
12421 *:-:* | *:-) cat >"$tmp/stdin" \
12422 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12423 esac
12425 esac
12427 ac_dir=`$as_dirname -- "$ac_file" ||
12428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12429 X"$ac_file" : 'X\(//\)[^/]' \| \
12430 X"$ac_file" : 'X\(//\)$' \| \
12431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12432 $as_echo X"$ac_file" |
12433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12434 s//\1/
12437 /^X\(\/\/\)[^/].*/{
12438 s//\1/
12441 /^X\(\/\/\)$/{
12442 s//\1/
12445 /^X\(\/\).*/{
12446 s//\1/
12449 s/.*/./; q'`
12450 as_dir="$ac_dir"; as_fn_mkdir_p
12451 ac_builddir=.
12453 case "$ac_dir" in
12454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12457 # A ".." for each directory in $ac_dir_suffix.
12458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12459 case $ac_top_builddir_sub in
12460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12462 esac ;;
12463 esac
12464 ac_abs_top_builddir=$ac_pwd
12465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12466 # for backward compatibility:
12467 ac_top_builddir=$ac_top_build_prefix
12469 case $srcdir in
12470 .) # We are building in place.
12471 ac_srcdir=.
12472 ac_top_srcdir=$ac_top_builddir_sub
12473 ac_abs_top_srcdir=$ac_pwd ;;
12474 [\\/]* | ?:[\\/]* ) # Absolute name.
12475 ac_srcdir=$srcdir$ac_dir_suffix;
12476 ac_top_srcdir=$srcdir
12477 ac_abs_top_srcdir=$srcdir ;;
12478 *) # Relative name.
12479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12480 ac_top_srcdir=$ac_top_build_prefix$srcdir
12481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12482 esac
12483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12486 case $ac_mode in
12489 # CONFIG_FILE
12492 case $INSTALL in
12493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12495 esac
12496 ac_MKDIR_P=$MKDIR_P
12497 case $MKDIR_P in
12498 [\\/$]* | ?:[\\/]* ) ;;
12499 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12500 esac
12501 _ACEOF
12503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12504 # If the template does not know about datarootdir, expand it.
12505 # FIXME: This hack should be removed a few years after 2.60.
12506 ac_datarootdir_hack=; ac_datarootdir_seen=
12507 ac_sed_dataroot='
12508 /datarootdir/ {
12512 /@datadir@/p
12513 /@docdir@/p
12514 /@infodir@/p
12515 /@localedir@/p
12516 /@mandir@/p'
12517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12518 *datarootdir*) ac_datarootdir_seen=yes;;
12519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12522 _ACEOF
12523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12524 ac_datarootdir_hack='
12525 s&@datadir@&$datadir&g
12526 s&@docdir@&$docdir&g
12527 s&@infodir@&$infodir&g
12528 s&@localedir@&$localedir&g
12529 s&@mandir@&$mandir&g
12530 s&\\\${datarootdir}&$datarootdir&g' ;;
12531 esac
12532 _ACEOF
12534 # Neutralize VPATH when `$srcdir' = `.'.
12535 # Shell code in configure.ac might set extrasub.
12536 # FIXME: do we really want to maintain this feature?
12537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12538 ac_sed_extra="$ac_vpsub
12539 $extrasub
12540 _ACEOF
12541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12544 s|@configure_input@|$ac_sed_conf_input|;t t
12545 s&@top_builddir@&$ac_top_builddir_sub&;t t
12546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12547 s&@srcdir@&$ac_srcdir&;t t
12548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12549 s&@top_srcdir@&$ac_top_srcdir&;t t
12550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12551 s&@builddir@&$ac_builddir&;t t
12552 s&@abs_builddir@&$ac_abs_builddir&;t t
12553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12554 s&@INSTALL@&$ac_INSTALL&;t t
12555 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12556 $ac_datarootdir_hack
12558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12559 || as_fn_error "could not create $ac_file" "$LINENO" 5
12561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12562 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12565 which seems to be undefined. Please make sure it is defined." >&5
12566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12567 which seems to be undefined. Please make sure it is defined." >&2;}
12569 rm -f "$tmp/stdin"
12570 case $ac_file in
12571 -) cat "$tmp/out" && rm -f "$tmp/out";;
12572 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12573 esac \
12574 || as_fn_error "could not create $ac_file" "$LINENO" 5
12578 # CONFIG_HEADER
12580 if test x"$ac_file" != x-; then
12582 $as_echo "/* $configure_input */" \
12583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12584 } >"$tmp/config.h" \
12585 || as_fn_error "could not create $ac_file" "$LINENO" 5
12586 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12589 else
12590 rm -f "$ac_file"
12591 mv "$tmp/config.h" "$ac_file" \
12592 || as_fn_error "could not create $ac_file" "$LINENO" 5
12594 else
12595 $as_echo "/* $configure_input */" \
12596 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12597 || as_fn_error "could not create -" "$LINENO" 5
12599 # Compute "$ac_file"'s index in $config_headers.
12600 _am_arg="$ac_file"
12601 _am_stamp_count=1
12602 for _am_header in $config_headers :; do
12603 case $_am_header in
12604 $_am_arg | $_am_arg:* )
12605 break ;;
12607 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12608 esac
12609 done
12610 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12611 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12612 X"$_am_arg" : 'X\(//\)[^/]' \| \
12613 X"$_am_arg" : 'X\(//\)$' \| \
12614 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12615 $as_echo X"$_am_arg" |
12616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12617 s//\1/
12620 /^X\(\/\/\)[^/].*/{
12621 s//\1/
12624 /^X\(\/\/\)$/{
12625 s//\1/
12628 /^X\(\/\).*/{
12629 s//\1/
12632 s/.*/./; q'`/stamp-h$_am_stamp_count
12635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12636 $as_echo "$as_me: executing $ac_file commands" >&6;}
12638 esac
12641 case $ac_file$ac_mode in
12642 "default-1":C)
12643 # Only add multilib support code if we just rebuilt the top-level
12644 # Makefile.
12645 case " $CONFIG_FILES " in
12646 *" Makefile "*)
12647 ac_file=Makefile . ${multi_basedir}/config-ml.in
12649 esac ;;
12650 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12651 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12652 # are listed without --file. Let's play safe and only enable the eval
12653 # if we detect the quoting.
12654 case $CONFIG_FILES in
12655 *\'*) eval set x "$CONFIG_FILES" ;;
12656 *) set x $CONFIG_FILES ;;
12657 esac
12658 shift
12659 for mf
12661 # Strip MF so we end up with the name of the file.
12662 mf=`echo "$mf" | sed -e 's/:.*$//'`
12663 # Check whether this is an Automake generated Makefile or not.
12664 # We used to match only the files named `Makefile.in', but
12665 # some people rename them; so instead we look at the file content.
12666 # Grep'ing the first line is not enough: some people post-process
12667 # each Makefile.in and add a new line on top of each file to say so.
12668 # Grep'ing the whole file is not good either: AIX grep has a line
12669 # limit of 2048, but all sed's we know have understand at least 4000.
12670 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12671 dirpart=`$as_dirname -- "$mf" ||
12672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673 X"$mf" : 'X\(//\)[^/]' \| \
12674 X"$mf" : 'X\(//\)$' \| \
12675 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12676 $as_echo X"$mf" |
12677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12678 s//\1/
12681 /^X\(\/\/\)[^/].*/{
12682 s//\1/
12685 /^X\(\/\/\)$/{
12686 s//\1/
12689 /^X\(\/\).*/{
12690 s//\1/
12693 s/.*/./; q'`
12694 else
12695 continue
12697 # Extract the definition of DEPDIR, am__include, and am__quote
12698 # from the Makefile without running `make'.
12699 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12700 test -z "$DEPDIR" && continue
12701 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12702 test -z "am__include" && continue
12703 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12704 # When using ansi2knr, U may be empty or an underscore; expand it
12705 U=`sed -n 's/^U = //p' < "$mf"`
12706 # Find all dependency output files, they are included files with
12707 # $(DEPDIR) in their names. We invoke sed twice because it is the
12708 # simplest approach to changing $(DEPDIR) to its actual value in the
12709 # expansion.
12710 for file in `sed -n "
12711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12713 # Make sure the directory exists.
12714 test -f "$dirpart/$file" && continue
12715 fdir=`$as_dirname -- "$file" ||
12716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12717 X"$file" : 'X\(//\)[^/]' \| \
12718 X"$file" : 'X\(//\)$' \| \
12719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12720 $as_echo X"$file" |
12721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12722 s//\1/
12725 /^X\(\/\/\)[^/].*/{
12726 s//\1/
12729 /^X\(\/\/\)$/{
12730 s//\1/
12733 /^X\(\/\).*/{
12734 s//\1/
12737 s/.*/./; q'`
12738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12739 # echo "creating $dirpart/$file"
12740 echo '# dummy' > "$dirpart/$file"
12741 done
12742 done
12745 "libtool":C)
12747 # See if we are running on zsh, and set the options which allow our
12748 # commands through without removal of \ escapes.
12749 if test -n "${ZSH_VERSION+set}" ; then
12750 setopt NO_GLOB_SUBST
12753 cfgfile="${ofile}T"
12754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12755 $RM "$cfgfile"
12757 cat <<_LT_EOF >> "$cfgfile"
12758 #! $SHELL
12760 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12761 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12763 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12765 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12766 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12767 # Written by Gordon Matzigkeit, 1996
12769 # This file is part of GNU Libtool.
12771 # GNU Libtool is free software; you can redistribute it and/or
12772 # modify it under the terms of the GNU General Public License as
12773 # published by the Free Software Foundation; either version 2 of
12774 # the License, or (at your option) any later version.
12776 # As a special exception to the GNU General Public License,
12777 # if you distribute this file as part of a program or library that
12778 # is built using GNU Libtool, you may include this file under the
12779 # same distribution terms that you use for the rest of that program.
12781 # GNU Libtool is distributed in the hope that it will be useful,
12782 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12783 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12784 # GNU General Public License for more details.
12786 # You should have received a copy of the GNU General Public License
12787 # along with GNU Libtool; see the file COPYING. If not, a copy
12788 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12789 # obtained by writing to the Free Software Foundation, Inc.,
12790 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12793 # The names of the tagged configurations supported by this script.
12794 available_tags=""
12796 # ### BEGIN LIBTOOL CONFIG
12798 # Which release of libtool.m4 was used?
12799 macro_version=$macro_version
12800 macro_revision=$macro_revision
12802 # Whether or not to build shared libraries.
12803 build_libtool_libs=$enable_shared
12805 # Whether or not to build static libraries.
12806 build_old_libs=$enable_static
12808 # What type of objects to build.
12809 pic_mode=$pic_mode
12811 # Whether or not to optimize for fast installation.
12812 fast_install=$enable_fast_install
12814 # Shell to use when invoking shell scripts.
12815 SHELL=$lt_SHELL
12817 # An echo program that protects backslashes.
12818 ECHO=$lt_ECHO
12820 # The host system.
12821 host_alias=$host_alias
12822 host=$host
12823 host_os=$host_os
12825 # The build system.
12826 build_alias=$build_alias
12827 build=$build
12828 build_os=$build_os
12830 # A sed program that does not truncate output.
12831 SED=$lt_SED
12833 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12834 Xsed="\$SED -e 1s/^X//"
12836 # A grep program that handles long lines.
12837 GREP=$lt_GREP
12839 # An ERE matcher.
12840 EGREP=$lt_EGREP
12842 # A literal string matcher.
12843 FGREP=$lt_FGREP
12845 # A BSD- or MS-compatible name lister.
12846 NM=$lt_NM
12848 # Whether we need soft or hard links.
12849 LN_S=$lt_LN_S
12851 # What is the maximum length of a command?
12852 max_cmd_len=$max_cmd_len
12854 # Object file suffix (normally "o").
12855 objext=$ac_objext
12857 # Executable file suffix (normally "").
12858 exeext=$exeext
12860 # whether the shell understands "unset".
12861 lt_unset=$lt_unset
12863 # turn spaces into newlines.
12864 SP2NL=$lt_lt_SP2NL
12866 # turn newlines into spaces.
12867 NL2SP=$lt_lt_NL2SP
12869 # An object symbol dumper.
12870 OBJDUMP=$lt_OBJDUMP
12872 # Method to check whether dependent libraries are shared objects.
12873 deplibs_check_method=$lt_deplibs_check_method
12875 # Command to use when deplibs_check_method == "file_magic".
12876 file_magic_cmd=$lt_file_magic_cmd
12878 # The archiver.
12879 AR=$lt_AR
12880 AR_FLAGS=$lt_AR_FLAGS
12882 # A symbol stripping program.
12883 STRIP=$lt_STRIP
12885 # Commands used to install an old-style archive.
12886 RANLIB=$lt_RANLIB
12887 old_postinstall_cmds=$lt_old_postinstall_cmds
12888 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12890 # Whether to use a lock for old archive extraction.
12891 lock_old_archive_extraction=$lock_old_archive_extraction
12893 # A C compiler.
12894 LTCC=$lt_CC
12896 # LTCC compiler flags.
12897 LTCFLAGS=$lt_CFLAGS
12899 # Take the output of nm and produce a listing of raw symbols and C names.
12900 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12902 # Transform the output of nm in a proper C declaration.
12903 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12905 # Transform the output of nm in a C name address pair.
12906 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12908 # Transform the output of nm in a C name address pair when lib prefix is needed.
12909 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12911 # The name of the directory that contains temporary libtool files.
12912 objdir=$objdir
12914 # Used to examine libraries when file_magic_cmd begins with "file".
12915 MAGIC_CMD=$MAGIC_CMD
12917 # Must we lock files when doing compilation?
12918 need_locks=$lt_need_locks
12920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12921 DSYMUTIL=$lt_DSYMUTIL
12923 # Tool to change global to local symbols on Mac OS X.
12924 NMEDIT=$lt_NMEDIT
12926 # Tool to manipulate fat objects and archives on Mac OS X.
12927 LIPO=$lt_LIPO
12929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12930 OTOOL=$lt_OTOOL
12932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12933 OTOOL64=$lt_OTOOL64
12935 # Old archive suffix (normally "a").
12936 libext=$libext
12938 # Shared library suffix (normally ".so").
12939 shrext_cmds=$lt_shrext_cmds
12941 # The commands to extract the exported symbol list from a shared archive.
12942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12944 # Variables whose values should be saved in libtool wrapper scripts and
12945 # restored at link time.
12946 variables_saved_for_relink=$lt_variables_saved_for_relink
12948 # Do we need the "lib" prefix for modules?
12949 need_lib_prefix=$need_lib_prefix
12951 # Do we need a version for libraries?
12952 need_version=$need_version
12954 # Library versioning type.
12955 version_type=$version_type
12957 # Shared library runtime path variable.
12958 runpath_var=$runpath_var
12960 # Shared library path variable.
12961 shlibpath_var=$shlibpath_var
12963 # Is shlibpath searched before the hard-coded library search path?
12964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12966 # Format of library name prefix.
12967 libname_spec=$lt_libname_spec
12969 # List of archive names. First name is the real one, the rest are links.
12970 # The last name is the one that the linker finds with -lNAME
12971 library_names_spec=$lt_library_names_spec
12973 # The coded name of the library, if different from the real name.
12974 soname_spec=$lt_soname_spec
12976 # Permission mode override for installation of shared libraries.
12977 install_override_mode=$lt_install_override_mode
12979 # Command to use after installation of a shared archive.
12980 postinstall_cmds=$lt_postinstall_cmds
12982 # Command to use after uninstallation of a shared archive.
12983 postuninstall_cmds=$lt_postuninstall_cmds
12985 # Commands used to finish a libtool library installation in a directory.
12986 finish_cmds=$lt_finish_cmds
12988 # As "finish_cmds", except a single script fragment to be evaled but
12989 # not shown.
12990 finish_eval=$lt_finish_eval
12992 # Whether we should hardcode library paths into libraries.
12993 hardcode_into_libs=$hardcode_into_libs
12995 # Compile-time system search path for libraries.
12996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12998 # Run-time system search path for libraries.
12999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13001 # Whether dlopen is supported.
13002 dlopen_support=$enable_dlopen
13004 # Whether dlopen of programs is supported.
13005 dlopen_self=$enable_dlopen_self
13007 # Whether dlopen of statically linked programs is supported.
13008 dlopen_self_static=$enable_dlopen_self_static
13010 # Commands to strip libraries.
13011 old_striplib=$lt_old_striplib
13012 striplib=$lt_striplib
13015 # The linker used to build libraries.
13016 LD=$lt_LD
13018 # How to create reloadable object files.
13019 reload_flag=$lt_reload_flag
13020 reload_cmds=$lt_reload_cmds
13022 # Commands used to build an old-style archive.
13023 old_archive_cmds=$lt_old_archive_cmds
13025 # A language specific compiler.
13026 CC=$lt_compiler
13028 # Is the compiler the GNU compiler?
13029 with_gcc=$GCC
13031 # Compiler flag to turn off builtin functions.
13032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13034 # How to pass a linker flag through the compiler.
13035 wl=$lt_lt_prog_compiler_wl
13037 # Additional compiler flags for building library objects.
13038 pic_flag=$lt_lt_prog_compiler_pic
13040 # Compiler flag to prevent dynamic linking.
13041 link_static_flag=$lt_lt_prog_compiler_static
13043 # Does compiler simultaneously support -c and -o options?
13044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13046 # Whether or not to add -lc for building shared libraries.
13047 build_libtool_need_lc=$archive_cmds_need_lc
13049 # Whether or not to disallow shared libs when runtime libs are static.
13050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13052 # Compiler flag to allow reflexive dlopens.
13053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13055 # Compiler flag to generate shared objects directly from archives.
13056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13058 # Whether the compiler copes with passing no objects directly.
13059 compiler_needs_object=$lt_compiler_needs_object
13061 # Create an old-style archive from a shared archive.
13062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13064 # Create a temporary old-style archive to link instead of a shared archive.
13065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13067 # Commands used to build a shared archive.
13068 archive_cmds=$lt_archive_cmds
13069 archive_expsym_cmds=$lt_archive_expsym_cmds
13071 # Commands used to build a loadable module if different from building
13072 # a shared archive.
13073 module_cmds=$lt_module_cmds
13074 module_expsym_cmds=$lt_module_expsym_cmds
13076 # Whether we are building with GNU ld or not.
13077 with_gnu_ld=$lt_with_gnu_ld
13079 # Flag that allows shared libraries with undefined symbols to be built.
13080 allow_undefined_flag=$lt_allow_undefined_flag
13082 # Flag that enforces no undefined symbols.
13083 no_undefined_flag=$lt_no_undefined_flag
13085 # Flag to hardcode \$libdir into a binary during linking.
13086 # This must work even if \$libdir does not exist
13087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13089 # If ld is used when linking, flag to hardcode \$libdir into a binary
13090 # during linking. This must work even if \$libdir does not exist.
13091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13093 # Whether we need a single "-rpath" flag with a separated argument.
13094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13097 # DIR into the resulting binary.
13098 hardcode_direct=$hardcode_direct
13100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13101 # DIR into the resulting binary and the resulting library dependency is
13102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13103 # library is relocated.
13104 hardcode_direct_absolute=$hardcode_direct_absolute
13106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13107 # into the resulting binary.
13108 hardcode_minus_L=$hardcode_minus_L
13110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13111 # into the resulting binary.
13112 hardcode_shlibpath_var=$hardcode_shlibpath_var
13114 # Set to "yes" if building a shared library automatically hardcodes DIR
13115 # into the library and all subsequent libraries and executables linked
13116 # against it.
13117 hardcode_automatic=$hardcode_automatic
13119 # Set to yes if linker adds runtime paths of dependent libraries
13120 # to runtime path list.
13121 inherit_rpath=$inherit_rpath
13123 # Whether libtool must link a program against all its dependency libraries.
13124 link_all_deplibs=$link_all_deplibs
13126 # Fix the shell variable \$srcfile for the compiler.
13127 fix_srcfile_path=$lt_fix_srcfile_path
13129 # Set to "yes" if exported symbols are required.
13130 always_export_symbols=$always_export_symbols
13132 # The commands to list exported symbols.
13133 export_symbols_cmds=$lt_export_symbols_cmds
13135 # Symbols that should not be listed in the preloaded symbols.
13136 exclude_expsyms=$lt_exclude_expsyms
13138 # Symbols that must always be exported.
13139 include_expsyms=$lt_include_expsyms
13141 # Commands necessary for linking programs (against libraries) with templates.
13142 prelink_cmds=$lt_prelink_cmds
13144 # Specify filename containing input files.
13145 file_list_spec=$lt_file_list_spec
13147 # How to hardcode a shared library path into an executable.
13148 hardcode_action=$hardcode_action
13150 # ### END LIBTOOL CONFIG
13152 _LT_EOF
13154 case $host_os in
13155 aix3*)
13156 cat <<\_LT_EOF >> "$cfgfile"
13157 # AIX sometimes has problems with the GCC collect2 program. For some
13158 # reason, if we set the COLLECT_NAMES environment variable, the problems
13159 # vanish in a puff of smoke.
13160 if test "X${COLLECT_NAMES+set}" != Xset; then
13161 COLLECT_NAMES=
13162 export COLLECT_NAMES
13164 _LT_EOF
13166 esac
13169 ltmain="$ac_aux_dir/ltmain.sh"
13172 # We use sed instead of cat because bash on DJGPP gets confused if
13173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13174 # text mode, it properly converts lines to CR/LF. This bash problem
13175 # is reportedly fixed, but why not run on old versions too?
13176 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13177 || (rm -f "$cfgfile"; exit 1)
13179 case $xsi_shell in
13180 yes)
13181 cat << \_LT_EOF >> "$cfgfile"
13183 # func_dirname file append nondir_replacement
13184 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13185 # otherwise set result to NONDIR_REPLACEMENT.
13186 func_dirname ()
13188 case ${1} in
13189 */*) func_dirname_result="${1%/*}${2}" ;;
13190 * ) func_dirname_result="${3}" ;;
13191 esac
13194 # func_basename file
13195 func_basename ()
13197 func_basename_result="${1##*/}"
13200 # func_dirname_and_basename file append nondir_replacement
13201 # perform func_basename and func_dirname in a single function
13202 # call:
13203 # dirname: Compute the dirname of FILE. If nonempty,
13204 # add APPEND to the result, otherwise set result
13205 # to NONDIR_REPLACEMENT.
13206 # value returned in "$func_dirname_result"
13207 # basename: Compute filename of FILE.
13208 # value retuned in "$func_basename_result"
13209 # Implementation must be kept synchronized with func_dirname
13210 # and func_basename. For efficiency, we do not delegate to
13211 # those functions but instead duplicate the functionality here.
13212 func_dirname_and_basename ()
13214 case ${1} in
13215 */*) func_dirname_result="${1%/*}${2}" ;;
13216 * ) func_dirname_result="${3}" ;;
13217 esac
13218 func_basename_result="${1##*/}"
13221 # func_stripname prefix suffix name
13222 # strip PREFIX and SUFFIX off of NAME.
13223 # PREFIX and SUFFIX must not contain globbing or regex special
13224 # characters, hashes, percent signs, but SUFFIX may contain a leading
13225 # dot (in which case that matches only a dot).
13226 func_stripname ()
13228 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13229 # positional parameters, so assign one to ordinary parameter first.
13230 func_stripname_result=${3}
13231 func_stripname_result=${func_stripname_result#"${1}"}
13232 func_stripname_result=${func_stripname_result%"${2}"}
13235 # func_opt_split
13236 func_opt_split ()
13238 func_opt_split_opt=${1%%=*}
13239 func_opt_split_arg=${1#*=}
13242 # func_lo2o object
13243 func_lo2o ()
13245 case ${1} in
13246 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13247 *) func_lo2o_result=${1} ;;
13248 esac
13251 # func_xform libobj-or-source
13252 func_xform ()
13254 func_xform_result=${1%.*}.lo
13257 # func_arith arithmetic-term...
13258 func_arith ()
13260 func_arith_result=$(( $* ))
13263 # func_len string
13264 # STRING may not start with a hyphen.
13265 func_len ()
13267 func_len_result=${#1}
13270 _LT_EOF
13272 *) # Bourne compatible functions.
13273 cat << \_LT_EOF >> "$cfgfile"
13275 # func_dirname file append nondir_replacement
13276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13277 # otherwise set result to NONDIR_REPLACEMENT.
13278 func_dirname ()
13280 # Extract subdirectory from the argument.
13281 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13282 if test "X$func_dirname_result" = "X${1}"; then
13283 func_dirname_result="${3}"
13284 else
13285 func_dirname_result="$func_dirname_result${2}"
13289 # func_basename file
13290 func_basename ()
13292 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13296 # func_stripname prefix suffix name
13297 # strip PREFIX and SUFFIX off of NAME.
13298 # PREFIX and SUFFIX must not contain globbing or regex special
13299 # characters, hashes, percent signs, but SUFFIX may contain a leading
13300 # dot (in which case that matches only a dot).
13301 # func_strip_suffix prefix name
13302 func_stripname ()
13304 case ${2} in
13305 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13306 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13307 esac
13310 # sed scripts:
13311 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13312 my_sed_long_arg='1s/^-[^=]*=//'
13314 # func_opt_split
13315 func_opt_split ()
13317 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13318 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13321 # func_lo2o object
13322 func_lo2o ()
13324 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13327 # func_xform libobj-or-source
13328 func_xform ()
13330 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13333 # func_arith arithmetic-term...
13334 func_arith ()
13336 func_arith_result=`expr "$@"`
13339 # func_len string
13340 # STRING may not start with a hyphen.
13341 func_len ()
13343 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13346 _LT_EOF
13347 esac
13349 case $lt_shell_append in
13350 yes)
13351 cat << \_LT_EOF >> "$cfgfile"
13353 # func_append var value
13354 # Append VALUE to the end of shell variable VAR.
13355 func_append ()
13357 eval "$1+=\$2"
13359 _LT_EOF
13362 cat << \_LT_EOF >> "$cfgfile"
13364 # func_append var value
13365 # Append VALUE to the end of shell variable VAR.
13366 func_append ()
13368 eval "$1=\$$1\$2"
13371 _LT_EOF
13373 esac
13376 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13377 || (rm -f "$cfgfile"; exit 1)
13379 mv -f "$cfgfile" "$ofile" ||
13380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13381 chmod +x "$ofile"
13385 esac
13386 done # for ac_tag
13389 as_fn_exit 0
13390 _ACEOF
13391 ac_clean_files=$ac_clean_files_save
13393 test $ac_write_fail = 0 ||
13394 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13397 # configure is writing to config.log, and then calls config.status.
13398 # config.status does its own redirection, appending to config.log.
13399 # Unfortunately, on DOS this fails, as config.log is still kept open
13400 # by configure, so config.status won't be able to write to it; its
13401 # output is simply discarded. So we exec the FD to /dev/null,
13402 # effectively closing config.log, so it can be properly (re)opened and
13403 # appended to by config.status. When coming back to configure, we
13404 # need to make the FD available again.
13405 if test "$no_create" != yes; then
13406 ac_cs_success=:
13407 ac_config_status_args=
13408 test "$silent" = yes &&
13409 ac_config_status_args="$ac_config_status_args --quiet"
13410 exec 5>/dev/null
13411 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13412 exec 5>>config.log
13413 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13414 # would make configure fail if this is the last instruction.
13415 $ac_cs_success || as_fn_exit $?
13417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}