* fold-const.c (add_double): Rename to add_double_with_sign.
[official-gcc.git] / libssp / configure
blob38f5b3ca3564fb9efdcb79f18df1b76290836f12
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libssp 1.0.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libssp'
269 PACKAGE_TARNAME='libssp'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='libssp 1.0'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="ssp.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 LN_S RANLIB ac_ct_RANLIB LIBTOOL enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
763 # Report the --help message.
765 if test "$ac_init_help" = "long"; then
766 # Omit some internal or obsolete options to make the list less imposing.
767 # This message is too long to be a string in the A/UX 3.1 sh.
768 cat <<_ACEOF
769 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
771 Usage: $0 [OPTION]... [VAR=VALUE]...
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE. See below for descriptions of some of the useful variables.
776 Defaults for the options are specified in brackets.
778 Configuration:
779 -h, --help display this help and exit
780 --help=short display options specific to this package
781 --help=recursive display the short help of all the included packages
782 -V, --version display version information and exit
783 -q, --quiet, --silent do not print \`checking...' messages
784 --cache-file=FILE cache test results in FILE [disabled]
785 -C, --config-cache alias for \`--cache-file=config.cache'
786 -n, --no-create do not create output files
787 --srcdir=DIR find the sources in DIR [configure dir or \`..']
789 _ACEOF
791 cat <<_ACEOF
792 Installation directories:
793 --prefix=PREFIX install architecture-independent files in PREFIX
794 [$ac_default_prefix]
795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
796 [PREFIX]
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
803 For better control, use the options below.
805 Fine tuning of the installation directories:
806 --bindir=DIR user executables [EPREFIX/bin]
807 --sbindir=DIR system admin executables [EPREFIX/sbin]
808 --libexecdir=DIR program executables [EPREFIX/libexec]
809 --datadir=DIR read-only architecture-independent data [PREFIX/share]
810 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
811 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
812 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
813 --libdir=DIR object code libraries [EPREFIX/lib]
814 --includedir=DIR C header files [PREFIX/include]
815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
816 --infodir=DIR info documentation [PREFIX/info]
817 --mandir=DIR man documentation [PREFIX/man]
818 _ACEOF
820 cat <<\_ACEOF
822 Program names:
823 --program-prefix=PREFIX prepend PREFIX to installed program names
824 --program-suffix=SUFFIX append SUFFIX to installed program names
825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
827 System types:
828 --build=BUILD configure for building on BUILD [guessed]
829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
830 --target=TARGET configure for building compilers for TARGET [HOST]
831 _ACEOF
834 if test -n "$ac_init_help"; then
835 case $ac_init_help in
836 short | recursive ) echo "Configuration of libssp 1.0:";;
837 esac
838 cat <<\_ACEOF
840 Optional Features:
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
844 --enable-maintainer-mode enable make rules and dependencies not useful
845 (and sometimes confusing) to the casual installer
846 --enable-multilib build many library versions (default)
847 --disable-dependency-tracking speeds up one-time build
848 --enable-dependency-tracking do not reject slow dependency extractors
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-static=PKGS build static libraries default=yes
851 --enable-fast-install=PKGS optimize for fast installation default=yes
852 --disable-libtool-lock avoid locking (might break parallel builds)
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-gnu-ld assume the C compiler uses GNU ld default=no
858 --with-pic try to use only PIC/non-PIC objects default=use both
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
872 _ACEOF
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 cd $ac_popdir
961 done
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967 libssp configure 1.0
968 generated by GNU Autoconf 2.59
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by libssp $as_me 1.0, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
984 $ $0 $@
986 _ACEOF
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 _ASUNAME
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1020 } >&5
1022 cat >&5 <<_ACEOF
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1029 _ACEOF
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1044 for ac_arg
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1091 echo
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 esac;
1114 echo
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1215 done
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Make sure we can run config.sub.
1344 $ac_config_sub sun4 >/dev/null 2>&1 ||
1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347 { (exit 1); exit 1; }; }
1349 echo "$as_me:$LINENO: checking build system type" >&5
1350 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351 if test "${ac_cv_build+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 ac_cv_build_alias=$build_alias
1355 test -z "$ac_cv_build_alias" &&
1356 ac_cv_build_alias=`$ac_config_guess`
1357 test -z "$ac_cv_build_alias" &&
1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360 { (exit 1); exit 1; }; }
1361 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1367 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368 echo "${ECHO_T}$ac_cv_build" >&6
1369 build=$ac_cv_build
1370 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375 echo "$as_me:$LINENO: checking host system type" >&5
1376 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377 if test "${ac_cv_host+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 ac_cv_host_alias=$host_alias
1381 test -z "$ac_cv_host_alias" &&
1382 ac_cv_host_alias=$ac_cv_build_alias
1383 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386 { (exit 1); exit 1; }; }
1389 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390 echo "${ECHO_T}$ac_cv_host" >&6
1391 host=$ac_cv_host
1392 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 echo "$as_me:$LINENO: checking target system type" >&5
1398 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1399 if test "${ac_cv_target+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_target_alias=$target_alias
1403 test "x$ac_cv_target_alias" = "x" &&
1404 ac_cv_target_alias=$ac_cv_host_alias
1405 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1412 echo "${ECHO_T}$ac_cv_target" >&6
1413 target=$ac_cv_target
1414 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419 # The aliases save the names the user supplied, while $host etc.
1420 # will get canonicalized.
1421 test -n "$target_alias" &&
1422 test "$program_prefix$program_suffix$program_transform_name" = \
1423 NONENONEs,x,x, &&
1424 program_prefix=${target_alias}-
1425 case ${build_alias} in
1426 "") build_noncanonical=${build} ;;
1427 *) build_noncanonical=${build_alias} ;;
1428 esac
1430 case ${host_alias} in
1431 "") host_noncanonical=${build_noncanonical} ;;
1432 *) host_noncanonical=${host_alias} ;;
1433 esac
1435 case ${target_alias} in
1436 "") target_noncanonical=${host_noncanonical} ;;
1437 *) target_noncanonical=${target_alias} ;;
1438 esac
1443 am__api_version="1.9"
1444 # Find a good install program. We prefer a C program (faster),
1445 # so one script is as good as another. But avoid the broken or
1446 # incompatible versions:
1447 # SysV /etc/install, /usr/sbin/install
1448 # SunOS /usr/etc/install
1449 # IRIX /sbin/install
1450 # AIX /bin/install
1451 # AmigaOS /C/install, which installs bootblocks on floppy discs
1452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1455 # OS/2's system install, which has a completely different semantic
1456 # ./install, which can be erroneously created by make from ./install.sh.
1457 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1459 if test -z "$INSTALL"; then
1460 if test "${ac_cv_path_install+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 # Account for people who put trailing slashes in PATH elements.
1469 case $as_dir/ in
1470 ./ | .// | /cC/* | \
1471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1473 /usr/ucb/* ) ;;
1475 # OSF1 and SCO ODT 3.0 have their own names for install.
1476 # Don't use installbsd from OSF since it installs stuff as root
1477 # by default.
1478 for ac_prog in ginstall scoinst install; do
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1481 if test $ac_prog = install &&
1482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1483 # AIX install. It has an incompatible calling convention.
1485 elif test $ac_prog = install &&
1486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1487 # program-specific install script used by HP pwplus--don't use.
1489 else
1490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1491 break 3
1494 done
1495 done
1497 esac
1498 done
1502 if test "${ac_cv_path_install+set}" = set; then
1503 INSTALL=$ac_cv_path_install
1504 else
1505 # As a last resort, use the slow shell script. We don't cache a
1506 # path for INSTALL within a source directory, because that will
1507 # break other packages using the cache if that directory is
1508 # removed, or if the path is relative.
1509 INSTALL=$ac_install_sh
1512 echo "$as_me:$LINENO: result: $INSTALL" >&5
1513 echo "${ECHO_T}$INSTALL" >&6
1515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1516 # It thinks the first close brace ends the variable substitution.
1517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1523 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1524 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1525 # Just in case
1526 sleep 1
1527 echo timestamp > conftest.file
1528 # Do `set' in a subshell so we don't clobber the current shell's
1529 # arguments. Must try -L first in case configure is actually a
1530 # symlink; some systems play weird games with the mod time of symlinks
1531 # (eg FreeBSD returns the mod time of the symlink's containing
1532 # directory).
1533 if (
1534 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1535 if test "$*" = "X"; then
1536 # -L didn't work.
1537 set X `ls -t $srcdir/configure conftest.file`
1539 rm -f conftest.file
1540 if test "$*" != "X $srcdir/configure conftest.file" \
1541 && test "$*" != "X conftest.file $srcdir/configure"; then
1543 # If neither matched, then we have a broken ls. This can happen
1544 # if, for instance, CONFIG_SHELL is bash and it inherits a
1545 # broken ls alias from the environment. This has actually
1546 # happened. Such a system could not be considered "sane".
1547 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1548 alias in your environment" >&5
1549 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1550 alias in your environment" >&2;}
1551 { (exit 1); exit 1; }; }
1554 test "$2" = conftest.file
1556 then
1557 # Ok.
1559 else
1560 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1561 Check your system clock" >&5
1562 echo "$as_me: error: newly created file is older than distributed files!
1563 Check your system clock" >&2;}
1564 { (exit 1); exit 1; }; }
1566 echo "$as_me:$LINENO: result: yes" >&5
1567 echo "${ECHO_T}yes" >&6
1568 test "$program_prefix" != NONE &&
1569 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1570 # Use a double $ so make ignores it.
1571 test "$program_suffix" != NONE &&
1572 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1573 # Double any \ or $. echo might interpret backslashes.
1574 # By default was `s,x,x', remove it if useless.
1575 cat <<\_ACEOF >conftest.sed
1576 s/[\\$]/&&/g;s/;s,x,x,$//
1577 _ACEOF
1578 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1579 rm conftest.sed
1581 # expand $ac_aux_dir to an absolute path
1582 am_aux_dir=`cd $ac_aux_dir && pwd`
1584 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1585 # Use eval to expand $SHELL
1586 if eval "$MISSING --run true"; then
1587 am_missing_run="$MISSING --run "
1588 else
1589 am_missing_run=
1590 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1591 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1594 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1595 # We used to keeping the `.' as first argument, in order to
1596 # allow $(mkdir_p) to be used without argument. As in
1597 # $(mkdir_p) $(somedir)
1598 # where $(somedir) is conditionally defined. However this is wrong
1599 # for two reasons:
1600 # 1. if the package is installed by a user who cannot write `.'
1601 # make install will fail,
1602 # 2. the above comment should most certainly read
1603 # $(mkdir_p) $(DESTDIR)$(somedir)
1604 # so it does not work when $(somedir) is undefined and
1605 # $(DESTDIR) is not.
1606 # To support the latter case, we have to write
1607 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1608 # so the `.' trick is pointless.
1609 mkdir_p='mkdir -p --'
1610 else
1611 # On NextStep and OpenStep, the `mkdir' command does not
1612 # recognize any option. It will interpret all options as
1613 # directories to create, and then abort because `.' already
1614 # exists.
1615 for d in ./-p ./--version;
1617 test -d $d && rmdir $d
1618 done
1619 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1620 if test -f "$ac_aux_dir/mkinstalldirs"; then
1621 mkdir_p='$(mkinstalldirs)'
1622 else
1623 mkdir_p='$(install_sh) -d'
1627 for ac_prog in gawk mawk nawk awk
1629 # Extract the first word of "$ac_prog", so it can be a program name with args.
1630 set dummy $ac_prog; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_AWK+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 if test -n "$AWK"; then
1637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_AWK="$ac_prog"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1650 done
1651 done
1655 AWK=$ac_cv_prog_AWK
1656 if test -n "$AWK"; then
1657 echo "$as_me:$LINENO: result: $AWK" >&5
1658 echo "${ECHO_T}$AWK" >&6
1659 else
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$AWK" && break
1665 done
1667 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1668 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1669 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1670 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673 cat >conftest.make <<\_ACEOF
1674 all:
1675 @echo 'ac_maketemp="$(MAKE)"'
1676 _ACEOF
1677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1678 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1679 if test -n "$ac_maketemp"; then
1680 eval ac_cv_prog_make_${ac_make}_set=yes
1681 else
1682 eval ac_cv_prog_make_${ac_make}_set=no
1684 rm -f conftest.make
1686 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 SET_MAKE=
1690 else
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 SET_MAKE="MAKE=${MAKE-make}"
1696 rm -rf .tst 2>/dev/null
1697 mkdir .tst 2>/dev/null
1698 if test -d .tst; then
1699 am__leading_dot=.
1700 else
1701 am__leading_dot=_
1703 rmdir .tst 2>/dev/null
1705 # test to see if srcdir already configured
1706 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1707 test -f $srcdir/config.status; then
1708 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1709 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1710 { (exit 1); exit 1; }; }
1713 # test whether we have cygpath
1714 if test -z "$CYGPATH_W"; then
1715 if (cygpath --version) >/dev/null 2>/dev/null; then
1716 CYGPATH_W='cygpath -w'
1717 else
1718 CYGPATH_W=echo
1723 # Define the identity of the package.
1724 PACKAGE='libssp'
1725 VERSION='1.0'
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE "$PACKAGE"
1730 _ACEOF
1733 cat >>confdefs.h <<_ACEOF
1734 #define VERSION "$VERSION"
1735 _ACEOF
1737 # Some tools Automake needs.
1739 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1742 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1745 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1748 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1751 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1753 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1755 # Installed binaries are usually stripped using `strip' when the user
1756 # run `make install-strip'. However `strip' might not be the right
1757 # tool to use in cross-compilation environments, therefore Automake
1758 # will honor the `STRIP' environment variable to overrule this program.
1759 if test "$cross_compiling" != no; then
1760 if test -n "$ac_tool_prefix"; then
1761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1762 set dummy ${ac_tool_prefix}strip; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_STRIP+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$STRIP"; then
1769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1770 else
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 break 2
1782 done
1783 done
1787 STRIP=$ac_cv_prog_STRIP
1788 if test -n "$STRIP"; then
1789 echo "$as_me:$LINENO: result: $STRIP" >&5
1790 echo "${ECHO_T}$STRIP" >&6
1791 else
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$ac_cv_prog_STRIP"; then
1798 ac_ct_STRIP=$STRIP
1799 # Extract the first word of "strip", so it can be a program name with args.
1800 set dummy strip; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 if test -n "$ac_ct_STRIP"; then
1807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1812 IFS=$as_save_IFS
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_STRIP="strip"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1820 done
1821 done
1823 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1827 if test -n "$ac_ct_STRIP"; then
1828 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1829 echo "${ECHO_T}$ac_ct_STRIP" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1835 STRIP=$ac_ct_STRIP
1836 else
1837 STRIP="$ac_cv_prog_STRIP"
1841 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1843 # We need awk for the "check" target. The system "awk" is bad on
1844 # some platforms.
1845 # Always define AMTAR for backward compatibility.
1847 AMTAR=${AMTAR-"${am_missing_run}tar"}
1849 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1856 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1857 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1858 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1859 if test "${enable_version_specific_runtime_libs+set}" = set; then
1860 enableval="$enable_version_specific_runtime_libs"
1861 case "$enableval" in
1862 yes) version_specific_libs=yes ;;
1863 no) version_specific_libs=no ;;
1864 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1865 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1866 { (exit 1); exit 1; }; };;
1867 esac
1868 else
1869 version_specific_libs=no
1871 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1872 echo "${ECHO_T}$version_specific_libs" >&6
1874 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1875 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1876 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1877 if test "${enable_maintainer_mode+set}" = set; then
1878 enableval="$enable_maintainer_mode"
1879 USE_MAINTAINER_MODE=$enableval
1880 else
1881 USE_MAINTAINER_MODE=no
1883 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1884 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1887 if test $USE_MAINTAINER_MODE = yes; then
1888 MAINTAINER_MODE_TRUE=
1889 MAINTAINER_MODE_FALSE='#'
1890 else
1891 MAINTAINER_MODE_TRUE='#'
1892 MAINTAINER_MODE_FALSE=
1895 MAINT=$MAINTAINER_MODE_TRUE
1901 # Default to --enable-multilib
1902 # Check whether --enable-multilib or --disable-multilib was given.
1903 if test "${enable_multilib+set}" = set; then
1904 enableval="$enable_multilib"
1905 case "$enableval" in
1906 yes) multilib=yes ;;
1907 no) multilib=no ;;
1908 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1909 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1910 { (exit 1); exit 1; }; } ;;
1911 esac
1912 else
1913 multilib=yes
1916 # We may get other options which we leave undocumented:
1917 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1918 # See config-ml.in if you want the gory details.
1920 if test "$srcdir" = "."; then
1921 if test "$with_target_subdir" != "."; then
1922 multi_basedir="$srcdir/$with_multisrctop../.."
1923 else
1924 multi_basedir="$srcdir/$with_multisrctop.."
1926 else
1927 multi_basedir="$srcdir/.."
1931 # Even if the default multilib is not a cross compilation,
1932 # it may be that some of the other multilibs are.
1933 if test $cross_compiling = no && test $multilib = yes \
1934 && test "x${with_multisubdir}" != x ; then
1935 cross_compiling=maybe
1938 ac_config_commands="$ac_config_commands default-1"
1941 target_alias=${target_alias-$host_alias}
1944 ac_config_headers="$ac_config_headers config.h"
1947 ac_ext=c
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1954 # We must force CC to /not/ be precious variables; otherwise
1955 # the wrong, non-multilib-adjusted value will be used in multilibs.
1956 # As a side effect, we have to subst CFLAGS ourselves.
1960 ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1987 done
1988 done
1992 CC=$ac_cv_prog_CC
1993 if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6
1996 else
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2002 if test -z "$ac_cv_prog_CC"; then
2003 ac_ct_CC=$CC
2004 # Extract the first word of "gcc", so it can be a program name with args.
2005 set dummy gcc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_ac_ct_CC="gcc"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 break 2
2025 done
2026 done
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6
2034 else
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 CC=$ac_ct_CC
2040 else
2041 CC="$ac_cv_prog_CC"
2044 if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047 set dummy ${ac_tool_prefix}cc; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2072 CC=$ac_cv_prog_CC
2073 if test -n "$CC"; then
2074 echo "$as_me:$LINENO: result: $CC" >&5
2075 echo "${ECHO_T}$CC" >&6
2076 else
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2082 if test -z "$ac_cv_prog_CC"; then
2083 ac_ct_CC=$CC
2084 # Extract the first word of "cc", so it can be a program name with args.
2085 set dummy cc; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101 ac_cv_prog_ac_ct_CC="cc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2105 done
2106 done
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2114 else
2115 echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2119 CC=$ac_ct_CC
2120 else
2121 CC="$ac_cv_prog_CC"
2125 if test -z "$CC"; then
2126 # Extract the first word of "cc", so it can be a program name with args.
2127 set dummy cc; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 ac_prog_rejected=no
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145 ac_prog_rejected=yes
2146 continue
2148 ac_cv_prog_CC="cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2155 if test $ac_prog_rejected = yes; then
2156 # We found a bogon in the path, so make sure we never use it.
2157 set dummy $ac_cv_prog_CC
2158 shift
2159 if test $# != 0; then
2160 # We chose a different compiler from the bogus one.
2161 # However, it has the same basename, so the bogon will be chosen
2162 # first if we set CC to just the basename; use the full file name.
2163 shift
2164 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2169 CC=$ac_cv_prog_CC
2170 if test -n "$CC"; then
2171 echo "$as_me:$LINENO: result: $CC" >&5
2172 echo "${ECHO_T}$CC" >&6
2173 else
2174 echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2179 if test -z "$CC"; then
2180 if test -n "$ac_tool_prefix"; then
2181 for ac_prog in cl
2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2204 done
2205 done
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2218 test -n "$CC" && break
2219 done
2221 if test -z "$CC"; then
2222 ac_ct_CC=$CC
2223 for ac_prog in cl
2225 # Extract the first word of "$ac_prog", so it can be a program name with args.
2226 set dummy $ac_prog; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 if test -n "$ac_ct_CC"; then
2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242 ac_cv_prog_ac_ct_CC="$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2246 done
2247 done
2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252 if test -n "$ac_ct_CC"; then
2253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254 echo "${ECHO_T}$ac_ct_CC" >&6
2255 else
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2260 test -n "$ac_ct_CC" && break
2261 done
2263 CC=$ac_ct_CC
2269 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2275 # Provide some information about the compiler.
2276 echo "$as_me:$LINENO:" \
2277 "checking for C compiler version" >&5
2278 ac_compiler=`set X $ac_compile; echo $2`
2279 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280 (eval $ac_compiler --version </dev/null >&5) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285 (eval $ac_compiler -v </dev/null >&5) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }
2289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290 (eval $ac_compiler -V </dev/null >&5) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h. */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2303 main ()
2307 return 0;
2309 _ACEOF
2310 # FIXME: Cleanup?
2311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2312 (eval $ac_link) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
2316 gcc_no_link=no
2317 else
2318 gcc_no_link=yes
2321 if test x$gcc_no_link = xyes; then
2322 # Setting cross_compile will disable run tests; it will
2323 # also disable AC_CHECK_FILE but that's generally
2324 # correct if we can't link.
2325 cross_compiling=yes
2326 EXEEXT=
2327 else
2328 cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h. */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2336 main ()
2340 return 0;
2342 _ACEOF
2343 ac_clean_files_save=$ac_clean_files
2344 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2345 # Try to create an executable without -o first, disregard a.out.
2346 # It will help us diagnose broken compilers, and finding out an intuition
2347 # of exeext.
2348 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2349 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2350 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2351 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2352 (eval $ac_link_default) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # Find the output, starting from the most likely. This scheme is
2357 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2358 # resort.
2360 # Be careful to initialize this variable, since it used to be cached.
2361 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2362 ac_cv_exeext=
2363 # b.out is created by i960 compilers.
2364 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2366 test -f "$ac_file" || continue
2367 case $ac_file in
2368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2370 conftest.$ac_ext )
2371 # This is the source file.
2373 [ab].out )
2374 # We found the default executable, but exeext='' is most
2375 # certainly right.
2376 break;;
2377 *.* )
2378 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379 # FIXME: I believe we export ac_cv_exeext for Libtool,
2380 # but it would be cool to find out if it's true. Does anybody
2381 # maintain Libtool? --akim.
2382 export ac_cv_exeext
2383 break;;
2385 break;;
2386 esac
2387 done
2388 else
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2393 See \`config.log' for more details." >&5
2394 echo "$as_me: error: C compiler cannot create executables
2395 See \`config.log' for more details." >&2;}
2396 { (exit 77); exit 77; }; }
2399 ac_exeext=$ac_cv_exeext
2400 echo "$as_me:$LINENO: result: $ac_file" >&5
2401 echo "${ECHO_T}$ac_file" >&6
2403 # Check the compiler produces executables we can run. If not, either
2404 # the compiler is broken, or we cross compile.
2405 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2406 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2407 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2408 # If not cross compiling, check that we can run a simple program.
2409 if test "$cross_compiling" != yes; then
2410 if { ac_try='./$ac_file'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 cross_compiling=no
2417 else
2418 if test "$cross_compiling" = maybe; then
2419 cross_compiling=yes
2420 else
2421 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2431 echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6
2434 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check the compiler produces executables we can run. If not, either
2437 # the compiler is broken, or we cross compile.
2438 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2440 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441 echo "${ECHO_T}$cross_compiling" >&6
2443 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2451 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2452 # work properly (i.e., refer to `conftest.exe'), while it won't with
2453 # `rm'.
2454 for ac_file in conftest.exe conftest conftest.*; do
2455 test -f "$ac_file" || continue
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 export ac_cv_exeext
2460 break;;
2461 * ) break;;
2462 esac
2463 done
2464 else
2465 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2472 rm -f conftest$ac_cv_exeext
2473 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474 echo "${ECHO_T}$ac_cv_exeext" >&6
2476 rm -f conftest.$ac_ext
2477 EXEEXT=$ac_cv_exeext
2478 ac_exeext=$EXEEXT
2480 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2482 if test "${ac_cv_objext+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2493 main ()
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.o conftest.obj
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; then
2506 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2507 case $ac_file in
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2510 break;;
2511 esac
2512 done
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&2;}
2521 { (exit 1); exit 1; }; }
2524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2526 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2527 echo "${ECHO_T}$ac_cv_objext" >&6
2528 OBJEXT=$ac_cv_objext
2529 ac_objext=$OBJEXT
2530 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2531 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2532 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2543 main ()
2545 #ifndef __GNUC__
2546 choke me
2547 #endif
2550 return 0;
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 ac_compiler_gnu=yes
2576 else
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 ac_compiler_gnu=no
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2586 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2588 GCC=`test $ac_compiler_gnu = yes && echo yes`
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 CFLAGS="-g"
2592 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2594 if test "${ac_cv_prog_cc_g+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2605 main ()
2609 return 0;
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2615 ac_status=$?
2616 grep -v '^ *+' conftest.er1 >conftest.err
2617 rm -f conftest.er1
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 ac_cv_prog_cc_g=yes
2635 else
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 ac_cv_prog_cc_g=no
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
2650 else
2651 CFLAGS="-g"
2653 else
2654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
2656 else
2657 CFLAGS=
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 ac_cv_prog_cc_stdc=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h. */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681 char **p;
2682 int i;
2684 return p[i];
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2688 char *s;
2689 va_list v;
2690 va_start (v,p);
2691 s = g (p, va_arg (v,int));
2692 va_end (v);
2693 return s;
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std1 is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std1. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 int argc;
2710 char **argv;
2712 main ()
2714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 return 0;
2718 _ACEOF
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX -qlanglvl=ansi
2722 # Ultrix and OSF/1 -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions -Aa -D_HPUX_SOURCE
2725 # SVR4 -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_stdc=$ac_arg
2752 break
2753 else
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext
2759 done
2760 rm -f conftest.$ac_ext conftest.$ac_objext
2761 CC=$ac_save_CC
2765 case "x$ac_cv_prog_cc_stdc" in
2766 x|xno)
2767 echo "$as_me:$LINENO: result: none needed" >&5
2768 echo "${ECHO_T}none needed" >&6 ;;
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2771 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2772 CC="$CC $ac_cv_prog_cc_stdc" ;;
2773 esac
2775 # Some people use a C++ compiler to compile C. Since we use `exit',
2776 # in C++ we need to declare it. In case someone uses the same compiler
2777 # for both compiling C and C++ we need to have the C++ compiler decide
2778 # the declaration of exit, since it's the most demanding environment.
2779 cat >conftest.$ac_ext <<_ACEOF
2780 #ifndef __cplusplus
2781 choke me
2782 #endif
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>conftest.er1
2787 ac_status=$?
2788 grep -v '^ *+' conftest.er1 >conftest.err
2789 rm -f conftest.er1
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -z "$ac_c_werror_flag"
2794 || test ! -s conftest.err'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 for ac_declaration in \
2807 '' \
2808 'extern "C" void std::exit (int) throw (); using std::exit;' \
2809 'extern "C" void std::exit (int); using std::exit;' \
2810 'extern "C" void exit (int) throw ();' \
2811 'extern "C" void exit (int);' \
2812 'void exit (int);'
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h. */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 $ac_declaration
2821 #include <stdlib.h>
2823 main ()
2825 exit (42);
2827 return 0;
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -z "$ac_c_werror_flag"
2840 || test ! -s conftest.err'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 continue
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 $ac_declaration
2868 main ()
2870 exit (42);
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_c_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 break
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 done
2905 rm -f conftest*
2906 if test -n "$ac_declaration"; then
2907 echo '#ifdef __cplusplus' >>confdefs.h
2908 echo $ac_declaration >>confdefs.h
2909 echo '#endif' >>confdefs.h
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923 DEPDIR="${am__leading_dot}deps"
2925 ac_config_commands="$ac_config_commands depfiles"
2928 am_make=${MAKE-make}
2929 cat > confinc << 'END'
2930 am__doit:
2931 @echo done
2932 .PHONY: am__doit
2934 # If we don't find an include directive, just comment out the code.
2935 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2936 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2937 am__include="#"
2938 am__quote=
2939 _am_result=none
2940 # First try GNU make style include.
2941 echo "include confinc" > confmf
2942 # We grep out `Entering directory' and `Leaving directory'
2943 # messages which can occur if `w' ends up in MAKEFLAGS.
2944 # In particular we don't look at `^make:' because GNU make might
2945 # be invoked under some other name (usually "gmake"), in which
2946 # case it prints its new name instead of `make'.
2947 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2948 am__include=include
2949 am__quote=
2950 _am_result=GNU
2952 # Now try BSD make style include.
2953 if test "$am__include" = "#"; then
2954 echo '.include "confinc"' > confmf
2955 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2956 am__include=.include
2957 am__quote="\""
2958 _am_result=BSD
2963 echo "$as_me:$LINENO: result: $_am_result" >&5
2964 echo "${ECHO_T}$_am_result" >&6
2965 rm -f confinc confmf
2967 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2968 if test "${enable_dependency_tracking+set}" = set; then
2969 enableval="$enable_dependency_tracking"
2972 if test "x$enable_dependency_tracking" != xno; then
2973 am_depcomp="$ac_aux_dir/depcomp"
2974 AMDEPBACKSLASH='\'
2978 if test "x$enable_dependency_tracking" != xno; then
2979 AMDEP_TRUE=
2980 AMDEP_FALSE='#'
2981 else
2982 AMDEP_TRUE='#'
2983 AMDEP_FALSE=
2989 depcc="$CC" am_compiler_list=
2991 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2992 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2993 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2997 # We make a subdir and do the tests there. Otherwise we can end up
2998 # making bogus files that we don't know about and never remove. For
2999 # instance it was reported that on HP-UX the gcc test will end up
3000 # making a dummy file named `D' -- because `-MD' means `put the output
3001 # in D'.
3002 mkdir conftest.dir
3003 # Copy depcomp to subdir because otherwise we won't find it if we're
3004 # using a relative directory.
3005 cp "$am_depcomp" conftest.dir
3006 cd conftest.dir
3007 # We will build objects and dependencies in a subdirectory because
3008 # it helps to detect inapplicable dependency modes. For instance
3009 # both Tru64's cc and ICC support -MD to output dependencies as a
3010 # side effect of compilation, but ICC will put the dependencies in
3011 # the current directory while Tru64 will put them in the object
3012 # directory.
3013 mkdir sub
3015 am_cv_CC_dependencies_compiler_type=none
3016 if test "$am_compiler_list" = ""; then
3017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3019 for depmode in $am_compiler_list; do
3020 # Setup a source with many dependencies, because some compilers
3021 # like to wrap large dependency lists on column 80 (with \), and
3022 # we should not choose a depcomp mode which is confused by this.
3024 # We need to recreate these files for each test, as the compiler may
3025 # overwrite some of them when testing with obscure command lines.
3026 # This happens at least with the AIX C compiler.
3027 : > sub/conftest.c
3028 for i in 1 2 3 4 5 6; do
3029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3031 # Solaris 8's {/usr,}/bin/sh.
3032 touch sub/conftst$i.h
3033 done
3034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3036 case $depmode in
3037 nosideeffect)
3038 # after this tag, mechanisms are not by side-effect, so they'll
3039 # only be used when explicitly requested
3040 if test "x$enable_dependency_tracking" = xyes; then
3041 continue
3042 else
3043 break
3046 none) break ;;
3047 esac
3048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3049 # mode. It turns out that the SunPro C++ compiler does not properly
3050 # handle `-M -o', and we need to detect this.
3051 if depmode=$depmode \
3052 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3054 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3055 >/dev/null 2>conftest.err &&
3056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3057 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3059 # icc doesn't choke on unknown options, it will just issue warnings
3060 # or remarks (even with -Werror). So we grep stderr for any message
3061 # that says an option was ignored or not supported.
3062 # When given -MP, icc 7.0 and 7.1 complain thusly:
3063 # icc: Command line warning: ignoring option '-M'; no argument required
3064 # The diagnosis changed in icc 8.0:
3065 # icc: Command line remark: option '-MP' not supported
3066 if (grep 'ignoring option' conftest.err ||
3067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3068 am_cv_CC_dependencies_compiler_type=$depmode
3069 break
3072 done
3074 cd ..
3075 rm -rf conftest.dir
3076 else
3077 am_cv_CC_dependencies_compiler_type=none
3081 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3082 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3083 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3088 test "x$enable_dependency_tracking" != xno \
3089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3090 am__fastdepCC_TRUE=
3091 am__fastdepCC_FALSE='#'
3092 else
3093 am__fastdepCC_TRUE='#'
3094 am__fastdepCC_FALSE=
3102 if test "x$GCC" != "xyes"; then
3103 { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3104 echo "$as_me: error: libssp must be built with GCC" >&2;}
3105 { (exit 1); exit 1; }; }
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3113 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3114 # On Suns, sometimes $CPP names a directory.
3115 if test -n "$CPP" && test -d "$CPP"; then
3116 CPP=
3118 if test -z "$CPP"; then
3119 if test "${ac_cv_prog_CPP+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 # Double quotes because CPP needs to be expanded
3123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3125 ac_preproc_ok=false
3126 for ac_c_preproc_warn_flag in '' yes
3128 # Use a header file that comes with gcc, so configuring glibc
3129 # with a fresh cross-compiler works.
3130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131 # <limits.h> exists even on freestanding compilers.
3132 # On the NeXT, cc -E runs the code through the compiler's parser,
3133 # not just through cpp. "Syntax error" is here to catch this case.
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140 #ifdef __STDC__
3141 # include <limits.h>
3142 #else
3143 # include <assert.h>
3144 #endif
3145 Syntax error
3146 _ACEOF
3147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } >/dev/null; then
3155 if test -s conftest.err; then
3156 ac_cpp_err=$ac_c_preproc_warn_flag
3157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158 else
3159 ac_cpp_err=
3161 else
3162 ac_cpp_err=yes
3164 if test -z "$ac_cpp_err"; then
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 # Broken: fails on valid input.
3171 continue
3173 rm -f conftest.err conftest.$ac_ext
3175 # OK, works on sane cases. Now check whether non-existent headers
3176 # can be detected and how.
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183 #include <ac_nonexistent.h>
3184 _ACEOF
3185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } >/dev/null; then
3193 if test -s conftest.err; then
3194 ac_cpp_err=$ac_c_preproc_warn_flag
3195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3196 else
3197 ac_cpp_err=
3199 else
3200 ac_cpp_err=yes
3202 if test -z "$ac_cpp_err"; then
3203 # Broken: success on invalid input.
3204 continue
3205 else
3206 echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3209 # Passes both tests.
3210 ac_preproc_ok=:
3211 break
3213 rm -f conftest.err conftest.$ac_ext
3215 done
3216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217 rm -f conftest.err conftest.$ac_ext
3218 if $ac_preproc_ok; then
3219 break
3222 done
3223 ac_cv_prog_CPP=$CPP
3226 CPP=$ac_cv_prog_CPP
3227 else
3228 ac_cv_prog_CPP=$CPP
3230 echo "$as_me:$LINENO: result: $CPP" >&5
3231 echo "${ECHO_T}$CPP" >&6
3232 ac_preproc_ok=false
3233 for ac_c_preproc_warn_flag in '' yes
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247 #ifdef __STDC__
3248 # include <limits.h>
3249 #else
3250 # include <assert.h>
3251 #endif
3252 Syntax error
3253 _ACEOF
3254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265 else
3266 ac_cpp_err=
3268 else
3269 ac_cpp_err=yes
3271 if test -z "$ac_cpp_err"; then
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 # Broken: fails on valid input.
3278 continue
3280 rm -f conftest.err conftest.$ac_ext
3282 # OK, works on sane cases. Now check whether non-existent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include <ac_nonexistent.h>
3291 _ACEOF
3292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 else
3304 ac_cpp_err=
3306 else
3307 ac_cpp_err=yes
3309 if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311 continue
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 # Passes both tests.
3317 ac_preproc_ok=:
3318 break
3320 rm -f conftest.err conftest.$ac_ext
3322 done
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3327 else
3328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3329 See \`config.log' for more details." >&5
3330 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3331 See \`config.log' for more details." >&2;}
3332 { (exit 1); exit 1; }; }
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3343 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3344 save_CFLAGS="$CFLAGS"
3345 CFLAGS="$CFLAGS -fstack-protector -Werror"
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 void __attribute__((noinline)) bar (char *x)
3356 __builtin_memset (x, 0, 64);
3359 main ()
3361 char buf[64]; bar (buf);
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389 echo "${ECHO_T}yes" >&6
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398 CFLAGS="$save_CFLAGS"
3400 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3401 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3409 void __attribute__((visibility ("hidden"))) bar (void) {}
3411 main ()
3415 return 0;
3417 _ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -z "$ac_c_werror_flag"
3428 || test ! -s conftest.err'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ssp_hidden=yes
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 ssp_hidden=no
3447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3448 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3449 echo "${ECHO_T}$ssp_hidden" >&6
3450 if test x$ssp_hidden = xyes; then
3452 cat >>confdefs.h <<\_ACEOF
3453 #define HAVE_HIDDEN_VISIBILITY 1
3454 _ACEOF
3458 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3459 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3460 cat > conftest.map <<EOF
3461 FOO_1.0 {
3462 global: *foo*; bar; local: *;
3465 save_LDFLAGS="$LDFLAGS"
3466 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3467 if test x$gcc_no_link = xyes; then
3468 # If we cannot link, we cannot build shared libraries, so do not use
3469 # symbol versioning.
3470 ssp_use_symver=no
3471 else
3472 if test x$gcc_no_link = xyes; then
3473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3475 { (exit 1); exit 1; }; }
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 int foo;
3485 main ()
3489 return 0;
3491 _ACEOF
3492 rm -f conftest.$ac_objext conftest$ac_exeext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3494 (eval $ac_link) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest$ac_exeext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ssp_use_symver=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ssp_use_symver=no
3521 rm -f conftest.err conftest.$ac_objext \
3522 conftest$ac_exeext conftest.$ac_ext
3524 LDFLAGS="$save_LDFLAGS"
3525 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3526 echo "${ECHO_T}$ssp_use_symver" >&6
3529 if test "x$ssp_use_symver" = xyes; then
3530 LIBSSP_USE_SYMVER_TRUE=
3531 LIBSSP_USE_SYMVER_FALSE='#'
3532 else
3533 LIBSSP_USE_SYMVER_TRUE='#'
3534 LIBSSP_USE_SYMVER_FALSE=
3539 echo "$as_me:$LINENO: checking for egrep" >&5
3540 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3541 if test "${ac_cv_prog_egrep+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3545 then ac_cv_prog_egrep='grep -E'
3546 else ac_cv_prog_egrep='egrep'
3549 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3550 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3551 EGREP=$ac_cv_prog_egrep
3554 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3555 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3556 if test "${ac_cv_header_stdc+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <stdlib.h>
3566 #include <stdarg.h>
3567 #include <string.h>
3568 #include <float.h>
3571 main ()
3575 return 0;
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580 (eval $ac_compile) 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -z "$ac_c_werror_flag"
3588 || test ! -s conftest.err'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; } &&
3594 { ac_try='test -s conftest.$ac_objext'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 (eval $ac_try) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 ac_cv_header_stdc=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 ac_cv_header_stdc=no
3607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 if test $ac_cv_header_stdc = yes; then
3610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <string.h>
3619 _ACEOF
3620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621 $EGREP "memchr" >/dev/null 2>&1; then
3623 else
3624 ac_cv_header_stdc=no
3626 rm -f conftest*
3630 if test $ac_cv_header_stdc = yes; then
3631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <stdlib.h>
3640 _ACEOF
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 $EGREP "free" >/dev/null 2>&1; then
3644 else
3645 ac_cv_header_stdc=no
3647 rm -f conftest*
3651 if test $ac_cv_header_stdc = yes; then
3652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3653 if test "$cross_compiling" = yes; then
3655 else
3656 cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h. */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <ctype.h>
3663 #if ((' ' & 0x0FF) == 0x020)
3664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3666 #else
3667 # define ISLOWER(c) \
3668 (('a' <= (c) && (c) <= 'i') \
3669 || ('j' <= (c) && (c) <= 'r') \
3670 || ('s' <= (c) && (c) <= 'z'))
3671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3672 #endif
3674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3676 main ()
3678 int i;
3679 for (i = 0; i < 256; i++)
3680 if (XOR (islower (i), ISLOWER (i))
3681 || toupper (i) != TOUPPER (i))
3682 exit(2);
3683 exit (0);
3685 _ACEOF
3686 rm -f conftest$ac_exeext
3687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3688 (eval $ac_link) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3698 else
3699 echo "$as_me: program exited with status $ac_status" >&5
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 ( exit $ac_status )
3704 ac_cv_header_stdc=no
3706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3710 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3711 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3712 if test $ac_cv_header_stdc = yes; then
3714 cat >>confdefs.h <<\_ACEOF
3715 #define STDC_HEADERS 1
3716 _ACEOF
3720 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3730 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3731 inttypes.h stdint.h unistd.h
3733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3734 echo "$as_me:$LINENO: checking for $ac_header" >&5
3735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 $ac_includes_default
3747 #include <$ac_header>
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -z "$ac_c_werror_flag"
3759 || test ! -s conftest.err'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 eval "$as_ac_Header=yes"
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 eval "$as_ac_Header=no"
3778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3783 cat >>confdefs.h <<_ACEOF
3784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3785 _ACEOF
3789 done
3800 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3804 echo "$as_me:$LINENO: checking for $ac_header" >&5
3805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3811 else
3812 # Is the header compilable?
3813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 $ac_includes_default
3822 #include <$ac_header>
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826 (eval $ac_compile) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag"
3834 || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 (eval $ac_try) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_header_compiler=yes
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_header_compiler=no
3853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3855 echo "${ECHO_T}$ac_header_compiler" >&6
3857 # Is the header present?
3858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #include <$ac_header>
3867 _ACEOF
3868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null; then
3876 if test -s conftest.err; then
3877 ac_cpp_err=$ac_c_preproc_warn_flag
3878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879 else
3880 ac_cpp_err=
3882 else
3883 ac_cpp_err=yes
3885 if test -z "$ac_cpp_err"; then
3886 ac_header_preproc=yes
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 ac_header_preproc=no
3893 rm -f conftest.err conftest.$ac_ext
3894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3895 echo "${ECHO_T}$ac_header_preproc" >&6
3897 # So? What about this header?
3898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3899 yes:no: )
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3904 ac_header_preproc=yes
3906 no:yes:* )
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3920 cat <<\_ASBOX
3921 ## --------------------------------- ##
3922 ## Report this to the libssp lists. ##
3923 ## --------------------------------- ##
3924 _ASBOX
3926 sed "s/^/$as_me: WARNING: /" >&2
3928 esac
3929 echo "$as_me:$LINENO: checking for $ac_header" >&5
3930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 eval "$as_ac_Header=\$ac_header_preproc"
3936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3941 cat >>confdefs.h <<_ACEOF
3942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943 _ACEOF
3947 done
3950 if test x$gcc_no_link = xyes; then
3951 # Presume the ISO C functions are available; add target-specific
3952 # configuration here if required.
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_STRNCPY 1
3955 _ACEOF
3957 cat >>confdefs.h <<\_ACEOF
3958 #define HAVE_STRNCAT 1
3959 _ACEOF
3961 else
3965 for ac_func in mempcpy strncpy strncat
3967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3968 echo "$as_me:$LINENO: checking for $ac_func" >&5
3969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3970 if eval "test \"\${$as_ac_var+set}\" = set"; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 if test x$gcc_no_link = xyes; then
3974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3976 { (exit 1); exit 1; }; }
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3986 #define $ac_func innocuous_$ac_func
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func (); below.
3990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 <limits.h> exists even on freestanding compilers. */
3993 #ifdef __STDC__
3994 # include <limits.h>
3995 #else
3996 # include <assert.h>
3997 #endif
3999 #undef $ac_func
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 #ifdef __cplusplus
4003 extern "C"
4005 #endif
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char $ac_func ();
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4013 choke me
4014 #else
4015 char (*f) () = $ac_func;
4016 #endif
4017 #ifdef __cplusplus
4019 #endif
4022 main ()
4024 return f != $ac_func;
4026 return 0;
4028 _ACEOF
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_var=yes"
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 eval "$as_ac_var=no"
4058 rm -f conftest.err conftest.$ac_objext \
4059 conftest$ac_exeext conftest.$ac_ext
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063 if test `eval echo '${'$as_ac_var'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4066 _ACEOF
4069 done
4073 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4074 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4075 if test "$cross_compiling" = yes; then
4076 ssp_have_usable_vsnprintf=undef
4077 else
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4085 #include <stdarg.h>
4086 #include <string.h>
4087 #include <stdio.h>
4088 int foo (char *buf, size_t n, const char *fmt, ...)
4090 va_list ap;
4091 int ret;
4092 va_start (ap, fmt);
4093 ret = vsnprintf (buf, n, fmt, ap);
4094 va_end (ap);
4095 return ret;
4098 main ()
4100 char buf[8]; memset (buf, 'A', sizeof (buf));
4101 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4102 return 1;
4103 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4105 return 0;
4107 _ACEOF
4108 rm -f conftest$ac_exeext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ssp_have_usable_vsnprintf=define
4120 else
4121 echo "$as_me: program exited with status $ac_status" >&5
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 ( exit $ac_status )
4126 ssp_have_usable_vsnprintf=undef
4128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4130 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4131 echo "$as_me:$LINENO: result: yes" >&5
4132 echo "${ECHO_T}yes" >&6
4134 cat >>confdefs.h <<\_ACEOF
4135 #define HAVE_USABLE_VSNPRINTF 1
4136 _ACEOF
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4144 # Check whether --enable-shared or --disable-shared was given.
4145 if test "${enable_shared+set}" = set; then
4146 enableval="$enable_shared"
4147 p=${PACKAGE-default}
4148 case $enableval in
4149 yes) enable_shared=yes ;;
4150 no) enable_shared=no ;;
4152 enable_shared=no
4153 # Look at the argument we got. We use all the common list separators.
4154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4155 for pkg in $enableval; do
4156 if test "X$pkg" = "X$p"; then
4157 enable_shared=yes
4159 done
4160 IFS="$ac_save_ifs"
4162 esac
4163 else
4164 enable_shared=yes
4166 # Check whether --enable-static or --disable-static was given.
4167 if test "${enable_static+set}" = set; then
4168 enableval="$enable_static"
4169 p=${PACKAGE-default}
4170 case $enableval in
4171 yes) enable_static=yes ;;
4172 no) enable_static=no ;;
4174 enable_static=no
4175 # Look at the argument we got. We use all the common list separators.
4176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4177 for pkg in $enableval; do
4178 if test "X$pkg" = "X$p"; then
4179 enable_static=yes
4181 done
4182 IFS="$ac_save_ifs"
4184 esac
4185 else
4186 enable_static=yes
4188 # Check whether --enable-fast-install or --disable-fast-install was given.
4189 if test "${enable_fast_install+set}" = set; then
4190 enableval="$enable_fast_install"
4191 p=${PACKAGE-default}
4192 case $enableval in
4193 yes) enable_fast_install=yes ;;
4194 no) enable_fast_install=no ;;
4196 enable_fast_install=no
4197 # Look at the argument we got. We use all the common list separators.
4198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4199 for pkg in $enableval; do
4200 if test "X$pkg" = "X$p"; then
4201 enable_fast_install=yes
4203 done
4204 IFS="$ac_save_ifs"
4206 esac
4207 else
4208 enable_fast_install=yes
4211 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4212 if test "${with_gnu_ld+set}" = set; then
4213 withval="$with_gnu_ld"
4214 test "$withval" = no || with_gnu_ld=yes
4215 else
4216 with_gnu_ld=no
4218 ac_prog=ld
4219 if test "$GCC" = yes; then
4220 # Check if gcc -print-prog-name=ld gives a path.
4221 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4222 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4223 case $host in
4224 *-*-mingw*)
4225 # gcc leaves a trailing carriage return which upsets mingw
4226 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4228 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4229 esac
4230 case $ac_prog in
4231 # Accept absolute paths.
4232 [\\/]* | [A-Za-z]:[\\/]*)
4233 re_direlt='/[^/][^/]*/\.\./'
4234 # Canonicalize the path of ld
4235 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4236 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4237 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4238 done
4239 test -z "$LD" && LD="$ac_prog"
4242 # If it fails, then pretend we aren't using GCC.
4243 ac_prog=ld
4246 # If it is relative, then search for the first ld in PATH.
4247 with_gnu_ld=unknown
4249 esac
4250 elif test "$with_gnu_ld" = yes; then
4251 echo "$as_me:$LINENO: checking for GNU ld" >&5
4252 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4253 else
4254 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4255 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4257 if test "${lt_cv_path_LD+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 if test -z "$LD"; then
4261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4262 for ac_dir in $PATH; do
4263 test -z "$ac_dir" && ac_dir=.
4264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4265 lt_cv_path_LD="$ac_dir/$ac_prog"
4266 # Check to see if the program is GNU ld. I'd rather use --version,
4267 # but apparently some GNU ld's only accept -v.
4268 # Break only if it was the GNU/non-GNU ld that we prefer.
4269 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4270 test "$with_gnu_ld" != no && break
4271 else
4272 test "$with_gnu_ld" != yes && break
4275 done
4276 IFS="$ac_save_ifs"
4277 else
4278 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4282 LD="$lt_cv_path_LD"
4283 if test -n "$LD"; then
4284 echo "$as_me:$LINENO: result: $LD" >&5
4285 echo "${ECHO_T}$LD" >&6
4286 else
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4290 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4291 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4292 { (exit 1); exit 1; }; }
4293 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4294 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4295 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4299 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4300 lt_cv_prog_gnu_ld=yes
4301 else
4302 lt_cv_prog_gnu_ld=no
4305 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4306 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4307 with_gnu_ld=$lt_cv_prog_gnu_ld
4310 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4311 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4312 if test "${lt_cv_ld_reload_flag+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 lt_cv_ld_reload_flag='-r'
4317 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4318 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4319 reload_flag=$lt_cv_ld_reload_flag
4320 test -n "$reload_flag" && reload_flag=" $reload_flag"
4322 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4323 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4324 if test "${lt_cv_path_NM+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 if test -n "$NM"; then
4328 # Let the user override the test.
4329 lt_cv_path_NM="$NM"
4330 else
4331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4332 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4333 test -z "$ac_dir" && ac_dir=.
4334 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4335 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4336 # Check to see if the nm accepts a BSD-compat flag.
4337 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338 # nm: unknown option "B" ignored
4339 # Tru64's nm complains that /dev/null is an invalid object file
4340 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4341 lt_cv_path_NM="$tmp_nm -B"
4342 break
4343 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4344 lt_cv_path_NM="$tmp_nm -p"
4345 break
4346 else
4347 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4348 continue # so that we can try to find one that supports BSD flags
4351 done
4352 IFS="$ac_save_ifs"
4353 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4357 NM="$lt_cv_path_NM"
4358 echo "$as_me:$LINENO: result: $NM" >&5
4359 echo "${ECHO_T}$NM" >&6
4361 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4362 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4363 LN_S=$as_ln_s
4364 if test "$LN_S" = "ln -s"; then
4365 echo "$as_me:$LINENO: result: yes" >&5
4366 echo "${ECHO_T}yes" >&6
4367 else
4368 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4369 echo "${ECHO_T}no, using $LN_S" >&6
4372 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4373 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4374 if test "${lt_cv_deplibs_check_method+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 lt_cv_file_magic_cmd='$MAGIC_CMD'
4378 lt_cv_file_magic_test_file=
4379 lt_cv_deplibs_check_method='unknown'
4380 # Need to set the preceding variable on all platforms that support
4381 # interlibrary dependencies.
4382 # 'none' -- dependencies not supported.
4383 # `unknown' -- same as none, but documents that we really don't know.
4384 # 'pass_all' -- all dependencies passed with no checks.
4385 # 'test_compile' -- check by making test program.
4386 # 'file_magic [regex]' -- check by looking for files in library path
4387 # which responds to the $file_magic_cmd with a given egrep regex.
4388 # If you have `file' or equivalent on your system and you're not sure
4389 # whether `pass_all' will *always* work, you probably want this one.
4391 case $host_os in
4392 aix*)
4393 lt_cv_deplibs_check_method=pass_all
4396 beos*)
4397 lt_cv_deplibs_check_method=pass_all
4400 bsdi4*)
4401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4402 lt_cv_file_magic_cmd='/usr/bin/file -L'
4403 lt_cv_file_magic_test_file=/shlib/libc.so
4406 cygwin* | mingw* |pw32*)
4407 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4408 lt_cv_file_magic_cmd='$OBJDUMP -f'
4411 darwin* | rhapsody*)
4412 # this will be overwritten by pass_all, but leave it in just in case
4413 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4414 lt_cv_file_magic_cmd='/usr/bin/file -L'
4415 case "$host_os" in
4416 rhapsody* | darwin1.012)
4417 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4419 *) # Darwin 1.3 on
4420 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4422 esac
4423 lt_cv_deplibs_check_method=pass_all
4426 freebsd* | kfreebsd*-gnu)
4427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4428 case $host_cpu in
4429 i*86 )
4430 # Not sure whether the presence of OpenBSD here was a mistake.
4431 # Let's accept both of them until this is cleared up.
4432 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4433 lt_cv_file_magic_cmd=/usr/bin/file
4434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4436 esac
4437 else
4438 lt_cv_deplibs_check_method=pass_all
4442 gnu*)
4443 lt_cv_deplibs_check_method=pass_all
4446 hpux10.20*|hpux11*)
4447 case $host_cpu in
4448 hppa*)
4449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4450 lt_cv_file_magic_cmd=/usr/bin/file
4451 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4453 ia64*)
4454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4455 lt_cv_file_magic_cmd=/usr/bin/file
4456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4458 esac
4461 irix5* | irix6*)
4462 case $host_os in
4463 irix5*)
4464 # this will be overridden with pass_all, but let us keep it just in case
4465 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4468 case $LD in
4469 *-32|*"-32 ") libmagic=32-bit;;
4470 *-n32|*"-n32 ") libmagic=N32;;
4471 *-64|*"-64 ") libmagic=64-bit;;
4472 *) libmagic=never-match;;
4473 esac
4474 # this will be overridden with pass_all, but let us keep it just in case
4475 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4477 esac
4478 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4479 lt_cv_deplibs_check_method=pass_all
4482 # This must be Linux ELF.
4483 linux-gnu*)
4484 lt_cv_deplibs_check_method=pass_all
4487 netbsd* | knetbsd*-gnu)
4488 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4489 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4490 else
4491 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4495 newsos6)
4496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4497 lt_cv_file_magic_cmd=/usr/bin/file
4498 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4501 osf3* | osf4* | osf5*)
4502 # this will be overridden with pass_all, but let us keep it just in case
4503 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4504 lt_cv_file_magic_test_file=/shlib/libc.so
4505 lt_cv_deplibs_check_method=pass_all
4508 sco3.2v5*)
4509 lt_cv_deplibs_check_method=pass_all
4512 solaris*)
4513 lt_cv_deplibs_check_method=pass_all
4514 lt_cv_file_magic_test_file=/lib/libc.so
4517 sysv5uw[78]* | sysv4*uw2*)
4518 lt_cv_deplibs_check_method=pass_all
4521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4522 case $host_vendor in
4523 ncr)
4524 lt_cv_deplibs_check_method=pass_all
4526 motorola)
4527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4530 esac
4532 esac
4535 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4536 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4537 file_magic_cmd=$lt_cv_file_magic_cmd
4538 deplibs_check_method=$lt_cv_deplibs_check_method
4543 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4545 # find the maximum length of command line arguments
4546 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4547 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4548 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4552 teststring="ABCD"
4554 case $build_os in
4555 msdosdjgpp*)
4556 # On DJGPP, this test can blow up pretty badly due to problems in libc
4557 # (any single argument exceeding 2000 bytes causes a buffer overrun
4558 # during glob expansion). Even if it were fixed, the result of this
4559 # check would be larger than it should be.
4560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4563 cygwin* | mingw*)
4564 # On Win9x/ME, this test blows up -- it succeeds, but takes
4565 # about 5 minutes as the teststring grows exponentially.
4566 # Worse, since 9x/ME are not pre-emptively multitasking,
4567 # you end up with a "frozen" computer, even though with patience
4568 # the test eventually succeeds (with a max line length of 256k).
4569 # Instead, let's just punt: use the minimum linelength reported by
4570 # all of the supported platforms: 8192 (on NT/2K/XP).
4571 lt_cv_sys_max_cmd_len=8192;
4574 amigaos*)
4575 # On AmigaOS with pdksh, this test takes hours, literally.
4576 # So we just punt and use a minimum line length of 8192.
4577 lt_cv_sys_max_cmd_len=8192;
4580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4581 # This has been around since 386BSD, at least. Likely further.
4582 if test -x /sbin/sysctl; then
4583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4584 elif test -x /usr/sbin/sysctl; then
4585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4586 else
4587 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4589 # And add a safety zone
4590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4593 esac
4597 if test -n "$lt_cv_sys_max_cmd_len" ; then
4598 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4599 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4600 else
4601 echo "$as_me:$LINENO: result: none" >&5
4602 echo "${ECHO_T}none" >&6
4606 # Only perform the check for file, if the check method requires it
4607 case $deplibs_check_method in
4608 file_magic*)
4609 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4610 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4611 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 case $MAGIC_CMD in
4617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4619 ?:/*)
4620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4623 ac_save_MAGIC_CMD="$MAGIC_CMD"
4624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4625 ac_dummy="/usr/bin:$PATH"
4626 for ac_dir in $ac_dummy; do
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f $ac_dir/${ac_tool_prefix}file; then
4629 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4630 if test -n "$file_magic_test_file"; then
4631 case $deplibs_check_method in
4632 "file_magic "*)
4633 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4636 egrep "$file_magic_regex" > /dev/null; then
4638 else
4639 cat <<EOF 1>&2
4641 *** Warning: the command libtool uses to detect shared libraries,
4642 *** $file_magic_cmd, produces output that libtool cannot recognize.
4643 *** The result is that libtool may fail to recognize shared libraries
4644 *** as such. This will affect the creation of libtool libraries that
4645 *** depend on shared libraries, but programs linked with such libtool
4646 *** libraries will work regardless of this problem. Nevertheless, you
4647 *** may want to report the problem to your system manager and/or to
4648 *** bug-libtool@gnu.org
4651 fi ;;
4652 esac
4654 break
4656 done
4657 IFS="$ac_save_ifs"
4658 MAGIC_CMD="$ac_save_MAGIC_CMD"
4660 esac
4663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4664 if test -n "$MAGIC_CMD"; then
4665 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4666 echo "${ECHO_T}$MAGIC_CMD" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4672 if test -z "$lt_cv_path_MAGIC_CMD"; then
4673 if test -n "$ac_tool_prefix"; then
4674 echo "$as_me:$LINENO: checking for file" >&5
4675 echo $ECHO_N "checking for file... $ECHO_C" >&6
4676 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679 case $MAGIC_CMD in
4681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4683 ?:/*)
4684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4687 ac_save_MAGIC_CMD="$MAGIC_CMD"
4688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4689 ac_dummy="/usr/bin:$PATH"
4690 for ac_dir in $ac_dummy; do
4691 test -z "$ac_dir" && ac_dir=.
4692 if test -f $ac_dir/file; then
4693 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4694 if test -n "$file_magic_test_file"; then
4695 case $deplibs_check_method in
4696 "file_magic "*)
4697 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4700 egrep "$file_magic_regex" > /dev/null; then
4702 else
4703 cat <<EOF 1>&2
4705 *** Warning: the command libtool uses to detect shared libraries,
4706 *** $file_magic_cmd, produces output that libtool cannot recognize.
4707 *** The result is that libtool may fail to recognize shared libraries
4708 *** as such. This will affect the creation of libtool libraries that
4709 *** depend on shared libraries, but programs linked with such libtool
4710 *** libraries will work regardless of this problem. Nevertheless, you
4711 *** may want to report the problem to your system manager and/or to
4712 *** bug-libtool@gnu.org
4715 fi ;;
4716 esac
4718 break
4720 done
4721 IFS="$ac_save_ifs"
4722 MAGIC_CMD="$ac_save_MAGIC_CMD"
4724 esac
4727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4728 if test -n "$MAGIC_CMD"; then
4729 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4730 echo "${ECHO_T}$MAGIC_CMD" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4736 else
4737 MAGIC_CMD=:
4743 esac
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4748 echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750 if test "${ac_cv_prog_RANLIB+set}" = set; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 if test -n "$RANLIB"; then
4754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4767 done
4768 done
4772 RANLIB=$ac_cv_prog_RANLIB
4773 if test -n "$RANLIB"; then
4774 echo "$as_me:$LINENO: result: $RANLIB" >&5
4775 echo "${ECHO_T}$RANLIB" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4782 if test -z "$ac_cv_prog_RANLIB"; then
4783 ac_ct_RANLIB=$RANLIB
4784 # Extract the first word of "ranlib", so it can be a program name with args.
4785 set dummy ranlib; ac_word=$2
4786 echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 if test -n "$ac_ct_RANLIB"; then
4792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801 ac_cv_prog_ac_ct_RANLIB="ranlib"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4808 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4812 if test -n "$ac_ct_RANLIB"; then
4813 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4814 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 RANLIB=$ac_ct_RANLIB
4821 else
4822 RANLIB="$ac_cv_prog_RANLIB"
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}strip; ac_word=$2
4828 echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830 if test "${ac_cv_prog_STRIP+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 if test -n "$STRIP"; then
4834 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4852 STRIP=$ac_cv_prog_STRIP
4853 if test -n "$STRIP"; then
4854 echo "$as_me:$LINENO: result: $STRIP" >&5
4855 echo "${ECHO_T}$STRIP" >&6
4856 else
4857 echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4862 if test -z "$ac_cv_prog_STRIP"; then
4863 ac_ct_STRIP=$STRIP
4864 # Extract the first word of "strip", so it can be a program name with args.
4865 set dummy strip; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 if test -n "$ac_ct_STRIP"; then
4872 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_ac_ct_STRIP="strip"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4888 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4892 if test -n "$ac_ct_STRIP"; then
4893 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4894 echo "${ECHO_T}$ac_ct_STRIP" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4900 STRIP=$ac_ct_STRIP
4901 else
4902 STRIP="$ac_cv_prog_STRIP"
4906 # Check for any special flags to pass to ltconfig.
4907 libtool_flags="--cache-file=$cache_file"
4908 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4909 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4910 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4911 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4912 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4915 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4916 if test "${enable_libtool_lock+set}" = set; then
4917 enableval="$enable_libtool_lock"
4920 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4921 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4924 # Check whether --with-pic or --without-pic was given.
4925 if test "${with_pic+set}" = set; then
4926 withval="$with_pic"
4927 pic_mode="$withval"
4928 else
4929 pic_mode=default
4931 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4932 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4934 # Some flags need to be propagated to the compiler or linker for good
4935 # libtool support.
4936 case $host in
4937 *-*-irix6*)
4938 # Find out which ABI we are using.
4939 echo '#line 4939 "configure"' > conftest.$ac_ext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; then
4945 if test "$lt_cv_prog_gnu_ld" = yes; then
4946 case `/usr/bin/file conftest.$ac_objext` in
4947 *32-bit*)
4948 LD="${LD-ld} -melf32bsmip"
4950 *N32*)
4951 LD="${LD-ld} -melf32bmipn32"
4953 *64-bit*)
4954 LD="${LD-ld} -melf64bmip"
4956 esac
4957 else
4958 case `/usr/bin/file conftest.$ac_objext` in
4959 *32-bit*)
4960 LD="${LD-ld} -32"
4962 *N32*)
4963 LD="${LD-ld} -n32"
4965 *64-bit*)
4966 LD="${LD-ld} -64"
4968 esac
4971 rm -rf conftest*
4974 ia64-*-hpux*)
4975 # Find out which ABI we are using.
4976 echo 'int i;' > conftest.$ac_ext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978 (eval $ac_compile) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; then
4982 case "`/usr/bin/file conftest.o`" in
4983 *ELF-32*)
4984 HPUX_IA64_MODE="32"
4986 *ELF-64*)
4987 HPUX_IA64_MODE="64"
4989 esac
4991 rm -rf conftest*
4994 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4995 # Find out which ABI we are using.
4996 echo 'int i;' > conftest.$ac_ext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; then
5002 case "`/usr/bin/file conftest.o`" in
5003 *32-bit*)
5004 case $host in
5005 x86_64-*linux*)
5006 LD="${LD-ld} -m elf_i386"
5008 ppc64-*linux*|powerpc64-*linux*)
5009 LD="${LD-ld} -m elf32ppclinux"
5011 s390x-*linux*)
5012 LD="${LD-ld} -m elf_s390"
5014 sparc64-*linux*)
5015 LD="${LD-ld} -m elf32_sparc"
5017 esac
5019 *64-bit*)
5020 case $host in
5021 x86_64-*linux*)
5022 LD="${LD-ld} -m elf_x86_64"
5024 ppc*-*linux*|powerpc*-*linux*)
5025 LD="${LD-ld} -m elf64ppc"
5027 s390*-*linux*)
5028 LD="${LD-ld} -m elf64_s390"
5030 sparc*-*linux*)
5031 LD="${LD-ld} -m elf64_sparc"
5033 esac
5035 esac
5037 rm -rf conftest*
5040 *-*-sco3.2v5*)
5041 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5042 SAVE_CFLAGS="$CFLAGS"
5043 CFLAGS="$CFLAGS -belf"
5044 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5045 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5046 if test "${lt_cv_cc_needs_belf+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5051 ac_ext=c
5052 ac_cpp='$CPP $CPPFLAGS'
5053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 if test x$gcc_no_link = xyes; then
5058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5060 { (exit 1); exit 1; }; }
5062 cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h. */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5070 main ()
5074 return 0;
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 lt_cv_cc_needs_belf=yes
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 lt_cv_cc_needs_belf=no
5106 rm -f conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5116 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5119 CFLAGS="$SAVE_CFLAGS"
5124 esac
5127 # Save cache, so that ltconfig can load it
5128 cat >confcache <<\_ACEOF
5129 # This file is a shell script that caches the results of configure
5130 # tests run on this system so they can be shared between configure
5131 # scripts and configure runs, see configure's option --config-cache.
5132 # It is not useful on other systems. If it contains results you don't
5133 # want to keep, you may remove or edit it.
5135 # config.status only pays attention to the cache file if you give it
5136 # the --recheck option to rerun configure.
5138 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5139 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5140 # following values.
5142 _ACEOF
5144 # The following way of writing the cache mishandles newlines in values,
5145 # but we know of no workaround that is simple, portable, and efficient.
5146 # So, don't put newlines in cache variables' values.
5147 # Ultrix sh set writes to stderr and can't be redirected directly,
5148 # and sets the high bit in the cache file unless we assign to the vars.
5150 (set) 2>&1 |
5151 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5152 *ac_space=\ *)
5153 # `set' does not quote correctly, so add quotes (double-quote
5154 # substitution turns \\\\ into \\, and sed turns \\ into \).
5155 sed -n \
5156 "s/'/'\\\\''/g;
5157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5160 # `set' quotes correctly as required by POSIX, so do not add quotes.
5161 sed -n \
5162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5164 esac;
5166 sed '
5167 t clear
5168 : clear
5169 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5170 t end
5171 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5172 : end' >>confcache
5173 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5174 if test -w $cache_file; then
5175 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5176 cat confcache >$cache_file
5177 else
5178 echo "not updating unwritable cache $cache_file"
5181 rm -f confcache
5183 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5184 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5185 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5186 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5187 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5188 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5189 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5190 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5191 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5192 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5193 echo "$as_me: error: libtool configure failed" >&2;}
5194 { (exit 1); exit 1; }; }
5196 # Reload cache, that may have been modified by ltconfig
5197 if test -r "$cache_file"; then
5198 # Some versions of bash will fail to source /dev/null (special
5199 # files actually), so we avoid doing that.
5200 if test -f "$cache_file"; then
5201 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5202 echo "$as_me: loading cache $cache_file" >&6;}
5203 case $cache_file in
5204 [\\/]* | ?:[\\/]* ) . $cache_file;;
5205 *) . ./$cache_file;;
5206 esac
5208 else
5209 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5210 echo "$as_me: creating cache $cache_file" >&6;}
5211 >$cache_file
5215 # This can be used to rebuild libtool when needed
5216 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5218 # Always use our own libtool.
5219 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5221 # Redirect the config.log output again, so that the ltconfig log is not
5222 # clobbered by the next message.
5223 exec 5>>./config.log
5233 # Calculate toolexeclibdir
5234 # Also toolexecdir, though it's only used in toolexeclibdir
5235 case ${version_specific_libs} in
5236 yes)
5237 # Need the gcc compiler version to know where to install libraries
5238 # and header files if --enable-version-specific-runtime-libs option
5239 # is selected.
5240 toolexecdir='$(libdir)/gcc/$(target_alias)'
5241 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5244 if test -n "$with_cross_host" &&
5245 test x"$with_cross_host" != x"no"; then
5246 # Install a library built with a cross compiler in tooldir, not libdir.
5247 toolexecdir='$(exec_prefix)/$(target_alias)'
5248 toolexeclibdir='$(toolexecdir)/lib'
5249 else
5250 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5251 toolexeclibdir='$(libdir)'
5253 multi_os_directory=`$CC -print-multi-os-directory`
5254 case $multi_os_directory in
5255 .) ;; # Avoid trailing /.
5256 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5257 esac
5259 esac
5263 if test ${multilib} = yes; then
5264 multilib_arg="--enable-multilib"
5265 else
5266 multilib_arg=
5269 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
5271 cat >confcache <<\_ACEOF
5272 # This file is a shell script that caches the results of configure
5273 # tests run on this system so they can be shared between configure
5274 # scripts and configure runs, see configure's option --config-cache.
5275 # It is not useful on other systems. If it contains results you don't
5276 # want to keep, you may remove or edit it.
5278 # config.status only pays attention to the cache file if you give it
5279 # the --recheck option to rerun configure.
5281 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5282 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5283 # following values.
5285 _ACEOF
5287 # The following way of writing the cache mishandles newlines in values,
5288 # but we know of no workaround that is simple, portable, and efficient.
5289 # So, don't put newlines in cache variables' values.
5290 # Ultrix sh set writes to stderr and can't be redirected directly,
5291 # and sets the high bit in the cache file unless we assign to the vars.
5293 (set) 2>&1 |
5294 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5295 *ac_space=\ *)
5296 # `set' does not quote correctly, so add quotes (double-quote
5297 # substitution turns \\\\ into \\, and sed turns \\ into \).
5298 sed -n \
5299 "s/'/'\\\\''/g;
5300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5303 # `set' quotes correctly as required by POSIX, so do not add quotes.
5304 sed -n \
5305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5307 esac;
5309 sed '
5310 t clear
5311 : clear
5312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5313 t end
5314 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5315 : end' >>confcache
5316 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5317 if test -w $cache_file; then
5318 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5319 cat confcache >$cache_file
5320 else
5321 echo "not updating unwritable cache $cache_file"
5324 rm -f confcache
5326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5327 # Let make expand exec_prefix.
5328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5332 # trailing colons and then remove the whole line if VPATH becomes empty
5333 # (actually we leave an empty line to preserve line numbers).
5334 if test "x$srcdir" = x.; then
5335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5336 s/:*\$(srcdir):*/:/;
5337 s/:*\${srcdir}:*/:/;
5338 s/:*@srcdir@:*/:/;
5339 s/^\([^=]*=[ ]*\):*/\1/;
5340 s/:*$//;
5341 s/^[^=]*=[ ]*$//;
5345 DEFS=-DHAVE_CONFIG_H
5347 ac_libobjs=
5348 ac_ltlibobjs=
5349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5350 # 1. Remove the extension, and $U if already installed.
5351 ac_i=`echo "$ac_i" |
5352 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5353 # 2. Add them.
5354 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5355 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5356 done
5357 LIBOBJS=$ac_libobjs
5359 LTLIBOBJS=$ac_ltlibobjs
5362 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5363 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5364 Usually this means the macro was only invoked conditionally." >&5
5365 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5366 Usually this means the macro was only invoked conditionally." >&2;}
5367 { (exit 1); exit 1; }; }
5369 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5370 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5371 Usually this means the macro was only invoked conditionally." >&5
5372 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5373 Usually this means the macro was only invoked conditionally." >&2;}
5374 { (exit 1); exit 1; }; }
5376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5377 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5378 Usually this means the macro was only invoked conditionally." >&5
5379 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5380 Usually this means the macro was only invoked conditionally." >&2;}
5381 { (exit 1); exit 1; }; }
5383 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
5384 { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
5385 Usually this means the macro was only invoked conditionally." >&5
5386 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
5387 Usually this means the macro was only invoked conditionally." >&2;}
5388 { (exit 1); exit 1; }; }
5391 : ${CONFIG_STATUS=./config.status}
5392 ac_clean_files_save=$ac_clean_files
5393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5394 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5395 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5396 cat >$CONFIG_STATUS <<_ACEOF
5397 #! $SHELL
5398 # Generated by $as_me.
5399 # Run this file to recreate the current configuration.
5400 # Compiler output produced by configure, useful for debugging
5401 # configure, is in config.log if it exists.
5403 debug=false
5404 ac_cs_recheck=false
5405 ac_cs_silent=false
5406 SHELL=\${CONFIG_SHELL-$SHELL}
5407 _ACEOF
5409 cat >>$CONFIG_STATUS <<\_ACEOF
5410 ## --------------------- ##
5411 ## M4sh Initialization. ##
5412 ## --------------------- ##
5414 # Be Bourne compatible
5415 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5416 emulate sh
5417 NULLCMD=:
5418 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5419 # is contrary to our usage. Disable this feature.
5420 alias -g '${1+"$@"}'='"$@"'
5421 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5422 set -o posix
5424 DUALCASE=1; export DUALCASE # for MKS sh
5426 # Support unset when possible.
5427 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5428 as_unset=unset
5429 else
5430 as_unset=false
5434 # Work around bugs in pre-3.0 UWIN ksh.
5435 $as_unset ENV MAIL MAILPATH
5436 PS1='$ '
5437 PS2='> '
5438 PS4='+ '
5440 # NLS nuisances.
5441 for as_var in \
5442 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5443 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5444 LC_TELEPHONE LC_TIME
5446 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5447 eval $as_var=C; export $as_var
5448 else
5449 $as_unset $as_var
5451 done
5453 # Required to use basename.
5454 if expr a : '\(a\)' >/dev/null 2>&1; then
5455 as_expr=expr
5456 else
5457 as_expr=false
5460 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5461 as_basename=basename
5462 else
5463 as_basename=false
5467 # Name of the executable.
5468 as_me=`$as_basename "$0" ||
5469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5470 X"$0" : 'X\(//\)$' \| \
5471 X"$0" : 'X\(/\)$' \| \
5472 . : '\(.\)' 2>/dev/null ||
5473 echo X/"$0" |
5474 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5475 /^X\/\(\/\/\)$/{ s//\1/; q; }
5476 /^X\/\(\/\).*/{ s//\1/; q; }
5477 s/.*/./; q'`
5480 # PATH needs CR, and LINENO needs CR and PATH.
5481 # Avoid depending upon Character Ranges.
5482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5485 as_cr_digits='0123456789'
5486 as_cr_alnum=$as_cr_Letters$as_cr_digits
5488 # The user is always right.
5489 if test "${PATH_SEPARATOR+set}" != set; then
5490 echo "#! /bin/sh" >conf$$.sh
5491 echo "exit 0" >>conf$$.sh
5492 chmod +x conf$$.sh
5493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5494 PATH_SEPARATOR=';'
5495 else
5496 PATH_SEPARATOR=:
5498 rm -f conf$$.sh
5502 as_lineno_1=$LINENO
5503 as_lineno_2=$LINENO
5504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5505 test "x$as_lineno_1" != "x$as_lineno_2" &&
5506 test "x$as_lineno_3" = "x$as_lineno_2" || {
5507 # Find who we are. Look in the path if we contain no path at all
5508 # relative or not.
5509 case $0 in
5510 *[\\/]* ) as_myself=$0 ;;
5511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5517 done
5520 esac
5521 # We did not find ourselves, most probably we were run as `sh COMMAND'
5522 # in which case we are not to be found in the path.
5523 if test "x$as_myself" = x; then
5524 as_myself=$0
5526 if test ! -f "$as_myself"; then
5527 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5528 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5529 { (exit 1); exit 1; }; }
5531 case $CONFIG_SHELL in
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for as_base in sh bash ksh sh5; do
5539 case $as_dir in
5541 if ("$as_dir/$as_base" -c '
5542 as_lineno_1=$LINENO
5543 as_lineno_2=$LINENO
5544 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5545 test "x$as_lineno_1" != "x$as_lineno_2" &&
5546 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5547 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5548 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5549 CONFIG_SHELL=$as_dir/$as_base
5550 export CONFIG_SHELL
5551 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5552 fi;;
5553 esac
5554 done
5555 done
5557 esac
5559 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5560 # uniformly replaced by the line number. The first 'sed' inserts a
5561 # line-number line before each line; the second 'sed' does the real
5562 # work. The second script uses 'N' to pair each line-number line
5563 # with the numbered line, and appends trailing '-' during
5564 # substitution so that $LINENO is not a special case at line end.
5565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5566 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5567 sed '=' <$as_myself |
5568 sed '
5570 s,$,-,
5571 : loop
5572 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5573 t loop
5574 s,-$,,
5575 s,^['$as_cr_digits']*\n,,
5576 ' >$as_me.lineno &&
5577 chmod +x $as_me.lineno ||
5578 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5579 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5580 { (exit 1); exit 1; }; }
5582 # Don't try to exec as it changes $[0], causing all sort of problems
5583 # (the dirname of $[0] is not the place where we might find the
5584 # original and so on. Autoconf is especially sensible to this).
5585 . ./$as_me.lineno
5586 # Exit status is that of the last command.
5587 exit
5591 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5592 *c*,-n*) ECHO_N= ECHO_C='
5593 ' ECHO_T=' ' ;;
5594 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5595 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5596 esac
5598 if expr a : '\(a\)' >/dev/null 2>&1; then
5599 as_expr=expr
5600 else
5601 as_expr=false
5604 rm -f conf$$ conf$$.exe conf$$.file
5605 echo >conf$$.file
5606 if ln -s conf$$.file conf$$ 2>/dev/null; then
5607 # We could just check for DJGPP; but this test a) works b) is more generic
5608 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5609 if test -f conf$$.exe; then
5610 # Don't use ln at all; we don't have any links
5611 as_ln_s='cp -p'
5612 else
5613 as_ln_s='ln -s'
5615 elif ln conf$$.file conf$$ 2>/dev/null; then
5616 as_ln_s=ln
5617 else
5618 as_ln_s='cp -p'
5620 rm -f conf$$ conf$$.exe conf$$.file
5622 if mkdir -p . 2>/dev/null; then
5623 as_mkdir_p=:
5624 else
5625 test -d ./-p && rmdir ./-p
5626 as_mkdir_p=false
5629 as_executable_p="test -f"
5631 # Sed expression to map a string onto a valid CPP name.
5632 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5634 # Sed expression to map a string onto a valid variable name.
5635 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5638 # IFS
5639 # We need space, tab and new line, in precisely that order.
5640 as_nl='
5642 IFS=" $as_nl"
5644 # CDPATH.
5645 $as_unset CDPATH
5647 exec 6>&1
5649 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5650 # report actual input values of CONFIG_FILES etc. instead of their
5651 # values after options handling. Logging --version etc. is OK.
5652 exec 5>>config.log
5654 echo
5655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5656 ## Running $as_me. ##
5657 _ASBOX
5658 } >&5
5659 cat >&5 <<_CSEOF
5661 This file was extended by libssp $as_me 1.0, which was
5662 generated by GNU Autoconf 2.59. Invocation command line was
5664 CONFIG_FILES = $CONFIG_FILES
5665 CONFIG_HEADERS = $CONFIG_HEADERS
5666 CONFIG_LINKS = $CONFIG_LINKS
5667 CONFIG_COMMANDS = $CONFIG_COMMANDS
5668 $ $0 $@
5670 _CSEOF
5671 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5672 echo >&5
5673 _ACEOF
5675 # Files that config.status was made for.
5676 if test -n "$ac_config_files"; then
5677 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5680 if test -n "$ac_config_headers"; then
5681 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5684 if test -n "$ac_config_links"; then
5685 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5688 if test -n "$ac_config_commands"; then
5689 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5692 cat >>$CONFIG_STATUS <<\_ACEOF
5694 ac_cs_usage="\
5695 \`$as_me' instantiates files from templates according to the
5696 current configuration.
5698 Usage: $0 [OPTIONS] [FILE]...
5700 -h, --help print this help, then exit
5701 -V, --version print version number, then exit
5702 -q, --quiet do not print progress messages
5703 -d, --debug don't remove temporary files
5704 --recheck update $as_me by reconfiguring in the same conditions
5705 --file=FILE[:TEMPLATE]
5706 instantiate the configuration file FILE
5707 --header=FILE[:TEMPLATE]
5708 instantiate the configuration header FILE
5710 Configuration files:
5711 $config_files
5713 Configuration headers:
5714 $config_headers
5716 Configuration commands:
5717 $config_commands
5719 Report bugs to <bug-autoconf@gnu.org>."
5720 _ACEOF
5722 cat >>$CONFIG_STATUS <<_ACEOF
5723 ac_cs_version="\\
5724 libssp config.status 1.0
5725 configured by $0, generated by GNU Autoconf 2.59,
5726 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5728 Copyright (C) 2003 Free Software Foundation, Inc.
5729 This config.status script is free software; the Free Software Foundation
5730 gives unlimited permission to copy, distribute and modify it."
5731 srcdir=$srcdir
5732 INSTALL="$INSTALL"
5733 _ACEOF
5735 cat >>$CONFIG_STATUS <<\_ACEOF
5736 # If no file are specified by the user, then we need to provide default
5737 # value. By we need to know if files were specified by the user.
5738 ac_need_defaults=:
5739 while test $# != 0
5741 case $1 in
5742 --*=*)
5743 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5744 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5745 ac_shift=:
5748 ac_option=$1
5749 ac_optarg=$2
5750 ac_shift=shift
5752 *) # This is not an option, so the user has probably given explicit
5753 # arguments.
5754 ac_option=$1
5755 ac_need_defaults=false;;
5756 esac
5758 case $ac_option in
5759 # Handling of the options.
5760 _ACEOF
5761 cat >>$CONFIG_STATUS <<\_ACEOF
5762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5763 ac_cs_recheck=: ;;
5764 --version | --vers* | -V )
5765 echo "$ac_cs_version"; exit 0 ;;
5766 --he | --h)
5767 # Conflict between --help and --header
5768 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5769 Try \`$0 --help' for more information." >&5
5770 echo "$as_me: error: ambiguous option: $1
5771 Try \`$0 --help' for more information." >&2;}
5772 { (exit 1); exit 1; }; };;
5773 --help | --hel | -h )
5774 echo "$ac_cs_usage"; exit 0 ;;
5775 --debug | --d* | -d )
5776 debug=: ;;
5777 --file | --fil | --fi | --f )
5778 $ac_shift
5779 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5780 ac_need_defaults=false;;
5781 --header | --heade | --head | --hea )
5782 $ac_shift
5783 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5784 ac_need_defaults=false;;
5785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5787 ac_cs_silent=: ;;
5789 # This is an error.
5790 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5791 Try \`$0 --help' for more information." >&5
5792 echo "$as_me: error: unrecognized option: $1
5793 Try \`$0 --help' for more information." >&2;}
5794 { (exit 1); exit 1; }; } ;;
5796 *) ac_config_targets="$ac_config_targets $1" ;;
5798 esac
5799 shift
5800 done
5802 ac_configure_extra_args=
5804 if $ac_cs_silent; then
5805 exec 6>/dev/null
5806 ac_configure_extra_args="$ac_configure_extra_args --silent"
5809 _ACEOF
5810 cat >>$CONFIG_STATUS <<_ACEOF
5811 if \$ac_cs_recheck; then
5812 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5813 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5816 _ACEOF
5818 cat >>$CONFIG_STATUS <<_ACEOF
5820 # INIT-COMMANDS section.
5824 srcdir="$srcdir"
5825 host="$host"
5826 target="$target"
5827 with_multisubdir="$with_multisubdir"
5828 with_multisrctop="$with_multisrctop"
5829 with_target_subdir="$with_target_subdir"
5830 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5831 multi_basedir="$multi_basedir"
5832 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5833 CC="$CC"
5834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5836 _ACEOF
5840 cat >>$CONFIG_STATUS <<\_ACEOF
5841 for ac_config_target in $ac_config_targets
5843 case "$ac_config_target" in
5844 # Handling of arguments.
5845 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5846 "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
5847 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5848 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5849 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5852 { (exit 1); exit 1; }; };;
5853 esac
5854 done
5856 # If the user did not use the arguments to specify the items to instantiate,
5857 # then the envvar interface is used. Set only those that are not.
5858 # We use the long form for the default assignment because of an extremely
5859 # bizarre bug on SunOS 4.1.3.
5860 if $ac_need_defaults; then
5861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5866 # Have a temporary directory for convenience. Make it in the build tree
5867 # simply because there is no reason to put it here, and in addition,
5868 # creating and moving files from /tmp can sometimes cause problems.
5869 # Create a temporary directory, and hook for its removal unless debugging.
5870 $debug ||
5872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5873 trap '{ (exit 1); exit 1; }' 1 2 13 15
5876 # Create a (secure) tmp directory for tmp files.
5879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5880 test -n "$tmp" && test -d "$tmp"
5881 } ||
5883 tmp=./confstat$$-$RANDOM
5884 (umask 077 && mkdir $tmp)
5885 } ||
5887 echo "$me: cannot create a temporary directory in ." >&2
5888 { (exit 1); exit 1; }
5891 _ACEOF
5893 cat >>$CONFIG_STATUS <<_ACEOF
5896 # CONFIG_FILES section.
5899 # No need to generate the scripts if there are no CONFIG_FILES.
5900 # This happens for instance when ./config.status config.h
5901 if test -n "\$CONFIG_FILES"; then
5902 # Protect against being on the right side of a sed subst in config.status.
5903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5905 s,@SHELL@,$SHELL,;t t
5906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5912 s,@exec_prefix@,$exec_prefix,;t t
5913 s,@prefix@,$prefix,;t t
5914 s,@program_transform_name@,$program_transform_name,;t t
5915 s,@bindir@,$bindir,;t t
5916 s,@sbindir@,$sbindir,;t t
5917 s,@libexecdir@,$libexecdir,;t t
5918 s,@datadir@,$datadir,;t t
5919 s,@sysconfdir@,$sysconfdir,;t t
5920 s,@sharedstatedir@,$sharedstatedir,;t t
5921 s,@localstatedir@,$localstatedir,;t t
5922 s,@libdir@,$libdir,;t t
5923 s,@includedir@,$includedir,;t t
5924 s,@oldincludedir@,$oldincludedir,;t t
5925 s,@infodir@,$infodir,;t t
5926 s,@mandir@,$mandir,;t t
5927 s,@build_alias@,$build_alias,;t t
5928 s,@host_alias@,$host_alias,;t t
5929 s,@target_alias@,$target_alias,;t t
5930 s,@DEFS@,$DEFS,;t t
5931 s,@ECHO_C@,$ECHO_C,;t t
5932 s,@ECHO_N@,$ECHO_N,;t t
5933 s,@ECHO_T@,$ECHO_T,;t t
5934 s,@LIBS@,$LIBS,;t t
5935 s,@build@,$build,;t t
5936 s,@build_cpu@,$build_cpu,;t t
5937 s,@build_vendor@,$build_vendor,;t t
5938 s,@build_os@,$build_os,;t t
5939 s,@host@,$host,;t t
5940 s,@host_cpu@,$host_cpu,;t t
5941 s,@host_vendor@,$host_vendor,;t t
5942 s,@host_os@,$host_os,;t t
5943 s,@target@,$target,;t t
5944 s,@target_cpu@,$target_cpu,;t t
5945 s,@target_vendor@,$target_vendor,;t t
5946 s,@target_os@,$target_os,;t t
5947 s,@target_noncanonical@,$target_noncanonical,;t t
5948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5949 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5950 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5951 s,@CYGPATH_W@,$CYGPATH_W,;t t
5952 s,@PACKAGE@,$PACKAGE,;t t
5953 s,@VERSION@,$VERSION,;t t
5954 s,@ACLOCAL@,$ACLOCAL,;t t
5955 s,@AUTOCONF@,$AUTOCONF,;t t
5956 s,@AUTOMAKE@,$AUTOMAKE,;t t
5957 s,@AUTOHEADER@,$AUTOHEADER,;t t
5958 s,@MAKEINFO@,$MAKEINFO,;t t
5959 s,@install_sh@,$install_sh,;t t
5960 s,@STRIP@,$STRIP,;t t
5961 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5962 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5963 s,@mkdir_p@,$mkdir_p,;t t
5964 s,@AWK@,$AWK,;t t
5965 s,@SET_MAKE@,$SET_MAKE,;t t
5966 s,@am__leading_dot@,$am__leading_dot,;t t
5967 s,@AMTAR@,$AMTAR,;t t
5968 s,@am__tar@,$am__tar,;t t
5969 s,@am__untar@,$am__untar,;t t
5970 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5971 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5972 s,@MAINT@,$MAINT,;t t
5973 s,@multi_basedir@,$multi_basedir,;t t
5974 s,@CC@,$CC,;t t
5975 s,@ac_ct_CC@,$ac_ct_CC,;t t
5976 s,@EXEEXT@,$EXEEXT,;t t
5977 s,@OBJEXT@,$OBJEXT,;t t
5978 s,@DEPDIR@,$DEPDIR,;t t
5979 s,@am__include@,$am__include,;t t
5980 s,@am__quote@,$am__quote,;t t
5981 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5982 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5983 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5984 s,@CCDEPMODE@,$CCDEPMODE,;t t
5985 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5986 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5987 s,@CFLAGS@,$CFLAGS,;t t
5988 s,@CPP@,$CPP,;t t
5989 s,@CPPFLAGS@,$CPPFLAGS,;t t
5990 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
5991 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
5992 s,@EGREP@,$EGREP,;t t
5993 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
5994 s,@LN_S@,$LN_S,;t t
5995 s,@RANLIB@,$RANLIB,;t t
5996 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5997 s,@LIBTOOL@,$LIBTOOL,;t t
5998 s,@enable_shared@,$enable_shared,;t t
5999 s,@enable_static@,$enable_static,;t t
6000 s,@toolexecdir@,$toolexecdir,;t t
6001 s,@toolexeclibdir@,$toolexeclibdir,;t t
6002 s,@LIBOBJS@,$LIBOBJS,;t t
6003 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6004 CEOF
6006 _ACEOF
6008 cat >>$CONFIG_STATUS <<\_ACEOF
6009 # Split the substitutions into bite-sized pieces for seds with
6010 # small command number limits, like on Digital OSF/1 and HP-UX.
6011 ac_max_sed_lines=48
6012 ac_sed_frag=1 # Number of current file.
6013 ac_beg=1 # First line for current file.
6014 ac_end=$ac_max_sed_lines # Line after last line for current file.
6015 ac_more_lines=:
6016 ac_sed_cmds=
6017 while $ac_more_lines; do
6018 if test $ac_beg -gt 1; then
6019 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6020 else
6021 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6023 if test ! -s $tmp/subs.frag; then
6024 ac_more_lines=false
6025 else
6026 # The purpose of the label and of the branching condition is to
6027 # speed up the sed processing (if there are no `@' at all, there
6028 # is no need to browse any of the substitutions).
6029 # These are the two extra sed commands mentioned above.
6030 (echo ':t
6031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6032 if test -z "$ac_sed_cmds"; then
6033 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6034 else
6035 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6037 ac_sed_frag=`expr $ac_sed_frag + 1`
6038 ac_beg=$ac_end
6039 ac_end=`expr $ac_end + $ac_max_sed_lines`
6041 done
6042 if test -z "$ac_sed_cmds"; then
6043 ac_sed_cmds=cat
6045 fi # test -n "$CONFIG_FILES"
6047 _ACEOF
6048 cat >>$CONFIG_STATUS <<\_ACEOF
6049 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6051 case $ac_file in
6052 - | *:- | *:-:* ) # input from stdin
6053 cat >$tmp/stdin
6054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6058 * ) ac_file_in=$ac_file.in ;;
6059 esac
6061 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6062 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6064 X"$ac_file" : 'X\(//\)[^/]' \| \
6065 X"$ac_file" : 'X\(//\)$' \| \
6066 X"$ac_file" : 'X\(/\)' \| \
6067 . : '\(.\)' 2>/dev/null ||
6068 echo X"$ac_file" |
6069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6071 /^X\(\/\/\)$/{ s//\1/; q; }
6072 /^X\(\/\).*/{ s//\1/; q; }
6073 s/.*/./; q'`
6074 { if $as_mkdir_p; then
6075 mkdir -p "$ac_dir"
6076 else
6077 as_dir="$ac_dir"
6078 as_dirs=
6079 while test ! -d "$as_dir"; do
6080 as_dirs="$as_dir $as_dirs"
6081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6083 X"$as_dir" : 'X\(//\)[^/]' \| \
6084 X"$as_dir" : 'X\(//\)$' \| \
6085 X"$as_dir" : 'X\(/\)' \| \
6086 . : '\(.\)' 2>/dev/null ||
6087 echo X"$as_dir" |
6088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6090 /^X\(\/\/\)$/{ s//\1/; q; }
6091 /^X\(\/\).*/{ s//\1/; q; }
6092 s/.*/./; q'`
6093 done
6094 test ! -n "$as_dirs" || mkdir $as_dirs
6095 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6096 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6097 { (exit 1); exit 1; }; }; }
6099 ac_builddir=.
6101 if test "$ac_dir" != .; then
6102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6103 # A "../" for each directory in $ac_dir_suffix.
6104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6105 else
6106 ac_dir_suffix= ac_top_builddir=
6109 case $srcdir in
6110 .) # No --srcdir option. We are building in place.
6111 ac_srcdir=.
6112 if test -z "$ac_top_builddir"; then
6113 ac_top_srcdir=.
6114 else
6115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6116 fi ;;
6117 [\\/]* | ?:[\\/]* ) # Absolute path.
6118 ac_srcdir=$srcdir$ac_dir_suffix;
6119 ac_top_srcdir=$srcdir ;;
6120 *) # Relative path.
6121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6123 esac
6125 # Do not use `cd foo && pwd` to compute absolute paths, because
6126 # the directories may not exist.
6127 case `pwd` in
6128 .) ac_abs_builddir="$ac_dir";;
6130 case "$ac_dir" in
6131 .) ac_abs_builddir=`pwd`;;
6132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6134 esac;;
6135 esac
6136 case $ac_abs_builddir in
6137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6139 case ${ac_top_builddir}. in
6140 .) ac_abs_top_builddir=$ac_abs_builddir;;
6141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6143 esac;;
6144 esac
6145 case $ac_abs_builddir in
6146 .) ac_abs_srcdir=$ac_srcdir;;
6148 case $ac_srcdir in
6149 .) ac_abs_srcdir=$ac_abs_builddir;;
6150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6152 esac;;
6153 esac
6154 case $ac_abs_builddir in
6155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6157 case $ac_top_srcdir in
6158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6161 esac;;
6162 esac
6165 case $INSTALL in
6166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6167 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6168 esac
6170 if test x"$ac_file" != x-; then
6171 { echo "$as_me:$LINENO: creating $ac_file" >&5
6172 echo "$as_me: creating $ac_file" >&6;}
6173 rm -f "$ac_file"
6175 # Let's still pretend it is `configure' which instantiates (i.e., don't
6176 # use $as_me), people would be surprised to read:
6177 # /* config.h. Generated by config.status. */
6178 if test x"$ac_file" = x-; then
6179 configure_input=
6180 else
6181 configure_input="$ac_file. "
6183 configure_input=$configure_input"Generated from `echo $ac_file_in |
6184 sed 's,.*/,,'` by configure."
6186 # First look for the input files in the build tree, otherwise in the
6187 # src tree.
6188 ac_file_inputs=`IFS=:
6189 for f in $ac_file_in; do
6190 case $f in
6191 -) echo $tmp/stdin ;;
6192 [\\/$]*)
6193 # Absolute (can't be DOS-style, as IFS=:)
6194 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6195 echo "$as_me: error: cannot find input file: $f" >&2;}
6196 { (exit 1); exit 1; }; }
6197 echo "$f";;
6198 *) # Relative
6199 if test -f "$f"; then
6200 # Build tree
6201 echo "$f"
6202 elif test -f "$srcdir/$f"; then
6203 # Source tree
6204 echo "$srcdir/$f"
6205 else
6206 # /dev/null tree
6207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6208 echo "$as_me: error: cannot find input file: $f" >&2;}
6209 { (exit 1); exit 1; }; }
6210 fi;;
6211 esac
6212 done` || { (exit 1); exit 1; }
6213 _ACEOF
6214 cat >>$CONFIG_STATUS <<_ACEOF
6215 sed "$ac_vpsub
6216 $extrasub
6217 _ACEOF
6218 cat >>$CONFIG_STATUS <<\_ACEOF
6220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6221 s,@configure_input@,$configure_input,;t t
6222 s,@srcdir@,$ac_srcdir,;t t
6223 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6224 s,@top_srcdir@,$ac_top_srcdir,;t t
6225 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6226 s,@builddir@,$ac_builddir,;t t
6227 s,@abs_builddir@,$ac_abs_builddir,;t t
6228 s,@top_builddir@,$ac_top_builddir,;t t
6229 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6230 s,@INSTALL@,$ac_INSTALL,;t t
6231 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6232 rm -f $tmp/stdin
6233 if test x"$ac_file" != x-; then
6234 mv $tmp/out $ac_file
6235 else
6236 cat $tmp/out
6237 rm -f $tmp/out
6240 done
6241 _ACEOF
6242 cat >>$CONFIG_STATUS <<\_ACEOF
6245 # CONFIG_HEADER section.
6248 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6249 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6251 # ac_d sets the value in "#define NAME VALUE" lines.
6252 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6253 ac_dB='[ ].*$,\1#\2'
6254 ac_dC=' '
6255 ac_dD=',;t'
6256 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6257 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6258 ac_uB='$,\1#\2define\3'
6259 ac_uC=' '
6260 ac_uD=',;t'
6262 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6264 case $ac_file in
6265 - | *:- | *:-:* ) # input from stdin
6266 cat >$tmp/stdin
6267 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6269 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6271 * ) ac_file_in=$ac_file.in ;;
6272 esac
6274 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6275 echo "$as_me: creating $ac_file" >&6;}
6277 # First look for the input files in the build tree, otherwise in the
6278 # src tree.
6279 ac_file_inputs=`IFS=:
6280 for f in $ac_file_in; do
6281 case $f in
6282 -) echo $tmp/stdin ;;
6283 [\\/$]*)
6284 # Absolute (can't be DOS-style, as IFS=:)
6285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6286 echo "$as_me: error: cannot find input file: $f" >&2;}
6287 { (exit 1); exit 1; }; }
6288 # Do quote $f, to prevent DOS paths from being IFS'd.
6289 echo "$f";;
6290 *) # Relative
6291 if test -f "$f"; then
6292 # Build tree
6293 echo "$f"
6294 elif test -f "$srcdir/$f"; then
6295 # Source tree
6296 echo "$srcdir/$f"
6297 else
6298 # /dev/null tree
6299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6300 echo "$as_me: error: cannot find input file: $f" >&2;}
6301 { (exit 1); exit 1; }; }
6302 fi;;
6303 esac
6304 done` || { (exit 1); exit 1; }
6305 # Remove the trailing spaces.
6306 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6308 _ACEOF
6310 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6311 # `conftest.undefs', that substitutes the proper values into
6312 # config.h.in to produce config.h. The first handles `#define'
6313 # templates, and the second `#undef' templates.
6314 # And first: Protect against being on the right side of a sed subst in
6315 # config.status. Protect against being in an unquoted here document
6316 # in config.status.
6317 rm -f conftest.defines conftest.undefs
6318 # Using a here document instead of a string reduces the quoting nightmare.
6319 # Putting comments in sed scripts is not portable.
6321 # `end' is used to avoid that the second main sed command (meant for
6322 # 0-ary CPP macros) applies to n-ary macro definitions.
6323 # See the Autoconf documentation for `clear'.
6324 cat >confdef2sed.sed <<\_ACEOF
6325 s/[\\&,]/\\&/g
6326 s,[\\$`],\\&,g
6327 t clear
6328 : clear
6329 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6330 t end
6331 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6332 : end
6333 _ACEOF
6334 # If some macros were called several times there might be several times
6335 # the same #defines, which is useless. Nevertheless, we may not want to
6336 # sort them, since we want the *last* AC-DEFINE to be honored.
6337 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6338 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6339 rm -f confdef2sed.sed
6341 # This sed command replaces #undef with comments. This is necessary, for
6342 # example, in the case of _POSIX_SOURCE, which is predefined and required
6343 # on some systems where configure will not decide to define it.
6344 cat >>conftest.undefs <<\_ACEOF
6345 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6346 _ACEOF
6348 # Break up conftest.defines because some shells have a limit on the size
6349 # of here documents, and old seds have small limits too (100 cmds).
6350 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6351 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6352 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6353 echo ' :' >>$CONFIG_STATUS
6354 rm -f conftest.tail
6355 while grep . conftest.defines >/dev/null
6357 # Write a limited-size here document to $tmp/defines.sed.
6358 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6359 # Speed up: don't consider the non `#define' lines.
6360 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6361 # Work around the forget-to-reset-the-flag bug.
6362 echo 't clr' >>$CONFIG_STATUS
6363 echo ': clr' >>$CONFIG_STATUS
6364 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6365 echo 'CEOF
6366 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6367 rm -f $tmp/in
6368 mv $tmp/out $tmp/in
6369 ' >>$CONFIG_STATUS
6370 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6371 rm -f conftest.defines
6372 mv conftest.tail conftest.defines
6373 done
6374 rm -f conftest.defines
6375 echo ' fi # grep' >>$CONFIG_STATUS
6376 echo >>$CONFIG_STATUS
6378 # Break up conftest.undefs because some shells have a limit on the size
6379 # of here documents, and old seds have small limits too (100 cmds).
6380 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6381 rm -f conftest.tail
6382 while grep . conftest.undefs >/dev/null
6384 # Write a limited-size here document to $tmp/undefs.sed.
6385 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6386 # Speed up: don't consider the non `#undef'
6387 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6388 # Work around the forget-to-reset-the-flag bug.
6389 echo 't clr' >>$CONFIG_STATUS
6390 echo ': clr' >>$CONFIG_STATUS
6391 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6392 echo 'CEOF
6393 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6394 rm -f $tmp/in
6395 mv $tmp/out $tmp/in
6396 ' >>$CONFIG_STATUS
6397 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6398 rm -f conftest.undefs
6399 mv conftest.tail conftest.undefs
6400 done
6401 rm -f conftest.undefs
6403 cat >>$CONFIG_STATUS <<\_ACEOF
6404 # Let's still pretend it is `configure' which instantiates (i.e., don't
6405 # use $as_me), people would be surprised to read:
6406 # /* config.h. Generated by config.status. */
6407 if test x"$ac_file" = x-; then
6408 echo "/* Generated by configure. */" >$tmp/config.h
6409 else
6410 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6412 cat $tmp/in >>$tmp/config.h
6413 rm -f $tmp/in
6414 if test x"$ac_file" != x-; then
6415 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6416 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6417 echo "$as_me: $ac_file is unchanged" >&6;}
6418 else
6419 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6421 X"$ac_file" : 'X\(//\)[^/]' \| \
6422 X"$ac_file" : 'X\(//\)$' \| \
6423 X"$ac_file" : 'X\(/\)' \| \
6424 . : '\(.\)' 2>/dev/null ||
6425 echo X"$ac_file" |
6426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6428 /^X\(\/\/\)$/{ s//\1/; q; }
6429 /^X\(\/\).*/{ s//\1/; q; }
6430 s/.*/./; q'`
6431 { if $as_mkdir_p; then
6432 mkdir -p "$ac_dir"
6433 else
6434 as_dir="$ac_dir"
6435 as_dirs=
6436 while test ! -d "$as_dir"; do
6437 as_dirs="$as_dir $as_dirs"
6438 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6440 X"$as_dir" : 'X\(//\)[^/]' \| \
6441 X"$as_dir" : 'X\(//\)$' \| \
6442 X"$as_dir" : 'X\(/\)' \| \
6443 . : '\(.\)' 2>/dev/null ||
6444 echo X"$as_dir" |
6445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6447 /^X\(\/\/\)$/{ s//\1/; q; }
6448 /^X\(\/\).*/{ s//\1/; q; }
6449 s/.*/./; q'`
6450 done
6451 test ! -n "$as_dirs" || mkdir $as_dirs
6452 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6453 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6454 { (exit 1); exit 1; }; }; }
6456 rm -f $ac_file
6457 mv $tmp/config.h $ac_file
6459 else
6460 cat $tmp/config.h
6461 rm -f $tmp/config.h
6463 # Compute $ac_file's index in $config_headers.
6464 _am_stamp_count=1
6465 for _am_header in $config_headers :; do
6466 case $_am_header in
6467 $ac_file | $ac_file:* )
6468 break ;;
6470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6471 esac
6472 done
6473 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6474 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6475 X$ac_file : 'X\(//\)[^/]' \| \
6476 X$ac_file : 'X\(//\)$' \| \
6477 X$ac_file : 'X\(/\)' \| \
6478 . : '\(.\)' 2>/dev/null ||
6479 echo X$ac_file |
6480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6482 /^X\(\/\/\)$/{ s//\1/; q; }
6483 /^X\(\/\).*/{ s//\1/; q; }
6484 s/.*/./; q'`/stamp-h$_am_stamp_count
6485 done
6486 _ACEOF
6487 cat >>$CONFIG_STATUS <<\_ACEOF
6490 # CONFIG_COMMANDS section.
6492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6495 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6496 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6497 X"$ac_dest" : 'X\(//\)[^/]' \| \
6498 X"$ac_dest" : 'X\(//\)$' \| \
6499 X"$ac_dest" : 'X\(/\)' \| \
6500 . : '\(.\)' 2>/dev/null ||
6501 echo X"$ac_dest" |
6502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6504 /^X\(\/\/\)$/{ s//\1/; q; }
6505 /^X\(\/\).*/{ s//\1/; q; }
6506 s/.*/./; q'`
6507 { if $as_mkdir_p; then
6508 mkdir -p "$ac_dir"
6509 else
6510 as_dir="$ac_dir"
6511 as_dirs=
6512 while test ! -d "$as_dir"; do
6513 as_dirs="$as_dir $as_dirs"
6514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6516 X"$as_dir" : 'X\(//\)[^/]' \| \
6517 X"$as_dir" : 'X\(//\)$' \| \
6518 X"$as_dir" : 'X\(/\)' \| \
6519 . : '\(.\)' 2>/dev/null ||
6520 echo X"$as_dir" |
6521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6523 /^X\(\/\/\)$/{ s//\1/; q; }
6524 /^X\(\/\).*/{ s//\1/; q; }
6525 s/.*/./; q'`
6526 done
6527 test ! -n "$as_dirs" || mkdir $as_dirs
6528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6530 { (exit 1); exit 1; }; }; }
6532 ac_builddir=.
6534 if test "$ac_dir" != .; then
6535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6536 # A "../" for each directory in $ac_dir_suffix.
6537 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6538 else
6539 ac_dir_suffix= ac_top_builddir=
6542 case $srcdir in
6543 .) # No --srcdir option. We are building in place.
6544 ac_srcdir=.
6545 if test -z "$ac_top_builddir"; then
6546 ac_top_srcdir=.
6547 else
6548 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6549 fi ;;
6550 [\\/]* | ?:[\\/]* ) # Absolute path.
6551 ac_srcdir=$srcdir$ac_dir_suffix;
6552 ac_top_srcdir=$srcdir ;;
6553 *) # Relative path.
6554 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6555 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6556 esac
6558 # Do not use `cd foo && pwd` to compute absolute paths, because
6559 # the directories may not exist.
6560 case `pwd` in
6561 .) ac_abs_builddir="$ac_dir";;
6563 case "$ac_dir" in
6564 .) ac_abs_builddir=`pwd`;;
6565 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6566 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6567 esac;;
6568 esac
6569 case $ac_abs_builddir in
6570 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6572 case ${ac_top_builddir}. in
6573 .) ac_abs_top_builddir=$ac_abs_builddir;;
6574 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6575 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6576 esac;;
6577 esac
6578 case $ac_abs_builddir in
6579 .) ac_abs_srcdir=$ac_srcdir;;
6581 case $ac_srcdir in
6582 .) ac_abs_srcdir=$ac_abs_builddir;;
6583 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6584 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6585 esac;;
6586 esac
6587 case $ac_abs_builddir in
6588 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6590 case $ac_top_srcdir in
6591 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6592 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6593 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6594 esac;;
6595 esac
6598 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6599 echo "$as_me: executing $ac_dest commands" >&6;}
6600 case $ac_dest in
6601 default-1 )
6602 # Only add multilib support code if we just rebuilt the top-level
6603 # Makefile.
6604 case " $CONFIG_FILES " in
6605 *" Makefile "*)
6606 ac_file=Makefile . ${multi_basedir}/config-ml.in
6608 esac ;;
6609 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6610 # Strip MF so we end up with the name of the file.
6611 mf=`echo "$mf" | sed -e 's/:.*$//'`
6612 # Check whether this is an Automake generated Makefile or not.
6613 # We used to match only the files named `Makefile.in', but
6614 # some people rename them; so instead we look at the file content.
6615 # Grep'ing the first line is not enough: some people post-process
6616 # each Makefile.in and add a new line on top of each file to say so.
6617 # So let's grep whole file.
6618 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6619 dirpart=`(dirname "$mf") 2>/dev/null ||
6620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6621 X"$mf" : 'X\(//\)[^/]' \| \
6622 X"$mf" : 'X\(//\)$' \| \
6623 X"$mf" : 'X\(/\)' \| \
6624 . : '\(.\)' 2>/dev/null ||
6625 echo X"$mf" |
6626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6628 /^X\(\/\/\)$/{ s//\1/; q; }
6629 /^X\(\/\).*/{ s//\1/; q; }
6630 s/.*/./; q'`
6631 else
6632 continue
6634 # Extract the definition of DEPDIR, am__include, and am__quote
6635 # from the Makefile without running `make'.
6636 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6637 test -z "$DEPDIR" && continue
6638 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6639 test -z "am__include" && continue
6640 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6641 # When using ansi2knr, U may be empty or an underscore; expand it
6642 U=`sed -n 's/^U = //p' < "$mf"`
6643 # Find all dependency output files, they are included files with
6644 # $(DEPDIR) in their names. We invoke sed twice because it is the
6645 # simplest approach to changing $(DEPDIR) to its actual value in the
6646 # expansion.
6647 for file in `sed -n "
6648 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6649 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6650 # Make sure the directory exists.
6651 test -f "$dirpart/$file" && continue
6652 fdir=`(dirname "$file") 2>/dev/null ||
6653 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6654 X"$file" : 'X\(//\)[^/]' \| \
6655 X"$file" : 'X\(//\)$' \| \
6656 X"$file" : 'X\(/\)' \| \
6657 . : '\(.\)' 2>/dev/null ||
6658 echo X"$file" |
6659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6661 /^X\(\/\/\)$/{ s//\1/; q; }
6662 /^X\(\/\).*/{ s//\1/; q; }
6663 s/.*/./; q'`
6664 { if $as_mkdir_p; then
6665 mkdir -p $dirpart/$fdir
6666 else
6667 as_dir=$dirpart/$fdir
6668 as_dirs=
6669 while test ! -d "$as_dir"; do
6670 as_dirs="$as_dir $as_dirs"
6671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6673 X"$as_dir" : 'X\(//\)[^/]' \| \
6674 X"$as_dir" : 'X\(//\)$' \| \
6675 X"$as_dir" : 'X\(/\)' \| \
6676 . : '\(.\)' 2>/dev/null ||
6677 echo X"$as_dir" |
6678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6680 /^X\(\/\/\)$/{ s//\1/; q; }
6681 /^X\(\/\).*/{ s//\1/; q; }
6682 s/.*/./; q'`
6683 done
6684 test ! -n "$as_dirs" || mkdir $as_dirs
6685 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6686 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6687 { (exit 1); exit 1; }; }; }
6689 # echo "creating $dirpart/$file"
6690 echo '# dummy' > "$dirpart/$file"
6691 done
6692 done
6694 esac
6695 done
6696 _ACEOF
6698 cat >>$CONFIG_STATUS <<\_ACEOF
6700 { (exit 0); exit 0; }
6701 _ACEOF
6702 chmod +x $CONFIG_STATUS
6703 ac_clean_files=$ac_clean_files_save
6706 # configure is writing to config.log, and then calls config.status.
6707 # config.status does its own redirection, appending to config.log.
6708 # Unfortunately, on DOS this fails, as config.log is still kept open
6709 # by configure, so config.status won't be able to write to it; its
6710 # output is simply discarded. So we exec the FD to /dev/null,
6711 # effectively closing config.log, so it can be properly (re)opened and
6712 # appended to by config.status. When coming back to configure, we
6713 # need to make the FD available again.
6714 if test "$no_create" != yes; then
6715 ac_cs_success=:
6716 ac_config_status_args=
6717 test "$silent" = yes &&
6718 ac_config_status_args="$ac_config_status_args --quiet"
6719 exec 5>/dev/null
6720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6721 exec 5>>config.log
6722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6723 # would make configure fail if this is the last instruction.
6724 $ac_cs_success || { (exit 1); exit 1; }