2005-12-29 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / libmudflap / configure
blob9e811802127d1cc5755ef8e50d43f890a864146a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 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='libmudflap'
269 PACKAGE_TARNAME='libmudflap'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='libmudflap 1.0'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="mf-runtime.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 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 EGREP LN_S RANLIB ac_ct_RANLIB LIBTOOL enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir NM ac_ct_NM SECTION_FLAGS 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 libmudflap 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 libmudflap 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)
853 _g_switchUse thread-local storage
854 [default=yes]
856 Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-gnu-ld assume the C compiler uses GNU ld default=no
860 --with-pic try to use only PIC/non-PIC objects default=use both
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
910 case `pwd` in
911 .) ac_abs_builddir="$ac_dir";;
913 case "$ac_dir" in
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
931 case $ac_srcdir in
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944 esac;;
945 esac
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 cd $ac_popdir
963 done
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
969 libmudflap configure 1.0
970 generated by GNU Autoconf 2.59
972 Copyright (C) 2003 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
975 _ACEOF
976 exit 0
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by libmudflap $as_me 1.0, which was
984 generated by GNU Autoconf 2.59. Invocation command line was
986 $ $0 $@
988 _ACEOF
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 _ASUNAME
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1017 IFS=$as_save_IFS
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1020 done
1022 } >&5
1024 cat >&5 <<_ACEOF
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1031 _ACEOF
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Strip out --silent because we don't want to record it for future runs.
1037 # Also quote any args containing shell meta-characters.
1038 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_configure_args=
1040 ac_configure_args0=
1041 ac_configure_args1=
1042 ac_sep=
1043 ac_must_keep_next=false
1044 for ac_pass in 1 2
1046 for ac_arg
1048 case $ac_arg in
1049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 continue ;;
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 esac
1056 case $ac_pass in
1057 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060 if test $ac_must_keep_next = true; then
1061 ac_must_keep_next=false # Got value, back to normal.
1062 else
1063 case $ac_arg in
1064 *=* | --config-cache | -C | -disable-* | --disable-* \
1065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067 | -with-* | --with-* | -without-* | --without-* | --x)
1068 case "$ac_configure_args0 " in
1069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 esac
1072 -* ) ac_must_keep_next=true ;;
1073 esac
1075 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076 # Get rid of the leading space.
1077 ac_sep=" "
1079 esac
1080 done
1081 done
1082 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085 # When interrupted or exit'd, cleanup temporary files, and complete
1086 # config.log. We remove comments because anyway the quotes in there
1087 # would cause problems or look ugly.
1088 # WARNING: Be sure not to use single quotes in there, as some shells,
1089 # such as our DU 5.0 friend, will then `close' the trap.
1090 trap 'exit_status=$?
1091 # Save into config.log some information that might help in debugging.
1093 echo
1095 cat <<\_ASBOX
1096 ## ---------------- ##
1097 ## Cache variables. ##
1098 ## ---------------- ##
1099 _ASBOX
1100 echo
1101 # The following way of writing the cache mishandles newlines in values,
1103 (set) 2>&1 |
1104 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 *ac_space=\ *)
1106 sed -n \
1107 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 sed -n \
1112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 esac;
1116 echo
1118 cat <<\_ASBOX
1119 ## ----------------- ##
1120 ## Output variables. ##
1121 ## ----------------- ##
1122 _ASBOX
1123 echo
1124 for ac_var in $ac_subst_vars
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1128 done | sort
1129 echo
1131 if test -n "$ac_subst_files"; then
1132 cat <<\_ASBOX
1133 ## ------------- ##
1134 ## Output files. ##
1135 ## ------------- ##
1136 _ASBOX
1137 echo
1138 for ac_var in $ac_subst_files
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1146 if test -s confdefs.h; then
1147 cat <<\_ASBOX
1148 ## ----------- ##
1149 ## confdefs.h. ##
1150 ## ----------- ##
1151 _ASBOX
1152 echo
1153 sed "/^$/d" confdefs.h | sort
1154 echo
1156 test "$ac_signal" != 0 &&
1157 echo "$as_me: caught signal $ac_signal"
1158 echo "$as_me: exit $exit_status"
1159 } >&5
1160 rm -f core *.core &&
1161 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 exit $exit_status
1164 for ac_signal in 1 2 13 15; do
1165 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 done
1167 ac_signal=0
1169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1170 rm -rf conftest* confdefs.h
1171 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 echo >confdefs.h
1174 # Predefined preprocessor variables.
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 _ACEOF
1201 # Let the site file select an alternate cache file if it wants to.
1202 # Prefer explicitly selected file to automatically selected ones.
1203 if test -z "$CONFIG_SITE"; then
1204 if test "x$prefix" != xNONE; then
1205 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 else
1207 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210 for ac_site_file in $CONFIG_SITE; do
1211 if test -r "$ac_site_file"; then
1212 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213 echo "$as_me: loading site script $ac_site_file" >&6;}
1214 sed 's/^/| /' "$ac_site_file" >&5
1215 . "$ac_site_file"
1217 done
1219 if test -r "$cache_file"; then
1220 # Some versions of bash will fail to source /dev/null (special
1221 # files actually), so we avoid doing that.
1222 if test -f "$cache_file"; then
1223 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224 echo "$as_me: loading cache $cache_file" >&6;}
1225 case $cache_file in
1226 [\\/]* | ?:[\\/]* ) . $cache_file;;
1227 *) . ./$cache_file;;
1228 esac
1230 else
1231 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232 echo "$as_me: creating cache $cache_file" >&6;}
1233 >$cache_file
1236 # Check that the precious variables saved in the cache have kept the same
1237 # value.
1238 ac_cache_corrupted=false
1239 for ac_var in `(set) 2>&1 |
1240 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242 eval ac_new_set=\$ac_env_${ac_var}_set
1243 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244 eval ac_new_val="\$ac_env_${ac_var}_value"
1245 case $ac_old_set,$ac_new_set in
1246 set,)
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1250 ,set)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,);;
1256 if test "x$ac_old_val" != "x$ac_new_val"; then
1257 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1260 echo "$as_me: former value: $ac_old_val" >&2;}
1261 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1262 echo "$as_me: current value: $ac_new_val" >&2;}
1263 ac_cache_corrupted=:
1264 fi;;
1265 esac
1266 # Pass precious variables to config.status.
1267 if test "$ac_new_set" = set; then
1268 case $ac_new_val in
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 *) ac_arg=$ac_var=$ac_new_val ;;
1272 esac
1273 case " $ac_configure_args " in
1274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1275 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276 esac
1278 done
1279 if $ac_cache_corrupted; then
1280 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284 { (exit 1); exit 1; }; }
1287 ac_ext=c
1288 ac_cpp='$CPP $CPPFLAGS'
1289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320 ac_aux_dir=
1321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1322 if test -f $ac_dir/install-sh; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 break
1326 elif test -f $ac_dir/install.sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 break
1330 elif test -f $ac_dir/shtool; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 break
1335 done
1336 if test -z "$ac_aux_dir"; then
1337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1339 { (exit 1); exit 1; }; }
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345 # Make sure we can run config.sub.
1346 $ac_config_sub sun4 >/dev/null 2>&1 ||
1347 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1348 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1349 { (exit 1); exit 1; }; }
1351 echo "$as_me:$LINENO: checking build system type" >&5
1352 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1353 if test "${ac_cv_build+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 ac_cv_build_alias=$build_alias
1357 test -z "$ac_cv_build_alias" &&
1358 ac_cv_build_alias=`$ac_config_guess`
1359 test -z "$ac_cv_build_alias" &&
1360 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1361 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1362 { (exit 1); exit 1; }; }
1363 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1364 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1365 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1366 { (exit 1); exit 1; }; }
1369 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1370 echo "${ECHO_T}$ac_cv_build" >&6
1371 build=$ac_cv_build
1372 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377 echo "$as_me:$LINENO: checking host system type" >&5
1378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1379 if test "${ac_cv_host+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 ac_cv_host_alias=$host_alias
1383 test -z "$ac_cv_host_alias" &&
1384 ac_cv_host_alias=$ac_cv_build_alias
1385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1386 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1388 { (exit 1); exit 1; }; }
1391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1392 echo "${ECHO_T}$ac_cv_host" >&6
1393 host=$ac_cv_host
1394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399 echo "$as_me:$LINENO: checking target system type" >&5
1400 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1401 if test "${ac_cv_target+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 ac_cv_target_alias=$target_alias
1405 test "x$ac_cv_target_alias" = "x" &&
1406 ac_cv_target_alias=$ac_cv_host_alias
1407 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1413 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1414 echo "${ECHO_T}$ac_cv_target" >&6
1415 target=$ac_cv_target
1416 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 # The aliases save the names the user supplied, while $host etc.
1422 # will get canonicalized.
1423 test -n "$target_alias" &&
1424 test "$program_prefix$program_suffix$program_transform_name" = \
1425 NONENONEs,x,x, &&
1426 program_prefix=${target_alias}-
1428 am__api_version="1.9"
1429 # Find a good install program. We prefer a C program (faster),
1430 # so one script is as good as another. But avoid the broken or
1431 # incompatible versions:
1432 # SysV /etc/install, /usr/sbin/install
1433 # SunOS /usr/etc/install
1434 # IRIX /sbin/install
1435 # AIX /bin/install
1436 # AmigaOS /C/install, which installs bootblocks on floppy discs
1437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1440 # OS/2's system install, which has a completely different semantic
1441 # ./install, which can be erroneously created by make from ./install.sh.
1442 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1443 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1444 if test -z "$INSTALL"; then
1445 if test "${ac_cv_path_install+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 # Account for people who put trailing slashes in PATH elements.
1454 case $as_dir/ in
1455 ./ | .// | /cC/* | \
1456 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1457 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1458 /usr/ucb/* ) ;;
1460 # OSF1 and SCO ODT 3.0 have their own names for install.
1461 # Don't use installbsd from OSF since it installs stuff as root
1462 # by default.
1463 for ac_prog in ginstall scoinst install; do
1464 for ac_exec_ext in '' $ac_executable_extensions; do
1465 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1466 if test $ac_prog = install &&
1467 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1468 # AIX install. It has an incompatible calling convention.
1470 elif test $ac_prog = install &&
1471 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1472 # program-specific install script used by HP pwplus--don't use.
1474 else
1475 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1476 break 3
1479 done
1480 done
1482 esac
1483 done
1487 if test "${ac_cv_path_install+set}" = set; then
1488 INSTALL=$ac_cv_path_install
1489 else
1490 # As a last resort, use the slow shell script. We don't cache a
1491 # path for INSTALL within a source directory, because that will
1492 # break other packages using the cache if that directory is
1493 # removed, or if the path is relative.
1494 INSTALL=$ac_install_sh
1497 echo "$as_me:$LINENO: result: $INSTALL" >&5
1498 echo "${ECHO_T}$INSTALL" >&6
1500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1501 # It thinks the first close brace ends the variable substitution.
1502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1508 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1509 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1510 # Just in case
1511 sleep 1
1512 echo timestamp > conftest.file
1513 # Do `set' in a subshell so we don't clobber the current shell's
1514 # arguments. Must try -L first in case configure is actually a
1515 # symlink; some systems play weird games with the mod time of symlinks
1516 # (eg FreeBSD returns the mod time of the symlink's containing
1517 # directory).
1518 if (
1519 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1520 if test "$*" = "X"; then
1521 # -L didn't work.
1522 set X `ls -t $srcdir/configure conftest.file`
1524 rm -f conftest.file
1525 if test "$*" != "X $srcdir/configure conftest.file" \
1526 && test "$*" != "X conftest.file $srcdir/configure"; then
1528 # If neither matched, then we have a broken ls. This can happen
1529 # if, for instance, CONFIG_SHELL is bash and it inherits a
1530 # broken ls alias from the environment. This has actually
1531 # happened. Such a system could not be considered "sane".
1532 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1533 alias in your environment" >&5
1534 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1535 alias in your environment" >&2;}
1536 { (exit 1); exit 1; }; }
1539 test "$2" = conftest.file
1541 then
1542 # Ok.
1544 else
1545 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1546 Check your system clock" >&5
1547 echo "$as_me: error: newly created file is older than distributed files!
1548 Check your system clock" >&2;}
1549 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: result: yes" >&5
1552 echo "${ECHO_T}yes" >&6
1553 test "$program_prefix" != NONE &&
1554 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1558 # Double any \ or $. echo might interpret backslashes.
1559 # By default was `s,x,x', remove it if useless.
1560 cat <<\_ACEOF >conftest.sed
1561 s/[\\$]/&&/g;s/;s,x,x,$//
1562 _ACEOF
1563 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1564 rm conftest.sed
1566 # expand $ac_aux_dir to an absolute path
1567 am_aux_dir=`cd $ac_aux_dir && pwd`
1569 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1570 # Use eval to expand $SHELL
1571 if eval "$MISSING --run true"; then
1572 am_missing_run="$MISSING --run "
1573 else
1574 am_missing_run=
1575 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1576 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1579 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1580 # We used to keeping the `.' as first argument, in order to
1581 # allow $(mkdir_p) to be used without argument. As in
1582 # $(mkdir_p) $(somedir)
1583 # where $(somedir) is conditionally defined. However this is wrong
1584 # for two reasons:
1585 # 1. if the package is installed by a user who cannot write `.'
1586 # make install will fail,
1587 # 2. the above comment should most certainly read
1588 # $(mkdir_p) $(DESTDIR)$(somedir)
1589 # so it does not work when $(somedir) is undefined and
1590 # $(DESTDIR) is not.
1591 # To support the latter case, we have to write
1592 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1593 # so the `.' trick is pointless.
1594 mkdir_p='mkdir -p --'
1595 else
1596 # On NextStep and OpenStep, the `mkdir' command does not
1597 # recognize any option. It will interpret all options as
1598 # directories to create, and then abort because `.' already
1599 # exists.
1600 for d in ./-p ./--version;
1602 test -d $d && rmdir $d
1603 done
1604 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1605 if test -f "$ac_aux_dir/mkinstalldirs"; then
1606 mkdir_p='$(mkinstalldirs)'
1607 else
1608 mkdir_p='$(install_sh) -d'
1612 for ac_prog in gawk mawk nawk awk
1614 # Extract the first word of "$ac_prog", so it can be a program name with args.
1615 set dummy $ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_AWK+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$AWK"; then
1622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_AWK="$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1635 done
1636 done
1640 AWK=$ac_cv_prog_AWK
1641 if test -n "$AWK"; then
1642 echo "$as_me:$LINENO: result: $AWK" >&5
1643 echo "${ECHO_T}$AWK" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$AWK" && break
1650 done
1652 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1653 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1654 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1655 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 cat >conftest.make <<\_ACEOF
1659 all:
1660 @echo 'ac_maketemp="$(MAKE)"'
1661 _ACEOF
1662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1663 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1664 if test -n "$ac_maketemp"; then
1665 eval ac_cv_prog_make_${ac_make}_set=yes
1666 else
1667 eval ac_cv_prog_make_${ac_make}_set=no
1669 rm -f conftest.make
1671 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1672 echo "$as_me:$LINENO: result: yes" >&5
1673 echo "${ECHO_T}yes" >&6
1674 SET_MAKE=
1675 else
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 SET_MAKE="MAKE=${MAKE-make}"
1681 rm -rf .tst 2>/dev/null
1682 mkdir .tst 2>/dev/null
1683 if test -d .tst; then
1684 am__leading_dot=.
1685 else
1686 am__leading_dot=_
1688 rmdir .tst 2>/dev/null
1690 # test to see if srcdir already configured
1691 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1692 test -f $srcdir/config.status; then
1693 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1694 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1695 { (exit 1); exit 1; }; }
1698 # test whether we have cygpath
1699 if test -z "$CYGPATH_W"; then
1700 if (cygpath --version) >/dev/null 2>/dev/null; then
1701 CYGPATH_W='cygpath -w'
1702 else
1703 CYGPATH_W=echo
1708 # Define the identity of the package.
1709 PACKAGE='libmudflap'
1710 VERSION='1.0'
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1715 _ACEOF
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1720 _ACEOF
1722 # Some tools Automake needs.
1724 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1727 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1730 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1733 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1736 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1738 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1740 # Installed binaries are usually stripped using `strip' when the user
1741 # run `make install-strip'. However `strip' might not be the right
1742 # tool to use in cross-compilation environments, therefore Automake
1743 # will honor the `STRIP' environment variable to overrule this program.
1744 if test "$cross_compiling" != no; then
1745 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1747 set dummy ${ac_tool_prefix}strip; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_STRIP+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$STRIP"; then
1754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 STRIP=$ac_cv_prog_STRIP
1773 if test -n "$STRIP"; then
1774 echo "$as_me:$LINENO: result: $STRIP" >&5
1775 echo "${ECHO_T}$STRIP" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1782 if test -z "$ac_cv_prog_STRIP"; then
1783 ac_ct_STRIP=$STRIP
1784 # Extract the first word of "strip", so it can be a program name with args.
1785 set dummy strip; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791 if test -n "$ac_ct_STRIP"; then
1792 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1797 IFS=$as_save_IFS
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_STRIP="strip"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 break 2
1805 done
1806 done
1808 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1811 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1812 if test -n "$ac_ct_STRIP"; then
1813 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1814 echo "${ECHO_T}$ac_ct_STRIP" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 STRIP=$ac_ct_STRIP
1821 else
1822 STRIP="$ac_cv_prog_STRIP"
1826 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1828 # We need awk for the "check" target. The system "awk" is bad on
1829 # some platforms.
1830 # Always define AMTAR for backward compatibility.
1832 AMTAR=${AMTAR-"${am_missing_run}tar"}
1834 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1841 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1842 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1843 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1844 if test "${enable_version_specific_runtime_libs+set}" = set; then
1845 enableval="$enable_version_specific_runtime_libs"
1846 case "$enableval" in
1847 yes) version_specific_libs=yes ;;
1848 no) version_specific_libs=no ;;
1849 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1850 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1851 { (exit 1); exit 1; }; };;
1852 esac
1853 else
1854 version_specific_libs=no
1856 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1857 echo "${ECHO_T}$version_specific_libs" >&6
1859 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1860 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1861 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1862 if test "${enable_maintainer_mode+set}" = set; then
1863 enableval="$enable_maintainer_mode"
1864 USE_MAINTAINER_MODE=$enableval
1865 else
1866 USE_MAINTAINER_MODE=no
1868 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1869 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1872 if test $USE_MAINTAINER_MODE = yes; then
1873 MAINTAINER_MODE_TRUE=
1874 MAINTAINER_MODE_FALSE='#'
1875 else
1876 MAINTAINER_MODE_TRUE='#'
1877 MAINTAINER_MODE_FALSE=
1880 MAINT=$MAINTAINER_MODE_TRUE
1885 # Default to --enable-multilib
1886 # Check whether --enable-multilib or --disable-multilib was given.
1887 if test "${enable_multilib+set}" = set; then
1888 enableval="$enable_multilib"
1889 case "$enableval" in
1890 yes) multilib=yes ;;
1891 no) multilib=no ;;
1892 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1893 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1894 { (exit 1); exit 1; }; } ;;
1895 esac
1896 else
1897 multilib=yes
1900 # We may get other options which we leave undocumented:
1901 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1902 # See config-ml.in if you want the gory details.
1904 if test "$srcdir" = "."; then
1905 if test "$with_target_subdir" != "."; then
1906 multi_basedir="$srcdir/$with_multisrctop../.."
1907 else
1908 multi_basedir="$srcdir/$with_multisrctop.."
1910 else
1911 multi_basedir="$srcdir/.."
1915 ac_config_commands="$ac_config_commands default-1"
1918 target_alias=${target_alias-$host_alias}
1921 ac_config_headers="$ac_config_headers config.h"
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1931 # We must force CC to /not/ be precious variables; otherwise
1932 # the wrong, non-multilib-adjusted value will be used in multilibs.
1933 # As a side effect, we have to subst CFLAGS ourselves.
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$ac_cv_prog_CC"; then
1980 ac_ct_CC=$CC
1981 # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_CC="gcc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2002 done
2003 done
2007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2011 else
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2016 CC=$ac_ct_CC
2017 else
2018 CC="$ac_cv_prog_CC"
2021 if test -z "$CC"; then
2022 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="${ac_tool_prefix}cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2044 done
2045 done
2049 CC=$ac_cv_prog_CC
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2059 if test -z "$ac_cv_prog_CC"; then
2060 ac_ct_CC=$CC
2061 # Extract the first word of "cc", so it can be a program name with args.
2062 set dummy cc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_ac_ct_CC="cc"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2082 done
2083 done
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2091 else
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2096 CC=$ac_ct_CC
2097 else
2098 CC="$ac_cv_prog_CC"
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 ac_prog_rejected=no
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2123 continue
2125 ac_cv_prog_CC="cc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2132 if test $ac_prog_rejected = yes; then
2133 # We found a bogon in the path, so make sure we never use it.
2134 set dummy $ac_cv_prog_CC
2135 shift
2136 if test $# != 0; then
2137 # We chose a different compiler from the bogus one.
2138 # However, it has the same basename, so the bogon will be chosen
2139 # first if we set CC to just the basename; use the full file name.
2140 shift
2141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2146 CC=$ac_cv_prog_CC
2147 if test -n "$CC"; then
2148 echo "$as_me:$LINENO: result: $CC" >&5
2149 echo "${ECHO_T}$CC" >&6
2150 else
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2156 if test -z "$CC"; then
2157 if test -n "$ac_tool_prefix"; then
2158 for ac_prog in cl
2160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2181 done
2182 done
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2190 else
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2195 test -n "$CC" && break
2196 done
2198 if test -z "$CC"; then
2199 ac_ct_CC=$CC
2200 for ac_prog in cl
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 if test -n "$ac_ct_CC"; then
2210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 ac_cv_prog_ac_ct_CC="$ac_prog"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2223 done
2224 done
2228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229 if test -n "$ac_ct_CC"; then
2230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2231 echo "${ECHO_T}$ac_ct_CC" >&6
2232 else
2233 echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2237 test -n "$ac_ct_CC" && break
2238 done
2240 CC=$ac_ct_CC
2246 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: no acceptable C compiler found in \$PATH
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2252 # Provide some information about the compiler.
2253 echo "$as_me:$LINENO:" \
2254 "checking for C compiler version" >&5
2255 ac_compiler=`set X $ac_compile; echo $2`
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2257 (eval $ac_compiler --version </dev/null >&5) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2262 (eval $ac_compiler -v </dev/null >&5) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2267 (eval $ac_compiler -V </dev/null >&5) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2272 cat >conftest.$ac_ext <<_ACEOF
2273 /* confdefs.h. */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2280 main ()
2284 return 0;
2286 _ACEOF
2287 ac_clean_files_save=$ac_clean_files
2288 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2289 # Try to create an executable without -o first, disregard a.out.
2290 # It will help us diagnose broken compilers, and finding out an intuition
2291 # of exeext.
2292 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2293 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2294 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2295 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2296 (eval $ac_link_default) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # Find the output, starting from the most likely. This scheme is
2301 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2302 # resort.
2304 # Be careful to initialize this variable, since it used to be cached.
2305 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2306 ac_cv_exeext=
2307 # b.out is created by i960 compilers.
2308 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2310 test -f "$ac_file" || continue
2311 case $ac_file in
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2314 conftest.$ac_ext )
2315 # This is the source file.
2317 [ab].out )
2318 # We found the default executable, but exeext='' is most
2319 # certainly right.
2320 break;;
2321 *.* )
2322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323 # FIXME: I believe we export ac_cv_exeext for Libtool,
2324 # but it would be cool to find out if it's true. Does anybody
2325 # maintain Libtool? --akim.
2326 export ac_cv_exeext
2327 break;;
2329 break;;
2330 esac
2331 done
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: C compiler cannot create executables
2339 See \`config.log' for more details." >&2;}
2340 { (exit 77); exit 77; }; }
2343 ac_exeext=$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_file" >&5
2345 echo "${ECHO_T}$ac_file" >&6
2347 # Check the compiler produces executables we can run. If not, either
2348 # the compiler is broken, or we cross compile.
2349 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2352 # If not cross compiling, check that we can run a simple program.
2353 if test "$cross_compiling" != yes; then
2354 if { ac_try='./$ac_file'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 cross_compiling=no
2361 else
2362 if test "$cross_compiling" = maybe; then
2363 cross_compiling=yes
2364 else
2365 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot run C compiled programs.
2369 If you meant to cross compile, use \`--host'.
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2375 echo "$as_me:$LINENO: result: yes" >&5
2376 echo "${ECHO_T}yes" >&6
2378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2379 ac_clean_files=$ac_clean_files_save
2380 # Check the compiler produces executables we can run. If not, either
2381 # the compiler is broken, or we cross compile.
2382 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2384 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2385 echo "${ECHO_T}$cross_compiling" >&6
2387 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; then
2394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2396 # work properly (i.e., refer to `conftest.exe'), while it won't with
2397 # `rm'.
2398 for ac_file in conftest.exe conftest conftest.*; do
2399 test -f "$ac_file" || continue
2400 case $ac_file in
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2403 export ac_cv_exeext
2404 break;;
2405 * ) break;;
2406 esac
2407 done
2408 else
2409 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2410 See \`config.log' for more details." >&5
2411 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2412 See \`config.log' for more details." >&2;}
2413 { (exit 1); exit 1; }; }
2416 rm -f conftest$ac_cv_exeext
2417 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2418 echo "${ECHO_T}$ac_cv_exeext" >&6
2420 rm -f conftest.$ac_ext
2421 EXEEXT=$ac_cv_exeext
2422 ac_exeext=$EXEEXT
2423 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2424 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2425 if test "${ac_cv_objext+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2440 return 0;
2442 _ACEOF
2443 rm -f conftest.o conftest.obj
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2450 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2453 break;;
2454 esac
2455 done
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2460 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2463 See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2470 echo "${ECHO_T}$ac_cv_objext" >&6
2471 OBJEXT=$ac_cv_objext
2472 ac_objext=$OBJEXT
2473 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2474 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2486 main ()
2488 #ifndef __GNUC__
2489 choke me
2490 #endif
2493 return 0;
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_compiler_gnu=yes
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 ac_compiler_gnu=no
2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2529 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2530 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2531 GCC=`test $ac_compiler_gnu = yes && echo yes`
2532 ac_test_CFLAGS=${CFLAGS+set}
2533 ac_save_CFLAGS=$CFLAGS
2534 CFLAGS="-g"
2535 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2537 if test "${ac_cv_prog_cc_g+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2548 main ()
2552 return 0;
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 ac_cv_prog_cc_g=yes
2578 else
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 ac_cv_prog_cc_g=no
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588 if test "$ac_test_CFLAGS" = set; then
2589 CFLAGS=$ac_save_CFLAGS
2590 elif test $ac_cv_prog_cc_g = yes; then
2591 if test "$GCC" = yes; then
2592 CFLAGS="-g -O2"
2593 else
2594 CFLAGS="-g"
2596 else
2597 if test "$GCC" = yes; then
2598 CFLAGS="-O2"
2599 else
2600 CFLAGS=
2603 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 ac_cv_prog_cc_stdc=no
2609 ac_save_CC=$CC
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2616 #include <stdarg.h>
2617 #include <stdio.h>
2618 #include <sys/types.h>
2619 #include <sys/stat.h>
2620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2621 struct buf { int x; };
2622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2623 static char *e (p, i)
2624 char **p;
2625 int i;
2627 return p[i];
2629 static char *f (char * (*g) (char **, int), char **p, ...)
2631 char *s;
2632 va_list v;
2633 va_start (v,p);
2634 s = g (p, va_arg (v,int));
2635 va_end (v);
2636 return s;
2639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2640 function prototypes and stuff, but not '\xHH' hex character constants.
2641 These don't provoke an error unfortunately, instead are silently treated
2642 as 'x'. The following induces an error, until -std1 is added to get
2643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2644 array size at least. It's necessary to write '\x00'==0 to get something
2645 that's true only with -std1. */
2646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2648 int test (int i, double x);
2649 struct s1 {int (*f) (int a);};
2650 struct s2 {int (*f) (double a);};
2651 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2652 int argc;
2653 char **argv;
2655 main ()
2657 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2659 return 0;
2661 _ACEOF
2662 # Don't try gcc -ansi; that turns off useful extensions and
2663 # breaks some systems' header files.
2664 # AIX -qlanglvl=ansi
2665 # Ultrix and OSF/1 -std1
2666 # HP-UX 10.20 and later -Ae
2667 # HP-UX older versions -Aa -D_HPUX_SOURCE
2668 # SVR4 -Xc -D__EXTENSIONS__
2669 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2671 CC="$ac_save_CC $ac_arg"
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_prog_cc_stdc=$ac_arg
2695 break
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext
2702 done
2703 rm -f conftest.$ac_ext conftest.$ac_objext
2704 CC=$ac_save_CC
2708 case "x$ac_cv_prog_cc_stdc" in
2709 x|xno)
2710 echo "$as_me:$LINENO: result: none needed" >&5
2711 echo "${ECHO_T}none needed" >&6 ;;
2713 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2714 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2715 CC="$CC $ac_cv_prog_cc_stdc" ;;
2716 esac
2718 # Some people use a C++ compiler to compile C. Since we use `exit',
2719 # in C++ we need to declare it. In case someone uses the same compiler
2720 # for both compiling C and C++ we need to have the C++ compiler decide
2721 # the declaration of exit, since it's the most demanding environment.
2722 cat >conftest.$ac_ext <<_ACEOF
2723 #ifndef __cplusplus
2724 choke me
2725 #endif
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 for ac_declaration in \
2750 '' \
2751 'extern "C" void std::exit (int) throw (); using std::exit;' \
2752 'extern "C" void std::exit (int); using std::exit;' \
2753 'extern "C" void exit (int) throw ();' \
2754 'extern "C" void exit (int);' \
2755 'void exit (int);'
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h. */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2763 $ac_declaration
2764 #include <stdlib.h>
2766 main ()
2768 exit (42);
2770 return 0;
2772 _ACEOF
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2800 continue
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809 $ac_declaration
2811 main ()
2813 exit (42);
2815 return 0;
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 break
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 done
2848 rm -f conftest*
2849 if test -n "$ac_declaration"; then
2850 echo '#ifdef __cplusplus' >>confdefs.h
2851 echo $ac_declaration >>confdefs.h
2852 echo '#endif' >>confdefs.h
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 DEPDIR="${am__leading_dot}deps"
2868 ac_config_commands="$ac_config_commands depfiles"
2871 am_make=${MAKE-make}
2872 cat > confinc << 'END'
2873 am__doit:
2874 @echo done
2875 .PHONY: am__doit
2877 # If we don't find an include directive, just comment out the code.
2878 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2879 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2880 am__include="#"
2881 am__quote=
2882 _am_result=none
2883 # First try GNU make style include.
2884 echo "include confinc" > confmf
2885 # We grep out `Entering directory' and `Leaving directory'
2886 # messages which can occur if `w' ends up in MAKEFLAGS.
2887 # In particular we don't look at `^make:' because GNU make might
2888 # be invoked under some other name (usually "gmake"), in which
2889 # case it prints its new name instead of `make'.
2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2891 am__include=include
2892 am__quote=
2893 _am_result=GNU
2895 # Now try BSD make style include.
2896 if test "$am__include" = "#"; then
2897 echo '.include "confinc"' > confmf
2898 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2899 am__include=.include
2900 am__quote="\""
2901 _am_result=BSD
2906 echo "$as_me:$LINENO: result: $_am_result" >&5
2907 echo "${ECHO_T}$_am_result" >&6
2908 rm -f confinc confmf
2910 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2911 if test "${enable_dependency_tracking+set}" = set; then
2912 enableval="$enable_dependency_tracking"
2915 if test "x$enable_dependency_tracking" != xno; then
2916 am_depcomp="$ac_aux_dir/depcomp"
2917 AMDEPBACKSLASH='\'
2921 if test "x$enable_dependency_tracking" != xno; then
2922 AMDEP_TRUE=
2923 AMDEP_FALSE='#'
2924 else
2925 AMDEP_TRUE='#'
2926 AMDEP_FALSE=
2932 depcc="$CC" am_compiler_list=
2934 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940 # We make a subdir and do the tests there. Otherwise we can end up
2941 # making bogus files that we don't know about and never remove. For
2942 # instance it was reported that on HP-UX the gcc test will end up
2943 # making a dummy file named `D' -- because `-MD' means `put the output
2944 # in D'.
2945 mkdir conftest.dir
2946 # Copy depcomp to subdir because otherwise we won't find it if we're
2947 # using a relative directory.
2948 cp "$am_depcomp" conftest.dir
2949 cd conftest.dir
2950 # We will build objects and dependencies in a subdirectory because
2951 # it helps to detect inapplicable dependency modes. For instance
2952 # both Tru64's cc and ICC support -MD to output dependencies as a
2953 # side effect of compilation, but ICC will put the dependencies in
2954 # the current directory while Tru64 will put them in the object
2955 # directory.
2956 mkdir sub
2958 am_cv_CC_dependencies_compiler_type=none
2959 if test "$am_compiler_list" = ""; then
2960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962 for depmode in $am_compiler_list; do
2963 # Setup a source with many dependencies, because some compilers
2964 # like to wrap large dependency lists on column 80 (with \), and
2965 # we should not choose a depcomp mode which is confused by this.
2967 # We need to recreate these files for each test, as the compiler may
2968 # overwrite some of them when testing with obscure command lines.
2969 # This happens at least with the AIX C compiler.
2970 : > sub/conftest.c
2971 for i in 1 2 3 4 5 6; do
2972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974 # Solaris 8's {/usr,}/bin/sh.
2975 touch sub/conftst$i.h
2976 done
2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2979 case $depmode in
2980 nosideeffect)
2981 # after this tag, mechanisms are not by side-effect, so they'll
2982 # only be used when explicitly requested
2983 if test "x$enable_dependency_tracking" = xyes; then
2984 continue
2985 else
2986 break
2989 none) break ;;
2990 esac
2991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992 # mode. It turns out that the SunPro C++ compiler does not properly
2993 # handle `-M -o', and we need to detect this.
2994 if depmode=$depmode \
2995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2998 >/dev/null 2>conftest.err &&
2999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3000 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3002 # icc doesn't choke on unknown options, it will just issue warnings
3003 # or remarks (even with -Werror). So we grep stderr for any message
3004 # that says an option was ignored or not supported.
3005 # When given -MP, icc 7.0 and 7.1 complain thusly:
3006 # icc: Command line warning: ignoring option '-M'; no argument required
3007 # The diagnosis changed in icc 8.0:
3008 # icc: Command line remark: option '-MP' not supported
3009 if (grep 'ignoring option' conftest.err ||
3010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type=$depmode
3012 break
3015 done
3017 cd ..
3018 rm -rf conftest.dir
3019 else
3020 am_cv_CC_dependencies_compiler_type=none
3024 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3033 am__fastdepCC_TRUE=
3034 am__fastdepCC_FALSE='#'
3035 else
3036 am__fastdepCC_TRUE='#'
3037 am__fastdepCC_FALSE=
3045 if test "x$GCC" != "xyes"; then
3046 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3047 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3048 { (exit 1); exit 1; }; }
3050 ac_ext=c
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3056 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3057 # On Suns, sometimes $CPP names a directory.
3058 if test -n "$CPP" && test -d "$CPP"; then
3059 CPP=
3061 if test -z "$CPP"; then
3062 if test "${ac_cv_prog_CPP+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 # Double quotes because CPP needs to be expanded
3066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3068 ac_preproc_ok=false
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h. */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083 #ifdef __STDC__
3084 # include <limits.h>
3085 #else
3086 # include <assert.h>
3087 #endif
3088 Syntax error
3089 _ACEOF
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null; then
3098 if test -s conftest.err; then
3099 ac_cpp_err=$ac_c_preproc_warn_flag
3100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101 else
3102 ac_cpp_err=
3104 else
3105 ac_cpp_err=yes
3107 if test -z "$ac_cpp_err"; then
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3114 continue
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether non-existent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } >/dev/null; then
3136 if test -s conftest.err; then
3137 ac_cpp_err=$ac_c_preproc_warn_flag
3138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3139 else
3140 ac_cpp_err=
3142 else
3143 ac_cpp_err=yes
3145 if test -z "$ac_cpp_err"; then
3146 # Broken: success on invalid input.
3147 continue
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3156 rm -f conftest.err conftest.$ac_ext
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3162 break
3165 done
3166 ac_cv_prog_CPP=$CPP
3169 CPP=$ac_cv_prog_CPP
3170 else
3171 ac_cv_prog_CPP=$CPP
3173 echo "$as_me:$LINENO: result: $CPP" >&5
3174 echo "${ECHO_T}$CPP" >&6
3175 ac_preproc_ok=false
3176 for ac_c_preproc_warn_flag in '' yes
3178 # Use a header file that comes with gcc, so configuring glibc
3179 # with a fresh cross-compiler works.
3180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181 # <limits.h> exists even on freestanding compilers.
3182 # On the NeXT, cc -E runs the code through the compiler's parser,
3183 # not just through cpp. "Syntax error" is here to catch this case.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #ifdef __STDC__
3191 # include <limits.h>
3192 #else
3193 # include <assert.h>
3194 #endif
3195 Syntax error
3196 _ACEOF
3197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev/null; then
3205 if test -s conftest.err; then
3206 ac_cpp_err=$ac_c_preproc_warn_flag
3207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 else
3209 ac_cpp_err=
3211 else
3212 ac_cpp_err=yes
3214 if test -z "$ac_cpp_err"; then
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Broken: fails on valid input.
3221 continue
3223 rm -f conftest.err conftest.$ac_ext
3225 # OK, works on sane cases. Now check whether non-existent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 #include <ac_nonexistent.h>
3234 _ACEOF
3235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246 else
3247 ac_cpp_err=
3249 else
3250 ac_cpp_err=yes
3252 if test -z "$ac_cpp_err"; then
3253 # Broken: success on invalid input.
3254 continue
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 # Passes both tests.
3260 ac_preproc_ok=:
3261 break
3263 rm -f conftest.err conftest.$ac_ext
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3270 else
3271 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275 { (exit 1); exit 1; }; }
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3286 # symbol interposition. We disable shared libraries for these.
3287 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3288 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3297 #define _GNU_SOURCE
3298 #include <dlfcn.h>
3301 main ()
3303 void *foo = dlsym (RTLD_NEXT, "exit");
3305 return 0;
3307 _ACEOF
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } &&
3317 { ac_try='test -z "$ac_c_werror_flag"
3318 || test ! -s conftest.err'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 (eval $ac_try) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; }; then
3330 echo "$as_me:$LINENO: result: yes" >&5
3331 echo "${ECHO_T}yes" >&6
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338 enable_shared=no
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: checking for egrep" >&5
3344 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3345 if test "${ac_cv_prog_egrep+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3349 then ac_cv_prog_egrep='grep -E'
3350 else ac_cv_prog_egrep='egrep'
3353 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3354 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3355 EGREP=$ac_cv_prog_egrep
3358 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3360 if test "${ac_cv_header_stdc+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <stdlib.h>
3370 #include <stdarg.h>
3371 #include <string.h>
3372 #include <float.h>
3375 main ()
3379 return 0;
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_c_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_cv_header_stdc=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 ac_cv_header_stdc=no
3411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413 if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <string.h>
3423 _ACEOF
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3427 else
3428 ac_cv_header_stdc=no
3430 rm -f conftest*
3434 if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <stdlib.h>
3444 _ACEOF
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3448 else
3449 ac_cv_header_stdc=no
3451 rm -f conftest*
3455 if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3459 else
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #include <ctype.h>
3467 #if ((' ' & 0x0FF) == 0x020)
3468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470 #else
3471 # define ISLOWER(c) \
3472 (('a' <= (c) && (c) <= 'i') \
3473 || ('j' <= (c) && (c) <= 'r') \
3474 || ('s' <= (c) && (c) <= 'z'))
3475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3476 #endif
3478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480 main ()
3482 int i;
3483 for (i = 0; i < 256; i++)
3484 if (XOR (islower (i), ISLOWER (i))
3485 || toupper (i) != TOUPPER (i))
3486 exit(2);
3487 exit (0);
3489 _ACEOF
3490 rm -f conftest$ac_exeext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3492 (eval $ac_link) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3502 else
3503 echo "$as_me: program exited with status $ac_status" >&5
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ( exit $ac_status )
3508 ac_cv_header_stdc=no
3510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3514 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3515 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3516 if test $ac_cv_header_stdc = yes; then
3518 cat >>confdefs.h <<\_ACEOF
3519 #define STDC_HEADERS 1
3520 _ACEOF
3524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3535 inttypes.h stdint.h unistd.h
3537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3538 echo "$as_me:$LINENO: checking for $ac_header" >&5
3539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 $ac_includes_default
3551 #include <$ac_header>
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 eval "$as_ac_Header=yes"
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 eval "$as_ac_Header=no"
3582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3587 cat >>confdefs.h <<_ACEOF
3588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589 _ACEOF
3593 done
3615 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3616 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3617 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3621 echo "$as_me:$LINENO: checking for $ac_header" >&5
3622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 else
3629 # Is the header compilable?
3630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 $ac_includes_default
3639 #include <$ac_header>
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643 (eval $ac_compile) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_header_compiler=yes
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 ac_header_compiler=no
3670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3672 echo "${ECHO_T}$ac_header_compiler" >&6
3674 # Is the header present?
3675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 #include <$ac_header>
3684 _ACEOF
3685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null; then
3693 if test -s conftest.err; then
3694 ac_cpp_err=$ac_c_preproc_warn_flag
3695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696 else
3697 ac_cpp_err=
3699 else
3700 ac_cpp_err=yes
3702 if test -z "$ac_cpp_err"; then
3703 ac_header_preproc=yes
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_header_preproc=no
3710 rm -f conftest.err conftest.$ac_ext
3711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3712 echo "${ECHO_T}$ac_header_preproc" >&6
3714 # So? What about this header?
3715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3716 yes:no: )
3717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3721 ac_header_preproc=yes
3723 no:yes:* )
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3737 cat <<\_ASBOX
3738 ## ------------------------------------- ##
3739 ## Report this to the libmudflap lists. ##
3740 ## ------------------------------------- ##
3741 _ASBOX
3743 sed "s/^/$as_me: WARNING: /" >&2
3745 esac
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 eval "$as_ac_Header=\$ac_header_preproc"
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3758 cat >>confdefs.h <<_ACEOF
3759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3760 _ACEOF
3764 done
3771 for ac_func in backtrace backtrace_symbols gettimeofday signal
3773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3774 echo "$as_me:$LINENO: checking for $ac_func" >&5
3775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3776 if eval "test \"\${$as_ac_var+set}\" = set"; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3787 #define $ac_func innocuous_$ac_func
3789 /* System header to define __stub macros and hopefully few prototypes,
3790 which can conflict with char $ac_func (); below.
3791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 <limits.h> exists even on freestanding compilers. */
3794 #ifdef __STDC__
3795 # include <limits.h>
3796 #else
3797 # include <assert.h>
3798 #endif
3800 #undef $ac_func
3802 /* Override any gcc2 internal prototype to avoid an error. */
3803 #ifdef __cplusplus
3804 extern "C"
3806 #endif
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3809 char $ac_func ();
3810 /* The GNU C library defines this for functions which it implements
3811 to always fail with ENOSYS. Some functions are actually named
3812 something starting with __ and the normal name is an alias. */
3813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 choke me
3815 #else
3816 char (*f) () = $ac_func;
3817 #endif
3818 #ifdef __cplusplus
3820 #endif
3823 main ()
3825 return f != $ac_func;
3827 return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832 (eval $ac_link) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 eval "$as_ac_var=yes"
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 eval "$as_ac_var=no"
3859 rm -f conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3864 if test `eval echo '${'$as_ac_var'}'` = yes; then
3865 cat >>confdefs.h <<_ACEOF
3866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3867 _ACEOF
3870 done
3877 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
3879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3880 echo "$as_me:$LINENO: checking for $ac_func" >&5
3881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3882 if eval "test \"\${$as_ac_var+set}\" = set"; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3893 #define $ac_func innocuous_$ac_func
3895 /* System header to define __stub macros and hopefully few prototypes,
3896 which can conflict with char $ac_func (); below.
3897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3898 <limits.h> exists even on freestanding compilers. */
3900 #ifdef __STDC__
3901 # include <limits.h>
3902 #else
3903 # include <assert.h>
3904 #endif
3906 #undef $ac_func
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 #ifdef __cplusplus
3910 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915 char $ac_func ();
3916 /* The GNU C library defines this for functions which it implements
3917 to always fail with ENOSYS. Some functions are actually named
3918 something starting with __ and the normal name is an alias. */
3919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3920 choke me
3921 #else
3922 char (*f) () = $ac_func;
3923 #endif
3924 #ifdef __cplusplus
3926 #endif
3929 main ()
3931 return f != $ac_func;
3933 return 0;
3935 _ACEOF
3936 rm -f conftest.$ac_objext conftest$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938 (eval $ac_link) 2>conftest.er1
3939 ac_status=$?
3940 grep -v '^ *+' conftest.er1 >conftest.err
3941 rm -f conftest.er1
3942 cat conftest.err >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try='test -z "$ac_c_werror_flag"
3946 || test ! -s conftest.err'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try='test -s conftest$ac_exeext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 eval "$as_ac_var=yes"
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 eval "$as_ac_var=no"
3965 rm -f conftest.err conftest.$ac_objext \
3966 conftest$ac_exeext conftest.$ac_ext
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3970 if test `eval echo '${'$as_ac_var'}'` = yes; then
3971 cat >>confdefs.h <<_ACEOF
3972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3973 _ACEOF
3976 done
3982 for ac_func in setbuf setbuffer setlinebuf setvbuf
3984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3985 echo "$as_me:$LINENO: checking for $ac_func" >&5
3986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3987 if eval "test \"\${$as_ac_var+set}\" = set"; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3998 #define $ac_func innocuous_$ac_func
4000 /* System header to define __stub macros and hopefully few prototypes,
4001 which can conflict with char $ac_func (); below.
4002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4003 <limits.h> exists even on freestanding compilers. */
4005 #ifdef __STDC__
4006 # include <limits.h>
4007 #else
4008 # include <assert.h>
4009 #endif
4011 #undef $ac_func
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 #ifdef __cplusplus
4015 extern "C"
4017 #endif
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4020 char $ac_func ();
4021 /* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4025 choke me
4026 #else
4027 char (*f) () = $ac_func;
4028 #endif
4029 #ifdef __cplusplus
4031 #endif
4034 main ()
4036 return f != $ac_func;
4038 return 0;
4040 _ACEOF
4041 rm -f conftest.$ac_objext conftest$ac_exeext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4043 (eval $ac_link) 2>conftest.er1
4044 ac_status=$?
4045 grep -v '^ *+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -z "$ac_c_werror_flag"
4051 || test ! -s conftest.err'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest$ac_exeext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_var=yes"
4064 else
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 eval "$as_ac_var=no"
4070 rm -f conftest.err conftest.$ac_objext \
4071 conftest$ac_exeext conftest.$ac_ext
4073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4075 if test `eval echo '${'$as_ac_var'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4078 _ACEOF
4081 done
4088 for ac_func in strnlen memrchr strncpy memmem sethostname
4090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4091 echo "$as_me:$LINENO: checking for $ac_func" >&5
4092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4093 if eval "test \"\${$as_ac_var+set}\" = set"; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4104 #define $ac_func innocuous_$ac_func
4106 /* System header to define __stub macros and hopefully few prototypes,
4107 which can conflict with char $ac_func (); below.
4108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 <limits.h> exists even on freestanding compilers. */
4111 #ifdef __STDC__
4112 # include <limits.h>
4113 #else
4114 # include <assert.h>
4115 #endif
4117 #undef $ac_func
4119 /* Override any gcc2 internal prototype to avoid an error. */
4120 #ifdef __cplusplus
4121 extern "C"
4123 #endif
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4126 char $ac_func ();
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4131 choke me
4132 #else
4133 char (*f) () = $ac_func;
4134 #endif
4135 #ifdef __cplusplus
4137 #endif
4140 main ()
4142 return f != $ac_func;
4144 return 0;
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag"
4157 || test ! -s conftest.err'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 eval "$as_ac_var=yes"
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 eval "$as_ac_var=no"
4176 rm -f conftest.err conftest.$ac_objext \
4177 conftest$ac_exeext conftest.$ac_ext
4179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4181 if test `eval echo '${'$as_ac_var'}'` = yes; then
4182 cat >>confdefs.h <<_ACEOF
4183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4184 _ACEOF
4187 done
4192 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195 echo "$as_me:$LINENO: checking for $ac_func" >&5
4196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4208 #define $ac_func innocuous_$ac_func
4210 /* System header to define __stub macros and hopefully few prototypes,
4211 which can conflict with char $ac_func (); below.
4212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 <limits.h> exists even on freestanding compilers. */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4221 #undef $ac_func
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 #ifdef __cplusplus
4225 extern "C"
4227 #endif
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4230 char $ac_func ();
4231 /* The GNU C library defines this for functions which it implements
4232 to always fail with ENOSYS. Some functions are actually named
4233 something starting with __ and the normal name is an alias. */
4234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4235 choke me
4236 #else
4237 char (*f) () = $ac_func;
4238 #endif
4239 #ifdef __cplusplus
4241 #endif
4244 main ()
4246 return f != $ac_func;
4248 return 0;
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -z "$ac_c_werror_flag"
4261 || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest$ac_exeext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 eval "$as_ac_var=yes"
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 eval "$as_ac_var=no"
4280 rm -f conftest.err conftest.$ac_objext \
4281 conftest$ac_exeext conftest.$ac_ext
4283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4285 if test `eval echo '${'$as_ac_var'}'` = yes; then
4286 cat >>confdefs.h <<_ACEOF
4287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4288 _ACEOF
4291 done
4301 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4304 echo "$as_me:$LINENO: checking for $ac_func" >&5
4305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4306 if eval "test \"\${$as_ac_var+set}\" = set"; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h. */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4317 #define $ac_func innocuous_$ac_func
4319 /* System header to define __stub macros and hopefully few prototypes,
4320 which can conflict with char $ac_func (); below.
4321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322 <limits.h> exists even on freestanding compilers. */
4324 #ifdef __STDC__
4325 # include <limits.h>
4326 #else
4327 # include <assert.h>
4328 #endif
4330 #undef $ac_func
4332 /* Override any gcc2 internal prototype to avoid an error. */
4333 #ifdef __cplusplus
4334 extern "C"
4336 #endif
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char $ac_func ();
4340 /* The GNU C library defines this for functions which it implements
4341 to always fail with ENOSYS. Some functions are actually named
4342 something starting with __ and the normal name is an alias. */
4343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4344 choke me
4345 #else
4346 char (*f) () = $ac_func;
4347 #endif
4348 #ifdef __cplusplus
4350 #endif
4353 main ()
4355 return f != $ac_func;
4357 return 0;
4359 _ACEOF
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4362 (eval $ac_link) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest$ac_exeext'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 eval "$as_ac_var=yes"
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 eval "$as_ac_var=no"
4389 rm -f conftest.err conftest.$ac_objext \
4390 conftest$ac_exeext conftest.$ac_ext
4392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4394 if test `eval echo '${'$as_ac_var'}'` = yes; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4397 _ACEOF
4400 done
4407 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4410 echo "$as_me:$LINENO: checking for $ac_func" >&5
4411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4412 if eval "test \"\${$as_ac_var+set}\" = set"; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h. */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4423 #define $ac_func innocuous_$ac_func
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char $ac_func (); below.
4427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 <limits.h> exists even on freestanding compilers. */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4436 #undef $ac_func
4438 /* Override any gcc2 internal prototype to avoid an error. */
4439 #ifdef __cplusplus
4440 extern "C"
4442 #endif
4443 /* We use char because int might match the return type of a gcc2
4444 builtin and then its argument prototype would still apply. */
4445 char $ac_func ();
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 char (*f) () = $ac_func;
4453 #endif
4454 #ifdef __cplusplus
4456 #endif
4459 main ()
4461 return f != $ac_func;
4463 return 0;
4465 _ACEOF
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -z "$ac_c_werror_flag"
4476 || test ! -s conftest.err'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest$ac_exeext'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 eval "$as_ac_var=yes"
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 eval "$as_ac_var=no"
4495 rm -f conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4500 if test `eval echo '${'$as_ac_var'}'` = yes; then
4501 cat >>confdefs.h <<_ACEOF
4502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4503 _ACEOF
4506 done
4513 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4516 echo "$as_me:$LINENO: checking for $ac_func" >&5
4517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4518 if eval "test \"\${$as_ac_var+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4529 #define $ac_func innocuous_$ac_func
4531 /* System header to define __stub macros and hopefully few prototypes,
4532 which can conflict with char $ac_func (); below.
4533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 <limits.h> exists even on freestanding compilers. */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4542 #undef $ac_func
4544 /* Override any gcc2 internal prototype to avoid an error. */
4545 #ifdef __cplusplus
4546 extern "C"
4548 #endif
4549 /* We use char because int might match the return type of a gcc2
4550 builtin and then its argument prototype would still apply. */
4551 char $ac_func ();
4552 /* The GNU C library defines this for functions which it implements
4553 to always fail with ENOSYS. Some functions are actually named
4554 something starting with __ and the normal name is an alias. */
4555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4556 choke me
4557 #else
4558 char (*f) () = $ac_func;
4559 #endif
4560 #ifdef __cplusplus
4562 #endif
4565 main ()
4567 return f != $ac_func;
4569 return 0;
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -z "$ac_c_werror_flag"
4582 || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 eval "$as_ac_var=yes"
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 eval "$as_ac_var=no"
4601 rm -f conftest.err conftest.$ac_objext \
4602 conftest$ac_exeext conftest.$ac_ext
4604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4606 if test `eval echo '${'$as_ac_var'}'` = yes; then
4607 cat >>confdefs.h <<_ACEOF
4608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4609 _ACEOF
4612 done
4617 for ac_func in getprotoent getprotobyname getprotobynumber
4619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4620 echo "$as_me:$LINENO: checking for $ac_func" >&5
4621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4622 if eval "test \"\${$as_ac_var+set}\" = set"; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4633 #define $ac_func innocuous_$ac_func
4635 /* System header to define __stub macros and hopefully few prototypes,
4636 which can conflict with char $ac_func (); below.
4637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4638 <limits.h> exists even on freestanding compilers. */
4640 #ifdef __STDC__
4641 # include <limits.h>
4642 #else
4643 # include <assert.h>
4644 #endif
4646 #undef $ac_func
4648 /* Override any gcc2 internal prototype to avoid an error. */
4649 #ifdef __cplusplus
4650 extern "C"
4652 #endif
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4655 char $ac_func ();
4656 /* The GNU C library defines this for functions which it implements
4657 to always fail with ENOSYS. Some functions are actually named
4658 something starting with __ and the normal name is an alias. */
4659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4660 choke me
4661 #else
4662 char (*f) () = $ac_func;
4663 #endif
4664 #ifdef __cplusplus
4666 #endif
4669 main ()
4671 return f != $ac_func;
4673 return 0;
4675 _ACEOF
4676 rm -f conftest.$ac_objext conftest$ac_exeext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4678 (eval $ac_link) 2>conftest.er1
4679 ac_status=$?
4680 grep -v '^ *+' conftest.er1 >conftest.err
4681 rm -f conftest.er1
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -z "$ac_c_werror_flag"
4686 || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest$ac_exeext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 eval "$as_ac_var=yes"
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 eval "$as_ac_var=no"
4705 rm -f conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4710 if test `eval echo '${'$as_ac_var'}'` = yes; then
4711 cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4713 _ACEOF
4716 done
4721 for ac_func in getmntent setmntent addmntent
4723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4724 echo "$as_me:$LINENO: checking for $ac_func" >&5
4725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4726 if eval "test \"\${$as_ac_var+set}\" = set"; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729 cat >conftest.$ac_ext <<_ACEOF
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4737 #define $ac_func innocuous_$ac_func
4739 /* System header to define __stub macros and hopefully few prototypes,
4740 which can conflict with char $ac_func (); below.
4741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 <limits.h> exists even on freestanding compilers. */
4744 #ifdef __STDC__
4745 # include <limits.h>
4746 #else
4747 # include <assert.h>
4748 #endif
4750 #undef $ac_func
4752 /* Override any gcc2 internal prototype to avoid an error. */
4753 #ifdef __cplusplus
4754 extern "C"
4756 #endif
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char $ac_func ();
4760 /* The GNU C library defines this for functions which it implements
4761 to always fail with ENOSYS. Some functions are actually named
4762 something starting with __ and the normal name is an alias. */
4763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4764 choke me
4765 #else
4766 char (*f) () = $ac_func;
4767 #endif
4768 #ifdef __cplusplus
4770 #endif
4773 main ()
4775 return f != $ac_func;
4777 return 0;
4779 _ACEOF
4780 rm -f conftest.$ac_objext conftest$ac_exeext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782 (eval $ac_link) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest$ac_exeext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 eval "$as_ac_var=yes"
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 eval "$as_ac_var=no"
4809 rm -f conftest.err conftest.$ac_objext \
4810 conftest$ac_exeext conftest.$ac_ext
4812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4814 if test `eval echo '${'$as_ac_var'}'` = yes; then
4815 cat >>confdefs.h <<_ACEOF
4816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4817 _ACEOF
4820 done
4825 for ac_func in inet_ntoa mmap munmap
4827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4828 echo "$as_me:$LINENO: checking for $ac_func" >&5
4829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4830 if eval "test \"\${$as_ac_var+set}\" = set"; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h. */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4841 #define $ac_func innocuous_$ac_func
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char $ac_func (); below.
4845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 <limits.h> exists even on freestanding compilers. */
4848 #ifdef __STDC__
4849 # include <limits.h>
4850 #else
4851 # include <assert.h>
4852 #endif
4854 #undef $ac_func
4856 /* Override any gcc2 internal prototype to avoid an error. */
4857 #ifdef __cplusplus
4858 extern "C"
4860 #endif
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4863 char $ac_func ();
4864 /* The GNU C library defines this for functions which it implements
4865 to always fail with ENOSYS. Some functions are actually named
4866 something starting with __ and the normal name is an alias. */
4867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4868 choke me
4869 #else
4870 char (*f) () = $ac_func;
4871 #endif
4872 #ifdef __cplusplus
4874 #endif
4877 main ()
4879 return f != $ac_func;
4881 return 0;
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 eval "$as_ac_var=yes"
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 eval "$as_ac_var=no"
4913 rm -f conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
4916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4918 if test `eval echo '${'$as_ac_var'}'` = yes; then
4919 cat >>confdefs.h <<_ACEOF
4920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4921 _ACEOF
4924 done
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <sys/types.h>
4934 #include <sys/ipc.h>
4935 #include <sys/sem.h>
4937 main ()
4939 union semun foo;
4941 return 0;
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 mf_have_semun=1
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 mf_have_semun=0
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 if test $mf_have_semun = 1
4975 then
4977 cat >>confdefs.h <<\_ACEOF
4978 #define HAVE_UNION_SEMUN 1
4979 _ACEOF
4984 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
4985 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
4986 cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h. */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #define _POSIX_PII_SOCKET
4993 #include <sys/types.h>
4994 #include <sys/socket.h>
4996 main ()
4998 socklen_t x = 5;
5000 return 0;
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5026 cat >>confdefs.h <<\_ACEOF
5027 #define HAVE_SOCKLEN_T 1
5028 _ACEOF
5030 echo "$as_me:$LINENO: result: yes" >&5
5031 echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042 # Check whether --enable-shared or --disable-shared was given.
5043 if test "${enable_shared+set}" = set; then
5044 enableval="$enable_shared"
5045 p=${PACKAGE-default}
5046 case $enableval in
5047 yes) enable_shared=yes ;;
5048 no) enable_shared=no ;;
5050 enable_shared=no
5051 # Look at the argument we got. We use all the common list separators.
5052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5053 for pkg in $enableval; do
5054 if test "X$pkg" = "X$p"; then
5055 enable_shared=yes
5057 done
5058 IFS="$ac_save_ifs"
5060 esac
5061 else
5062 enable_shared=yes
5064 # Check whether --enable-static or --disable-static was given.
5065 if test "${enable_static+set}" = set; then
5066 enableval="$enable_static"
5067 p=${PACKAGE-default}
5068 case $enableval in
5069 yes) enable_static=yes ;;
5070 no) enable_static=no ;;
5072 enable_static=no
5073 # Look at the argument we got. We use all the common list separators.
5074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5075 for pkg in $enableval; do
5076 if test "X$pkg" = "X$p"; then
5077 enable_static=yes
5079 done
5080 IFS="$ac_save_ifs"
5082 esac
5083 else
5084 enable_static=yes
5086 # Check whether --enable-fast-install or --disable-fast-install was given.
5087 if test "${enable_fast_install+set}" = set; then
5088 enableval="$enable_fast_install"
5089 p=${PACKAGE-default}
5090 case $enableval in
5091 yes) enable_fast_install=yes ;;
5092 no) enable_fast_install=no ;;
5094 enable_fast_install=no
5095 # Look at the argument we got. We use all the common list separators.
5096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5097 for pkg in $enableval; do
5098 if test "X$pkg" = "X$p"; then
5099 enable_fast_install=yes
5101 done
5102 IFS="$ac_save_ifs"
5104 esac
5105 else
5106 enable_fast_install=yes
5109 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5110 if test "${with_gnu_ld+set}" = set; then
5111 withval="$with_gnu_ld"
5112 test "$withval" = no || with_gnu_ld=yes
5113 else
5114 with_gnu_ld=no
5116 ac_prog=ld
5117 if test "$GCC" = yes; then
5118 # Check if gcc -print-prog-name=ld gives a path.
5119 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5120 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5121 case $host in
5122 *-*-mingw*)
5123 # gcc leaves a trailing carriage return which upsets mingw
5124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5127 esac
5128 case $ac_prog in
5129 # Accept absolute paths.
5130 [\\/]* | [A-Za-z]:[\\/]*)
5131 re_direlt='/[^/][^/]*/\.\./'
5132 # Canonicalize the path of ld
5133 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5135 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5136 done
5137 test -z "$LD" && LD="$ac_prog"
5140 # If it fails, then pretend we aren't using GCC.
5141 ac_prog=ld
5144 # If it is relative, then search for the first ld in PATH.
5145 with_gnu_ld=unknown
5147 esac
5148 elif test "$with_gnu_ld" = yes; then
5149 echo "$as_me:$LINENO: checking for GNU ld" >&5
5150 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5151 else
5152 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5153 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5155 if test "${lt_cv_path_LD+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if test -z "$LD"; then
5159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5160 for ac_dir in $PATH; do
5161 test -z "$ac_dir" && ac_dir=.
5162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5163 lt_cv_path_LD="$ac_dir/$ac_prog"
5164 # Check to see if the program is GNU ld. I'd rather use --version,
5165 # but apparently some GNU ld's only accept -v.
5166 # Break only if it was the GNU/non-GNU ld that we prefer.
5167 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5168 test "$with_gnu_ld" != no && break
5169 else
5170 test "$with_gnu_ld" != yes && break
5173 done
5174 IFS="$ac_save_ifs"
5175 else
5176 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5180 LD="$lt_cv_path_LD"
5181 if test -n "$LD"; then
5182 echo "$as_me:$LINENO: result: $LD" >&5
5183 echo "${ECHO_T}$LD" >&6
5184 else
5185 echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6
5188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5190 { (exit 1); exit 1; }; }
5191 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5193 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5197 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5198 lt_cv_prog_gnu_ld=yes
5199 else
5200 lt_cv_prog_gnu_ld=no
5203 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5204 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5205 with_gnu_ld=$lt_cv_prog_gnu_ld
5208 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5209 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5210 if test "${lt_cv_ld_reload_flag+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 lt_cv_ld_reload_flag='-r'
5215 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5216 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5217 reload_flag=$lt_cv_ld_reload_flag
5218 test -n "$reload_flag" && reload_flag=" $reload_flag"
5220 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5221 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5222 if test "${lt_cv_path_NM+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if test -n "$NM"; then
5226 # Let the user override the test.
5227 lt_cv_path_NM="$NM"
5228 else
5229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5230 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5231 test -z "$ac_dir" && ac_dir=.
5232 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5233 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5234 # Check to see if the nm accepts a BSD-compat flag.
5235 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5236 # nm: unknown option "B" ignored
5237 # Tru64's nm complains that /dev/null is an invalid object file
5238 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5239 lt_cv_path_NM="$tmp_nm -B"
5240 break
5241 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5242 lt_cv_path_NM="$tmp_nm -p"
5243 break
5244 else
5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5246 continue # so that we can try to find one that supports BSD flags
5249 done
5250 IFS="$ac_save_ifs"
5251 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5255 NM="$lt_cv_path_NM"
5256 echo "$as_me:$LINENO: result: $NM" >&5
5257 echo "${ECHO_T}$NM" >&6
5259 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5260 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5261 LN_S=$as_ln_s
5262 if test "$LN_S" = "ln -s"; then
5263 echo "$as_me:$LINENO: result: yes" >&5
5264 echo "${ECHO_T}yes" >&6
5265 else
5266 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5267 echo "${ECHO_T}no, using $LN_S" >&6
5270 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5271 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5272 if test "${lt_cv_deplibs_check_method+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275 lt_cv_file_magic_cmd='$MAGIC_CMD'
5276 lt_cv_file_magic_test_file=
5277 lt_cv_deplibs_check_method='unknown'
5278 # Need to set the preceding variable on all platforms that support
5279 # interlibrary dependencies.
5280 # 'none' -- dependencies not supported.
5281 # `unknown' -- same as none, but documents that we really don't know.
5282 # 'pass_all' -- all dependencies passed with no checks.
5283 # 'test_compile' -- check by making test program.
5284 # 'file_magic [regex]' -- check by looking for files in library path
5285 # which responds to the $file_magic_cmd with a given egrep regex.
5286 # If you have `file' or equivalent on your system and you're not sure
5287 # whether `pass_all' will *always* work, you probably want this one.
5289 case $host_os in
5290 aix*)
5291 lt_cv_deplibs_check_method=pass_all
5294 beos*)
5295 lt_cv_deplibs_check_method=pass_all
5298 bsdi4*)
5299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5300 lt_cv_file_magic_cmd='/usr/bin/file -L'
5301 lt_cv_file_magic_test_file=/shlib/libc.so
5304 cygwin* | mingw* |pw32*)
5305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5306 lt_cv_file_magic_cmd='$OBJDUMP -f'
5309 darwin* | rhapsody*)
5310 # this will be overwritten by pass_all, but leave it in just in case
5311 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5312 lt_cv_file_magic_cmd='/usr/bin/file -L'
5313 case "$host_os" in
5314 rhapsody* | darwin1.012)
5315 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5317 *) # Darwin 1.3 on
5318 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5320 esac
5321 lt_cv_deplibs_check_method=pass_all
5324 freebsd* | kfreebsd*-gnu)
5325 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5326 case $host_cpu in
5327 i*86 )
5328 # Not sure whether the presence of OpenBSD here was a mistake.
5329 # Let's accept both of them until this is cleared up.
5330 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5331 lt_cv_file_magic_cmd=/usr/bin/file
5332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5334 esac
5335 else
5336 lt_cv_deplibs_check_method=pass_all
5340 gnu*)
5341 lt_cv_deplibs_check_method=pass_all
5344 hpux10.20*|hpux11*)
5345 case $host_cpu in
5346 hppa*)
5347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5348 lt_cv_file_magic_cmd=/usr/bin/file
5349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5351 ia64*)
5352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5353 lt_cv_file_magic_cmd=/usr/bin/file
5354 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5356 esac
5359 irix5* | irix6*)
5360 case $host_os in
5361 irix5*)
5362 # this will be overridden with pass_all, but let us keep it just in case
5363 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5366 case $LD in
5367 *-32|*"-32 ") libmagic=32-bit;;
5368 *-n32|*"-n32 ") libmagic=N32;;
5369 *-64|*"-64 ") libmagic=64-bit;;
5370 *) libmagic=never-match;;
5371 esac
5372 # this will be overridden with pass_all, but let us keep it just in case
5373 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5375 esac
5376 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5377 lt_cv_deplibs_check_method=pass_all
5380 # This must be Linux ELF.
5381 linux-gnu*)
5382 lt_cv_deplibs_check_method=pass_all
5385 netbsd* | knetbsd*-gnu)
5386 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5387 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5388 else
5389 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5393 newsos6)
5394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5399 osf3* | osf4* | osf5*)
5400 # this will be overridden with pass_all, but let us keep it just in case
5401 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5402 lt_cv_file_magic_test_file=/shlib/libc.so
5403 lt_cv_deplibs_check_method=pass_all
5406 sco3.2v5*)
5407 lt_cv_deplibs_check_method=pass_all
5410 solaris*)
5411 lt_cv_deplibs_check_method=pass_all
5412 lt_cv_file_magic_test_file=/lib/libc.so
5415 sysv5uw[78]* | sysv4*uw2*)
5416 lt_cv_deplibs_check_method=pass_all
5419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5420 case $host_vendor in
5421 ncr)
5422 lt_cv_deplibs_check_method=pass_all
5424 motorola)
5425 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]'
5426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5428 esac
5430 esac
5433 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5434 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5435 file_magic_cmd=$lt_cv_file_magic_cmd
5436 deplibs_check_method=$lt_cv_deplibs_check_method
5440 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5442 # find the maximum length of command line arguments
5443 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5444 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5445 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5449 teststring="ABCD"
5451 case $build_os in
5452 msdosdjgpp*)
5453 # On DJGPP, this test can blow up pretty badly due to problems in libc
5454 # (any single argument exceeding 2000 bytes causes a buffer overrun
5455 # during glob expansion). Even if it were fixed, the result of this
5456 # check would be larger than it should be.
5457 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5460 cygwin* | mingw*)
5461 # On Win9x/ME, this test blows up -- it succeeds, but takes
5462 # about 5 minutes as the teststring grows exponentially.
5463 # Worse, since 9x/ME are not pre-emptively multitasking,
5464 # you end up with a "frozen" computer, even though with patience
5465 # the test eventually succeeds (with a max line length of 256k).
5466 # Instead, let's just punt: use the minimum linelength reported by
5467 # all of the supported platforms: 8192 (on NT/2K/XP).
5468 lt_cv_sys_max_cmd_len=8192;
5471 amigaos*)
5472 # On AmigaOS with pdksh, this test takes hours, literally.
5473 # So we just punt and use a minimum line length of 8192.
5474 lt_cv_sys_max_cmd_len=8192;
5477 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5478 # This has been around since 386BSD, at least. Likely further.
5479 if test -x /sbin/sysctl; then
5480 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5481 elif test -x /usr/sbin/sysctl; then
5482 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5483 else
5484 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5486 # And add a safety zone
5487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5490 esac
5494 if test -n "$lt_cv_sys_max_cmd_len" ; then
5495 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5496 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5497 else
5498 echo "$as_me:$LINENO: result: none" >&5
5499 echo "${ECHO_T}none" >&6
5503 # Only perform the check for file, if the check method requires it
5504 case $deplibs_check_method in
5505 file_magic*)
5506 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5507 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5508 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5509 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 case $MAGIC_CMD in
5514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5516 ?:/*)
5517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5520 ac_save_MAGIC_CMD="$MAGIC_CMD"
5521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5522 ac_dummy="/usr/bin:$PATH"
5523 for ac_dir in $ac_dummy; do
5524 test -z "$ac_dir" && ac_dir=.
5525 if test -f $ac_dir/${ac_tool_prefix}file; then
5526 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5527 if test -n "$file_magic_test_file"; then
5528 case $deplibs_check_method in
5529 "file_magic "*)
5530 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5533 egrep "$file_magic_regex" > /dev/null; then
5535 else
5536 cat <<EOF 1>&2
5538 *** Warning: the command libtool uses to detect shared libraries,
5539 *** $file_magic_cmd, produces output that libtool cannot recognize.
5540 *** The result is that libtool may fail to recognize shared libraries
5541 *** as such. This will affect the creation of libtool libraries that
5542 *** depend on shared libraries, but programs linked with such libtool
5543 *** libraries will work regardless of this problem. Nevertheless, you
5544 *** may want to report the problem to your system manager and/or to
5545 *** bug-libtool@gnu.org
5548 fi ;;
5549 esac
5551 break
5553 done
5554 IFS="$ac_save_ifs"
5555 MAGIC_CMD="$ac_save_MAGIC_CMD"
5557 esac
5560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5561 if test -n "$MAGIC_CMD"; then
5562 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5563 echo "${ECHO_T}$MAGIC_CMD" >&6
5564 else
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5569 if test -z "$lt_cv_path_MAGIC_CMD"; then
5570 if test -n "$ac_tool_prefix"; then
5571 echo "$as_me:$LINENO: checking for file" >&5
5572 echo $ECHO_N "checking for file... $ECHO_C" >&6
5573 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 case $MAGIC_CMD in
5578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5580 ?:/*)
5581 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5584 ac_save_MAGIC_CMD="$MAGIC_CMD"
5585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5586 ac_dummy="/usr/bin:$PATH"
5587 for ac_dir in $ac_dummy; do
5588 test -z "$ac_dir" && ac_dir=.
5589 if test -f $ac_dir/file; then
5590 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5591 if test -n "$file_magic_test_file"; then
5592 case $deplibs_check_method in
5593 "file_magic "*)
5594 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5597 egrep "$file_magic_regex" > /dev/null; then
5599 else
5600 cat <<EOF 1>&2
5602 *** Warning: the command libtool uses to detect shared libraries,
5603 *** $file_magic_cmd, produces output that libtool cannot recognize.
5604 *** The result is that libtool may fail to recognize shared libraries
5605 *** as such. This will affect the creation of libtool libraries that
5606 *** depend on shared libraries, but programs linked with such libtool
5607 *** libraries will work regardless of this problem. Nevertheless, you
5608 *** may want to report the problem to your system manager and/or to
5609 *** bug-libtool@gnu.org
5612 fi ;;
5613 esac
5615 break
5617 done
5618 IFS="$ac_save_ifs"
5619 MAGIC_CMD="$ac_save_MAGIC_CMD"
5621 esac
5624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5625 if test -n "$MAGIC_CMD"; then
5626 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5627 echo "${ECHO_T}$MAGIC_CMD" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5633 else
5634 MAGIC_CMD=:
5640 esac
5642 if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5645 echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647 if test "${ac_cv_prog_RANLIB+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 if test -n "$RANLIB"; then
5651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5669 RANLIB=$ac_cv_prog_RANLIB
5670 if test -n "$RANLIB"; then
5671 echo "$as_me:$LINENO: result: $RANLIB" >&5
5672 echo "${ECHO_T}$RANLIB" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5679 if test -z "$ac_cv_prog_RANLIB"; then
5680 ac_ct_RANLIB=$RANLIB
5681 # Extract the first word of "ranlib", so it can be a program name with args.
5682 set dummy ranlib; ac_word=$2
5683 echo "$as_me:$LINENO: checking for $ac_word" >&5
5684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 if test -n "$ac_ct_RANLIB"; then
5689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_RANLIB="ranlib"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5709 if test -n "$ac_ct_RANLIB"; then
5710 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5717 RANLIB=$ac_ct_RANLIB
5718 else
5719 RANLIB="$ac_cv_prog_RANLIB"
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}strip; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_STRIP+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 if test -n "$STRIP"; then
5731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5744 done
5745 done
5749 STRIP=$ac_cv_prog_STRIP
5750 if test -n "$STRIP"; then
5751 echo "$as_me:$LINENO: result: $STRIP" >&5
5752 echo "${ECHO_T}$STRIP" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755 echo "${ECHO_T}no" >&6
5759 if test -z "$ac_cv_prog_STRIP"; then
5760 ac_ct_STRIP=$STRIP
5761 # Extract the first word of "strip", so it can be a program name with args.
5762 set dummy strip; ac_word=$2
5763 echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 if test -n "$ac_ct_STRIP"; then
5769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_STRIP="strip"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5782 done
5783 done
5785 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5789 if test -n "$ac_ct_STRIP"; then
5790 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5791 echo "${ECHO_T}$ac_ct_STRIP" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6
5797 STRIP=$ac_ct_STRIP
5798 else
5799 STRIP="$ac_cv_prog_STRIP"
5803 # Check for any special flags to pass to ltconfig.
5804 libtool_flags="--cache-file=$cache_file"
5805 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5806 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5807 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5808 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5809 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5812 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5813 if test "${enable_libtool_lock+set}" = set; then
5814 enableval="$enable_libtool_lock"
5817 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5818 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5821 # Check whether --with-pic or --without-pic was given.
5822 if test "${with_pic+set}" = set; then
5823 withval="$with_pic"
5824 pic_mode="$withval"
5825 else
5826 pic_mode=default
5828 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5829 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5831 # Some flags need to be propagated to the compiler or linker for good
5832 # libtool support.
5833 case $host in
5834 *-*-irix6*)
5835 # Find out which ABI we are using.
5836 echo '#line 5836 "configure"' > conftest.$ac_ext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; then
5842 if test "$lt_cv_prog_gnu_ld" = yes; then
5843 case `/usr/bin/file conftest.$ac_objext` in
5844 *32-bit*)
5845 LD="${LD-ld} -melf32bsmip"
5847 *N32*)
5848 LD="${LD-ld} -melf32bmipn32"
5850 *64-bit*)
5851 LD="${LD-ld} -melf64bmip"
5853 esac
5854 else
5855 case `/usr/bin/file conftest.$ac_objext` in
5856 *32-bit*)
5857 LD="${LD-ld} -32"
5859 *N32*)
5860 LD="${LD-ld} -n32"
5862 *64-bit*)
5863 LD="${LD-ld} -64"
5865 esac
5868 rm -rf conftest*
5871 ia64-*-hpux*)
5872 # Find out which ABI we are using.
5873 echo 'int i;' > conftest.$ac_ext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; then
5879 case "`/usr/bin/file conftest.o`" in
5880 *ELF-32*)
5881 HPUX_IA64_MODE="32"
5883 *ELF-64*)
5884 HPUX_IA64_MODE="64"
5886 esac
5888 rm -rf conftest*
5891 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5892 # Find out which ABI we are using.
5893 echo 'int i;' > conftest.$ac_ext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895 (eval $ac_compile) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; then
5899 case "`/usr/bin/file conftest.o`" in
5900 *32-bit*)
5901 case $host in
5902 x86_64-*linux*)
5903 LD="${LD-ld} -m elf_i386"
5905 ppc64-*linux*|powerpc64-*linux*)
5906 LD="${LD-ld} -m elf32ppclinux"
5908 s390x-*linux*)
5909 LD="${LD-ld} -m elf_s390"
5911 sparc64-*linux*)
5912 LD="${LD-ld} -m elf32_sparc"
5914 esac
5916 *64-bit*)
5917 case $host in
5918 x86_64-*linux*)
5919 LD="${LD-ld} -m elf_x86_64"
5921 ppc*-*linux*|powerpc*-*linux*)
5922 LD="${LD-ld} -m elf64ppc"
5924 s390*-*linux*)
5925 LD="${LD-ld} -m elf64_s390"
5927 sparc*-*linux*)
5928 LD="${LD-ld} -m elf64_sparc"
5930 esac
5932 esac
5934 rm -rf conftest*
5937 *-*-sco3.2v5*)
5938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5939 SAVE_CFLAGS="$CFLAGS"
5940 CFLAGS="$CFLAGS -belf"
5941 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5942 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5943 if test "${lt_cv_cc_needs_belf+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5948 ac_ext=c
5949 ac_cpp='$CPP $CPPFLAGS'
5950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5962 main ()
5966 return 0;
5968 _ACEOF
5969 rm -f conftest.$ac_objext conftest$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag"
5979 || test ! -s conftest.err'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest$ac_exeext'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 lt_cv_cc_needs_belf=yes
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 lt_cv_cc_needs_belf=no
5998 rm -f conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6000 ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6008 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6011 CFLAGS="$SAVE_CFLAGS"
6016 esac
6019 # Save cache, so that ltconfig can load it
6020 cat >confcache <<\_ACEOF
6021 # This file is a shell script that caches the results of configure
6022 # tests run on this system so they can be shared between configure
6023 # scripts and configure runs, see configure's option --config-cache.
6024 # It is not useful on other systems. If it contains results you don't
6025 # want to keep, you may remove or edit it.
6027 # config.status only pays attention to the cache file if you give it
6028 # the --recheck option to rerun configure.
6030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6032 # following values.
6034 _ACEOF
6036 # The following way of writing the cache mishandles newlines in values,
6037 # but we know of no workaround that is simple, portable, and efficient.
6038 # So, don't put newlines in cache variables' values.
6039 # Ultrix sh set writes to stderr and can't be redirected directly,
6040 # and sets the high bit in the cache file unless we assign to the vars.
6042 (set) 2>&1 |
6043 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6044 *ac_space=\ *)
6045 # `set' does not quote correctly, so add quotes (double-quote
6046 # substitution turns \\\\ into \\, and sed turns \\ into \).
6047 sed -n \
6048 "s/'/'\\\\''/g;
6049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6052 # `set' quotes correctly as required by POSIX, so do not add quotes.
6053 sed -n \
6054 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6056 esac;
6058 sed '
6059 t clear
6060 : clear
6061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6062 t end
6063 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6064 : end' >>confcache
6065 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6066 if test -w $cache_file; then
6067 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6068 cat confcache >$cache_file
6069 else
6070 echo "not updating unwritable cache $cache_file"
6073 rm -f confcache
6075 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6076 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6077 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6078 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6079 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6080 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6081 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6082 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6083 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6084 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6085 echo "$as_me: error: libtool configure failed" >&2;}
6086 { (exit 1); exit 1; }; }
6088 # Reload cache, that may have been modified by ltconfig
6089 if test -r "$cache_file"; then
6090 # Some versions of bash will fail to source /dev/null (special
6091 # files actually), so we avoid doing that.
6092 if test -f "$cache_file"; then
6093 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6094 echo "$as_me: loading cache $cache_file" >&6;}
6095 case $cache_file in
6096 [\\/]* | ?:[\\/]* ) . $cache_file;;
6097 *) . ./$cache_file;;
6098 esac
6100 else
6101 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6102 echo "$as_me: creating cache $cache_file" >&6;}
6103 >$cache_file
6107 # This can be used to rebuild libtool when needed
6108 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6110 # Always use our own libtool.
6111 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6113 # Redirect the config.log output again, so that the ltconfig log is not
6114 # clobbered by the next message.
6115 exec 5>>./config.log
6125 if test "${ac_cv_header_stdint_h+set}" = set; then
6126 echo "$as_me:$LINENO: checking for stdint.h" >&5
6127 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6128 if test "${ac_cv_header_stdint_h+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6132 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6133 else
6134 # Is the header compilable?
6135 echo "$as_me:$LINENO: checking stdint.h usability" >&5
6136 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 $ac_includes_default
6144 #include <stdint.h>
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag"
6156 || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest.$ac_objext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_header_compiler=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_header_compiler=no
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6177 echo "${ECHO_T}$ac_header_compiler" >&6
6179 # Is the header present?
6180 echo "$as_me:$LINENO: checking stdint.h presence" >&5
6181 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 #include <stdint.h>
6189 _ACEOF
6190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } >/dev/null; then
6198 if test -s conftest.err; then
6199 ac_cpp_err=$ac_c_preproc_warn_flag
6200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201 else
6202 ac_cpp_err=
6204 else
6205 ac_cpp_err=yes
6207 if test -z "$ac_cpp_err"; then
6208 ac_header_preproc=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_header_preproc=no
6215 rm -f conftest.err conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217 echo "${ECHO_T}$ac_header_preproc" >&6
6219 # So? What about this header?
6220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6221 yes:no: )
6222 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6223 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6225 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6226 ac_header_preproc=yes
6228 no:yes:* )
6229 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6230 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6232 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6234 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6235 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6236 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6238 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6240 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
6242 cat <<\_ASBOX
6243 ## ------------------------------------- ##
6244 ## Report this to the libmudflap lists. ##
6245 ## ------------------------------------- ##
6246 _ASBOX
6248 sed "s/^/$as_me: WARNING: /" >&2
6250 esac
6251 echo "$as_me:$LINENO: checking for stdint.h" >&5
6252 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6253 if test "${ac_cv_header_stdint_h+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 ac_cv_header_stdint_h=$ac_header_preproc
6258 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6259 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6262 if test $ac_cv_header_stdint_h = yes; then
6263 MF_HAVE_STDINT_H=1
6264 else
6265 MF_HAVE_STDINT_H=0
6270 if test $MF_HAVE_STDINT_H = 1
6271 then
6272 MF_HAVE_UINTPTR_T=1
6273 else
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6282 main ()
6284 uintptr_t k = 0;
6286 return 0;
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291 (eval $ac_compile) 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -z "$ac_c_werror_flag"
6299 || test ! -s conftest.err'
6300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 (eval $ac_try) 2>&5
6302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); }; } &&
6305 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
6311 MF_HAVE_UINTPTR_T=1
6312 else
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 MF_HAVE_UINTPTR_T=0
6318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 if test ! -d pth
6323 then
6324 # libmudflapth objects are built in this subdirectory
6325 mkdir pth
6329 for ac_header in pthread.h
6331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6333 echo "$as_me:$LINENO: checking for $ac_header" >&5
6334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6340 else
6341 # Is the header compilable?
6342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 $ac_includes_default
6351 #include <$ac_header>
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_header_compiler=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_header_compiler=no
6382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6384 echo "${ECHO_T}$ac_header_compiler" >&6
6386 # Is the header present?
6387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 #include <$ac_header>
6396 _ACEOF
6397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } >/dev/null; then
6405 if test -s conftest.err; then
6406 ac_cpp_err=$ac_c_preproc_warn_flag
6407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6408 else
6409 ac_cpp_err=
6411 else
6412 ac_cpp_err=yes
6414 if test -z "$ac_cpp_err"; then
6415 ac_header_preproc=yes
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_header_preproc=no
6422 rm -f conftest.err conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6424 echo "${ECHO_T}$ac_header_preproc" >&6
6426 # So? What about this header?
6427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6428 yes:no: )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6433 ac_header_preproc=yes
6435 no:yes:* )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6449 cat <<\_ASBOX
6450 ## ------------------------------------- ##
6451 ## Report this to the libmudflap lists. ##
6452 ## ------------------------------------- ##
6453 _ASBOX
6455 sed "s/^/$as_me: WARNING: /" >&2
6457 esac
6458 echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 eval "$as_ac_Header=\$ac_header_preproc"
6465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472 _ACEOF
6476 done
6479 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
6480 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
6481 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
6482 echo "$as_me:$LINENO: result: $target_thread_file" >&5
6483 echo "${ECHO_T}$target_thread_file" >&6
6485 # We only support posix threads, or no threads at all.
6486 posix_threads=
6487 case ${target_thread_file} in
6488 posix)
6489 posix_threads=yes
6491 single)
6494 echo "${target_thread_file} is an unsupported thread package" 1>&2
6495 exit 1
6497 esac
6501 if test "x$posix_threads" != "x"; then
6502 LIBMUDFLAPTH_TRUE=
6503 LIBMUDFLAPTH_FALSE='#'
6504 else
6505 LIBMUDFLAPTH_TRUE='#'
6506 LIBMUDFLAPTH_FALSE=
6509 if test "x$posix_threads" != "x"
6510 then
6511 build_libmudflapth=1
6512 else
6513 build_libmudflapth=0
6518 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
6519 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6520 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 ac_check_lib_save_LIBS=$LIBS
6524 LIBS="-ldl $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 #ifdef __cplusplus
6534 extern "C"
6535 #endif
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6538 char dlsym ();
6540 main ()
6542 dlsym ();
6544 return 0;
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_lib_dl_dlsym=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_lib_dl_dlsym=no
6576 rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 LIBS=$ac_check_lib_save_LIBS
6580 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
6581 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6582 if test $ac_cv_lib_dl_dlsym = yes; then
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_LIBDL 1
6585 _ACEOF
6587 LIBS="-ldl $LIBS"
6592 # Calculate toolexeclibdir
6593 # Also toolexecdir, though it's only used in toolexeclibdir
6594 case ${version_specific_libs} in
6595 yes)
6596 # Need the gcc compiler version to know where to install libraries
6597 # and header files if --enable-version-specific-runtime-libs option
6598 # is selected.
6599 toolexecdir='$(libdir)/gcc/$(target_alias)'
6600 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
6603 if test -n "$with_cross_host" &&
6604 test x"$with_cross_host" != x"no"; then
6605 # Install a library built with a cross compiler in tooldir, not libdir.
6606 toolexecdir='$(exec_prefix)/$(target_alias)'
6607 toolexeclibdir='$(toolexecdir)/lib'
6608 else
6609 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6610 toolexeclibdir='$(libdir)'
6612 multi_os_directory=`$CC -print-multi-os-directory`
6613 case $multi_os_directory in
6614 .) ;; # Avoid trailing /.
6615 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6616 esac
6618 esac
6622 pthread_create_version='""'
6623 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
6624 # NB: don't check for -lpthread here, because then it would be
6625 # added to LIBS. For the thread-unaware libmudflap.la, we don't
6626 # want it there.
6628 # glibc-related hacks. dlsym() may pick the wrong version of
6629 # interposed functions like pthread_create on modern glibc.
6630 # We need to find the proper symbol version string, and use
6631 # the nonstandard dlvsym().
6633 for ac_func in dlvsym
6635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6636 echo "$as_me:$LINENO: checking for $ac_func" >&5
6637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6638 if eval "test \"\${$as_ac_var+set}\" = set"; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6649 #define $ac_func innocuous_$ac_func
6651 /* System header to define __stub macros and hopefully few prototypes,
6652 which can conflict with char $ac_func (); below.
6653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6654 <limits.h> exists even on freestanding compilers. */
6656 #ifdef __STDC__
6657 # include <limits.h>
6658 #else
6659 # include <assert.h>
6660 #endif
6662 #undef $ac_func
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 #ifdef __cplusplus
6666 extern "C"
6668 #endif
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6671 char $ac_func ();
6672 /* The GNU C library defines this for functions which it implements
6673 to always fail with ENOSYS. Some functions are actually named
6674 something starting with __ and the normal name is an alias. */
6675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6676 choke me
6677 #else
6678 char (*f) () = $ac_func;
6679 #endif
6680 #ifdef __cplusplus
6682 #endif
6685 main ()
6687 return f != $ac_func;
6689 return 0;
6691 _ACEOF
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag"
6702 || test ! -s conftest.err'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try='test -s conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 eval "$as_ac_var=yes"
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6719 eval "$as_ac_var=no"
6721 rm -f conftest.err conftest.$ac_objext \
6722 conftest$ac_exeext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6726 if test `eval echo '${'$as_ac_var'}'` = yes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6729 _ACEOF
6732 done
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}nm; ac_word=$2
6737 echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6739 if test "${ac_cv_prog_NM+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 if test -n "$NM"; then
6743 ac_cv_prog_NM="$NM" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_NM="${ac_tool_prefix}nm"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6756 done
6757 done
6761 NM=$ac_cv_prog_NM
6762 if test -n "$NM"; then
6763 echo "$as_me:$LINENO: result: $NM" >&5
6764 echo "${ECHO_T}$NM" >&6
6765 else
6766 echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6
6771 if test -z "$ac_cv_prog_NM"; then
6772 ac_ct_NM=$NM
6773 # Extract the first word of "nm", so it can be a program name with args.
6774 set dummy nm; ac_word=$2
6775 echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6777 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 if test -n "$ac_ct_NM"; then
6781 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_NM="nm"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6794 done
6795 done
6799 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6800 if test -n "$ac_ct_NM"; then
6801 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6802 echo "${ECHO_T}$ac_ct_NM" >&6
6803 else
6804 echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6
6808 NM=$ac_ct_NM
6809 else
6810 NM="$ac_cv_prog_NM"
6813 if test "x$ac_cv_have_dlvsym" != "x"; then
6814 # Try compiling a simple pthreads program. Find the shared libraries it
6815 # ends up with. Then use "nm" on those libraries to extract the
6816 # default symbol versioning suffix ("@@"), if any. But that's tricky.
6817 # Rather, run nm on the resulting executable. Unfortunately, autoconf
6818 # doesn't appear to have a macro that builds a test executable for
6819 # subsequent analysis ... so we do it by hand here.
6820 cat >> conftest.c << EOF
6821 #include <pthread.h>
6822 int main () { void *p = (void *) & pthread_create; return (int) p; }
6824 oldLIBS="$LIBS"
6825 LIBS="$LIBS -lpthread"
6826 pthread_create_version="\"\""
6827 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
6828 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
6829 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
6830 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
6831 if test "x$version" != "x"; then
6832 pthread_create_version="\"$version\""
6835 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
6836 echo "${ECHO_T}$pthread_create_version" >&6
6837 LIBS="$oldLIBS"
6841 cat >>confdefs.h <<_ACEOF
6842 #define PTHREAD_CREATE_VERSION $pthread_create_version
6843 _ACEOF
6847 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6848 # similarly to how libstdc++ does it
6849 ac_test_CFLAGS="${CFLAGS+set}"
6850 ac_save_CFLAGS="$CFLAGS"
6852 # Check for -ffunction-sections -fdata-sections
6853 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6854 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
6855 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6864 main ()
6866 int foo;
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_fdsections=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_fdsections=no
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 if test "$ac_test_CFLAGS" = set; then
6902 CFLAGS="$ac_save_CFLAGS"
6903 else
6904 # this is the suspicious part
6905 CFLAGS=""
6907 if test x"$ac_fdsections" = x"yes"; then
6908 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6910 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
6911 echo "${ECHO_T}$ac_fdsections" >&6
6915 # Check for the name of the symbol used for the entry point.
6916 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
6917 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
6918 if test "${mudflap_cv_entry_point+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6922 for name in _start __start unknown; do
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 extern char $name[];
6931 main ()
6933 $name[0] = 0;
6935 return 0;
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 break
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968 done
6969 mudflap_cv_entry_point="$name"
6971 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
6972 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
6973 if test "$mudflap_cv_entry_point" = unknown; then
6974 { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
6975 echo "$as_me: error: none of the known symbol names works" >&2;}
6976 { (exit 1); exit 1; }; }
6979 cat >>confdefs.h <<_ACEOF
6980 #define ENTRY_POINT $mudflap_cv_entry_point
6981 _ACEOF
6985 if test ${multilib} = yes; then
6986 multilib_arg="--enable-multilib"
6987 else
6988 multilib_arg=
6991 # See if we support thread-local storage.
6993 # Check whether --enable-tls or --disable-tls was given.
6994 if test "${enable_tls+set}" = set; then
6995 enableval="$enable_tls"
6997 case "$enableval" in
6998 yes|no) ;;
6999 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
7000 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
7001 { (exit 1); exit 1; }; } ;;
7002 esac
7004 else
7005 enable_tls=yes
7008 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
7009 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
7010 if test "${have_tls+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7014 if test "$cross_compiling" = yes; then
7015 cat >conftest.$ac_ext <<_ACEOF
7016 __thread int foo;
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020 (eval $ac_compile) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_c_werror_flag"
7028 || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 have_tls=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 have_tls=no
7047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 __thread int a; int b; int main() { return a = b; }
7052 _ACEOF
7053 rm -f conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 save_LDFLAGS="$LDFLAGS"
7065 LDFLAGS="-static $LDFLAGS"
7066 if test "$cross_compiling" = yes; then
7067 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7068 See \`config.log' for more details." >&5
7069 echo "$as_me: error: cannot run test program while cross compiling
7070 See \`config.log' for more details." >&2;}
7071 { (exit 1); exit 1; }; }
7072 else
7073 cat >conftest.$ac_ext <<_ACEOF
7074 __thread int a; int b; int main() { return a = b; }
7075 _ACEOF
7076 rm -f conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 have_tls=yes
7088 else
7089 echo "$as_me: program exited with status $ac_status" >&5
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ( exit $ac_status )
7094 have_tls=no
7096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7098 LDFLAGS="$save_LDFLAGS"
7099 else
7100 echo "$as_me: program exited with status $ac_status" >&5
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ( exit $ac_status )
7105 have_tls=no
7107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7110 echo "$as_me:$LINENO: result: $have_tls" >&5
7111 echo "${ECHO_T}$have_tls" >&6
7112 if test "$enable_tls $have_tls" = "yes yes"; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_TLS 1
7116 _ACEOF
7120 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
7122 cat >confcache <<\_ACEOF
7123 # This file is a shell script that caches the results of configure
7124 # tests run on this system so they can be shared between configure
7125 # scripts and configure runs, see configure's option --config-cache.
7126 # It is not useful on other systems. If it contains results you don't
7127 # want to keep, you may remove or edit it.
7129 # config.status only pays attention to the cache file if you give it
7130 # the --recheck option to rerun configure.
7132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7134 # following values.
7136 _ACEOF
7138 # The following way of writing the cache mishandles newlines in values,
7139 # but we know of no workaround that is simple, portable, and efficient.
7140 # So, don't put newlines in cache variables' values.
7141 # Ultrix sh set writes to stderr and can't be redirected directly,
7142 # and sets the high bit in the cache file unless we assign to the vars.
7144 (set) 2>&1 |
7145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7146 *ac_space=\ *)
7147 # `set' does not quote correctly, so add quotes (double-quote
7148 # substitution turns \\\\ into \\, and sed turns \\ into \).
7149 sed -n \
7150 "s/'/'\\\\''/g;
7151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7154 # `set' quotes correctly as required by POSIX, so do not add quotes.
7155 sed -n \
7156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7158 esac;
7160 sed '
7161 t clear
7162 : clear
7163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7164 t end
7165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7166 : end' >>confcache
7167 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7168 if test -w $cache_file; then
7169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7170 cat confcache >$cache_file
7171 else
7172 echo "not updating unwritable cache $cache_file"
7175 rm -f confcache
7177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7178 # Let make expand exec_prefix.
7179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7181 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7182 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7183 # trailing colons and then remove the whole line if VPATH becomes empty
7184 # (actually we leave an empty line to preserve line numbers).
7185 if test "x$srcdir" = x.; then
7186 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7187 s/:*\$(srcdir):*/:/;
7188 s/:*\${srcdir}:*/:/;
7189 s/:*@srcdir@:*/:/;
7190 s/^\([^=]*=[ ]*\):*/\1/;
7191 s/:*$//;
7192 s/^[^=]*=[ ]*$//;
7196 DEFS=-DHAVE_CONFIG_H
7198 ac_libobjs=
7199 ac_ltlibobjs=
7200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7201 # 1. Remove the extension, and $U if already installed.
7202 ac_i=`echo "$ac_i" |
7203 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7204 # 2. Add them.
7205 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7206 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7207 done
7208 LIBOBJS=$ac_libobjs
7210 LTLIBOBJS=$ac_ltlibobjs
7213 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7214 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7215 Usually this means the macro was only invoked conditionally." >&5
7216 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7217 Usually this means the macro was only invoked conditionally." >&2;}
7218 { (exit 1); exit 1; }; }
7220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7221 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7222 Usually this means the macro was only invoked conditionally." >&5
7223 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7224 Usually this means the macro was only invoked conditionally." >&2;}
7225 { (exit 1); exit 1; }; }
7227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7228 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7229 Usually this means the macro was only invoked conditionally." >&5
7230 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7231 Usually this means the macro was only invoked conditionally." >&2;}
7232 { (exit 1); exit 1; }; }
7234 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
7235 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
7236 Usually this means the macro was only invoked conditionally." >&5
7237 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
7238 Usually this means the macro was only invoked conditionally." >&2;}
7239 { (exit 1); exit 1; }; }
7242 : ${CONFIG_STATUS=./config.status}
7243 ac_clean_files_save=$ac_clean_files
7244 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7245 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7246 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7247 cat >$CONFIG_STATUS <<_ACEOF
7248 #! $SHELL
7249 # Generated by $as_me.
7250 # Run this file to recreate the current configuration.
7251 # Compiler output produced by configure, useful for debugging
7252 # configure, is in config.log if it exists.
7254 debug=false
7255 ac_cs_recheck=false
7256 ac_cs_silent=false
7257 SHELL=\${CONFIG_SHELL-$SHELL}
7258 _ACEOF
7260 cat >>$CONFIG_STATUS <<\_ACEOF
7261 ## --------------------- ##
7262 ## M4sh Initialization. ##
7263 ## --------------------- ##
7265 # Be Bourne compatible
7266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7267 emulate sh
7268 NULLCMD=:
7269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7270 # is contrary to our usage. Disable this feature.
7271 alias -g '${1+"$@"}'='"$@"'
7272 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7273 set -o posix
7275 DUALCASE=1; export DUALCASE # for MKS sh
7277 # Support unset when possible.
7278 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7279 as_unset=unset
7280 else
7281 as_unset=false
7285 # Work around bugs in pre-3.0 UWIN ksh.
7286 $as_unset ENV MAIL MAILPATH
7287 PS1='$ '
7288 PS2='> '
7289 PS4='+ '
7291 # NLS nuisances.
7292 for as_var in \
7293 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7294 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7295 LC_TELEPHONE LC_TIME
7297 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7298 eval $as_var=C; export $as_var
7299 else
7300 $as_unset $as_var
7302 done
7304 # Required to use basename.
7305 if expr a : '\(a\)' >/dev/null 2>&1; then
7306 as_expr=expr
7307 else
7308 as_expr=false
7311 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7312 as_basename=basename
7313 else
7314 as_basename=false
7318 # Name of the executable.
7319 as_me=`$as_basename "$0" ||
7320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7321 X"$0" : 'X\(//\)$' \| \
7322 X"$0" : 'X\(/\)$' \| \
7323 . : '\(.\)' 2>/dev/null ||
7324 echo X/"$0" |
7325 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7326 /^X\/\(\/\/\)$/{ s//\1/; q; }
7327 /^X\/\(\/\).*/{ s//\1/; q; }
7328 s/.*/./; q'`
7331 # PATH needs CR, and LINENO needs CR and PATH.
7332 # Avoid depending upon Character Ranges.
7333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7336 as_cr_digits='0123456789'
7337 as_cr_alnum=$as_cr_Letters$as_cr_digits
7339 # The user is always right.
7340 if test "${PATH_SEPARATOR+set}" != set; then
7341 echo "#! /bin/sh" >conf$$.sh
7342 echo "exit 0" >>conf$$.sh
7343 chmod +x conf$$.sh
7344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7345 PATH_SEPARATOR=';'
7346 else
7347 PATH_SEPARATOR=:
7349 rm -f conf$$.sh
7353 as_lineno_1=$LINENO
7354 as_lineno_2=$LINENO
7355 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7356 test "x$as_lineno_1" != "x$as_lineno_2" &&
7357 test "x$as_lineno_3" = "x$as_lineno_2" || {
7358 # Find who we are. Look in the path if we contain no path at all
7359 # relative or not.
7360 case $0 in
7361 *[\\/]* ) as_myself=$0 ;;
7362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7368 done
7371 esac
7372 # We did not find ourselves, most probably we were run as `sh COMMAND'
7373 # in which case we are not to be found in the path.
7374 if test "x$as_myself" = x; then
7375 as_myself=$0
7377 if test ! -f "$as_myself"; then
7378 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7379 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7380 { (exit 1); exit 1; }; }
7382 case $CONFIG_SHELL in
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for as_base in sh bash ksh sh5; do
7390 case $as_dir in
7392 if ("$as_dir/$as_base" -c '
7393 as_lineno_1=$LINENO
7394 as_lineno_2=$LINENO
7395 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7396 test "x$as_lineno_1" != "x$as_lineno_2" &&
7397 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7398 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7399 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7400 CONFIG_SHELL=$as_dir/$as_base
7401 export CONFIG_SHELL
7402 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7403 fi;;
7404 esac
7405 done
7406 done
7408 esac
7410 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7411 # uniformly replaced by the line number. The first 'sed' inserts a
7412 # line-number line before each line; the second 'sed' does the real
7413 # work. The second script uses 'N' to pair each line-number line
7414 # with the numbered line, and appends trailing '-' during
7415 # substitution so that $LINENO is not a special case at line end.
7416 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7417 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7418 sed '=' <$as_myself |
7419 sed '
7421 s,$,-,
7422 : loop
7423 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7424 t loop
7425 s,-$,,
7426 s,^['$as_cr_digits']*\n,,
7427 ' >$as_me.lineno &&
7428 chmod +x $as_me.lineno ||
7429 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7430 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7431 { (exit 1); exit 1; }; }
7433 # Don't try to exec as it changes $[0], causing all sort of problems
7434 # (the dirname of $[0] is not the place where we might find the
7435 # original and so on. Autoconf is especially sensible to this).
7436 . ./$as_me.lineno
7437 # Exit status is that of the last command.
7438 exit
7442 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7443 *c*,-n*) ECHO_N= ECHO_C='
7444 ' ECHO_T=' ' ;;
7445 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7446 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7447 esac
7449 if expr a : '\(a\)' >/dev/null 2>&1; then
7450 as_expr=expr
7451 else
7452 as_expr=false
7455 rm -f conf$$ conf$$.exe conf$$.file
7456 echo >conf$$.file
7457 if ln -s conf$$.file conf$$ 2>/dev/null; then
7458 # We could just check for DJGPP; but this test a) works b) is more generic
7459 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7460 if test -f conf$$.exe; then
7461 # Don't use ln at all; we don't have any links
7462 as_ln_s='cp -p'
7463 else
7464 as_ln_s='ln -s'
7466 elif ln conf$$.file conf$$ 2>/dev/null; then
7467 as_ln_s=ln
7468 else
7469 as_ln_s='cp -p'
7471 rm -f conf$$ conf$$.exe conf$$.file
7473 if mkdir -p . 2>/dev/null; then
7474 as_mkdir_p=:
7475 else
7476 test -d ./-p && rmdir ./-p
7477 as_mkdir_p=false
7480 as_executable_p="test -f"
7482 # Sed expression to map a string onto a valid CPP name.
7483 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7485 # Sed expression to map a string onto a valid variable name.
7486 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7489 # IFS
7490 # We need space, tab and new line, in precisely that order.
7491 as_nl='
7493 IFS=" $as_nl"
7495 # CDPATH.
7496 $as_unset CDPATH
7498 exec 6>&1
7500 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7501 # report actual input values of CONFIG_FILES etc. instead of their
7502 # values after options handling. Logging --version etc. is OK.
7503 exec 5>>config.log
7505 echo
7506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7507 ## Running $as_me. ##
7508 _ASBOX
7509 } >&5
7510 cat >&5 <<_CSEOF
7512 This file was extended by libmudflap $as_me 1.0, which was
7513 generated by GNU Autoconf 2.59. Invocation command line was
7515 CONFIG_FILES = $CONFIG_FILES
7516 CONFIG_HEADERS = $CONFIG_HEADERS
7517 CONFIG_LINKS = $CONFIG_LINKS
7518 CONFIG_COMMANDS = $CONFIG_COMMANDS
7519 $ $0 $@
7521 _CSEOF
7522 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7523 echo >&5
7524 _ACEOF
7526 # Files that config.status was made for.
7527 if test -n "$ac_config_files"; then
7528 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7531 if test -n "$ac_config_headers"; then
7532 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7535 if test -n "$ac_config_links"; then
7536 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7539 if test -n "$ac_config_commands"; then
7540 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7543 cat >>$CONFIG_STATUS <<\_ACEOF
7545 ac_cs_usage="\
7546 \`$as_me' instantiates files from templates according to the
7547 current configuration.
7549 Usage: $0 [OPTIONS] [FILE]...
7551 -h, --help print this help, then exit
7552 -V, --version print version number, then exit
7553 -q, --quiet do not print progress messages
7554 -d, --debug don't remove temporary files
7555 --recheck update $as_me by reconfiguring in the same conditions
7556 --file=FILE[:TEMPLATE]
7557 instantiate the configuration file FILE
7558 --header=FILE[:TEMPLATE]
7559 instantiate the configuration header FILE
7561 Configuration files:
7562 $config_files
7564 Configuration headers:
7565 $config_headers
7567 Configuration commands:
7568 $config_commands
7570 Report bugs to <bug-autoconf@gnu.org>."
7571 _ACEOF
7573 cat >>$CONFIG_STATUS <<_ACEOF
7574 ac_cs_version="\\
7575 libmudflap config.status 1.0
7576 configured by $0, generated by GNU Autoconf 2.59,
7577 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7579 Copyright (C) 2003 Free Software Foundation, Inc.
7580 This config.status script is free software; the Free Software Foundation
7581 gives unlimited permission to copy, distribute and modify it."
7582 srcdir=$srcdir
7583 INSTALL="$INSTALL"
7584 _ACEOF
7586 cat >>$CONFIG_STATUS <<\_ACEOF
7587 # If no file are specified by the user, then we need to provide default
7588 # value. By we need to know if files were specified by the user.
7589 ac_need_defaults=:
7590 while test $# != 0
7592 case $1 in
7593 --*=*)
7594 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7595 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7596 ac_shift=:
7599 ac_option=$1
7600 ac_optarg=$2
7601 ac_shift=shift
7603 *) # This is not an option, so the user has probably given explicit
7604 # arguments.
7605 ac_option=$1
7606 ac_need_defaults=false;;
7607 esac
7609 case $ac_option in
7610 # Handling of the options.
7611 _ACEOF
7612 cat >>$CONFIG_STATUS <<\_ACEOF
7613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7614 ac_cs_recheck=: ;;
7615 --version | --vers* | -V )
7616 echo "$ac_cs_version"; exit 0 ;;
7617 --he | --h)
7618 # Conflict between --help and --header
7619 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7620 Try \`$0 --help' for more information." >&5
7621 echo "$as_me: error: ambiguous option: $1
7622 Try \`$0 --help' for more information." >&2;}
7623 { (exit 1); exit 1; }; };;
7624 --help | --hel | -h )
7625 echo "$ac_cs_usage"; exit 0 ;;
7626 --debug | --d* | -d )
7627 debug=: ;;
7628 --file | --fil | --fi | --f )
7629 $ac_shift
7630 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7631 ac_need_defaults=false;;
7632 --header | --heade | --head | --hea )
7633 $ac_shift
7634 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7635 ac_need_defaults=false;;
7636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7638 ac_cs_silent=: ;;
7640 # This is an error.
7641 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7642 Try \`$0 --help' for more information." >&5
7643 echo "$as_me: error: unrecognized option: $1
7644 Try \`$0 --help' for more information." >&2;}
7645 { (exit 1); exit 1; }; } ;;
7647 *) ac_config_targets="$ac_config_targets $1" ;;
7649 esac
7650 shift
7651 done
7653 ac_configure_extra_args=
7655 if $ac_cs_silent; then
7656 exec 6>/dev/null
7657 ac_configure_extra_args="$ac_configure_extra_args --silent"
7660 _ACEOF
7661 cat >>$CONFIG_STATUS <<_ACEOF
7662 if \$ac_cs_recheck; then
7663 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7664 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7667 _ACEOF
7669 cat >>$CONFIG_STATUS <<_ACEOF
7671 # INIT-COMMANDS section.
7675 srcdir="$srcdir"
7676 host="$host"
7677 target="$target"
7678 with_multisubdir="$with_multisubdir"
7679 with_multisrctop="$with_multisrctop"
7680 with_target_subdir="$with_target_subdir"
7681 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7682 multi_basedir="$multi_basedir"
7683 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7684 CC="$CC"
7685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7687 _ACEOF
7691 cat >>$CONFIG_STATUS <<\_ACEOF
7692 for ac_config_target in $ac_config_targets
7694 case "$ac_config_target" in
7695 # Handling of arguments.
7696 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7697 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7698 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
7699 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7700 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7701 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7702 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7703 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7704 { (exit 1); exit 1; }; };;
7705 esac
7706 done
7708 # If the user did not use the arguments to specify the items to instantiate,
7709 # then the envvar interface is used. Set only those that are not.
7710 # We use the long form for the default assignment because of an extremely
7711 # bizarre bug on SunOS 4.1.3.
7712 if $ac_need_defaults; then
7713 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7714 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7715 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7718 # Have a temporary directory for convenience. Make it in the build tree
7719 # simply because there is no reason to put it here, and in addition,
7720 # creating and moving files from /tmp can sometimes cause problems.
7721 # Create a temporary directory, and hook for its removal unless debugging.
7722 $debug ||
7724 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7725 trap '{ (exit 1); exit 1; }' 1 2 13 15
7728 # Create a (secure) tmp directory for tmp files.
7731 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7732 test -n "$tmp" && test -d "$tmp"
7733 } ||
7735 tmp=./confstat$$-$RANDOM
7736 (umask 077 && mkdir $tmp)
7737 } ||
7739 echo "$me: cannot create a temporary directory in ." >&2
7740 { (exit 1); exit 1; }
7743 _ACEOF
7745 cat >>$CONFIG_STATUS <<_ACEOF
7748 # CONFIG_FILES section.
7751 # No need to generate the scripts if there are no CONFIG_FILES.
7752 # This happens for instance when ./config.status config.h
7753 if test -n "\$CONFIG_FILES"; then
7754 # Protect against being on the right side of a sed subst in config.status.
7755 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7756 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7757 s,@SHELL@,$SHELL,;t t
7758 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7759 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7760 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7761 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7762 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7763 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7764 s,@exec_prefix@,$exec_prefix,;t t
7765 s,@prefix@,$prefix,;t t
7766 s,@program_transform_name@,$program_transform_name,;t t
7767 s,@bindir@,$bindir,;t t
7768 s,@sbindir@,$sbindir,;t t
7769 s,@libexecdir@,$libexecdir,;t t
7770 s,@datadir@,$datadir,;t t
7771 s,@sysconfdir@,$sysconfdir,;t t
7772 s,@sharedstatedir@,$sharedstatedir,;t t
7773 s,@localstatedir@,$localstatedir,;t t
7774 s,@libdir@,$libdir,;t t
7775 s,@includedir@,$includedir,;t t
7776 s,@oldincludedir@,$oldincludedir,;t t
7777 s,@infodir@,$infodir,;t t
7778 s,@mandir@,$mandir,;t t
7779 s,@build_alias@,$build_alias,;t t
7780 s,@host_alias@,$host_alias,;t t
7781 s,@target_alias@,$target_alias,;t t
7782 s,@DEFS@,$DEFS,;t t
7783 s,@ECHO_C@,$ECHO_C,;t t
7784 s,@ECHO_N@,$ECHO_N,;t t
7785 s,@ECHO_T@,$ECHO_T,;t t
7786 s,@LIBS@,$LIBS,;t t
7787 s,@build@,$build,;t t
7788 s,@build_cpu@,$build_cpu,;t t
7789 s,@build_vendor@,$build_vendor,;t t
7790 s,@build_os@,$build_os,;t t
7791 s,@host@,$host,;t t
7792 s,@host_cpu@,$host_cpu,;t t
7793 s,@host_vendor@,$host_vendor,;t t
7794 s,@host_os@,$host_os,;t t
7795 s,@target@,$target,;t t
7796 s,@target_cpu@,$target_cpu,;t t
7797 s,@target_vendor@,$target_vendor,;t t
7798 s,@target_os@,$target_os,;t t
7799 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7800 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7801 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7802 s,@CYGPATH_W@,$CYGPATH_W,;t t
7803 s,@PACKAGE@,$PACKAGE,;t t
7804 s,@VERSION@,$VERSION,;t t
7805 s,@ACLOCAL@,$ACLOCAL,;t t
7806 s,@AUTOCONF@,$AUTOCONF,;t t
7807 s,@AUTOMAKE@,$AUTOMAKE,;t t
7808 s,@AUTOHEADER@,$AUTOHEADER,;t t
7809 s,@MAKEINFO@,$MAKEINFO,;t t
7810 s,@install_sh@,$install_sh,;t t
7811 s,@STRIP@,$STRIP,;t t
7812 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7813 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7814 s,@mkdir_p@,$mkdir_p,;t t
7815 s,@AWK@,$AWK,;t t
7816 s,@SET_MAKE@,$SET_MAKE,;t t
7817 s,@am__leading_dot@,$am__leading_dot,;t t
7818 s,@AMTAR@,$AMTAR,;t t
7819 s,@am__tar@,$am__tar,;t t
7820 s,@am__untar@,$am__untar,;t t
7821 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7822 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7823 s,@MAINT@,$MAINT,;t t
7824 s,@multi_basedir@,$multi_basedir,;t t
7825 s,@CC@,$CC,;t t
7826 s,@ac_ct_CC@,$ac_ct_CC,;t t
7827 s,@EXEEXT@,$EXEEXT,;t t
7828 s,@OBJEXT@,$OBJEXT,;t t
7829 s,@DEPDIR@,$DEPDIR,;t t
7830 s,@am__include@,$am__include,;t t
7831 s,@am__quote@,$am__quote,;t t
7832 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7833 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7834 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7835 s,@CCDEPMODE@,$CCDEPMODE,;t t
7836 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7837 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7838 s,@CFLAGS@,$CFLAGS,;t t
7839 s,@CPP@,$CPP,;t t
7840 s,@CPPFLAGS@,$CPPFLAGS,;t t
7841 s,@EGREP@,$EGREP,;t t
7842 s,@LN_S@,$LN_S,;t t
7843 s,@RANLIB@,$RANLIB,;t t
7844 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7845 s,@LIBTOOL@,$LIBTOOL,;t t
7846 s,@enable_shared@,$enable_shared,;t t
7847 s,@enable_static@,$enable_static,;t t
7848 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
7849 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
7850 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
7851 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
7852 s,@build_libmudflapth@,$build_libmudflapth,;t t
7853 s,@toolexecdir@,$toolexecdir,;t t
7854 s,@toolexeclibdir@,$toolexeclibdir,;t t
7855 s,@NM@,$NM,;t t
7856 s,@ac_ct_NM@,$ac_ct_NM,;t t
7857 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
7858 s,@LIBOBJS@,$LIBOBJS,;t t
7859 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7860 CEOF
7862 _ACEOF
7864 cat >>$CONFIG_STATUS <<\_ACEOF
7865 # Split the substitutions into bite-sized pieces for seds with
7866 # small command number limits, like on Digital OSF/1 and HP-UX.
7867 ac_max_sed_lines=48
7868 ac_sed_frag=1 # Number of current file.
7869 ac_beg=1 # First line for current file.
7870 ac_end=$ac_max_sed_lines # Line after last line for current file.
7871 ac_more_lines=:
7872 ac_sed_cmds=
7873 while $ac_more_lines; do
7874 if test $ac_beg -gt 1; then
7875 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7876 else
7877 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7879 if test ! -s $tmp/subs.frag; then
7880 ac_more_lines=false
7881 else
7882 # The purpose of the label and of the branching condition is to
7883 # speed up the sed processing (if there are no `@' at all, there
7884 # is no need to browse any of the substitutions).
7885 # These are the two extra sed commands mentioned above.
7886 (echo ':t
7887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7888 if test -z "$ac_sed_cmds"; then
7889 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7890 else
7891 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7893 ac_sed_frag=`expr $ac_sed_frag + 1`
7894 ac_beg=$ac_end
7895 ac_end=`expr $ac_end + $ac_max_sed_lines`
7897 done
7898 if test -z "$ac_sed_cmds"; then
7899 ac_sed_cmds=cat
7901 fi # test -n "$CONFIG_FILES"
7903 _ACEOF
7904 cat >>$CONFIG_STATUS <<\_ACEOF
7905 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7907 case $ac_file in
7908 - | *:- | *:-:* ) # input from stdin
7909 cat >$tmp/stdin
7910 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7912 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7914 * ) ac_file_in=$ac_file.in ;;
7915 esac
7917 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7918 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7920 X"$ac_file" : 'X\(//\)[^/]' \| \
7921 X"$ac_file" : 'X\(//\)$' \| \
7922 X"$ac_file" : 'X\(/\)' \| \
7923 . : '\(.\)' 2>/dev/null ||
7924 echo X"$ac_file" |
7925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7927 /^X\(\/\/\)$/{ s//\1/; q; }
7928 /^X\(\/\).*/{ s//\1/; q; }
7929 s/.*/./; q'`
7930 { if $as_mkdir_p; then
7931 mkdir -p "$ac_dir"
7932 else
7933 as_dir="$ac_dir"
7934 as_dirs=
7935 while test ! -d "$as_dir"; do
7936 as_dirs="$as_dir $as_dirs"
7937 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7939 X"$as_dir" : 'X\(//\)[^/]' \| \
7940 X"$as_dir" : 'X\(//\)$' \| \
7941 X"$as_dir" : 'X\(/\)' \| \
7942 . : '\(.\)' 2>/dev/null ||
7943 echo X"$as_dir" |
7944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7946 /^X\(\/\/\)$/{ s//\1/; q; }
7947 /^X\(\/\).*/{ s//\1/; q; }
7948 s/.*/./; q'`
7949 done
7950 test ! -n "$as_dirs" || mkdir $as_dirs
7951 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7952 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7953 { (exit 1); exit 1; }; }; }
7955 ac_builddir=.
7957 if test "$ac_dir" != .; then
7958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7959 # A "../" for each directory in $ac_dir_suffix.
7960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7961 else
7962 ac_dir_suffix= ac_top_builddir=
7965 case $srcdir in
7966 .) # No --srcdir option. We are building in place.
7967 ac_srcdir=.
7968 if test -z "$ac_top_builddir"; then
7969 ac_top_srcdir=.
7970 else
7971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7972 fi ;;
7973 [\\/]* | ?:[\\/]* ) # Absolute path.
7974 ac_srcdir=$srcdir$ac_dir_suffix;
7975 ac_top_srcdir=$srcdir ;;
7976 *) # Relative path.
7977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7979 esac
7981 # Do not use `cd foo && pwd` to compute absolute paths, because
7982 # the directories may not exist.
7983 case `pwd` in
7984 .) ac_abs_builddir="$ac_dir";;
7986 case "$ac_dir" in
7987 .) ac_abs_builddir=`pwd`;;
7988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7990 esac;;
7991 esac
7992 case $ac_abs_builddir in
7993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7995 case ${ac_top_builddir}. in
7996 .) ac_abs_top_builddir=$ac_abs_builddir;;
7997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7999 esac;;
8000 esac
8001 case $ac_abs_builddir in
8002 .) ac_abs_srcdir=$ac_srcdir;;
8004 case $ac_srcdir in
8005 .) ac_abs_srcdir=$ac_abs_builddir;;
8006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8008 esac;;
8009 esac
8010 case $ac_abs_builddir in
8011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8013 case $ac_top_srcdir in
8014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8017 esac;;
8018 esac
8021 case $INSTALL in
8022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8023 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8024 esac
8026 if test x"$ac_file" != x-; then
8027 { echo "$as_me:$LINENO: creating $ac_file" >&5
8028 echo "$as_me: creating $ac_file" >&6;}
8029 rm -f "$ac_file"
8031 # Let's still pretend it is `configure' which instantiates (i.e., don't
8032 # use $as_me), people would be surprised to read:
8033 # /* config.h. Generated by config.status. */
8034 if test x"$ac_file" = x-; then
8035 configure_input=
8036 else
8037 configure_input="$ac_file. "
8039 configure_input=$configure_input"Generated from `echo $ac_file_in |
8040 sed 's,.*/,,'` by configure."
8042 # First look for the input files in the build tree, otherwise in the
8043 # src tree.
8044 ac_file_inputs=`IFS=:
8045 for f in $ac_file_in; do
8046 case $f in
8047 -) echo $tmp/stdin ;;
8048 [\\/$]*)
8049 # Absolute (can't be DOS-style, as IFS=:)
8050 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8051 echo "$as_me: error: cannot find input file: $f" >&2;}
8052 { (exit 1); exit 1; }; }
8053 echo "$f";;
8054 *) # Relative
8055 if test -f "$f"; then
8056 # Build tree
8057 echo "$f"
8058 elif test -f "$srcdir/$f"; then
8059 # Source tree
8060 echo "$srcdir/$f"
8061 else
8062 # /dev/null tree
8063 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8064 echo "$as_me: error: cannot find input file: $f" >&2;}
8065 { (exit 1); exit 1; }; }
8066 fi;;
8067 esac
8068 done` || { (exit 1); exit 1; }
8069 _ACEOF
8070 cat >>$CONFIG_STATUS <<_ACEOF
8071 sed "$ac_vpsub
8072 $extrasub
8073 _ACEOF
8074 cat >>$CONFIG_STATUS <<\_ACEOF
8076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8077 s,@configure_input@,$configure_input,;t t
8078 s,@srcdir@,$ac_srcdir,;t t
8079 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8080 s,@top_srcdir@,$ac_top_srcdir,;t t
8081 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8082 s,@builddir@,$ac_builddir,;t t
8083 s,@abs_builddir@,$ac_abs_builddir,;t t
8084 s,@top_builddir@,$ac_top_builddir,;t t
8085 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8086 s,@INSTALL@,$ac_INSTALL,;t t
8087 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8088 rm -f $tmp/stdin
8089 if test x"$ac_file" != x-; then
8090 mv $tmp/out $ac_file
8091 else
8092 cat $tmp/out
8093 rm -f $tmp/out
8096 done
8097 _ACEOF
8098 cat >>$CONFIG_STATUS <<\_ACEOF
8101 # CONFIG_HEADER section.
8104 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8105 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8107 # ac_d sets the value in "#define NAME VALUE" lines.
8108 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8109 ac_dB='[ ].*$,\1#\2'
8110 ac_dC=' '
8111 ac_dD=',;t'
8112 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8113 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8114 ac_uB='$,\1#\2define\3'
8115 ac_uC=' '
8116 ac_uD=',;t'
8118 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8120 case $ac_file in
8121 - | *:- | *:-:* ) # input from stdin
8122 cat >$tmp/stdin
8123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8127 * ) ac_file_in=$ac_file.in ;;
8128 esac
8130 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8131 echo "$as_me: creating $ac_file" >&6;}
8133 # First look for the input files in the build tree, otherwise in the
8134 # src tree.
8135 ac_file_inputs=`IFS=:
8136 for f in $ac_file_in; do
8137 case $f in
8138 -) echo $tmp/stdin ;;
8139 [\\/$]*)
8140 # Absolute (can't be DOS-style, as IFS=:)
8141 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8142 echo "$as_me: error: cannot find input file: $f" >&2;}
8143 { (exit 1); exit 1; }; }
8144 # Do quote $f, to prevent DOS paths from being IFS'd.
8145 echo "$f";;
8146 *) # Relative
8147 if test -f "$f"; then
8148 # Build tree
8149 echo "$f"
8150 elif test -f "$srcdir/$f"; then
8151 # Source tree
8152 echo "$srcdir/$f"
8153 else
8154 # /dev/null tree
8155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8156 echo "$as_me: error: cannot find input file: $f" >&2;}
8157 { (exit 1); exit 1; }; }
8158 fi;;
8159 esac
8160 done` || { (exit 1); exit 1; }
8161 # Remove the trailing spaces.
8162 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8164 _ACEOF
8166 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8167 # `conftest.undefs', that substitutes the proper values into
8168 # config.h.in to produce config.h. The first handles `#define'
8169 # templates, and the second `#undef' templates.
8170 # And first: Protect against being on the right side of a sed subst in
8171 # config.status. Protect against being in an unquoted here document
8172 # in config.status.
8173 rm -f conftest.defines conftest.undefs
8174 # Using a here document instead of a string reduces the quoting nightmare.
8175 # Putting comments in sed scripts is not portable.
8177 # `end' is used to avoid that the second main sed command (meant for
8178 # 0-ary CPP macros) applies to n-ary macro definitions.
8179 # See the Autoconf documentation for `clear'.
8180 cat >confdef2sed.sed <<\_ACEOF
8181 s/[\\&,]/\\&/g
8182 s,[\\$`],\\&,g
8183 t clear
8184 : clear
8185 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8186 t end
8187 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8188 : end
8189 _ACEOF
8190 # If some macros were called several times there might be several times
8191 # the same #defines, which is useless. Nevertheless, we may not want to
8192 # sort them, since we want the *last* AC-DEFINE to be honored.
8193 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8194 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8195 rm -f confdef2sed.sed
8197 # This sed command replaces #undef with comments. This is necessary, for
8198 # example, in the case of _POSIX_SOURCE, which is predefined and required
8199 # on some systems where configure will not decide to define it.
8200 cat >>conftest.undefs <<\_ACEOF
8201 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8202 _ACEOF
8204 # Break up conftest.defines because some shells have a limit on the size
8205 # of here documents, and old seds have small limits too (100 cmds).
8206 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8207 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8208 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8209 echo ' :' >>$CONFIG_STATUS
8210 rm -f conftest.tail
8211 while grep . conftest.defines >/dev/null
8213 # Write a limited-size here document to $tmp/defines.sed.
8214 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8215 # Speed up: don't consider the non `#define' lines.
8216 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8217 # Work around the forget-to-reset-the-flag bug.
8218 echo 't clr' >>$CONFIG_STATUS
8219 echo ': clr' >>$CONFIG_STATUS
8220 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8221 echo 'CEOF
8222 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8223 rm -f $tmp/in
8224 mv $tmp/out $tmp/in
8225 ' >>$CONFIG_STATUS
8226 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8227 rm -f conftest.defines
8228 mv conftest.tail conftest.defines
8229 done
8230 rm -f conftest.defines
8231 echo ' fi # grep' >>$CONFIG_STATUS
8232 echo >>$CONFIG_STATUS
8234 # Break up conftest.undefs because some shells have a limit on the size
8235 # of here documents, and old seds have small limits too (100 cmds).
8236 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8237 rm -f conftest.tail
8238 while grep . conftest.undefs >/dev/null
8240 # Write a limited-size here document to $tmp/undefs.sed.
8241 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8242 # Speed up: don't consider the non `#undef'
8243 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8244 # Work around the forget-to-reset-the-flag bug.
8245 echo 't clr' >>$CONFIG_STATUS
8246 echo ': clr' >>$CONFIG_STATUS
8247 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8248 echo 'CEOF
8249 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8250 rm -f $tmp/in
8251 mv $tmp/out $tmp/in
8252 ' >>$CONFIG_STATUS
8253 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8254 rm -f conftest.undefs
8255 mv conftest.tail conftest.undefs
8256 done
8257 rm -f conftest.undefs
8259 cat >>$CONFIG_STATUS <<\_ACEOF
8260 # Let's still pretend it is `configure' which instantiates (i.e., don't
8261 # use $as_me), people would be surprised to read:
8262 # /* config.h. Generated by config.status. */
8263 if test x"$ac_file" = x-; then
8264 echo "/* Generated by configure. */" >$tmp/config.h
8265 else
8266 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8268 cat $tmp/in >>$tmp/config.h
8269 rm -f $tmp/in
8270 if test x"$ac_file" != x-; then
8271 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8272 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8273 echo "$as_me: $ac_file is unchanged" >&6;}
8274 else
8275 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8277 X"$ac_file" : 'X\(//\)[^/]' \| \
8278 X"$ac_file" : 'X\(//\)$' \| \
8279 X"$ac_file" : 'X\(/\)' \| \
8280 . : '\(.\)' 2>/dev/null ||
8281 echo X"$ac_file" |
8282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8284 /^X\(\/\/\)$/{ s//\1/; q; }
8285 /^X\(\/\).*/{ s//\1/; q; }
8286 s/.*/./; q'`
8287 { if $as_mkdir_p; then
8288 mkdir -p "$ac_dir"
8289 else
8290 as_dir="$ac_dir"
8291 as_dirs=
8292 while test ! -d "$as_dir"; do
8293 as_dirs="$as_dir $as_dirs"
8294 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8296 X"$as_dir" : 'X\(//\)[^/]' \| \
8297 X"$as_dir" : 'X\(//\)$' \| \
8298 X"$as_dir" : 'X\(/\)' \| \
8299 . : '\(.\)' 2>/dev/null ||
8300 echo X"$as_dir" |
8301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8303 /^X\(\/\/\)$/{ s//\1/; q; }
8304 /^X\(\/\).*/{ s//\1/; q; }
8305 s/.*/./; q'`
8306 done
8307 test ! -n "$as_dirs" || mkdir $as_dirs
8308 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8309 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8310 { (exit 1); exit 1; }; }; }
8312 rm -f $ac_file
8313 mv $tmp/config.h $ac_file
8315 else
8316 cat $tmp/config.h
8317 rm -f $tmp/config.h
8319 # Compute $ac_file's index in $config_headers.
8320 _am_stamp_count=1
8321 for _am_header in $config_headers :; do
8322 case $_am_header in
8323 $ac_file | $ac_file:* )
8324 break ;;
8326 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8327 esac
8328 done
8329 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8330 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8331 X$ac_file : 'X\(//\)[^/]' \| \
8332 X$ac_file : 'X\(//\)$' \| \
8333 X$ac_file : 'X\(/\)' \| \
8334 . : '\(.\)' 2>/dev/null ||
8335 echo X$ac_file |
8336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8338 /^X\(\/\/\)$/{ s//\1/; q; }
8339 /^X\(\/\).*/{ s//\1/; q; }
8340 s/.*/./; q'`/stamp-h$_am_stamp_count
8341 done
8342 _ACEOF
8343 cat >>$CONFIG_STATUS <<\_ACEOF
8346 # CONFIG_COMMANDS section.
8348 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8349 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8350 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8351 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8352 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8353 X"$ac_dest" : 'X\(//\)[^/]' \| \
8354 X"$ac_dest" : 'X\(//\)$' \| \
8355 X"$ac_dest" : 'X\(/\)' \| \
8356 . : '\(.\)' 2>/dev/null ||
8357 echo X"$ac_dest" |
8358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8360 /^X\(\/\/\)$/{ s//\1/; q; }
8361 /^X\(\/\).*/{ s//\1/; q; }
8362 s/.*/./; q'`
8363 { if $as_mkdir_p; then
8364 mkdir -p "$ac_dir"
8365 else
8366 as_dir="$ac_dir"
8367 as_dirs=
8368 while test ! -d "$as_dir"; do
8369 as_dirs="$as_dir $as_dirs"
8370 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8372 X"$as_dir" : 'X\(//\)[^/]' \| \
8373 X"$as_dir" : 'X\(//\)$' \| \
8374 X"$as_dir" : 'X\(/\)' \| \
8375 . : '\(.\)' 2>/dev/null ||
8376 echo X"$as_dir" |
8377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8379 /^X\(\/\/\)$/{ s//\1/; q; }
8380 /^X\(\/\).*/{ s//\1/; q; }
8381 s/.*/./; q'`
8382 done
8383 test ! -n "$as_dirs" || mkdir $as_dirs
8384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8385 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8386 { (exit 1); exit 1; }; }; }
8388 ac_builddir=.
8390 if test "$ac_dir" != .; then
8391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8392 # A "../" for each directory in $ac_dir_suffix.
8393 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8394 else
8395 ac_dir_suffix= ac_top_builddir=
8398 case $srcdir in
8399 .) # No --srcdir option. We are building in place.
8400 ac_srcdir=.
8401 if test -z "$ac_top_builddir"; then
8402 ac_top_srcdir=.
8403 else
8404 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8405 fi ;;
8406 [\\/]* | ?:[\\/]* ) # Absolute path.
8407 ac_srcdir=$srcdir$ac_dir_suffix;
8408 ac_top_srcdir=$srcdir ;;
8409 *) # Relative path.
8410 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8411 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8412 esac
8414 # Do not use `cd foo && pwd` to compute absolute paths, because
8415 # the directories may not exist.
8416 case `pwd` in
8417 .) ac_abs_builddir="$ac_dir";;
8419 case "$ac_dir" in
8420 .) ac_abs_builddir=`pwd`;;
8421 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8422 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8423 esac;;
8424 esac
8425 case $ac_abs_builddir in
8426 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8428 case ${ac_top_builddir}. in
8429 .) ac_abs_top_builddir=$ac_abs_builddir;;
8430 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8431 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8432 esac;;
8433 esac
8434 case $ac_abs_builddir in
8435 .) ac_abs_srcdir=$ac_srcdir;;
8437 case $ac_srcdir in
8438 .) ac_abs_srcdir=$ac_abs_builddir;;
8439 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8440 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8441 esac;;
8442 esac
8443 case $ac_abs_builddir in
8444 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8446 case $ac_top_srcdir in
8447 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8448 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8449 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8450 esac;;
8451 esac
8454 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8455 echo "$as_me: executing $ac_dest commands" >&6;}
8456 case $ac_dest in
8457 default-1 )
8458 # Only add multilib support code if we just rebuilt the top-level
8459 # Makefile.
8460 case " $CONFIG_FILES " in
8461 *" Makefile "*)
8462 ac_file=Makefile . ${multi_basedir}/config-ml.in
8464 esac ;;
8465 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8466 # Strip MF so we end up with the name of the file.
8467 mf=`echo "$mf" | sed -e 's/:.*$//'`
8468 # Check whether this is an Automake generated Makefile or not.
8469 # We used to match only the files named `Makefile.in', but
8470 # some people rename them; so instead we look at the file content.
8471 # Grep'ing the first line is not enough: some people post-process
8472 # each Makefile.in and add a new line on top of each file to say so.
8473 # So let's grep whole file.
8474 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8475 dirpart=`(dirname "$mf") 2>/dev/null ||
8476 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8477 X"$mf" : 'X\(//\)[^/]' \| \
8478 X"$mf" : 'X\(//\)$' \| \
8479 X"$mf" : 'X\(/\)' \| \
8480 . : '\(.\)' 2>/dev/null ||
8481 echo X"$mf" |
8482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8484 /^X\(\/\/\)$/{ s//\1/; q; }
8485 /^X\(\/\).*/{ s//\1/; q; }
8486 s/.*/./; q'`
8487 else
8488 continue
8490 # Extract the definition of DEPDIR, am__include, and am__quote
8491 # from the Makefile without running `make'.
8492 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8493 test -z "$DEPDIR" && continue
8494 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8495 test -z "am__include" && continue
8496 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8497 # When using ansi2knr, U may be empty or an underscore; expand it
8498 U=`sed -n 's/^U = //p' < "$mf"`
8499 # Find all dependency output files, they are included files with
8500 # $(DEPDIR) in their names. We invoke sed twice because it is the
8501 # simplest approach to changing $(DEPDIR) to its actual value in the
8502 # expansion.
8503 for file in `sed -n "
8504 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8505 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8506 # Make sure the directory exists.
8507 test -f "$dirpart/$file" && continue
8508 fdir=`(dirname "$file") 2>/dev/null ||
8509 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8510 X"$file" : 'X\(//\)[^/]' \| \
8511 X"$file" : 'X\(//\)$' \| \
8512 X"$file" : 'X\(/\)' \| \
8513 . : '\(.\)' 2>/dev/null ||
8514 echo X"$file" |
8515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8517 /^X\(\/\/\)$/{ s//\1/; q; }
8518 /^X\(\/\).*/{ s//\1/; q; }
8519 s/.*/./; q'`
8520 { if $as_mkdir_p; then
8521 mkdir -p $dirpart/$fdir
8522 else
8523 as_dir=$dirpart/$fdir
8524 as_dirs=
8525 while test ! -d "$as_dir"; do
8526 as_dirs="$as_dir $as_dirs"
8527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8529 X"$as_dir" : 'X\(//\)[^/]' \| \
8530 X"$as_dir" : 'X\(//\)$' \| \
8531 X"$as_dir" : 'X\(/\)' \| \
8532 . : '\(.\)' 2>/dev/null ||
8533 echo X"$as_dir" |
8534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8536 /^X\(\/\/\)$/{ s//\1/; q; }
8537 /^X\(\/\).*/{ s//\1/; q; }
8538 s/.*/./; q'`
8539 done
8540 test ! -n "$as_dirs" || mkdir $as_dirs
8541 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8542 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8543 { (exit 1); exit 1; }; }; }
8545 # echo "creating $dirpart/$file"
8546 echo '# dummy' > "$dirpart/$file"
8547 done
8548 done
8550 esac
8551 done
8552 _ACEOF
8554 cat >>$CONFIG_STATUS <<\_ACEOF
8556 { (exit 0); exit 0; }
8557 _ACEOF
8558 chmod +x $CONFIG_STATUS
8559 ac_clean_files=$ac_clean_files_save
8562 # configure is writing to config.log, and then calls config.status.
8563 # config.status does its own redirection, appending to config.log.
8564 # Unfortunately, on DOS this fails, as config.log is still kept open
8565 # by configure, so config.status won't be able to write to it; its
8566 # output is simply discarded. So we exec the FD to /dev/null,
8567 # effectively closing config.log, so it can be properly (re)opened and
8568 # appended to by config.status. When coming back to configure, we
8569 # need to make the FD available again.
8570 if test "$no_create" != yes; then
8571 ac_cs_success=:
8572 ac_config_status_args=
8573 test "$silent" = yes &&
8574 ac_config_status_args="$ac_config_status_args --quiet"
8575 exec 5>/dev/null
8576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8577 exec 5>>config.log
8578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8579 # would make configure fail if this is the last instruction.
8580 $ac_cs_success || { (exit 1); exit 1; }