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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
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!
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
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
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
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
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
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
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.
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
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
349 SHELL="$CONFIG_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"
358 # maybe with a smaller string...
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
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+"$@"}
374 # Oops. We lost completely, so just stick with 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.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
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`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
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'
423 ac_unique_file="ssp.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
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'
464 # Initialize some variables set by options.
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name=s,x,x,
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'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
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 ;;
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
579 -help | --help | --hel | --he | -h)
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)
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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)
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 # Obsolete; use --without-fp.
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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)
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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)
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
709 -site=* | --site=* | --sit=*)
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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)
732 -version | --version | --versio | --versi | --vers | -V)
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'`
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
758 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
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`
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
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.
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
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 ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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.
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.
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 \`..']
941 Installation directories:
942 --prefix=PREFIX install architecture-independent files in PREFIX
944 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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]
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
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]
983 if test -n "$ac_init_help"; then
984 case $ac_init_help in
985 short | recursive ) echo "Configuration of libssp 1.0:";;
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)
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
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>
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.
1028 if test "$ac_init_help" = "recursive"; then
1029 # If there are subdirs, report their specific --help.
1031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1032 test -d $ac_dir || continue
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'`
1040 ac_dir_suffix= ac_top_builddir=
1044 .) # No --srcdir option. We are building in place.
1046 if test -z "$ac_top_builddir"; then
1049 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 [\\/]* | ?:[\\/]* ) # Absolute path.
1052 ac_srcdir=$srcdir$ac_dir_suffix;
1053 ac_top_srcdir=$srcdir ;;
1055 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1056 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 # Do not use `cd foo && pwd` to compute absolute paths, because
1060 # the directories may not exist.
1062 .) ac_abs_builddir="$ac_dir";;
1065 .) ac_abs_builddir=`pwd`;;
1066 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1067 *) ac_abs_builddir=`pwd`/"$ac_dir";;
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}.;;
1079 case $ac_abs_builddir in
1080 .) ac_abs_srcdir=$ac_srcdir;;
1083 .) ac_abs_srcdir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1085 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
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;;
1099 # Check for guested configure; otherwise get Cygnus style configure.
1100 if test -f $ac_srcdir/configure.gnu; then
1102 $SHELL $ac_srcdir/configure.gnu --help=recursive
1103 elif test -f $ac_srcdir/configure; then
1105 $SHELL $ac_srcdir/configure --help=recursive
1106 elif test -f $ac_srcdir/configure.ac ||
1107 test -f $ac_srcdir/configure.in; then
1109 $ac_configure --help
1111 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1117 test -n "$ac_init_help" && exit 0
1118 if $ac_init_version; then
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.
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
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`
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1169 test -z "$as_dir" && as_dir=.
1170 echo "PATH: $as_dir"
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.
1194 ac_must_keep_next=false
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)
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1223 -* ) ac_must_keep_next=true ;;
1226 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227 # Get rid of the leading space.
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.
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1252 # The following way of writing the cache mishandles newlines in values,
1255 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1263 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1275 for ac_var in $ac_subst_vars
1277 eval ac_val=$`echo $ac_var`
1278 echo "$ac_var='"'"'$ac_val'"'"'"
1282 if test -n "$ac_subst_files"; then
1289 for ac_var in $ac_subst_files
1291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -s confdefs.h; then
1304 sed "/^$/d" confdefs.h | sort
1307 test "$ac_signal" != 0 &&
1308 echo "$as_me: caught signal $ac_signal"
1309 echo "$as_me: exit $exit_status"
1311 rm -f core *.core &&
1312 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315 for ac_signal in 1 2 13 15; do
1316 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1325 # Predefined preprocessor variables.
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
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
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;}
1377 [\\/]* | ?:[\\/]* ) . $cache_file;;
1378 *) . ./$cache_file;;
1382 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1387 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
1407 if test "x$ac_old_val" != "x$ac_new_val"; then
1408 # differences in whitespace do not lead to failure.
1409 ac_old_val_w=`echo x $ac_old_val`
1410 ac_new_val_w=`echo x $ac_new_val`
1411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1412 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1413 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1414 ac_cache_corrupted=:
1416 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1417 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1418 eval $ac_var=\$ac_old_val
1420 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1421 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1422 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1423 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439 if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1482 if test -f $ac_dir/install-sh; then
1484 ac_install_sh="$ac_aux_dir/install-sh -c"
1486 elif test -f $ac_dir/install.sh; then
1488 ac_install_sh="$ac_aux_dir/install.sh -c"
1490 elif test -f $ac_dir/shtool; then
1492 ac_install_sh="$ac_aux_dir/shtool install -c"
1496 if test -z "$ac_aux_dir"; then
1497 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1498 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1499 { (exit 1); exit 1; }; }
1501 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1502 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1503 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1505 # Make sure we can run config.sub.
1506 $ac_config_sub sun4 >/dev/null 2>&1 ||
1507 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509 { (exit 1); exit 1; }; }
1511 echo "$as_me:$LINENO: checking build system type" >&5
1512 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513 if test "${ac_cv_build+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 ac_cv_build_alias=$build_alias
1517 test -z "$ac_cv_build_alias" &&
1518 ac_cv_build_alias=`$ac_config_guess`
1519 test -z "$ac_cv_build_alias" &&
1520 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522 { (exit 1); exit 1; }; }
1523 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526 { (exit 1); exit 1; }; }
1529 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530 echo "${ECHO_T}$ac_cv_build" >&6
1532 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1537 echo "$as_me:$LINENO: checking host system type" >&5
1538 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539 if test "${ac_cv_host+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 ac_cv_host_alias=$host_alias
1543 test -z "$ac_cv_host_alias" &&
1544 ac_cv_host_alias=$ac_cv_build_alias
1545 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552 echo "${ECHO_T}$ac_cv_host" >&6
1554 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$as_me:$LINENO: checking target system type" >&5
1560 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561 if test "${ac_cv_target+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_target_alias=$target_alias
1565 test "x$ac_cv_target_alias" = "x" &&
1566 ac_cv_target_alias=$ac_cv_host_alias
1567 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574 echo "${ECHO_T}$ac_cv_target" >&6
1575 target=$ac_cv_target
1576 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 # The aliases save the names the user supplied, while $host etc.
1582 # will get canonicalized.
1583 test -n "$target_alias" &&
1584 test "$program_prefix$program_suffix$program_transform_name" = \
1586 program_prefix=${target_alias}-
1587 case ${build_alias} in
1588 "") build_noncanonical=${build} ;;
1589 *) build_noncanonical=${build_alias} ;;
1592 case ${host_alias} in
1593 "") host_noncanonical=${build_noncanonical} ;;
1594 *) host_noncanonical=${host_alias} ;;
1597 case ${target_alias} in
1598 "") target_noncanonical=${host_noncanonical} ;;
1599 *) target_noncanonical=${target_alias} ;;
1605 am__api_version="1.9"
1606 # Find a good install program. We prefer a C program (faster),
1607 # so one script is as good as another. But avoid the broken or
1608 # incompatible versions:
1609 # SysV /etc/install, /usr/sbin/install
1610 # SunOS /usr/etc/install
1611 # IRIX /sbin/install
1613 # AmigaOS /C/install, which installs bootblocks on floppy discs
1614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1617 # OS/2's system install, which has a completely different semantic
1618 # ./install, which can be erroneously created by make from ./install.sh.
1619 # Reject install programs that cannot install multiple files.
1620 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1621 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1622 if test -z "$INSTALL"; then
1623 if test "${ac_cv_path_install+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 # Account for people who put trailing slashes in PATH elements.
1633 ./ | .// | /cC/* | \
1634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1635 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1638 # OSF1 and SCO ODT 3.0 have their own names for install.
1639 # Don't use installbsd from OSF since it installs stuff as root
1641 for ac_prog in ginstall scoinst install; do
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1644 if test $ac_prog = install &&
1645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1646 # AIX install. It has an incompatible calling convention.
1648 elif test $ac_prog = install &&
1649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650 # program-specific install script used by HP pwplus--don't use.
1653 rm -rf conftest.one conftest.two conftest.dir
1654 echo one > conftest.one
1655 echo two > conftest.two
1657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1658 test -s conftest.one && test -s conftest.two &&
1659 test -s conftest.dir/conftest.one &&
1660 test -s conftest.dir/conftest.two
1662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1673 rm -rf conftest.one conftest.two conftest.dir
1676 if test "${ac_cv_path_install+set}" = set; then
1677 INSTALL=$ac_cv_path_install
1679 # As a last resort, use the slow shell script. Don't cache a
1680 # value for INSTALL within a source directory, because that will
1681 # break other packages using the cache if that directory is
1682 # removed, or if the value is a relative name.
1683 INSTALL=$ac_install_sh
1686 echo "$as_me:$LINENO: result: $INSTALL" >&5
1687 echo "${ECHO_T}$INSTALL" >&6
1689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1690 # It thinks the first close brace ends the variable substitution.
1691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1698 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1701 echo timestamp > conftest.file
1702 # Do `set' in a subshell so we don't clobber the current shell's
1703 # arguments. Must try -L first in case configure is actually a
1704 # symlink; some systems play weird games with the mod time of symlinks
1705 # (eg FreeBSD returns the mod time of the symlink's containing
1708 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1709 if test "$*" = "X"; then
1711 set X `ls -t $srcdir/configure conftest.file`
1714 if test "$*" != "X $srcdir/configure conftest.file" \
1715 && test "$*" != "X conftest.file $srcdir/configure"; then
1717 # If neither matched, then we have a broken ls. This can happen
1718 # if, for instance, CONFIG_SHELL is bash and it inherits a
1719 # broken ls alias from the environment. This has actually
1720 # happened. Such a system could not be considered "sane".
1721 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1722 alias in your environment" >&5
1723 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1724 alias in your environment" >&2;}
1725 { (exit 1); exit 1; }; }
1728 test "$2" = conftest.file
1734 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1735 Check your system clock" >&5
1736 echo "$as_me: error: newly created file is older than distributed files!
1737 Check your system clock" >&2;}
1738 { (exit 1); exit 1; }; }
1740 echo "$as_me:$LINENO: result: yes" >&5
1741 echo "${ECHO_T}yes" >&6
1742 test "$program_prefix" != NONE &&
1743 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1744 # Use a double $ so make ignores it.
1745 test "$program_suffix" != NONE &&
1746 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1747 # Double any \ or $. echo might interpret backslashes.
1748 # By default was `s,x,x', remove it if useless.
1749 cat <<\_ACEOF >conftest.sed
1750 s/[\\$]/&&/g;s/;s,x,x,$//
1752 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1755 # expand $ac_aux_dir to an absolute path
1756 am_aux_dir=`cd $ac_aux_dir && pwd`
1758 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1759 # Use eval to expand $SHELL
1760 if eval "$MISSING --run true"; then
1761 am_missing_run="$MISSING --run "
1764 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1765 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1768 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1769 # We used to keeping the `.' as first argument, in order to
1770 # allow $(mkdir_p) to be used without argument. As in
1771 # $(mkdir_p) $(somedir)
1772 # where $(somedir) is conditionally defined. However this is wrong
1774 # 1. if the package is installed by a user who cannot write `.'
1775 # make install will fail,
1776 # 2. the above comment should most certainly read
1777 # $(mkdir_p) $(DESTDIR)$(somedir)
1778 # so it does not work when $(somedir) is undefined and
1779 # $(DESTDIR) is not.
1780 # To support the latter case, we have to write
1781 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1782 # so the `.' trick is pointless.
1783 mkdir_p='mkdir -p --'
1785 # On NextStep and OpenStep, the `mkdir' command does not
1786 # recognize any option. It will interpret all options as
1787 # directories to create, and then abort because `.' already
1789 for d in ./-p ./--version;
1791 test -d $d && rmdir $d
1793 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1794 if test -f "$ac_aux_dir/mkinstalldirs"; then
1795 mkdir_p='$(mkinstalldirs)'
1797 mkdir_p='$(install_sh) -d'
1801 for ac_prog in gawk mawk nawk awk
1803 # Extract the first word of "$ac_prog", so it can be a program name with args.
1804 set dummy $ac_prog; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_AWK+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 if test -n "$AWK"; then
1811 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_AWK="$ac_prog"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test -n "$AWK"; then
1831 echo "$as_me:$LINENO: result: $AWK" >&5
1832 echo "${ECHO_T}$AWK" >&6
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1838 test -n "$AWK" && break
1841 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1842 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1843 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1844 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 cat >conftest.make <<\_ACEOF
1849 @echo 'ac_maketemp="$(MAKE)"'
1851 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1852 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1853 if test -n "$ac_maketemp"; then
1854 eval ac_cv_prog_make_${ac_make}_set=yes
1856 eval ac_cv_prog_make_${ac_make}_set=no
1860 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1861 echo "$as_me:$LINENO: result: yes" >&5
1862 echo "${ECHO_T}yes" >&6
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867 SET_MAKE="MAKE=${MAKE-make}"
1870 rm -rf .tst 2>/dev/null
1871 mkdir .tst 2>/dev/null
1872 if test -d .tst; then
1877 rmdir .tst 2>/dev/null
1879 # test to see if srcdir already configured
1880 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1881 test -f $srcdir/config.status; then
1882 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1883 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1884 { (exit 1); exit 1; }; }
1887 # test whether we have cygpath
1888 if test -z "$CYGPATH_W"; then
1889 if (cygpath --version) >/dev/null 2>/dev/null; then
1890 CYGPATH_W='cygpath -w'
1897 # Define the identity of the package.
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE "$PACKAGE"
1907 cat >>confdefs.h <<_ACEOF
1908 #define VERSION "$VERSION"
1911 # Some tools Automake needs.
1913 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1916 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1919 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1922 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1925 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1929 # Installed binaries are usually stripped using `strip' when the user
1930 # run `make install-strip'. However `strip' might not be the right
1931 # tool to use in cross-compilation environments, therefore Automake
1932 # will honor the `STRIP' environment variable to overrule this program.
1933 if test "$cross_compiling" != no; then
1934 if test -n "$ac_tool_prefix"; then
1935 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1936 set dummy ${ac_tool_prefix}strip; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_STRIP+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$STRIP"; then
1943 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 STRIP=$ac_cv_prog_STRIP
1962 if test -n "$STRIP"; then
1963 echo "$as_me:$LINENO: result: $STRIP" >&5
1964 echo "${ECHO_T}$STRIP" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1971 if test -z "$ac_cv_prog_STRIP"; then
1973 # Extract the first word of "strip", so it can be a program name with args.
1974 set dummy strip; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$ac_ct_STRIP"; then
1981 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 ac_cv_prog_ac_ct_STRIP="strip"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2001 if test -n "$ac_ct_STRIP"; then
2002 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2003 echo "${ECHO_T}$ac_ct_STRIP" >&6
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2011 STRIP="$ac_cv_prog_STRIP"
2015 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2017 # We need awk for the "check" target. The system "awk" is bad on
2019 # Always define AMTAR for backward compatibility.
2021 AMTAR=${AMTAR-"${am_missing_run}tar"}
2023 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2030 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2031 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2032 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2033 if test "${enable_version_specific_runtime_libs+set}" = set; then
2034 enableval="$enable_version_specific_runtime_libs"
2035 case "$enableval" in
2036 yes) version_specific_libs=yes ;;
2037 no) version_specific_libs=no ;;
2038 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2039 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2040 { (exit 1); exit 1; }; };;
2043 version_specific_libs=no
2045 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2046 echo "${ECHO_T}$version_specific_libs" >&6
2048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2051 if test "${enable_maintainer_mode+set}" = set; then
2052 enableval="$enable_maintainer_mode"
2053 USE_MAINTAINER_MODE=$enableval
2055 USE_MAINTAINER_MODE=no
2057 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2058 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2061 if test $USE_MAINTAINER_MODE = yes; then
2062 MAINTAINER_MODE_TRUE=
2063 MAINTAINER_MODE_FALSE='#'
2065 MAINTAINER_MODE_TRUE='#'
2066 MAINTAINER_MODE_FALSE=
2069 MAINT=$MAINTAINER_MODE_TRUE
2075 # Default to --enable-multilib
2076 # Check whether --enable-multilib or --disable-multilib was given.
2077 if test "${enable_multilib+set}" = set; then
2078 enableval="$enable_multilib"
2079 case "$enableval" in
2080 yes) multilib=yes ;;
2082 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2083 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2084 { (exit 1); exit 1; }; } ;;
2090 # We may get other options which we leave undocumented:
2091 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2092 # See config-ml.in if you want the gory details.
2094 if test "$srcdir" = "."; then
2095 if test "$with_target_subdir" != "."; then
2096 multi_basedir="$srcdir/$with_multisrctop../.."
2098 multi_basedir="$srcdir/$with_multisrctop.."
2101 multi_basedir="$srcdir/.."
2105 # Even if the default multilib is not a cross compilation,
2106 # it may be that some of the other multilibs are.
2107 if test $cross_compiling = no && test $multilib = yes \
2108 && test "x${with_multisubdir}" != x ; then
2109 cross_compiling=maybe
2112 ac_config_commands="$ac_config_commands default-1"
2115 target_alias=${target_alias-$host_alias}
2118 ac_config_headers="$ac_config_headers config.h"
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2127 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2128 # We must force CC to /not/ be precious variables; otherwise
2129 # the wrong, non-multilib-adjusted value will be used in multilibs.
2130 # As a side effect, we have to subst CFLAGS ourselves.
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 if test -n "$CC"; then
2168 echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$ac_cv_prog_CC"; then
2178 # Extract the first word of "gcc", so it can be a program name with args.
2179 set dummy gcc; ac_word=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 if test -n "$ac_ct_CC"; then
2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195 ac_cv_prog_ac_ct_CC="gcc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 echo "${ECHO_T}$ac_ct_CC" >&6
2209 echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6
2218 if test -z "$CC"; then
2219 if test -n "$ac_tool_prefix"; then
2220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2221 set dummy ${ac_tool_prefix}cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_CC="${ac_tool_prefix}cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2256 if test -z "$ac_cv_prog_CC"; then
2258 # Extract the first word of "cc", so it can be a program name with args.
2259 set dummy cc; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_ac_ct_CC="cc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2299 if test -z "$CC"; then
2300 # Extract the first word of "cc", so it can be a program name with args.
2301 set dummy cc; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_CC+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2319 ac_prog_rejected=yes
2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 if test $ac_prog_rejected = yes; then
2330 # We found a bogon in the path, so make sure we never use it.
2331 set dummy $ac_cv_prog_CC
2333 if test $# != 0; then
2334 # We chose a different compiler from the bogus one.
2335 # However, it has the same basename, so the bogon will be chosen
2336 # first if we set CC to just the basename; use the full file name.
2338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2344 if test -n "$CC"; then
2345 echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6
2348 echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2353 if test -z "$CC"; then
2354 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test -n "$CC"; then
2385 echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6
2388 echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2392 test -n "$CC" && break
2395 if test -z "$CC"; then
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_ac_ct_CC="$ac_prog"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 test -n "$ac_ct_CC" && break
2443 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO:" \
2451 "checking for C compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2454 (eval $ac_compiler --version </dev/null >&5) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2459 (eval $ac_compiler -v </dev/null >&5) 2>&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }
2463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2464 (eval $ac_compiler -V </dev/null >&5) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2486 (eval $ac_link) 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2495 if test x$gcc_no_link = xyes; then
2496 # Setting cross_compile will disable run tests; it will
2497 # also disable AC_CHECK_FILE but that's generally
2498 # correct if we can't link.
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 ac_clean_files_save=$ac_clean_files
2518 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2519 # Try to create an executable without -o first, disregard a.out.
2520 # It will help us diagnose broken compilers, and finding out an intuition
2522 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2523 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2524 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2526 (eval $ac_link_default) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; then
2530 # Find the output, starting from the most likely. This scheme is
2531 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2534 # Be careful to initialize this variable, since it used to be cached.
2535 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2537 # b.out is created by i960 compilers.
2538 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2545 # This is the source file.
2548 # We found the default executable, but exeext='' is most
2552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 # FIXME: I believe we export ac_cv_exeext for Libtool,
2554 # but it would be cool to find out if it's true. Does anybody
2555 # maintain Libtool? --akim.
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: C compiler cannot create executables
2569 See \`config.log' for more details." >&2;}
2570 { (exit 77); exit 77; }; }
2573 ac_exeext=$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6
2577 # Check the compiler produces executables we can run. If not, either
2578 # the compiler is broken, or we cross compile.
2579 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2582 # If not cross compiling, check that we can run a simple program.
2583 if test "$cross_compiling" != yes; then
2584 if { ac_try='./$ac_file'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 if test "$cross_compiling" = maybe; then
2595 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check the compiler produces executables we can run. If not, either
2611 # the compiler is broken, or we cross compile.
2612 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2614 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6
2617 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; then
2624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2628 for ac_file in conftest.exe conftest conftest.*; do
2629 test -f "$ac_file" || continue
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2646 rm -f conftest$ac_cv_exeext
2647 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2654 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2655 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2656 if test "${ac_cv_objext+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2674 rm -f conftest.o conftest.obj
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; then
2680 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2691 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2700 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2701 echo "${ECHO_T}$ac_cv_objext" >&6
2702 OBJEXT=$ac_cv_objext
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2706 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2762 GCC=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CFLAGS=${CFLAGS+set}
2764 ac_save_CFLAGS=$CFLAGS
2766 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cc_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 cat >conftest.$ac_ext <<_ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2819 if test "$ac_test_CFLAGS" = set; then
2820 CFLAGS=$ac_save_CFLAGS
2821 elif test $ac_cv_prog_cc_g = yes; then
2822 if test "$GCC" = yes; then
2828 if test "$GCC" = yes; then
2834 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2835 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2836 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 ac_cv_prog_cc_stdc=no
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2849 #include <sys/types.h>
2850 #include <sys/stat.h>
2851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2852 struct buf { int x; };
2853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2854 static char *e (p, i)
2860 static char *f (char * (*g) (char **, int), char **p, ...)
2865 s = g (p, va_arg (v,int));
2870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2871 function prototypes and stuff, but not '\xHH' hex character constants.
2872 These don't provoke an error unfortunately, instead are silently treated
2873 as 'x'. The following induces an error, until -std1 is added to get
2874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2875 array size at least. It's necessary to write '\x00'==0 to get something
2876 that's true only with -std1. */
2877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2879 int test (int i, double x);
2880 struct s1 {int (*f) (int a);};
2881 struct s2 {int (*f) (double a);};
2882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX -qlanglvl=ansi
2896 # Ultrix and OSF/1 -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions -Aa -D_HPUX_SOURCE
2899 # SVR4 -Xc -D__EXTENSIONS__
2900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 CC="$ac_save_CC $ac_arg"
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 ac_cv_prog_cc_stdc=$ac_arg
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2932 rm -f conftest.err conftest.$ac_objext
2934 rm -f conftest.$ac_ext conftest.$ac_objext
2939 case "x$ac_cv_prog_cc_stdc" in
2941 echo "$as_me:$LINENO: result: none needed" >&5
2942 echo "${ECHO_T}none needed" >&6 ;;
2944 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2946 CC="$CC $ac_cv_prog_cc_stdc" ;;
2949 # Some people use a C++ compiler to compile C. Since we use `exit',
2950 # in C++ we need to declare it. In case someone uses the same compiler
2951 # for both compiling C and C++ we need to have the C++ compiler decide
2952 # the declaration of exit, since it's the most demanding environment.
2953 cat >conftest.$ac_ext <<_ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>conftest.er1
2962 grep -v '^ *+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 { ac_try='test -z "$ac_c_werror_flag"
2968 || test ! -s conftest.err'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 for ac_declaration in \
2982 'extern "C" void std::exit (int) throw (); using std::exit;' \
2983 'extern "C" void std::exit (int); using std::exit;' \
2984 'extern "C" void exit (int) throw ();' \
2985 'extern "C" void exit (int);' \
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006 (eval $ac_compile) 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag"
3014 || test ! -s conftest.err'
3015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; } &&
3020 { ac_try='test -s conftest.$ac_objext'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag"
3059 || test ! -s conftest.err'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080 if test -n "$ac_declaration"; then
3081 echo '#ifdef __cplusplus' >>confdefs.h
3082 echo $ac_declaration >>confdefs.h
3083 echo '#endif' >>confdefs.h
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 DEPDIR="${am__leading_dot}deps"
3099 ac_config_commands="$ac_config_commands depfiles"
3102 am_make=${MAKE-make}
3103 cat > confinc << 'END'
3108 # If we don't find an include directive, just comment out the code.
3109 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3110 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3114 # First try GNU make style include.
3115 echo "include confinc" > confmf
3116 # We grep out `Entering directory' and `Leaving directory'
3117 # messages which can occur if `w' ends up in MAKEFLAGS.
3118 # In particular we don't look at `^make:' because GNU make might
3119 # be invoked under some other name (usually "gmake"), in which
3120 # case it prints its new name instead of `make'.
3121 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3126 # Now try BSD make style include.
3127 if test "$am__include" = "#"; then
3128 echo '.include "confinc"' > confmf
3129 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3130 am__include=.include
3137 echo "$as_me:$LINENO: result: $_am_result" >&5
3138 echo "${ECHO_T}$_am_result" >&6
3139 rm -f confinc confmf
3141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3142 if test "${enable_dependency_tracking+set}" = set; then
3143 enableval="$enable_dependency_tracking"
3146 if test "x$enable_dependency_tracking" != xno; then
3147 am_depcomp="$ac_aux_dir/depcomp"
3152 if test "x$enable_dependency_tracking" != xno; then
3163 depcc="$CC" am_compiler_list=
3165 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3166 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3167 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3171 # We make a subdir and do the tests there. Otherwise we can end up
3172 # making bogus files that we don't know about and never remove. For
3173 # instance it was reported that on HP-UX the gcc test will end up
3174 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # Copy depcomp to subdir because otherwise we won't find it if we're
3178 # using a relative directory.
3179 cp "$am_depcomp" conftest.dir
3181 # We will build objects and dependencies in a subdirectory because
3182 # it helps to detect inapplicable dependency modes. For instance
3183 # both Tru64's cc and ICC support -MD to output dependencies as a
3184 # side effect of compilation, but ICC will put the dependencies in
3185 # the current directory while Tru64 will put them in the object
3189 am_cv_CC_dependencies_compiler_type=none
3190 if test "$am_compiler_list" = ""; then
3191 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3193 for depmode in $am_compiler_list; do
3194 # Setup a source with many dependencies, because some compilers
3195 # like to wrap large dependency lists on column 80 (with \), and
3196 # we should not choose a depcomp mode which is confused by this.
3198 # We need to recreate these files for each test, as the compiler may
3199 # overwrite some of them when testing with obscure command lines.
3200 # This happens at least with the AIX C compiler.
3202 for i in 1 2 3 4 5 6; do
3203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3204 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3205 # Solaris 8's {/usr,}/bin/sh.
3206 touch sub/conftst$i.h
3208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3212 # after this tag, mechanisms are not by side-effect, so they'll
3213 # only be used when explicitly requested
3214 if test "x$enable_dependency_tracking" = xyes; then
3222 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3223 # mode. It turns out that the SunPro C++ compiler does not properly
3224 # handle `-M -o', and we need to detect this.
3225 if depmode=$depmode \
3226 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3227 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3228 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3229 >/dev/null 2>conftest.err &&
3230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3231 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3233 # icc doesn't choke on unknown options, it will just issue warnings
3234 # or remarks (even with -Werror). So we grep stderr for any message
3235 # that says an option was ignored or not supported.
3236 # When given -MP, icc 7.0 and 7.1 complain thusly:
3237 # icc: Command line warning: ignoring option '-M'; no argument required
3238 # The diagnosis changed in icc 8.0:
3239 # icc: Command line remark: option '-MP' not supported
3240 if (grep 'ignoring option' conftest.err ||
3241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3242 am_cv_CC_dependencies_compiler_type=$depmode
3251 am_cv_CC_dependencies_compiler_type=none
3255 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3256 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3262 test "x$enable_dependency_tracking" != xno \
3263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265 am__fastdepCC_FALSE='#'
3267 am__fastdepCC_TRUE='#'
3268 am__fastdepCC_FALSE=
3276 if test "x$GCC" != "xyes"; then
3277 { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3278 echo "$as_me: error: libssp must be built with GCC" >&2;}
3279 { (exit 1); exit 1; }; }
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3287 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3288 # On Suns, sometimes $CPP names a directory.
3289 if test -n "$CPP" && test -d "$CPP"; then
3292 if test -z "$CPP"; then
3293 if test "${ac_cv_prog_CPP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 # Double quotes because CPP needs to be expanded
3297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3300 for ac_c_preproc_warn_flag in '' yes
3302 # Use a header file that comes with gcc, so configuring glibc
3303 # with a fresh cross-compiler works.
3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305 # <limits.h> exists even on freestanding compilers.
3306 # On the NeXT, cc -E runs the code through the compiler's parser,
3307 # not just through cpp. "Syntax error" is here to catch this case.
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3315 # include <limits.h>
3317 # include <assert.h>
3321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } >/dev/null; then
3329 if test -s conftest.err; then
3330 ac_cpp_err=$ac_c_preproc_warn_flag
3331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338 if test -z "$ac_cpp_err"; then
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # Broken: fails on valid input.
3347 rm -f conftest.err conftest.$ac_ext
3349 # OK, works on sane cases. Now check whether non-existent headers
3350 # can be detected and how.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 #include <ac_nonexistent.h>
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 if test -z "$ac_cpp_err"; then
3377 # Broken: success on invalid input.
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Passes both tests.
3387 rm -f conftest.err conftest.$ac_ext
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then
3404 echo "$as_me:$LINENO: result: $CPP" >&5
3405 echo "${ECHO_T}$CPP" >&6
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3422 # include <limits.h>
3424 # include <assert.h>
3428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev/null; then
3436 if test -s conftest.err; then
3437 ac_cpp_err=$ac_c_preproc_warn_flag
3438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445 if test -z "$ac_cpp_err"; then
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Broken: fails on valid input.
3454 rm -f conftest.err conftest.$ac_ext
3456 # OK, works on sane cases. Now check whether non-existent headers
3457 # can be detected and how.
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include <ac_nonexistent.h>
3466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
3476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483 if test -z "$ac_cpp_err"; then
3484 # Broken: success on invalid input.
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 # Passes both tests.
3494 rm -f conftest.err conftest.$ac_ext
3497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3498 rm -f conftest.err conftest.$ac_ext
3499 if $ac_preproc_ok; then
3502 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3503 See \`config.log' for more details." >&5
3504 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3505 See \`config.log' for more details." >&2;}
3506 { (exit 1); exit 1; }; }
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3517 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3518 save_CFLAGS="$CFLAGS"
3519 CFLAGS="$CFLAGS -fstack-protector -Werror"
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3528 void __attribute__((noinline)) bar (char *x)
3530 __builtin_memset (x, 0, 64);
3535 char buf[64]; bar (buf);
3540 rm -f conftest.$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try='test -z "$ac_c_werror_flag"
3550 || test ! -s conftest.err'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest.$ac_objext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
3562 echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3568 echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 CFLAGS="$save_CFLAGS"
3574 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3575 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3583 void __attribute__((visibility ("hidden"))) bar (void) {}
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag"
3602 || test ! -s conftest.err'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3623 echo "${ECHO_T}$ssp_hidden" >&6
3624 if test x$ssp_hidden = xyes; then
3626 cat >>confdefs.h <<\_ACEOF
3627 #define HAVE_HIDDEN_VISIBILITY 1
3632 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3633 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3634 cat > conftest.map <<EOF
3636 global: *foo*; bar; local: *;
3639 save_LDFLAGS="$LDFLAGS"
3640 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3641 if test x$gcc_no_link = xyes; then
3642 # If we cannot link, we cannot build shared libraries, so do not use
3643 # symbol versioning.
3646 if test x$gcc_no_link = xyes; then
3647 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3649 { (exit 1); exit 1; }; }
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext conftest$ac_exeext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668 (eval $ac_link) 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -z "$ac_c_werror_flag"
3676 || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3695 rm -f conftest.err conftest.$ac_objext \
3696 conftest$ac_exeext conftest.$ac_ext
3698 LDFLAGS="$save_LDFLAGS"
3699 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3700 echo "${ECHO_T}$ssp_use_symver" >&6
3703 if test "x$ssp_use_symver" = xyes; then
3704 LIBSSP_USE_SYMVER_TRUE=
3705 LIBSSP_USE_SYMVER_FALSE='#'
3707 LIBSSP_USE_SYMVER_TRUE='#'
3708 LIBSSP_USE_SYMVER_FALSE=
3713 echo "$as_me:$LINENO: checking for egrep" >&5
3714 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3715 if test "${ac_cv_prog_egrep+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3719 then ac_cv_prog_egrep='grep -E'
3720 else ac_cv_prog_egrep='egrep'
3723 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3724 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3725 EGREP=$ac_cv_prog_egrep
3728 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3730 if test "${ac_cv_header_stdc+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>conftest.er1
3756 grep -v '^ *+' conftest.er1 >conftest.err
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -z "$ac_c_werror_flag"
3762 || test ! -s conftest.err'
3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 ac_cv_header_stdc=yes
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3779 ac_cv_header_stdc=no
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3783 if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795 $EGREP "memchr" >/dev/null 2>&1; then
3798 ac_cv_header_stdc=no
3804 if test $ac_cv_header_stdc = yes; then
3805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3816 $EGREP "free" >/dev/null 2>&1; then
3819 ac_cv_header_stdc=no
3825 if test $ac_cv_header_stdc = yes; then
3826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3827 if test "$cross_compiling" = yes; then
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3841 # define ISLOWER(c) \
3842 (('a' <= (c) && (c) <= 'i') \
3843 || ('j' <= (c) && (c) <= 'r') \
3844 || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3853 for (i = 0; i < 256; i++)
3854 if (XOR (islower (i), ISLOWER (i))
3855 || toupper (i) != TOUPPER (i))
3860 rm -f conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3873 echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_cv_header_stdc=no
3880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3885 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3886 if test $ac_cv_header_stdc = yes; then
3888 cat >>confdefs.h <<\_ACEOF
3889 #define STDC_HEADERS 1
3894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3905 inttypes.h stdint.h unistd.h
3907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3908 echo "$as_me:$LINENO: checking for $ac_header" >&5
3909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 $ac_includes_default
3921 #include <$ac_header>
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest.$ac_objext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 eval "$as_ac_Header=yes"
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 eval "$as_ac_Header=no"
3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3957 cat >>confdefs.h <<_ACEOF
3958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3974 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3978 echo "$as_me:$LINENO: checking for $ac_header" >&5
3979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3986 # Is the header compilable?
3987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3989 cat >conftest.$ac_ext <<_ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995 $ac_includes_default
3996 #include <$ac_header>
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000 (eval $ac_compile) 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_c_werror_flag"
4008 || test ! -s conftest.err'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; } &&
4014 { ac_try='test -s conftest.$ac_objext'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_header_compiler=yes
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_header_compiler=no
4027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4029 echo "${ECHO_T}$ac_header_compiler" >&6
4031 # Is the header present?
4032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 #include <$ac_header>
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045 grep -v '^ *+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059 if test -z "$ac_cpp_err"; then
4060 ac_header_preproc=yes
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_header_preproc=no
4067 rm -f conftest.err conftest.$ac_ext
4068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4069 echo "${ECHO_T}$ac_header_preproc" >&6
4071 # So? What about this header?
4072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4078 ac_header_preproc=yes
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4095 ## --------------------------------- ##
4096 ## Report this to the libssp lists. ##
4097 ## --------------------------------- ##
4100 sed "s/^/$as_me: WARNING: /" >&2
4103 echo "$as_me:$LINENO: checking for $ac_header" >&5
4104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 eval "$as_ac_Header=\$ac_header_preproc"
4110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4115 cat >>confdefs.h <<_ACEOF
4116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4124 if test x$gcc_no_link = xyes; then
4125 # Presume the ISO C functions are available; add target-specific
4126 # configuration here if required.
4127 cat >>confdefs.h <<\_ACEOF
4128 #define HAVE_STRNCPY 1
4131 cat >>confdefs.h <<\_ACEOF
4132 #define HAVE_STRNCAT 1
4139 for ac_func in mempcpy strncpy strncat
4141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4142 echo "$as_me:$LINENO: checking for $ac_func" >&5
4143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4144 if eval "test \"\${$as_ac_var+set}\" = set"; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test x$gcc_no_link = xyes; then
4148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4150 { (exit 1); exit 1; }; }
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4160 #define $ac_func innocuous_$ac_func
4162 /* System header to define __stub macros and hopefully few prototypes,
4163 which can conflict with char $ac_func (); below.
4164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165 <limits.h> exists even on freestanding compilers. */
4168 # include <limits.h>
4170 # include <assert.h>
4175 /* Override any gcc2 internal prototype to avoid an error. */
4180 /* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
4183 /* The GNU C library defines this for functions which it implements
4184 to always fail with ENOSYS. Some functions are actually named
4185 something starting with __ and the normal name is an alias. */
4186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4189 char (*f) () = $ac_func;
4198 return f != $ac_func;
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag"
4213 || test ! -s conftest.err'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 eval "$as_ac_var=yes"
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 eval "$as_ac_var=no"
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4237 if test `eval echo '${'$as_ac_var'}'` = yes; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4247 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4248 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4249 if test "$cross_compiling" = yes; then
4250 ssp_have_usable_vsnprintf=undef
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4262 int foo (char *buf, size_t n, const char *fmt, ...)
4267 ret = vsnprintf (buf, n, fmt, ap);
4274 char buf[8]; memset (buf, 'A', sizeof (buf));
4275 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4277 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4282 rm -f conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ssp_have_usable_vsnprintf=define
4295 echo "$as_me: program exited with status $ac_status" >&5
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4300 ssp_have_usable_vsnprintf=undef
4302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4304 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4305 echo "$as_me:$LINENO: result: yes" >&5
4306 echo "${ECHO_T}yes" >&6
4308 cat >>confdefs.h <<\_ACEOF
4309 #define HAVE_USABLE_VSNPRINTF 1
4313 echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4320 macro_version='2.1a'
4321 macro_revision='1.2435'
4334 ltmain="$ac_aux_dir/ltmain.sh"
4344 # Check whether --enable-shared or --disable-shared was given.
4345 if test "${enable_shared+set}" = set; then
4346 enableval="$enable_shared"
4347 p=${PACKAGE-default}
4349 yes) enable_shared=yes ;;
4350 no) enable_shared=no ;;
4353 # Look at the argument we got. We use all the common list separators.
4354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4355 for pkg in $enableval; do
4357 if test "X$pkg" = "X$p"; then
4375 # Check whether --enable-static or --disable-static was given.
4376 if test "${enable_static+set}" = set; then
4377 enableval="$enable_static"
4378 p=${PACKAGE-default}
4380 yes) enable_static=yes ;;
4381 no) enable_static=no ;;
4384 # Look at the argument we got. We use all the common list separators.
4385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4386 for pkg in $enableval; do
4388 if test "X$pkg" = "X$p"; then
4407 # Check whether --with-pic or --without-pic was given.
4408 if test "${with_pic+set}" = set; then