Radar 8710868: Build a separate version of libcc_kext.a for each ARM slice.
[llvm-gcc-4.2.git] / libssp / configure
blobf5c3c5f7ed12bfad5e59004373152c780dcae056
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 # APPLE LOCAL ld64 bug found by libssp 4453468
3522 ssp_use_symver=no
3523 rm -f conftest.err conftest.$ac_objext \
3524 conftest$ac_exeext conftest.$ac_ext
3526 LDFLAGS="$save_LDFLAGS"
3527 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3528 echo "${ECHO_T}$ssp_use_symver" >&6
3531 if test "x$ssp_use_symver" = xyes; then
3532 LIBSSP_USE_SYMVER_TRUE=
3533 LIBSSP_USE_SYMVER_FALSE='#'
3534 else
3535 LIBSSP_USE_SYMVER_TRUE='#'
3536 LIBSSP_USE_SYMVER_FALSE=
3541 echo "$as_me:$LINENO: checking for egrep" >&5
3542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3543 if test "${ac_cv_prog_egrep+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3547 then ac_cv_prog_egrep='grep -E'
3548 else ac_cv_prog_egrep='egrep'
3551 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3552 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3553 EGREP=$ac_cv_prog_egrep
3556 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3557 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3558 if test "${ac_cv_header_stdc+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 #include <stdlib.h>
3568 #include <stdarg.h>
3569 #include <string.h>
3570 #include <float.h>
3573 main ()
3577 return 0;
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582 (eval $ac_compile) 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try='test -z "$ac_c_werror_flag"
3590 || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 ac_cv_header_stdc=yes
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_cv_header_stdc=no
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 if test $ac_cv_header_stdc = yes; then
3612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <string.h>
3621 _ACEOF
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 $EGREP "memchr" >/dev/null 2>&1; then
3625 else
3626 ac_cv_header_stdc=no
3628 rm -f conftest*
3632 if test $ac_cv_header_stdc = yes; then
3633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h. */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 #include <stdlib.h>
3642 _ACEOF
3643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3644 $EGREP "free" >/dev/null 2>&1; then
3646 else
3647 ac_cv_header_stdc=no
3649 rm -f conftest*
3653 if test $ac_cv_header_stdc = yes; then
3654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3655 if test "$cross_compiling" = yes; then
3657 else
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h. */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <ctype.h>
3665 #if ((' ' & 0x0FF) == 0x020)
3666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3668 #else
3669 # define ISLOWER(c) \
3670 (('a' <= (c) && (c) <= 'i') \
3671 || ('j' <= (c) && (c) <= 'r') \
3672 || ('s' <= (c) && (c) <= 'z'))
3673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3674 #endif
3676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3678 main ()
3680 int i;
3681 for (i = 0; i < 256; i++)
3682 if (XOR (islower (i), ISLOWER (i))
3683 || toupper (i) != TOUPPER (i))
3684 exit(2);
3685 exit (0);
3687 _ACEOF
3688 rm -f conftest$ac_exeext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690 (eval $ac_link) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3700 else
3701 echo "$as_me: program exited with status $ac_status" >&5
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 ( exit $ac_status )
3706 ac_cv_header_stdc=no
3708 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3713 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3714 if test $ac_cv_header_stdc = yes; then
3716 cat >>confdefs.h <<\_ACEOF
3717 #define STDC_HEADERS 1
3718 _ACEOF
3722 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3733 inttypes.h stdint.h unistd.h
3735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3736 echo "$as_me:$LINENO: checking for $ac_header" >&5
3737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 $ac_includes_default
3749 #include <$ac_header>
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 eval "$as_ac_Header=yes"
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 eval "$as_ac_Header=no"
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3785 cat >>confdefs.h <<_ACEOF
3786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787 _ACEOF
3791 done
3802 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3806 echo "$as_me:$LINENO: checking for $ac_header" >&5
3807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3813 else
3814 # Is the header compilable?
3815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3824 #include <$ac_header>
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_header_compiler=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_header_compiler=no
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <$ac_header>
3869 _ACEOF
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null; then
3878 if test -s conftest.err; then
3879 ac_cpp_err=$ac_c_preproc_warn_flag
3880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881 else
3882 ac_cpp_err=
3884 else
3885 ac_cpp_err=yes
3887 if test -z "$ac_cpp_err"; then
3888 ac_header_preproc=yes
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_header_preproc=no
3895 rm -f conftest.err conftest.$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3899 # So? What about this header?
3900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3901 yes:no: )
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3906 ac_header_preproc=yes
3908 no:yes:* )
3909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3922 cat <<\_ASBOX
3923 ## --------------------------------- ##
3924 ## Report this to the libssp lists. ##
3925 ## --------------------------------- ##
3926 _ASBOX
3928 sed "s/^/$as_me: WARNING: /" >&2
3930 esac
3931 echo "$as_me:$LINENO: checking for $ac_header" >&5
3932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 eval "$as_ac_Header=\$ac_header_preproc"
3938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3943 cat >>confdefs.h <<_ACEOF
3944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3945 _ACEOF
3949 done
3952 if test x$gcc_no_link = xyes; then
3953 # Presume the ISO C functions are available; add target-specific
3954 # configuration here if required.
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_STRNCPY 1
3957 _ACEOF
3959 cat >>confdefs.h <<\_ACEOF
3960 #define HAVE_STRNCAT 1
3961 _ACEOF
3963 else
3967 for ac_func in mempcpy strncpy strncat
3969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970 echo "$as_me:$LINENO: checking for $ac_func" >&5
3971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972 if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 if test x$gcc_no_link = xyes; then
3976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3978 { (exit 1); exit 1; }; }
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3988 #define $ac_func innocuous_$ac_func
3990 /* System header to define __stub macros and hopefully few prototypes,
3991 which can conflict with char $ac_func (); below.
3992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 <limits.h> exists even on freestanding compilers. */
3995 #ifdef __STDC__
3996 # include <limits.h>
3997 #else
3998 # include <assert.h>
3999 #endif
4001 #undef $ac_func
4003 /* Override any gcc2 internal prototype to avoid an error. */
4004 #ifdef __cplusplus
4005 extern "C"
4007 #endif
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4010 char $ac_func ();
4011 /* The GNU C library defines this for functions which it implements
4012 to always fail with ENOSYS. Some functions are actually named
4013 something starting with __ and the normal name is an alias. */
4014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4015 choke me
4016 #else
4017 char (*f) () = $ac_func;
4018 #endif
4019 #ifdef __cplusplus
4021 #endif
4024 main ()
4026 return f != $ac_func;
4028 return 0;
4030 _ACEOF
4031 rm -f conftest.$ac_objext conftest$ac_exeext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033 (eval $ac_link) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 eval "$as_ac_var=yes"
4054 else
4055 echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 eval "$as_ac_var=no"
4060 rm -f conftest.err conftest.$ac_objext \
4061 conftest$ac_exeext conftest.$ac_ext
4063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4065 if test `eval echo '${'$as_ac_var'}'` = yes; then
4066 cat >>confdefs.h <<_ACEOF
4067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4068 _ACEOF
4071 done
4075 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4076 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4077 if test "$cross_compiling" = yes; then
4078 ssp_have_usable_vsnprintf=undef
4079 else
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4087 #include <stdarg.h>
4088 #include <string.h>
4089 #include <stdio.h>
4090 int foo (char *buf, size_t n, const char *fmt, ...)
4092 va_list ap;
4093 int ret;
4094 va_start (ap, fmt);
4095 ret = vsnprintf (buf, n, fmt, ap);
4096 va_end (ap);
4097 return ret;
4100 main ()
4102 char buf[8]; memset (buf, 'A', sizeof (buf));
4103 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4104 return 1;
4105 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4107 return 0;
4109 _ACEOF
4110 rm -f conftest$ac_exeext
4111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112 (eval $ac_link) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ssp_have_usable_vsnprintf=define
4122 else
4123 echo "$as_me: program exited with status $ac_status" >&5
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ( exit $ac_status )
4128 ssp_have_usable_vsnprintf=undef
4130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4132 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4133 echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6
4136 cat >>confdefs.h <<\_ACEOF
4137 #define HAVE_USABLE_VSNPRINTF 1
4138 _ACEOF
4140 else
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4146 # Check whether --enable-shared or --disable-shared was given.
4147 if test "${enable_shared+set}" = set; then
4148 enableval="$enable_shared"
4149 p=${PACKAGE-default}
4150 case $enableval in
4151 yes) enable_shared=yes ;;
4152 no) enable_shared=no ;;
4154 enable_shared=no
4155 # Look at the argument we got. We use all the common list separators.
4156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4157 for pkg in $enableval; do
4158 if test "X$pkg" = "X$p"; then
4159 enable_shared=yes
4161 done
4162 IFS="$ac_save_ifs"
4164 esac
4165 else
4166 enable_shared=yes
4168 # Check whether --enable-static or --disable-static was given.
4169 if test "${enable_static+set}" = set; then
4170 enableval="$enable_static"
4171 p=${PACKAGE-default}
4172 case $enableval in
4173 yes) enable_static=yes ;;
4174 no) enable_static=no ;;
4176 enable_static=no
4177 # Look at the argument we got. We use all the common list separators.
4178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4179 for pkg in $enableval; do
4180 if test "X$pkg" = "X$p"; then
4181 enable_static=yes
4183 done
4184 IFS="$ac_save_ifs"
4186 esac
4187 else
4188 enable_static=yes
4190 # Check whether --enable-fast-install or --disable-fast-install was given.
4191 if test "${enable_fast_install+set}" = set; then
4192 enableval="$enable_fast_install"
4193 p=${PACKAGE-default}
4194 case $enableval in
4195 yes) enable_fast_install=yes ;;
4196 no) enable_fast_install=no ;;
4198 enable_fast_install=no
4199 # Look at the argument we got. We use all the common list separators.
4200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4201 for pkg in $enableval; do
4202 if test "X$pkg" = "X$p"; then
4203 enable_fast_install=yes
4205 done
4206 IFS="$ac_save_ifs"
4208 esac
4209 else
4210 enable_fast_install=yes
4213 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4214 if test "${with_gnu_ld+set}" = set; then
4215 withval="$with_gnu_ld"
4216 test "$withval" = no || with_gnu_ld=yes
4217 else
4218 with_gnu_ld=no
4220 ac_prog=ld
4221 if test "$GCC" = yes; then
4222 # Check if gcc -print-prog-name=ld gives a path.
4223 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4224 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4225 case $host in
4226 *-*-mingw*)
4227 # gcc leaves a trailing carriage return which upsets mingw
4228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4231 esac
4232 case $ac_prog in
4233 # Accept absolute paths.
4234 [\\/]* | [A-Za-z]:[\\/]*)
4235 re_direlt='/[^/][^/]*/\.\./'
4236 # Canonicalize the path of ld
4237 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4238 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4239 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4240 done
4241 test -z "$LD" && LD="$ac_prog"
4244 # If it fails, then pretend we aren't using GCC.
4245 ac_prog=ld
4248 # If it is relative, then search for the first ld in PATH.
4249 with_gnu_ld=unknown
4251 esac
4252 elif test "$with_gnu_ld" = yes; then
4253 echo "$as_me:$LINENO: checking for GNU ld" >&5
4254 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4255 else
4256 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4257 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4259 if test "${lt_cv_path_LD+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -z "$LD"; then
4263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4264 for ac_dir in $PATH; do
4265 test -z "$ac_dir" && ac_dir=.
4266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4267 lt_cv_path_LD="$ac_dir/$ac_prog"
4268 # Check to see if the program is GNU ld. I'd rather use --version,
4269 # but apparently some GNU ld's only accept -v.
4270 # Break only if it was the GNU/non-GNU ld that we prefer.
4271 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4272 test "$with_gnu_ld" != no && break
4273 else
4274 test "$with_gnu_ld" != yes && break
4277 done
4278 IFS="$ac_save_ifs"
4279 else
4280 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4284 LD="$lt_cv_path_LD"
4285 if test -n "$LD"; then
4286 echo "$as_me:$LINENO: result: $LD" >&5
4287 echo "${ECHO_T}$LD" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4294 { (exit 1); exit 1; }; }
4295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4301 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4302 lt_cv_prog_gnu_ld=yes
4303 else
4304 lt_cv_prog_gnu_ld=no
4307 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4308 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4309 with_gnu_ld=$lt_cv_prog_gnu_ld
4312 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4313 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4314 if test "${lt_cv_ld_reload_flag+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 lt_cv_ld_reload_flag='-r'
4319 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4320 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4321 reload_flag=$lt_cv_ld_reload_flag
4322 test -n "$reload_flag" && reload_flag=" $reload_flag"
4324 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4325 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4326 if test "${lt_cv_path_NM+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$NM"; then
4330 # Let the user override the test.
4331 lt_cv_path_NM="$NM"
4332 else
4333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4334 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4335 test -z "$ac_dir" && ac_dir=.
4336 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4337 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4338 # Check to see if the nm accepts a BSD-compat flag.
4339 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4340 # nm: unknown option "B" ignored
4341 # Tru64's nm complains that /dev/null is an invalid object file
4342 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4343 lt_cv_path_NM="$tmp_nm -B"
4344 break
4345 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4346 lt_cv_path_NM="$tmp_nm -p"
4347 break
4348 else
4349 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4350 continue # so that we can try to find one that supports BSD flags
4353 done
4354 IFS="$ac_save_ifs"
4355 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4359 NM="$lt_cv_path_NM"
4360 echo "$as_me:$LINENO: result: $NM" >&5
4361 echo "${ECHO_T}$NM" >&6
4363 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4364 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4365 LN_S=$as_ln_s
4366 if test "$LN_S" = "ln -s"; then
4367 echo "$as_me:$LINENO: result: yes" >&5
4368 echo "${ECHO_T}yes" >&6
4369 else
4370 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4371 echo "${ECHO_T}no, using $LN_S" >&6
4374 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4375 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4376 if test "${lt_cv_deplibs_check_method+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 lt_cv_file_magic_cmd='$MAGIC_CMD'
4380 lt_cv_file_magic_test_file=
4381 lt_cv_deplibs_check_method='unknown'
4382 # Need to set the preceding variable on all platforms that support
4383 # interlibrary dependencies.
4384 # 'none' -- dependencies not supported.
4385 # `unknown' -- same as none, but documents that we really don't know.
4386 # 'pass_all' -- all dependencies passed with no checks.
4387 # 'test_compile' -- check by making test program.
4388 # 'file_magic [regex]' -- check by looking for files in library path
4389 # which responds to the $file_magic_cmd with a given egrep regex.
4390 # If you have `file' or equivalent on your system and you're not sure
4391 # whether `pass_all' will *always* work, you probably want this one.
4393 case $host_os in
4394 aix*)
4395 lt_cv_deplibs_check_method=pass_all
4398 beos*)
4399 lt_cv_deplibs_check_method=pass_all
4402 bsdi4*)
4403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4404 lt_cv_file_magic_cmd='/usr/bin/file -L'
4405 lt_cv_file_magic_test_file=/shlib/libc.so
4408 cygwin* | mingw* |pw32*)
4409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4410 lt_cv_file_magic_cmd='$OBJDUMP -f'
4413 darwin* | rhapsody*)
4414 # this will be overwritten by pass_all, but leave it in just in case
4415 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4416 lt_cv_file_magic_cmd='/usr/bin/file -L'
4417 case "$host_os" in
4418 rhapsody* | darwin1.012)
4419 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4421 *) # Darwin 1.3 on
4422 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4424 esac
4425 lt_cv_deplibs_check_method=pass_all
4428 freebsd* | kfreebsd*-gnu)
4429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4430 case $host_cpu in
4431 i*86 )
4432 # Not sure whether the presence of OpenBSD here was a mistake.
4433 # Let's accept both of them until this is cleared up.
4434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4435 lt_cv_file_magic_cmd=/usr/bin/file
4436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4438 esac
4439 else
4440 lt_cv_deplibs_check_method=pass_all
4444 gnu*)
4445 lt_cv_deplibs_check_method=pass_all
4448 hpux10.20*|hpux11*)
4449 case $host_cpu in
4450 hppa*)
4451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4452 lt_cv_file_magic_cmd=/usr/bin/file
4453 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4455 ia64*)
4456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4457 lt_cv_file_magic_cmd=/usr/bin/file
4458 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4460 esac
4463 irix5* | irix6*)
4464 case $host_os in
4465 irix5*)
4466 # this will be overridden with pass_all, but let us keep it just in case
4467 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4470 case $LD in
4471 *-32|*"-32 ") libmagic=32-bit;;
4472 *-n32|*"-n32 ") libmagic=N32;;
4473 *-64|*"-64 ") libmagic=64-bit;;
4474 *) libmagic=never-match;;
4475 esac
4476 # this will be overridden with pass_all, but let us keep it just in case
4477 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4479 esac
4480 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4481 lt_cv_deplibs_check_method=pass_all
4484 # This must be Linux ELF.
4485 linux-gnu*)
4486 lt_cv_deplibs_check_method=pass_all
4489 netbsd* | knetbsd*-gnu)
4490 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4491 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4492 else
4493 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4497 newsos6)
4498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4499 lt_cv_file_magic_cmd=/usr/bin/file
4500 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4503 osf3* | osf4* | osf5*)
4504 # this will be overridden with pass_all, but let us keep it just in case
4505 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4506 lt_cv_file_magic_test_file=/shlib/libc.so
4507 lt_cv_deplibs_check_method=pass_all
4510 sco3.2v5*)
4511 lt_cv_deplibs_check_method=pass_all
4514 solaris*)
4515 lt_cv_deplibs_check_method=pass_all
4516 lt_cv_file_magic_test_file=/lib/libc.so
4519 sysv5uw[78]* | sysv4*uw2*)
4520 lt_cv_deplibs_check_method=pass_all
4523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4524 case $host_vendor in
4525 ncr)
4526 lt_cv_deplibs_check_method=pass_all
4528 motorola)
4529 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]'
4530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4532 esac
4534 esac
4537 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4538 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4539 file_magic_cmd=$lt_cv_file_magic_cmd
4540 deplibs_check_method=$lt_cv_deplibs_check_method
4545 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4547 # find the maximum length of command line arguments
4548 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4549 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4550 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4554 teststring="ABCD"
4556 case $build_os in
4557 msdosdjgpp*)
4558 # On DJGPP, this test can blow up pretty badly due to problems in libc
4559 # (any single argument exceeding 2000 bytes causes a buffer overrun
4560 # during glob expansion). Even if it were fixed, the result of this
4561 # check would be larger than it should be.
4562 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4565 cygwin* | mingw*)
4566 # On Win9x/ME, this test blows up -- it succeeds, but takes
4567 # about 5 minutes as the teststring grows exponentially.
4568 # Worse, since 9x/ME are not pre-emptively multitasking,
4569 # you end up with a "frozen" computer, even though with patience
4570 # the test eventually succeeds (with a max line length of 256k).
4571 # Instead, let's just punt: use the minimum linelength reported by
4572 # all of the supported platforms: 8192 (on NT/2K/XP).
4573 lt_cv_sys_max_cmd_len=8192;
4576 amigaos*)
4577 # On AmigaOS with pdksh, this test takes hours, literally.
4578 # So we just punt and use a minimum line length of 8192.
4579 lt_cv_sys_max_cmd_len=8192;
4582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4583 # This has been around since 386BSD, at least. Likely further.
4584 if test -x /sbin/sysctl; then
4585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4586 elif test -x /usr/sbin/sysctl; then
4587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4588 else
4589 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4591 # And add a safety zone
4592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4595 esac
4599 if test -n "$lt_cv_sys_max_cmd_len" ; then
4600 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4601 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4602 else
4603 echo "$as_me:$LINENO: result: none" >&5
4604 echo "${ECHO_T}none" >&6
4608 # Only perform the check for file, if the check method requires it
4609 case $deplibs_check_method in
4610 file_magic*)
4611 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4612 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4613 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4614 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 case $MAGIC_CMD in
4619 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4621 ?:/*)
4622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4625 ac_save_MAGIC_CMD="$MAGIC_CMD"
4626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4627 ac_dummy="/usr/bin:$PATH"
4628 for ac_dir in $ac_dummy; do
4629 test -z "$ac_dir" && ac_dir=.
4630 if test -f $ac_dir/${ac_tool_prefix}file; then
4631 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4632 if test -n "$file_magic_test_file"; then
4633 case $deplibs_check_method in
4634 "file_magic "*)
4635 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4638 egrep "$file_magic_regex" > /dev/null; then
4640 else
4641 cat <<EOF 1>&2
4643 *** Warning: the command libtool uses to detect shared libraries,
4644 *** $file_magic_cmd, produces output that libtool cannot recognize.
4645 *** The result is that libtool may fail to recognize shared libraries
4646 *** as such. This will affect the creation of libtool libraries that
4647 *** depend on shared libraries, but programs linked with such libtool
4648 *** libraries will work regardless of this problem. Nevertheless, you
4649 *** may want to report the problem to your system manager and/or to
4650 *** bug-libtool@gnu.org
4653 fi ;;
4654 esac
4656 break
4658 done
4659 IFS="$ac_save_ifs"
4660 MAGIC_CMD="$ac_save_MAGIC_CMD"
4662 esac
4665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4666 if test -n "$MAGIC_CMD"; then
4667 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4668 echo "${ECHO_T}$MAGIC_CMD" >&6
4669 else
4670 echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6
4674 if test -z "$lt_cv_path_MAGIC_CMD"; then
4675 if test -n "$ac_tool_prefix"; then
4676 echo "$as_me:$LINENO: checking for file" >&5
4677 echo $ECHO_N "checking for file... $ECHO_C" >&6
4678 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 case $MAGIC_CMD in
4683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4685 ?:/*)
4686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4689 ac_save_MAGIC_CMD="$MAGIC_CMD"
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 ac_dummy="/usr/bin:$PATH"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/file; then
4695 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4696 if test -n "$file_magic_test_file"; then
4697 case $deplibs_check_method in
4698 "file_magic "*)
4699 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4702 egrep "$file_magic_regex" > /dev/null; then
4704 else
4705 cat <<EOF 1>&2
4707 *** Warning: the command libtool uses to detect shared libraries,
4708 *** $file_magic_cmd, produces output that libtool cannot recognize.
4709 *** The result is that libtool may fail to recognize shared libraries
4710 *** as such. This will affect the creation of libtool libraries that
4711 *** depend on shared libraries, but programs linked with such libtool
4712 *** libraries will work regardless of this problem. Nevertheless, you
4713 *** may want to report the problem to your system manager and/or to
4714 *** bug-libtool@gnu.org
4717 fi ;;
4718 esac
4720 break
4722 done
4723 IFS="$ac_save_ifs"
4724 MAGIC_CMD="$ac_save_MAGIC_CMD"
4726 esac
4729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4730 if test -n "$MAGIC_CMD"; then
4731 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4732 echo "${ECHO_T}$MAGIC_CMD" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 else
4739 MAGIC_CMD=:
4745 esac
4747 if test -n "$ac_tool_prefix"; then
4748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4750 echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752 if test "${ac_cv_prog_RANLIB+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 if test -n "$RANLIB"; then
4756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4769 done
4770 done
4774 RANLIB=$ac_cv_prog_RANLIB
4775 if test -n "$RANLIB"; then
4776 echo "$as_me:$LINENO: result: $RANLIB" >&5
4777 echo "${ECHO_T}$RANLIB" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4784 if test -z "$ac_cv_prog_RANLIB"; then
4785 ac_ct_RANLIB=$RANLIB
4786 # Extract the first word of "ranlib", so it can be a program name with args.
4787 set dummy ranlib; ac_word=$2
4788 echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 if test -n "$ac_ct_RANLIB"; then
4794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_ac_ct_RANLIB="ranlib"
4804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4810 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4814 if test -n "$ac_ct_RANLIB"; then
4815 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4816 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6
4822 RANLIB=$ac_ct_RANLIB
4823 else
4824 RANLIB="$ac_cv_prog_RANLIB"
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}strip; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_STRIP+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$STRIP"; then
4836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4854 STRIP=$ac_cv_prog_STRIP
4855 if test -n "$STRIP"; then
4856 echo "$as_me:$LINENO: result: $STRIP" >&5
4857 echo "${ECHO_T}$STRIP" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4864 if test -z "$ac_cv_prog_STRIP"; then
4865 ac_ct_STRIP=$STRIP
4866 # Extract the first word of "strip", so it can be a program name with args.
4867 set dummy strip; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 if test -n "$ac_ct_STRIP"; then
4874 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_STRIP="strip"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4890 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4893 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4894 if test -n "$ac_ct_STRIP"; then
4895 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4896 echo "${ECHO_T}$ac_ct_STRIP" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4902 STRIP=$ac_ct_STRIP
4903 else
4904 STRIP="$ac_cv_prog_STRIP"
4908 # Check for any special flags to pass to ltconfig.
4909 libtool_flags="--cache-file=$cache_file"
4910 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4911 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4912 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4913 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4914 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4917 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4918 if test "${enable_libtool_lock+set}" = set; then
4919 enableval="$enable_libtool_lock"
4922 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4923 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4926 # Check whether --with-pic or --without-pic was given.
4927 if test "${with_pic+set}" = set; then
4928 withval="$with_pic"
4929 pic_mode="$withval"
4930 else
4931 pic_mode=default
4933 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4934 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4936 # Some flags need to be propagated to the compiler or linker for good
4937 # libtool support.
4938 case $host in
4939 *-*-irix6*)
4940 # Find out which ABI we are using.
4941 echo '#line 4939 "configure"' > conftest.$ac_ext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; then
4947 if test "$lt_cv_prog_gnu_ld" = yes; then
4948 case `/usr/bin/file conftest.$ac_objext` in
4949 *32-bit*)
4950 LD="${LD-ld} -melf32bsmip"
4952 *N32*)
4953 LD="${LD-ld} -melf32bmipn32"
4955 *64-bit*)
4956 LD="${LD-ld} -melf64bmip"
4958 esac
4959 else
4960 case `/usr/bin/file conftest.$ac_objext` in
4961 *32-bit*)
4962 LD="${LD-ld} -32"
4964 *N32*)
4965 LD="${LD-ld} -n32"
4967 *64-bit*)
4968 LD="${LD-ld} -64"
4970 esac
4973 rm -rf conftest*
4976 ia64-*-hpux*)
4977 # Find out which ABI we are using.
4978 echo 'int i;' > conftest.$ac_ext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; then
4984 case "`/usr/bin/file conftest.o`" in
4985 *ELF-32*)
4986 HPUX_IA64_MODE="32"
4988 *ELF-64*)
4989 HPUX_IA64_MODE="64"
4991 esac
4993 rm -rf conftest*
4996 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4997 # Find out which ABI we are using.
4998 echo 'int i;' > conftest.$ac_ext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; then
5004 case "`/usr/bin/file conftest.o`" in
5005 *32-bit*)
5006 case $host in
5007 x86_64-*linux*)
5008 LD="${LD-ld} -m elf_i386"
5010 ppc64-*linux*|powerpc64-*linux*)
5011 LD="${LD-ld} -m elf32ppclinux"
5013 s390x-*linux*)
5014 LD="${LD-ld} -m elf_s390"
5016 sparc64-*linux*)
5017 LD="${LD-ld} -m elf32_sparc"
5019 esac
5021 *64-bit*)
5022 case $host in
5023 x86_64-*linux*)
5024 LD="${LD-ld} -m elf_x86_64"
5026 ppc*-*linux*|powerpc*-*linux*)
5027 LD="${LD-ld} -m elf64ppc"
5029 s390*-*linux*)
5030 LD="${LD-ld} -m elf64_s390"
5032 sparc*-*linux*)
5033 LD="${LD-ld} -m elf64_sparc"
5035 esac
5037 esac
5039 rm -rf conftest*
5042 *-*-sco3.2v5*)
5043 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5044 SAVE_CFLAGS="$CFLAGS"
5045 CFLAGS="$CFLAGS -belf"
5046 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5047 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5048 if test "${lt_cv_cc_needs_belf+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5053 ac_ext=c
5054 ac_cpp='$CPP $CPPFLAGS'
5055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059 if test x$gcc_no_link = xyes; then
5060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5062 { (exit 1); exit 1; }; }
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5072 main ()
5076 return 0;
5078 _ACEOF
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081 (eval $ac_link) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest$ac_exeext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 lt_cv_cc_needs_belf=yes
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 lt_cv_cc_needs_belf=no
5108 rm -f conftest.err conftest.$ac_objext \
5109 conftest$ac_exeext conftest.$ac_ext
5110 ac_ext=c
5111 ac_cpp='$CPP $CPPFLAGS'
5112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5118 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5119 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5120 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5121 CFLAGS="$SAVE_CFLAGS"
5126 esac
5129 # Save cache, so that ltconfig can load it
5130 cat >confcache <<\_ACEOF
5131 # This file is a shell script that caches the results of configure
5132 # tests run on this system so they can be shared between configure
5133 # scripts and configure runs, see configure's option --config-cache.
5134 # It is not useful on other systems. If it contains results you don't
5135 # want to keep, you may remove or edit it.
5137 # config.status only pays attention to the cache file if you give it
5138 # the --recheck option to rerun configure.
5140 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5141 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5142 # following values.
5144 _ACEOF
5146 # The following way of writing the cache mishandles newlines in values,
5147 # but we know of no workaround that is simple, portable, and efficient.
5148 # So, don't put newlines in cache variables' values.
5149 # Ultrix sh set writes to stderr and can't be redirected directly,
5150 # and sets the high bit in the cache file unless we assign to the vars.
5152 (set) 2>&1 |
5153 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5154 *ac_space=\ *)
5155 # `set' does not quote correctly, so add quotes (double-quote
5156 # substitution turns \\\\ into \\, and sed turns \\ into \).
5157 sed -n \
5158 "s/'/'\\\\''/g;
5159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5162 # `set' quotes correctly as required by POSIX, so do not add quotes.
5163 sed -n \
5164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5166 esac;
5168 sed '
5169 t clear
5170 : clear
5171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5172 t end
5173 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5174 : end' >>confcache
5175 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5176 if test -w $cache_file; then
5177 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5178 cat confcache >$cache_file
5179 else
5180 echo "not updating unwritable cache $cache_file"
5183 rm -f confcache
5185 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5186 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5187 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5188 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5189 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5190 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5191 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5192 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5193 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5194 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5195 echo "$as_me: error: libtool configure failed" >&2;}
5196 { (exit 1); exit 1; }; }
5198 # Reload cache, that may have been modified by ltconfig
5199 if test -r "$cache_file"; then
5200 # Some versions of bash will fail to source /dev/null (special
5201 # files actually), so we avoid doing that.
5202 if test -f "$cache_file"; then
5203 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5204 echo "$as_me: loading cache $cache_file" >&6;}
5205 case $cache_file in
5206 [\\/]* | ?:[\\/]* ) . $cache_file;;
5207 *) . ./$cache_file;;
5208 esac
5210 else
5211 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5212 echo "$as_me: creating cache $cache_file" >&6;}
5213 >$cache_file
5217 # This can be used to rebuild libtool when needed
5218 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5220 # Always use our own libtool.
5221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5223 # Redirect the config.log output again, so that the ltconfig log is not
5224 # clobbered by the next message.
5225 exec 5>>./config.log
5235 # Calculate toolexeclibdir
5236 # Also toolexecdir, though it's only used in toolexeclibdir
5237 case ${version_specific_libs} in
5238 yes)
5239 # Need the gcc compiler version to know where to install libraries
5240 # and header files if --enable-version-specific-runtime-libs option
5241 # is selected.
5242 toolexecdir='$(libdir)/gcc/$(target_alias)'
5243 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5246 if test -n "$with_cross_host" &&
5247 test x"$with_cross_host" != x"no"; then
5248 # Install a library built with a cross compiler in tooldir, not libdir.
5249 toolexecdir='$(exec_prefix)/$(target_alias)'
5250 toolexeclibdir='$(toolexecdir)/lib'
5251 else
5252 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5253 toolexeclibdir='$(libdir)'
5255 multi_os_directory=`$CC -print-multi-os-directory`
5256 case $multi_os_directory in
5257 .) ;; # Avoid trailing /.
5258 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5259 esac
5261 esac
5265 if test ${multilib} = yes; then
5266 multilib_arg="--enable-multilib"
5267 else
5268 multilib_arg=
5271 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
5273 cat >confcache <<\_ACEOF
5274 # This file is a shell script that caches the results of configure
5275 # tests run on this system so they can be shared between configure
5276 # scripts and configure runs, see configure's option --config-cache.
5277 # It is not useful on other systems. If it contains results you don't
5278 # want to keep, you may remove or edit it.
5280 # config.status only pays attention to the cache file if you give it
5281 # the --recheck option to rerun configure.
5283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5285 # following values.
5287 _ACEOF
5289 # The following way of writing the cache mishandles newlines in values,
5290 # but we know of no workaround that is simple, portable, and efficient.
5291 # So, don't put newlines in cache variables' values.
5292 # Ultrix sh set writes to stderr and can't be redirected directly,
5293 # and sets the high bit in the cache file unless we assign to the vars.
5295 (set) 2>&1 |
5296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5297 *ac_space=\ *)
5298 # `set' does not quote correctly, so add quotes (double-quote
5299 # substitution turns \\\\ into \\, and sed turns \\ into \).
5300 sed -n \
5301 "s/'/'\\\\''/g;
5302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5305 # `set' quotes correctly as required by POSIX, so do not add quotes.
5306 sed -n \
5307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5309 esac;
5311 sed '
5312 t clear
5313 : clear
5314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5315 t end
5316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5317 : end' >>confcache
5318 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5319 if test -w $cache_file; then
5320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5321 cat confcache >$cache_file
5322 else
5323 echo "not updating unwritable cache $cache_file"
5326 rm -f confcache
5328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5329 # Let make expand exec_prefix.
5330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5334 # trailing colons and then remove the whole line if VPATH becomes empty
5335 # (actually we leave an empty line to preserve line numbers).
5336 if test "x$srcdir" = x.; then
5337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5338 s/:*\$(srcdir):*/:/;
5339 s/:*\${srcdir}:*/:/;
5340 s/:*@srcdir@:*/:/;
5341 s/^\([^=]*=[ ]*\):*/\1/;
5342 s/:*$//;
5343 s/^[^=]*=[ ]*$//;
5347 DEFS=-DHAVE_CONFIG_H
5349 ac_libobjs=
5350 ac_ltlibobjs=
5351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5352 # 1. Remove the extension, and $U if already installed.
5353 ac_i=`echo "$ac_i" |
5354 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5355 # 2. Add them.
5356 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5357 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5358 done
5359 LIBOBJS=$ac_libobjs
5361 LTLIBOBJS=$ac_ltlibobjs
5364 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5365 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5366 Usually this means the macro was only invoked conditionally." >&5
5367 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5368 Usually this means the macro was only invoked conditionally." >&2;}
5369 { (exit 1); exit 1; }; }
5371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5372 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5373 Usually this means the macro was only invoked conditionally." >&5
5374 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5375 Usually this means the macro was only invoked conditionally." >&2;}
5376 { (exit 1); exit 1; }; }
5378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5379 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5380 Usually this means the macro was only invoked conditionally." >&5
5381 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5382 Usually this means the macro was only invoked conditionally." >&2;}
5383 { (exit 1); exit 1; }; }
5385 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
5386 { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
5387 Usually this means the macro was only invoked conditionally." >&5
5388 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
5389 Usually this means the macro was only invoked conditionally." >&2;}
5390 { (exit 1); exit 1; }; }
5393 : ${CONFIG_STATUS=./config.status}
5394 ac_clean_files_save=$ac_clean_files
5395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5396 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5397 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5398 cat >$CONFIG_STATUS <<_ACEOF
5399 #! $SHELL
5400 # Generated by $as_me.
5401 # Run this file to recreate the current configuration.
5402 # Compiler output produced by configure, useful for debugging
5403 # configure, is in config.log if it exists.
5405 debug=false
5406 ac_cs_recheck=false
5407 ac_cs_silent=false
5408 SHELL=\${CONFIG_SHELL-$SHELL}
5409 _ACEOF
5411 cat >>$CONFIG_STATUS <<\_ACEOF
5412 ## --------------------- ##
5413 ## M4sh Initialization. ##
5414 ## --------------------- ##
5416 # Be Bourne compatible
5417 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5418 emulate sh
5419 NULLCMD=:
5420 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5421 # is contrary to our usage. Disable this feature.
5422 alias -g '${1+"$@"}'='"$@"'
5423 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5424 set -o posix
5426 DUALCASE=1; export DUALCASE # for MKS sh
5428 # Support unset when possible.
5429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430 as_unset=unset
5431 else
5432 as_unset=false
5436 # Work around bugs in pre-3.0 UWIN ksh.
5437 $as_unset ENV MAIL MAILPATH
5438 PS1='$ '
5439 PS2='> '
5440 PS4='+ '
5442 # NLS nuisances.
5443 for as_var in \
5444 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5445 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5446 LC_TELEPHONE LC_TIME
5448 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5449 eval $as_var=C; export $as_var
5450 else
5451 $as_unset $as_var
5453 done
5455 # Required to use basename.
5456 if expr a : '\(a\)' >/dev/null 2>&1; then
5457 as_expr=expr
5458 else
5459 as_expr=false
5462 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5463 as_basename=basename
5464 else
5465 as_basename=false
5469 # Name of the executable.
5470 as_me=`$as_basename "$0" ||
5471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5472 X"$0" : 'X\(//\)$' \| \
5473 X"$0" : 'X\(/\)$' \| \
5474 . : '\(.\)' 2>/dev/null ||
5475 echo X/"$0" |
5476 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5477 /^X\/\(\/\/\)$/{ s//\1/; q; }
5478 /^X\/\(\/\).*/{ s//\1/; q; }
5479 s/.*/./; q'`
5482 # PATH needs CR, and LINENO needs CR and PATH.
5483 # Avoid depending upon Character Ranges.
5484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5487 as_cr_digits='0123456789'
5488 as_cr_alnum=$as_cr_Letters$as_cr_digits
5490 # The user is always right.
5491 if test "${PATH_SEPARATOR+set}" != set; then
5492 echo "#! /bin/sh" >conf$$.sh
5493 echo "exit 0" >>conf$$.sh
5494 chmod +x conf$$.sh
5495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5496 PATH_SEPARATOR=';'
5497 else
5498 PATH_SEPARATOR=:
5500 rm -f conf$$.sh
5504 as_lineno_1=$LINENO
5505 as_lineno_2=$LINENO
5506 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5507 test "x$as_lineno_1" != "x$as_lineno_2" &&
5508 test "x$as_lineno_3" = "x$as_lineno_2" || {
5509 # Find who we are. Look in the path if we contain no path at all
5510 # relative or not.
5511 case $0 in
5512 *[\\/]* ) as_myself=$0 ;;
5513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5519 done
5522 esac
5523 # We did not find ourselves, most probably we were run as `sh COMMAND'
5524 # in which case we are not to be found in the path.
5525 if test "x$as_myself" = x; then
5526 as_myself=$0
5528 if test ! -f "$as_myself"; then
5529 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5530 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5531 { (exit 1); exit 1; }; }
5533 case $CONFIG_SHELL in
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for as_base in sh bash ksh sh5; do
5541 case $as_dir in
5543 if ("$as_dir/$as_base" -c '
5544 as_lineno_1=$LINENO
5545 as_lineno_2=$LINENO
5546 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5547 test "x$as_lineno_1" != "x$as_lineno_2" &&
5548 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5549 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5550 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5551 CONFIG_SHELL=$as_dir/$as_base
5552 export CONFIG_SHELL
5553 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5554 fi;;
5555 esac
5556 done
5557 done
5559 esac
5561 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5562 # uniformly replaced by the line number. The first 'sed' inserts a
5563 # line-number line before each line; the second 'sed' does the real
5564 # work. The second script uses 'N' to pair each line-number line
5565 # with the numbered line, and appends trailing '-' during
5566 # substitution so that $LINENO is not a special case at line end.
5567 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5568 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5569 sed '=' <$as_myself |
5570 sed '
5572 s,$,-,
5573 : loop
5574 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5575 t loop
5576 s,-$,,
5577 s,^['$as_cr_digits']*\n,,
5578 ' >$as_me.lineno &&
5579 chmod +x $as_me.lineno ||
5580 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5581 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5582 { (exit 1); exit 1; }; }
5584 # Don't try to exec as it changes $[0], causing all sort of problems
5585 # (the dirname of $[0] is not the place where we might find the
5586 # original and so on. Autoconf is especially sensible to this).
5587 . ./$as_me.lineno
5588 # Exit status is that of the last command.
5589 exit
5593 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5594 *c*,-n*) ECHO_N= ECHO_C='
5595 ' ECHO_T=' ' ;;
5596 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5597 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5598 esac
5600 if expr a : '\(a\)' >/dev/null 2>&1; then
5601 as_expr=expr
5602 else
5603 as_expr=false
5606 rm -f conf$$ conf$$.exe conf$$.file
5607 echo >conf$$.file
5608 if ln -s conf$$.file conf$$ 2>/dev/null; then
5609 # We could just check for DJGPP; but this test a) works b) is more generic
5610 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5611 if test -f conf$$.exe; then
5612 # Don't use ln at all; we don't have any links
5613 as_ln_s='cp -p'
5614 else
5615 as_ln_s='ln -s'
5617 elif ln conf$$.file conf$$ 2>/dev/null; then
5618 as_ln_s=ln
5619 else
5620 as_ln_s='cp -p'
5622 rm -f conf$$ conf$$.exe conf$$.file
5624 if mkdir -p . 2>/dev/null; then
5625 as_mkdir_p=:
5626 else
5627 test -d ./-p && rmdir ./-p
5628 as_mkdir_p=false
5631 as_executable_p="test -f"
5633 # Sed expression to map a string onto a valid CPP name.
5634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5636 # Sed expression to map a string onto a valid variable name.
5637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5640 # IFS
5641 # We need space, tab and new line, in precisely that order.
5642 as_nl='
5644 IFS=" $as_nl"
5646 # CDPATH.
5647 $as_unset CDPATH
5649 exec 6>&1
5651 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5652 # report actual input values of CONFIG_FILES etc. instead of their
5653 # values after options handling. Logging --version etc. is OK.
5654 exec 5>>config.log
5656 echo
5657 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5658 ## Running $as_me. ##
5659 _ASBOX
5660 } >&5
5661 cat >&5 <<_CSEOF
5663 This file was extended by libssp $as_me 1.0, which was
5664 generated by GNU Autoconf 2.59. Invocation command line was
5666 CONFIG_FILES = $CONFIG_FILES
5667 CONFIG_HEADERS = $CONFIG_HEADERS
5668 CONFIG_LINKS = $CONFIG_LINKS
5669 CONFIG_COMMANDS = $CONFIG_COMMANDS
5670 $ $0 $@
5672 _CSEOF
5673 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5674 echo >&5
5675 _ACEOF
5677 # Files that config.status was made for.
5678 if test -n "$ac_config_files"; then
5679 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5682 if test -n "$ac_config_headers"; then
5683 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5686 if test -n "$ac_config_links"; then
5687 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5690 if test -n "$ac_config_commands"; then
5691 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5694 cat >>$CONFIG_STATUS <<\_ACEOF
5696 ac_cs_usage="\
5697 \`$as_me' instantiates files from templates according to the
5698 current configuration.
5700 Usage: $0 [OPTIONS] [FILE]...
5702 -h, --help print this help, then exit
5703 -V, --version print version number, then exit
5704 -q, --quiet do not print progress messages
5705 -d, --debug don't remove temporary files
5706 --recheck update $as_me by reconfiguring in the same conditions
5707 --file=FILE[:TEMPLATE]
5708 instantiate the configuration file FILE
5709 --header=FILE[:TEMPLATE]
5710 instantiate the configuration header FILE
5712 Configuration files:
5713 $config_files
5715 Configuration headers:
5716 $config_headers
5718 Configuration commands:
5719 $config_commands
5721 Report bugs to <bug-autoconf@gnu.org>."
5722 _ACEOF
5724 cat >>$CONFIG_STATUS <<_ACEOF
5725 ac_cs_version="\\
5726 libssp config.status 1.0
5727 configured by $0, generated by GNU Autoconf 2.59,
5728 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5730 Copyright (C) 2003 Free Software Foundation, Inc.
5731 This config.status script is free software; the Free Software Foundation
5732 gives unlimited permission to copy, distribute and modify it."
5733 srcdir=$srcdir
5734 INSTALL="$INSTALL"
5735 _ACEOF
5737 cat >>$CONFIG_STATUS <<\_ACEOF
5738 # If no file are specified by the user, then we need to provide default
5739 # value. By we need to know if files were specified by the user.
5740 ac_need_defaults=:
5741 while test $# != 0
5743 case $1 in
5744 --*=*)
5745 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5746 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5747 ac_shift=:
5750 ac_option=$1
5751 ac_optarg=$2
5752 ac_shift=shift
5754 *) # This is not an option, so the user has probably given explicit
5755 # arguments.
5756 ac_option=$1
5757 ac_need_defaults=false;;
5758 esac
5760 case $ac_option in
5761 # Handling of the options.
5762 _ACEOF
5763 cat >>$CONFIG_STATUS <<\_ACEOF
5764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5765 ac_cs_recheck=: ;;
5766 --version | --vers* | -V )
5767 echo "$ac_cs_version"; exit 0 ;;
5768 --he | --h)
5769 # Conflict between --help and --header
5770 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5771 Try \`$0 --help' for more information." >&5
5772 echo "$as_me: error: ambiguous option: $1
5773 Try \`$0 --help' for more information." >&2;}
5774 { (exit 1); exit 1; }; };;
5775 --help | --hel | -h )
5776 echo "$ac_cs_usage"; exit 0 ;;
5777 --debug | --d* | -d )
5778 debug=: ;;
5779 --file | --fil | --fi | --f )
5780 $ac_shift
5781 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5782 ac_need_defaults=false;;
5783 --header | --heade | --head | --hea )
5784 $ac_shift
5785 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5786 ac_need_defaults=false;;
5787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5789 ac_cs_silent=: ;;
5791 # This is an error.
5792 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5793 Try \`$0 --help' for more information." >&5
5794 echo "$as_me: error: unrecognized option: $1
5795 Try \`$0 --help' for more information." >&2;}
5796 { (exit 1); exit 1; }; } ;;
5798 *) ac_config_targets="$ac_config_targets $1" ;;
5800 esac
5801 shift
5802 done
5804 ac_configure_extra_args=
5806 if $ac_cs_silent; then
5807 exec 6>/dev/null
5808 ac_configure_extra_args="$ac_configure_extra_args --silent"
5811 _ACEOF
5812 cat >>$CONFIG_STATUS <<_ACEOF
5813 if \$ac_cs_recheck; then
5814 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5815 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5818 _ACEOF
5820 cat >>$CONFIG_STATUS <<_ACEOF
5822 # INIT-COMMANDS section.
5826 srcdir="$srcdir"
5827 host="$host"
5828 target="$target"
5829 with_multisubdir="$with_multisubdir"
5830 with_multisrctop="$with_multisrctop"
5831 with_target_subdir="$with_target_subdir"
5832 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5833 multi_basedir="$multi_basedir"
5834 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5835 CC="$CC"
5836 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5838 _ACEOF
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5843 for ac_config_target in $ac_config_targets
5845 case "$ac_config_target" in
5846 # Handling of arguments.
5847 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5848 "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
5849 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5850 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5851 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5852 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5853 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5854 { (exit 1); exit 1; }; };;
5855 esac
5856 done
5858 # If the user did not use the arguments to specify the items to instantiate,
5859 # then the envvar interface is used. Set only those that are not.
5860 # We use the long form for the default assignment because of an extremely
5861 # bizarre bug on SunOS 4.1.3.
5862 if $ac_need_defaults; then
5863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5864 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5865 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5868 # Have a temporary directory for convenience. Make it in the build tree
5869 # simply because there is no reason to put it here, and in addition,
5870 # creating and moving files from /tmp can sometimes cause problems.
5871 # Create a temporary directory, and hook for its removal unless debugging.
5872 $debug ||
5874 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5875 trap '{ (exit 1); exit 1; }' 1 2 13 15
5878 # Create a (secure) tmp directory for tmp files.
5881 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5882 test -n "$tmp" && test -d "$tmp"
5883 } ||
5885 tmp=./confstat$$-$RANDOM
5886 (umask 077 && mkdir $tmp)
5887 } ||
5889 echo "$me: cannot create a temporary directory in ." >&2
5890 { (exit 1); exit 1; }
5893 _ACEOF
5895 cat >>$CONFIG_STATUS <<_ACEOF
5898 # CONFIG_FILES section.
5901 # No need to generate the scripts if there are no CONFIG_FILES.
5902 # This happens for instance when ./config.status config.h
5903 if test -n "\$CONFIG_FILES"; then
5904 # Protect against being on the right side of a sed subst in config.status.
5905 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5906 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5907 s,@SHELL@,$SHELL,;t t
5908 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5909 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5910 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5911 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5912 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5913 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5914 s,@exec_prefix@,$exec_prefix,;t t
5915 s,@prefix@,$prefix,;t t
5916 s,@program_transform_name@,$program_transform_name,;t t
5917 s,@bindir@,$bindir,;t t
5918 s,@sbindir@,$sbindir,;t t
5919 s,@libexecdir@,$libexecdir,;t t
5920 s,@datadir@,$datadir,;t t
5921 s,@sysconfdir@,$sysconfdir,;t t
5922 s,@sharedstatedir@,$sharedstatedir,;t t
5923 s,@localstatedir@,$localstatedir,;t t
5924 s,@libdir@,$libdir,;t t
5925 s,@includedir@,$includedir,;t t
5926 s,@oldincludedir@,$oldincludedir,;t t
5927 s,@infodir@,$infodir,;t t
5928 s,@mandir@,$mandir,;t t
5929 s,@build_alias@,$build_alias,;t t
5930 s,@host_alias@,$host_alias,;t t
5931 s,@target_alias@,$target_alias,;t t
5932 s,@DEFS@,$DEFS,;t t
5933 s,@ECHO_C@,$ECHO_C,;t t
5934 s,@ECHO_N@,$ECHO_N,;t t
5935 s,@ECHO_T@,$ECHO_T,;t t
5936 s,@LIBS@,$LIBS,;t t
5937 s,@build@,$build,;t t
5938 s,@build_cpu@,$build_cpu,;t t
5939 s,@build_vendor@,$build_vendor,;t t
5940 s,@build_os@,$build_os,;t t
5941 s,@host@,$host,;t t
5942 s,@host_cpu@,$host_cpu,;t t
5943 s,@host_vendor@,$host_vendor,;t t
5944 s,@host_os@,$host_os,;t t
5945 s,@target@,$target,;t t
5946 s,@target_cpu@,$target_cpu,;t t
5947 s,@target_vendor@,$target_vendor,;t t
5948 s,@target_os@,$target_os,;t t
5949 s,@target_noncanonical@,$target_noncanonical,;t t
5950 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5951 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5952 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5953 s,@CYGPATH_W@,$CYGPATH_W,;t t
5954 s,@PACKAGE@,$PACKAGE,;t t
5955 s,@VERSION@,$VERSION,;t t
5956 s,@ACLOCAL@,$ACLOCAL,;t t
5957 s,@AUTOCONF@,$AUTOCONF,;t t
5958 s,@AUTOMAKE@,$AUTOMAKE,;t t
5959 s,@AUTOHEADER@,$AUTOHEADER,;t t
5960 s,@MAKEINFO@,$MAKEINFO,;t t
5961 s,@install_sh@,$install_sh,;t t
5962 s,@STRIP@,$STRIP,;t t
5963 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5964 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5965 s,@mkdir_p@,$mkdir_p,;t t
5966 s,@AWK@,$AWK,;t t
5967 s,@SET_MAKE@,$SET_MAKE,;t t
5968 s,@am__leading_dot@,$am__leading_dot,;t t
5969 s,@AMTAR@,$AMTAR,;t t
5970 s,@am__tar@,$am__tar,;t t
5971 s,@am__untar@,$am__untar,;t t
5972 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5973 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5974 s,@MAINT@,$MAINT,;t t
5975 s,@multi_basedir@,$multi_basedir,;t t
5976 s,@CC@,$CC,;t t
5977 s,@ac_ct_CC@,$ac_ct_CC,;t t
5978 s,@EXEEXT@,$EXEEXT,;t t
5979 s,@OBJEXT@,$OBJEXT,;t t
5980 s,@DEPDIR@,$DEPDIR,;t t
5981 s,@am__include@,$am__include,;t t
5982 s,@am__quote@,$am__quote,;t t
5983 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5984 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5985 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5986 s,@CCDEPMODE@,$CCDEPMODE,;t t
5987 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5988 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5989 s,@CFLAGS@,$CFLAGS,;t t
5990 s,@CPP@,$CPP,;t t
5991 s,@CPPFLAGS@,$CPPFLAGS,;t t
5992 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
5993 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
5994 s,@EGREP@,$EGREP,;t t
5995 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
5996 s,@LN_S@,$LN_S,;t t
5997 s,@RANLIB@,$RANLIB,;t t
5998 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5999 s,@LIBTOOL@,$LIBTOOL,;t t
6000 s,@enable_shared@,$enable_shared,;t t
6001 s,@enable_static@,$enable_static,;t t
6002 s,@toolexecdir@,$toolexecdir,;t t
6003 s,@toolexeclibdir@,$toolexeclibdir,;t t
6004 s,@LIBOBJS@,$LIBOBJS,;t t
6005 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6006 CEOF
6008 _ACEOF
6010 cat >>$CONFIG_STATUS <<\_ACEOF
6011 # Split the substitutions into bite-sized pieces for seds with
6012 # small command number limits, like on Digital OSF/1 and HP-UX.
6013 ac_max_sed_lines=48
6014 ac_sed_frag=1 # Number of current file.
6015 ac_beg=1 # First line for current file.
6016 ac_end=$ac_max_sed_lines # Line after last line for current file.
6017 ac_more_lines=:
6018 ac_sed_cmds=
6019 while $ac_more_lines; do
6020 if test $ac_beg -gt 1; then
6021 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6022 else
6023 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6025 if test ! -s $tmp/subs.frag; then
6026 ac_more_lines=false
6027 else
6028 # The purpose of the label and of the branching condition is to
6029 # speed up the sed processing (if there are no `@' at all, there
6030 # is no need to browse any of the substitutions).
6031 # These are the two extra sed commands mentioned above.
6032 (echo ':t
6033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6034 if test -z "$ac_sed_cmds"; then
6035 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6036 else
6037 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6039 ac_sed_frag=`expr $ac_sed_frag + 1`
6040 ac_beg=$ac_end
6041 ac_end=`expr $ac_end + $ac_max_sed_lines`
6043 done
6044 if test -z "$ac_sed_cmds"; then
6045 ac_sed_cmds=cat
6047 fi # test -n "$CONFIG_FILES"
6049 _ACEOF
6050 cat >>$CONFIG_STATUS <<\_ACEOF
6051 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6053 case $ac_file in
6054 - | *:- | *:-:* ) # input from stdin
6055 cat >$tmp/stdin
6056 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6058 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6060 * ) ac_file_in=$ac_file.in ;;
6061 esac
6063 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6064 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6065 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6066 X"$ac_file" : 'X\(//\)[^/]' \| \
6067 X"$ac_file" : 'X\(//\)$' \| \
6068 X"$ac_file" : 'X\(/\)' \| \
6069 . : '\(.\)' 2>/dev/null ||
6070 echo X"$ac_file" |
6071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6073 /^X\(\/\/\)$/{ s//\1/; q; }
6074 /^X\(\/\).*/{ s//\1/; q; }
6075 s/.*/./; q'`
6076 { if $as_mkdir_p; then
6077 mkdir -p "$ac_dir"
6078 else
6079 as_dir="$ac_dir"
6080 as_dirs=
6081 while test ! -d "$as_dir"; do
6082 as_dirs="$as_dir $as_dirs"
6083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6085 X"$as_dir" : 'X\(//\)[^/]' \| \
6086 X"$as_dir" : 'X\(//\)$' \| \
6087 X"$as_dir" : 'X\(/\)' \| \
6088 . : '\(.\)' 2>/dev/null ||
6089 echo X"$as_dir" |
6090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6092 /^X\(\/\/\)$/{ s//\1/; q; }
6093 /^X\(\/\).*/{ s//\1/; q; }
6094 s/.*/./; q'`
6095 done
6096 test ! -n "$as_dirs" || mkdir $as_dirs
6097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6098 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6099 { (exit 1); exit 1; }; }; }
6101 ac_builddir=.
6103 if test "$ac_dir" != .; then
6104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6105 # A "../" for each directory in $ac_dir_suffix.
6106 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6107 else
6108 ac_dir_suffix= ac_top_builddir=
6111 case $srcdir in
6112 .) # No --srcdir option. We are building in place.
6113 ac_srcdir=.
6114 if test -z "$ac_top_builddir"; then
6115 ac_top_srcdir=.
6116 else
6117 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6118 fi ;;
6119 [\\/]* | ?:[\\/]* ) # Absolute path.
6120 ac_srcdir=$srcdir$ac_dir_suffix;
6121 ac_top_srcdir=$srcdir ;;
6122 *) # Relative path.
6123 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6124 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6125 esac
6127 # Do not use `cd foo && pwd` to compute absolute paths, because
6128 # the directories may not exist.
6129 case `pwd` in
6130 .) ac_abs_builddir="$ac_dir";;
6132 case "$ac_dir" in
6133 .) ac_abs_builddir=`pwd`;;
6134 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6135 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6136 esac;;
6137 esac
6138 case $ac_abs_builddir in
6139 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6141 case ${ac_top_builddir}. in
6142 .) ac_abs_top_builddir=$ac_abs_builddir;;
6143 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6144 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6145 esac;;
6146 esac
6147 case $ac_abs_builddir in
6148 .) ac_abs_srcdir=$ac_srcdir;;
6150 case $ac_srcdir in
6151 .) ac_abs_srcdir=$ac_abs_builddir;;
6152 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6153 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6154 esac;;
6155 esac
6156 case $ac_abs_builddir in
6157 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6159 case $ac_top_srcdir in
6160 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6161 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6162 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6163 esac;;
6164 esac
6167 case $INSTALL in
6168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6169 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6170 esac
6172 if test x"$ac_file" != x-; then
6173 { echo "$as_me:$LINENO: creating $ac_file" >&5
6174 echo "$as_me: creating $ac_file" >&6;}
6175 rm -f "$ac_file"
6177 # Let's still pretend it is `configure' which instantiates (i.e., don't
6178 # use $as_me), people would be surprised to read:
6179 # /* config.h. Generated by config.status. */
6180 if test x"$ac_file" = x-; then
6181 configure_input=
6182 else
6183 configure_input="$ac_file. "
6185 configure_input=$configure_input"Generated from `echo $ac_file_in |
6186 sed 's,.*/,,'` by configure."
6188 # First look for the input files in the build tree, otherwise in the
6189 # src tree.
6190 ac_file_inputs=`IFS=:
6191 for f in $ac_file_in; do
6192 case $f in
6193 -) echo $tmp/stdin ;;
6194 [\\/$]*)
6195 # Absolute (can't be DOS-style, as IFS=:)
6196 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6197 echo "$as_me: error: cannot find input file: $f" >&2;}
6198 { (exit 1); exit 1; }; }
6199 echo "$f";;
6200 *) # Relative
6201 if test -f "$f"; then
6202 # Build tree
6203 echo "$f"
6204 elif test -f "$srcdir/$f"; then
6205 # Source tree
6206 echo "$srcdir/$f"
6207 else
6208 # /dev/null tree
6209 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6210 echo "$as_me: error: cannot find input file: $f" >&2;}
6211 { (exit 1); exit 1; }; }
6212 fi;;
6213 esac
6214 done` || { (exit 1); exit 1; }
6215 _ACEOF
6216 cat >>$CONFIG_STATUS <<_ACEOF
6217 sed "$ac_vpsub
6218 $extrasub
6219 _ACEOF
6220 cat >>$CONFIG_STATUS <<\_ACEOF
6222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6223 s,@configure_input@,$configure_input,;t t
6224 s,@srcdir@,$ac_srcdir,;t t
6225 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6226 s,@top_srcdir@,$ac_top_srcdir,;t t
6227 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6228 s,@builddir@,$ac_builddir,;t t
6229 s,@abs_builddir@,$ac_abs_builddir,;t t
6230 s,@top_builddir@,$ac_top_builddir,;t t
6231 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6232 s,@INSTALL@,$ac_INSTALL,;t t
6233 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6234 rm -f $tmp/stdin
6235 if test x"$ac_file" != x-; then
6236 mv $tmp/out $ac_file
6237 else
6238 cat $tmp/out
6239 rm -f $tmp/out
6242 done
6243 _ACEOF
6244 cat >>$CONFIG_STATUS <<\_ACEOF
6247 # CONFIG_HEADER section.
6250 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6251 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6253 # ac_d sets the value in "#define NAME VALUE" lines.
6254 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6255 ac_dB='[ ].*$,\1#\2'
6256 ac_dC=' '
6257 ac_dD=',;t'
6258 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6259 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6260 ac_uB='$,\1#\2define\3'
6261 ac_uC=' '
6262 ac_uD=',;t'
6264 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6266 case $ac_file in
6267 - | *:- | *:-:* ) # input from stdin
6268 cat >$tmp/stdin
6269 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6271 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6273 * ) ac_file_in=$ac_file.in ;;
6274 esac
6276 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6277 echo "$as_me: creating $ac_file" >&6;}
6279 # First look for the input files in the build tree, otherwise in the
6280 # src tree.
6281 ac_file_inputs=`IFS=:
6282 for f in $ac_file_in; do
6283 case $f in
6284 -) echo $tmp/stdin ;;
6285 [\\/$]*)
6286 # Absolute (can't be DOS-style, as IFS=:)
6287 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6288 echo "$as_me: error: cannot find input file: $f" >&2;}
6289 { (exit 1); exit 1; }; }
6290 # Do quote $f, to prevent DOS paths from being IFS'd.
6291 echo "$f";;
6292 *) # Relative
6293 if test -f "$f"; then
6294 # Build tree
6295 echo "$f"
6296 elif test -f "$srcdir/$f"; then
6297 # Source tree
6298 echo "$srcdir/$f"
6299 else
6300 # /dev/null tree
6301 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6302 echo "$as_me: error: cannot find input file: $f" >&2;}
6303 { (exit 1); exit 1; }; }
6304 fi;;
6305 esac
6306 done` || { (exit 1); exit 1; }
6307 # Remove the trailing spaces.
6308 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6310 _ACEOF
6312 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6313 # `conftest.undefs', that substitutes the proper values into
6314 # config.h.in to produce config.h. The first handles `#define'
6315 # templates, and the second `#undef' templates.
6316 # And first: Protect against being on the right side of a sed subst in
6317 # config.status. Protect against being in an unquoted here document
6318 # in config.status.
6319 rm -f conftest.defines conftest.undefs
6320 # Using a here document instead of a string reduces the quoting nightmare.
6321 # Putting comments in sed scripts is not portable.
6323 # `end' is used to avoid that the second main sed command (meant for
6324 # 0-ary CPP macros) applies to n-ary macro definitions.
6325 # See the Autoconf documentation for `clear'.
6326 cat >confdef2sed.sed <<\_ACEOF
6327 s/[\\&,]/\\&/g
6328 s,[\\$`],\\&,g
6329 t clear
6330 : clear
6331 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6332 t end
6333 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6334 : end
6335 _ACEOF
6336 # If some macros were called several times there might be several times
6337 # the same #defines, which is useless. Nevertheless, we may not want to
6338 # sort them, since we want the *last* AC-DEFINE to be honored.
6339 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6340 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6341 rm -f confdef2sed.sed
6343 # This sed command replaces #undef with comments. This is necessary, for
6344 # example, in the case of _POSIX_SOURCE, which is predefined and required
6345 # on some systems where configure will not decide to define it.
6346 cat >>conftest.undefs <<\_ACEOF
6347 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6348 _ACEOF
6350 # Break up conftest.defines because some shells have a limit on the size
6351 # of here documents, and old seds have small limits too (100 cmds).
6352 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6353 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6354 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6355 echo ' :' >>$CONFIG_STATUS
6356 rm -f conftest.tail
6357 while grep . conftest.defines >/dev/null
6359 # Write a limited-size here document to $tmp/defines.sed.
6360 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6361 # Speed up: don't consider the non `#define' lines.
6362 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6363 # Work around the forget-to-reset-the-flag bug.
6364 echo 't clr' >>$CONFIG_STATUS
6365 echo ': clr' >>$CONFIG_STATUS
6366 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6367 echo 'CEOF
6368 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6369 rm -f $tmp/in
6370 mv $tmp/out $tmp/in
6371 ' >>$CONFIG_STATUS
6372 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6373 rm -f conftest.defines
6374 mv conftest.tail conftest.defines
6375 done
6376 rm -f conftest.defines
6377 echo ' fi # grep' >>$CONFIG_STATUS
6378 echo >>$CONFIG_STATUS
6380 # Break up conftest.undefs because some shells have a limit on the size
6381 # of here documents, and old seds have small limits too (100 cmds).
6382 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6383 rm -f conftest.tail
6384 while grep . conftest.undefs >/dev/null
6386 # Write a limited-size here document to $tmp/undefs.sed.
6387 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6388 # Speed up: don't consider the non `#undef'
6389 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6390 # Work around the forget-to-reset-the-flag bug.
6391 echo 't clr' >>$CONFIG_STATUS
6392 echo ': clr' >>$CONFIG_STATUS
6393 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6394 echo 'CEOF
6395 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6396 rm -f $tmp/in
6397 mv $tmp/out $tmp/in
6398 ' >>$CONFIG_STATUS
6399 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6400 rm -f conftest.undefs
6401 mv conftest.tail conftest.undefs
6402 done
6403 rm -f conftest.undefs
6405 cat >>$CONFIG_STATUS <<\_ACEOF
6406 # Let's still pretend it is `configure' which instantiates (i.e., don't
6407 # use $as_me), people would be surprised to read:
6408 # /* config.h. Generated by config.status. */
6409 if test x"$ac_file" = x-; then
6410 echo "/* Generated by configure. */" >$tmp/config.h
6411 else
6412 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6414 cat $tmp/in >>$tmp/config.h
6415 rm -f $tmp/in
6416 if test x"$ac_file" != x-; then
6417 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6418 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6419 echo "$as_me: $ac_file is unchanged" >&6;}
6420 else
6421 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6423 X"$ac_file" : 'X\(//\)[^/]' \| \
6424 X"$ac_file" : 'X\(//\)$' \| \
6425 X"$ac_file" : 'X\(/\)' \| \
6426 . : '\(.\)' 2>/dev/null ||
6427 echo X"$ac_file" |
6428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6430 /^X\(\/\/\)$/{ s//\1/; q; }
6431 /^X\(\/\).*/{ s//\1/; q; }
6432 s/.*/./; q'`
6433 { if $as_mkdir_p; then
6434 mkdir -p "$ac_dir"
6435 else
6436 as_dir="$ac_dir"
6437 as_dirs=
6438 while test ! -d "$as_dir"; do
6439 as_dirs="$as_dir $as_dirs"
6440 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6442 X"$as_dir" : 'X\(//\)[^/]' \| \
6443 X"$as_dir" : 'X\(//\)$' \| \
6444 X"$as_dir" : 'X\(/\)' \| \
6445 . : '\(.\)' 2>/dev/null ||
6446 echo X"$as_dir" |
6447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6449 /^X\(\/\/\)$/{ s//\1/; q; }
6450 /^X\(\/\).*/{ s//\1/; q; }
6451 s/.*/./; q'`
6452 done
6453 test ! -n "$as_dirs" || mkdir $as_dirs
6454 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6455 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6456 { (exit 1); exit 1; }; }; }
6458 rm -f $ac_file
6459 mv $tmp/config.h $ac_file
6461 else
6462 cat $tmp/config.h
6463 rm -f $tmp/config.h
6465 # Compute $ac_file's index in $config_headers.
6466 _am_stamp_count=1
6467 for _am_header in $config_headers :; do
6468 case $_am_header in
6469 $ac_file | $ac_file:* )
6470 break ;;
6472 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6473 esac
6474 done
6475 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6476 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6477 X$ac_file : 'X\(//\)[^/]' \| \
6478 X$ac_file : 'X\(//\)$' \| \
6479 X$ac_file : 'X\(/\)' \| \
6480 . : '\(.\)' 2>/dev/null ||
6481 echo X$ac_file |
6482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6484 /^X\(\/\/\)$/{ s//\1/; q; }
6485 /^X\(\/\).*/{ s//\1/; q; }
6486 s/.*/./; q'`/stamp-h$_am_stamp_count
6487 done
6488 _ACEOF
6489 cat >>$CONFIG_STATUS <<\_ACEOF
6492 # CONFIG_COMMANDS section.
6494 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6495 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6496 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6497 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6498 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6499 X"$ac_dest" : 'X\(//\)[^/]' \| \
6500 X"$ac_dest" : 'X\(//\)$' \| \
6501 X"$ac_dest" : 'X\(/\)' \| \
6502 . : '\(.\)' 2>/dev/null ||
6503 echo X"$ac_dest" |
6504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6506 /^X\(\/\/\)$/{ s//\1/; q; }
6507 /^X\(\/\).*/{ s//\1/; q; }
6508 s/.*/./; q'`
6509 { if $as_mkdir_p; then
6510 mkdir -p "$ac_dir"
6511 else
6512 as_dir="$ac_dir"
6513 as_dirs=
6514 while test ! -d "$as_dir"; do
6515 as_dirs="$as_dir $as_dirs"
6516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6518 X"$as_dir" : 'X\(//\)[^/]' \| \
6519 X"$as_dir" : 'X\(//\)$' \| \
6520 X"$as_dir" : 'X\(/\)' \| \
6521 . : '\(.\)' 2>/dev/null ||
6522 echo X"$as_dir" |
6523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6525 /^X\(\/\/\)$/{ s//\1/; q; }
6526 /^X\(\/\).*/{ s//\1/; q; }
6527 s/.*/./; q'`
6528 done
6529 test ! -n "$as_dirs" || mkdir $as_dirs
6530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6531 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6532 { (exit 1); exit 1; }; }; }
6534 ac_builddir=.
6536 if test "$ac_dir" != .; then
6537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6538 # A "../" for each directory in $ac_dir_suffix.
6539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6540 else
6541 ac_dir_suffix= ac_top_builddir=
6544 case $srcdir in
6545 .) # No --srcdir option. We are building in place.
6546 ac_srcdir=.
6547 if test -z "$ac_top_builddir"; then
6548 ac_top_srcdir=.
6549 else
6550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6551 fi ;;
6552 [\\/]* | ?:[\\/]* ) # Absolute path.
6553 ac_srcdir=$srcdir$ac_dir_suffix;
6554 ac_top_srcdir=$srcdir ;;
6555 *) # Relative path.
6556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6558 esac
6560 # Do not use `cd foo && pwd` to compute absolute paths, because
6561 # the directories may not exist.
6562 case `pwd` in
6563 .) ac_abs_builddir="$ac_dir";;
6565 case "$ac_dir" in
6566 .) ac_abs_builddir=`pwd`;;
6567 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6568 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6569 esac;;
6570 esac
6571 case $ac_abs_builddir in
6572 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6574 case ${ac_top_builddir}. in
6575 .) ac_abs_top_builddir=$ac_abs_builddir;;
6576 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6577 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6578 esac;;
6579 esac
6580 case $ac_abs_builddir in
6581 .) ac_abs_srcdir=$ac_srcdir;;
6583 case $ac_srcdir in
6584 .) ac_abs_srcdir=$ac_abs_builddir;;
6585 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6586 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6587 esac;;
6588 esac
6589 case $ac_abs_builddir in
6590 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6592 case $ac_top_srcdir in
6593 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6594 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6595 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6596 esac;;
6597 esac
6600 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6601 echo "$as_me: executing $ac_dest commands" >&6;}
6602 case $ac_dest in
6603 default-1 )
6604 # Only add multilib support code if we just rebuilt the top-level
6605 # Makefile.
6606 case " $CONFIG_FILES " in
6607 *" Makefile "*)
6608 ac_file=Makefile . ${multi_basedir}/config-ml.in
6610 esac ;;
6611 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6612 # Strip MF so we end up with the name of the file.
6613 mf=`echo "$mf" | sed -e 's/:.*$//'`
6614 # Check whether this is an Automake generated Makefile or not.
6615 # We used to match only the files named `Makefile.in', but
6616 # some people rename them; so instead we look at the file content.
6617 # Grep'ing the first line is not enough: some people post-process
6618 # each Makefile.in and add a new line on top of each file to say so.
6619 # So let's grep whole file.
6620 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6621 dirpart=`(dirname "$mf") 2>/dev/null ||
6622 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6623 X"$mf" : 'X\(//\)[^/]' \| \
6624 X"$mf" : 'X\(//\)$' \| \
6625 X"$mf" : 'X\(/\)' \| \
6626 . : '\(.\)' 2>/dev/null ||
6627 echo X"$mf" |
6628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6630 /^X\(\/\/\)$/{ s//\1/; q; }
6631 /^X\(\/\).*/{ s//\1/; q; }
6632 s/.*/./; q'`
6633 else
6634 continue
6636 # Extract the definition of DEPDIR, am__include, and am__quote
6637 # from the Makefile without running `make'.
6638 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6639 test -z "$DEPDIR" && continue
6640 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6641 test -z "am__include" && continue
6642 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6643 # When using ansi2knr, U may be empty or an underscore; expand it
6644 U=`sed -n 's/^U = //p' < "$mf"`
6645 # Find all dependency output files, they are included files with
6646 # $(DEPDIR) in their names. We invoke sed twice because it is the
6647 # simplest approach to changing $(DEPDIR) to its actual value in the
6648 # expansion.
6649 for file in `sed -n "
6650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6652 # Make sure the directory exists.
6653 test -f "$dirpart/$file" && continue
6654 fdir=`(dirname "$file") 2>/dev/null ||
6655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6656 X"$file" : 'X\(//\)[^/]' \| \
6657 X"$file" : 'X\(//\)$' \| \
6658 X"$file" : 'X\(/\)' \| \
6659 . : '\(.\)' 2>/dev/null ||
6660 echo X"$file" |
6661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6663 /^X\(\/\/\)$/{ s//\1/; q; }
6664 /^X\(\/\).*/{ s//\1/; q; }
6665 s/.*/./; q'`
6666 { if $as_mkdir_p; then
6667 mkdir -p $dirpart/$fdir
6668 else
6669 as_dir=$dirpart/$fdir
6670 as_dirs=
6671 while test ! -d "$as_dir"; do
6672 as_dirs="$as_dir $as_dirs"
6673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6675 X"$as_dir" : 'X\(//\)[^/]' \| \
6676 X"$as_dir" : 'X\(//\)$' \| \
6677 X"$as_dir" : 'X\(/\)' \| \
6678 . : '\(.\)' 2>/dev/null ||
6679 echo X"$as_dir" |
6680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6682 /^X\(\/\/\)$/{ s//\1/; q; }
6683 /^X\(\/\).*/{ s//\1/; q; }
6684 s/.*/./; q'`
6685 done
6686 test ! -n "$as_dirs" || mkdir $as_dirs
6687 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6688 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6689 { (exit 1); exit 1; }; }; }
6691 # echo "creating $dirpart/$file"
6692 echo '# dummy' > "$dirpart/$file"
6693 done
6694 done
6696 esac
6697 done
6698 _ACEOF
6700 cat >>$CONFIG_STATUS <<\_ACEOF
6702 { (exit 0); exit 0; }
6703 _ACEOF
6704 chmod +x $CONFIG_STATUS
6705 ac_clean_files=$ac_clean_files_save
6708 # configure is writing to config.log, and then calls config.status.
6709 # config.status does its own redirection, appending to config.log.
6710 # Unfortunately, on DOS this fails, as config.log is still kept open
6711 # by configure, so config.status won't be able to write to it; its
6712 # output is simply discarded. So we exec the FD to /dev/null,
6713 # effectively closing config.log, so it can be properly (re)opened and
6714 # appended to by config.status. When coming back to configure, we
6715 # need to make the FD available again.
6716 if test "$no_create" != yes; then
6717 ac_cs_success=:
6718 ac_config_status_args=
6719 test "$silent" = yes &&
6720 ac_config_status_args="$ac_config_status_args --quiet"
6721 exec 5>/dev/null
6722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6723 exec 5>>config.log
6724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6725 # would make configure fail if this is the last instruction.
6726 $ac_cs_success || { (exit 1); exit 1; }