PR c++/35708
[official-gcc.git] / libssp / configure
blobee7fb42c2f87f188b7591b2d72a9f1c8838ef32d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libssp 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME='libssp'
418 PACKAGE_TARNAME='libssp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libssp 1.0'
421 PACKAGE_BUGREPORT=''
423 ac_unique_file="ssp.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS LIBSSP_USE_SYMVER_TRUE LIBSSP_USE_SYMVER_FALSE EGREP ssp_have_usable_vsnprintf LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 # Report the --help message.
914 if test "$ac_init_help" = "long"; then
915 # Omit some internal or obsolete options to make the list less imposing.
916 # This message is too long to be a string in the A/UX 3.1 sh.
917 cat <<_ACEOF
918 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
920 Usage: $0 [OPTION]... [VAR=VALUE]...
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE. See below for descriptions of some of the useful variables.
925 Defaults for the options are specified in brackets.
927 Configuration:
928 -h, --help display this help and exit
929 --help=short display options specific to this package
930 --help=recursive display the short help of all the included packages
931 -V, --version display version information and exit
932 -q, --quiet, --silent do not print \`checking...' messages
933 --cache-file=FILE cache test results in FILE [disabled]
934 -C, --config-cache alias for \`--cache-file=config.cache'
935 -n, --no-create do not create output files
936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
938 _ACEOF
940 cat <<_ACEOF
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
943 [$ac_default_prefix]
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
945 [PREFIX]
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
952 For better control, use the options below.
954 Fine tuning of the installation directories:
955 --bindir=DIR user executables [EPREFIX/bin]
956 --sbindir=DIR system admin executables [EPREFIX/sbin]
957 --libexecdir=DIR program executables [EPREFIX/libexec]
958 --datadir=DIR read-only architecture-independent data [PREFIX/share]
959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
962 --libdir=DIR object code libraries [EPREFIX/lib]
963 --includedir=DIR C header files [PREFIX/include]
964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
965 --infodir=DIR info documentation [PREFIX/info]
966 --mandir=DIR man documentation [PREFIX/man]
967 _ACEOF
969 cat <<\_ACEOF
971 Program names:
972 --program-prefix=PREFIX prepend PREFIX to installed program names
973 --program-suffix=SUFFIX append SUFFIX to installed program names
974 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
976 System types:
977 --build=BUILD configure for building on BUILD [guessed]
978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979 --target=TARGET configure for building compilers for TARGET [HOST]
980 _ACEOF
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libssp 1.0:";;
986 esac
987 cat <<\_ACEOF
989 Optional Features:
990 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
991 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
992 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-multilib build many library versions (default)
996 --disable-dependency-tracking speeds up one-time build
997 --enable-dependency-tracking do not reject slow dependency extractors
998 --enable-shared[=PKGS]
999 build shared libraries [default=yes]
1000 --enable-static[=PKGS]
1001 build static libraries [default=yes]
1002 --enable-fast-install[=PKGS]
1003 optimize for fast installation [default=yes]
1004 --disable-libtool-lock avoid locking (might break parallel builds)
1006 Optional Packages:
1007 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1008 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1009 --with-pic try to use only PIC/non-PIC objects [default=use
1010 both]
1011 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1013 Some influential environment variables:
1014 CC C compiler command
1015 CFLAGS C compiler flags
1016 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1017 nonstandard directory <lib dir>
1018 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1019 headers in a nonstandard directory <include dir>
1020 CPP C preprocessor
1022 Use these variables to override the choices made by `configure' or to help
1023 it to find libraries and programs with nonstandard names/locations.
1025 _ACEOF
1028 if test "$ac_init_help" = "recursive"; then
1029 # If there are subdirs, report their specific --help.
1030 ac_popdir=`pwd`
1031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1032 test -d $ac_dir || continue
1033 ac_builddir=.
1035 if test "$ac_dir" != .; then
1036 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1037 # A "../" for each directory in $ac_dir_suffix.
1038 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 else
1040 ac_dir_suffix= ac_top_builddir=
1043 case $srcdir in
1044 .) # No --srcdir option. We are building in place.
1045 ac_srcdir=.
1046 if test -z "$ac_top_builddir"; then
1047 ac_top_srcdir=.
1048 else
1049 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050 fi ;;
1051 [\\/]* | ?:[\\/]* ) # Absolute path.
1052 ac_srcdir=$srcdir$ac_dir_suffix;
1053 ac_top_srcdir=$srcdir ;;
1054 *) # Relative path.
1055 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1056 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1057 esac
1059 # Do not use `cd foo && pwd` to compute absolute paths, because
1060 # the directories may not exist.
1061 case `pwd` in
1062 .) ac_abs_builddir="$ac_dir";;
1064 case "$ac_dir" in
1065 .) ac_abs_builddir=`pwd`;;
1066 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1067 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1068 esac;;
1069 esac
1070 case $ac_abs_builddir in
1071 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1073 case ${ac_top_builddir}. in
1074 .) ac_abs_top_builddir=$ac_abs_builddir;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1076 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1077 esac;;
1078 esac
1079 case $ac_abs_builddir in
1080 .) ac_abs_srcdir=$ac_srcdir;;
1082 case $ac_srcdir in
1083 .) ac_abs_srcdir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1085 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1091 case $ac_top_srcdir in
1092 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1094 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1095 esac;;
1096 esac
1098 cd $ac_dir
1099 # Check for guested configure; otherwise get Cygnus style configure.
1100 if test -f $ac_srcdir/configure.gnu; then
1101 echo
1102 $SHELL $ac_srcdir/configure.gnu --help=recursive
1103 elif test -f $ac_srcdir/configure; then
1104 echo
1105 $SHELL $ac_srcdir/configure --help=recursive
1106 elif test -f $ac_srcdir/configure.ac ||
1107 test -f $ac_srcdir/configure.in; then
1108 echo
1109 $ac_configure --help
1110 else
1111 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113 cd $ac_popdir
1114 done
1117 test -n "$ac_init_help" && exit 0
1118 if $ac_init_version; then
1119 cat <<\_ACEOF
1120 libssp configure 1.0
1121 generated by GNU Autoconf 2.59
1123 Copyright (C) 2003 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127 exit 0
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1134 It was created by libssp $as_me 1.0, which was
1135 generated by GNU Autoconf 2.59. Invocation command line was
1137 $ $0 $@
1139 _ACEOF
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1163 _ASUNAME
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1168 IFS=$as_save_IFS
1169 test -z "$as_dir" && as_dir=.
1170 echo "PATH: $as_dir"
1171 done
1173 } >&5
1175 cat >&5 <<_ACEOF
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1182 _ACEOF
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1197 for ac_arg
1199 case $ac_arg in
1200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 continue ;;
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 esac
1207 case $ac_pass in
1208 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211 if test $ac_must_keep_next = true; then
1212 ac_must_keep_next=false # Got value, back to normal.
1213 else
1214 case $ac_arg in
1215 *=* | --config-cache | -C | -disable-* | --disable-* \
1216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218 | -with-* | --with-* | -without-* | --without-* | --x)
1219 case "$ac_configure_args0 " in
1220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221 esac
1223 -* ) ac_must_keep_next=true ;;
1224 esac
1226 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227 # Get rid of the leading space.
1228 ac_sep=" "
1230 esac
1231 done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log. We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242 # Save into config.log some information that might help in debugging.
1244 echo
1246 cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251 echo
1252 # The following way of writing the cache mishandles newlines in values,
1254 (set) 2>&1 |
1255 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256 *ac_space=\ *)
1257 sed -n \
1258 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262 sed -n \
1263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1265 esac;
1267 echo
1269 cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274 echo
1275 for ac_var in $ac_subst_vars
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1279 done | sort
1280 echo
1282 if test -n "$ac_subst_files"; then
1283 cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288 echo
1289 for ac_var in $ac_subst_files
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1293 done | sort
1294 echo
1297 if test -s confdefs.h; then
1298 cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303 echo
1304 sed "/^$/d" confdefs.h | sort
1305 echo
1307 test "$ac_signal" != 0 &&
1308 echo "$as_me: caught signal $ac_signal"
1309 echo "$as_me: exit $exit_status"
1310 } >&5
1311 rm -f core *.core &&
1312 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313 exit $exit_status
1315 for ac_signal in 1 2 13 15; do
1316 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1325 # Predefined preprocessor variables.
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355 if test "x$prefix" != xNONE; then
1356 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357 else
1358 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361 for ac_site_file in $CONFIG_SITE; do
1362 if test -r "$ac_site_file"; then
1363 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365 sed 's/^/| /' "$ac_site_file" >&5
1366 . "$ac_site_file"
1368 done
1370 if test -r "$cache_file"; then
1371 # Some versions of bash will fail to source /dev/null (special
1372 # files actually), so we avoid doing that.
1373 if test -f "$cache_file"; then
1374 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376 case $cache_file in
1377 [\\/]* | ?:[\\/]* ) . $cache_file;;
1378 *) . ./$cache_file;;
1379 esac
1381 else
1382 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384 >$cache_file
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393 eval ac_new_set=\$ac_env_${ac_var}_set
1394 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395 eval ac_new_val="\$ac_env_${ac_var}_value"
1396 case $ac_old_set,$ac_new_set in
1397 set,)
1398 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400 ac_cache_corrupted=: ;;
1401 ,set)
1402 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404 ac_cache_corrupted=: ;;
1405 ,);;
1407 if test "x$ac_old_val" != "x$ac_new_val"; then
1408 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1409 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1410 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1411 echo "$as_me: former value: $ac_old_val" >&2;}
1412 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1413 echo "$as_me: current value: $ac_new_val" >&2;}
1414 ac_cache_corrupted=:
1415 fi;;
1416 esac
1417 # Pass precious variables to config.status.
1418 if test "$ac_new_set" = set; then
1419 case $ac_new_val in
1420 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1421 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1422 *) ac_arg=$ac_var=$ac_new_val ;;
1423 esac
1424 case " $ac_configure_args " in
1425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1426 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1427 esac
1429 done
1430 if $ac_cache_corrupted; then
1431 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1432 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1433 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1434 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1435 { (exit 1); exit 1; }; }
1438 ac_ext=c
1439 ac_cpp='$CPP $CPPFLAGS'
1440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471 ac_aux_dir=
1472 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1473 if test -f $ac_dir/install-sh; then
1474 ac_aux_dir=$ac_dir
1475 ac_install_sh="$ac_aux_dir/install-sh -c"
1476 break
1477 elif test -f $ac_dir/install.sh; then
1478 ac_aux_dir=$ac_dir
1479 ac_install_sh="$ac_aux_dir/install.sh -c"
1480 break
1481 elif test -f $ac_dir/shtool; then
1482 ac_aux_dir=$ac_dir
1483 ac_install_sh="$ac_aux_dir/shtool install -c"
1484 break
1486 done
1487 if test -z "$ac_aux_dir"; then
1488 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1489 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1490 { (exit 1); exit 1; }; }
1492 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1493 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1494 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496 # Make sure we can run config.sub.
1497 $ac_config_sub sun4 >/dev/null 2>&1 ||
1498 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1499 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1500 { (exit 1); exit 1; }; }
1502 echo "$as_me:$LINENO: checking build system type" >&5
1503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1504 if test "${ac_cv_build+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 ac_cv_build_alias=$build_alias
1508 test -z "$ac_cv_build_alias" &&
1509 ac_cv_build_alias=`$ac_config_guess`
1510 test -z "$ac_cv_build_alias" &&
1511 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1513 { (exit 1); exit 1; }; }
1514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1521 echo "${ECHO_T}$ac_cv_build" >&6
1522 build=$ac_cv_build
1523 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528 echo "$as_me:$LINENO: checking host system type" >&5
1529 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1530 if test "${ac_cv_host+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 ac_cv_host_alias=$host_alias
1534 test -z "$ac_cv_host_alias" &&
1535 ac_cv_host_alias=$ac_cv_build_alias
1536 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1539 { (exit 1); exit 1; }; }
1542 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1543 echo "${ECHO_T}$ac_cv_host" >&6
1544 host=$ac_cv_host
1545 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550 echo "$as_me:$LINENO: checking target system type" >&5
1551 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1552 if test "${ac_cv_target+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555 ac_cv_target_alias=$target_alias
1556 test "x$ac_cv_target_alias" = "x" &&
1557 ac_cv_target_alias=$ac_cv_host_alias
1558 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1559 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1561 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1565 echo "${ECHO_T}$ac_cv_target" >&6
1566 target=$ac_cv_target
1567 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 # The aliases save the names the user supplied, while $host etc.
1573 # will get canonicalized.
1574 test -n "$target_alias" &&
1575 test "$program_prefix$program_suffix$program_transform_name" = \
1576 NONENONEs,x,x, &&
1577 program_prefix=${target_alias}-
1578 case ${build_alias} in
1579 "") build_noncanonical=${build} ;;
1580 *) build_noncanonical=${build_alias} ;;
1581 esac
1583 case ${host_alias} in
1584 "") host_noncanonical=${build_noncanonical} ;;
1585 *) host_noncanonical=${host_alias} ;;
1586 esac
1588 case ${target_alias} in
1589 "") target_noncanonical=${host_noncanonical} ;;
1590 *) target_noncanonical=${target_alias} ;;
1591 esac
1596 am__api_version="1.9"
1597 # Find a good install program. We prefer a C program (faster),
1598 # so one script is as good as another. But avoid the broken or
1599 # incompatible versions:
1600 # SysV /etc/install, /usr/sbin/install
1601 # SunOS /usr/etc/install
1602 # IRIX /sbin/install
1603 # AIX /bin/install
1604 # AmigaOS /C/install, which installs bootblocks on floppy discs
1605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1608 # OS/2's system install, which has a completely different semantic
1609 # ./install, which can be erroneously created by make from ./install.sh.
1610 # Reject install programs that cannot install multiple files.
1611 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1612 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1613 if test -z "$INSTALL"; then
1614 if test "${ac_cv_path_install+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 # Account for people who put trailing slashes in PATH elements.
1623 case $as_dir/ in
1624 ./ | .// | /cC/* | \
1625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1626 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1627 /usr/ucb/* ) ;;
1629 # OSF1 and SCO ODT 3.0 have their own names for install.
1630 # Don't use installbsd from OSF since it installs stuff as root
1631 # by default.
1632 for ac_prog in ginstall scoinst install; do
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1635 if test $ac_prog = install &&
1636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1637 # AIX install. It has an incompatible calling convention.
1639 elif test $ac_prog = install &&
1640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641 # program-specific install script used by HP pwplus--don't use.
1643 else
1644 rm -rf conftest.one conftest.two conftest.dir
1645 echo one > conftest.one
1646 echo two > conftest.two
1647 mkdir conftest.dir
1648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1649 test -s conftest.one && test -s conftest.two &&
1650 test -s conftest.dir/conftest.one &&
1651 test -s conftest.dir/conftest.two
1652 then
1653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1654 break 3
1658 done
1659 done
1661 esac
1662 done
1664 rm -rf conftest.one conftest.two conftest.dir
1667 if test "${ac_cv_path_install+set}" = set; then
1668 INSTALL=$ac_cv_path_install
1669 else
1670 # As a last resort, use the slow shell script. Don't cache a
1671 # value for INSTALL within a source directory, because that will
1672 # break other packages using the cache if that directory is
1673 # removed, or if the value is a relative name.
1674 INSTALL=$ac_install_sh
1677 echo "$as_me:$LINENO: result: $INSTALL" >&5
1678 echo "${ECHO_T}$INSTALL" >&6
1680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1681 # It thinks the first close brace ends the variable substitution.
1682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1688 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1689 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1690 # Just in case
1691 sleep 1
1692 echo timestamp > conftest.file
1693 # Do `set' in a subshell so we don't clobber the current shell's
1694 # arguments. Must try -L first in case configure is actually a
1695 # symlink; some systems play weird games with the mod time of symlinks
1696 # (eg FreeBSD returns the mod time of the symlink's containing
1697 # directory).
1698 if (
1699 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1700 if test "$*" = "X"; then
1701 # -L didn't work.
1702 set X `ls -t $srcdir/configure conftest.file`
1704 rm -f conftest.file
1705 if test "$*" != "X $srcdir/configure conftest.file" \
1706 && test "$*" != "X conftest.file $srcdir/configure"; then
1708 # If neither matched, then we have a broken ls. This can happen
1709 # if, for instance, CONFIG_SHELL is bash and it inherits a
1710 # broken ls alias from the environment. This has actually
1711 # happened. Such a system could not be considered "sane".
1712 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1713 alias in your environment" >&5
1714 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1715 alias in your environment" >&2;}
1716 { (exit 1); exit 1; }; }
1719 test "$2" = conftest.file
1721 then
1722 # Ok.
1724 else
1725 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1726 Check your system clock" >&5
1727 echo "$as_me: error: newly created file is older than distributed files!
1728 Check your system clock" >&2;}
1729 { (exit 1); exit 1; }; }
1731 echo "$as_me:$LINENO: result: yes" >&5
1732 echo "${ECHO_T}yes" >&6
1733 test "$program_prefix" != NONE &&
1734 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1735 # Use a double $ so make ignores it.
1736 test "$program_suffix" != NONE &&
1737 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1738 # Double any \ or $. echo might interpret backslashes.
1739 # By default was `s,x,x', remove it if useless.
1740 cat <<\_ACEOF >conftest.sed
1741 s/[\\$]/&&/g;s/;s,x,x,$//
1742 _ACEOF
1743 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1744 rm conftest.sed
1746 # expand $ac_aux_dir to an absolute path
1747 am_aux_dir=`cd $ac_aux_dir && pwd`
1749 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1750 # Use eval to expand $SHELL
1751 if eval "$MISSING --run true"; then
1752 am_missing_run="$MISSING --run "
1753 else
1754 am_missing_run=
1755 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1756 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1760 # We used to keeping the `.' as first argument, in order to
1761 # allow $(mkdir_p) to be used without argument. As in
1762 # $(mkdir_p) $(somedir)
1763 # where $(somedir) is conditionally defined. However this is wrong
1764 # for two reasons:
1765 # 1. if the package is installed by a user who cannot write `.'
1766 # make install will fail,
1767 # 2. the above comment should most certainly read
1768 # $(mkdir_p) $(DESTDIR)$(somedir)
1769 # so it does not work when $(somedir) is undefined and
1770 # $(DESTDIR) is not.
1771 # To support the latter case, we have to write
1772 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1773 # so the `.' trick is pointless.
1774 mkdir_p='mkdir -p --'
1775 else
1776 # On NextStep and OpenStep, the `mkdir' command does not
1777 # recognize any option. It will interpret all options as
1778 # directories to create, and then abort because `.' already
1779 # exists.
1780 for d in ./-p ./--version;
1782 test -d $d && rmdir $d
1783 done
1784 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1785 if test -f "$ac_aux_dir/mkinstalldirs"; then
1786 mkdir_p='$(mkinstalldirs)'
1787 else
1788 mkdir_p='$(install_sh) -d'
1792 for ac_prog in gawk mawk nawk awk
1794 # Extract the first word of "$ac_prog", so it can be a program name with args.
1795 set dummy $ac_prog; ac_word=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_AWK+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test -n "$AWK"; then
1802 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 ac_cv_prog_AWK="$ac_prog"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1815 done
1816 done
1820 AWK=$ac_cv_prog_AWK
1821 if test -n "$AWK"; then
1822 echo "$as_me:$LINENO: result: $AWK" >&5
1823 echo "${ECHO_T}$AWK" >&6
1824 else
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1829 test -n "$AWK" && break
1830 done
1832 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1833 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1834 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1835 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 cat >conftest.make <<\_ACEOF
1839 all:
1840 @echo 'ac_maketemp="$(MAKE)"'
1841 _ACEOF
1842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1843 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1844 if test -n "$ac_maketemp"; then
1845 eval ac_cv_prog_make_${ac_make}_set=yes
1846 else
1847 eval ac_cv_prog_make_${ac_make}_set=no
1849 rm -f conftest.make
1851 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1852 echo "$as_me:$LINENO: result: yes" >&5
1853 echo "${ECHO_T}yes" >&6
1854 SET_MAKE=
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 SET_MAKE="MAKE=${MAKE-make}"
1861 rm -rf .tst 2>/dev/null
1862 mkdir .tst 2>/dev/null
1863 if test -d .tst; then
1864 am__leading_dot=.
1865 else
1866 am__leading_dot=_
1868 rmdir .tst 2>/dev/null
1870 # test to see if srcdir already configured
1871 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1872 test -f $srcdir/config.status; then
1873 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1874 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1875 { (exit 1); exit 1; }; }
1878 # test whether we have cygpath
1879 if test -z "$CYGPATH_W"; then
1880 if (cygpath --version) >/dev/null 2>/dev/null; then
1881 CYGPATH_W='cygpath -w'
1882 else
1883 CYGPATH_W=echo
1888 # Define the identity of the package.
1889 PACKAGE='libssp'
1890 VERSION='1.0'
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE "$PACKAGE"
1895 _ACEOF
1898 cat >>confdefs.h <<_ACEOF
1899 #define VERSION "$VERSION"
1900 _ACEOF
1902 # Some tools Automake needs.
1904 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1907 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1910 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1913 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1916 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1918 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1920 # Installed binaries are usually stripped using `strip' when the user
1921 # run `make install-strip'. However `strip' might not be the right
1922 # tool to use in cross-compilation environments, therefore Automake
1923 # will honor the `STRIP' environment variable to overrule this program.
1924 if test "$cross_compiling" != no; then
1925 if test -n "$ac_tool_prefix"; then
1926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1927 set dummy ${ac_tool_prefix}strip; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_STRIP+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$STRIP"; then
1934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1935 else
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1947 done
1948 done
1952 STRIP=$ac_cv_prog_STRIP
1953 if test -n "$STRIP"; then
1954 echo "$as_me:$LINENO: result: $STRIP" >&5
1955 echo "${ECHO_T}$STRIP" >&6
1956 else
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1962 if test -z "$ac_cv_prog_STRIP"; then
1963 ac_ct_STRIP=$STRIP
1964 # Extract the first word of "strip", so it can be a program name with args.
1965 set dummy strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 if test -n "$ac_ct_STRIP"; then
1972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_ac_ct_STRIP="strip"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1985 done
1986 done
1988 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1992 if test -n "$ac_ct_STRIP"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1994 echo "${ECHO_T}$ac_ct_STRIP" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2000 STRIP=$ac_ct_STRIP
2001 else
2002 STRIP="$ac_cv_prog_STRIP"
2006 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2008 # We need awk for the "check" target. The system "awk" is bad on
2009 # some platforms.
2010 # Always define AMTAR for backward compatibility.
2012 AMTAR=${AMTAR-"${am_missing_run}tar"}
2014 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2021 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2022 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2023 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2024 if test "${enable_version_specific_runtime_libs+set}" = set; then
2025 enableval="$enable_version_specific_runtime_libs"
2026 case "$enableval" in
2027 yes) version_specific_libs=yes ;;
2028 no) version_specific_libs=no ;;
2029 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2030 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2031 { (exit 1); exit 1; }; };;
2032 esac
2033 else
2034 version_specific_libs=no
2036 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2037 echo "${ECHO_T}$version_specific_libs" >&6
2039 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2040 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2041 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2042 if test "${enable_maintainer_mode+set}" = set; then
2043 enableval="$enable_maintainer_mode"
2044 USE_MAINTAINER_MODE=$enableval
2045 else
2046 USE_MAINTAINER_MODE=no
2048 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2049 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2052 if test $USE_MAINTAINER_MODE = yes; then
2053 MAINTAINER_MODE_TRUE=
2054 MAINTAINER_MODE_FALSE='#'
2055 else
2056 MAINTAINER_MODE_TRUE='#'
2057 MAINTAINER_MODE_FALSE=
2060 MAINT=$MAINTAINER_MODE_TRUE
2066 # Default to --enable-multilib
2067 # Check whether --enable-multilib or --disable-multilib was given.
2068 if test "${enable_multilib+set}" = set; then
2069 enableval="$enable_multilib"
2070 case "$enableval" in
2071 yes) multilib=yes ;;
2072 no) multilib=no ;;
2073 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2074 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2075 { (exit 1); exit 1; }; } ;;
2076 esac
2077 else
2078 multilib=yes
2081 # We may get other options which we leave undocumented:
2082 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2083 # See config-ml.in if you want the gory details.
2085 if test "$srcdir" = "."; then
2086 if test "$with_target_subdir" != "."; then
2087 multi_basedir="$srcdir/$with_multisrctop../.."
2088 else
2089 multi_basedir="$srcdir/$with_multisrctop.."
2091 else
2092 multi_basedir="$srcdir/.."
2096 # Even if the default multilib is not a cross compilation,
2097 # it may be that some of the other multilibs are.
2098 if test $cross_compiling = no && test $multilib = yes \
2099 && test "x${with_multisubdir}" != x ; then
2100 cross_compiling=maybe
2103 ac_config_commands="$ac_config_commands default-1"
2106 target_alias=${target_alias-$host_alias}
2109 ac_config_headers="$ac_config_headers config.h"
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2119 # We must force CC to /not/ be precious variables; otherwise
2120 # the wrong, non-multilib-adjusted value will be used in multilibs.
2121 # As a side effect, we have to subst CFLAGS ourselves.
2125 ac_ext=c
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2167 if test -z "$ac_cv_prog_CC"; then
2168 ac_ct_CC=$CC
2169 # Extract the first word of "gcc", so it can be a program name with args.
2170 set dummy gcc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$ac_ct_CC"; then
2177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 ac_cv_prog_ac_ct_CC="gcc"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2190 done
2191 done
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2199 else
2200 echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2204 CC=$ac_ct_CC
2205 else
2206 CC="$ac_cv_prog_CC"
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_CC="${ac_tool_prefix}cc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 break 2
2232 done
2233 done
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239 echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2247 if test -z "$ac_cv_prog_CC"; then
2248 ac_ct_CC=$CC
2249 # Extract the first word of "cc", so it can be a program name with args.
2250 set dummy cc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_ac_ct_CC="cc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2270 done
2271 done
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2284 CC=$ac_ct_CC
2285 else
2286 CC="$ac_cv_prog_CC"
2290 if test -z "$CC"; then
2291 # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 ac_prog_rejected=no
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2310 ac_prog_rejected=yes
2311 continue
2313 ac_cv_prog_CC="cc"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 break 2
2317 done
2318 done
2320 if test $ac_prog_rejected = yes; then
2321 # We found a bogon in the path, so make sure we never use it.
2322 set dummy $ac_cv_prog_CC
2323 shift
2324 if test $# != 0; then
2325 # We chose a different compiler from the bogus one.
2326 # However, it has the same basename, so the bogon will be chosen
2327 # first if we set CC to just the basename; use the full file name.
2328 shift
2329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336 echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6
2338 else
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2344 if test -z "$CC"; then
2345 if test -n "$ac_tool_prefix"; then
2346 for ac_prog in cl
2348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376 echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6
2378 else
2379 echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 test -n "$CC" && break
2384 done
2386 if test -z "$CC"; then
2387 ac_ct_CC=$CC
2388 for ac_prog in cl
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 if test -n "$ac_ct_CC"; then
2398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_ac_ct_CC="$ac_prog"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2411 done
2412 done
2416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417 if test -n "$ac_ct_CC"; then
2418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419 echo "${ECHO_T}$ac_ct_CC" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$ac_ct_CC" && break
2426 done
2428 CC=$ac_ct_CC
2434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: no acceptable C compiler found in \$PATH
2437 See \`config.log' for more details." >&2;}
2438 { (exit 1); exit 1; }; }
2440 # Provide some information about the compiler.
2441 echo "$as_me:$LINENO:" \
2442 "checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2445 (eval $ac_compiler --version </dev/null >&5) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2450 (eval $ac_compiler -v </dev/null >&5) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }
2454 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2455 (eval $ac_compiler -V </dev/null >&5) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h. */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2468 main ()
2472 return 0;
2474 _ACEOF
2475 # FIXME: Cleanup?
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477 (eval $ac_link) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 gcc_no_link=no
2482 else
2483 gcc_no_link=yes
2486 if test x$gcc_no_link = xyes; then
2487 # Setting cross_compile will disable run tests; it will
2488 # also disable AC_CHECK_FILE but that's generally
2489 # correct if we can't link.
2490 cross_compiling=yes
2491 EXEEXT=
2492 else
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h. */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2501 main ()
2505 return 0;
2507 _ACEOF
2508 ac_clean_files_save=$ac_clean_files
2509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2510 # Try to create an executable without -o first, disregard a.out.
2511 # It will help us diagnose broken compilers, and finding out an intuition
2512 # of exeext.
2513 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2516 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2517 (eval $ac_link_default) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; then
2521 # Find the output, starting from the most likely. This scheme is
2522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2523 # resort.
2525 # Be careful to initialize this variable, since it used to be cached.
2526 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2527 ac_cv_exeext=
2528 # b.out is created by i960 compilers.
2529 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2531 test -f "$ac_file" || continue
2532 case $ac_file in
2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2535 conftest.$ac_ext )
2536 # This is the source file.
2538 [ab].out )
2539 # We found the default executable, but exeext='' is most
2540 # certainly right.
2541 break;;
2542 *.* )
2543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544 # FIXME: I believe we export ac_cv_exeext for Libtool,
2545 # but it would be cool to find out if it's true. Does anybody
2546 # maintain Libtool? --akim.
2547 export ac_cv_exeext
2548 break;;
2550 break;;
2551 esac
2552 done
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&2;}
2561 { (exit 77); exit 77; }; }
2564 ac_exeext=$ac_cv_exeext
2565 echo "$as_me:$LINENO: result: $ac_file" >&5
2566 echo "${ECHO_T}$ac_file" >&6
2568 # Check the compiler produces executables we can run. If not, either
2569 # the compiler is broken, or we cross compile.
2570 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2571 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2573 # If not cross compiling, check that we can run a simple program.
2574 if test "$cross_compiling" != yes; then
2575 if { ac_try='./$ac_file'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 cross_compiling=no
2582 else
2583 if test "$cross_compiling" = maybe; then
2584 cross_compiling=yes
2585 else
2586 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2587 If you meant to cross compile, use \`--host'.
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: cannot run C compiled programs.
2590 If you meant to cross compile, use \`--host'.
2591 See \`config.log' for more details." >&2;}
2592 { (exit 1); exit 1; }; }
2596 echo "$as_me:$LINENO: result: yes" >&5
2597 echo "${ECHO_T}yes" >&6
2599 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2600 ac_clean_files=$ac_clean_files_save
2601 # Check the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2604 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2605 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2606 echo "${ECHO_T}$cross_compiling" >&6
2608 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2609 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611 (eval $ac_link) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; then
2615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2616 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2617 # work properly (i.e., refer to `conftest.exe'), while it won't with
2618 # `rm'.
2619 for ac_file in conftest.exe conftest conftest.*; do
2620 test -f "$ac_file" || continue
2621 case $ac_file in
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 export ac_cv_exeext
2625 break;;
2626 * ) break;;
2627 esac
2628 done
2629 else
2630 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&2;}
2634 { (exit 1); exit 1; }; }
2637 rm -f conftest$ac_cv_exeext
2638 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2639 echo "${ECHO_T}$ac_cv_exeext" >&6
2641 rm -f conftest.$ac_ext
2642 EXEEXT=$ac_cv_exeext
2643 ac_exeext=$EXEEXT
2645 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2646 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2647 if test "${ac_cv_objext+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2658 main ()
2662 return 0;
2664 _ACEOF
2665 rm -f conftest.o conftest.obj
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; then
2671 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2672 case $ac_file in
2673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2675 break;;
2676 esac
2677 done
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2683 See \`config.log' for more details." >&5
2684 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&2;}
2686 { (exit 1); exit 1; }; }
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2692 echo "${ECHO_T}$ac_cv_objext" >&6
2693 OBJEXT=$ac_cv_objext
2694 ac_objext=$OBJEXT
2695 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2696 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2697 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h. */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2708 main ()
2710 #ifndef __GNUC__
2711 choke me
2712 #endif
2715 return 0;
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 ac_compiler_gnu=yes
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 ac_compiler_gnu=no
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2756 CFLAGS="-g"
2757 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2770 main ()
2774 return 0;
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 ac_cv_prog_cc_g=yes
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 ac_cv_prog_cc_g=no
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2810 if test "$ac_test_CFLAGS" = set; then
2811 CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813 if test "$GCC" = yes; then
2814 CFLAGS="-g -O2"
2815 else
2816 CFLAGS="-g"
2818 else
2819 if test "$GCC" = yes; then
2820 CFLAGS="-O2"
2821 else
2822 CFLAGS=
2825 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2826 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2827 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 ac_cv_prog_cc_stdc=no
2831 ac_save_CC=$CC
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <stdarg.h>
2839 #include <stdio.h>
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2846 char **p;
2847 int i;
2849 return p[i];
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2853 char *s;
2854 va_list v;
2855 va_start (v,p);
2856 s = g (p, va_arg (v,int));
2857 va_end (v);
2858 return s;
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862 function prototypes and stuff, but not '\xHH' hex character constants.
2863 These don't provoke an error unfortunately, instead are silently treated
2864 as 'x'. The following induces an error, until -std1 is added to get
2865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866 array size at least. It's necessary to write '\x00'==0 to get something
2867 that's true only with -std1. */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870 int test (int i, double x);
2871 struct s1 {int (*f) (int a);};
2872 struct s2 {int (*f) (double a);};
2873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2874 int argc;
2875 char **argv;
2877 main ()
2879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2881 return 0;
2883 _ACEOF
2884 # Don't try gcc -ansi; that turns off useful extensions and
2885 # breaks some systems' header files.
2886 # AIX -qlanglvl=ansi
2887 # Ultrix and OSF/1 -std1
2888 # HP-UX 10.20 and later -Ae
2889 # HP-UX older versions -Aa -D_HPUX_SOURCE
2890 # SVR4 -Xc -D__EXTENSIONS__
2891 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 CC="$ac_save_CC $ac_arg"
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_cv_prog_cc_stdc=$ac_arg
2917 break
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext
2924 done
2925 rm -f conftest.$ac_ext conftest.$ac_objext
2926 CC=$ac_save_CC
2930 case "x$ac_cv_prog_cc_stdc" in
2931 x|xno)
2932 echo "$as_me:$LINENO: result: none needed" >&5
2933 echo "${ECHO_T}none needed" >&6 ;;
2935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2937 CC="$CC $ac_cv_prog_cc_stdc" ;;
2938 esac
2940 # Some people use a C++ compiler to compile C. Since we use `exit',
2941 # in C++ we need to declare it. In case someone uses the same compiler
2942 # for both compiling C and C++ we need to have the C++ compiler decide
2943 # the declaration of exit, since it's the most demanding environment.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #ifndef __cplusplus
2946 choke me
2947 #endif
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 for ac_declaration in \
2972 '' \
2973 'extern "C" void std::exit (int) throw (); using std::exit;' \
2974 'extern "C" void std::exit (int); using std::exit;' \
2975 'extern "C" void exit (int) throw ();' \
2976 'extern "C" void exit (int);' \
2977 'void exit (int);'
2979 cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h. */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 $ac_declaration
2986 #include <stdlib.h>
2988 main ()
2990 exit (42);
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2998 ac_status=$?
2999 grep -v '^ *+' conftest.er1 >conftest.err
3000 rm -f conftest.er1
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_c_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 (eval $ac_try) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 (eval $ac_try) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 continue
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3031 $ac_declaration
3033 main ()
3035 exit (42);
3037 return 0;
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag"
3050 || test ! -s conftest.err'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; } &&
3056 { ac_try='test -s conftest.$ac_objext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3062 break
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069 done
3070 rm -f conftest*
3071 if test -n "$ac_declaration"; then
3072 echo '#ifdef __cplusplus' >>confdefs.h
3073 echo $ac_declaration >>confdefs.h
3074 echo '#endif' >>confdefs.h
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 DEPDIR="${am__leading_dot}deps"
3090 ac_config_commands="$ac_config_commands depfiles"
3093 am_make=${MAKE-make}
3094 cat > confinc << 'END'
3095 am__doit:
3096 @echo done
3097 .PHONY: am__doit
3099 # If we don't find an include directive, just comment out the code.
3100 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3102 am__include="#"
3103 am__quote=
3104 _am_result=none
3105 # First try GNU make style include.
3106 echo "include confinc" > confmf
3107 # We grep out `Entering directory' and `Leaving directory'
3108 # messages which can occur if `w' ends up in MAKEFLAGS.
3109 # In particular we don't look at `^make:' because GNU make might
3110 # be invoked under some other name (usually "gmake"), in which
3111 # case it prints its new name instead of `make'.
3112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3113 am__include=include
3114 am__quote=
3115 _am_result=GNU
3117 # Now try BSD make style include.
3118 if test "$am__include" = "#"; then
3119 echo '.include "confinc"' > confmf
3120 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3121 am__include=.include
3122 am__quote="\""
3123 _am_result=BSD
3128 echo "$as_me:$LINENO: result: $_am_result" >&5
3129 echo "${ECHO_T}$_am_result" >&6
3130 rm -f confinc confmf
3132 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3133 if test "${enable_dependency_tracking+set}" = set; then
3134 enableval="$enable_dependency_tracking"
3137 if test "x$enable_dependency_tracking" != xno; then
3138 am_depcomp="$ac_aux_dir/depcomp"
3139 AMDEPBACKSLASH='\'
3143 if test "x$enable_dependency_tracking" != xno; then
3144 AMDEP_TRUE=
3145 AMDEP_FALSE='#'
3146 else
3147 AMDEP_TRUE='#'
3148 AMDEP_FALSE=
3154 depcc="$CC" am_compiler_list=
3156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3162 # We make a subdir and do the tests there. Otherwise we can end up
3163 # making bogus files that we don't know about and never remove. For
3164 # instance it was reported that on HP-UX the gcc test will end up
3165 # making a dummy file named `D' -- because `-MD' means `put the output
3166 # in D'.
3167 mkdir conftest.dir
3168 # Copy depcomp to subdir because otherwise we won't find it if we're
3169 # using a relative directory.
3170 cp "$am_depcomp" conftest.dir
3171 cd conftest.dir
3172 # We will build objects and dependencies in a subdirectory because
3173 # it helps to detect inapplicable dependency modes. For instance
3174 # both Tru64's cc and ICC support -MD to output dependencies as a
3175 # side effect of compilation, but ICC will put the dependencies in
3176 # the current directory while Tru64 will put them in the object
3177 # directory.
3178 mkdir sub
3180 am_cv_CC_dependencies_compiler_type=none
3181 if test "$am_compiler_list" = ""; then
3182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184 for depmode in $am_compiler_list; do
3185 # Setup a source with many dependencies, because some compilers
3186 # like to wrap large dependency lists on column 80 (with \), and
3187 # we should not choose a depcomp mode which is confused by this.
3189 # We need to recreate these files for each test, as the compiler may
3190 # overwrite some of them when testing with obscure command lines.
3191 # This happens at least with the AIX C compiler.
3192 : > sub/conftest.c
3193 for i in 1 2 3 4 5 6; do
3194 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3195 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3196 # Solaris 8's {/usr,}/bin/sh.
3197 touch sub/conftst$i.h
3198 done
3199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3201 case $depmode in
3202 nosideeffect)
3203 # after this tag, mechanisms are not by side-effect, so they'll
3204 # only be used when explicitly requested
3205 if test "x$enable_dependency_tracking" = xyes; then
3206 continue
3207 else
3208 break
3211 none) break ;;
3212 esac
3213 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3214 # mode. It turns out that the SunPro C++ compiler does not properly
3215 # handle `-M -o', and we need to detect this.
3216 if depmode=$depmode \
3217 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3219 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3220 >/dev/null 2>conftest.err &&
3221 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3222 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3224 # icc doesn't choke on unknown options, it will just issue warnings
3225 # or remarks (even with -Werror). So we grep stderr for any message
3226 # that says an option was ignored or not supported.
3227 # When given -MP, icc 7.0 and 7.1 complain thusly:
3228 # icc: Command line warning: ignoring option '-M'; no argument required
3229 # The diagnosis changed in icc 8.0:
3230 # icc: Command line remark: option '-MP' not supported
3231 if (grep 'ignoring option' conftest.err ||
3232 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3233 am_cv_CC_dependencies_compiler_type=$depmode
3234 break
3237 done
3239 cd ..
3240 rm -rf conftest.dir
3241 else
3242 am_cv_CC_dependencies_compiler_type=none
3246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253 test "x$enable_dependency_tracking" != xno \
3254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3255 am__fastdepCC_TRUE=
3256 am__fastdepCC_FALSE='#'
3257 else
3258 am__fastdepCC_TRUE='#'
3259 am__fastdepCC_FALSE=
3267 if test "x$GCC" != "xyes"; then
3268 { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3269 echo "$as_me: error: libssp must be built with GCC" >&2;}
3270 { (exit 1); exit 1; }; }
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3278 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3279 # On Suns, sometimes $CPP names a directory.
3280 if test -n "$CPP" && test -d "$CPP"; then
3281 CPP=
3283 if test -z "$CPP"; then
3284 if test "${ac_cv_prog_CPP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 # Double quotes because CPP needs to be expanded
3288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3290 ac_preproc_ok=false
3291 for ac_c_preproc_warn_flag in '' yes
3293 # Use a header file that comes with gcc, so configuring glibc
3294 # with a fresh cross-compiler works.
3295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3296 # <limits.h> exists even on freestanding compilers.
3297 # On the NeXT, cc -E runs the code through the compiler's parser,
3298 # not just through cpp. "Syntax error" is here to catch this case.
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #ifdef __STDC__
3306 # include <limits.h>
3307 #else
3308 # include <assert.h>
3309 #endif
3310 Syntax error
3311 _ACEOF
3312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null; then
3320 if test -s conftest.err; then
3321 ac_cpp_err=$ac_c_preproc_warn_flag
3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323 else
3324 ac_cpp_err=
3326 else
3327 ac_cpp_err=yes
3329 if test -z "$ac_cpp_err"; then
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 # Broken: fails on valid input.
3336 continue
3338 rm -f conftest.err conftest.$ac_ext
3340 # OK, works on sane cases. Now check whether non-existent headers
3341 # can be detected and how.
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 #include <ac_nonexistent.h>
3349 _ACEOF
3350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361 else
3362 ac_cpp_err=
3364 else
3365 ac_cpp_err=yes
3367 if test -z "$ac_cpp_err"; then
3368 # Broken: success on invalid input.
3369 continue
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Passes both tests.
3375 ac_preproc_ok=:
3376 break
3378 rm -f conftest.err conftest.$ac_ext
3380 done
3381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3382 rm -f conftest.err conftest.$ac_ext
3383 if $ac_preproc_ok; then
3384 break
3387 done
3388 ac_cv_prog_CPP=$CPP
3391 CPP=$ac_cv_prog_CPP
3392 else
3393 ac_cv_prog_CPP=$CPP
3395 echo "$as_me:$LINENO: result: $CPP" >&5
3396 echo "${ECHO_T}$CPP" >&6
3397 ac_preproc_ok=false
3398 for ac_c_preproc_warn_flag in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #ifdef __STDC__
3413 # include <limits.h>
3414 #else
3415 # include <assert.h>
3416 #endif
3417 Syntax error
3418 _ACEOF
3419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null; then
3427 if test -s conftest.err; then
3428 ac_cpp_err=$ac_c_preproc_warn_flag
3429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430 else
3431 ac_cpp_err=
3433 else
3434 ac_cpp_err=yes
3436 if test -z "$ac_cpp_err"; then
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Broken: fails on valid input.
3443 continue
3445 rm -f conftest.err conftest.$ac_ext
3447 # OK, works on sane cases. Now check whether non-existent headers
3448 # can be detected and how.
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <ac_nonexistent.h>
3456 _ACEOF
3457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468 else
3469 ac_cpp_err=
3471 else
3472 ac_cpp_err=yes
3474 if test -z "$ac_cpp_err"; then
3475 # Broken: success on invalid input.
3476 continue
3477 else
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 # Passes both tests.
3482 ac_preproc_ok=:
3483 break
3485 rm -f conftest.err conftest.$ac_ext
3487 done
3488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3489 rm -f conftest.err conftest.$ac_ext
3490 if $ac_preproc_ok; then
3492 else
3493 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3494 See \`config.log' for more details." >&5
3495 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3508 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3509 save_CFLAGS="$CFLAGS"
3510 CFLAGS="$CFLAGS -fstack-protector -Werror"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3519 void __attribute__((noinline)) bar (char *x)
3521 __builtin_memset (x, 0, 64);
3524 main ()
3526 char buf[64]; bar (buf);
3528 return 0;
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 CFLAGS="$save_CFLAGS"
3565 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3566 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3574 void __attribute__((visibility ("hidden"))) bar (void) {}
3576 main ()
3580 return 0;
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3585 (eval $ac_compile) 2>conftest.er1
3586 ac_status=$?
3587 grep -v '^ *+' conftest.er1 >conftest.err
3588 rm -f conftest.er1
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -z "$ac_c_werror_flag"
3593 || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ssp_hidden=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ssp_hidden=no
3612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3614 echo "${ECHO_T}$ssp_hidden" >&6
3615 if test x$ssp_hidden = xyes; then
3617 cat >>confdefs.h <<\_ACEOF
3618 #define HAVE_HIDDEN_VISIBILITY 1
3619 _ACEOF
3623 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3624 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3625 cat > conftest.map <<EOF
3626 FOO_1.0 {
3627 global: *foo*; bar; local: *;
3630 save_LDFLAGS="$LDFLAGS"
3631 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3632 if test x$gcc_no_link = xyes; then
3633 # If we cannot link, we cannot build shared libraries, so do not use
3634 # symbol versioning.
3635 ssp_use_symver=no
3636 else
3637 if test x$gcc_no_link = xyes; then
3638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3640 { (exit 1); exit 1; }; }
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 int foo;
3650 main ()
3654 return 0;
3656 _ACEOF
3657 rm -f conftest.$ac_objext conftest$ac_exeext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest$ac_exeext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ssp_use_symver=yes
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ssp_use_symver=no
3686 rm -f conftest.err conftest.$ac_objext \
3687 conftest$ac_exeext conftest.$ac_ext
3689 LDFLAGS="$save_LDFLAGS"
3690 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3691 echo "${ECHO_T}$ssp_use_symver" >&6
3694 if test "x$ssp_use_symver" = xyes; then
3695 LIBSSP_USE_SYMVER_TRUE=
3696 LIBSSP_USE_SYMVER_FALSE='#'
3697 else
3698 LIBSSP_USE_SYMVER_TRUE='#'
3699 LIBSSP_USE_SYMVER_FALSE=
3704 echo "$as_me:$LINENO: checking for egrep" >&5
3705 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3706 if test "${ac_cv_prog_egrep+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3710 then ac_cv_prog_egrep='grep -E'
3711 else ac_cv_prog_egrep='egrep'
3714 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3715 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3716 EGREP=$ac_cv_prog_egrep
3719 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3720 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3721 if test "${ac_cv_header_stdc+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h. */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 #include <stdlib.h>
3731 #include <stdarg.h>
3732 #include <string.h>
3733 #include <float.h>
3736 main ()
3740 return 0;
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_cv_header_stdc=yes
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 ac_cv_header_stdc=no
3772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 if test $ac_cv_header_stdc = yes; then
3775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #include <string.h>
3784 _ACEOF
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "memchr" >/dev/null 2>&1; then
3788 else
3789 ac_cv_header_stdc=no
3791 rm -f conftest*
3795 if test $ac_cv_header_stdc = yes; then
3796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <stdlib.h>
3805 _ACEOF
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "free" >/dev/null 2>&1; then
3809 else
3810 ac_cv_header_stdc=no
3812 rm -f conftest*
3816 if test $ac_cv_header_stdc = yes; then
3817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3818 if test "$cross_compiling" = yes; then
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <ctype.h>
3828 #if ((' ' & 0x0FF) == 0x020)
3829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831 #else
3832 # define ISLOWER(c) \
3833 (('a' <= (c) && (c) <= 'i') \
3834 || ('j' <= (c) && (c) <= 'r') \
3835 || ('s' <= (c) && (c) <= 'z'))
3836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3837 #endif
3839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3841 main ()
3843 int i;
3844 for (i = 0; i < 256; i++)
3845 if (XOR (islower (i), ISLOWER (i))
3846 || toupper (i) != TOUPPER (i))
3847 exit(2);
3848 exit (0);
3850 _ACEOF
3851 rm -f conftest$ac_exeext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3863 else
3864 echo "$as_me: program exited with status $ac_status" >&5
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 ( exit $ac_status )
3869 ac_cv_header_stdc=no
3871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3876 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3877 if test $ac_cv_header_stdc = yes; then
3879 cat >>confdefs.h <<\_ACEOF
3880 #define STDC_HEADERS 1
3881 _ACEOF
3885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3895 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3896 inttypes.h stdint.h unistd.h
3898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3899 echo "$as_me:$LINENO: checking for $ac_header" >&5
3900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3912 #include <$ac_header>
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -z "$ac_c_werror_flag"
3924 || test ! -s conftest.err'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; } &&
3930 { ac_try='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 eval "$as_ac_Header=yes"
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 eval "$as_ac_Header=no"
3943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3948 cat >>confdefs.h <<_ACEOF
3949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3950 _ACEOF
3954 done
3965 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3969 echo "$as_me:$LINENO: checking for $ac_header" >&5
3970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3976 else
3977 # Is the header compilable?
3978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 $ac_includes_default
3987 #include <$ac_header>
3988 _ACEOF
3989 rm -f conftest.$ac_objext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_c_werror_flag"
3999 || test ! -s conftest.err'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; } &&
4005 { ac_try='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_header_compiler=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 ac_header_compiler=no
4018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4020 echo "${ECHO_T}$ac_header_compiler" >&6
4022 # Is the header present?
4023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <$ac_header>
4032 _ACEOF
4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } >/dev/null; then
4041 if test -s conftest.err; then
4042 ac_cpp_err=$ac_c_preproc_warn_flag
4043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4044 else
4045 ac_cpp_err=
4047 else
4048 ac_cpp_err=yes
4050 if test -z "$ac_cpp_err"; then
4051 ac_header_preproc=yes
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 ac_header_preproc=no
4058 rm -f conftest.err conftest.$ac_ext
4059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4060 echo "${ECHO_T}$ac_header_preproc" >&6
4062 # So? What about this header?
4063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4064 yes:no: )
4065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4069 ac_header_preproc=yes
4071 no:yes:* )
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4085 cat <<\_ASBOX
4086 ## --------------------------------- ##
4087 ## Report this to the libssp lists. ##
4088 ## --------------------------------- ##
4089 _ASBOX
4091 sed "s/^/$as_me: WARNING: /" >&2
4093 esac
4094 echo "$as_me:$LINENO: checking for $ac_header" >&5
4095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099 eval "$as_ac_Header=\$ac_header_preproc"
4101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h <<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4108 _ACEOF
4112 done
4115 if test x$gcc_no_link = xyes; then
4116 # Presume the ISO C functions are available; add target-specific
4117 # configuration here if required.
4118 cat >>confdefs.h <<\_ACEOF
4119 #define HAVE_STRNCPY 1
4120 _ACEOF
4122 cat >>confdefs.h <<\_ACEOF
4123 #define HAVE_STRNCAT 1
4124 _ACEOF
4126 else
4130 for ac_func in mempcpy strncpy strncat
4132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4133 echo "$as_me:$LINENO: checking for $ac_func" >&5
4134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4135 if eval "test \"\${$as_ac_var+set}\" = set"; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 if test x$gcc_no_link = xyes; then
4139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4141 { (exit 1); exit 1; }; }
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4151 #define $ac_func innocuous_$ac_func
4153 /* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char $ac_func (); below.
4155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156 <limits.h> exists even on freestanding compilers. */
4158 #ifdef __STDC__
4159 # include <limits.h>
4160 #else
4161 # include <assert.h>
4162 #endif
4164 #undef $ac_func
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 #ifdef __cplusplus
4168 extern "C"
4170 #endif
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4173 char $ac_func ();
4174 /* The GNU C library defines this for functions which it implements
4175 to always fail with ENOSYS. Some functions are actually named
4176 something starting with __ and the normal name is an alias. */
4177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4178 choke me
4179 #else
4180 char (*f) () = $ac_func;
4181 #endif
4182 #ifdef __cplusplus
4184 #endif
4187 main ()
4189 return f != $ac_func;
4191 return 0;
4193 _ACEOF
4194 rm -f conftest.$ac_objext conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag"
4204 || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest$ac_exeext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 eval "$as_ac_var=yes"
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 eval "$as_ac_var=no"
4223 rm -f conftest.err conftest.$ac_objext \
4224 conftest$ac_exeext conftest.$ac_ext
4226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4228 if test `eval echo '${'$as_ac_var'}'` = yes; then
4229 cat >>confdefs.h <<_ACEOF
4230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4231 _ACEOF
4234 done
4238 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4239 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4240 if test "$cross_compiling" = yes; then
4241 ssp_have_usable_vsnprintf=undef
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4250 #include <stdarg.h>
4251 #include <string.h>
4252 #include <stdio.h>
4253 int foo (char *buf, size_t n, const char *fmt, ...)
4255 va_list ap;
4256 int ret;
4257 va_start (ap, fmt);
4258 ret = vsnprintf (buf, n, fmt, ap);
4259 va_end (ap);
4260 return ret;
4263 main ()
4265 char buf[8]; memset (buf, 'A', sizeof (buf));
4266 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4267 return 1;
4268 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4270 return 0;
4272 _ACEOF
4273 rm -f conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ssp_have_usable_vsnprintf=define
4285 else
4286 echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ( exit $ac_status )
4291 ssp_have_usable_vsnprintf=undef
4293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4296 echo "$as_me:$LINENO: result: yes" >&5
4297 echo "${ECHO_T}yes" >&6
4299 cat >>confdefs.h <<\_ACEOF
4300 #define HAVE_USABLE_VSNPRINTF 1
4301 _ACEOF
4303 else
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4311 macro_version='2.1a'
4312 macro_revision='1.2435'
4325 ltmain="$ac_aux_dir/ltmain.sh"
4327 # Set options
4329 enable_dlopen=no
4332 enable_win32_dll=no
4335 # Check whether --enable-shared or --disable-shared was given.
4336 if test "${enable_shared+set}" = set; then
4337 enableval="$enable_shared"
4338 p=${PACKAGE-default}
4339 case $enableval in
4340 yes) enable_shared=yes ;;
4341 no) enable_shared=no ;;
4343 enable_shared=no
4344 # Look at the argument we got. We use all the common list separators.
4345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4346 for pkg in $enableval; do
4347 IFS="$lt_save_ifs"
4348 if test "X$pkg" = "X$p"; then
4349 enable_shared=yes
4351 done
4352 IFS="$lt_save_ifs"
4354 esac
4355 else
4356 enable_shared=yes
4366 # Check whether --enable-static or --disable-static was given.
4367 if test "${enable_static+set}" = set; then
4368 enableval="$enable_static"
4369 p=${PACKAGE-default}
4370 case $enableval in
4371 yes) enable_static=yes ;;
4372 no) enable_static=no ;;
4374 enable_static=no
4375 # Look at the argument we got. We use all the common list separators.
4376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4377 for pkg in $enableval; do
4378 IFS="$lt_save_ifs"
4379 if test "X$pkg" = "X$p"; then
4380 enable_static=yes
4382 done
4383 IFS="$lt_save_ifs"
4385 esac
4386 else
4387 enable_static=yes
4398 # Check whether --with-pic or --without-pic was given.
4399 if test "${with_pic+set}" = set; then
4400 withval="$with_pic"
4401 pic_mode="$withval"
4402 else
4403 pic_mode=default
4406 test -z "$pic_mode" && pic_mode=default
4414 # Check whether --enable-fast-install or --disable-fast-install was given.
4415 if test "${enable_fast_install+set}" = set; then
4416 enableval="$enable_fast_install"
4417 p=${PACKAGE-default}
4418 case $enableval in
4419 yes) enable_fast_install=yes ;;
4420 no) enable_fast_install=no ;;
4422 enable_fast_install=no
4423 # Look at the argument we got. We use all the common list separators.
4424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4425 for pkg in $enableval; do
4426 IFS="$lt_save_ifs"
4427 if test "X$pkg" = "X$p"; then
4428 enable_fast_install=yes
4430 done
4431 IFS="$lt_save_ifs"
4433 esac
4434 else
4435 enable_fast_install=yes
4445 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4446 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4447 if test "${lt_cv_path_SED+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 # Loop through the user's path and test for sed and gsed.
4451 # Then use that list of sed's as ones to test for truncation.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for lt_ac_prog in sed gsed; do
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4460 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4462 done
4463 done
4464 done
4465 IFS=$as_save_IFS
4466 lt_ac_max=0
4467 lt_ac_count=0
4468 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4469 # along with /bin/sed that truncates output.
4470 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4471 test ! -f $lt_ac_sed && continue
4472 cat /dev/null > conftest.in
4473 lt_ac_count=0
4474 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4475 # Check for GNU sed and select it if it is found.
4476 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4477 lt_cv_path_SED=$lt_ac_sed
4478 break
4480 while true; do
4481 cat conftest.in conftest.in >conftest.tmp
4482 mv conftest.tmp conftest.in
4483 cp conftest.in conftest.nl
4484 echo >>conftest.nl
4485 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4486 cmp -s conftest.out conftest.nl || break
4487 # 10000 chars as input seems more than enough
4488 test $lt_ac_count -gt 10 && break
4489 lt_ac_count=`expr $lt_ac_count + 1`
4490 if test $lt_ac_count -gt $lt_ac_max; then
4491 lt_ac_max=$lt_ac_count
4492 lt_cv_path_SED=$lt_ac_sed
4494 done
4495 done
4499 SED=$lt_cv_path_SED
4501 echo "$as_me:$LINENO: result: $SED" >&5
4502 echo "${ECHO_T}$SED" >&6
4504 test -z "$SED" && SED=sed
4505 Xsed="$SED -e 1s/^X//"
4517 echo "$as_me:$LINENO: checking for fgrep" >&5
4518 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4519 if test "${ac_cv_prog_fgrep+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4523 then ac_cv_prog_fgrep='grep -F'
4524 else ac_cv_prog_fgrep='fgrep'
4527 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4528 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4529 FGREP=$ac_cv_prog_fgrep
4532 test -z "$GREP" && GREP=grep
4552 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4553 if test "${with_gnu_ld+set}" = set; then
4554 withval="$with_gnu_ld"
4555 test "$withval" = no || with_gnu_ld=yes
4556 else
4557 with_gnu_ld=no
4559 ac_prog=ld
4560 if test "$GCC" = yes; then
4561 # Check if gcc -print-prog-name=ld gives a path.
4562 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4563 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4564 case $host in
4565 *-*-mingw*)
4566 # gcc leaves a trailing carriage return which upsets mingw
4567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4570 esac
4571 case $ac_prog in
4572 # Accept absolute paths.
4573 [\\/]* | ?:[\\/]*)
4574 re_direlt='/[^/][^/]*/\.\./'
4575 # Canonicalize the pathname of ld
4576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4579 done
4580 test -z "$LD" && LD="$ac_prog"
4583 # If it fails, then pretend we aren't using GCC.
4584 ac_prog=ld
4587 # If it is relative, then search for the first ld in PATH.
4588 with_gnu_ld=unknown
4590 esac
4591 elif test "$with_gnu_ld" = yes; then
4592 echo "$as_me:$LINENO: checking for GNU ld" >&5
4593 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4594 else
4595 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4596 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4598 if test "${lt_cv_path_LD+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -z "$LD"; then
4602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603 for ac_dir in $PATH; do
4604 IFS="$lt_save_ifs"
4605 test -z "$ac_dir" && ac_dir=.
4606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4607 lt_cv_path_LD="$ac_dir/$ac_prog"
4608 # Check to see if the program is GNU ld. I'd rather use --version,
4609 # but apparently some variants of GNU ld only accept -v.
4610 # Break only if it was the GNU/non-GNU ld that we prefer.
4611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4612 *GNU* | *'with BFD'*)
4613 test "$with_gnu_ld" != no && break
4616 test "$with_gnu_ld" != yes && break
4618 esac
4620 done
4621 IFS="$lt_save_ifs"
4622 else
4623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4627 LD="$lt_cv_path_LD"
4628 if test -n "$LD"; then
4629 echo "$as_me:$LINENO: result: $LD" >&5
4630 echo "${ECHO_T}$LD" >&6
4631 else
4632 echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6
4635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637 { (exit 1); exit 1; }; }
4638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4640 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4644 case `$LD -v 2>&1 </dev/null` in
4645 *GNU* | *'with BFD'*)
4646 lt_cv_prog_gnu_ld=yes
4649 lt_cv_prog_gnu_ld=no
4651 esac
4653 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4654 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4655 with_gnu_ld=$lt_cv_prog_gnu_ld
4666 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4667 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4668 if test "${lt_cv_path_NM+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 if test -n "$NM"; then
4672 # Let the user override the test.
4673 lt_cv_path_NM="$NM"
4674 else
4675 lt_nm_to_check="${ac_tool_prefix}nm"
4676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4677 lt_nm_to_check="$lt_nm_to_check nm"
4679 for lt_tmp_nm in $lt_nm_to_check; do
4680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4681 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4682 IFS="$lt_save_ifs"
4683 test -z "$ac_dir" && ac_dir=.
4684 tmp_nm="$ac_dir/$lt_tmp_nm"
4685 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4686 # Check to see if the nm accepts a BSD-compat flag.
4687 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4688 # nm: unknown option "B" ignored
4689 # Tru64's nm complains that /dev/null is an invalid object file
4690 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4691 */dev/null* | *'Invalid file or object type'*)
4692 lt_cv_path_NM="$tmp_nm -B"
4693 break
4696 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4697 */dev/null*)
4698 lt_cv_path_NM="$tmp_nm -p"
4699 break
4702 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4703 continue # so that we can try to find one that supports BSD flags
4705 esac
4707 esac
4709 done
4710 IFS="$lt_save_ifs"
4711 done
4712 : ${lt_cv_path_NM=no}
4715 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4716 echo "${ECHO_T}$lt_cv_path_NM" >&6
4717 if test "$lt_cv_path_NM" != "no"; then
4718 NM="$lt_cv_path_NM"
4719 else
4720 # Didn't find any BSD compatible name lister, look for dumpbin.
4721 if test -n "$ac_tool_prefix"; then
4722 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4726 echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4728 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 if test -n "$DUMPBIN"; then
4732 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4745 done
4746 done
4750 DUMPBIN=$ac_cv_prog_DUMPBIN
4751 if test -n "$DUMPBIN"; then
4752 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4753 echo "${ECHO_T}$DUMPBIN" >&6
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6
4759 test -n "$DUMPBIN" && break
4760 done
4762 if test -z "$DUMPBIN"; then
4763 ac_ct_DUMPBIN=$DUMPBIN
4764 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4766 # Extract the first word of "$ac_prog", so it can be a program name with args.
4767 set dummy $ac_prog; ac_word=$2
4768 echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4792 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4793 if test -n "$ac_ct_DUMPBIN"; then
4794 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4795 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4796 else
4797 echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4801 test -n "$ac_ct_DUMPBIN" && break
4802 done
4803 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4805 DUMPBIN=$ac_ct_DUMPBIN
4809 if test "$DUMPBIN" != ":"; then
4810 NM="$DUMPBIN"
4813 test -z "$NM" && NM=nm
4820 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4821 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4822 if test "${lt_cv_nm_interface+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 lt_cv_nm_interface="BSD nm"
4826 echo "int some_variable = 0;" > conftest.$ac_ext
4827 (eval echo "\"\$as_me:4827: $ac_compile\"" >&5)
4828 (eval "$ac_compile" 2>conftest.err)
4829 cat conftest.err >&5
4830 (eval echo "\"\$as_me:4830: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4831 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4832 cat conftest.err >&5
4833 (eval echo "\"\$as_me:4833: output\"" >&5)
4834 cat conftest.out >&5
4835 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4836 lt_cv_nm_interface="MS dumpbin"
4838 rm -f conftest*
4840 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4841 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4843 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4844 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4845 LN_S=$as_ln_s
4846 if test "$LN_S" = "ln -s"; then
4847 echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6
4849 else
4850 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4851 echo "${ECHO_T}no, using $LN_S" >&6
4854 # find the maximum length of command line arguments
4855 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4856 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4857 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4861 teststring="ABCD"
4863 case $build_os in
4864 msdosdjgpp*)
4865 # On DJGPP, this test can blow up pretty badly due to problems in libc
4866 # (any single argument exceeding 2000 bytes causes a buffer overrun
4867 # during glob expansion). Even if it were fixed, the result of this
4868 # check would be larger than it should be.
4869 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4872 gnu*)
4873 # Under GNU Hurd, this test is not required because there is
4874 # no limit to the length of command line arguments.
4875 # Libtool will interpret -1 as no limit whatsoever
4876 lt_cv_sys_max_cmd_len=-1;
4879 cygwin* | mingw*)
4880 # On Win9x/ME, this test blows up -- it succeeds, but takes
4881 # about 5 minutes as the teststring grows exponentially.
4882 # Worse, since 9x/ME are not pre-emptively multitasking,
4883 # you end up with a "frozen" computer, even though with patience
4884 # the test eventually succeeds (with a max line length of 256k).
4885 # Instead, let's just punt: use the minimum linelength reported by
4886 # all of the supported platforms: 8192 (on NT/2K/XP).
4887 lt_cv_sys_max_cmd_len=8192;
4890 amigaos*)
4891 # On AmigaOS with pdksh, this test takes hours, literally.
4892 # So we just punt and use a minimum line length of 8192.
4893 lt_cv_sys_max_cmd_len=8192;
4896 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4897 # This has been around since 386BSD, at least. Likely further.
4898 if test -x /sbin/sysctl; then
4899 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4900 elif test -x /usr/sbin/sysctl; then
4901 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4902 else
4903 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4905 # And add a safety zone
4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4910 interix*)
4911 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4912 lt_cv_sys_max_cmd_len=196608
4915 osf*)
4916 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4917 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4918 # nice to cause kernel panics so lets avoid the loop below.
4919 # First set a reasonable default.
4920 lt_cv_sys_max_cmd_len=16384
4922 if test -x /sbin/sysconfig; then
4923 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4924 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4925 esac
4928 sco3.2v5*)
4929 lt_cv_sys_max_cmd_len=102400
4931 sysv5* | sco5v6* | sysv4.2uw2*)
4932 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4933 if test -n "$kargmax"; then
4934 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4935 else
4936 lt_cv_sys_max_cmd_len=32768
4940 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4941 if test -n $lt_cv_sys_max_cmd_len; then
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4944 else
4945 # Make teststring a little bigger before we do anything with it.
4946 # a 1K string should be a reasonable start.
4947 for i in 1 2 3 4 5 6 7 8 ; do
4948 teststring=$teststring$teststring
4949 done
4950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951 # If test is not a shell built-in, we'll probably end up computing a
4952 # maximum length that is only half of the actual maximum length, but
4953 # we can't tell.
4954 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4955 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4956 test $i != 17 # 1/2 MB should be enough
4958 i=`expr $i + 1`
4959 teststring=$teststring$teststring
4960 done
4961 # Only check the string length outside the loop.
4962 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4963 teststring=
4964 # Add a significant safety factor because C++ compilers can tack on
4965 # massive amounts of additional arguments before passing them to the
4966 # linker. It appears as though 1/2 is a usable value.
4967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4970 esac
4974 if test -n $lt_cv_sys_max_cmd_len ; then
4975 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4976 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4977 else
4978 echo "$as_me:$LINENO: result: none" >&5
4979 echo "${ECHO_T}none" >&6
4981 max_cmd_len=$lt_cv_sys_max_cmd_len
4989 : ${CP="cp -f"}
4990 : ${MV="mv -f"}
4991 : ${RM="rm -f"}
4993 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4994 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4995 # Try some XSI features
4996 xsi_shell=no
4997 ( _lt_dummy="a/b/c"
4998 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4999 = c,a/b,, ) >/dev/null 2>&1 \
5000 && xsi_shell=yes
5001 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5002 echo "${ECHO_T}$xsi_shell" >&6
5005 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5006 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5007 lt_shell_append=no
5008 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5009 >/dev/null 2>&1 \
5010 && lt_shell_append=yes
5011 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5012 echo "${ECHO_T}$lt_shell_append" >&6
5015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5016 lt_unset=unset
5017 else
5018 lt_unset=false
5025 # test EBCDIC or ASCII
5026 case `echo X|tr X '\101'` in
5027 A) # ASCII based system
5028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5029 lt_SP2NL='tr \040 \012'
5030 lt_NL2SP='tr \015\012 \040\040'
5032 *) # EBCDIC based system
5033 lt_SP2NL='tr \100 \n'
5034 lt_NL2SP='tr \r\n \100\100'
5036 esac
5046 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5047 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5048 if test "${lt_cv_ld_reload_flag+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 lt_cv_ld_reload_flag='-r'
5053 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5054 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5055 reload_flag=$lt_cv_ld_reload_flag
5056 case $reload_flag in
5057 "" | " "*) ;;
5058 *) reload_flag=" $reload_flag" ;;
5059 esac
5060 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5061 case $host_os in
5062 darwin*)
5063 if test "$GCC" = yes; then
5064 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5065 else
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5069 esac
5080 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5081 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5082 if test "${lt_cv_deplibs_check_method+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 lt_cv_file_magic_cmd='$MAGIC_CMD'
5086 lt_cv_file_magic_test_file=
5087 lt_cv_deplibs_check_method='unknown'
5088 # Need to set the preceding variable on all platforms that support
5089 # interlibrary dependencies.
5090 # 'none' -- dependencies not supported.
5091 # `unknown' -- same as none, but documents that we really don't know.
5092 # 'pass_all' -- all dependencies passed with no checks.
5093 # 'test_compile' -- check by making test program.
5094 # 'file_magic [[regex]]' -- check by looking for files in library path
5095 # which responds to the $file_magic_cmd with a given extended regex.
5096 # If you have `file' or equivalent on your system and you're not sure
5097 # whether `pass_all' will *always* work, you probably want this one.
5099 case $host_os in
5100 aix[4-9]*)
5101 lt_cv_deplibs_check_method=pass_all
5104 beos*)
5105 lt_cv_deplibs_check_method=pass_all
5108 bsdi[45]*)
5109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5110 lt_cv_file_magic_cmd='/usr/bin/file -L'
5111 lt_cv_file_magic_test_file=/shlib/libc.so
5114 cygwin*)
5115 # func_win32_libid is a shell function defined in ltmain.sh
5116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5117 lt_cv_file_magic_cmd='func_win32_libid'
5120 mingw* | pw32*)
5121 # Base MSYS/MinGW do not provide the 'file' command needed by
5122 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5123 # unless we find 'file', for example because we are cross-compiling.
5124 if ( file / ) >/dev/null 2>&1; then
5125 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5126 lt_cv_file_magic_cmd='func_win32_libid'
5127 else
5128 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5129 lt_cv_file_magic_cmd='$OBJDUMP -f'
5133 darwin* | rhapsody*)
5134 lt_cv_deplibs_check_method=pass_all
5137 freebsd* | dragonfly*)
5138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139 case $host_cpu in
5140 i*86 )
5141 # Not sure whether the presence of OpenBSD here was a mistake.
5142 # Let's accept both of them until this is cleared up.
5143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144 lt_cv_file_magic_cmd=/usr/bin/file
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5147 esac
5148 else
5149 lt_cv_deplibs_check_method=pass_all
5153 gnu*)
5154 lt_cv_deplibs_check_method=pass_all
5157 hpux10.20* | hpux11*)
5158 lt_cv_file_magic_cmd=/usr/bin/file
5159 case $host_cpu in
5160 ia64*)
5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5164 hppa*64*)
5165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5172 esac
5175 interix[3-9]*)
5176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5180 irix5* | irix6* | nonstopux*)
5181 case $LD in
5182 *-32|*"-32 ") libmagic=32-bit;;
5183 *-n32|*"-n32 ") libmagic=N32;;
5184 *-64|*"-64 ") libmagic=64-bit;;
5185 *) libmagic=never-match;;
5186 esac
5187 lt_cv_deplibs_check_method=pass_all
5190 # This must be Linux ELF.
5191 linux* | k*bsd*-gnu)
5192 lt_cv_deplibs_check_method=pass_all
5195 netbsd*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198 else
5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5203 newos6*)
5204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5209 *nto* | *qnx*)
5210 lt_cv_deplibs_check_method=pass_all
5213 openbsd*)
5214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216 else
5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5221 osf3* | osf4* | osf5*)
5222 lt_cv_deplibs_check_method=pass_all
5225 rdos*)
5226 lt_cv_deplibs_check_method=pass_all
5229 solaris*)
5230 lt_cv_deplibs_check_method=pass_all
5233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234 lt_cv_deplibs_check_method=pass_all
5237 sysv4 | sysv4.3*)
5238 case $host_vendor in
5239 motorola)
5240 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]'
5241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5243 ncr)
5244 lt_cv_deplibs_check_method=pass_all
5246 sequent)
5247 lt_cv_file_magic_cmd='/bin/file'
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5250 sni)
5251 lt_cv_file_magic_cmd='/bin/file'
5252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253 lt_cv_file_magic_test_file=/lib/libc.so
5255 siemens)
5256 lt_cv_deplibs_check_method=pass_all
5259 lt_cv_deplibs_check_method=pass_all
5261 esac
5264 tpf*)
5265 lt_cv_deplibs_check_method=pass_all
5267 esac
5270 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5271 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5272 file_magic_cmd=$lt_cv_file_magic_cmd
5273 deplibs_check_method=$lt_cv_deplibs_check_method
5274 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5287 if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5289 set dummy ${ac_tool_prefix}ar; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_prog_AR+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 if test -n "$AR"; then
5296 ac_cv_prog_AR="$AR" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_AR="${ac_tool_prefix}ar"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5309 done
5310 done
5314 AR=$ac_cv_prog_AR
5315 if test -n "$AR"; then
5316 echo "$as_me:$LINENO: result: $AR" >&5
5317 echo "${ECHO_T}$AR" >&6
5318 else
5319 echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6
5324 if test -z "$ac_cv_prog_AR"; then
5325 ac_ct_AR=$AR
5326 # Extract the first word of "ar", so it can be a program name with args.
5327 set dummy ar; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333 if test -n "$ac_ct_AR"; then
5334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_ac_ct_AR="ar"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5350 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5354 if test -n "$ac_ct_AR"; then
5355 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5356 echo "${ECHO_T}$ac_ct_AR" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5362 AR=$ac_ct_AR
5363 else
5364 AR="$ac_cv_prog_AR"
5367 test -z "$AR" && AR=ar
5368 test -z "$AR_FLAGS" && AR_FLAGS=cru
5380 if test -n "$ac_tool_prefix"; then
5381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5382 set dummy ${ac_tool_prefix}strip; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_prog_STRIP+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 if test -n "$STRIP"; then
5389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5402 done
5403 done
5407 STRIP=$ac_cv_prog_STRIP
5408 if test -n "$STRIP"; then
5409 echo "$as_me:$LINENO: result: $STRIP" >&5
5410 echo "${ECHO_T}$STRIP" >&6
5411 else
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5417 if test -z "$ac_cv_prog_STRIP"; then
5418 ac_ct_STRIP=$STRIP
5419 # Extract the first word of "strip", so it can be a program name with args.
5420 set dummy strip; ac_word=$2
5421 echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 if test -n "$ac_ct_STRIP"; then
5427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_STRIP="strip"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5443 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5447 if test -n "$ac_ct_STRIP"; then
5448 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5449 echo "${ECHO_T}$ac_ct_STRIP" >&6
5450 else
5451 echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6
5455 STRIP=$ac_ct_STRIP
5456 else
5457 STRIP="$ac_cv_prog_STRIP"
5460 test -z "$STRIP" && STRIP=:
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 if test "${ac_cv_prog_RANLIB+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 if test -n "$RANLIB"; then
5476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5494 RANLIB=$ac_cv_prog_RANLIB
5495 if test -n "$RANLIB"; then
5496 echo "$as_me:$LINENO: result: $RANLIB" >&5
5497 echo "${ECHO_T}$RANLIB" >&6
5498 else
5499 echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6
5504 if test -z "$ac_cv_prog_RANLIB"; then
5505 ac_ct_RANLIB=$RANLIB
5506 # Extract the first word of "ranlib", so it can be a program name with args.
5507 set dummy ranlib; ac_word=$2
5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513 if test -n "$ac_ct_RANLIB"; then
5514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_RANLIB="ranlib"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5527 done
5528 done
5530 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5533 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5534 if test -n "$ac_ct_RANLIB"; then
5535 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5536 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5537 else
5538 echo "$as_me:$LINENO: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5542 RANLIB=$ac_ct_RANLIB
5543 else
5544 RANLIB="$ac_cv_prog_RANLIB"
5547 test -z "$RANLIB" && RANLIB=:
5554 # Determine commands to create old-style static archives.
5555 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5556 old_postinstall_cmds='chmod 644 $oldlib'
5557 old_postuninstall_cmds=
5559 if test -n "$RANLIB"; then
5560 case $host_os in
5561 openbsd*)
5562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5567 esac
5568 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5604 # If no C compiler was specified, use CC.
5605 LTCC=${LTCC-"$CC"}
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5610 # Allow CC to be a program name with arguments.
5611 compiler=$CC
5614 # Check for command to grab the raw symbol name followed by C symbol from nm.
5615 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5616 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5621 # These are sane defaults that work on at least a few old systems.
5622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5624 # Character class describing NM global symbol codes.
5625 symcode='[BCDEGRST]'
5627 # Regexp to match symbols that can be accessed directly from C.
5628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5630 # Define system-specific variables.
5631 case $host_os in
5632 aix*)
5633 symcode='[BCDT]'
5635 cygwin* | mingw* | pw32*)
5636 symcode='[ABCDGISTW]'
5638 hpux*)
5639 if test "$host_cpu" = ia64; then
5640 symcode='[ABCDEGRST]'
5643 irix* | nonstopux*)
5644 symcode='[BCDEGRST]'
5646 osf*)
5647 symcode='[BCDEGQRST]'
5649 solaris*)
5650 symcode='[BDRT]'
5652 sco3.2v5*)
5653 symcode='[DT]'
5655 sysv4.2uw2*)
5656 symcode='[DT]'
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659 symcode='[ABDT]'
5661 sysv4)
5662 symcode='[DFNSTU]'
5664 esac
5666 # If we're using GNU nm, then use its standard symbol codes.
5667 case `$NM -V 2>&1` in
5668 *GNU* | *'with BFD'*)
5669 symcode='[ABCDGIRSTW]' ;;
5670 esac
5672 # Transform an extracted symbol line into a proper C declaration.
5673 # Some systems (esp. on ia64) link data and code symbols differently,
5674 # so use this general approach.
5675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5677 # Transform an extracted symbol line into symbol name and symbol address
5678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5680 # Handle CRLF in mingw tool chain
5681 opt_cr=
5682 case $build_os in
5683 mingw*)
5684 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5686 esac
5688 # Try without a prefix underscore, then with it.
5689 for ac_symprfx in "" "_"; do
5691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5692 symxfrm="\\1 $ac_symprfx\\2 \\2"
5694 # Write the raw and C identifiers.
5695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5696 # Fake it for dumpbin and say T for any non-static function
5697 # and D for any global variable.
5698 # Also find C++ and __fastcall symbols from MSVC++,
5699 # which start with @ or ?.
5700 lt_cv_sys_global_symbol_pipe="$AWK '"\
5701 " {last_section=section; section=\$ 3};"\
5702 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5703 " \$ 0!~/External *\|/{next};"\
5704 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5705 " {if(hide[section]) next};"\
5706 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5707 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5708 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5709 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5710 " ' prfx=^$ac_symprfx"
5711 else
5712 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5715 # Check to see that the pipe works correctly.
5716 pipe_works=no
5718 rm -f conftest*
5719 cat > conftest.$ac_ext <<_LT_EOF
5720 #ifdef __cplusplus
5721 extern "C" {
5722 #endif
5723 char nm_test_var;
5724 void nm_test_func(void);
5725 void nm_test_func(void){}
5726 #ifdef __cplusplus
5728 #endif
5729 int main(){nm_test_var='a';nm_test_func();return(0);}
5730 _LT_EOF
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; then
5737 # Now try to grab the symbols.
5738 nlist=conftest.nm
5739 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5740 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && test -s "$nlist"; then
5744 # Try sorting and uniquifying the output.
5745 if sort "$nlist" | uniq > "$nlist"T; then
5746 mv -f "$nlist"T "$nlist"
5747 else
5748 rm -f "$nlist"T
5751 # Make sure that we snagged all the symbols we need.
5752 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5753 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5754 cat <<_LT_EOF > conftest.$ac_ext
5755 #ifdef __cplusplus
5756 extern "C" {
5757 #endif
5759 _LT_EOF
5760 # Now generate the symbol file.
5761 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5763 cat <<_LT_EOF >> conftest.$ac_ext
5765 /* The mapping between symbol names and symbols. */
5766 const struct {
5767 const char *name;
5768 void *address;
5770 lt__PROGRAM__LTX_preloaded_symbols[] =
5772 { "@PROGRAM@", (void *) 0 },
5773 _LT_EOF
5774 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5775 cat <<\_LT_EOF >> conftest.$ac_ext
5776 {0, (void *) 0}
5779 /* This works around a problem in FreeBSD linker */
5780 #ifdef FREEBSD_WORKAROUND
5781 static const void *lt_preloaded_setup() {
5782 return lt__PROGRAM__LTX_preloaded_symbols;
5784 #endif
5786 #ifdef __cplusplus
5788 #endif
5789 _LT_EOF
5790 # Now try linking the two files.
5791 mv conftest.$ac_objext conftstm.$ac_objext
5792 lt_save_LIBS="$LIBS"
5793 lt_save_CFLAGS="$CFLAGS"
5794 LIBS="conftstm.$ac_objext"
5795 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5797 (eval $ac_link) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5801 pipe_works=yes
5803 LIBS="$lt_save_LIBS"
5804 CFLAGS="$lt_save_CFLAGS"
5805 else
5806 echo "cannot find nm_test_func in $nlist" >&5
5808 else
5809 echo "cannot find nm_test_var in $nlist" >&5
5811 else
5812 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5814 else
5815 echo "$progname: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 rm -f conftest* conftst*
5820 # Do not use the global_symbol_pipe unless it works.
5821 if test "$pipe_works" = yes; then
5822 break
5823 else
5824 lt_cv_sys_global_symbol_pipe=
5826 done
5830 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5831 lt_cv_sys_global_symbol_to_cdecl=
5833 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5834 echo "$as_me:$LINENO: result: failed" >&5
5835 echo "${ECHO_T}failed" >&6
5836 else
5837 echo "$as_me:$LINENO: result: ok" >&5
5838 echo "${ECHO_T}ok" >&6
5857 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5858 if test "${enable_libtool_lock+set}" = set; then
5859 enableval="$enable_libtool_lock"
5862 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5864 # Some flags need to be propagated to the compiler or linker for good
5865 # libtool support.
5866 case $host in
5867 ia64-*-hpux*)
5868 # Find out which ABI we are using.
5869 echo 'int i;' > conftest.$ac_ext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; then
5875 case `/usr/bin/file conftest.$ac_objext` in
5876 *ELF-32*)
5877 HPUX_IA64_MODE="32"
5879 *ELF-64*)
5880 HPUX_IA64_MODE="64"
5882 esac
5884 rm -rf conftest*
5886 *-*-irix6*)
5887 # Find out which ABI we are using.
5888 echo '#line 5888 "configure"' > conftest.$ac_ext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; then
5894 if test "$lt_cv_prog_gnu_ld" = yes; then
5895 case `/usr/bin/file conftest.$ac_objext` in
5896 *32-bit*)
5897 LD="${LD-ld} -melf32bsmip"
5899 *N32*)
5900 LD="${LD-ld} -melf32bmipn32"
5902 *64-bit*)
5903 LD="${LD-ld} -melf64bmip"
5905 esac
5906 else
5907 case `/usr/bin/file conftest.$ac_objext` in
5908 *32-bit*)
5909 LD="${LD-ld} -32"
5911 *N32*)
5912 LD="${LD-ld} -n32"
5914 *64-bit*)
5915 LD="${LD-ld} -64"
5917 esac
5920 rm -rf conftest*
5923 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5924 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5925 # Find out which ABI we are using.
5926 echo 'int i;' > conftest.$ac_ext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; then
5932 case `/usr/bin/file conftest.o` in
5933 *32-bit*)
5934 case $host in
5935 x86_64-*kfreebsd*-gnu)
5936 LD="${LD-ld} -m elf_i386_fbsd"
5938 x86_64-*linux*)
5939 LD="${LD-ld} -m elf_i386"
5941 ppc64-*linux*|powerpc64-*linux*)
5942 LD="${LD-ld} -m elf32ppclinux"
5944 s390x-*linux*)
5945 LD="${LD-ld} -m elf_s390"
5947 sparc64-*linux*)
5948 LD="${LD-ld} -m elf32_sparc"
5950 esac
5952 *64-bit*)
5953 case $host in
5954 x86_64-*kfreebsd*-gnu)
5955 LD="${LD-ld} -m elf_x86_64_fbsd"
5957 x86_64-*linux*)
5958 LD="${LD-ld} -m elf_x86_64"
5960 ppc*-*linux*|powerpc*-*linux*)
5961 LD="${LD-ld} -m elf64ppc"
5963 s390*-*linux*|s390*-*tpf*)
5964 LD="${LD-ld} -m elf64_s390"
5966 sparc*-*linux*)
5967 LD="${LD-ld} -m elf64_sparc"
5969 esac
5971 esac
5973 rm -rf conftest*
5976 *-*-sco3.2v5*)
5977 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5978 SAVE_CFLAGS="$CFLAGS"
5979 CFLAGS="$CFLAGS -belf"
5980 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5981 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5982 if test "${lt_cv_cc_needs_belf+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 ac_ext=c
5986 ac_cpp='$CPP $CPPFLAGS'
5987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5991 if test x$gcc_no_link = xyes; then
5992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5994 { (exit 1); exit 1; }; }
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6004 main ()
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 lt_cv_cc_needs_belf=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 lt_cv_cc_needs_belf=no
6040 rm -f conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 ac_ext=c
6043 ac_cpp='$CPP $CPPFLAGS'
6044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6049 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6050 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6051 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6052 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6053 CFLAGS="$SAVE_CFLAGS"
6056 sparc*-*solaris*)
6057 # Find out which ABI we are using.
6058 echo 'int i;' > conftest.$ac_ext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; then
6064 case `/usr/bin/file conftest.o` in
6065 *64-bit*)
6066 case $lt_cv_prog_gnu_ld in
6067 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6068 *) LD="${LD-ld} -64" ;;
6069 esac
6071 esac
6073 rm -rf conftest*
6075 esac
6077 need_locks="$enable_libtool_lock"
6080 for ac_header in dlfcn.h
6082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083 echo "$as_me:$LINENO: checking for $ac_header" >&5
6084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6096 #include <$ac_header>
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -z "$ac_c_werror_flag"
6108 || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 eval "$as_ac_Header=yes"
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 eval "$as_ac_Header=no"
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6132 cat >>confdefs.h <<_ACEOF
6133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6134 _ACEOF
6138 done
6142 # This can be used to rebuild libtool when needed
6143 LIBTOOL_DEPS="$ltmain"
6145 # Always use our own libtool.
6146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6172 test -z "$LN_S" && LN_S="ln -s"
6187 if test -n "${ZSH_VERSION+set}" ; then
6188 setopt NO_GLOB_SUBST
6191 echo "$as_me:$LINENO: checking for objdir" >&5
6192 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6193 if test "${lt_cv_objdir+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 rm -f .libs 2>/dev/null
6197 mkdir .libs 2>/dev/null
6198 if test -d .libs; then
6199 lt_cv_objdir=.libs
6200 else
6201 # MS-DOS does not allow filenames that begin with a dot.
6202 lt_cv_objdir=_libs
6204 rmdir .libs 2>/dev/null
6206 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6207 echo "${ECHO_T}$lt_cv_objdir" >&6
6208 objdir=$lt_cv_objdir
6214 cat >>confdefs.h <<_ACEOF
6215 #define LT_OBJDIR "$lt_cv_objdir/"
6216 _ACEOF
6234 case $host_os in
6235 aix3*)
6236 # AIX sometimes has problems with the GCC collect2 program. For some
6237 # reason, if we set the COLLECT_NAMES environment variable, the problems
6238 # vanish in a puff of smoke.
6239 if test "X${COLLECT_NAMES+set}" != Xset; then
6240 COLLECT_NAMES=
6241 export COLLECT_NAMES
6244 esac
6246 # Sed substitution that helps us do robust quoting. It backslashifies
6247 # metacharacters that are still active within double-quoted strings.
6248 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6250 # Same as above, but do not quote variable references.
6251 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6253 # Sed substitution to delay expansion of an escaped shell variable in a
6254 # double_quote_subst'ed string.
6255 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6257 # Sed substitution to delay expansion of an escaped single quote.
6258 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6260 # Sed substitution to avoid accidental globbing in evaled expressions
6261 no_glob_subst='s/\*/\\\*/g'
6263 # Global variables:
6264 ofile=libtool
6265 can_build_shared=yes
6267 # All known linkers require a `.a' archive for static linking (except MSVC,
6268 # which needs '.lib').
6269 libext=a
6271 with_gnu_ld="$lt_cv_prog_gnu_ld"
6273 old_CC="$CC"
6274 old_CFLAGS="$CFLAGS"
6276 # Set sane defaults for various variables
6277 test -z "$CC" && CC=cc
6278 test -z "$LTCC" && LTCC=$CC
6279 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6280 test -z "$LD" && LD=ld
6281 test -z "$ac_objext" && ac_objext=o
6283 for cc_temp in $compiler""; do
6284 case $cc_temp in
6285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6287 \-*) ;;
6288 *) break;;
6289 esac
6290 done
6291 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6294 # Only perform the check for file, if the check method requires it
6295 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6296 case $deplibs_check_method in
6297 file_magic*)
6298 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6299 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6300 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6301 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 case $MAGIC_CMD in
6305 [\\/*] | ?:[\\/]*)
6306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6309 lt_save_MAGIC_CMD="$MAGIC_CMD"
6310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6311 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6312 for ac_dir in $ac_dummy; do
6313 IFS="$lt_save_ifs"
6314 test -z "$ac_dir" && ac_dir=.
6315 if test -f $ac_dir/${ac_tool_prefix}file; then
6316 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6317 if test -n "$file_magic_test_file"; then
6318 case $deplibs_check_method in
6319 "file_magic "*)
6320 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6323 $EGREP "$file_magic_regex" > /dev/null; then
6325 else
6326 cat <<_LT_EOF 1>&2
6328 *** Warning: the command libtool uses to detect shared libraries,
6329 *** $file_magic_cmd, produces output that libtool cannot recognize.
6330 *** The result is that libtool may fail to recognize shared libraries
6331 *** as such. This will affect the creation of libtool libraries that
6332 *** depend on shared libraries, but programs linked with such libtool
6333 *** libraries will work regardless of this problem. Nevertheless, you
6334 *** may want to report the problem to your system manager and/or to
6335 *** bug-libtool@gnu.org
6337 _LT_EOF
6338 fi ;;
6339 esac
6341 break
6343 done
6344 IFS="$lt_save_ifs"
6345 MAGIC_CMD="$lt_save_MAGIC_CMD"
6347 esac
6350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6351 if test -n "$MAGIC_CMD"; then
6352 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6353 echo "${ECHO_T}$MAGIC_CMD" >&6
6354 else
6355 echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6
6363 if test -z "$lt_cv_path_MAGIC_CMD"; then
6364 if test -n "$ac_tool_prefix"; then
6365 echo "$as_me:$LINENO: checking for file" >&5
6366 echo $ECHO_N "checking for file... $ECHO_C" >&6
6367 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 case $MAGIC_CMD in
6371 [\\/*] | ?:[\\/]*)
6372 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6375 lt_save_MAGIC_CMD="$MAGIC_CMD"
6376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6377 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6378 for ac_dir in $ac_dummy; do
6379 IFS="$lt_save_ifs"
6380 test -z "$ac_dir" && ac_dir=.
6381 if test -f $ac_dir/file; then
6382 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6383 if test -n "$file_magic_test_file"; then
6384 case $deplibs_check_method in
6385 "file_magic "*)
6386 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6388 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6389 $EGREP "$file_magic_regex" > /dev/null; then
6391 else
6392 cat <<_LT_EOF 1>&2
6394 *** Warning: the command libtool uses to detect shared libraries,
6395 *** $file_magic_cmd, produces output that libtool cannot recognize.
6396 *** The result is that libtool may fail to recognize shared libraries
6397 *** as such. This will affect the creation of libtool libraries that
6398 *** depend on shared libraries, but programs linked with such libtool
6399 *** libraries will work regardless of this problem. Nevertheless, you
6400 *** may want to report the problem to your system manager and/or to
6401 *** bug-libtool@gnu.org
6403 _LT_EOF
6404 fi ;;
6405 esac
6407 break
6409 done
6410 IFS="$lt_save_ifs"
6411 MAGIC_CMD="$lt_save_MAGIC_CMD"
6413 esac
6416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6417 if test -n "$MAGIC_CMD"; then
6418 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6419 echo "${ECHO_T}$MAGIC_CMD" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6
6426 else
6427 MAGIC_CMD=:
6433 esac
6435 # Use C for the default configuration in the libtool script
6437 lt_save_CC="$CC"
6438 ac_ext=c
6439 ac_cpp='$CPP $CPPFLAGS'
6440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445 # Source file extension for C test sources.
6446 ac_ext=c
6448 # Object file extension for compiled C test sources.
6449 objext=o
6450 objext=$objext
6452 # Code to be used in simple compile tests
6453 lt_simple_compile_test_code="int some_variable = 0;"
6455 # Code to be used in simple link tests
6456 lt_simple_link_test_code='int main(){return(0);}'
6464 # If no C compiler was specified, use CC.
6465 LTCC=${LTCC-"$CC"}
6467 # If no C compiler flags were specified, use CFLAGS.
6468 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6470 # Allow CC to be a program name with arguments.
6471 compiler=$CC
6473 # Save the default compiler, since it gets overwritten when the other
6474 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6475 compiler_DEFAULT=$CC
6477 # save warnings/boilerplate of simple test code
6478 ac_outfile=conftest.$ac_objext
6479 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6480 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6481 _lt_compiler_boilerplate=`cat conftest.err`
6482 $RM conftest*
6484 ac_outfile=conftest.$ac_objext
6485 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6486 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6487 _lt_linker_boilerplate=`cat conftest.err`
6488 $RM conftest*
6491 ## CAVEAT EMPTOR:
6492 ## There is no encapsulation within the following macros, do not change
6493 ## the running order or otherwise move them around unless you know exactly
6494 ## what you are doing...
6495 if test -n "$compiler"; then
6497 lt_prog_compiler_no_builtin_flag=
6499 if test "$GCC" = yes; then
6500 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6502 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6503 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 lt_cv_prog_compiler_rtti_exceptions=no
6508 ac_outfile=conftest.$ac_objext
6509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6510 lt_compiler_flag="-fno-rtti -fno-exceptions"
6511 # Insert the option either (1) after the last *FLAGS variable, or
6512 # (2) before a word containing "conftest.", or (3) at the end.
6513 # Note that $ac_compile itself does not contain backslashes and begins
6514 # with a dollar sign (not a hyphen), so the echo should work correctly.
6515 # The option is referenced via a variable to avoid confusing sed.
6516 lt_compile=`echo "$ac_compile" | $SED \
6517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519 -e 's:$: $lt_compiler_flag:'`
6520 (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
6521 (eval "$lt_compile" 2>conftest.err)
6522 ac_status=$?
6523 cat conftest.err >&5
6524 echo "$as_me:6524: \$? = $ac_status" >&5
6525 if (exit $ac_status) && test -s "$ac_outfile"; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings other than the usual output.
6528 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6531 lt_cv_prog_compiler_rtti_exceptions=yes
6534 $RM conftest*
6537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6538 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6541 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6542 else
6553 lt_prog_compiler_wl=
6554 lt_prog_compiler_pic=
6555 lt_prog_compiler_static=
6557 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6558 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6560 if test "$GCC" = yes; then
6561 lt_prog_compiler_wl='-Wl,'
6562 lt_prog_compiler_static='-static'
6564 case $host_os in
6565 aix*)
6566 # All AIX code is PIC.
6567 if test "$host_cpu" = ia64; then
6568 # AIX 5 now supports IA64 processor
6569 lt_prog_compiler_static='-Bstatic'
6573 amigaos*)
6574 if test "$host_cpu" = m68k; then
6575 # FIXME: we need at least 68020 code to build shared libraries, but
6576 # adding the `-m68020' flag to GCC prevents building anything better,
6577 # like `-m68040'.
6578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6582 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6583 # PIC is the default for these OSes.
6586 mingw* | cygwin* | pw32* | os2*)
6587 # This hack is so that the source file can tell whether it is being
6588 # built for inclusion in a dll (and should export symbols for example).
6589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6590 # (--disable-auto-import) libraries
6591 lt_prog_compiler_pic='-DDLL_EXPORT'
6594 darwin* | rhapsody*)
6595 # PIC is the default on this platform
6596 # Common symbols not allowed in MH_DYLIB files
6597 lt_prog_compiler_pic='-fno-common'
6600 hpux*)
6601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6602 # not for PA HP-UX.
6603 case $host_cpu in
6604 hppa*64*|ia64*)
6605 # +Z the default
6608 lt_prog_compiler_pic='-fPIC'
6610 esac
6613 interix[3-9]*)
6614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6615 # Instead, we relocate shared libraries at runtime.
6618 msdosdjgpp*)
6619 # Just because we use GCC doesn't mean we suddenly get shared libraries
6620 # on systems that don't support them.
6621 lt_prog_compiler_can_build_shared=no
6622 enable_shared=no
6625 *nto* | *qnx*)
6626 # QNX uses GNU C++, but need to define -shared option too, otherwise
6627 # it will coredump.
6628 lt_prog_compiler_pic='-fPIC -shared'
6631 sysv4*MP*)
6632 if test -d /usr/nec; then
6633 lt_prog_compiler_pic=-Kconform_pic
6638 lt_prog_compiler_pic='-fPIC'
6640 esac
6641 else
6642 # PORTME Check for flag to pass linker flags through the system compiler.
6643 case $host_os in
6644 aix*)
6645 lt_prog_compiler_wl='-Wl,'
6646 if test "$host_cpu" = ia64; then
6647 # AIX 5 now supports IA64 processor
6648 lt_prog_compiler_static='-Bstatic'
6649 else
6650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6653 darwin*)
6654 # PIC is the default on this platform
6655 # Common symbols not allowed in MH_DYLIB files
6656 case $cc_basename in
6657 xlc*)
6658 lt_prog_compiler_pic='-qnocommon'
6659 lt_prog_compiler_wl='-Wl,'
6661 esac
6664 mingw* | cygwin* | pw32* | os2*)
6665 # This hack is so that the source file can tell whether it is being
6666 # built for inclusion in a dll (and should export symbols for example).
6667 lt_prog_compiler_pic='-DDLL_EXPORT'
6670 hpux9* | hpux10* | hpux11*)
6671 lt_prog_compiler_wl='-Wl,'
6672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6673 # not for PA HP-UX.
6674 case $host_cpu in
6675 hppa*64*|ia64*)
6676 # +Z the default
6679 lt_prog_compiler_pic='+Z'
6681 esac
6682 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6683 lt_prog_compiler_static='${wl}-a ${wl}archive'
6686 irix5* | irix6* | nonstopux*)
6687 lt_prog_compiler_wl='-Wl,'
6688 # PIC (with -KPIC) is the default.
6689 lt_prog_compiler_static='-non_shared'
6692 linux* | k*bsd*-gnu)
6693 case $cc_basename in
6694 icc* | ecc*)
6695 lt_prog_compiler_wl='-Wl,'
6696 lt_prog_compiler_pic='-KPIC'
6697 lt_prog_compiler_static='-static'
6699 pgcc* | pgf77* | pgf90* | pgf95*)
6700 # Portland Group compilers (*not* the Pentium gcc compiler,
6701 # which looks to be a dead project)
6702 lt_prog_compiler_wl='-Wl,'
6703 lt_prog_compiler_pic='-fpic'
6704 lt_prog_compiler_static='-Bstatic'
6706 ccc*)
6707 lt_prog_compiler_wl='-Wl,'
6708 # All Alpha code is PIC.
6709 lt_prog_compiler_static='-non_shared'
6712 case `$CC -V 2>&1 | sed 5q` in
6713 *Sun\ C*)
6714 # Sun C 5.9
6715 lt_prog_compiler_pic='-KPIC'
6716 lt_prog_compiler_static='-Bstatic'
6717 lt_prog_compiler_wl='-Wl,'
6719 *Sun\ F*)
6720 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6721 lt_prog_compiler_pic='-KPIC'
6722 lt_prog_compiler_static='-Bstatic'
6723 lt_prog_compiler_wl=''
6725 esac
6727 esac
6730 newsos6)
6731 lt_prog_compiler_pic='-KPIC'
6732 lt_prog_compiler_static='-Bstatic'
6735 *nto* | *qnx*)
6736 # QNX uses GNU C++, but need to define -shared option too, otherwise
6737 # it will coredump.
6738 lt_prog_compiler_pic='-fPIC -shared'
6741 osf3* | osf4* | osf5*)
6742 lt_prog_compiler_wl='-Wl,'
6743 # All OSF/1 code is PIC.
6744 lt_prog_compiler_static='-non_shared'
6747 rdos*)
6748 lt_prog_compiler_static='-non_shared'
6751 solaris*)
6752 lt_prog_compiler_pic='-KPIC'
6753 lt_prog_compiler_static='-Bstatic'
6754 case $cc_basename in
6755 f77* | f90* | f95*)
6756 lt_prog_compiler_wl='-Qoption ld ';;
6758 lt_prog_compiler_wl='-Wl,';;
6759 esac
6762 sunos4*)
6763 lt_prog_compiler_wl='-Qoption ld '
6764 lt_prog_compiler_pic='-PIC'
6765 lt_prog_compiler_static='-Bstatic'
6768 sysv4 | sysv4.2uw2* | sysv4.3*)
6769 lt_prog_compiler_wl='-Wl,'
6770 lt_prog_compiler_pic='-KPIC'
6771 lt_prog_compiler_static='-Bstatic'
6774 sysv4*MP*)
6775 if test -d /usr/nec ;then
6776 lt_prog_compiler_pic='-Kconform_pic'
6777 lt_prog_compiler_static='-Bstatic'
6781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6782 lt_prog_compiler_wl='-Wl,'
6783 lt_prog_compiler_pic='-KPIC'
6784 lt_prog_compiler_static='-Bstatic'
6787 unicos*)
6788 lt_prog_compiler_wl='-Wl,'
6789 lt_prog_compiler_can_build_shared=no
6792 uts4*)
6793 lt_prog_compiler_pic='-pic'
6794 lt_prog_compiler_static='-Bstatic'
6798 lt_prog_compiler_can_build_shared=no
6800 esac
6803 case $host_os in
6804 # For platforms which do not support PIC, -DPIC is meaningless:
6805 *djgpp*)
6806 lt_prog_compiler_pic=
6809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6811 esac
6812 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6813 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6821 # Check to make sure the PIC flag actually works.
6823 if test -n "$lt_prog_compiler_pic"; then
6824 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6825 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6826 if test "${lt_prog_compiler_pic_works+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 lt_prog_compiler_pic_works=no
6830 ac_outfile=conftest.$ac_objext
6831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6832 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6833 # Insert the option either (1) after the last *FLAGS variable, or
6834 # (2) before a word containing "conftest.", or (3) at the end.
6835 # Note that $ac_compile itself does not contain backslashes and begins
6836 # with a dollar sign (not a hyphen), so the echo should work correctly.
6837 # The option is referenced via a variable to avoid confusing sed.
6838 lt_compile=`echo "$ac_compile" | $SED \
6839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6841 -e 's:$: $lt_compiler_flag:'`
6842 (eval echo "\"\$as_me:6842: $lt_compile\"" >&5)
6843 (eval "$lt_compile" 2>conftest.err)
6844 ac_status=$?
6845 cat conftest.err >&5
6846 echo "$as_me:6846: \$? = $ac_status" >&5
6847 if (exit $ac_status) && test -s "$ac_outfile"; then
6848 # The compiler can only warn and ignore the option if not recognized
6849 # So say no if there are warnings other than the usual output.
6850 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6853 lt_prog_compiler_pic_works=yes
6856 $RM conftest*
6859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6860 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6862 if test x"$lt_prog_compiler_pic_works" = xyes; then
6863 case $lt_prog_compiler_pic in
6864 "" | " "*) ;;
6865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6866 esac
6867 else
6868 lt_prog_compiler_pic=
6869 lt_prog_compiler_can_build_shared=no
6880 # Check to make sure the static flag actually works.
6882 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6883 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6884 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6885 if test "${lt_prog_compiler_static_works+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 lt_prog_compiler_static_works=no
6889 save_LDFLAGS="$LDFLAGS"
6890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6893 # The linker can only warn and ignore the option if not recognized
6894 # So say no if there are warnings
6895 if test -s conftest.err; then
6896 # Append any errors to the config.log.
6897 cat conftest.err 1>&5
6898 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6900 if diff conftest.exp conftest.er2 >/dev/null; then
6901 lt_prog_compiler_static_works=yes
6903 else
6904 lt_prog_compiler_static_works=yes
6907 $RM conftest*
6908 LDFLAGS="$save_LDFLAGS"
6911 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6912 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6914 if test x"$lt_prog_compiler_static_works" = xyes; then
6916 else
6917 lt_prog_compiler_static=
6926 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6928 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 lt_cv_prog_compiler_c_o=no
6932 $RM -r conftest 2>/dev/null
6933 mkdir conftest
6934 cd conftest
6935 mkdir out
6936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6938 lt_compiler_flag="-o out/conftest2.$ac_objext"
6939 # Insert the option either (1) after the last *FLAGS variable, or
6940 # (2) before a word containing "conftest.", or (3) at the end.
6941 # Note that $ac_compile itself does not contain backslashes and begins
6942 # with a dollar sign (not a hyphen), so the echo should work correctly.
6943 lt_compile=`echo "$ac_compile" | $SED \
6944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6946 -e 's:$: $lt_compiler_flag:'`
6947 (eval echo "\"\$as_me:6947: $lt_compile\"" >&5)
6948 (eval "$lt_compile" 2>out/conftest.err)
6949 ac_status=$?
6950 cat out/conftest.err >&5
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6953 then
6954 # The compiler can only warn and ignore the option if not recognized
6955 # So say no if there are warnings
6956 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6959 lt_cv_prog_compiler_c_o=yes
6962 chmod u+w . 2>&5
6963 $RM conftest*
6964 # SGI C++ compiler will create directory out/ii_files/ for
6965 # template instantiation
6966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6967 $RM out/* && rmdir out
6968 cd ..
6969 $RM -r conftest
6970 $RM conftest*
6973 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6981 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 lt_cv_prog_compiler_c_o=no
6987 $RM -r conftest 2>/dev/null
6988 mkdir conftest
6989 cd conftest
6990 mkdir out
6991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6993 lt_compiler_flag="-o out/conftest2.$ac_objext"
6994 # Insert the option either (1) after the last *FLAGS variable, or
6995 # (2) before a word containing "conftest.", or (3) at the end.
6996 # Note that $ac_compile itself does not contain backslashes and begins
6997 # with a dollar sign (not a hyphen), so the echo should work correctly.
6998 lt_compile=`echo "$ac_compile" | $SED \
6999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001 -e 's:$: $lt_compiler_flag:'`
7002 (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003 (eval "$lt_compile" 2>out/conftest.err)
7004 ac_status=$?
7005 cat out/conftest.err >&5
7006 echo "$as_me:7006: \$? = $ac_status" >&5
7007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7008 then
7009 # The compiler can only warn and ignore the option if not recognized
7010 # So say no if there are warnings
7011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7014 lt_cv_prog_compiler_c_o=yes
7017 chmod u+w . 2>&5
7018 $RM conftest*
7019 # SGI C++ compiler will create directory out/ii_files/ for
7020 # template instantiation
7021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7022 $RM out/* && rmdir out
7023 cd ..
7024 $RM -r conftest
7025 $RM conftest*
7028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7034 hard_links="nottested"
7035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7036 # do not overwrite the value of need_locks provided by the user
7037 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7038 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7039 hard_links=yes
7040 $RM conftest*
7041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7042 touch conftest.a
7043 ln conftest.a conftest.b 2>&5 || hard_links=no
7044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7045 echo "$as_me:$LINENO: result: $hard_links" >&5
7046 echo "${ECHO_T}$hard_links" >&6
7047 if test "$hard_links" = no; then
7048 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7049 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7050 need_locks=warn
7052 else
7053 need_locks=no
7061 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7062 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7064 runpath_var=
7065 allow_undefined_flag=
7066 always_export_symbols=no
7067 archive_cmds=
7068 archive_expsym_cmds=
7069 compiler_needs_object=no
7070 enable_shared_with_static_runtimes=no
7071 export_dynamic_flag_spec=
7072 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7073 hardcode_automatic=no
7074 hardcode_direct=no
7075 hardcode_direct_absolute=no
7076 hardcode_libdir_flag_spec=
7077 hardcode_libdir_flag_spec_ld=
7078 hardcode_libdir_separator=
7079 hardcode_minus_L=no
7080 hardcode_shlibpath_var=unsupported
7081 inherit_rpath=no
7082 link_all_deplibs=unknown
7083 module_cmds=
7084 module_expsym_cmds=
7085 old_archive_from_new_cmds=
7086 old_archive_from_expsyms_cmds=
7087 thread_safe_flag_spec=
7088 whole_archive_flag_spec=
7089 # include_expsyms should be a list of space-separated symbols to be *always*
7090 # included in the symbol list
7091 include_expsyms=
7092 # exclude_expsyms can be an extended regexp of symbols to exclude
7093 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7094 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7095 # as well as any symbol that contains `d'.
7096 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7098 # platforms (ab)use it in PIC code, but their linkers get confused if
7099 # the symbol is explicitly referenced. Since portable code cannot
7100 # rely on this symbol name, it's probably fine to never include it in
7101 # preloaded symbol tables.
7102 extract_expsyms_cmds=
7104 case $host_os in
7105 cygwin* | mingw* | pw32*)
7106 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7107 # When not using gcc, we currently assume that we are using
7108 # Microsoft Visual C++.
7109 if test "$GCC" != yes; then
7110 with_gnu_ld=no
7113 interix*)
7114 # we just hope/assume this is gcc and not c89 (= MSVC++)
7115 with_gnu_ld=yes
7117 openbsd*)
7118 with_gnu_ld=no
7120 esac
7122 ld_shlibs=yes
7123 if test "$with_gnu_ld" = yes; then
7124 # If archive_cmds runs LD, not CC, wlarc should be empty
7125 wlarc='${wl}'
7127 # Set some defaults for GNU ld with shared library support. These
7128 # are reset later if shared libraries are not supported. Putting them
7129 # here allows them to be overridden if necessary.
7130 runpath_var=LD_RUN_PATH
7131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7132 export_dynamic_flag_spec='${wl}--export-dynamic'
7133 # ancient GNU ld didn't support --whole-archive et. al.
7134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7136 else
7137 whole_archive_flag_spec=
7139 supports_anon_versioning=no
7140 case `$LD -v 2>&1` in
7141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7144 *\ 2.11.*) ;; # other 2.11 versions
7145 *) supports_anon_versioning=yes ;;
7146 esac
7148 # See if GNU ld supports shared libraries.
7149 case $host_os in
7150 aix[3-9]*)
7151 # On AIX/PPC, the GNU linker is very broken
7152 if test "$host_cpu" != ia64; then
7153 ld_shlibs=no
7154 cat <<_LT_EOF 1>&2
7156 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7157 *** to be unable to reliably create shared libraries on AIX.
7158 *** Therefore, libtool is disabling shared libraries support. If you
7159 *** really care for shared libraries, you may want to modify your PATH
7160 *** so that a non-GNU linker is found, and then restart.
7162 _LT_EOF
7166 amigaos*)
7167 if test "$host_cpu" = m68k; then
7168 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)'
7169 hardcode_libdir_flag_spec='-L$libdir'
7170 hardcode_minus_L=yes
7173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7174 # that the semantics of dynamic libraries on AmigaOS, at least up
7175 # to version 4, is to share data among multiple programs linked
7176 # with the same dynamic library. Since this doesn't match the
7177 # behavior of shared libraries on other platforms, we can't use
7178 # them.
7179 ld_shlibs=no
7182 beos*)
7183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7184 allow_undefined_flag=unsupported
7185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7186 # support --undefined. This deserves some investigation. FIXME
7187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7188 else
7189 ld_shlibs=no
7193 cygwin* | mingw* | pw32*)
7194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7195 # as there is no search path for DLLs.
7196 hardcode_libdir_flag_spec='-L$libdir'
7197 allow_undefined_flag=unsupported
7198 always_export_symbols=no
7199 enable_shared_with_static_runtimes=yes
7200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7202 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7204 # If the export-symbols file already is a .def file (1st line
7205 # is EXPORTS), use it as is; otherwise, prepend...
7206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7207 cp $export_symbols $output_objdir/$soname.def;
7208 else
7209 echo EXPORTS > $output_objdir/$soname.def;
7210 cat $export_symbols >> $output_objdir/$soname.def;
7212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7213 else
7214 ld_shlibs=no
7218 interix[3-9]*)
7219 hardcode_direct=no
7220 hardcode_shlibpath_var=no
7221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7222 export_dynamic_flag_spec='${wl}-E'
7223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7224 # Instead, shared libraries are loaded at an image base (0x10000000 by
7225 # default) and relocated if they conflict, which is a slow very memory
7226 # consuming and fragmenting process. To avoid this, we pick a random,
7227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7230 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'
7233 gnu* | linux* | tpf* | k*bsd*-gnu)
7234 tmp_diet=no
7235 if test "$host_os" = linux-dietlibc; then
7236 case $cc_basename in
7237 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7238 esac
7240 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7241 && test "$tmp_diet" = no
7242 then
7243 tmp_addflag=
7244 case $cc_basename,$host_cpu in
7245 pgcc*) # Portland Group C compiler
7246 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7247 tmp_addflag=' $pic_flag'
7249 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7250 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7251 tmp_addflag=' $pic_flag -Mnomain' ;;
7252 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7253 tmp_addflag=' -i_dynamic' ;;
7254 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7255 tmp_addflag=' -i_dynamic -nofor_main' ;;
7256 ifc* | ifort*) # Intel Fortran compiler
7257 tmp_addflag=' -nofor_main' ;;
7258 esac
7259 case `$CC -V 2>&1 | sed 5q` in
7260 *Sun\ C*) # Sun C 5.9
7261 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7262 compiler_needs_object=yes
7263 tmp_sharedflag='-G' ;;
7264 *Sun\ F*) # Sun Fortran 8.3
7265 tmp_sharedflag='-G' ;;
7267 tmp_sharedflag='-shared' ;;
7268 esac
7269 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7271 if test "x$supports_anon_versioning" = xyes; then
7272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7274 echo "local: *; };" >> $output_objdir/$libname.ver~
7275 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7277 else
7278 ld_shlibs=no
7282 netbsd*)
7283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7284 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7285 wlarc=
7286 else
7287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7292 solaris*)
7293 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7294 ld_shlibs=no
7295 cat <<_LT_EOF 1>&2
7297 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7298 *** create shared libraries on Solaris systems. Therefore, libtool
7299 *** is disabling shared libraries support. We urge you to upgrade GNU
7300 *** binutils to release 2.9.1 or newer. Another option is to modify
7301 *** your PATH or compiler configuration so that the native linker is
7302 *** used, and then restart.
7304 _LT_EOF
7305 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7308 else
7309 ld_shlibs=no
7313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7314 case `$LD -v 2>&1` in
7315 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7316 ld_shlibs=no
7317 cat <<_LT_EOF 1>&2
7319 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7320 *** reliably create shared libraries on SCO systems. Therefore, libtool
7321 *** is disabling shared libraries support. We urge you to upgrade GNU
7322 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7323 *** your PATH or compiler configuration so that the native linker is
7324 *** used, and then restart.
7326 _LT_EOF
7329 # For security reasons, it is highly recommended that you always
7330 # use absolute paths for naming shared libraries, and exclude the
7331 # DT_RUNPATH tag from executables and libraries. But doing so
7332 # requires that you compile everything twice, which is a pain.
7333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7337 else
7338 ld_shlibs=no
7341 esac
7344 sunos4*)
7345 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7346 wlarc=
7347 hardcode_direct=yes
7348 hardcode_shlibpath_var=no
7352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7355 else
7356 ld_shlibs=no
7359 esac
7361 if test "$ld_shlibs" = no; then
7362 runpath_var=
7363 hardcode_libdir_flag_spec=
7364 export_dynamic_flag_spec=
7365 whole_archive_flag_spec=
7367 else
7368 # PORTME fill in a description of your system's linker (not GNU ld)
7369 case $host_os in
7370 aix3*)
7371 allow_undefined_flag=unsupported
7372 always_export_symbols=yes
7373 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'
7374 # Note: this linker hardcodes the directories in LIBPATH if there
7375 # are no directories specified by -L.
7376 hardcode_minus_L=yes
7377 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7378 # Neither direct hardcoding nor static linking is supported with a
7379 # broken collect2.
7380 hardcode_direct=unsupported
7384 aix[4-9]*)
7385 if test "$host_cpu" = ia64; then
7386 # On IA64, the linker does run time linking by default, so we don't
7387 # have to do anything special.
7388 aix_use_runtimelinking=no
7389 exp_sym_flag='-Bexport'
7390 no_entry_flag=""
7391 else
7392 # If we're using GNU nm, then we don't want the "-C" option.
7393 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7395 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7396 else
7397 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'
7399 aix_use_runtimelinking=no
7401 # Test if we are trying to use run time linking or normal
7402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7403 # need to do runtime linking.
7404 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7405 for ld_flag in $LDFLAGS; do
7406 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7407 aix_use_runtimelinking=yes
7408 break
7410 done
7412 esac
7414 exp_sym_flag='-bexport'
7415 no_entry_flag='-bnoentry'
7418 # When large executables or shared objects are built, AIX ld can
7419 # have problems creating the table of contents. If linking a library
7420 # or program results in "error TOC overflow" add -mminimal-toc to
7421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7424 archive_cmds=''
7425 hardcode_direct=yes
7426 hardcode_direct_absolute=yes
7427 hardcode_libdir_separator=':'
7428 link_all_deplibs=yes
7429 file_list_spec='${wl}-f,'
7431 if test "$GCC" = yes; then
7432 case $host_os in aix4.[012]|aix4.[012].*)
7433 # We only want to do this on AIX 4.2 and lower, the check
7434 # below for broken collect2 doesn't work under 4.3+
7435 collect2name=`${CC} -print-prog-name=collect2`
7436 if test -f "$collect2name" &&
7437 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7438 then
7439 # We have reworked collect2
7441 else
7442 # We have old collect2
7443 hardcode_direct=unsupported
7444 # It fails to find uninstalled libraries when the uninstalled
7445 # path is not listed in the libpath. Setting hardcode_minus_L
7446 # to unsupported forces relinking
7447 hardcode_minus_L=yes
7448 hardcode_libdir_flag_spec='-L$libdir'
7449 hardcode_libdir_separator=
7452 esac
7453 shared_flag='-shared'
7454 if test "$aix_use_runtimelinking" = yes; then
7455 shared_flag="$shared_flag "'${wl}-G'
7457 else
7458 # not using gcc
7459 if test "$host_cpu" = ia64; then
7460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7461 # chokes on -Wl,-G. The following line is correct:
7462 shared_flag='-G'
7463 else
7464 if test "$aix_use_runtimelinking" = yes; then
7465 shared_flag='${wl}-G'
7466 else
7467 shared_flag='${wl}-bM:SRE'
7472 # It seems that -bexpall does not export symbols beginning with
7473 # underscore (_), so it is better to generate a list of symbols to export.
7474 always_export_symbols=yes
7475 if test "$aix_use_runtimelinking" = yes; then
7476 # Warning - without using the other runtime loading flags (-brtl),
7477 # -berok will link without error, but may produce a broken library.
7478 allow_undefined_flag='-berok'
7479 # Determine the default libpath from the value encoded in an
7480 # empty executable.
7481 if test x$gcc_no_link = xyes; then
7482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7484 { (exit 1); exit 1; }; }
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7494 main ()
7498 return 0;
7500 _ACEOF
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7524 lt_aix_libpath_sed='
7525 /Import File Strings/,/^$/ {
7526 /^0/ {
7527 s/^0 *\(.*\)$/\1/
7531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7532 # Check for a 64-bit object if we didn't find anything.
7533 if test -z "$aix_libpath"; then
7534 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7541 rm -f conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7545 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7546 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7547 else
7548 if test "$host_cpu" = ia64; then
7549 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7550 allow_undefined_flag="-z nodefs"
7551 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"
7552 else
7553 # Determine the default libpath from the value encoded in an
7554 # empty executable.
7555 if test x$gcc_no_link = xyes; then
7556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7558 { (exit 1); exit 1; }; }
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7568 main ()
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_c_werror_flag"
7585 || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7598 lt_aix_libpath_sed='
7599 /Import File Strings/,/^$/ {
7600 /^0/ {
7601 s/^0 *\(.*\)$/\1/
7605 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7606 # Check for a 64-bit object if we didn't find anything.
7607 if test -z "$aix_libpath"; then
7608 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7615 rm -f conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7620 # Warning - without using the other run time loading flags,
7621 # -berok will link without error, but may produce a broken library.
7622 no_undefined_flag=' ${wl}-bernotok'
7623 allow_undefined_flag=' ${wl}-berok'
7624 # Exported symbols can be pulled into shared objects from archives
7625 whole_archive_flag_spec='$convenience'
7626 archive_cmds_need_lc=yes
7627 # This is similar to how AIX traditionally builds its shared libraries.
7628 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'
7633 amigaos*)
7634 if test "$host_cpu" = m68k; then
7635 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)'
7636 hardcode_libdir_flag_spec='-L$libdir'
7637 hardcode_minus_L=yes
7639 # see comment about different semantics on the GNU ld section
7640 ld_shlibs=no
7643 bsdi[45]*)
7644 export_dynamic_flag_spec=-rdynamic
7647 cygwin* | mingw* | pw32*)
7648 # When not using gcc, we currently assume that we are using
7649 # Microsoft Visual C++.
7650 # hardcode_libdir_flag_spec is actually meaningless, as there is
7651 # no search path for DLLs.
7652 hardcode_libdir_flag_spec=' '
7653 allow_undefined_flag=unsupported
7654 # Tell ltmain to make .lib files, not .a files.
7655 libext=lib
7656 # Tell ltmain to make .dll files, not .so files.
7657 shrext_cmds=".dll"
7658 # FIXME: Setting linknames here is a bad hack.
7659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7660 # The linker will automatically build a .lib file if we build a DLL.
7661 old_archive_from_new_cmds='true'
7662 # FIXME: Should let the user specify the lib program.
7663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7664 fix_srcfile_path='`cygpath -w "$srcfile"`'
7665 enable_shared_with_static_runtimes=yes
7668 darwin* | rhapsody*)
7669 case $host_os in
7670 rhapsody* | darwin1.[012])
7671 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7673 *) # Darwin 1.3 on
7674 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7675 10.[012])
7676 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7678 10.*)
7679 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7681 esac
7683 esac
7684 archive_cmds_need_lc=no
7685 hardcode_direct=no
7686 hardcode_automatic=yes
7687 hardcode_shlibpath_var=unsupported
7688 whole_archive_flag_spec=''
7689 link_all_deplibs=yes
7690 if test "$GCC" = yes ; then
7691 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694 lt_cv_apple_cc_single_mod=no
7695 if test -z "${LT_MULTI_MODULE}"; then
7696 # By default we will add the -single_module flag. You can override
7697 # by either setting the environment variable LT_MULTI_MODULE
7698 # non-empty at configure time, or by adding -multi-module to the
7699 # link flags.
7700 echo "int foo(void){return 1;}" > conftest.c
7701 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7702 -dynamiclib ${wl}-single_module conftest.c
7703 if test -f libconftest.dylib; then
7704 lt_cv_apple_cc_single_mod=yes
7705 rm libconftest.dylib
7707 rm conftest.$ac_ext
7711 output_verbose_link_cmd=echo
7712 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7713 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7714 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7715 else
7716 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7717 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7719 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7720 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7721 else
7722 case $cc_basename in
7723 xlc*)
7724 output_verbose_link_cmd=echo
7725 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7726 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7728 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7729 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7732 ld_shlibs=no
7734 esac
7738 dgux*)
7739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7740 hardcode_libdir_flag_spec='-L$libdir'
7741 hardcode_shlibpath_var=no
7744 freebsd1*)
7745 ld_shlibs=no
7748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7749 # support. Future versions do this automatically, but an explicit c++rt0.o
7750 # does not break anything, and helps significantly (at the cost of a little
7751 # extra space).
7752 freebsd2.2*)
7753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7754 hardcode_libdir_flag_spec='-R$libdir'
7755 hardcode_direct=yes
7756 hardcode_shlibpath_var=no
7759 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7760 freebsd2*)
7761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_direct=yes
7763 hardcode_minus_L=yes
7764 hardcode_shlibpath_var=no
7767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7768 freebsd* | dragonfly*)
7769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7770 hardcode_libdir_flag_spec='-R$libdir'
7771 hardcode_direct=yes
7772 hardcode_shlibpath_var=no
7775 hpux9*)
7776 if test "$GCC" = yes; then
7777 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'
7778 else
7779 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'
7781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7782 hardcode_libdir_separator=:
7783 hardcode_direct=yes
7785 # hardcode_minus_L: Not really in the search PATH,
7786 # but as the default location of the library.
7787 hardcode_minus_L=yes
7788 export_dynamic_flag_spec='${wl}-E'
7791 hpux10*)
7792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7794 else
7795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7797 if test "$with_gnu_ld" = no; then
7798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7799 hardcode_libdir_flag_spec_ld='+b $libdir'
7800 hardcode_libdir_separator=:
7801 hardcode_direct=yes
7802 hardcode_direct_absolute=yes
7803 export_dynamic_flag_spec='${wl}-E'
7804 # hardcode_minus_L: Not really in the search PATH,
7805 # but as the default location of the library.
7806 hardcode_minus_L=yes
7810 hpux11*)
7811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7812 case $host_cpu in
7813 hppa*64*)
7814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7816 ia64*)
7817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7822 esac
7823 else
7824 case $host_cpu in
7825 hppa*64*)
7826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7828 ia64*)
7829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7834 esac
7836 if test "$with_gnu_ld" = no; then
7837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7838 hardcode_libdir_separator=:
7840 case $host_cpu in
7841 hppa*64*|ia64*)
7842 hardcode_direct=no
7843 hardcode_shlibpath_var=no
7846 hardcode_direct=yes
7847 hardcode_direct_absolute=yes
7848 export_dynamic_flag_spec='${wl}-E'
7850 # hardcode_minus_L: Not really in the search PATH,
7851 # but as the default location of the library.
7852 hardcode_minus_L=yes
7854 esac
7858 irix5* | irix6* | nonstopux*)
7859 if test "$GCC" = yes; then
7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7861 # Try to use the -exported_symbol ld option, if it does not
7862 # work, assume that -exports_file does not work either and
7863 # implicitly export all symbols.
7864 save_LDFLAGS="$LDFLAGS"
7865 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7866 if test x$gcc_no_link = xyes; then
7867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7869 { (exit 1); exit 1; }; }
7871 cat >conftest.$ac_ext <<_ACEOF
7872 int foo(void) {}
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7898 else
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7903 rm -f conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LDFLAGS="$save_LDFLAGS"
7906 else
7907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7910 archive_cmds_need_lc='no'
7911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7912 hardcode_libdir_separator=:
7913 inherit_rpath=yes
7914 link_all_deplibs=yes
7917 netbsd*)
7918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7920 else
7921 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7923 hardcode_libdir_flag_spec='-R$libdir'
7924 hardcode_direct=yes
7925 hardcode_shlibpath_var=no
7928 newsos6)
7929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7930 hardcode_direct=yes
7931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7932 hardcode_libdir_separator=:
7933 hardcode_shlibpath_var=no
7936 *nto* | *qnx*)
7939 openbsd*)
7940 hardcode_direct=yes
7941 hardcode_shlibpath_var=no
7942 hardcode_direct_absolute=yes
7943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7947 export_dynamic_flag_spec='${wl}-E'
7948 else
7949 case $host_os in
7950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7952 hardcode_libdir_flag_spec='-R$libdir'
7955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7958 esac
7962 os2*)
7963 hardcode_libdir_flag_spec='-L$libdir'
7964 hardcode_minus_L=yes
7965 allow_undefined_flag=unsupported
7966 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'
7967 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7970 osf3*)
7971 if test "$GCC" = yes; then
7972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7973 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7974 else
7975 allow_undefined_flag=' -expect_unresolved \*'
7976 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7978 archive_cmds_need_lc='no'
7979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7980 hardcode_libdir_separator=:
7983 osf4* | osf5*) # as osf3* with the addition of -msym flag
7984 if test "$GCC" = yes; then
7985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7986 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7988 else
7989 allow_undefined_flag=' -expect_unresolved \*'
7990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7991 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~
7992 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7994 # Both c and cxx compiler support -rpath directly
7995 hardcode_libdir_flag_spec='-rpath $libdir'
7997 archive_cmds_need_lc='no'
7998 hardcode_libdir_separator=:
8001 solaris*)
8002 no_undefined_flag=' -z defs'
8003 if test "$GCC" = yes; then
8004 wlarc='${wl}'
8005 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8007 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8008 else
8009 case `$CC -V 2>&1` in
8010 *"Compilers 5.0"*)
8011 wlarc=''
8012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8017 wlarc='${wl}'
8018 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8020 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8022 esac
8024 hardcode_libdir_flag_spec='-R$libdir'
8025 hardcode_shlibpath_var=no
8026 case $host_os in
8027 solaris2.[0-5] | solaris2.[0-5].*) ;;
8029 # The compiler driver will combine and reorder linker options,
8030 # but understands `-z linker_flag'. GCC discards it without `$wl',
8031 # but is careful enough not to reorder.
8032 # Supported since Solaris 2.6 (maybe 2.5.1?)
8033 if test "$GCC" = yes; then
8034 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8035 else
8036 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8039 esac
8040 link_all_deplibs=yes
8043 sunos4*)
8044 if test "x$host_vendor" = xsequent; then
8045 # Use $CC to link under sequent, because it throws in some extra .o
8046 # files that make .init and .fini sections work.
8047 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8048 else
8049 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8051 hardcode_libdir_flag_spec='-L$libdir'
8052 hardcode_direct=yes
8053 hardcode_minus_L=yes
8054 hardcode_shlibpath_var=no
8057 sysv4)
8058 case $host_vendor in
8059 sni)
8060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8061 hardcode_direct=yes # is this really true???
8063 siemens)
8064 ## LD is ld it makes a PLAMLIB
8065 ## CC just makes a GrossModule.
8066 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8067 reload_cmds='$CC -r -o $output$reload_objs'
8068 hardcode_direct=no
8070 motorola)
8071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8072 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8074 esac
8075 runpath_var='LD_RUN_PATH'
8076 hardcode_shlibpath_var=no
8079 sysv4.3*)
8080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8081 hardcode_shlibpath_var=no
8082 export_dynamic_flag_spec='-Bexport'
8085 sysv4*MP*)
8086 if test -d /usr/nec; then
8087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8088 hardcode_shlibpath_var=no
8089 runpath_var=LD_RUN_PATH
8090 hardcode_runpath_var=yes
8091 ld_shlibs=yes
8095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8096 no_undefined_flag='${wl}-z,text'
8097 archive_cmds_need_lc=no
8098 hardcode_shlibpath_var=no
8099 runpath_var='LD_RUN_PATH'
8101 if test "$GCC" = yes; then
8102 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8104 else
8105 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8110 sysv5* | sco3.2v5* | sco5v6*)
8111 # Note: We can NOT use -z defs as we might desire, because we do not
8112 # link with -lc, and that would cause any symbols used from libc to
8113 # always be unresolved, which means just about no library would
8114 # ever link correctly. If we're not using GNU ld we use -z text
8115 # though, which does catch some bad symbols but isn't as heavy-handed
8116 # as -z defs.
8117 no_undefined_flag='${wl}-z,text'
8118 allow_undefined_flag='${wl}-z,nodefs'
8119 archive_cmds_need_lc=no
8120 hardcode_shlibpath_var=no
8121 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8122 hardcode_libdir_separator=':'
8123 link_all_deplibs=yes
8124 export_dynamic_flag_spec='${wl}-Bexport'
8125 runpath_var='LD_RUN_PATH'
8127 if test "$GCC" = yes; then
8128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8130 else
8131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 uts4*)
8137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_shlibpath_var=no
8143 ld_shlibs=no
8145 esac
8147 if test x$host_vendor = xsni; then
8148 case $host in
8149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8150 export_dynamic_flag_spec='${wl}-Blargedynsym'
8152 esac
8156 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8157 echo "${ECHO_T}$ld_shlibs" >&6
8158 test "$ld_shlibs" = no && can_build_shared=no
8160 with_gnu_ld=$with_gnu_ld
8177 # Do we need to explicitly link libc?
8179 case "x$archive_cmds_need_lc" in
8180 x|xyes)
8181 # Assume -lc should be added
8182 archive_cmds_need_lc=yes
8184 if test "$enable_shared" = yes && test "$GCC" = yes; then
8185 case $archive_cmds in
8186 *'~'*)
8187 # FIXME: we may have to deal with multi-command sequences.
8189 '$CC '*)
8190 # Test whether the compiler implicitly links with -lc since on some
8191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8192 # to ld, don't add -lc before -lgcc.
8193 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8194 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8195 $RM conftest*
8196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199 (eval $ac_compile) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } 2>conftest.err; then
8203 soname=conftest
8204 lib=conftest
8205 libobjs=conftest.$ac_objext
8206 deplibs=
8207 wl=$lt_prog_compiler_wl
8208 pic_flag=$lt_prog_compiler_pic
8209 compiler_flags=-v
8210 linker_flags=-v
8211 verstring=
8212 output_objdir=.
8213 libname=conftest
8214 lt_save_allow_undefined_flag=$allow_undefined_flag
8215 allow_undefined_flag=
8216 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }
8221 then
8222 archive_cmds_need_lc=no
8223 else
8224 archive_cmds_need_lc=yes
8226 allow_undefined_flag=$lt_save_allow_undefined_flag
8227 else
8228 cat conftest.err 1>&5
8230 $RM conftest*
8231 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8232 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8234 esac
8237 esac
8395 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8396 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8397 withGCC=$GCC
8398 if test "$withGCC" = yes; then
8399 case $host_os in
8400 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8401 *) lt_awk_arg="/^libraries:/" ;;
8402 esac
8403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8404 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8405 # if the path contains ";" then we assume it to be the separator
8406 # otherwise default to the standard path separator (i.e. ":") - it is
8407 # assumed that no part of a normal pathname contains ";" but that should
8408 # okay in the real world where ";" in dirpaths is itself problematic.
8409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8410 else
8411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8413 # Ok, now we have the path, separated by spaces, we can step through it
8414 # and add multilib dir if necessary.
8415 lt_tmp_lt_search_path_spec=
8416 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8417 for lt_sys_path in $lt_search_path_spec; do
8418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8420 else
8421 test -d "$lt_sys_path" && \
8422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8424 done
8425 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8426 BEGIN {RS=" "; FS="/|\n";} {
8427 lt_foo="";
8428 lt_count=0;
8429 for (lt_i = NF; lt_i > 0; lt_i--) {
8430 if ($lt_i != "" && $lt_i != ".") {
8431 if ($lt_i == "..") {
8432 lt_count++;
8433 } else {
8434 if (lt_count == 0) {
8435 lt_foo="/" $lt_i lt_foo;
8436 } else {
8437 lt_count--;
8442 if (lt_foo != "") { lt_freq[lt_foo]++; }
8443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8445 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8446 else
8447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8449 library_names_spec=
8450 libname_spec='lib$name'
8451 soname_spec=
8452 shrext_cmds=".so"
8453 postinstall_cmds=
8454 postuninstall_cmds=
8455 finish_cmds=
8456 finish_eval=
8457 shlibpath_var=
8458 shlibpath_overrides_runpath=unknown
8459 version_type=none
8460 dynamic_linker="$host_os ld.so"
8461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8462 need_lib_prefix=unknown
8463 hardcode_into_libs=no
8465 # when you set need_version to no, make sure it does not cause -set_version
8466 # flags to be left without arguments
8467 need_version=unknown
8469 case $host_os in
8470 aix3*)
8471 version_type=linux
8472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8473 shlibpath_var=LIBPATH
8475 # AIX 3 has no versioning support, so we append a major version to the name.
8476 soname_spec='${libname}${release}${shared_ext}$major'
8479 aix[4-9]*)
8480 version_type=linux
8481 need_lib_prefix=no
8482 need_version=no
8483 hardcode_into_libs=yes
8484 if test "$host_cpu" = ia64; then
8485 # AIX 5 supports IA64
8486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 else
8489 # With GCC up to 2.95.x, collect2 would create an import file
8490 # for dependence libraries. The import file would start with
8491 # the line `#! .'. This would cause the generated library to
8492 # depend on `.', always an invalid library. This was fixed in
8493 # development snapshots of GCC prior to 3.0.
8494 case $host_os in
8495 aix4 | aix4.[01] | aix4.[01].*)
8496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8497 echo ' yes '
8498 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8500 else
8501 can_build_shared=no
8504 esac
8505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8506 # soname into executable. Probably we can add versioning support to
8507 # collect2, so additional links can be useful in future.
8508 if test "$aix_use_runtimelinking" = yes; then
8509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8510 # instead of lib<name>.a to let people know that these are not
8511 # typical AIX shared libraries.
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8513 else
8514 # We preserve .a as extension for shared libraries through AIX4.2
8515 # and later when we are not doing run time linking.
8516 library_names_spec='${libname}${release}.a $libname.a'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8519 shlibpath_var=LIBPATH
8523 amigaos*)
8524 if test "$host_cpu" = m68k; then
8525 library_names_spec='$libname.ixlibrary $libname.a'
8526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8527 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8528 else
8529 dynamic_linker=no
8533 beos*)
8534 library_names_spec='${libname}${shared_ext}'
8535 dynamic_linker="$host_os ld.so"
8536 shlibpath_var=LIBRARY_PATH
8539 bsdi[45]*)
8540 version_type=linux
8541 need_version=no
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 soname_spec='${libname}${release}${shared_ext}$major'
8544 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8545 shlibpath_var=LD_LIBRARY_PATH
8546 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8547 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8548 # the default ld.so.conf also contains /usr/contrib/lib and
8549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8550 # libtool to hard-code these into programs
8553 cygwin* | mingw* | pw32*)
8554 version_type=windows
8555 shrext_cmds=".dll"
8556 need_version=no
8557 need_lib_prefix=no
8559 case $withGCC,$host_os in
8560 yes,cygwin* | yes,mingw* | yes,pw32*)
8561 library_names_spec='$libname.dll.a'
8562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8563 postinstall_cmds='base_file=`basename \${file}`~
8564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8565 dldir=$destdir/`dirname \$dlpath`~
8566 test -d \$dldir || mkdir -p \$dldir~
8567 $install_prog $dir/$dlname \$dldir/$dlname~
8568 chmod a+x \$dldir/$dlname~
8569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8573 dlpath=$dir/\$dldll~
8574 $RM \$dlpath'
8575 shlibpath_overrides_runpath=yes
8577 case $host_os in
8578 cygwin*)
8579 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8580 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8581 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8583 mingw*)
8584 # MinGW DLLs use traditional 'lib' prefix
8585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8586 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8587 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8588 # It is most probably a Windows format PATH printed by
8589 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8590 # path with ; separators, and with drive letters. We can handle the
8591 # drive letters (cygwin fileutils understands them), so leave them,
8592 # especially as we might pass files found there to a mingw objdump,
8593 # which wouldn't understand a cygwinified path. Ahh.
8594 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8595 else
8596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8599 pw32*)
8600 # pw32 DLLs use 'pw' prefix rather than 'lib'
8601 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8603 esac
8607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8609 esac
8610 dynamic_linker='Win32 ld.exe'
8611 # FIXME: first we should search . and the directory the executable is in
8612 shlibpath_var=PATH
8615 darwin* | rhapsody*)
8616 dynamic_linker="$host_os dyld"
8617 version_type=darwin
8618 need_lib_prefix=no
8619 need_version=no
8620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8621 soname_spec='${libname}${release}${major}$shared_ext'
8622 shlibpath_overrides_runpath=yes
8623 shlibpath_var=DYLD_LIBRARY_PATH
8624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8630 dgux*)
8631 version_type=linux
8632 need_lib_prefix=no
8633 need_version=no
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 shlibpath_var=LD_LIBRARY_PATH
8639 freebsd1*)
8640 dynamic_linker=no
8643 freebsd* | dragonfly*)
8644 # DragonFly does not have aout. When/if they implement a new
8645 # versioning mechanism, adjust this.
8646 if test -x /usr/bin/objformat; then
8647 objformat=`/usr/bin/objformat`
8648 else
8649 case $host_os in
8650 freebsd[123]*) objformat=aout ;;
8651 *) objformat=elf ;;
8652 esac
8654 version_type=freebsd-$objformat
8655 case $version_type in
8656 freebsd-elf*)
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8658 need_version=no
8659 need_lib_prefix=no
8661 freebsd-*)
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8663 need_version=yes
8665 esac
8666 shlibpath_var=LD_LIBRARY_PATH
8667 case $host_os in
8668 freebsd2*)
8669 shlibpath_overrides_runpath=yes
8671 freebsd3.[01]* | freebsdelf3.[01]*)
8672 shlibpath_overrides_runpath=yes
8673 hardcode_into_libs=yes
8675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8677 shlibpath_overrides_runpath=no
8678 hardcode_into_libs=yes
8680 *) # from 4.6 on, and DragonFly
8681 shlibpath_overrides_runpath=yes
8682 hardcode_into_libs=yes
8684 esac
8687 gnu*)
8688 version_type=linux
8689 need_lib_prefix=no
8690 need_version=no
8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8692 soname_spec='${libname}${release}${shared_ext}$major'
8693 shlibpath_var=LD_LIBRARY_PATH
8694 hardcode_into_libs=yes
8697 hpux9* | hpux10* | hpux11*)
8698 # Give a soname corresponding to the major version so that dld.sl refuses to
8699 # link against other versions.
8700 version_type=sunos
8701 need_lib_prefix=no
8702 need_version=no
8703 case $host_cpu in
8704 ia64*)
8705 shrext_cmds='.so'
8706 hardcode_into_libs=yes
8707 dynamic_linker="$host_os dld.so"
8708 shlibpath_var=LD_LIBRARY_PATH
8709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711 soname_spec='${libname}${release}${shared_ext}$major'
8712 if test "X$HPUX_IA64_MODE" = X32; then
8713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8714 else
8715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8719 hppa*64*)
8720 shrext_cmds='.sl'
8721 hardcode_into_libs=yes
8722 dynamic_linker="$host_os dld.sl"
8723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8731 shrext_cmds='.sl'
8732 dynamic_linker="$host_os dld.sl"
8733 shlibpath_var=SHLIB_PATH
8734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8738 esac
8739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8740 postinstall_cmds='chmod 555 $lib'
8743 interix[3-9]*)
8744 version_type=linux
8745 need_lib_prefix=no
8746 need_version=no
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8748 soname_spec='${libname}${release}${shared_ext}$major'
8749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 shlibpath_overrides_runpath=no
8752 hardcode_into_libs=yes
8755 irix5* | irix6* | nonstopux*)
8756 case $host_os in
8757 nonstopux*) version_type=nonstopux ;;
8759 if test "$lt_cv_prog_gnu_ld" = yes; then
8760 version_type=linux
8761 else
8762 version_type=irix
8763 fi ;;
8764 esac
8765 need_lib_prefix=no
8766 need_version=no
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8769 case $host_os in
8770 irix5* | nonstopux*)
8771 libsuff= shlibsuff=
8774 case $LD in # libtool.m4 will add one of these switches to LD
8775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8776 libsuff= shlibsuff= libmagic=32-bit;;
8777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8778 libsuff=32 shlibsuff=N32 libmagic=N32;;
8779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8781 *) libsuff= shlibsuff= libmagic=never-match;;
8782 esac
8784 esac
8785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8786 shlibpath_overrides_runpath=no
8787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8789 hardcode_into_libs=yes
8792 # No shared lib support for Linux oldld, aout, or coff.
8793 linux*oldld* | linux*aout* | linux*coff*)
8794 dynamic_linker=no
8797 # This must be Linux ELF.
8798 linux* | k*bsd*-gnu)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8805 shlibpath_var=LD_LIBRARY_PATH
8806 shlibpath_overrides_runpath=no
8807 # Some binutils ld are patched to set DT_RUNPATH
8808 save_LDFLAGS=$LDFLAGS
8809 save_libdir=$libdir
8810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8812 if test x$gcc_no_link = xyes; then
8813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8815 { (exit 1); exit 1; }; }
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h. */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8825 main ()
8829 return 0;
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8855 shlibpath_overrides_runpath=yes
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8863 rm -f conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8865 LDFLAGS=$save_LDFLAGS
8866 libdir=$save_libdir
8868 # This implies no fast_install, which is unacceptable.
8869 # Some rework will be needed to allow for fast_install
8870 # before this can be enabled.
8871 hardcode_into_libs=yes
8873 # Append ld.so.conf contents to the search path
8874 if test -f /etc/ld.so.conf; then
8875 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8879 # We used to test for /lib/ld.so.1 and disable shared libraries on
8880 # powerpc, because MkLinux only supported shared libraries with the
8881 # GNU dynamic linker. Since this was broken with cross compilers,
8882 # most powerpc-linux boxes support dynamic linking these days and
8883 # people can always --disable-shared, the test was removed, and we
8884 # assume the GNU/Linux dynamic linker is in use.
8885 dynamic_linker='GNU/Linux ld.so'
8888 netbsd*)
8889 version_type=sunos
8890 need_lib_prefix=no
8891 need_version=no
8892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8895 dynamic_linker='NetBSD (a.out) ld.so'
8896 else
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 dynamic_linker='NetBSD ld.elf_so'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
8906 newsos6)
8907 version_type=linux
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=yes
8913 *nto* | *qnx*)
8914 version_type=qnx
8915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8922 dynamic_linker='ldqnx.so'
8925 openbsd*)
8926 version_type=sunos
8927 sys_lib_dlsearch_path_spec="/usr/lib"
8928 need_lib_prefix=no
8929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8930 case $host_os in
8931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8932 *) need_version=no ;;
8933 esac
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8938 case $host_os in
8939 openbsd2.[89] | openbsd2.[89].*)
8940 shlibpath_overrides_runpath=no
8943 shlibpath_overrides_runpath=yes
8945 esac
8946 else
8947 shlibpath_overrides_runpath=yes
8951 os2*)
8952 libname_spec='$name'
8953 shrext_cmds=".dll"
8954 need_lib_prefix=no
8955 library_names_spec='$libname${shared_ext} $libname.a'
8956 dynamic_linker='OS/2 ld.exe'
8957 shlibpath_var=LIBPATH
8960 osf3* | osf4* | osf5*)
8961 version_type=osf
8962 need_lib_prefix=no
8963 need_version=no
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8971 rdos*)
8972 dynamic_linker=no
8975 solaris*)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 # ldd complains unless libraries are executable
8985 postinstall_cmds='chmod +x $lib'
8988 sunos4*)
8989 version_type=sunos
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8994 if test "$with_gnu_ld" = yes; then
8995 need_lib_prefix=no
8997 need_version=yes
9000 sysv4 | sysv4.3*)
9001 version_type=linux
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 case $host_vendor in
9006 sni)
9007 shlibpath_overrides_runpath=no
9008 need_lib_prefix=no
9009 runpath_var=LD_RUN_PATH
9011 siemens)
9012 need_lib_prefix=no
9014 motorola)
9015 need_lib_prefix=no
9016 need_version=no
9017 shlibpath_overrides_runpath=no
9018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9020 esac
9023 sysv4*MP*)
9024 if test -d /usr/nec ;then
9025 version_type=linux
9026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9027 soname_spec='$libname${shared_ext}.$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9033 version_type=freebsd-elf
9034 need_lib_prefix=no
9035 need_version=no
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9041 if test "$with_gnu_ld" = yes; then
9042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9043 else
9044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9045 case $host_os in
9046 sco3.2v5*)
9047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9049 esac
9051 sys_lib_dlsearch_path_spec='/usr/lib'
9054 tpf*)
9055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
9059 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=no
9062 hardcode_into_libs=yes
9065 uts4*)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9073 dynamic_linker=no
9075 esac
9076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9077 echo "${ECHO_T}$dynamic_linker" >&6
9078 test "$dynamic_linker" = no && can_build_shared=no
9080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9081 if test "$GCC" = yes; then
9082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9171 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9172 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9173 hardcode_action=
9174 if test -n "$hardcode_libdir_flag_spec" ||
9175 test -n "$runpath_var" ||
9176 test "X$hardcode_automatic" = "Xyes" ; then
9178 # We can hardcode non-existent directories.
9179 if test "$hardcode_direct" != no &&
9180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9181 # have to relink, otherwise we might link with an installed library
9182 # when we should be linking with a yet-to-be-installed one
9183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9184 test "$hardcode_minus_L" != no; then
9185 # Linking always hardcodes the temporary library directory.
9186 hardcode_action=relink
9187 else
9188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9189 hardcode_action=immediate
9191 else
9192 # We cannot hardcode anything, or else we can only hardcode existing
9193 # directories.
9194 hardcode_action=unsupported
9196 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9197 echo "${ECHO_T}$hardcode_action" >&6
9199 if test "$hardcode_action" = relink ||
9200 test "$inherit_rpath" = yes; then
9201 # Fast installation is not supported
9202 enable_fast_install=no
9203 elif test "$shlibpath_overrides_runpath" = yes ||
9204 test "$enable_shared" = no; then
9205 # Fast installation is not necessary
9206 enable_fast_install=needless
9214 if test "x$enable_dlopen" != xyes; then
9215 enable_dlopen=unknown
9216 enable_dlopen_self=unknown
9217 enable_dlopen_self_static=unknown
9218 else
9219 lt_cv_dlopen=no
9220 lt_cv_dlopen_libs=
9222 case $host_os in
9223 beos*)
9224 lt_cv_dlopen="load_add_on"
9225 lt_cv_dlopen_libs=
9226 lt_cv_dlopen_self=yes
9229 mingw* | pw32*)
9230 lt_cv_dlopen="LoadLibrary"
9231 lt_cv_dlopen_libs=
9234 cygwin*)
9235 lt_cv_dlopen="dlopen"
9236 lt_cv_dlopen_libs=
9239 darwin*)
9240 # if libdl is installed we need to link against it
9241 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246 ac_check_lib_save_LIBS=$LIBS
9247 LIBS="-ldl $LIBS"
9248 if test x$gcc_no_link = xyes; then
9249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9251 { (exit 1); exit 1; }; }
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h. */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9260 /* Override any gcc2 internal prototype to avoid an error. */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 /* We use char because int might match the return type of a gcc2
9265 builtin and then its argument prototype would still apply. */
9266 char dlopen ();
9268 main ()
9270 dlopen ();
9272 return 0;
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>conftest.er1
9278 ac_status=$?
9279 grep -v '^ *+' conftest.er1 >conftest.err
9280 rm -f conftest.er1
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 (eval $ac_try) 2>&5
9294 ac_status=$?
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_lib_dl_dlopen=yes
9298 else
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_lib_dl_dlopen=no
9304 rm -f conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9310 if test $ac_cv_lib_dl_dlopen = yes; then
9311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9312 else
9314 lt_cv_dlopen="dyld"
9315 lt_cv_dlopen_libs=
9316 lt_cv_dlopen_self=yes
9323 echo "$as_me:$LINENO: checking for shl_load" >&5
9324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9325 if test "${ac_cv_func_shl_load+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 if test x$gcc_no_link = xyes; then
9329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9331 { (exit 1); exit 1; }; }
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9341 #define shl_load innocuous_shl_load
9343 /* System header to define __stub macros and hopefully few prototypes,
9344 which can conflict with char shl_load (); below.
9345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9346 <limits.h> exists even on freestanding compilers. */
9348 #ifdef __STDC__
9349 # include <limits.h>
9350 #else
9351 # include <assert.h>
9352 #endif
9354 #undef shl_load
9356 /* Override any gcc2 internal prototype to avoid an error. */
9357 #ifdef __cplusplus
9358 extern "C"
9360 #endif
9361 /* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9363 char shl_load ();
9364 /* The GNU C library defines this for functions which it implements
9365 to always fail with ENOSYS. Some functions are actually named
9366 something starting with __ and the normal name is an alias. */
9367 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9368 choke me
9369 #else
9370 char (*f) () = shl_load;
9371 #endif
9372 #ifdef __cplusplus
9374 #endif
9377 main ()
9379 return f != shl_load;
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 (eval $ac_link) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_cv_func_shl_load=yes
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_cv_func_shl_load=no
9413 rm -f conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9417 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9418 if test $ac_cv_func_shl_load = yes; then
9419 lt_cv_dlopen="shl_load"
9420 else
9421 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9422 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9423 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 ac_check_lib_save_LIBS=$LIBS
9427 LIBS="-ldld $LIBS"
9428 if test x$gcc_no_link = xyes; then
9429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9431 { (exit 1); exit 1; }; }
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 /* Override any gcc2 internal prototype to avoid an error. */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char shl_load ();
9448 main ()
9450 shl_load ();
9452 return 0;
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_dld_shl_load=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_dld_shl_load=no
9484 rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9488 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9489 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9490 if test $ac_cv_lib_dld_shl_load = yes; then
9491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9492 else
9493 echo "$as_me:$LINENO: checking for dlopen" >&5
9494 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9495 if test "${ac_cv_func_dlopen+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 if test x$gcc_no_link = xyes; then
9499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9500 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9501 { (exit 1); exit 1; }; }
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define dlopen innocuous_dlopen
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char dlopen (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9524 #undef dlopen
9526 /* Override any gcc2 internal prototype to avoid an error. */
9527 #ifdef __cplusplus
9528 extern "C"
9530 #endif
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char dlopen ();
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9538 choke me
9539 #else
9540 char (*f) () = dlopen;
9541 #endif
9542 #ifdef __cplusplus
9544 #endif
9547 main ()
9549 return f != dlopen;
9551 return 0;
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_func_dlopen=yes
9577 else
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9581 ac_cv_func_dlopen=no
9583 rm -f conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9587 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9588 if test $ac_cv_func_dlopen = yes; then
9589 lt_cv_dlopen="dlopen"
9590 else
9591 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9592 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 ac_check_lib_save_LIBS=$LIBS
9597 LIBS="-ldl $LIBS"
9598 if test x$gcc_no_link = xyes; then
9599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9601 { (exit 1); exit 1; }; }
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9610 /* Override any gcc2 internal prototype to avoid an error. */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 /* We use char because int might match the return type of a gcc2
9615 builtin and then its argument prototype would still apply. */
9616 char dlopen ();
9618 main ()
9620 dlopen ();
9622 return 0;
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_cv_lib_dl_dlopen=yes
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_cv_lib_dl_dlopen=no
9654 rm -f conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_lib_save_LIBS
9658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9660 if test $ac_cv_lib_dl_dlopen = yes; then
9661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9662 else
9663 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-lsvld $LIBS"
9670 if test x$gcc_no_link = xyes; then
9671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9673 { (exit 1); exit 1; }; }
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9682 /* Override any gcc2 internal prototype to avoid an error. */
9683 #ifdef __cplusplus
9684 extern "C"
9685 #endif
9686 /* We use char because int might match the return type of a gcc2
9687 builtin and then its argument prototype would still apply. */
9688 char dlopen ();
9690 main ()
9692 dlopen ();
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag"
9707 || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_svld_dlopen=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_lib_svld_dlopen=no
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9731 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9732 if test $ac_cv_lib_svld_dlopen = yes; then
9733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9734 else
9735 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9736 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9737 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740 ac_check_lib_save_LIBS=$LIBS
9741 LIBS="-ldld $LIBS"
9742 if test x$gcc_no_link = xyes; then
9743 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9744 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9745 { (exit 1); exit 1; }; }
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any gcc2 internal prototype to avoid an error. */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9760 char dld_link ();
9762 main ()
9764 dld_link ();
9766 return 0;
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag"
9779 || test ! -s conftest.err'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 (eval $ac_try) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 (eval $ac_try) 2>&5
9788 ac_status=$?
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_cv_lib_dld_dld_link=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_lib_dld_dld_link=no
9798 rm -f conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9802 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9803 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9804 if test $ac_cv_lib_dld_dld_link = yes; then
9805 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9824 esac
9826 if test "x$lt_cv_dlopen" != xno; then
9827 enable_dlopen=yes
9828 else
9829 enable_dlopen=no
9832 case $lt_cv_dlopen in
9833 dlopen)
9834 save_CPPFLAGS="$CPPFLAGS"
9835 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9837 save_LDFLAGS="$LDFLAGS"
9838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9840 save_LIBS="$LIBS"
9841 LIBS="$lt_cv_dlopen_libs $LIBS"
9843 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9844 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9845 if test "${lt_cv_dlopen_self+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848 if test "$cross_compiling" = yes; then :
9849 lt_cv_dlopen_self=cross
9850 else
9851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9852 lt_status=$lt_dlunknown
9853 cat > conftest.$ac_ext <<_LT_EOF
9854 #line 9854 "configure"
9855 #include "confdefs.h"
9857 #if HAVE_DLFCN_H
9858 #include <dlfcn.h>
9859 #endif
9861 #include <stdio.h>
9863 #ifdef RTLD_GLOBAL
9864 # define LT_DLGLOBAL RTLD_GLOBAL
9865 #else
9866 # ifdef DL_GLOBAL
9867 # define LT_DLGLOBAL DL_GLOBAL
9868 # else
9869 # define LT_DLGLOBAL 0
9870 # endif
9871 #endif
9873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9874 find out it does not work in some platform. */
9875 #ifndef LT_DLLAZY_OR_NOW
9876 # ifdef RTLD_LAZY
9877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9878 # else
9879 # ifdef DL_LAZY
9880 # define LT_DLLAZY_OR_NOW DL_LAZY
9881 # else
9882 # ifdef RTLD_NOW
9883 # define LT_DLLAZY_OR_NOW RTLD_NOW
9884 # else
9885 # ifdef DL_NOW
9886 # define LT_DLLAZY_OR_NOW DL_NOW
9887 # else
9888 # define LT_DLLAZY_OR_NOW 0
9889 # endif
9890 # endif
9891 # endif
9892 # endif
9893 #endif
9895 #ifdef __cplusplus
9896 extern "C" void exit (int);
9897 #endif
9899 void fnord() { int i=42;}
9900 int main ()
9902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9903 int status = $lt_dlunknown;
9905 if (self)
9907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9909 /* dlclose (self); */
9911 else
9912 puts (dlerror ());
9914 exit (status);
9916 _LT_EOF
9917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918 (eval $ac_link) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9922 (./conftest; exit; ) >&5 2>/dev/null
9923 lt_status=$?
9924 case x$lt_status in
9925 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9926 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9927 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9928 esac
9929 else :
9930 # compilation failed
9931 lt_cv_dlopen_self=no
9934 rm -fr conftest*
9938 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9939 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9941 if test "x$lt_cv_dlopen_self" = xyes; then
9942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9943 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9944 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9945 if test "${lt_cv_dlopen_self_static+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 if test "$cross_compiling" = yes; then :
9949 lt_cv_dlopen_self_static=cross
9950 else
9951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9952 lt_status=$lt_dlunknown
9953 cat > conftest.$ac_ext <<_LT_EOF
9954 #line 9954 "configure"
9955 #include "confdefs.h"
9957 #if HAVE_DLFCN_H
9958 #include <dlfcn.h>
9959 #endif
9961 #include <stdio.h>
9963 #ifdef RTLD_GLOBAL
9964 # define LT_DLGLOBAL RTLD_GLOBAL
9965 #else
9966 # ifdef DL_GLOBAL
9967 # define LT_DLGLOBAL DL_GLOBAL
9968 # else
9969 # define LT_DLGLOBAL 0
9970 # endif
9971 #endif
9973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9974 find out it does not work in some platform. */
9975 #ifndef LT_DLLAZY_OR_NOW
9976 # ifdef RTLD_LAZY
9977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9978 # else
9979 # ifdef DL_LAZY
9980 # define LT_DLLAZY_OR_NOW DL_LAZY
9981 # else
9982 # ifdef RTLD_NOW
9983 # define LT_DLLAZY_OR_NOW RTLD_NOW
9984 # else
9985 # ifdef DL_NOW
9986 # define LT_DLLAZY_OR_NOW DL_NOW
9987 # else
9988 # define LT_DLLAZY_OR_NOW 0
9989 # endif
9990 # endif
9991 # endif
9992 # endif
9993 #endif
9995 #ifdef __cplusplus
9996 extern "C" void exit (int);
9997 #endif
9999 void fnord() { int i=42;}
10000 int main ()
10002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10003 int status = $lt_dlunknown;
10005 if (self)
10007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10008 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10009 /* dlclose (self); */
10011 else
10012 puts (dlerror ());
10014 exit (status);
10016 _LT_EOF
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10022 (./conftest; exit; ) >&5 2>/dev/null
10023 lt_status=$?
10024 case x$lt_status in
10025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10027 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10028 esac
10029 else :
10030 # compilation failed
10031 lt_cv_dlopen_self_static=no
10034 rm -fr conftest*
10038 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10039 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10042 CPPFLAGS="$save_CPPFLAGS"
10043 LDFLAGS="$save_LDFLAGS"
10044 LIBS="$save_LIBS"
10046 esac
10048 case $lt_cv_dlopen_self in
10049 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10050 *) enable_dlopen_self=unknown ;;
10051 esac
10053 case $lt_cv_dlopen_self_static in
10054 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10055 *) enable_dlopen_self_static=unknown ;;
10056 esac
10075 striplib=
10076 old_striplib=
10077 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10078 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10079 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10081 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10082 echo "$as_me:$LINENO: result: yes" >&5
10083 echo "${ECHO_T}yes" >&6
10084 else
10085 # FIXME - insert some real tests, host_os isn't really good enough
10086 case $host_os in
10087 darwin*)
10088 if test -n "$STRIP" ; then
10089 striplib="$STRIP -x"
10090 old_striplib="$STRIP -S"
10091 echo "$as_me:$LINENO: result: yes" >&5
10092 echo "${ECHO_T}yes" >&6
10093 else
10094 echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6
10099 echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6
10102 esac
10116 # Report which library types will actually be built
10117 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10118 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10119 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10120 echo "${ECHO_T}$can_build_shared" >&6
10122 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10123 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10124 test "$can_build_shared" = "no" && enable_shared=no
10126 # On AIX, shared libraries and static libraries use the same namespace, and
10127 # are all built from PIC.
10128 case $host_os in
10129 aix3*)
10130 test "$enable_shared" = yes && enable_static=no
10131 if test -n "$RANLIB"; then
10132 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10133 postinstall_cmds='$RANLIB $lib'
10137 aix[4-9]*)
10138 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10139 test "$enable_shared" = yes && enable_static=no
10142 esac
10143 echo "$as_me:$LINENO: result: $enable_shared" >&5
10144 echo "${ECHO_T}$enable_shared" >&6
10146 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10147 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10148 # Make sure either enable_shared or enable_static is yes.
10149 test "$enable_shared" = yes || enable_static=yes
10150 echo "$as_me:$LINENO: result: $enable_static" >&5
10151 echo "${ECHO_T}$enable_static" >&6
10157 ac_ext=c
10158 ac_cpp='$CPP $CPPFLAGS'
10159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10163 CC="$lt_save_CC"
10177 ac_config_commands="$ac_config_commands libtool"
10182 # Only expand once:
10188 # Calculate toolexeclibdir
10189 # Also toolexecdir, though it's only used in toolexeclibdir
10190 case ${version_specific_libs} in
10191 yes)
10192 # Need the gcc compiler version to know where to install libraries
10193 # and header files if --enable-version-specific-runtime-libs option
10194 # is selected.
10195 toolexecdir='$(libdir)/gcc/$(target_alias)'
10196 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10199 if test -n "$with_cross_host" &&
10200 test x"$with_cross_host" != x"no"; then
10201 # Install a library built with a cross compiler in tooldir, not libdir.
10202 toolexecdir='$(exec_prefix)/$(target_alias)'
10203 toolexeclibdir='$(toolexecdir)/lib'
10204 else
10205 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10206 toolexeclibdir='$(libdir)'
10208 multi_os_directory=`$CC -print-multi-os-directory`
10209 case $multi_os_directory in
10210 .) ;; # Avoid trailing /.
10211 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10212 esac
10214 esac
10218 if test ${multilib} = yes; then
10219 multilib_arg="--enable-multilib"
10220 else
10221 multilib_arg=
10224 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10226 cat >confcache <<\_ACEOF
10227 # This file is a shell script that caches the results of configure
10228 # tests run on this system so they can be shared between configure
10229 # scripts and configure runs, see configure's option --config-cache.
10230 # It is not useful on other systems. If it contains results you don't
10231 # want to keep, you may remove or edit it.
10233 # config.status only pays attention to the cache file if you give it
10234 # the --recheck option to rerun configure.
10236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10238 # following values.
10240 _ACEOF
10242 # The following way of writing the cache mishandles newlines in values,
10243 # but we know of no workaround that is simple, portable, and efficient.
10244 # So, don't put newlines in cache variables' values.
10245 # Ultrix sh set writes to stderr and can't be redirected directly,
10246 # and sets the high bit in the cache file unless we assign to the vars.
10248 (set) 2>&1 |
10249 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10250 *ac_space=\ *)
10251 # `set' does not quote correctly, so add quotes (double-quote
10252 # substitution turns \\\\ into \\, and sed turns \\ into \).
10253 sed -n \
10254 "s/'/'\\\\''/g;
10255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10258 # `set' quotes correctly as required by POSIX, so do not add quotes.
10259 sed -n \
10260 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10262 esac;
10264 sed '
10265 t clear
10266 : clear
10267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10268 t end
10269 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10270 : end' >>confcache
10271 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10272 if test -w $cache_file; then
10273 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10274 cat confcache >$cache_file
10275 else
10276 echo "not updating unwritable cache $cache_file"
10279 rm -f confcache
10281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10282 # Let make expand exec_prefix.
10283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10285 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10286 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10287 # trailing colons and then remove the whole line if VPATH becomes empty
10288 # (actually we leave an empty line to preserve line numbers).
10289 if test "x$srcdir" = x.; then
10290 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10291 s/:*\$(srcdir):*/:/;
10292 s/:*\${srcdir}:*/:/;
10293 s/:*@srcdir@:*/:/;
10294 s/^\([^=]*=[ ]*\):*/\1/;
10295 s/:*$//;
10296 s/^[^=]*=[ ]*$//;
10300 DEFS=-DHAVE_CONFIG_H
10302 ac_libobjs=
10303 ac_ltlibobjs=
10304 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10305 # 1. Remove the extension, and $U if already installed.
10306 ac_i=`echo "$ac_i" |
10307 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10308 # 2. Add them.
10309 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10310 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10311 done
10312 LIBOBJS=$ac_libobjs
10314 LTLIBOBJS=$ac_ltlibobjs
10317 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10318 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10319 Usually this means the macro was only invoked conditionally." >&5
10320 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10321 Usually this means the macro was only invoked conditionally." >&2;}
10322 { (exit 1); exit 1; }; }
10324 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10325 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10326 Usually this means the macro was only invoked conditionally." >&5
10327 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10328 Usually this means the macro was only invoked conditionally." >&2;}
10329 { (exit 1); exit 1; }; }
10331 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10332 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10333 Usually this means the macro was only invoked conditionally." >&5
10334 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10335 Usually this means the macro was only invoked conditionally." >&2;}
10336 { (exit 1); exit 1; }; }
10338 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10339 { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10340 Usually this means the macro was only invoked conditionally." >&5
10341 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10342 Usually this means the macro was only invoked conditionally." >&2;}
10343 { (exit 1); exit 1; }; }
10346 : ${CONFIG_STATUS=./config.status}
10347 ac_clean_files_save=$ac_clean_files
10348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10349 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10350 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10351 cat >$CONFIG_STATUS <<_ACEOF
10352 #! $SHELL
10353 # Generated by $as_me.
10354 # Run this file to recreate the current configuration.
10355 # Compiler output produced by configure, useful for debugging
10356 # configure, is in config.log if it exists.
10358 debug=false
10359 ac_cs_recheck=false
10360 ac_cs_silent=false
10361 SHELL=\${CONFIG_SHELL-$SHELL}
10362 _ACEOF
10364 cat >>$CONFIG_STATUS <<\_ACEOF
10365 ## --------------------- ##
10366 ## M4sh Initialization. ##
10367 ## --------------------- ##
10369 # Be Bourne compatible
10370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10371 emulate sh
10372 NULLCMD=:
10373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10374 # is contrary to our usage. Disable this feature.
10375 alias -g '${1+"$@"}'='"$@"'
10376 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10377 set -o posix
10379 DUALCASE=1; export DUALCASE # for MKS sh
10381 # Support unset when possible.
10382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10383 as_unset=unset
10384 else
10385 as_unset=false
10389 # Work around bugs in pre-3.0 UWIN ksh.
10390 $as_unset ENV MAIL MAILPATH
10391 PS1='$ '
10392 PS2='> '
10393 PS4='+ '
10395 # NLS nuisances.
10396 for as_var in \
10397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10399 LC_TELEPHONE LC_TIME
10401 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10402 eval $as_var=C; export $as_var
10403 else
10404 $as_unset $as_var
10406 done
10408 # Required to use basename.
10409 if expr a : '\(a\)' >/dev/null 2>&1; then
10410 as_expr=expr
10411 else
10412 as_expr=false
10415 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10416 as_basename=basename
10417 else
10418 as_basename=false
10422 # Name of the executable.
10423 as_me=`$as_basename "$0" ||
10424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10425 X"$0" : 'X\(//\)$' \| \
10426 X"$0" : 'X\(/\)$' \| \
10427 . : '\(.\)' 2>/dev/null ||
10428 echo X/"$0" |
10429 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10430 /^X\/\(\/\/\)$/{ s//\1/; q; }
10431 /^X\/\(\/\).*/{ s//\1/; q; }
10432 s/.*/./; q'`
10435 # PATH needs CR, and LINENO needs CR and PATH.
10436 # Avoid depending upon Character Ranges.
10437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10440 as_cr_digits='0123456789'
10441 as_cr_alnum=$as_cr_Letters$as_cr_digits
10443 # The user is always right.
10444 if test "${PATH_SEPARATOR+set}" != set; then
10445 echo "#! /bin/sh" >conf$$.sh
10446 echo "exit 0" >>conf$$.sh
10447 chmod +x conf$$.sh
10448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10449 PATH_SEPARATOR=';'
10450 else
10451 PATH_SEPARATOR=:
10453 rm -f conf$$.sh
10457 as_lineno_1=$LINENO
10458 as_lineno_2=$LINENO
10459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10460 test "x$as_lineno_1" != "x$as_lineno_2" &&
10461 test "x$as_lineno_3" = "x$as_lineno_2" || {
10462 # Find who we are. Look in the path if we contain no path at all
10463 # relative or not.
10464 case $0 in
10465 *[\\/]* ) as_myself=$0 ;;
10466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10472 done
10475 esac
10476 # We did not find ourselves, most probably we were run as `sh COMMAND'
10477 # in which case we are not to be found in the path.
10478 if test "x$as_myself" = x; then
10479 as_myself=$0
10481 if test ! -f "$as_myself"; then
10482 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10483 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10484 { (exit 1); exit 1; }; }
10486 case $CONFIG_SHELL in
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for as_base in sh bash ksh sh5; do
10494 case $as_dir in
10496 if ("$as_dir/$as_base" -c '
10497 as_lineno_1=$LINENO
10498 as_lineno_2=$LINENO
10499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10500 test "x$as_lineno_1" != "x$as_lineno_2" &&
10501 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10502 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10503 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10504 CONFIG_SHELL=$as_dir/$as_base
10505 export CONFIG_SHELL
10506 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10507 fi;;
10508 esac
10509 done
10510 done
10512 esac
10514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10515 # uniformly replaced by the line number. The first 'sed' inserts a
10516 # line-number line before each line; the second 'sed' does the real
10517 # work. The second script uses 'N' to pair each line-number line
10518 # with the numbered line, and appends trailing '-' during
10519 # substitution so that $LINENO is not a special case at line end.
10520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10521 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10522 sed '=' <$as_myself |
10523 sed '
10525 s,$,-,
10526 : loop
10527 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10528 t loop
10529 s,-$,,
10530 s,^['$as_cr_digits']*\n,,
10531 ' >$as_me.lineno &&
10532 chmod +x $as_me.lineno ||
10533 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10534 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10535 { (exit 1); exit 1; }; }
10537 # Don't try to exec as it changes $[0], causing all sort of problems
10538 # (the dirname of $[0] is not the place where we might find the
10539 # original and so on. Autoconf is especially sensible to this).
10540 . ./$as_me.lineno
10541 # Exit status is that of the last command.
10542 exit
10546 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10547 *c*,-n*) ECHO_N= ECHO_C='
10548 ' ECHO_T=' ' ;;
10549 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10550 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10551 esac
10553 if expr a : '\(a\)' >/dev/null 2>&1; then
10554 as_expr=expr
10555 else
10556 as_expr=false
10559 rm -f conf$$ conf$$.exe conf$$.file
10560 echo >conf$$.file
10561 if ln -s conf$$.file conf$$ 2>/dev/null; then
10562 # We could just check for DJGPP; but this test a) works b) is more generic
10563 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10564 if test -f conf$$.exe; then
10565 # Don't use ln at all; we don't have any links
10566 as_ln_s='cp -p'
10567 else
10568 as_ln_s='ln -s'
10570 elif ln conf$$.file conf$$ 2>/dev/null; then
10571 as_ln_s=ln
10572 else
10573 as_ln_s='cp -p'
10575 rm -f conf$$ conf$$.exe conf$$.file
10577 if mkdir -p . 2>/dev/null; then
10578 as_mkdir_p=:
10579 else
10580 test -d ./-p && rmdir ./-p
10581 as_mkdir_p=false
10584 as_executable_p="test -f"
10586 # Sed expression to map a string onto a valid CPP name.
10587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10589 # Sed expression to map a string onto a valid variable name.
10590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10593 # IFS
10594 # We need space, tab and new line, in precisely that order.
10595 as_nl='
10597 IFS=" $as_nl"
10599 # CDPATH.
10600 $as_unset CDPATH
10602 exec 6>&1
10604 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10605 # report actual input values of CONFIG_FILES etc. instead of their
10606 # values after options handling. Logging --version etc. is OK.
10607 exec 5>>config.log
10609 echo
10610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10611 ## Running $as_me. ##
10612 _ASBOX
10613 } >&5
10614 cat >&5 <<_CSEOF
10616 This file was extended by libssp $as_me 1.0, which was
10617 generated by GNU Autoconf 2.59. Invocation command line was
10619 CONFIG_FILES = $CONFIG_FILES
10620 CONFIG_HEADERS = $CONFIG_HEADERS
10621 CONFIG_LINKS = $CONFIG_LINKS
10622 CONFIG_COMMANDS = $CONFIG_COMMANDS
10623 $ $0 $@
10625 _CSEOF
10626 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10627 echo >&5
10628 _ACEOF
10630 # Files that config.status was made for.
10631 if test -n "$ac_config_files"; then
10632 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10635 if test -n "$ac_config_headers"; then
10636 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10639 if test -n "$ac_config_links"; then
10640 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10643 if test -n "$ac_config_commands"; then
10644 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10647 cat >>$CONFIG_STATUS <<\_ACEOF
10649 ac_cs_usage="\
10650 \`$as_me' instantiates files from templates according to the
10651 current configuration.
10653 Usage: $0 [OPTIONS] [FILE]...
10655 -h, --help print this help, then exit
10656 -V, --version print version number, then exit
10657 -q, --quiet do not print progress messages
10658 -d, --debug don't remove temporary files
10659 --recheck update $as_me by reconfiguring in the same conditions
10660 --file=FILE[:TEMPLATE]
10661 instantiate the configuration file FILE
10662 --header=FILE[:TEMPLATE]
10663 instantiate the configuration header FILE
10665 Configuration files:
10666 $config_files
10668 Configuration headers:
10669 $config_headers
10671 Configuration commands:
10672 $config_commands
10674 Report bugs to <bug-autoconf@gnu.org>."
10675 _ACEOF
10677 cat >>$CONFIG_STATUS <<_ACEOF
10678 ac_cs_version="\\
10679 libssp config.status 1.0
10680 configured by $0, generated by GNU Autoconf 2.59,
10681 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10683 Copyright (C) 2003 Free Software Foundation, Inc.
10684 This config.status script is free software; the Free Software Foundation
10685 gives unlimited permission to copy, distribute and modify it."
10686 srcdir=$srcdir
10687 INSTALL="$INSTALL"
10688 _ACEOF
10690 cat >>$CONFIG_STATUS <<\_ACEOF
10691 # If no file are specified by the user, then we need to provide default
10692 # value. By we need to know if files were specified by the user.
10693 ac_need_defaults=:
10694 while test $# != 0
10696 case $1 in
10697 --*=*)
10698 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10699 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10700 ac_shift=:
10703 ac_option=$1
10704 ac_optarg=$2
10705 ac_shift=shift
10707 *) # This is not an option, so the user has probably given explicit
10708 # arguments.
10709 ac_option=$1
10710 ac_need_defaults=false;;
10711 esac
10713 case $ac_option in
10714 # Handling of the options.
10715 _ACEOF
10716 cat >>$CONFIG_STATUS <<\_ACEOF
10717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10718 ac_cs_recheck=: ;;
10719 --version | --vers* | -V )
10720 echo "$ac_cs_version"; exit 0 ;;
10721 --he | --h)
10722 # Conflict between --help and --header
10723 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10724 Try \`$0 --help' for more information." >&5
10725 echo "$as_me: error: ambiguous option: $1
10726 Try \`$0 --help' for more information." >&2;}
10727 { (exit 1); exit 1; }; };;
10728 --help | --hel | -h )
10729 echo "$ac_cs_usage"; exit 0 ;;
10730 --debug | --d* | -d )
10731 debug=: ;;
10732 --file | --fil | --fi | --f )
10733 $ac_shift
10734 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10735 ac_need_defaults=false;;
10736 --header | --heade | --head | --hea )
10737 $ac_shift
10738 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10739 ac_need_defaults=false;;
10740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10741 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10742 ac_cs_silent=: ;;
10744 # This is an error.
10745 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10746 Try \`$0 --help' for more information." >&5
10747 echo "$as_me: error: unrecognized option: $1
10748 Try \`$0 --help' for more information." >&2;}
10749 { (exit 1); exit 1; }; } ;;
10751 *) ac_config_targets="$ac_config_targets $1" ;;
10753 esac
10754 shift
10755 done
10757 ac_configure_extra_args=
10759 if $ac_cs_silent; then
10760 exec 6>/dev/null
10761 ac_configure_extra_args="$ac_configure_extra_args --silent"
10764 _ACEOF
10765 cat >>$CONFIG_STATUS <<_ACEOF
10766 if \$ac_cs_recheck; then
10767 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10768 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10771 _ACEOF
10773 cat >>$CONFIG_STATUS <<_ACEOF
10775 # INIT-COMMANDS section.
10779 srcdir="$srcdir"
10780 host="$host"
10781 target="$target"
10782 with_multisubdir="$with_multisubdir"
10783 with_multisrctop="$with_multisrctop"
10784 with_target_subdir="$with_target_subdir"
10785 ac_configure_args="${multilib_arg} ${ac_configure_args}"
10786 multi_basedir="$multi_basedir"
10787 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10788 CC="$CC"
10789 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10792 # The HP-UX ksh and POSIX shell print the target directory to stdout
10793 # if CDPATH is set.
10794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10796 sed_quote_subst='$sed_quote_subst'
10797 double_quote_subst='$double_quote_subst'
10798 delay_variable_subst='$delay_variable_subst'
10799 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
10800 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
10801 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
10802 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
10803 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
10804 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
10805 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
10806 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
10807 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
10808 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
10809 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
10810 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
10811 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
10812 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
10813 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
10814 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
10815 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
10816 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
10817 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
10818 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
10819 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
10820 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
10821 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
10822 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
10823 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
10824 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
10825 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
10826 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10827 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
10828 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
10829 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
10830 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10831 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
10832 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
10833 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10834 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10835 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10836 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
10837 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10838 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
10839 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
10840 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
10841 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
10842 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
10843 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
10844 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
10845 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
10846 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
10847 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
10848 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
10849 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
10850 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
10851 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
10852 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
10853 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
10854 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10855 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10856 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
10857 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
10858 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10859 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10860 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
10861 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10862 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10863 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10864 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10865 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10866 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10867 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
10868 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10869 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10870 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10871 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
10872 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
10873 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
10874 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
10875 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
10876 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10877 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
10878 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
10879 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
10880 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
10881 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
10882 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10883 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10884 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10885 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10886 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
10887 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
10888 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
10889 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
10890 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
10891 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10892 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10893 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
10894 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10895 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
10896 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10897 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10898 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10899 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10900 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
10901 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
10902 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10903 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10904 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
10905 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
10906 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
10907 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
10908 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
10909 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10911 LTCC='$LTCC'
10912 LTCFLAGS='$LTCFLAGS'
10913 compiler='$compiler_DEFAULT'
10915 # Quote evaled strings.
10916 for var in SED \
10917 GREP \
10918 EGREP \
10919 FGREP \
10920 LD \
10921 NM \
10922 LN_S \
10923 lt_SP2NL \
10924 lt_NL2SP \
10925 reload_flag \
10926 deplibs_check_method \
10927 file_magic_cmd \
10928 AR \
10929 AR_FLAGS \
10930 STRIP \
10931 RANLIB \
10932 CC \
10933 CFLAGS \
10934 compiler \
10935 lt_cv_sys_global_symbol_pipe \
10936 lt_cv_sys_global_symbol_to_cdecl \
10937 lt_cv_sys_global_symbol_to_c_name_address \
10938 SHELL \
10939 ECHO \
10940 lt_prog_compiler_no_builtin_flag \
10941 lt_prog_compiler_wl \
10942 lt_prog_compiler_pic \
10943 lt_prog_compiler_static \
10944 lt_cv_prog_compiler_c_o \
10945 need_locks \
10946 shrext_cmds \
10947 export_dynamic_flag_spec \
10948 whole_archive_flag_spec \
10949 compiler_needs_object \
10950 with_gnu_ld \
10951 allow_undefined_flag \
10952 no_undefined_flag \
10953 hardcode_libdir_flag_spec \
10954 hardcode_libdir_flag_spec_ld \
10955 hardcode_libdir_separator \
10956 fix_srcfile_path \
10957 exclude_expsyms \
10958 include_expsyms \
10959 file_list_spec \
10960 variables_saved_for_relink \
10961 libname_spec \
10962 library_names_spec \
10963 soname_spec \
10964 finish_eval \
10965 old_striplib \
10966 striplib; do
10967 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10968 *[\\\\\\\`\\"\\\$]*)
10969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
10974 esac
10975 done
10977 # Double-quote double-evaled strings.
10978 for var in reload_cmds \
10979 old_postinstall_cmds \
10980 old_postuninstall_cmds \
10981 old_archive_cmds \
10982 extract_expsyms_cmds \
10983 old_archive_from_new_cmds \
10984 old_archive_from_expsyms_cmds \
10985 archive_cmds \
10986 archive_expsym_cmds \
10987 module_cmds \
10988 module_expsym_cmds \
10989 export_symbols_cmds \
10990 prelink_cmds \
10991 postinstall_cmds \
10992 postuninstall_cmds \
10993 finish_cmds \
10994 sys_lib_search_path_spec \
10995 sys_lib_dlsearch_path_spec; do
10996 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10997 *[\\\\\\\`\\"\\\$]*)
10998 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11001 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11003 esac
11004 done
11006 # Fix-up fallback echo if it was mangled by the above quoting rules.
11007 case \$lt_ECHO in
11008 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11010 esac
11012 ac_aux_dir='$ac_aux_dir'
11013 xsi_shell='$xsi_shell'
11014 lt_shell_append='$lt_shell_append'
11016 # See if we are running on zsh, and set the options which allow our
11017 # commands through without removal of \ escapes INIT.
11018 if test -n "\${ZSH_VERSION+set}" ; then
11019 setopt NO_GLOB_SUBST
11023 PACKAGE='$PACKAGE'
11024 VERSION='$VERSION'
11025 TIMESTAMP='$TIMESTAMP'
11026 RM='$RM'
11027 ofile='$ofile'
11032 _ACEOF
11036 cat >>$CONFIG_STATUS <<\_ACEOF
11037 for ac_config_target in $ac_config_targets
11039 case "$ac_config_target" in
11040 # Handling of arguments.
11041 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11042 "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11043 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11044 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11045 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11046 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11047 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11049 { (exit 1); exit 1; }; };;
11050 esac
11051 done
11053 # If the user did not use the arguments to specify the items to instantiate,
11054 # then the envvar interface is used. Set only those that are not.
11055 # We use the long form for the default assignment because of an extremely
11056 # bizarre bug on SunOS 4.1.3.
11057 if $ac_need_defaults; then
11058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11063 # Have a temporary directory for convenience. Make it in the build tree
11064 # simply because there is no reason to put it here, and in addition,
11065 # creating and moving files from /tmp can sometimes cause problems.
11066 # Create a temporary directory, and hook for its removal unless debugging.
11067 $debug ||
11069 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11070 trap '{ (exit 1); exit 1; }' 1 2 13 15
11073 # Create a (secure) tmp directory for tmp files.
11076 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11077 test -n "$tmp" && test -d "$tmp"
11078 } ||
11080 tmp=./confstat$$-$RANDOM
11081 (umask 077 && mkdir $tmp)
11082 } ||
11084 echo "$me: cannot create a temporary directory in ." >&2
11085 { (exit 1); exit 1; }
11088 _ACEOF
11090 cat >>$CONFIG_STATUS <<_ACEOF
11093 # CONFIG_FILES section.
11096 # No need to generate the scripts if there are no CONFIG_FILES.
11097 # This happens for instance when ./config.status config.h
11098 if test -n "\$CONFIG_FILES"; then
11099 # Protect against being on the right side of a sed subst in config.status.
11100 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11101 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11102 s,@SHELL@,$SHELL,;t t
11103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11109 s,@exec_prefix@,$exec_prefix,;t t
11110 s,@prefix@,$prefix,;t t
11111 s,@program_transform_name@,$program_transform_name,;t t
11112 s,@bindir@,$bindir,;t t
11113 s,@sbindir@,$sbindir,;t t
11114 s,@libexecdir@,$libexecdir,;t t
11115 s,@datadir@,$datadir,;t t
11116 s,@sysconfdir@,$sysconfdir,;t t
11117 s,@sharedstatedir@,$sharedstatedir,;t t
11118 s,@localstatedir@,$localstatedir,;t t
11119 s,@libdir@,$libdir,;t t
11120 s,@includedir@,$includedir,;t t
11121 s,@oldincludedir@,$oldincludedir,;t t
11122 s,@infodir@,$infodir,;t t
11123 s,@mandir@,$mandir,;t t
11124 s,@build_alias@,$build_alias,;t t
11125 s,@host_alias@,$host_alias,;t t
11126 s,@target_alias@,$target_alias,;t t
11127 s,@DEFS@,$DEFS,;t t
11128 s,@ECHO_C@,$ECHO_C,;t t
11129 s,@ECHO_N@,$ECHO_N,;t t
11130 s,@ECHO_T@,$ECHO_T,;t t
11131 s,@LIBS@,$LIBS,;t t
11132 s,@build@,$build,;t t
11133 s,@build_cpu@,$build_cpu,;t t
11134 s,@build_vendor@,$build_vendor,;t t
11135 s,@build_os@,$build_os,;t t
11136 s,@host@,$host,;t t
11137 s,@host_cpu@,$host_cpu,;t t
11138 s,@host_vendor@,$host_vendor,;t t
11139 s,@host_os@,$host_os,;t t
11140 s,@target@,$target,;t t
11141 s,@target_cpu@,$target_cpu,;t t
11142 s,@target_vendor@,$target_vendor,;t t
11143 s,@target_os@,$target_os,;t t
11144 s,@target_noncanonical@,$target_noncanonical,;t t
11145 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11146 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11147 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11148 s,@CYGPATH_W@,$CYGPATH_W,;t t
11149 s,@PACKAGE@,$PACKAGE,;t t
11150 s,@VERSION@,$VERSION,;t t
11151 s,@ACLOCAL@,$ACLOCAL,;t t
11152 s,@AUTOCONF@,$AUTOCONF,;t t
11153 s,@AUTOMAKE@,$AUTOMAKE,;t t
11154 s,@AUTOHEADER@,$AUTOHEADER,;t t
11155 s,@MAKEINFO@,$MAKEINFO,;t t
11156 s,@install_sh@,$install_sh,;t t
11157 s,@STRIP@,$STRIP,;t t
11158 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11159 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11160 s,@mkdir_p@,$mkdir_p,;t t
11161 s,@AWK@,$AWK,;t t
11162 s,@SET_MAKE@,$SET_MAKE,;t t
11163 s,@am__leading_dot@,$am__leading_dot,;t t
11164 s,@AMTAR@,$AMTAR,;t t
11165 s,@am__tar@,$am__tar,;t t
11166 s,@am__untar@,$am__untar,;t t
11167 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11168 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11169 s,@MAINT@,$MAINT,;t t
11170 s,@multi_basedir@,$multi_basedir,;t t
11171 s,@CC@,$CC,;t t
11172 s,@ac_ct_CC@,$ac_ct_CC,;t t
11173 s,@EXEEXT@,$EXEEXT,;t t
11174 s,@OBJEXT@,$OBJEXT,;t t
11175 s,@DEPDIR@,$DEPDIR,;t t
11176 s,@am__include@,$am__include,;t t
11177 s,@am__quote@,$am__quote,;t t
11178 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11179 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11180 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11181 s,@CCDEPMODE@,$CCDEPMODE,;t t
11182 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11183 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11184 s,@CFLAGS@,$CFLAGS,;t t
11185 s,@CPP@,$CPP,;t t
11186 s,@CPPFLAGS@,$CPPFLAGS,;t t
11187 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
11188 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
11189 s,@EGREP@,$EGREP,;t t
11190 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
11191 s,@LIBTOOL@,$LIBTOOL,;t t
11192 s,@SED@,$SED,;t t
11193 s,@FGREP@,$FGREP,;t t
11194 s,@GREP@,$GREP,;t t
11195 s,@LD@,$LD,;t t
11196 s,@DUMPBIN@,$DUMPBIN,;t t
11197 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11198 s,@NM@,$NM,;t t
11199 s,@LN_S@,$LN_S,;t t
11200 s,@AR@,$AR,;t t
11201 s,@ac_ct_AR@,$ac_ct_AR,;t t
11202 s,@RANLIB@,$RANLIB,;t t
11203 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11204 s,@lt_ECHO@,$lt_ECHO,;t t
11205 s,@enable_shared@,$enable_shared,;t t
11206 s,@enable_static@,$enable_static,;t t
11207 s,@toolexecdir@,$toolexecdir,;t t
11208 s,@toolexeclibdir@,$toolexeclibdir,;t t
11209 s,@LIBOBJS@,$LIBOBJS,;t t
11210 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11211 CEOF
11213 _ACEOF
11215 cat >>$CONFIG_STATUS <<\_ACEOF
11216 # Split the substitutions into bite-sized pieces for seds with
11217 # small command number limits, like on Digital OSF/1 and HP-UX.
11218 ac_max_sed_lines=48
11219 ac_sed_frag=1 # Number of current file.
11220 ac_beg=1 # First line for current file.
11221 ac_end=$ac_max_sed_lines # Line after last line for current file.
11222 ac_more_lines=:
11223 ac_sed_cmds=
11224 while $ac_more_lines; do
11225 if test $ac_beg -gt 1; then
11226 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11227 else
11228 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11230 if test ! -s $tmp/subs.frag; then
11231 ac_more_lines=false
11232 else
11233 # The purpose of the label and of the branching condition is to
11234 # speed up the sed processing (if there are no `@' at all, there
11235 # is no need to browse any of the substitutions).
11236 # These are the two extra sed commands mentioned above.
11237 (echo ':t
11238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11239 if test -z "$ac_sed_cmds"; then
11240 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11241 else
11242 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11244 ac_sed_frag=`expr $ac_sed_frag + 1`
11245 ac_beg=$ac_end
11246 ac_end=`expr $ac_end + $ac_max_sed_lines`
11248 done
11249 if test -z "$ac_sed_cmds"; then
11250 ac_sed_cmds=cat
11252 fi # test -n "$CONFIG_FILES"
11254 _ACEOF
11255 cat >>$CONFIG_STATUS <<\_ACEOF
11256 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11258 case $ac_file in
11259 - | *:- | *:-:* ) # input from stdin
11260 cat >$tmp/stdin
11261 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11263 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11265 * ) ac_file_in=$ac_file.in ;;
11266 esac
11268 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11269 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11270 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11271 X"$ac_file" : 'X\(//\)[^/]' \| \
11272 X"$ac_file" : 'X\(//\)$' \| \
11273 X"$ac_file" : 'X\(/\)' \| \
11274 . : '\(.\)' 2>/dev/null ||
11275 echo X"$ac_file" |
11276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11278 /^X\(\/\/\)$/{ s//\1/; q; }
11279 /^X\(\/\).*/{ s//\1/; q; }
11280 s/.*/./; q'`
11281 { if $as_mkdir_p; then
11282 mkdir -p "$ac_dir"
11283 else
11284 as_dir="$ac_dir"
11285 as_dirs=
11286 while test ! -d "$as_dir"; do
11287 as_dirs="$as_dir $as_dirs"
11288 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11290 X"$as_dir" : 'X\(//\)[^/]' \| \
11291 X"$as_dir" : 'X\(//\)$' \| \
11292 X"$as_dir" : 'X\(/\)' \| \
11293 . : '\(.\)' 2>/dev/null ||
11294 echo X"$as_dir" |
11295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11297 /^X\(\/\/\)$/{ s//\1/; q; }
11298 /^X\(\/\).*/{ s//\1/; q; }
11299 s/.*/./; q'`
11300 done
11301 test ! -n "$as_dirs" || mkdir $as_dirs
11302 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11303 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11304 { (exit 1); exit 1; }; }; }
11306 ac_builddir=.
11308 if test "$ac_dir" != .; then
11309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11310 # A "../" for each directory in $ac_dir_suffix.
11311 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11312 else
11313 ac_dir_suffix= ac_top_builddir=
11316 case $srcdir in
11317 .) # No --srcdir option. We are building in place.
11318 ac_srcdir=.
11319 if test -z "$ac_top_builddir"; then
11320 ac_top_srcdir=.
11321 else
11322 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11323 fi ;;
11324 [\\/]* | ?:[\\/]* ) # Absolute path.
11325 ac_srcdir=$srcdir$ac_dir_suffix;
11326 ac_top_srcdir=$srcdir ;;
11327 *) # Relative path.
11328 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11329 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11330 esac
11332 # Do not use `cd foo && pwd` to compute absolute paths, because
11333 # the directories may not exist.
11334 case `pwd` in
11335 .) ac_abs_builddir="$ac_dir";;
11337 case "$ac_dir" in
11338 .) ac_abs_builddir=`pwd`;;
11339 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11340 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11341 esac;;
11342 esac
11343 case $ac_abs_builddir in
11344 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11346 case ${ac_top_builddir}. in
11347 .) ac_abs_top_builddir=$ac_abs_builddir;;
11348 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11349 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11350 esac;;
11351 esac
11352 case $ac_abs_builddir in
11353 .) ac_abs_srcdir=$ac_srcdir;;
11355 case $ac_srcdir in
11356 .) ac_abs_srcdir=$ac_abs_builddir;;
11357 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11358 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11359 esac;;
11360 esac
11361 case $ac_abs_builddir in
11362 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11364 case $ac_top_srcdir in
11365 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11366 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11367 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11368 esac;;
11369 esac
11372 case $INSTALL in
11373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11374 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11375 esac
11377 if test x"$ac_file" != x-; then
11378 { echo "$as_me:$LINENO: creating $ac_file" >&5
11379 echo "$as_me: creating $ac_file" >&6;}
11380 rm -f "$ac_file"
11382 # Let's still pretend it is `configure' which instantiates (i.e., don't
11383 # use $as_me), people would be surprised to read:
11384 # /* config.h. Generated by config.status. */
11385 if test x"$ac_file" = x-; then
11386 configure_input=
11387 else
11388 configure_input="$ac_file. "
11390 configure_input=$configure_input"Generated from `echo $ac_file_in |
11391 sed 's,.*/,,'` by configure."
11393 # First look for the input files in the build tree, otherwise in the
11394 # src tree.
11395 ac_file_inputs=`IFS=:
11396 for f in $ac_file_in; do
11397 case $f in
11398 -) echo $tmp/stdin ;;
11399 [\\/$]*)
11400 # Absolute (can't be DOS-style, as IFS=:)
11401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11402 echo "$as_me: error: cannot find input file: $f" >&2;}
11403 { (exit 1); exit 1; }; }
11404 echo "$f";;
11405 *) # Relative
11406 if test -f "$f"; then
11407 # Build tree
11408 echo "$f"
11409 elif test -f "$srcdir/$f"; then
11410 # Source tree
11411 echo "$srcdir/$f"
11412 else
11413 # /dev/null tree
11414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11415 echo "$as_me: error: cannot find input file: $f" >&2;}
11416 { (exit 1); exit 1; }; }
11417 fi;;
11418 esac
11419 done` || { (exit 1); exit 1; }
11420 _ACEOF
11421 cat >>$CONFIG_STATUS <<_ACEOF
11422 sed "$ac_vpsub
11423 $extrasub
11424 _ACEOF
11425 cat >>$CONFIG_STATUS <<\_ACEOF
11427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11428 s,@configure_input@,$configure_input,;t t
11429 s,@srcdir@,$ac_srcdir,;t t
11430 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11431 s,@top_srcdir@,$ac_top_srcdir,;t t
11432 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11433 s,@builddir@,$ac_builddir,;t t
11434 s,@abs_builddir@,$ac_abs_builddir,;t t
11435 s,@top_builddir@,$ac_top_builddir,;t t
11436 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11437 s,@INSTALL@,$ac_INSTALL,;t t
11438 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11439 rm -f $tmp/stdin
11440 if test x"$ac_file" != x-; then
11441 mv $tmp/out $ac_file
11442 else
11443 cat $tmp/out
11444 rm -f $tmp/out
11447 done
11448 _ACEOF
11449 cat >>$CONFIG_STATUS <<\_ACEOF
11452 # CONFIG_HEADER section.
11455 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11456 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11458 # ac_d sets the value in "#define NAME VALUE" lines.
11459 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11460 ac_dB='[ ].*$,\1#\2'
11461 ac_dC=' '
11462 ac_dD=',;t'
11463 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11464 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11465 ac_uB='$,\1#\2define\3'
11466 ac_uC=' '
11467 ac_uD=',;t'
11469 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11471 case $ac_file in
11472 - | *:- | *:-:* ) # input from stdin
11473 cat >$tmp/stdin
11474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11478 * ) ac_file_in=$ac_file.in ;;
11479 esac
11481 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11482 echo "$as_me: creating $ac_file" >&6;}
11484 # First look for the input files in the build tree, otherwise in the
11485 # src tree.
11486 ac_file_inputs=`IFS=:
11487 for f in $ac_file_in; do
11488 case $f in
11489 -) echo $tmp/stdin ;;
11490 [\\/$]*)
11491 # Absolute (can't be DOS-style, as IFS=:)
11492 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11493 echo "$as_me: error: cannot find input file: $f" >&2;}
11494 { (exit 1); exit 1; }; }
11495 # Do quote $f, to prevent DOS paths from being IFS'd.
11496 echo "$f";;
11497 *) # Relative
11498 if test -f "$f"; then
11499 # Build tree
11500 echo "$f"
11501 elif test -f "$srcdir/$f"; then
11502 # Source tree
11503 echo "$srcdir/$f"
11504 else
11505 # /dev/null tree
11506 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11507 echo "$as_me: error: cannot find input file: $f" >&2;}
11508 { (exit 1); exit 1; }; }
11509 fi;;
11510 esac
11511 done` || { (exit 1); exit 1; }
11512 # Remove the trailing spaces.
11513 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11515 _ACEOF
11517 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11518 # `conftest.undefs', that substitutes the proper values into
11519 # config.h.in to produce config.h. The first handles `#define'
11520 # templates, and the second `#undef' templates.
11521 # And first: Protect against being on the right side of a sed subst in
11522 # config.status. Protect against being in an unquoted here document
11523 # in config.status.
11524 rm -f conftest.defines conftest.undefs
11525 # Using a here document instead of a string reduces the quoting nightmare.
11526 # Putting comments in sed scripts is not portable.
11528 # `end' is used to avoid that the second main sed command (meant for
11529 # 0-ary CPP macros) applies to n-ary macro definitions.
11530 # See the Autoconf documentation for `clear'.
11531 cat >confdef2sed.sed <<\_ACEOF
11532 s/[\\&,]/\\&/g
11533 s,[\\$`],\\&,g
11534 t clear
11535 : clear
11536 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11537 t end
11538 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11539 : end
11540 _ACEOF
11541 # If some macros were called several times there might be several times
11542 # the same #defines, which is useless. Nevertheless, we may not want to
11543 # sort them, since we want the *last* AC-DEFINE to be honored.
11544 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11545 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11546 rm -f confdef2sed.sed
11548 # This sed command replaces #undef with comments. This is necessary, for
11549 # example, in the case of _POSIX_SOURCE, which is predefined and required
11550 # on some systems where configure will not decide to define it.
11551 cat >>conftest.undefs <<\_ACEOF
11552 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11553 _ACEOF
11555 # Break up conftest.defines because some shells have a limit on the size
11556 # of here documents, and old seds have small limits too (100 cmds).
11557 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11558 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11559 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11560 echo ' :' >>$CONFIG_STATUS
11561 rm -f conftest.tail
11562 while grep . conftest.defines >/dev/null
11564 # Write a limited-size here document to $tmp/defines.sed.
11565 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11566 # Speed up: don't consider the non `#define' lines.
11567 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11568 # Work around the forget-to-reset-the-flag bug.
11569 echo 't clr' >>$CONFIG_STATUS
11570 echo ': clr' >>$CONFIG_STATUS
11571 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11572 echo 'CEOF
11573 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11574 rm -f $tmp/in
11575 mv $tmp/out $tmp/in
11576 ' >>$CONFIG_STATUS
11577 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11578 rm -f conftest.defines
11579 mv conftest.tail conftest.defines
11580 done
11581 rm -f conftest.defines
11582 echo ' fi # grep' >>$CONFIG_STATUS
11583 echo >>$CONFIG_STATUS
11585 # Break up conftest.undefs because some shells have a limit on the size
11586 # of here documents, and old seds have small limits too (100 cmds).
11587 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11588 rm -f conftest.tail
11589 while grep . conftest.undefs >/dev/null
11591 # Write a limited-size here document to $tmp/undefs.sed.
11592 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11593 # Speed up: don't consider the non `#undef'
11594 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11595 # Work around the forget-to-reset-the-flag bug.
11596 echo 't clr' >>$CONFIG_STATUS
11597 echo ': clr' >>$CONFIG_STATUS
11598 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11599 echo 'CEOF
11600 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11601 rm -f $tmp/in
11602 mv $tmp/out $tmp/in
11603 ' >>$CONFIG_STATUS
11604 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11605 rm -f conftest.undefs
11606 mv conftest.tail conftest.undefs
11607 done
11608 rm -f conftest.undefs
11610 cat >>$CONFIG_STATUS <<\_ACEOF
11611 # Let's still pretend it is `configure' which instantiates (i.e., don't
11612 # use $as_me), people would be surprised to read:
11613 # /* config.h. Generated by config.status. */
11614 if test x"$ac_file" = x-; then
11615 echo "/* Generated by configure. */" >$tmp/config.h
11616 else
11617 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11619 cat $tmp/in >>$tmp/config.h
11620 rm -f $tmp/in
11621 if test x"$ac_file" != x-; then
11622 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11623 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11624 echo "$as_me: $ac_file is unchanged" >&6;}
11625 else
11626 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11628 X"$ac_file" : 'X\(//\)[^/]' \| \
11629 X"$ac_file" : 'X\(//\)$' \| \
11630 X"$ac_file" : 'X\(/\)' \| \
11631 . : '\(.\)' 2>/dev/null ||
11632 echo X"$ac_file" |
11633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11635 /^X\(\/\/\)$/{ s//\1/; q; }
11636 /^X\(\/\).*/{ s//\1/; q; }
11637 s/.*/./; q'`
11638 { if $as_mkdir_p; then
11639 mkdir -p "$ac_dir"
11640 else
11641 as_dir="$ac_dir"
11642 as_dirs=
11643 while test ! -d "$as_dir"; do
11644 as_dirs="$as_dir $as_dirs"
11645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11647 X"$as_dir" : 'X\(//\)[^/]' \| \
11648 X"$as_dir" : 'X\(//\)$' \| \
11649 X"$as_dir" : 'X\(/\)' \| \
11650 . : '\(.\)' 2>/dev/null ||
11651 echo X"$as_dir" |
11652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11654 /^X\(\/\/\)$/{ s//\1/; q; }
11655 /^X\(\/\).*/{ s//\1/; q; }
11656 s/.*/./; q'`
11657 done
11658 test ! -n "$as_dirs" || mkdir $as_dirs
11659 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11661 { (exit 1); exit 1; }; }; }
11663 rm -f $ac_file
11664 mv $tmp/config.h $ac_file
11666 else
11667 cat $tmp/config.h
11668 rm -f $tmp/config.h
11670 # Compute $ac_file's index in $config_headers.
11671 _am_stamp_count=1
11672 for _am_header in $config_headers :; do
11673 case $_am_header in
11674 $ac_file | $ac_file:* )
11675 break ;;
11677 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11678 esac
11679 done
11680 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11681 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11682 X$ac_file : 'X\(//\)[^/]' \| \
11683 X$ac_file : 'X\(//\)$' \| \
11684 X$ac_file : 'X\(/\)' \| \
11685 . : '\(.\)' 2>/dev/null ||
11686 echo X$ac_file |
11687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11689 /^X\(\/\/\)$/{ s//\1/; q; }
11690 /^X\(\/\).*/{ s//\1/; q; }
11691 s/.*/./; q'`/stamp-h$_am_stamp_count
11692 done
11693 _ACEOF
11694 cat >>$CONFIG_STATUS <<\_ACEOF
11697 # CONFIG_COMMANDS section.
11699 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11700 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11701 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11702 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11703 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11704 X"$ac_dest" : 'X\(//\)[^/]' \| \
11705 X"$ac_dest" : 'X\(//\)$' \| \
11706 X"$ac_dest" : 'X\(/\)' \| \
11707 . : '\(.\)' 2>/dev/null ||
11708 echo X"$ac_dest" |
11709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11711 /^X\(\/\/\)$/{ s//\1/; q; }
11712 /^X\(\/\).*/{ s//\1/; q; }
11713 s/.*/./; q'`
11714 { if $as_mkdir_p; then
11715 mkdir -p "$ac_dir"
11716 else
11717 as_dir="$ac_dir"
11718 as_dirs=
11719 while test ! -d "$as_dir"; do
11720 as_dirs="$as_dir $as_dirs"
11721 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11723 X"$as_dir" : 'X\(//\)[^/]' \| \
11724 X"$as_dir" : 'X\(//\)$' \| \
11725 X"$as_dir" : 'X\(/\)' \| \
11726 . : '\(.\)' 2>/dev/null ||
11727 echo X"$as_dir" |
11728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11730 /^X\(\/\/\)$/{ s//\1/; q; }
11731 /^X\(\/\).*/{ s//\1/; q; }
11732 s/.*/./; q'`
11733 done
11734 test ! -n "$as_dirs" || mkdir $as_dirs
11735 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11737 { (exit 1); exit 1; }; }; }
11739 ac_builddir=.
11741 if test "$ac_dir" != .; then
11742 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11743 # A "../" for each directory in $ac_dir_suffix.
11744 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11745 else
11746 ac_dir_suffix= ac_top_builddir=
11749 case $srcdir in
11750 .) # No --srcdir option. We are building in place.
11751 ac_srcdir=.
11752 if test -z "$ac_top_builddir"; then
11753 ac_top_srcdir=.
11754 else
11755 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11756 fi ;;
11757 [\\/]* | ?:[\\/]* ) # Absolute path.
11758 ac_srcdir=$srcdir$ac_dir_suffix;
11759 ac_top_srcdir=$srcdir ;;
11760 *) # Relative path.
11761 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11762 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11763 esac
11765 # Do not use `cd foo && pwd` to compute absolute paths, because
11766 # the directories may not exist.
11767 case `pwd` in
11768 .) ac_abs_builddir="$ac_dir";;
11770 case "$ac_dir" in
11771 .) ac_abs_builddir=`pwd`;;
11772 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11773 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11774 esac;;
11775 esac
11776 case $ac_abs_builddir in
11777 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11779 case ${ac_top_builddir}. in
11780 .) ac_abs_top_builddir=$ac_abs_builddir;;
11781 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11782 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11783 esac;;
11784 esac
11785 case $ac_abs_builddir in
11786 .) ac_abs_srcdir=$ac_srcdir;;
11788 case $ac_srcdir in
11789 .) ac_abs_srcdir=$ac_abs_builddir;;
11790 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11791 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11792 esac;;
11793 esac
11794 case $ac_abs_builddir in
11795 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11797 case $ac_top_srcdir in
11798 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11799 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11800 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11801 esac;;
11802 esac
11805 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11806 echo "$as_me: executing $ac_dest commands" >&6;}
11807 case $ac_dest in
11808 default-1 )
11809 # Only add multilib support code if we just rebuilt the top-level
11810 # Makefile.
11811 case " $CONFIG_FILES " in
11812 *" Makefile "*)
11813 ac_file=Makefile . ${multi_basedir}/config-ml.in
11815 esac ;;
11816 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11817 # Strip MF so we end up with the name of the file.
11818 mf=`echo "$mf" | sed -e 's/:.*$//'`
11819 # Check whether this is an Automake generated Makefile or not.
11820 # We used to match only the files named `Makefile.in', but
11821 # some people rename them; so instead we look at the file content.
11822 # Grep'ing the first line is not enough: some people post-process
11823 # each Makefile.in and add a new line on top of each file to say so.
11824 # So let's grep whole file.
11825 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11826 dirpart=`(dirname "$mf") 2>/dev/null ||
11827 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11828 X"$mf" : 'X\(//\)[^/]' \| \
11829 X"$mf" : 'X\(//\)$' \| \
11830 X"$mf" : 'X\(/\)' \| \
11831 . : '\(.\)' 2>/dev/null ||
11832 echo X"$mf" |
11833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11835 /^X\(\/\/\)$/{ s//\1/; q; }
11836 /^X\(\/\).*/{ s//\1/; q; }
11837 s/.*/./; q'`
11838 else
11839 continue
11841 # Extract the definition of DEPDIR, am__include, and am__quote
11842 # from the Makefile without running `make'.
11843 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11844 test -z "$DEPDIR" && continue
11845 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11846 test -z "am__include" && continue
11847 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11848 # When using ansi2knr, U may be empty or an underscore; expand it
11849 U=`sed -n 's/^U = //p' < "$mf"`
11850 # Find all dependency output files, they are included files with
11851 # $(DEPDIR) in their names. We invoke sed twice because it is the
11852 # simplest approach to changing $(DEPDIR) to its actual value in the
11853 # expansion.
11854 for file in `sed -n "
11855 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11856 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11857 # Make sure the directory exists.
11858 test -f "$dirpart/$file" && continue
11859 fdir=`(dirname "$file") 2>/dev/null ||
11860 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11861 X"$file" : 'X\(//\)[^/]' \| \
11862 X"$file" : 'X\(//\)$' \| \
11863 X"$file" : 'X\(/\)' \| \
11864 . : '\(.\)' 2>/dev/null ||
11865 echo X"$file" |
11866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11868 /^X\(\/\/\)$/{ s//\1/; q; }
11869 /^X\(\/\).*/{ s//\1/; q; }
11870 s/.*/./; q'`
11871 { if $as_mkdir_p; then
11872 mkdir -p $dirpart/$fdir
11873 else
11874 as_dir=$dirpart/$fdir
11875 as_dirs=
11876 while test ! -d "$as_dir"; do
11877 as_dirs="$as_dir $as_dirs"
11878 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11880 X"$as_dir" : 'X\(//\)[^/]' \| \
11881 X"$as_dir" : 'X\(//\)$' \| \
11882 X"$as_dir" : 'X\(/\)' \| \
11883 . : '\(.\)' 2>/dev/null ||
11884 echo X"$as_dir" |
11885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11887 /^X\(\/\/\)$/{ s//\1/; q; }
11888 /^X\(\/\).*/{ s//\1/; q; }
11889 s/.*/./; q'`
11890 done
11891 test ! -n "$as_dirs" || mkdir $as_dirs
11892 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11893 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11894 { (exit 1); exit 1; }; }; }
11896 # echo "creating $dirpart/$file"
11897 echo '# dummy' > "$dirpart/$file"
11898 done
11899 done
11901 libtool )
11903 # See if we are running on zsh, and set the options which allow our
11904 # commands through without removal of \ escapes.
11905 if test -n "${ZSH_VERSION+set}" ; then
11906 setopt NO_GLOB_SUBST
11909 cfgfile="${ofile}T"
11910 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11911 $RM "$cfgfile"
11913 cat <<_LT_EOF >> "$cfgfile"
11914 #! $SHELL
11916 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11917 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
11918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11921 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11922 # 2006, 2007 Free Software Foundation, Inc.
11924 # This file is part of GNU Libtool:
11925 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11927 # This program is free software; you can redistribute it and/or modify
11928 # it under the terms of the GNU General Public License as published by
11929 # the Free Software Foundation; either version 2 of the License, or
11930 # (at your option) any later version.
11932 # This program is distributed in the hope that it will be useful, but
11933 # WITHOUT ANY WARRANTY; without even the implied warranty of
11934 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11935 # General Public License for more details.
11937 # You should have received a copy of the GNU General Public License
11938 # along with this program; if not, a copy can be downloaded from
11939 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
11940 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
11941 # MA 02110-1301, USA.
11943 # As a special exception to the GNU General Public License, if you
11944 # distribute this file as part of a program that contains a
11945 # configuration script generated by Autoconf, you may include it under
11946 # the same distribution terms that you use for the rest of that program.
11949 # The names of the tagged configurations supported by this script.
11950 available_tags=""
11952 # ### BEGIN LIBTOOL CONFIG
11954 # Which release of libtool.m4 was used?
11955 macro_version=$macro_version
11956 macro_revision=$macro_revision
11958 # Whether or not to build shared libraries.
11959 build_libtool_libs=$enable_shared
11961 # Whether or not to build static libraries.
11962 build_old_libs=$enable_static
11964 # What type of objects to build.
11965 pic_mode=$pic_mode
11967 # Whether or not to optimize for fast installation.
11968 fast_install=$enable_fast_install
11970 # The host system.
11971 host_alias=$host_alias
11972 host=$host
11973 host_os=$host_os
11975 # The build system.
11976 build_alias=$build_alias
11977 build=$build
11978 build_os=$build_os
11980 # A sed program that does not truncate output.
11981 SED=$lt_SED
11983 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11984 Xsed="\$SED -e 1s/^X//"
11986 # A grep program that handles long lines.
11987 GREP=$lt_GREP
11989 # An ERE matcher.
11990 EGREP=$lt_EGREP
11992 # A literal string matcher.
11993 FGREP=$lt_FGREP
11995 # A BSD- or MS-compatible name lister.
11996 NM=$lt_NM
11998 # Whether we need soft or hard links.
11999 LN_S=$lt_LN_S
12001 # What is the maximum length of a command?
12002 max_cmd_len=$max_cmd_len
12004 # Object file suffix (normally "o").
12005 objext=$ac_objext
12007 # Executable file suffix (normally "").
12008 exeext=$exeext
12010 # whether the shell understands "unset".
12011 lt_unset=$lt_unset
12013 # turn spaces into newlines.
12014 SP2NL=$lt_lt_SP2NL
12016 # turn newlines into spaces.
12017 NL2SP=$lt_lt_NL2SP
12019 # How to create reloadable object files.
12020 reload_flag=$lt_reload_flag
12021 reload_cmds=$lt_reload_cmds
12023 # Method to check whether dependent libraries are shared objects.
12024 deplibs_check_method=$lt_deplibs_check_method
12026 # Command to use when deplibs_check_method == "file_magic".
12027 file_magic_cmd=$lt_file_magic_cmd
12029 # The archiver.
12030 AR=$lt_AR
12031 AR_FLAGS=$lt_AR_FLAGS
12033 # A symbol stripping program.
12034 STRIP=$lt_STRIP
12036 # Commands used to install an old-style archive.
12037 RANLIB=$lt_RANLIB
12038 old_postinstall_cmds=$lt_old_postinstall_cmds
12039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12041 # A C compiler.
12042 LTCC=$lt_CC
12044 # LTCC compiler flags.
12045 LTCFLAGS=$lt_CFLAGS
12047 # Take the output of nm and produce a listing of raw symbols and C names.
12048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12050 # Transform the output of nm in a proper C declaration.
12051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12053 # Transform the output of nm in a C name address pair.
12054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12056 # The name of the directory that contains temporary libtool files.
12057 objdir=$objdir
12059 # Shell to use when invoking shell scripts.
12060 SHELL=$lt_SHELL
12062 # An echo program that does not interpret backslashes.
12063 ECHO=$lt_ECHO
12065 # Used to examine libraries when file_magic_cmd begins with "file".
12066 MAGIC_CMD=$MAGIC_CMD
12068 # Must we lock files when doing compilation?
12069 need_locks=$lt_need_locks
12071 # Old archive suffix (normally "a").
12072 libext=$libext
12074 # Shared library suffix (normally ".so").
12075 shrext_cmds=$lt_shrext_cmds
12077 # The commands to extract the exported symbol list from a shared archive.
12078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12080 # Variables whose values should be saved in libtool wrapper scripts and
12081 # restored at link time.
12082 variables_saved_for_relink=$lt_variables_saved_for_relink
12084 # Do we need the "lib" prefix for modules?
12085 need_lib_prefix=$need_lib_prefix
12087 # Do we need a version for libraries?
12088 need_version=$need_version
12090 # Library versioning type.
12091 version_type=$version_type
12093 # Shared library runtime path variable.
12094 runpath_var=$runpath_var
12096 # Shared library path variable.
12097 shlibpath_var=$shlibpath_var
12099 # Is shlibpath searched before the hard-coded library search path?
12100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12102 # Format of library name prefix.
12103 libname_spec=$lt_libname_spec
12105 # List of archive names. First name is the real one, the rest are links.
12106 # The last name is the one that the linker finds with -lNAME
12107 library_names_spec=$lt_library_names_spec
12109 # The coded name of the library, if different from the real name.
12110 soname_spec=$lt_soname_spec
12112 # Command to use after installation of a shared archive.
12113 postinstall_cmds=$lt_postinstall_cmds
12115 # Command to use after uninstallation of a shared archive.
12116 postuninstall_cmds=$lt_postuninstall_cmds
12118 # Commands used to finish a libtool library installation in a directory.
12119 finish_cmds=$lt_finish_cmds
12121 # As "finish_cmds", except a single script fragment to be evaled but
12122 # not shown.
12123 finish_eval=$lt_finish_eval
12125 # Whether we should hardcode library paths into libraries.
12126 hardcode_into_libs=$hardcode_into_libs
12128 # Compile-time system search path for libraries.
12129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12131 # Run-time system search path for libraries.
12132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12134 # Whether dlopen is supported.
12135 dlopen_support=$enable_dlopen
12137 # Whether dlopen of programs is supported.
12138 dlopen_self=$enable_dlopen_self
12140 # Whether dlopen of statically linked programs is supported.
12141 dlopen_self_static=$enable_dlopen_self_static
12143 # Commands to strip libraries.
12144 old_striplib=$lt_old_striplib
12145 striplib=$lt_striplib
12148 # The linker used to build libraries.
12149 LD=$lt_LD
12151 # Commands used to build an old-style archive.
12152 old_archive_cmds=$lt_old_archive_cmds
12154 # A language specific compiler.
12155 CC=$lt_compiler
12157 # Is the compiler the GNU compiler?
12158 with_gcc=$GCC
12160 # Compiler flag to turn off builtin functions.
12161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12163 # How to pass a linker flag through the compiler.
12164 wl=$lt_lt_prog_compiler_wl
12166 # Additional compiler flags for building library objects.
12167 pic_flag=$lt_lt_prog_compiler_pic
12169 # Compiler flag to prevent dynamic linking.
12170 link_static_flag=$lt_lt_prog_compiler_static
12172 # Does compiler simultaneously support -c and -o options?
12173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12175 # Whether or not to add -lc for building shared libraries.
12176 build_libtool_need_lc=$archive_cmds_need_lc
12178 # Whether or not to disallow shared libs when runtime libs are static.
12179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12181 # Compiler flag to allow reflexive dlopens.
12182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12184 # Compiler flag to generate shared objects directly from archives.
12185 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12187 # Whether the compiler copes with passing no objects directly.
12188 compiler_needs_object=$lt_compiler_needs_object
12190 # Create an old-style archive from a shared archive.
12191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12193 # Create a temporary old-style archive to link instead of a shared archive.
12194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12196 # Commands used to build a shared archive.
12197 archive_cmds=$lt_archive_cmds
12198 archive_expsym_cmds=$lt_archive_expsym_cmds
12200 # Commands used to build a loadable module if different from building
12201 # a shared archive.
12202 module_cmds=$lt_module_cmds
12203 module_expsym_cmds=$lt_module_expsym_cmds
12205 # Whether we are building with GNU ld or not.
12206 with_gnu_ld=$lt_with_gnu_ld
12208 # Flag that allows shared libraries with undefined symbols to be built.
12209 allow_undefined_flag=$lt_allow_undefined_flag
12211 # Flag that enforces no undefined symbols.
12212 no_undefined_flag=$lt_no_undefined_flag
12214 # Flag to hardcode \$libdir into a binary during linking.
12215 # This must work even if \$libdir does not exist
12216 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12218 # If ld is used when linking, flag to hardcode \$libdir into a binary
12219 # during linking. This must work even if \$libdir does not exist.
12220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12222 # Whether we need a single "-rpath" flag with a separated argument.
12223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12226 # DIR into the resulting binary.
12227 hardcode_direct=$hardcode_direct
12229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12230 # DIR into the resulting binary and the resulting library dependency is
12231 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12232 # library is relocated.
12233 hardcode_direct_absolute=$hardcode_direct_absolute
12235 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12236 # into the resulting binary.
12237 hardcode_minus_L=$hardcode_minus_L
12239 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12240 # into the resulting binary.
12241 hardcode_shlibpath_var=$hardcode_shlibpath_var
12243 # Set to "yes" if building a shared library automatically hardcodes DIR
12244 # into the library and all subsequent libraries and executables linked
12245 # against it.
12246 hardcode_automatic=$hardcode_automatic
12248 # Set to yes if linker adds runtime paths of dependent libraries
12249 # to runtime path list.
12250 inherit_rpath=$inherit_rpath
12252 # Whether libtool must link a program against all its dependency libraries.
12253 link_all_deplibs=$link_all_deplibs
12255 # Fix the shell variable \$srcfile for the compiler.
12256 fix_srcfile_path=$lt_fix_srcfile_path
12258 # Set to "yes" if exported symbols are required.
12259 always_export_symbols=$always_export_symbols
12261 # The commands to list exported symbols.
12262 export_symbols_cmds=$lt_export_symbols_cmds
12264 # Symbols that should not be listed in the preloaded symbols.
12265 exclude_expsyms=$lt_exclude_expsyms
12267 # Symbols that must always be exported.
12268 include_expsyms=$lt_include_expsyms
12270 # Commands necessary for linking programs (against libraries) with templates.
12271 prelink_cmds=$lt_prelink_cmds
12273 # Specify filename containing input files.
12274 file_list_spec=$lt_file_list_spec
12276 # How to hardcode a shared library path into an executable.
12277 hardcode_action=$hardcode_action
12279 # ### END LIBTOOL CONFIG
12281 _LT_EOF
12283 case $host_os in
12284 aix3*)
12285 cat <<\_LT_EOF >> "$cfgfile"
12286 # AIX sometimes has problems with the GCC collect2 program. For some
12287 # reason, if we set the COLLECT_NAMES environment variable, the problems
12288 # vanish in a puff of smoke.
12289 if test "X${COLLECT_NAMES+set}" != Xset; then
12290 COLLECT_NAMES=
12291 export COLLECT_NAMES
12293 _LT_EOF
12295 esac
12298 ltmain="$ac_aux_dir/ltmain.sh"
12301 # We use sed instead of cat because bash on DJGPP gets confused if
12302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12303 # text mode, it properly converts lines to CR/LF. This bash problem
12304 # is reportedly fixed, but why not run on old versions too?
12305 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12306 || (rm -f "$cfgfile"; exit 1)
12308 case $xsi_shell in
12309 yes)
12310 cat << \_LT_EOF >> "$cfgfile"
12311 # func_dirname file append nondir_replacement
12312 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12313 # otherwise set result to NONDIR_REPLACEMENT.
12314 func_dirname ()
12316 case ${1} in
12317 */*) func_dirname_result="${1%/*}${2}" ;;
12318 * ) func_dirname_result="${3}" ;;
12319 esac
12322 # func_basename file
12323 func_basename ()
12325 func_basename_result="${1##*/}"
12328 # func_stripname prefix suffix name
12329 # strip PREFIX and SUFFIX off of NAME.
12330 # PREFIX and SUFFIX must not contain globbing or regex special
12331 # characters, hashes, percent signs, but SUFFIX may contain a leading
12332 # dot (in which case that matches only a dot).
12333 func_stripname ()
12335 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12336 # positional parameters, so assign one to ordinary parameter first.
12337 func_stripname_result=${3}
12338 func_stripname_result=${func_stripname_result#"${1}"}
12339 func_stripname_result=${func_stripname_result%"${2}"}
12342 # func_opt_split
12343 func_opt_split ()
12345 func_opt_split_opt=${1%%=*}
12346 func_opt_split_arg=${1#*=}
12349 # func_lo2o object
12350 func_lo2o ()
12352 case ${1} in
12353 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12354 *) func_lo2o_result=${1} ;;
12355 esac
12357 _LT_EOF
12359 *) # Bourne compatible functions.
12360 cat << \_LT_EOF >> "$cfgfile"
12361 # func_dirname file append nondir_replacement
12362 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12363 # otherwise set result to NONDIR_REPLACEMENT.
12364 func_dirname ()
12366 # Extract subdirectory from the argument.
12367 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12368 if test "X$func_dirname_result" = "X${1}"; then
12369 func_dirname_result="${3}"
12370 else
12371 func_dirname_result="$func_dirname_result${2}"
12375 # func_basename file
12376 func_basename ()
12378 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12381 # func_stripname prefix suffix name
12382 # strip PREFIX and SUFFIX off of NAME.
12383 # PREFIX and SUFFIX must not contain globbing or regex special
12384 # characters, hashes, percent signs, but SUFFIX may contain a leading
12385 # dot (in which case that matches only a dot).
12386 # func_strip_suffix prefix name
12387 func_stripname ()
12389 case ${2} in
12390 .*) func_stripname_result=`$ECHO "X${3}" \
12391 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12392 *) func_stripname_result=`$ECHO "X${3}" \
12393 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12394 esac
12397 # sed scripts:
12398 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12399 my_sed_long_arg='1s/^-[^=]*=//'
12401 # func_opt_split
12402 func_opt_split ()
12404 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12405 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12408 # func_lo2o object
12409 func_lo2o ()
12411 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12413 _LT_EOF
12414 esac
12416 case $lt_shell_append in
12417 yes)
12418 cat << \_LT_EOF >> "$cfgfile"
12420 # func_append var value
12421 # Append VALUE to the end of shell variable VAR.
12422 func_append ()
12424 eval "$1+=\$2"
12426 _LT_EOF
12429 cat << \_LT_EOF >> "$cfgfile"
12431 # func_append var value
12432 # Append VALUE to the end of shell variable VAR.
12433 func_append ()
12435 eval "$1=\$$1\$2"
12437 _LT_EOF
12439 esac
12442 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12443 || (rm -f "$cfgfile"; exit 1)
12445 mv -f "$cfgfile" "$ofile" ||
12446 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12447 chmod +x "$ofile"
12450 esac
12451 done
12452 _ACEOF
12454 cat >>$CONFIG_STATUS <<\_ACEOF
12456 { (exit 0); exit 0; }
12457 _ACEOF
12458 chmod +x $CONFIG_STATUS
12459 ac_clean_files=$ac_clean_files_save
12462 # configure is writing to config.log, and then calls config.status.
12463 # config.status does its own redirection, appending to config.log.
12464 # Unfortunately, on DOS this fails, as config.log is still kept open
12465 # by configure, so config.status won't be able to write to it; its
12466 # output is simply discarded. So we exec the FD to /dev/null,
12467 # effectively closing config.log, so it can be properly (re)opened and
12468 # appended to by config.status. When coming back to configure, we
12469 # need to make the FD available again.
12470 if test "$no_create" != yes; then
12471 ac_cs_success=:
12472 ac_config_status_args=
12473 test "$silent" = yes &&
12474 ac_config_status_args="$ac_config_status_args --quiet"
12475 exec 5>/dev/null
12476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12477 exec 5>>config.log
12478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12479 # would make configure fail if this is the last instruction.
12480 $ac_cs_success || { (exit 1); exit 1; }