Daily bump.
[gcc.git] / libmudflap / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 1.0.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48 fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
154 esac
155
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 '
166 N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
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=''
273
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"
311
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 gcc_version toolexecdir toolexeclibdir NM ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
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
334
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'
352
353 ac_prev=
354 for ac_option
355 do
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
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
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 ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
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 ;;
394
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" ;;
403
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'" ;;
416
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 ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
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 ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
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 ;;
491
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 ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
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 ;;
546
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 ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
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'" ;;
598
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" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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 ;;
618
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 ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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 ;;
640
641 *)
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}
647 ;;
648
649 esac
650 done
651
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; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
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
668
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
672 do
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
680
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
687
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
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
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=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
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; }; }
735 fi
736 fi
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
761
762 #
763 # Report the --help message.
764 #
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.
770
771 Usage: $0 [OPTION]... [VAR=VALUE]...
772
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.
775
776 Defaults for the options are specified in brackets.
777
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 \`..']
788
789 _ACEOF
790
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]
797
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'.
802
803 For better control, use the options below.
804
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
819
820 cat <<\_ACEOF
821
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
826
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
832 fi
833
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
839
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
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-gnu-ld assume the C compiler uses GNU ld default=no
858 --with-pic try to use only PIC/non-PIC objects default=use both
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911 case "$ac_dir" in
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929 case $ac_srcdir in
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942 esac;;
943 esac
944
945 cd $ac_dir
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
948 echo
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
951 echo
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
955 echo
956 $ac_configure --help
957 else
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 fi
960 cd $ac_popdir
961 done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966 cat <<\_ACEOF
967 libmudflap configure 1.0
968 generated by GNU Autoconf 2.59
969
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by libmudflap $as_me 1.0, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
983
984 $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044 for ac_arg
1045 do
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 2)
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1069 ;;
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1072 fi
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1076 ;;
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1090 {
1091 echo
1092
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1100 {
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 ;;
1108 *)
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ;;
1112 esac;
1113 }
1114 echo
1115
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142 fi
1143
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1153 fi
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1161 ' 0
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1214 fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1227 fi
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1253 *)
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1275 fi
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1332 fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343 # Make sure we can run config.sub.
1344 $ac_config_sub sun4 >/dev/null 2>&1 ||
1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1346 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1347 { (exit 1); exit 1; }; }
1348
1349 echo "$as_me:$LINENO: checking build system type" >&5
1350 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1351 if test "${ac_cv_build+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 ac_cv_build_alias=$build_alias
1355 test -z "$ac_cv_build_alias" &&
1356 ac_cv_build_alias=`$ac_config_guess`
1357 test -z "$ac_cv_build_alias" &&
1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1359 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1360 { (exit 1); exit 1; }; }
1361 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1364 { (exit 1); exit 1; }; }
1365
1366 fi
1367 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1368 echo "${ECHO_T}$ac_cv_build" >&6
1369 build=$ac_cv_build
1370 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375 echo "$as_me:$LINENO: checking host system type" >&5
1376 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1377 if test "${ac_cv_host+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 ac_cv_host_alias=$host_alias
1381 test -z "$ac_cv_host_alias" &&
1382 ac_cv_host_alias=$ac_cv_build_alias
1383 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1385 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1386 { (exit 1); exit 1; }; }
1387
1388 fi
1389 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1390 echo "${ECHO_T}$ac_cv_host" >&6
1391 host=$ac_cv_host
1392 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395
1396
1397 echo "$as_me:$LINENO: checking target system type" >&5
1398 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1399 if test "${ac_cv_target+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_target_alias=$target_alias
1403 test "x$ac_cv_target_alias" = "x" &&
1404 ac_cv_target_alias=$ac_cv_host_alias
1405 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1409
1410 fi
1411 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1412 echo "${ECHO_T}$ac_cv_target" >&6
1413 target=$ac_cv_target
1414 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419 # The aliases save the names the user supplied, while $host etc.
1420 # will get canonicalized.
1421 test -n "$target_alias" &&
1422 test "$program_prefix$program_suffix$program_transform_name" = \
1423 NONENONEs,x,x, &&
1424 program_prefix=${target_alias}-
1425
1426 am__api_version="1.8"
1427 # Find a good install program. We prefer a C program (faster),
1428 # so one script is as good as another. But avoid the broken or
1429 # incompatible versions:
1430 # SysV /etc/install, /usr/sbin/install
1431 # SunOS /usr/etc/install
1432 # IRIX /sbin/install
1433 # AIX /bin/install
1434 # AmigaOS /C/install, which installs bootblocks on floppy discs
1435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438 # OS/2's system install, which has a completely different semantic
1439 # ./install, which can be erroneously created by make from ./install.sh.
1440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1442 if test -z "$INSTALL"; then
1443 if test "${ac_cv_path_install+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 # Account for people who put trailing slashes in PATH elements.
1452 case $as_dir/ in
1453 ./ | .// | /cC/* | \
1454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1456 /usr/ucb/* ) ;;
1457 *)
1458 # OSF1 and SCO ODT 3.0 have their own names for install.
1459 # Don't use installbsd from OSF since it installs stuff as root
1460 # by default.
1461 for ac_prog in ginstall scoinst install; do
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1464 if test $ac_prog = install &&
1465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1466 # AIX install. It has an incompatible calling convention.
1467 :
1468 elif test $ac_prog = install &&
1469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1470 # program-specific install script used by HP pwplus--don't use.
1471 :
1472 else
1473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1474 break 3
1475 fi
1476 fi
1477 done
1478 done
1479 ;;
1480 esac
1481 done
1482
1483
1484 fi
1485 if test "${ac_cv_path_install+set}" = set; then
1486 INSTALL=$ac_cv_path_install
1487 else
1488 # As a last resort, use the slow shell script. We don't cache a
1489 # path for INSTALL within a source directory, because that will
1490 # break other packages using the cache if that directory is
1491 # removed, or if the path is relative.
1492 INSTALL=$ac_install_sh
1493 fi
1494 fi
1495 echo "$as_me:$LINENO: result: $INSTALL" >&5
1496 echo "${ECHO_T}$INSTALL" >&6
1497
1498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1499 # It thinks the first close brace ends the variable substitution.
1500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501
1502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1503
1504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505
1506 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1507 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1508 # Just in case
1509 sleep 1
1510 echo timestamp > conftest.file
1511 # Do `set' in a subshell so we don't clobber the current shell's
1512 # arguments. Must try -L first in case configure is actually a
1513 # symlink; some systems play weird games with the mod time of symlinks
1514 # (eg FreeBSD returns the mod time of the symlink's containing
1515 # directory).
1516 if (
1517 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1518 if test "$*" = "X"; then
1519 # -L didn't work.
1520 set X `ls -t $srcdir/configure conftest.file`
1521 fi
1522 rm -f conftest.file
1523 if test "$*" != "X $srcdir/configure conftest.file" \
1524 && test "$*" != "X conftest.file $srcdir/configure"; then
1525
1526 # If neither matched, then we have a broken ls. This can happen
1527 # if, for instance, CONFIG_SHELL is bash and it inherits a
1528 # broken ls alias from the environment. This has actually
1529 # happened. Such a system could not be considered "sane".
1530 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1531 alias in your environment" >&5
1532 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1533 alias in your environment" >&2;}
1534 { (exit 1); exit 1; }; }
1535 fi
1536
1537 test "$2" = conftest.file
1538 )
1539 then
1540 # Ok.
1541 :
1542 else
1543 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1544 Check your system clock" >&5
1545 echo "$as_me: error: newly created file is older than distributed files!
1546 Check your system clock" >&2;}
1547 { (exit 1); exit 1; }; }
1548 fi
1549 echo "$as_me:$LINENO: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1551 test "$program_prefix" != NONE &&
1552 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1553 # Use a double $ so make ignores it.
1554 test "$program_suffix" != NONE &&
1555 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1556 # Double any \ or $. echo might interpret backslashes.
1557 # By default was `s,x,x', remove it if useless.
1558 cat <<\_ACEOF >conftest.sed
1559 s/[\\$]/&&/g;s/;s,x,x,$//
1560 _ACEOF
1561 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1562 rm conftest.sed
1563
1564 # expand $ac_aux_dir to an absolute path
1565 am_aux_dir=`cd $ac_aux_dir && pwd`
1566
1567 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1568 # Use eval to expand $SHELL
1569 if eval "$MISSING --run true"; then
1570 am_missing_run="$MISSING --run "
1571 else
1572 am_missing_run=
1573 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1574 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1575 fi
1576
1577 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1578 # Keeping the `.' argument allows $(mkdir_p) to be used without
1579 # argument. Indeed, we sometimes output rules like
1580 # $(mkdir_p) $(somedir)
1581 # where $(somedir) is conditionally defined.
1582 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1583 # expensive solution, as it forces Make to start a sub-shell.)
1584 mkdir_p='mkdir -p -- .'
1585 else
1586 # On NextStep and OpenStep, the `mkdir' command does not
1587 # recognize any option. It will interpret all options as
1588 # directories to create, and then abort because `.' already
1589 # exists.
1590 for d in ./-p ./--version;
1591 do
1592 test -d $d && rmdir $d
1593 done
1594 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1595 if test -f "$ac_aux_dir/mkinstalldirs"; then
1596 mkdir_p='$(mkinstalldirs)'
1597 else
1598 mkdir_p='$(install_sh) -d'
1599 fi
1600 fi
1601
1602 for ac_prog in gawk mawk nawk awk
1603 do
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_AWK+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 if test -n "$AWK"; then
1612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_AWK="$ac_prog"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 AWK=$ac_cv_prog_AWK
1631 if test -n "$AWK"; then
1632 echo "$as_me:$LINENO: result: $AWK" >&5
1633 echo "${ECHO_T}$AWK" >&6
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 test -n "$AWK" && break
1640 done
1641
1642 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1643 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1644 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1645 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 cat >conftest.make <<\_ACEOF
1649 all:
1650 @echo 'ac_maketemp="$(MAKE)"'
1651 _ACEOF
1652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1653 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1654 if test -n "$ac_maketemp"; then
1655 eval ac_cv_prog_make_${ac_make}_set=yes
1656 else
1657 eval ac_cv_prog_make_${ac_make}_set=no
1658 fi
1659 rm -f conftest.make
1660 fi
1661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1662 echo "$as_me:$LINENO: result: yes" >&5
1663 echo "${ECHO_T}yes" >&6
1664 SET_MAKE=
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 SET_MAKE="MAKE=${MAKE-make}"
1669 fi
1670
1671 rm -rf .tst 2>/dev/null
1672 mkdir .tst 2>/dev/null
1673 if test -d .tst; then
1674 am__leading_dot=.
1675 else
1676 am__leading_dot=_
1677 fi
1678 rmdir .tst 2>/dev/null
1679
1680 # test to see if srcdir already configured
1681 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1682 test -f $srcdir/config.status; then
1683 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1684 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1685 { (exit 1); exit 1; }; }
1686 fi
1687
1688 # test whether we have cygpath
1689 if test -z "$CYGPATH_W"; then
1690 if (cygpath --version) >/dev/null 2>/dev/null; then
1691 CYGPATH_W='cygpath -w'
1692 else
1693 CYGPATH_W=echo
1694 fi
1695 fi
1696
1697
1698 # Define the identity of the package.
1699 PACKAGE='libmudflap'
1700 VERSION='1.0'
1701
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE "$PACKAGE"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define VERSION "$VERSION"
1710 _ACEOF
1711
1712 # Some tools Automake needs.
1713
1714 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1715
1716
1717 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1718
1719
1720 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1721
1722
1723 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1724
1725
1726 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1727
1728
1729 AMTAR=${AMTAR-"${am_missing_run}tar"}
1730
1731 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1732
1733 # Installed binaries are usually stripped using `strip' when the user
1734 # run `make install-strip'. However `strip' might not be the right
1735 # tool to use in cross-compilation environments, therefore Automake
1736 # will honor the `STRIP' environment variable to overrule this program.
1737 if test "$cross_compiling" != no; then
1738 if test -n "$ac_tool_prefix"; then
1739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1740 set dummy ${ac_tool_prefix}strip; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_STRIP+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746 if test -n "$STRIP"; then
1747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1748 else
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1759 fi
1760 done
1761 done
1762
1763 fi
1764 fi
1765 STRIP=$ac_cv_prog_STRIP
1766 if test -n "$STRIP"; then
1767 echo "$as_me:$LINENO: result: $STRIP" >&5
1768 echo "${ECHO_T}$STRIP" >&6
1769 else
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 fi
1773
1774 fi
1775 if test -z "$ac_cv_prog_STRIP"; then
1776 ac_ct_STRIP=$STRIP
1777 # Extract the first word of "strip", so it can be a program name with args.
1778 set dummy strip; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$ac_ct_STRIP"; then
1785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_STRIP="strip"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1797 fi
1798 done
1799 done
1800
1801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1802 fi
1803 fi
1804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1805 if test -n "$ac_ct_STRIP"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1807 echo "${ECHO_T}$ac_ct_STRIP" >&6
1808 else
1809 echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 fi
1812
1813 STRIP=$ac_ct_STRIP
1814 else
1815 STRIP="$ac_cv_prog_STRIP"
1816 fi
1817
1818 fi
1819 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1820
1821 # We need awk for the "check" target. The system "awk" is bad on
1822 # some platforms.
1823
1824
1825
1826
1827 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1828 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1829 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1830 if test "${enable_version_specific_runtime_libs+set}" = set; then
1831 enableval="$enable_version_specific_runtime_libs"
1832 case "$enableval" in
1833 yes) version_specific_libs=yes ;;
1834 no) version_specific_libs=no ;;
1835 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1836 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1837 { (exit 1); exit 1; }; };;
1838 esac
1839 else
1840 version_specific_libs=no
1841 fi;
1842 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1843 echo "${ECHO_T}$version_specific_libs" >&6
1844
1845 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1846 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1847 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1848 if test "${enable_maintainer_mode+set}" = set; then
1849 enableval="$enable_maintainer_mode"
1850 USE_MAINTAINER_MODE=$enableval
1851 else
1852 USE_MAINTAINER_MODE=no
1853 fi;
1854 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1855 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1856
1857
1858 if test $USE_MAINTAINER_MODE = yes; then
1859 MAINTAINER_MODE_TRUE=
1860 MAINTAINER_MODE_FALSE='#'
1861 else
1862 MAINTAINER_MODE_TRUE='#'
1863 MAINTAINER_MODE_FALSE=
1864 fi
1865
1866 MAINT=$MAINTAINER_MODE_TRUE
1867
1868
1869
1870
1871 # Default to --enable-multilib
1872 # Check whether --enable-multilib or --disable-multilib was given.
1873 if test "${enable_multilib+set}" = set; then
1874 enableval="$enable_multilib"
1875 case "$enableval" in
1876 yes) multilib=yes ;;
1877 no) multilib=no ;;
1878 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1879 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1880 { (exit 1); exit 1; }; } ;;
1881 esac
1882 else
1883 multilib=yes
1884 fi;
1885
1886 # We may get other options which we leave undocumented:
1887 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1888 # See config-ml.in if you want the gory details.
1889
1890 if test "$srcdir" = "."; then
1891 if test "$with_target_subdir" != "."; then
1892 multi_basedir="$srcdir/$with_multisrctop../.."
1893 else
1894 multi_basedir="$srcdir/$with_multisrctop.."
1895 fi
1896 else
1897 multi_basedir="$srcdir/.."
1898 fi
1899
1900
1901 ac_config_commands="$ac_config_commands default-1"
1902
1903
1904 target_alias=${target_alias-$target}
1905
1906
1907 ac_config_headers="$ac_config_headers config.h"
1908
1909
1910 ac_ext=c
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1917 # We must force CC to /not/ be precious variables; otherwise
1918 # the wrong, non-multilib-adjusted value will be used in multilibs.
1919 # As a side effect, we have to subst CFLAGS ourselves.
1920
1921
1922
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 if test -n "$ac_tool_prefix"; then
1929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1949 fi
1950 done
1951 done
1952
1953 fi
1954 fi
1955 CC=$ac_cv_prog_CC
1956 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
1963
1964 fi
1965 if test -z "$ac_cv_prog_CC"; then
1966 ac_ct_CC=$CC
1967 # Extract the first word of "gcc", so it can be a program name with args.
1968 set dummy gcc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$ac_ct_CC"; then
1975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_ac_ct_CC="gcc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1987 fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002 CC=$ac_ct_CC
2003 else
2004 CC="$ac_cv_prog_CC"
2005 fi
2006
2007 if test -z "$CC"; then
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}cc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}cc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2029 fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044 fi
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "cc", so it can be a program name with args.
2048 set dummy cc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2085 fi
2086
2087 fi
2088 if test -z "$CC"; then
2089 # Extract the first word of "cc", so it can be a program name with args.
2090 set dummy cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 ac_prog_rejected=no
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2108 ac_prog_rejected=yes
2109 continue
2110 fi
2111 ac_cv_prog_CC="cc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2114 fi
2115 done
2116 done
2117
2118 if test $ac_prog_rejected = yes; then
2119 # We found a bogon in the path, so make sure we never use it.
2120 set dummy $ac_cv_prog_CC
2121 shift
2122 if test $# != 0; then
2123 # We chose a different compiler from the bogus one.
2124 # However, it has the same basename, so the bogon will be chosen
2125 # first if we set CC to just the basename; use the full file name.
2126 shift
2127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2128 fi
2129 fi
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141 fi
2142 if test -z "$CC"; then
2143 if test -n "$ac_tool_prefix"; then
2144 for ac_prog in cl
2145 do
2146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2166 fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 test -n "$CC" && break
2182 done
2183 fi
2184 if test -z "$CC"; then
2185 ac_ct_CC=$CC
2186 for ac_prog in cl
2187 do
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 if test -n "$ac_ct_CC"; then
2196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205 ac_cv_prog_ac_ct_CC="$ac_prog"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2208 fi
2209 done
2210 done
2211
2212 fi
2213 fi
2214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2215 if test -n "$ac_ct_CC"; then
2216 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2217 echo "${ECHO_T}$ac_ct_CC" >&6
2218 else
2219 echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2221 fi
2222
2223 test -n "$ac_ct_CC" && break
2224 done
2225
2226 CC=$ac_ct_CC
2227 fi
2228
2229 fi
2230
2231
2232 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: no acceptable C compiler found in \$PATH
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2237
2238 # Provide some information about the compiler.
2239 echo "$as_me:$LINENO:" \
2240 "checking for C compiler version" >&5
2241 ac_compiler=`set X $ac_compile; echo $2`
2242 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2243 (eval $ac_compiler --version </dev/null >&5) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }
2247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2248 (eval $ac_compiler -v </dev/null >&5) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2253 (eval $ac_compiler -V </dev/null >&5) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2257
2258 cat >conftest.$ac_ext <<_ACEOF
2259 /* confdefs.h. */
2260 _ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2264
2265 int
2266 main ()
2267 {
2268
2269 ;
2270 return 0;
2271 }
2272 _ACEOF
2273 ac_clean_files_save=$ac_clean_files
2274 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2275 # Try to create an executable without -o first, disregard a.out.
2276 # It will help us diagnose broken compilers, and finding out an intuition
2277 # of exeext.
2278 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2279 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2280 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2281 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2282 (eval $ac_link_default) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
2286 # Find the output, starting from the most likely. This scheme is
2287 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2288 # resort.
2289
2290 # Be careful to initialize this variable, since it used to be cached.
2291 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2292 ac_cv_exeext=
2293 # b.out is created by i960 compilers.
2294 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2295 do
2296 test -f "$ac_file" || continue
2297 case $ac_file in
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2299 ;;
2300 conftest.$ac_ext )
2301 # This is the source file.
2302 ;;
2303 [ab].out )
2304 # We found the default executable, but exeext='' is most
2305 # certainly right.
2306 break;;
2307 *.* )
2308 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2309 # FIXME: I believe we export ac_cv_exeext for Libtool,
2310 # but it would be cool to find out if it's true. Does anybody
2311 # maintain Libtool? --akim.
2312 export ac_cv_exeext
2313 break;;
2314 * )
2315 break;;
2316 esac
2317 done
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: C compiler cannot create executables
2325 See \`config.log' for more details." >&2;}
2326 { (exit 77); exit 77; }; }
2327 fi
2328
2329 ac_exeext=$ac_cv_exeext
2330 echo "$as_me:$LINENO: result: $ac_file" >&5
2331 echo "${ECHO_T}$ac_file" >&6
2332
2333 # Check the compiler produces executables we can run. If not, either
2334 # the compiler is broken, or we cross compile.
2335 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2336 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2337 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2338 # If not cross compiling, check that we can run a simple program.
2339 if test "$cross_compiling" != yes; then
2340 if { ac_try='./$ac_file'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 cross_compiling=no
2347 else
2348 if test "$cross_compiling" = maybe; then
2349 cross_compiling=yes
2350 else
2351 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2352 If you meant to cross compile, use \`--host'.
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot run C compiled programs.
2355 If you meant to cross compile, use \`--host'.
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359 fi
2360 fi
2361 echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6
2363
2364 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2365 ac_clean_files=$ac_clean_files_save
2366 # Check the compiler produces executables we can run. If not, either
2367 # the compiler is broken, or we cross compile.
2368 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2369 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2370 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2371 echo "${ECHO_T}$cross_compiling" >&6
2372
2373 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2374 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2376 (eval $ac_link) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; then
2380 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2381 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2382 # work properly (i.e., refer to `conftest.exe'), while it won't with
2383 # `rm'.
2384 for ac_file in conftest.exe conftest conftest.*; do
2385 test -f "$ac_file" || continue
2386 case $ac_file in
2387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2388 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 export ac_cv_exeext
2390 break;;
2391 * ) break;;
2392 esac
2393 done
2394 else
2395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2398 See \`config.log' for more details." >&2;}
2399 { (exit 1); exit 1; }; }
2400 fi
2401
2402 rm -f conftest$ac_cv_exeext
2403 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2404 echo "${ECHO_T}$ac_cv_exeext" >&6
2405
2406 rm -f conftest.$ac_ext
2407 EXEEXT=$ac_cv_exeext
2408 ac_exeext=$EXEEXT
2409 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2410 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2411 if test "${ac_cv_objext+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2420
2421 int
2422 main ()
2423 {
2424
2425 ;
2426 return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.o conftest.obj
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2436 case $ac_file in
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2439 break;;
2440 esac
2441 done
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2447 See \`config.log' for more details." >&5
2448 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2449 See \`config.log' for more details." >&2;}
2450 { (exit 1); exit 1; }; }
2451 fi
2452
2453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2454 fi
2455 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2456 echo "${ECHO_T}$ac_cv_objext" >&6
2457 OBJEXT=$ac_cv_objext
2458 ac_objext=$OBJEXT
2459 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2460 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2461 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2470
2471 int
2472 main ()
2473 {
2474 #ifndef __GNUC__
2475 choke me
2476 #endif
2477
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag"
2492 || test ! -s conftest.err'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 ac_compiler_gnu=yes
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 ac_compiler_gnu=no
2510 fi
2511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2513
2514 fi
2515 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 CFLAGS="-g"
2521 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2522 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2523 if test "${ac_cv_prog_cc_g+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2532
2533 int
2534 main ()
2535 {
2536
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag"
2551 || test ! -s conftest.err'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 (eval $ac_try) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 ac_cv_prog_cc_g=yes
2564 else
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 ac_cv_prog_cc_g=no
2569 fi
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 fi
2572 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2573 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2574 if test "$ac_test_CFLAGS" = set; then
2575 CFLAGS=$ac_save_CFLAGS
2576 elif test $ac_cv_prog_cc_g = yes; then
2577 if test "$GCC" = yes; then
2578 CFLAGS="-g -O2"
2579 else
2580 CFLAGS="-g"
2581 fi
2582 else
2583 if test "$GCC" = yes; then
2584 CFLAGS="-O2"
2585 else
2586 CFLAGS=
2587 fi
2588 fi
2589 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2590 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2591 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 ac_cv_prog_cc_stdc=no
2595 ac_save_CC=$CC
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602 #include <stdarg.h>
2603 #include <stdio.h>
2604 #include <sys/types.h>
2605 #include <sys/stat.h>
2606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2607 struct buf { int x; };
2608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2609 static char *e (p, i)
2610 char **p;
2611 int i;
2612 {
2613 return p[i];
2614 }
2615 static char *f (char * (*g) (char **, int), char **p, ...)
2616 {
2617 char *s;
2618 va_list v;
2619 va_start (v,p);
2620 s = g (p, va_arg (v,int));
2621 va_end (v);
2622 return s;
2623 }
2624
2625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2626 function prototypes and stuff, but not '\xHH' hex character constants.
2627 These don't provoke an error unfortunately, instead are silently treated
2628 as 'x'. The following induces an error, until -std1 is added to get
2629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2630 array size at least. It's necessary to write '\x00'==0 to get something
2631 that's true only with -std1. */
2632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2633
2634 int test (int i, double x);
2635 struct s1 {int (*f) (int a);};
2636 struct s2 {int (*f) (double a);};
2637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2638 int argc;
2639 char **argv;
2640 int
2641 main ()
2642 {
2643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2644 ;
2645 return 0;
2646 }
2647 _ACEOF
2648 # Don't try gcc -ansi; that turns off useful extensions and
2649 # breaks some systems' header files.
2650 # AIX -qlanglvl=ansi
2651 # Ultrix and OSF/1 -std1
2652 # HP-UX 10.20 and later -Ae
2653 # HP-UX older versions -Aa -D_HPUX_SOURCE
2654 # SVR4 -Xc -D__EXTENSIONS__
2655 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2656 do
2657 CC="$ac_save_CC $ac_arg"
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2661 ac_status=$?
2662 grep -v '^ *+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 ac_cv_prog_cc_stdc=$ac_arg
2681 break
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 fi
2687 rm -f conftest.err conftest.$ac_objext
2688 done
2689 rm -f conftest.$ac_ext conftest.$ac_objext
2690 CC=$ac_save_CC
2691
2692 fi
2693
2694 case "x$ac_cv_prog_cc_stdc" in
2695 x|xno)
2696 echo "$as_me:$LINENO: result: none needed" >&5
2697 echo "${ECHO_T}none needed" >&6 ;;
2698 *)
2699 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2700 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2701 CC="$CC $ac_cv_prog_cc_stdc" ;;
2702 esac
2703
2704 # Some people use a C++ compiler to compile C. Since we use `exit',
2705 # in C++ we need to declare it. In case someone uses the same compiler
2706 # for both compiling C and C++ we need to have the C++ compiler decide
2707 # the declaration of exit, since it's the most demanding environment.
2708 cat >conftest.$ac_ext <<_ACEOF
2709 #ifndef __cplusplus
2710 choke me
2711 #endif
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag"
2723 || test ! -s conftest.err'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 for ac_declaration in \
2736 '' \
2737 'extern "C" void std::exit (int) throw (); using std::exit;' \
2738 'extern "C" void std::exit (int); using std::exit;' \
2739 'extern "C" void exit (int) throw ();' \
2740 'extern "C" void exit (int);' \
2741 'void exit (int);'
2742 do
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2749 $ac_declaration
2750 #include <stdlib.h>
2751 int
2752 main ()
2753 {
2754 exit (42);
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 :
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 continue
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 $ac_declaration
2796 int
2797 main ()
2798 {
2799 exit (42);
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>conftest.er1
2807 ac_status=$?
2808 grep -v '^ *+' conftest.er1 >conftest.err
2809 rm -f conftest.er1
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -z "$ac_c_werror_flag"
2814 || test ! -s conftest.err'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 break
2827 else
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 done
2834 rm -f conftest*
2835 if test -n "$ac_declaration"; then
2836 echo '#ifdef __cplusplus' >>confdefs.h
2837 echo $ac_declaration >>confdefs.h
2838 echo '#endif' >>confdefs.h
2839 fi
2840
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 DEPDIR="${am__leading_dot}deps"
2853
2854 ac_config_commands="$ac_config_commands depfiles"
2855
2856
2857 am_make=${MAKE-make}
2858 cat > confinc << 'END'
2859 am__doit:
2860 @echo done
2861 .PHONY: am__doit
2862 END
2863 # If we don't find an include directive, just comment out the code.
2864 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2865 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2866 am__include="#"
2867 am__quote=
2868 _am_result=none
2869 # First try GNU make style include.
2870 echo "include confinc" > confmf
2871 # We grep out `Entering directory' and `Leaving directory'
2872 # messages which can occur if `w' ends up in MAKEFLAGS.
2873 # In particular we don't look at `^make:' because GNU make might
2874 # be invoked under some other name (usually "gmake"), in which
2875 # case it prints its new name instead of `make'.
2876 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2877 am__include=include
2878 am__quote=
2879 _am_result=GNU
2880 fi
2881 # Now try BSD make style include.
2882 if test "$am__include" = "#"; then
2883 echo '.include "confinc"' > confmf
2884 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2885 am__include=.include
2886 am__quote="\""
2887 _am_result=BSD
2888 fi
2889 fi
2890
2891
2892 echo "$as_me:$LINENO: result: $_am_result" >&5
2893 echo "${ECHO_T}$_am_result" >&6
2894 rm -f confinc confmf
2895
2896 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2897 if test "${enable_dependency_tracking+set}" = set; then
2898 enableval="$enable_dependency_tracking"
2899
2900 fi;
2901 if test "x$enable_dependency_tracking" != xno; then
2902 am_depcomp="$ac_aux_dir/depcomp"
2903 AMDEPBACKSLASH='\'
2904 fi
2905
2906
2907 if test "x$enable_dependency_tracking" != xno; then
2908 AMDEP_TRUE=
2909 AMDEP_FALSE='#'
2910 else
2911 AMDEP_TRUE='#'
2912 AMDEP_FALSE=
2913 fi
2914
2915
2916
2917
2918 depcc="$CC" am_compiler_list=
2919
2920 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2921 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2922 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2926 # We make a subdir and do the tests there. Otherwise we can end up
2927 # making bogus files that we don't know about and never remove. For
2928 # instance it was reported that on HP-UX the gcc test will end up
2929 # making a dummy file named `D' -- because `-MD' means `put the output
2930 # in D'.
2931 mkdir conftest.dir
2932 # Copy depcomp to subdir because otherwise we won't find it if we're
2933 # using a relative directory.
2934 cp "$am_depcomp" conftest.dir
2935 cd conftest.dir
2936 # We will build objects and dependencies in a subdirectory because
2937 # it helps to detect inapplicable dependency modes. For instance
2938 # both Tru64's cc and ICC support -MD to output dependencies as a
2939 # side effect of compilation, but ICC will put the dependencies in
2940 # the current directory while Tru64 will put them in the object
2941 # directory.
2942 mkdir sub
2943
2944 am_cv_CC_dependencies_compiler_type=none
2945 if test "$am_compiler_list" = ""; then
2946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2947 fi
2948 for depmode in $am_compiler_list; do
2949 # Setup a source with many dependencies, because some compilers
2950 # like to wrap large dependency lists on column 80 (with \), and
2951 # we should not choose a depcomp mode which is confused by this.
2952 #
2953 # We need to recreate these files for each test, as the compiler may
2954 # overwrite some of them when testing with obscure command lines.
2955 # This happens at least with the AIX C compiler.
2956 : > sub/conftest.c
2957 for i in 1 2 3 4 5 6; do
2958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2959 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2960 # Solaris 8's {/usr,}/bin/sh.
2961 touch sub/conftst$i.h
2962 done
2963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2964
2965 case $depmode in
2966 nosideeffect)
2967 # after this tag, mechanisms are not by side-effect, so they'll
2968 # only be used when explicitly requested
2969 if test "x$enable_dependency_tracking" = xyes; then
2970 continue
2971 else
2972 break
2973 fi
2974 ;;
2975 none) break ;;
2976 esac
2977 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2978 # mode. It turns out that the SunPro C++ compiler does not properly
2979 # handle `-M -o', and we need to detect this.
2980 if depmode=$depmode \
2981 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2983 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2984 >/dev/null 2>conftest.err &&
2985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2986 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2988 # icc doesn't choke on unknown options, it will just issue warnings
2989 # or remarks (even with -Werror). So we grep stderr for any message
2990 # that says an option was ignored or not supported.
2991 # When given -MP, icc 7.0 and 7.1 complain thusly:
2992 # icc: Command line warning: ignoring option '-M'; no argument required
2993 # The diagnosis changed in icc 8.0:
2994 # icc: Command line remark: option '-MP' not supported
2995 if (grep 'ignoring option' conftest.err ||
2996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2997 am_cv_CC_dependencies_compiler_type=$depmode
2998 break
2999 fi
3000 fi
3001 done
3002
3003 cd ..
3004 rm -rf conftest.dir
3005 else
3006 am_cv_CC_dependencies_compiler_type=none
3007 fi
3008
3009 fi
3010 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3011 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3012 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3013
3014
3015
3016 if
3017 test "x$enable_dependency_tracking" != xno \
3018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3019 am__fastdepCC_TRUE=
3020 am__fastdepCC_FALSE='#'
3021 else
3022 am__fastdepCC_TRUE='#'
3023 am__fastdepCC_FALSE=
3024 fi
3025
3026
3027
3028
3029
3030
3031 if test "x$GCC" != "xyes"; then
3032 { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3033 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3034 { (exit 1); exit 1; }; }
3035 fi
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3042 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3043 # On Suns, sometimes $CPP names a directory.
3044 if test -n "$CPP" && test -d "$CPP"; then
3045 CPP=
3046 fi
3047 if test -z "$CPP"; then
3048 if test "${ac_cv_prog_CPP+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 # Double quotes because CPP needs to be expanded
3052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3053 do
3054 ac_preproc_ok=false
3055 for ac_c_preproc_warn_flag in '' yes
3056 do
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069 #ifdef __STDC__
3070 # include <limits.h>
3071 #else
3072 # include <assert.h>
3073 #endif
3074 Syntax error
3075 _ACEOF
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087 else
3088 ac_cpp_err=
3089 fi
3090 else
3091 ac_cpp_err=yes
3092 fi
3093 if test -z "$ac_cpp_err"; then
3094 :
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 # Broken: fails on valid input.
3100 continue
3101 fi
3102 rm -f conftest.err conftest.$ac_ext
3103
3104 # OK, works on sane cases. Now check whether non-existent headers
3105 # can be detected and how.
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3113 _ACEOF
3114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3125 else
3126 ac_cpp_err=
3127 fi
3128 else
3129 ac_cpp_err=yes
3130 fi
3131 if test -z "$ac_cpp_err"; then
3132 # Broken: success on invalid input.
3133 continue
3134 else
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143
3144 done
3145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146 rm -f conftest.err conftest.$ac_ext
3147 if $ac_preproc_ok; then
3148 break
3149 fi
3150
3151 done
3152 ac_cv_prog_CPP=$CPP
3153
3154 fi
3155 CPP=$ac_cv_prog_CPP
3156 else
3157 ac_cv_prog_CPP=$CPP
3158 fi
3159 echo "$as_me:$LINENO: result: $CPP" >&5
3160 echo "${ECHO_T}$CPP" >&6
3161 ac_preproc_ok=false
3162 for ac_c_preproc_warn_flag in '' yes
3163 do
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3176 #ifdef __STDC__
3177 # include <limits.h>
3178 #else
3179 # include <assert.h>
3180 #endif
3181 Syntax error
3182 _ACEOF
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194 else
3195 ac_cpp_err=
3196 fi
3197 else
3198 ac_cpp_err=yes
3199 fi
3200 if test -z "$ac_cpp_err"; then
3201 :
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 # Broken: fails on valid input.
3207 continue
3208 fi
3209 rm -f conftest.err conftest.$ac_ext
3210
3211 # OK, works on sane cases. Now check whether non-existent headers
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <ac_nonexistent.h>
3220 _ACEOF
3221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3232 else
3233 ac_cpp_err=
3234 fi
3235 else
3236 ac_cpp_err=yes
3237 fi
3238 if test -z "$ac_cpp_err"; then
3239 # Broken: success on invalid input.
3240 continue
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 # Passes both tests.
3246 ac_preproc_ok=:
3247 break
3248 fi
3249 rm -f conftest.err conftest.$ac_ext
3250
3251 done
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.$ac_ext
3254 if $ac_preproc_ok; then
3255 :
3256 else
3257 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3260 See \`config.log' for more details." >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
3270
3271 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3272 # symbol interposition. We disable shared libraries for these.
3273 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3274 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3275
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282
3283 #define _GNU_SOURCE
3284 #include <dlfcn.h>
3285
3286 int
3287 main ()
3288 {
3289 void *foo = dlsym (RTLD_NEXT, "exit");
3290 ;
3291 return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3296 (eval $ac_compile) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag"
3304 || test ! -s conftest.err'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 echo "$as_me:$LINENO: result: yes" >&5
3317 echo "${ECHO_T}yes" >&6
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324 enable_shared=no
3325 fi
3326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3327
3328
3329 echo "$as_me:$LINENO: checking for egrep" >&5
3330 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3331 if test "${ac_cv_prog_egrep+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3335 then ac_cv_prog_egrep='grep -E'
3336 else ac_cv_prog_egrep='egrep'
3337 fi
3338 fi
3339 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3340 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3341 EGREP=$ac_cv_prog_egrep
3342
3343
3344 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3345 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3346 if test "${ac_cv_header_stdc+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <stdlib.h>
3356 #include <stdarg.h>
3357 #include <string.h>
3358 #include <float.h>
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_c_werror_flag"
3378 || test ! -s conftest.err'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_header_stdc=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 ac_cv_header_stdc=no
3396 fi
3397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398
3399 if test $ac_cv_header_stdc = yes; then
3400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3401 cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <string.h>
3408
3409 _ACEOF
3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 $EGREP "memchr" >/dev/null 2>&1; then
3412 :
3413 else
3414 ac_cv_header_stdc=no
3415 fi
3416 rm -f conftest*
3417
3418 fi
3419
3420 if test $ac_cv_header_stdc = yes; then
3421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <stdlib.h>
3429
3430 _ACEOF
3431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3432 $EGREP "free" >/dev/null 2>&1; then
3433 :
3434 else
3435 ac_cv_header_stdc=no
3436 fi
3437 rm -f conftest*
3438
3439 fi
3440
3441 if test $ac_cv_header_stdc = yes; then
3442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3443 if test "$cross_compiling" = yes; then
3444 :
3445 else
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <ctype.h>
3453 #if ((' ' & 0x0FF) == 0x020)
3454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3456 #else
3457 # define ISLOWER(c) \
3458 (('a' <= (c) && (c) <= 'i') \
3459 || ('j' <= (c) && (c) <= 'r') \
3460 || ('s' <= (c) && (c) <= 'z'))
3461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3462 #endif
3463
3464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3465 int
3466 main ()
3467 {
3468 int i;
3469 for (i = 0; i < 256; i++)
3470 if (XOR (islower (i), ISLOWER (i))
3471 || toupper (i) != TOUPPER (i))
3472 exit(2);
3473 exit (0);
3474 }
3475 _ACEOF
3476 rm -f conftest$ac_exeext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3478 (eval $ac_link) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 :
3488 else
3489 echo "$as_me: program exited with status $ac_status" >&5
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 ( exit $ac_status )
3494 ac_cv_header_stdc=no
3495 fi
3496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 fi
3499 fi
3500 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3501 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3502 if test $ac_cv_header_stdc = yes; then
3503
3504 cat >>confdefs.h <<\_ACEOF
3505 #define STDC_HEADERS 1
3506 _ACEOF
3507
3508 fi
3509
3510 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3521 inttypes.h stdint.h unistd.h
3522 do
3523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3524 echo "$as_me:$LINENO: checking for $ac_header" >&5
3525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 $ac_includes_default
3536
3537 #include <$ac_header>
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 eval "$as_ac_Header=yes"
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 eval "$as_ac_Header=no"
3567 fi
3568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3573 cat >>confdefs.h <<_ACEOF
3574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3575 _ACEOF
3576
3577 fi
3578
3579 done
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3602 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h sys/socket.h ctype.h mntent.h \
3603 sys/socket.h netinet/in.h arpa/inet.h dlfcn.h
3604 do
3605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607 echo "$as_me:$LINENO: checking for $ac_header" >&5
3608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 fi
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614 else
3615 # Is the header compilable?
3616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 $ac_includes_default
3625 #include <$ac_header>
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_header_compiler=yes
3650 else
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_header_compiler=no
3655 fi
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3658 echo "${ECHO_T}$ac_header_compiler" >&6
3659
3660 # Is the header present?
3661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <$ac_header>
3670 _ACEOF
3671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
3681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3682 else
3683 ac_cpp_err=
3684 fi
3685 else
3686 ac_cpp_err=yes
3687 fi
3688 if test -z "$ac_cpp_err"; then
3689 ac_header_preproc=yes
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 ac_header_preproc=no
3695 fi
3696 rm -f conftest.err conftest.$ac_ext
3697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3698 echo "${ECHO_T}$ac_header_preproc" >&6
3699
3700 # So? What about this header?
3701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3702 yes:no: )
3703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3707 ac_header_preproc=yes
3708 ;;
3709 no:yes:* )
3710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3722 (
3723 cat <<\_ASBOX
3724 ## ------------------------------------- ##
3725 ## Report this to the libmudflap lists. ##
3726 ## ------------------------------------- ##
3727 _ASBOX
3728 ) |
3729 sed "s/^/$as_me: WARNING: /" >&2
3730 ;;
3731 esac
3732 echo "$as_me:$LINENO: checking for $ac_header" >&5
3733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 eval "$as_ac_Header=\$ac_header_preproc"
3738 fi
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3741
3742 fi
3743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3744 cat >>confdefs.h <<_ACEOF
3745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3746 _ACEOF
3747
3748 fi
3749
3750 done
3751
3752
3753
3754
3755
3756
3757 for ac_func in backtrace backtrace_symbols gettimeofday signal
3758 do
3759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3760 echo "$as_me:$LINENO: checking for $ac_func" >&5
3761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3762 if eval "test \"\${$as_ac_var+set}\" = set"; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3773 #define $ac_func innocuous_$ac_func
3774
3775 /* System header to define __stub macros and hopefully few prototypes,
3776 which can conflict with char $ac_func (); below.
3777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3778 <limits.h> exists even on freestanding compilers. */
3779
3780 #ifdef __STDC__
3781 # include <limits.h>
3782 #else
3783 # include <assert.h>
3784 #endif
3785
3786 #undef $ac_func
3787
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 #ifdef __cplusplus
3790 extern "C"
3791 {
3792 #endif
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3795 char $ac_func ();
3796 /* The GNU C library defines this for functions which it implements
3797 to always fail with ENOSYS. Some functions are actually named
3798 something starting with __ and the normal name is an alias. */
3799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3800 choke me
3801 #else
3802 char (*f) () = $ac_func;
3803 #endif
3804 #ifdef __cplusplus
3805 }
3806 #endif
3807
3808 int
3809 main ()
3810 {
3811 return f != $ac_func;
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest.$ac_objext conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818 (eval $ac_link) 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } &&
3825 { ac_try='test -z "$ac_c_werror_flag"
3826 || test ! -s conftest.err'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; } &&
3832 { ac_try='test -s conftest$ac_exeext'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3838 eval "$as_ac_var=yes"
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 eval "$as_ac_var=no"
3844 fi
3845 rm -f conftest.err conftest.$ac_objext \
3846 conftest$ac_exeext conftest.$ac_ext
3847 fi
3848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3850 if test `eval echo '${'$as_ac_var'}'` = yes; then
3851 cat >>confdefs.h <<_ACEOF
3852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3853 _ACEOF
3854
3855 fi
3856 done
3857
3858
3859
3860
3861
3862 for ac_func in fopen64 fseeko64 ftello64 stat64
3863 do
3864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3865 echo "$as_me:$LINENO: checking for $ac_func" >&5
3866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3867 if eval "test \"\${$as_ac_var+set}\" = set"; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3878 #define $ac_func innocuous_$ac_func
3879
3880 /* System header to define __stub macros and hopefully few prototypes,
3881 which can conflict with char $ac_func (); below.
3882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 <limits.h> exists even on freestanding compilers. */
3884
3885 #ifdef __STDC__
3886 # include <limits.h>
3887 #else
3888 # include <assert.h>
3889 #endif
3890
3891 #undef $ac_func
3892
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 #ifdef __cplusplus
3895 extern "C"
3896 {
3897 #endif
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3900 char $ac_func ();
3901 /* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3905 choke me
3906 #else
3907 char (*f) () = $ac_func;
3908 #endif
3909 #ifdef __cplusplus
3910 }
3911 #endif
3912
3913 int
3914 main ()
3915 {
3916 return f != $ac_func;
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext conftest$ac_exeext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 eval "$as_ac_var=yes"
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 eval "$as_ac_var=no"
3949 fi
3950 rm -f conftest.err conftest.$ac_objext \
3951 conftest$ac_exeext conftest.$ac_ext
3952 fi
3953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3955 if test `eval echo '${'$as_ac_var'}'` = yes; then
3956 cat >>confdefs.h <<_ACEOF
3957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3958 _ACEOF
3959
3960 fi
3961 done
3962
3963
3964
3965
3966
3967
3968 for ac_func in strnlen memrchr strncpy memmem sethostname
3969 do
3970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3971 echo "$as_me:$LINENO: checking for $ac_func" >&5
3972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3973 if eval "test \"\${$as_ac_var+set}\" = set"; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3984 #define $ac_func innocuous_$ac_func
3985
3986 /* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func (); below.
3988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 <limits.h> exists even on freestanding compilers. */
3990
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996
3997 #undef $ac_func
3998
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 #ifdef __cplusplus
4001 extern "C"
4002 {
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006 char $ac_func ();
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 choke me
4012 #else
4013 char (*f) () = $ac_func;
4014 #endif
4015 #ifdef __cplusplus
4016 }
4017 #endif
4018
4019 int
4020 main ()
4021 {
4022 return f != $ac_func;
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.$ac_objext conftest$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029 (eval $ac_link) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 eval "$as_ac_var=yes"
4050 else
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 eval "$as_ac_var=no"
4055 fi
4056 rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4058 fi
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4061 if test `eval echo '${'$as_ac_var'}'` = yes; then
4062 cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064 _ACEOF
4065
4066 fi
4067 done
4068
4069
4070
4071
4072 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4073 do
4074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4075 echo "$as_me:$LINENO: checking for $ac_func" >&5
4076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4077 if eval "test \"\${$as_ac_var+set}\" = set"; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4088 #define $ac_func innocuous_$ac_func
4089
4090 /* System header to define __stub macros and hopefully few prototypes,
4091 which can conflict with char $ac_func (); below.
4092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093 <limits.h> exists even on freestanding compilers. */
4094
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100
4101 #undef $ac_func
4102
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 #ifdef __cplusplus
4105 extern "C"
4106 {
4107 #endif
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4110 char $ac_func ();
4111 /* The GNU C library defines this for functions which it implements
4112 to always fail with ENOSYS. Some functions are actually named
4113 something starting with __ and the normal name is an alias. */
4114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4115 choke me
4116 #else
4117 char (*f) () = $ac_func;
4118 #endif
4119 #ifdef __cplusplus
4120 }
4121 #endif
4122
4123 int
4124 main ()
4125 {
4126 return f != $ac_func;
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 rm -f conftest.$ac_objext conftest$ac_exeext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4133 (eval $ac_link) 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
4140 { ac_try='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest$ac_exeext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 eval "$as_ac_var=yes"
4154 else
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 eval "$as_ac_var=no"
4159 fi
4160 rm -f conftest.err conftest.$ac_objext \
4161 conftest$ac_exeext conftest.$ac_ext
4162 fi
4163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4165 if test `eval echo '${'$as_ac_var'}'` = yes; then
4166 cat >>confdefs.h <<_ACEOF
4167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4168 _ACEOF
4169
4170 fi
4171 done
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4182 do
4183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4184 echo "$as_me:$LINENO: checking for $ac_func" >&5
4185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4186 if eval "test \"\${$as_ac_var+set}\" = set"; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h. */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4197 #define $ac_func innocuous_$ac_func
4198
4199 /* System header to define __stub macros and hopefully few prototypes,
4200 which can conflict with char $ac_func (); below.
4201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4202 <limits.h> exists even on freestanding compilers. */
4203
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209
4210 #undef $ac_func
4211
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 #ifdef __cplusplus
4214 extern "C"
4215 {
4216 #endif
4217 /* We use char because int might match the return type of a gcc2
4218 builtin and then its argument prototype would still apply. */
4219 char $ac_func ();
4220 /* The GNU C library defines this for functions which it implements
4221 to always fail with ENOSYS. Some functions are actually named
4222 something starting with __ and the normal name is an alias. */
4223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4224 choke me
4225 #else
4226 char (*f) () = $ac_func;
4227 #endif
4228 #ifdef __cplusplus
4229 }
4230 #endif
4231
4232 int
4233 main ()
4234 {
4235 return f != $ac_func;
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 eval "$as_ac_var=yes"
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 eval "$as_ac_var=no"
4268 fi
4269 rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271 fi
4272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4274 if test `eval echo '${'$as_ac_var'}'` = yes; then
4275 cat >>confdefs.h <<_ACEOF
4276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4277 _ACEOF
4278
4279 fi
4280 done
4281
4282
4283
4284
4285
4286
4287 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4288 do
4289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_func" >&5
4291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_var+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4303 #define $ac_func innocuous_$ac_func
4304
4305 /* System header to define __stub macros and hopefully few prototypes,
4306 which can conflict with char $ac_func (); below.
4307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308 <limits.h> exists even on freestanding compilers. */
4309
4310 #ifdef __STDC__
4311 # include <limits.h>
4312 #else
4313 # include <assert.h>
4314 #endif
4315
4316 #undef $ac_func
4317
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 #ifdef __cplusplus
4320 extern "C"
4321 {
4322 #endif
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4325 char $ac_func ();
4326 /* The GNU C library defines this for functions which it implements
4327 to always fail with ENOSYS. Some functions are actually named
4328 something starting with __ and the normal name is an alias. */
4329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4330 choke me
4331 #else
4332 char (*f) () = $ac_func;
4333 #endif
4334 #ifdef __cplusplus
4335 }
4336 #endif
4337
4338 int
4339 main ()
4340 {
4341 return f != $ac_func;
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag"
4356 || test ! -s conftest.err'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest$ac_exeext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_var=yes"
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 eval "$as_ac_var=no"
4374 fi
4375 rm -f conftest.err conftest.$ac_objext \
4376 conftest$ac_exeext conftest.$ac_ext
4377 fi
4378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4380 if test `eval echo '${'$as_ac_var'}'` = yes; then
4381 cat >>confdefs.h <<_ACEOF
4382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4383 _ACEOF
4384
4385 fi
4386 done
4387
4388
4389
4390
4391
4392
4393 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4394 do
4395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4396 echo "$as_me:$LINENO: checking for $ac_func" >&5
4397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4398 if eval "test \"\${$as_ac_var+set}\" = set"; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4409 #define $ac_func innocuous_$ac_func
4410
4411 /* System header to define __stub macros and hopefully few prototypes,
4412 which can conflict with char $ac_func (); below.
4413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 <limits.h> exists even on freestanding compilers. */
4415
4416 #ifdef __STDC__
4417 # include <limits.h>
4418 #else
4419 # include <assert.h>
4420 #endif
4421
4422 #undef $ac_func
4423
4424 /* Override any gcc2 internal prototype to avoid an error. */
4425 #ifdef __cplusplus
4426 extern "C"
4427 {
4428 #endif
4429 /* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4431 char $ac_func ();
4432 /* The GNU C library defines this for functions which it implements
4433 to always fail with ENOSYS. Some functions are actually named
4434 something starting with __ and the normal name is an alias. */
4435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436 choke me
4437 #else
4438 char (*f) () = $ac_func;
4439 #endif
4440 #ifdef __cplusplus
4441 }
4442 #endif
4443
4444 int
4445 main ()
4446 {
4447 return f != $ac_func;
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext conftest$ac_exeext
4453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454 (eval $ac_link) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag"
4462 || test ! -s conftest.err'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 eval "$as_ac_var=yes"
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 eval "$as_ac_var=no"
4480 fi
4481 rm -f conftest.err conftest.$ac_objext \
4482 conftest$ac_exeext conftest.$ac_ext
4483 fi
4484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4486 if test `eval echo '${'$as_ac_var'}'` = yes; then
4487 cat >>confdefs.h <<_ACEOF
4488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4489 _ACEOF
4490
4491 fi
4492 done
4493
4494
4495
4496
4497 for ac_func in getprotoent getprotobyname getprotobynumber
4498 do
4499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4500 echo "$as_me:$LINENO: checking for $ac_func" >&5
4501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4502 if eval "test \"\${$as_ac_var+set}\" = set"; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4513 #define $ac_func innocuous_$ac_func
4514
4515 /* System header to define __stub macros and hopefully few prototypes,
4516 which can conflict with char $ac_func (); below.
4517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4518 <limits.h> exists even on freestanding compilers. */
4519
4520 #ifdef __STDC__
4521 # include <limits.h>
4522 #else
4523 # include <assert.h>
4524 #endif
4525
4526 #undef $ac_func
4527
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 #ifdef __cplusplus
4530 extern "C"
4531 {
4532 #endif
4533 /* We use char because int might match the return type of a gcc2
4534 builtin and then its argument prototype would still apply. */
4535 char $ac_func ();
4536 /* The GNU C library defines this for functions which it implements
4537 to always fail with ENOSYS. Some functions are actually named
4538 something starting with __ and the normal name is an alias. */
4539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4540 choke me
4541 #else
4542 char (*f) () = $ac_func;
4543 #endif
4544 #ifdef __cplusplus
4545 }
4546 #endif
4547
4548 int
4549 main ()
4550 {
4551 return f != $ac_func;
4552 ;
4553 return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext conftest$ac_exeext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558 (eval $ac_link) 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 eval "$as_ac_var=yes"
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 eval "$as_ac_var=no"
4584 fi
4585 rm -f conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4587 fi
4588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4590 if test `eval echo '${'$as_ac_var'}'` = yes; then
4591 cat >>confdefs.h <<_ACEOF
4592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4593 _ACEOF
4594
4595 fi
4596 done
4597
4598
4599
4600
4601 for ac_func in getmntent setmntent addmntent
4602 do
4603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4604 echo "$as_me:$LINENO: checking for $ac_func" >&5
4605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4606 if eval "test \"\${$as_ac_var+set}\" = set"; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h. */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4617 #define $ac_func innocuous_$ac_func
4618
4619 /* System header to define __stub macros and hopefully few prototypes,
4620 which can conflict with char $ac_func (); below.
4621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4622 <limits.h> exists even on freestanding compilers. */
4623
4624 #ifdef __STDC__
4625 # include <limits.h>
4626 #else
4627 # include <assert.h>
4628 #endif
4629
4630 #undef $ac_func
4631
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 #ifdef __cplusplus
4634 extern "C"
4635 {
4636 #endif
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639 char $ac_func ();
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4644 choke me
4645 #else
4646 char (*f) () = $ac_func;
4647 #endif
4648 #ifdef __cplusplus
4649 }
4650 #endif
4651
4652 int
4653 main ()
4654 {
4655 return f != $ac_func;
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest.$ac_objext conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662 (eval $ac_link) 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 { ac_try='test -z "$ac_c_werror_flag"
4670 || test ! -s conftest.err'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 eval "$as_ac_var=yes"
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 eval "$as_ac_var=no"
4688 fi
4689 rm -f conftest.err conftest.$ac_objext \
4690 conftest$ac_exeext conftest.$ac_ext
4691 fi
4692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4694 if test `eval echo '${'$as_ac_var'}'` = yes; then
4695 cat >>confdefs.h <<_ACEOF
4696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4697 _ACEOF
4698
4699 fi
4700 done
4701
4702
4703 for ac_func in inet_ntoa
4704 do
4705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4706 echo "$as_me:$LINENO: checking for $ac_func" >&5
4707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4708 if eval "test \"\${$as_ac_var+set}\" = set"; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4719 #define $ac_func innocuous_$ac_func
4720
4721 /* System header to define __stub macros and hopefully few prototypes,
4722 which can conflict with char $ac_func (); below.
4723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 <limits.h> exists even on freestanding compilers. */
4725
4726 #ifdef __STDC__
4727 # include <limits.h>
4728 #else
4729 # include <assert.h>
4730 #endif
4731
4732 #undef $ac_func
4733
4734 /* Override any gcc2 internal prototype to avoid an error. */
4735 #ifdef __cplusplus
4736 extern "C"
4737 {
4738 #endif
4739 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */
4741 char $ac_func ();
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4746 choke me
4747 #else
4748 char (*f) () = $ac_func;
4749 #endif
4750 #ifdef __cplusplus
4751 }
4752 #endif
4753
4754 int
4755 main ()
4756 {
4757 return f != $ac_func;
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext conftest$ac_exeext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4764 (eval $ac_link) 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -z "$ac_c_werror_flag"
4772 || test ! -s conftest.err'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try='test -s conftest$ac_exeext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 eval "$as_ac_var=yes"
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 eval "$as_ac_var=no"
4790 fi
4791 rm -f conftest.err conftest.$ac_objext \
4792 conftest$ac_exeext conftest.$ac_ext
4793 fi
4794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4796 if test `eval echo '${'$as_ac_var'}'` = yes; then
4797 cat >>confdefs.h <<_ACEOF
4798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4799 _ACEOF
4800
4801 fi
4802 done
4803
4804
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <sys/types.h>
4812 #include <sys/ipc.h>
4813 #include <sys/sem.h>
4814 int
4815 main ()
4816 {
4817 union semun foo;
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 mf_have_semun=1
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 mf_have_semun=0
4850 fi
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 if test $mf_have_semun = 1
4853 then
4854
4855 cat >>confdefs.h <<\_ACEOF
4856 #define HAVE_UNION_SEMUN 1
4857 _ACEOF
4858
4859 fi
4860
4861
4862 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
4863 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #define _POSIX_PII_SOCKET
4871 #include <sys/types.h>
4872 #include <sys/socket.h>
4873 int
4874 main ()
4875 {
4876 socklen_t x = 5;
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903
4904 cat >>confdefs.h <<\_ACEOF
4905 #define HAVE_SOCKLEN_T 1
4906 _ACEOF
4907
4908 echo "$as_me:$LINENO: result: yes" >&5
4909 echo "${ECHO_T}yes" >&6
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6
4916 fi
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918
4919
4920 # Check whether --enable-shared or --disable-shared was given.
4921 if test "${enable_shared+set}" = set; then
4922 enableval="$enable_shared"
4923 p=${PACKAGE-default}
4924 case $enableval in
4925 yes) enable_shared=yes ;;
4926 no) enable_shared=no ;;
4927 *)
4928 enable_shared=no
4929 # Look at the argument we got. We use all the common list separators.
4930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4931 for pkg in $enableval; do
4932 if test "X$pkg" = "X$p"; then
4933 enable_shared=yes
4934 fi
4935 done
4936 IFS="$ac_save_ifs"
4937 ;;
4938 esac
4939 else
4940 enable_shared=yes
4941 fi;
4942 # Check whether --enable-static or --disable-static was given.
4943 if test "${enable_static+set}" = set; then
4944 enableval="$enable_static"
4945 p=${PACKAGE-default}
4946 case $enableval in
4947 yes) enable_static=yes ;;
4948 no) enable_static=no ;;
4949 *)
4950 enable_static=no
4951 # Look at the argument we got. We use all the common list separators.
4952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4953 for pkg in $enableval; do
4954 if test "X$pkg" = "X$p"; then
4955 enable_static=yes
4956 fi
4957 done
4958 IFS="$ac_save_ifs"
4959 ;;
4960 esac
4961 else
4962 enable_static=yes
4963 fi;
4964 # Check whether --enable-fast-install or --disable-fast-install was given.
4965 if test "${enable_fast_install+set}" = set; then
4966 enableval="$enable_fast_install"
4967 p=${PACKAGE-default}
4968 case $enableval in
4969 yes) enable_fast_install=yes ;;
4970 no) enable_fast_install=no ;;
4971 *)
4972 enable_fast_install=no
4973 # Look at the argument we got. We use all the common list separators.
4974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4975 for pkg in $enableval; do
4976 if test "X$pkg" = "X$p"; then
4977 enable_fast_install=yes
4978 fi
4979 done
4980 IFS="$ac_save_ifs"
4981 ;;
4982 esac
4983 else
4984 enable_fast_install=yes
4985 fi;
4986
4987 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4988 if test "${with_gnu_ld+set}" = set; then
4989 withval="$with_gnu_ld"
4990 test "$withval" = no || with_gnu_ld=yes
4991 else
4992 with_gnu_ld=no
4993 fi;
4994 ac_prog=ld
4995 if test "$GCC" = yes; then
4996 # Check if gcc -print-prog-name=ld gives a path.
4997 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4998 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4999 case $host in
5000 *-*-mingw*)
5001 # gcc leaves a trailing carriage return which upsets mingw
5002 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5003 *)
5004 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5005 esac
5006 case $ac_prog in
5007 # Accept absolute paths.
5008 [\\/]* | [A-Za-z]:[\\/]*)
5009 re_direlt='/[^/][^/]*/\.\./'
5010 # Canonicalize the path of ld
5011 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5012 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5013 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5014 done
5015 test -z "$LD" && LD="$ac_prog"
5016 ;;
5017 "")
5018 # If it fails, then pretend we aren't using GCC.
5019 ac_prog=ld
5020 ;;
5021 *)
5022 # If it is relative, then search for the first ld in PATH.
5023 with_gnu_ld=unknown
5024 ;;
5025 esac
5026 elif test "$with_gnu_ld" = yes; then
5027 echo "$as_me:$LINENO: checking for GNU ld" >&5
5028 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5029 else
5030 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5031 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5032 fi
5033 if test "${lt_cv_path_LD+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 if test -z "$LD"; then
5037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5038 for ac_dir in $PATH; do
5039 test -z "$ac_dir" && ac_dir=.
5040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5041 lt_cv_path_LD="$ac_dir/$ac_prog"
5042 # Check to see if the program is GNU ld. I'd rather use --version,
5043 # but apparently some GNU ld's only accept -v.
5044 # Break only if it was the GNU/non-GNU ld that we prefer.
5045 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5046 test "$with_gnu_ld" != no && break
5047 else
5048 test "$with_gnu_ld" != yes && break
5049 fi
5050 fi
5051 done
5052 IFS="$ac_save_ifs"
5053 else
5054 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5055 fi
5056 fi
5057
5058 LD="$lt_cv_path_LD"
5059 if test -n "$LD"; then
5060 echo "$as_me:$LINENO: result: $LD" >&5
5061 echo "${ECHO_T}$LD" >&6
5062 else
5063 echo "$as_me:$LINENO: result: no" >&5
5064 echo "${ECHO_T}no" >&6
5065 fi
5066 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5067 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5068 { (exit 1); exit 1; }; }
5069 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5070 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5071 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5075 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5076 lt_cv_prog_gnu_ld=yes
5077 else
5078 lt_cv_prog_gnu_ld=no
5079 fi
5080 fi
5081 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5083 with_gnu_ld=$lt_cv_prog_gnu_ld
5084
5085
5086 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5087 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5088 if test "${lt_cv_ld_reload_flag+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 lt_cv_ld_reload_flag='-r'
5092 fi
5093 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5094 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5095 reload_flag=$lt_cv_ld_reload_flag
5096 test -n "$reload_flag" && reload_flag=" $reload_flag"
5097
5098 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5099 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5100 if test "${lt_cv_path_NM+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 if test -n "$NM"; then
5104 # Let the user override the test.
5105 lt_cv_path_NM="$NM"
5106 else
5107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5108 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5109 test -z "$ac_dir" && ac_dir=.
5110 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5111 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5112 # Check to see if the nm accepts a BSD-compat flag.
5113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5114 # nm: unknown option "B" ignored
5115 # Tru64's nm complains that /dev/null is an invalid object file
5116 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5117 lt_cv_path_NM="$tmp_nm -B"
5118 break
5119 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5120 lt_cv_path_NM="$tmp_nm -p"
5121 break
5122 else
5123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5124 continue # so that we can try to find one that supports BSD flags
5125 fi
5126 fi
5127 done
5128 IFS="$ac_save_ifs"
5129 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5130 fi
5131 fi
5132
5133 NM="$lt_cv_path_NM"
5134 echo "$as_me:$LINENO: result: $NM" >&5
5135 echo "${ECHO_T}$NM" >&6
5136
5137 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5139 LN_S=$as_ln_s
5140 if test "$LN_S" = "ln -s"; then
5141 echo "$as_me:$LINENO: result: yes" >&5
5142 echo "${ECHO_T}yes" >&6
5143 else
5144 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5145 echo "${ECHO_T}no, using $LN_S" >&6
5146 fi
5147
5148 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5149 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5150 lt_cv_file_magic_cmd='$MAGIC_CMD'
5151 lt_cv_file_magic_test_file=
5152 lt_cv_deplibs_check_method='unknown'
5153 # Need to set the preceding variable on all platforms that support
5154 # interlibrary dependencies.
5155 # 'none' -- dependencies not supported.
5156 # `unknown' -- same as none, but documents that we really don't know.
5157 # 'pass_all' -- all dependencies passed with no checks.
5158 # 'test_compile' -- check by making test program.
5159 # 'file_magic [regex]' -- check by looking for files in library path
5160 # which responds to the $file_magic_cmd with a given egrep regex.
5161 # If you have `file' or equivalent on your system and you're not sure
5162 # whether `pass_all' will *always* work, you probably want this one.
5163
5164 case $host_os in
5165 aix*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 beos*)
5170 lt_cv_deplibs_check_method=pass_all
5171 ;;
5172
5173 bsdi4*)
5174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5175 lt_cv_file_magic_cmd='/usr/bin/file -L'
5176 lt_cv_file_magic_test_file=/shlib/libc.so
5177 ;;
5178
5179 cygwin* | mingw* |pw32*)
5180 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5181 lt_cv_file_magic_cmd='$OBJDUMP -f'
5182 ;;
5183
5184 darwin* | rhapsody*)
5185 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5186 lt_cv_file_magic_cmd='/usr/bin/file -L'
5187 case "$host_os" in
5188 rhapsody* | darwin1.012)
5189 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5190 ;;
5191 *) # Darwin 1.3 on
5192 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5193 ;;
5194 esac
5195 ;;
5196
5197 freebsd* )
5198 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5199 case $host_cpu in
5200 i*86 )
5201 # Not sure whether the presence of OpenBSD here was a mistake.
5202 # Let's accept both of them until this is cleared up.
5203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5204 lt_cv_file_magic_cmd=/usr/bin/file
5205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5206 ;;
5207 esac
5208 else
5209 lt_cv_deplibs_check_method=pass_all
5210 fi
5211 ;;
5212
5213 gnu*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217 hpux10.20*|hpux11*)
5218 case $host_cpu in
5219 hppa*)
5220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5221 lt_cv_file_magic_cmd=/usr/bin/file
5222 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5223 ;;
5224 ia64*)
5225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5228 ;;
5229 esac
5230 ;;
5231
5232 irix5* | irix6*)
5233 case $host_os in
5234 irix5*)
5235 # this will be overridden with pass_all, but let us keep it just in case
5236 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5237 ;;
5238 *)
5239 case $LD in
5240 *-32|*"-32 ") libmagic=32-bit;;
5241 *-n32|*"-n32 ") libmagic=N32;;
5242 *-64|*"-64 ") libmagic=64-bit;;
5243 *) libmagic=never-match;;
5244 esac
5245 # this will be overridden with pass_all, but let us keep it just in case
5246 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5247 ;;
5248 esac
5249 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252
5253 # This must be Linux ELF.
5254 linux-gnu*)
5255 case $host_cpu in
5256 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | x86_64* | sh*)
5257 lt_cv_deplibs_check_method=pass_all ;;
5258 # NB 2003-06-03: According to Alexandre Oliva, x86_64 should not be
5259 # in this list. However, it works around a libtool problem that
5260 # wrongly excludes -ldl/-lpthread from the libmudflap(th) dependencies.
5261 *)
5262 # glibc up to 2.1.1 does not perform some relocations on ARM
5263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5264 esac
5265 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5266 ;;
5267
5268 netbsd*)
5269 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5270 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5271 else
5272 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5273 fi
5274 ;;
5275
5276 newsos6)
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5278 lt_cv_file_magic_cmd=/usr/bin/file
5279 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5280 ;;
5281
5282 osf3* | osf4* | osf5*)
5283 # this will be overridden with pass_all, but let us keep it just in case
5284 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5285 lt_cv_file_magic_test_file=/shlib/libc.so
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288
5289 sco3.2v5*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293 solaris*)
5294 lt_cv_deplibs_check_method=pass_all
5295 lt_cv_file_magic_test_file=/lib/libc.so
5296 ;;
5297
5298 sysv5uw[78]* | sysv4*uw2*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5303 case $host_vendor in
5304 ncr)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307 motorola)
5308 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]'
5309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5310 ;;
5311 esac
5312 ;;
5313 esac
5314 file_magic_cmd=$lt_cv_file_magic_cmd
5315 deplibs_check_method=$lt_cv_deplibs_check_method
5316 # NB: See above NB ... this is to make sure that the overriden
5317 # local libtool variant doesn't pollute the upstream cache
5318 unset lt_cv_file_magic_cmd
5319 unset lt_cv_deplibs_check_method
5320 echo "$as_me:$LINENO: result: $deplibs_check_method" >&5
5321 echo "${ECHO_T}$deplibs_check_method" >&6
5322
5323
5324
5325 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5326
5327 # Only perform the check for file, if the check method requires it
5328 case $deplibs_check_method in
5329 file_magic*)
5330 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5331 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5332 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 case $MAGIC_CMD in
5337 /*)
5338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5339 ;;
5340 ?:/*)
5341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5342 ;;
5343 *)
5344 ac_save_MAGIC_CMD="$MAGIC_CMD"
5345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5346 ac_dummy="/usr/bin:$PATH"
5347 for ac_dir in $ac_dummy; do
5348 test -z "$ac_dir" && ac_dir=.
5349 if test -f $ac_dir/${ac_tool_prefix}file; then
5350 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5351 if test -n "$file_magic_test_file"; then
5352 case $deplibs_check_method in
5353 "file_magic "*)
5354 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5357 egrep "$file_magic_regex" > /dev/null; then
5358 :
5359 else
5360 cat <<EOF 1>&2
5361
5362 *** Warning: the command libtool uses to detect shared libraries,
5363 *** $file_magic_cmd, produces output that libtool cannot recognize.
5364 *** The result is that libtool may fail to recognize shared libraries
5365 *** as such. This will affect the creation of libtool libraries that
5366 *** depend on shared libraries, but programs linked with such libtool
5367 *** libraries will work regardless of this problem. Nevertheless, you
5368 *** may want to report the problem to your system manager and/or to
5369 *** bug-libtool@gnu.org
5370
5371 EOF
5372 fi ;;
5373 esac
5374 fi
5375 break
5376 fi
5377 done
5378 IFS="$ac_save_ifs"
5379 MAGIC_CMD="$ac_save_MAGIC_CMD"
5380 ;;
5381 esac
5382 fi
5383
5384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5385 if test -n "$MAGIC_CMD"; then
5386 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5387 echo "${ECHO_T}$MAGIC_CMD" >&6
5388 else
5389 echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5391 fi
5392
5393 if test -z "$lt_cv_path_MAGIC_CMD"; then
5394 if test -n "$ac_tool_prefix"; then
5395 echo "$as_me:$LINENO: checking for file" >&5
5396 echo $ECHO_N "checking for file... $ECHO_C" >&6
5397 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 case $MAGIC_CMD in
5401 /*)
5402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5403 ;;
5404 ?:/*)
5405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5406 ;;
5407 *)
5408 ac_save_MAGIC_CMD="$MAGIC_CMD"
5409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5410 ac_dummy="/usr/bin:$PATH"
5411 for ac_dir in $ac_dummy; do
5412 test -z "$ac_dir" && ac_dir=.
5413 if test -f $ac_dir/file; then
5414 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5415 if test -n "$file_magic_test_file"; then
5416 case $deplibs_check_method in
5417 "file_magic "*)
5418 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5421 egrep "$file_magic_regex" > /dev/null; then
5422 :
5423 else
5424 cat <<EOF 1>&2
5425
5426 *** Warning: the command libtool uses to detect shared libraries,
5427 *** $file_magic_cmd, produces output that libtool cannot recognize.
5428 *** The result is that libtool may fail to recognize shared libraries
5429 *** as such. This will affect the creation of libtool libraries that
5430 *** depend on shared libraries, but programs linked with such libtool
5431 *** libraries will work regardless of this problem. Nevertheless, you
5432 *** may want to report the problem to your system manager and/or to
5433 *** bug-libtool@gnu.org
5434
5435 EOF
5436 fi ;;
5437 esac
5438 fi
5439 break
5440 fi
5441 done
5442 IFS="$ac_save_ifs"
5443 MAGIC_CMD="$ac_save_MAGIC_CMD"
5444 ;;
5445 esac
5446 fi
5447
5448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5449 if test -n "$MAGIC_CMD"; then
5450 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5451 echo "${ECHO_T}$MAGIC_CMD" >&6
5452 else
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457 else
5458 MAGIC_CMD=:
5459 fi
5460 fi
5461
5462 fi
5463 ;;
5464 esac
5465
5466 if test -n "$ac_tool_prefix"; then
5467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5469 echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_prog_RANLIB+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 if test -n "$RANLIB"; then
5475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488 done
5489 done
5490
5491 fi
5492 fi
5493 RANLIB=$ac_cv_prog_RANLIB
5494 if test -n "$RANLIB"; then
5495 echo "$as_me:$LINENO: result: $RANLIB" >&5
5496 echo "${ECHO_T}$RANLIB" >&6
5497 else
5498 echo "$as_me:$LINENO: result: no" >&5
5499 echo "${ECHO_T}no" >&6
5500 fi
5501
5502 fi
5503 if test -z "$ac_cv_prog_RANLIB"; then
5504 ac_ct_RANLIB=$RANLIB
5505 # Extract the first word of "ranlib", so it can be a program name with args.
5506 set dummy ranlib; ac_word=$2
5507 echo "$as_me:$LINENO: checking for $ac_word" >&5
5508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 if test -n "$ac_ct_RANLIB"; then
5513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_ac_ct_RANLIB="ranlib"
5523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528
5529 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5530 fi
5531 fi
5532 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5533 if test -n "$ac_ct_RANLIB"; then
5534 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5535 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5536 else
5537 echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6
5539 fi
5540
5541 RANLIB=$ac_ct_RANLIB
5542 else
5543 RANLIB="$ac_cv_prog_RANLIB"
5544 fi
5545
5546 if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5548 set dummy ${ac_tool_prefix}strip; ac_word=$2
5549 echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551 if test "${ac_cv_prog_STRIP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 if test -n "$STRIP"; then
5555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570
5571 fi
5572 fi
5573 STRIP=$ac_cv_prog_STRIP
5574 if test -n "$STRIP"; then
5575 echo "$as_me:$LINENO: result: $STRIP" >&5
5576 echo "${ECHO_T}$STRIP" >&6
5577 else
5578 echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6
5580 fi
5581
5582 fi
5583 if test -z "$ac_cv_prog_STRIP"; then
5584 ac_ct_STRIP=$STRIP
5585 # Extract the first word of "strip", so it can be a program name with args.
5586 set dummy strip; ac_word=$2
5587 echo "$as_me:$LINENO: checking for $ac_word" >&5
5588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 if test -n "$ac_ct_STRIP"; then
5593 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_ac_ct_STRIP="strip"
5603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5605 fi
5606 done
5607 done
5608
5609 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5610 fi
5611 fi
5612 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5613 if test -n "$ac_ct_STRIP"; then
5614 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5615 echo "${ECHO_T}$ac_ct_STRIP" >&6
5616 else
5617 echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6
5619 fi
5620
5621 STRIP=$ac_ct_STRIP
5622 else
5623 STRIP="$ac_cv_prog_STRIP"
5624 fi
5625
5626
5627 # Check for any special flags to pass to ltconfig.
5628 libtool_flags="--cache-file=$cache_file"
5629 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5630 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5631 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5632 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5633 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5634
5635
5636 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5637 if test "${enable_libtool_lock+set}" = set; then
5638 enableval="$enable_libtool_lock"
5639
5640 fi;
5641 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5642 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5643
5644
5645 # Check whether --with-pic or --without-pic was given.
5646 if test "${with_pic+set}" = set; then
5647 withval="$with_pic"
5648 pic_mode="$withval"
5649 else
5650 pic_mode=default
5651 fi;
5652 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5653 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5654
5655 # Some flags need to be propagated to the compiler or linker for good
5656 # libtool support.
5657 case $host in
5658 *-*-irix6*)
5659 # Find out which ABI we are using.
5660 echo '#line 5660 "configure"' > conftest.$ac_ext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; then
5666 case `/usr/bin/file conftest.$ac_objext` in
5667 *32-bit*)
5668 LD="${LD-ld} -32"
5669 ;;
5670 *N32*)
5671 LD="${LD-ld} -n32"
5672 ;;
5673 *64-bit*)
5674 LD="${LD-ld} -64"
5675 ;;
5676 esac
5677 fi
5678 rm -rf conftest*
5679 ;;
5680
5681 ia64-*-hpux*)
5682 # Find out which ABI we are using.
5683 echo 'int i;' > conftest.$ac_ext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; then
5689 case "`/usr/bin/file conftest.o`" in
5690 *ELF-32*)
5691 HPUX_IA64_MODE="32"
5692 ;;
5693 *ELF-64*)
5694 HPUX_IA64_MODE="64"
5695 ;;
5696 esac
5697 fi
5698 rm -rf conftest*
5699 ;;
5700
5701 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5702 # Find out which ABI we are using.
5703 echo 'int i;' > conftest.$ac_ext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705 (eval $ac_compile) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; then
5709 case "`/usr/bin/file conftest.o`" in
5710 *32-bit*)
5711 case $host in
5712 x86_64-*linux*)
5713 LD="${LD-ld} -m elf_i386"
5714 ;;
5715 ppc64-*linux*)
5716 LD="${LD-ld} -m elf32ppclinux"
5717 ;;
5718 s390x-*linux*)
5719 LD="${LD-ld} -m elf_s390"
5720 ;;
5721 sparc64-*linux*)
5722 LD="${LD-ld} -m elf32_sparc"
5723 ;;
5724 esac
5725 ;;
5726 *64-bit*)
5727 case $host in
5728 x86_64-*linux*)
5729 LD="${LD-ld} -m elf_x86_64"
5730 ;;
5731 ppc*-*linux*|powerpc*-*linux*)
5732 LD="${LD-ld} -m elf64ppc"
5733 ;;
5734 s390*-*linux*)
5735 LD="${LD-ld} -m elf64_s390"
5736 ;;
5737 sparc*-*linux*)
5738 LD="${LD-ld} -m elf64_sparc"
5739 ;;
5740 esac
5741 ;;
5742 esac
5743 fi
5744 rm -rf conftest*
5745 ;;
5746
5747 *-*-sco3.2v5*)
5748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5749 SAVE_CFLAGS="$CFLAGS"
5750 CFLAGS="$CFLAGS -belf"
5751 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5752 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5753 if test "${lt_cv_cc_needs_belf+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756
5757
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770
5771 int
5772 main ()
5773 {
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 lt_cv_cc_needs_belf=yes
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 lt_cv_cc_needs_belf=no
5807 fi
5808 rm -f conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 ac_ext=c
5811 ac_cpp='$CPP $CPPFLAGS'
5812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5815
5816 fi
5817 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5818 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5819 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5820 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5821 CFLAGS="$SAVE_CFLAGS"
5822 fi
5823 ;;
5824
5825
5826 esac
5827
5828
5829 # Save cache, so that ltconfig can load it
5830 cat >confcache <<\_ACEOF
5831 # This file is a shell script that caches the results of configure
5832 # tests run on this system so they can be shared between configure
5833 # scripts and configure runs, see configure's option --config-cache.
5834 # It is not useful on other systems. If it contains results you don't
5835 # want to keep, you may remove or edit it.
5836 #
5837 # config.status only pays attention to the cache file if you give it
5838 # the --recheck option to rerun configure.
5839 #
5840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5842 # following values.
5843
5844 _ACEOF
5845
5846 # The following way of writing the cache mishandles newlines in values,
5847 # but we know of no workaround that is simple, portable, and efficient.
5848 # So, don't put newlines in cache variables' values.
5849 # Ultrix sh set writes to stderr and can't be redirected directly,
5850 # and sets the high bit in the cache file unless we assign to the vars.
5851 {
5852 (set) 2>&1 |
5853 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5854 *ac_space=\ *)
5855 # `set' does not quote correctly, so add quotes (double-quote
5856 # substitution turns \\\\ into \\, and sed turns \\ into \).
5857 sed -n \
5858 "s/'/'\\\\''/g;
5859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5860 ;;
5861 *)
5862 # `set' quotes correctly as required by POSIX, so do not add quotes.
5863 sed -n \
5864 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5865 ;;
5866 esac;
5867 } |
5868 sed '
5869 t clear
5870 : clear
5871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5872 t end
5873 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5874 : end' >>confcache
5875 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5876 if test -w $cache_file; then
5877 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5878 cat confcache >$cache_file
5879 else
5880 echo "not updating unwritable cache $cache_file"
5881 fi
5882 fi
5883 rm -f confcache
5884
5885 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5886 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5887 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5888 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5889 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5890 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5891 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5892 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5893 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5894 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5895 echo "$as_me: error: libtool configure failed" >&2;}
5896 { (exit 1); exit 1; }; }
5897
5898 # Reload cache, that may have been modified by ltconfig
5899 if test -r "$cache_file"; then
5900 # Some versions of bash will fail to source /dev/null (special
5901 # files actually), so we avoid doing that.
5902 if test -f "$cache_file"; then
5903 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5904 echo "$as_me: loading cache $cache_file" >&6;}
5905 case $cache_file in
5906 [\\/]* | ?:[\\/]* ) . $cache_file;;
5907 *) . ./$cache_file;;
5908 esac
5909 fi
5910 else
5911 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5912 echo "$as_me: creating cache $cache_file" >&6;}
5913 >$cache_file
5914 fi
5915
5916
5917 # This can be used to rebuild libtool when needed
5918 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5919
5920 # Always use our own libtool.
5921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5922
5923 # Redirect the config.log output again, so that the ltconfig log is not
5924 # clobbered by the next message.
5925 exec 5>>./config.log
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935 if test "${ac_cv_header_stdint_h+set}" = set; then
5936 echo "$as_me:$LINENO: checking for stdint.h" >&5
5937 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5938 if test "${ac_cv_header_stdint_h+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
5942 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
5943 else
5944 # Is the header compilable?
5945 echo "$as_me:$LINENO: checking stdint.h usability" >&5
5946 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5954 #include <stdint.h>
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_header_compiler=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_header_compiler=no
5984 fi
5985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5987 echo "${ECHO_T}$ac_header_compiler" >&6
5988
5989 # Is the header present?
5990 echo "$as_me:$LINENO: checking stdint.h presence" >&5
5991 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <stdint.h>
5999 _ACEOF
6000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } >/dev/null; then
6008 if test -s conftest.err; then
6009 ac_cpp_err=$ac_c_preproc_warn_flag
6010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011 else
6012 ac_cpp_err=
6013 fi
6014 else
6015 ac_cpp_err=yes
6016 fi
6017 if test -z "$ac_cpp_err"; then
6018 ac_header_preproc=yes
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 ac_header_preproc=no
6024 fi
6025 rm -f conftest.err conftest.$ac_ext
6026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6027 echo "${ECHO_T}$ac_header_preproc" >&6
6028
6029 # So? What about this header?
6030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6031 yes:no: )
6032 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
6033 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6034 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
6035 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
6036 ac_header_preproc=yes
6037 ;;
6038 no:yes:* )
6039 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
6040 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
6042 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
6044 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
6046 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
6048 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
6050 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
6051 (
6052 cat <<\_ASBOX
6053 ## ------------------------------------- ##
6054 ## Report this to the libmudflap lists. ##
6055 ## ------------------------------------- ##
6056 _ASBOX
6057 ) |
6058 sed "s/^/$as_me: WARNING: /" >&2
6059 ;;
6060 esac
6061 echo "$as_me:$LINENO: checking for stdint.h" >&5
6062 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6063 if test "${ac_cv_header_stdint_h+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 ac_cv_header_stdint_h=$ac_header_preproc
6067 fi
6068 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
6069 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
6070
6071 fi
6072 if test $ac_cv_header_stdint_h = yes; then
6073 MF_HAVE_STDINT_H=1
6074 else
6075 MF_HAVE_STDINT_H=0
6076 fi
6077
6078
6079
6080 if test $MF_HAVE_STDINT_H = 1
6081 then
6082 MF_HAVE_UINTPTR_T=1
6083 else
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 int
6092 main ()
6093 {
6094 uintptr_t k = 0;
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101 (eval $ac_compile) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -z "$ac_c_werror_flag"
6109 || test ! -s conftest.err'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 MF_HAVE_UINTPTR_T=1
6122 else
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 MF_HAVE_UINTPTR_T=0
6127 fi
6128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6129 fi
6130
6131
6132 if test ! -d pth
6133 then
6134 # libmudflapth objects are built in this subdirectory
6135 mkdir pth
6136 fi
6137
6138 pthread_create_version='""'
6139 if test "${ac_cv_header_pthread_h+set}" = set; then
6140 echo "$as_me:$LINENO: checking for pthread.h" >&5
6141 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6142 if test "${ac_cv_header_pthread_h+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 fi
6145 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6146 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6147 else
6148 # Is the header compilable?
6149 echo "$as_me:$LINENO: checking pthread.h usability" >&5
6150 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 $ac_includes_default
6158 #include <pthread.h>
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_header_compiler=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ac_header_compiler=no
6188 fi
6189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6191 echo "${ECHO_T}$ac_header_compiler" >&6
6192
6193 # Is the header present?
6194 echo "$as_me:$LINENO: checking pthread.h presence" >&5
6195 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 #include <pthread.h>
6203 _ACEOF
6204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } >/dev/null; then
6212 if test -s conftest.err; then
6213 ac_cpp_err=$ac_c_preproc_warn_flag
6214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6215 else
6216 ac_cpp_err=
6217 fi
6218 else
6219 ac_cpp_err=yes
6220 fi
6221 if test -z "$ac_cpp_err"; then
6222 ac_header_preproc=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227 ac_header_preproc=no
6228 fi
6229 rm -f conftest.err conftest.$ac_ext
6230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6231 echo "${ECHO_T}$ac_header_preproc" >&6
6232
6233 # So? What about this header?
6234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6235 yes:no: )
6236 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6237 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6239 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6240 ac_header_preproc=yes
6241 ;;
6242 no:yes:* )
6243 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6244 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
6246 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6248 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
6250 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6252 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6254 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6255 (
6256 cat <<\_ASBOX
6257 ## ------------------------------------- ##
6258 ## Report this to the libmudflap lists. ##
6259 ## ------------------------------------- ##
6260 _ASBOX
6261 ) |
6262 sed "s/^/$as_me: WARNING: /" >&2
6263 ;;
6264 esac
6265 echo "$as_me:$LINENO: checking for pthread.h" >&5
6266 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6267 if test "${ac_cv_header_pthread_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 ac_cv_header_pthread_h=$ac_header_preproc
6271 fi
6272 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6273 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6274
6275 fi
6276 if test $ac_cv_header_pthread_h = yes; then
6277
6278
6279 cat >>confdefs.h <<_ACEOF
6280 #define HAVE_PTHREAD_H 1
6281 _ACEOF
6282
6283 ac_have_pthread_h=yes
6284
6285 else
6286
6287 ac_have_pthread_h=
6288
6289 fi
6290
6291
6292
6293
6294 if test "x$ac_have_pthread_h" != "x"; then
6295 LIBMUDFLAPTH_TRUE=
6296 LIBMUDFLAPTH_FALSE='#'
6297 else
6298 LIBMUDFLAPTH_TRUE='#'
6299 LIBMUDFLAPTH_FALSE=
6300 fi
6301
6302 if test "x$ac_have_pthread_h" != "x"
6303 then
6304 build_libmudflapth=1
6305 else
6306 build_libmudflapth=0
6307 fi
6308
6309
6310
6311 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
6312 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
6313 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-ldl $LIBS"
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 #ifdef __cplusplus
6327 extern "C"
6328 #endif
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331 char dlsym ();
6332 int
6333 main ()
6334 {
6335 dlsym ();
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext conftest$ac_exeext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_lib_dl_dlsym=yes
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_cv_lib_dl_dlsym=no
6368 fi
6369 rm -f conftest.err conftest.$ac_objext \
6370 conftest$ac_exeext conftest.$ac_ext
6371 LIBS=$ac_check_lib_save_LIBS
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
6374 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
6375 if test $ac_cv_lib_dl_dlsym = yes; then
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_LIBDL 1
6378 _ACEOF
6379
6380 LIBS="-ldl $LIBS"
6381
6382 fi
6383
6384
6385 # Process the option "--enable-version-specific-runtime-libs"
6386 gcc_version_trigger=${srcdir}/../gcc/version.c
6387 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6388 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
6389
6390
6391 # Calculate toolexeclibdir
6392 # Also toolexecdir, though it's only used in toolexeclibdir
6393 case ${version_specific_libs} in
6394 yes)
6395 # Need the gcc compiler version to know where to install libraries
6396 # and header files if --enable-version-specific-runtime-libs option
6397 # is selected.
6398 toolexecdir='$(libdir)/gcc/$(target_alias)'
6399 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
6400 ;;
6401 no)
6402 if test -n "$with_cross_host" &&
6403 test x"$with_cross_host" != x"no"; then
6404 # Install a library built with a cross compiler in tooldir, not libdir.
6405 toolexecdir='$(exec_prefix)/$(target_alias)'
6406 toolexeclibdir='$(toolexecdir)/lib'
6407 else
6408 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6409 toolexeclibdir='$(libdir)'
6410 fi
6411 multi_os_directory=`$CC -print-multi-os-directory`
6412 case $multi_os_directory in
6413 .) ;; # Avoid trailing /.
6414 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6415 esac
6416 ;;
6417 esac
6418
6419
6420
6421 if test "x$enable_shared" = "xyes" && test "x$ac_have_pthread_h" != "x"; then
6422 # NB: don't check for -lpthread here, because then it would be
6423 # added to LIBS. For the thread-unaware libmudflap.la, we don't
6424 # want it there.
6425
6426 # glibc-related hacks. dlsym() may pick the wrong version of
6427 # interposed functions like pthread_create on modern glibc.
6428 # We need to find the proper symbol version string, and use
6429 # the nonstandard dlvsym().
6430
6431 for ac_func in dlvsym
6432 do
6433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6434 echo "$as_me:$LINENO: checking for $ac_func" >&5
6435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6436 if eval "test \"\${$as_ac_var+set}\" = set"; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6447 #define $ac_func innocuous_$ac_func
6448
6449 /* System header to define __stub macros and hopefully few prototypes,
6450 which can conflict with char $ac_func (); below.
6451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6452 <limits.h> exists even on freestanding compilers. */
6453
6454 #ifdef __STDC__
6455 # include <limits.h>
6456 #else
6457 # include <assert.h>
6458 #endif
6459
6460 #undef $ac_func
6461
6462 /* Override any gcc2 internal prototype to avoid an error. */
6463 #ifdef __cplusplus
6464 extern "C"
6465 {
6466 #endif
6467 /* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6469 char $ac_func ();
6470 /* The GNU C library defines this for functions which it implements
6471 to always fail with ENOSYS. Some functions are actually named
6472 something starting with __ and the normal name is an alias. */
6473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6474 choke me
6475 #else
6476 char (*f) () = $ac_func;
6477 #endif
6478 #ifdef __cplusplus
6479 }
6480 #endif
6481
6482 int
6483 main ()
6484 {
6485 return f != $ac_func;
6486 ;
6487 return 0;
6488 }
6489 _ACEOF
6490 rm -f conftest.$ac_objext conftest$ac_exeext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6492 (eval $ac_link) 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_c_werror_flag"
6500 || test ! -s conftest.err'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 eval "$as_ac_var=yes"
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 eval "$as_ac_var=no"
6518 fi
6519 rm -f conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521 fi
6522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6524 if test `eval echo '${'$as_ac_var'}'` = yes; then
6525 cat >>confdefs.h <<_ACEOF
6526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6527 _ACEOF
6528
6529 fi
6530 done
6531
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nm; ac_word=$2
6535 echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537 if test "${ac_cv_prog_NM+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 if test -n "$NM"; then
6541 ac_cv_prog_NM="$NM" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_NM="${ac_tool_prefix}nm"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556
6557 fi
6558 fi
6559 NM=$ac_cv_prog_NM
6560 if test -n "$NM"; then
6561 echo "$as_me:$LINENO: result: $NM" >&5
6562 echo "${ECHO_T}$NM" >&6
6563 else
6564 echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6
6566 fi
6567
6568 fi
6569 if test -z "$ac_cv_prog_NM"; then
6570 ac_ct_NM=$NM
6571 # Extract the first word of "nm", so it can be a program name with args.
6572 set dummy nm; ac_word=$2
6573 echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6575 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 if test -n "$ac_ct_NM"; then
6579 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_NM="nm"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592 done
6593 done
6594
6595 fi
6596 fi
6597 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6598 if test -n "$ac_ct_NM"; then
6599 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6600 echo "${ECHO_T}$ac_ct_NM" >&6
6601 else
6602 echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6
6604 fi
6605
6606 NM=$ac_ct_NM
6607 else
6608 NM="$ac_cv_prog_NM"
6609 fi
6610
6611 if test "x$ac_cv_have_dlvsym" != "x"; then
6612 # Try compiling a simple pthreads program. Find the shared libraries it
6613 # ends up with. Then use "nm" on those libraries to extract the
6614 # default symbol versioning suffix ("@@"), if any. But that's tricky.
6615 # Rather, run nm on the resulting executable. Unfortunately, autoconf
6616 # doesn't appear to have a macro that builds a test executable for
6617 # subsequent analysis ... so we do it by hand here.
6618 cat >> conftest.c << EOF
6619 #include <pthread.h>
6620 int main () { void *p = (void *) & pthread_create; return (int) p; }
6621 EOF
6622 oldLIBS="$LIBS"
6623 LIBS="$LIBS -lpthread"
6624 pthread_create_version="\"\""
6625 echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
6626 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
6627 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
6628 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
6629 if test "x$version" != "x"; then
6630 pthread_create_version="\"$version\""
6631 fi
6632 fi
6633 echo "$as_me:$LINENO: result: $pthread_create_version" >&5
6634 echo "${ECHO_T}$pthread_create_version" >&6
6635 LIBS="$oldLIBS"
6636 fi
6637 fi
6638
6639 cat >>confdefs.h <<_ACEOF
6640 #define PTHREAD_CREATE_VERSION $pthread_create_version
6641 _ACEOF
6642
6643
6644
6645 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6646 # similarly to how libstdc++ does it
6647 ac_test_CFLAGS="${CFLAGS+set}"
6648 ac_save_CFLAGS="$CFLAGS"
6649
6650 # Check for -ffunction-sections -fdata-sections
6651 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6652 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
6653 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660
6661 int
6662 main ()
6663 {
6664 int foo;
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag"
6679 || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest.$ac_objext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_fdsections=yes
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 ac_fdsections=no
6697 fi
6698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699 if test "$ac_test_CFLAGS" = set; then
6700 CFLAGS="$ac_save_CFLAGS"
6701 else
6702 # this is the suspicious part
6703 CFLAGS=""
6704 fi
6705 if test x"$ac_fdsections" = x"yes"; then
6706 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6707 fi
6708 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
6709 echo "${ECHO_T}$ac_fdsections" >&6
6710
6711
6712
6713 if test ${multilib} = yes; then
6714 multilib_arg="--enable-multilib"
6715 else
6716 multilib_arg=
6717 fi
6718
6719 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp mf-runtime.h"
6720
6721 cat >confcache <<\_ACEOF
6722 # This file is a shell script that caches the results of configure
6723 # tests run on this system so they can be shared between configure
6724 # scripts and configure runs, see configure's option --config-cache.
6725 # It is not useful on other systems. If it contains results you don't
6726 # want to keep, you may remove or edit it.
6727 #
6728 # config.status only pays attention to the cache file if you give it
6729 # the --recheck option to rerun configure.
6730 #
6731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6733 # following values.
6734
6735 _ACEOF
6736
6737 # The following way of writing the cache mishandles newlines in values,
6738 # but we know of no workaround that is simple, portable, and efficient.
6739 # So, don't put newlines in cache variables' values.
6740 # Ultrix sh set writes to stderr and can't be redirected directly,
6741 # and sets the high bit in the cache file unless we assign to the vars.
6742 {
6743 (set) 2>&1 |
6744 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6745 *ac_space=\ *)
6746 # `set' does not quote correctly, so add quotes (double-quote
6747 # substitution turns \\\\ into \\, and sed turns \\ into \).
6748 sed -n \
6749 "s/'/'\\\\''/g;
6750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6751 ;;
6752 *)
6753 # `set' quotes correctly as required by POSIX, so do not add quotes.
6754 sed -n \
6755 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6756 ;;
6757 esac;
6758 } |
6759 sed '
6760 t clear
6761 : clear
6762 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6763 t end
6764 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6765 : end' >>confcache
6766 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6767 if test -w $cache_file; then
6768 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6769 cat confcache >$cache_file
6770 else
6771 echo "not updating unwritable cache $cache_file"
6772 fi
6773 fi
6774 rm -f confcache
6775
6776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6777 # Let make expand exec_prefix.
6778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6779
6780 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6781 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6782 # trailing colons and then remove the whole line if VPATH becomes empty
6783 # (actually we leave an empty line to preserve line numbers).
6784 if test "x$srcdir" = x.; then
6785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6786 s/:*\$(srcdir):*/:/;
6787 s/:*\${srcdir}:*/:/;
6788 s/:*@srcdir@:*/:/;
6789 s/^\([^=]*=[ ]*\):*/\1/;
6790 s/:*$//;
6791 s/^[^=]*=[ ]*$//;
6792 }'
6793 fi
6794
6795 DEFS=-DHAVE_CONFIG_H
6796
6797 ac_libobjs=
6798 ac_ltlibobjs=
6799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6800 # 1. Remove the extension, and $U if already installed.
6801 ac_i=`echo "$ac_i" |
6802 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6803 # 2. Add them.
6804 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6805 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6806 done
6807 LIBOBJS=$ac_libobjs
6808
6809 LTLIBOBJS=$ac_ltlibobjs
6810
6811
6812 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6813 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6814 Usually this means the macro was only invoked conditionally." >&5
6815 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6816 Usually this means the macro was only invoked conditionally." >&2;}
6817 { (exit 1); exit 1; }; }
6818 fi
6819 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6820 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6821 Usually this means the macro was only invoked conditionally." >&5
6822 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6823 Usually this means the macro was only invoked conditionally." >&2;}
6824 { (exit 1); exit 1; }; }
6825 fi
6826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6828 Usually this means the macro was only invoked conditionally." >&5
6829 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6830 Usually this means the macro was only invoked conditionally." >&2;}
6831 { (exit 1); exit 1; }; }
6832 fi
6833 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
6834 { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
6835 Usually this means the macro was only invoked conditionally." >&5
6836 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
6837 Usually this means the macro was only invoked conditionally." >&2;}
6838 { (exit 1); exit 1; }; }
6839 fi
6840
6841 : ${CONFIG_STATUS=./config.status}
6842 ac_clean_files_save=$ac_clean_files
6843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6844 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6845 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6846 cat >$CONFIG_STATUS <<_ACEOF
6847 #! $SHELL
6848 # Generated by $as_me.
6849 # Run this file to recreate the current configuration.
6850 # Compiler output produced by configure, useful for debugging
6851 # configure, is in config.log if it exists.
6852
6853 debug=false
6854 ac_cs_recheck=false
6855 ac_cs_silent=false
6856 SHELL=\${CONFIG_SHELL-$SHELL}
6857 _ACEOF
6858
6859 cat >>$CONFIG_STATUS <<\_ACEOF
6860 ## --------------------- ##
6861 ## M4sh Initialization. ##
6862 ## --------------------- ##
6863
6864 # Be Bourne compatible
6865 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6866 emulate sh
6867 NULLCMD=:
6868 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6869 # is contrary to our usage. Disable this feature.
6870 alias -g '${1+"$@"}'='"$@"'
6871 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6872 set -o posix
6873 fi
6874 DUALCASE=1; export DUALCASE # for MKS sh
6875
6876 # Support unset when possible.
6877 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6878 as_unset=unset
6879 else
6880 as_unset=false
6881 fi
6882
6883
6884 # Work around bugs in pre-3.0 UWIN ksh.
6885 $as_unset ENV MAIL MAILPATH
6886 PS1='$ '
6887 PS2='> '
6888 PS4='+ '
6889
6890 # NLS nuisances.
6891 for as_var in \
6892 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6893 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6894 LC_TELEPHONE LC_TIME
6895 do
6896 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6897 eval $as_var=C; export $as_var
6898 else
6899 $as_unset $as_var
6900 fi
6901 done
6902
6903 # Required to use basename.
6904 if expr a : '\(a\)' >/dev/null 2>&1; then
6905 as_expr=expr
6906 else
6907 as_expr=false
6908 fi
6909
6910 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6911 as_basename=basename
6912 else
6913 as_basename=false
6914 fi
6915
6916
6917 # Name of the executable.
6918 as_me=`$as_basename "$0" ||
6919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6920 X"$0" : 'X\(//\)$' \| \
6921 X"$0" : 'X\(/\)$' \| \
6922 . : '\(.\)' 2>/dev/null ||
6923 echo X/"$0" |
6924 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6925 /^X\/\(\/\/\)$/{ s//\1/; q; }
6926 /^X\/\(\/\).*/{ s//\1/; q; }
6927 s/.*/./; q'`
6928
6929
6930 # PATH needs CR, and LINENO needs CR and PATH.
6931 # Avoid depending upon Character Ranges.
6932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6935 as_cr_digits='0123456789'
6936 as_cr_alnum=$as_cr_Letters$as_cr_digits
6937
6938 # The user is always right.
6939 if test "${PATH_SEPARATOR+set}" != set; then
6940 echo "#! /bin/sh" >conf$$.sh
6941 echo "exit 0" >>conf$$.sh
6942 chmod +x conf$$.sh
6943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6944 PATH_SEPARATOR=';'
6945 else
6946 PATH_SEPARATOR=:
6947 fi
6948 rm -f conf$$.sh
6949 fi
6950
6951
6952 as_lineno_1=$LINENO
6953 as_lineno_2=$LINENO
6954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6955 test "x$as_lineno_1" != "x$as_lineno_2" &&
6956 test "x$as_lineno_3" = "x$as_lineno_2" || {
6957 # Find who we are. Look in the path if we contain no path at all
6958 # relative or not.
6959 case $0 in
6960 *[\\/]* ) as_myself=$0 ;;
6961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6967 done
6968
6969 ;;
6970 esac
6971 # We did not find ourselves, most probably we were run as `sh COMMAND'
6972 # in which case we are not to be found in the path.
6973 if test "x$as_myself" = x; then
6974 as_myself=$0
6975 fi
6976 if test ! -f "$as_myself"; then
6977 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6978 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6979 { (exit 1); exit 1; }; }
6980 fi
6981 case $CONFIG_SHELL in
6982 '')
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for as_base in sh bash ksh sh5; do
6989 case $as_dir in
6990 /*)
6991 if ("$as_dir/$as_base" -c '
6992 as_lineno_1=$LINENO
6993 as_lineno_2=$LINENO
6994 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6995 test "x$as_lineno_1" != "x$as_lineno_2" &&
6996 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6997 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6998 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6999 CONFIG_SHELL=$as_dir/$as_base
7000 export CONFIG_SHELL
7001 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7002 fi;;
7003 esac
7004 done
7005 done
7006 ;;
7007 esac
7008
7009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7010 # uniformly replaced by the line number. The first 'sed' inserts a
7011 # line-number line before each line; the second 'sed' does the real
7012 # work. The second script uses 'N' to pair each line-number line
7013 # with the numbered line, and appends trailing '-' during
7014 # substitution so that $LINENO is not a special case at line end.
7015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7016 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7017 sed '=' <$as_myself |
7018 sed '
7019 N
7020 s,$,-,
7021 : loop
7022 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7023 t loop
7024 s,-$,,
7025 s,^['$as_cr_digits']*\n,,
7026 ' >$as_me.lineno &&
7027 chmod +x $as_me.lineno ||
7028 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7030 { (exit 1); exit 1; }; }
7031
7032 # Don't try to exec as it changes $[0], causing all sort of problems
7033 # (the dirname of $[0] is not the place where we might find the
7034 # original and so on. Autoconf is especially sensible to this).
7035 . ./$as_me.lineno
7036 # Exit status is that of the last command.
7037 exit
7038 }
7039
7040
7041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7042 *c*,-n*) ECHO_N= ECHO_C='
7043 ' ECHO_T=' ' ;;
7044 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7045 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7046 esac
7047
7048 if expr a : '\(a\)' >/dev/null 2>&1; then
7049 as_expr=expr
7050 else
7051 as_expr=false
7052 fi
7053
7054 rm -f conf$$ conf$$.exe conf$$.file
7055 echo >conf$$.file
7056 if ln -s conf$$.file conf$$ 2>/dev/null; then
7057 # We could just check for DJGPP; but this test a) works b) is more generic
7058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7059 if test -f conf$$.exe; then
7060 # Don't use ln at all; we don't have any links
7061 as_ln_s='cp -p'
7062 else
7063 as_ln_s='ln -s'
7064 fi
7065 elif ln conf$$.file conf$$ 2>/dev/null; then
7066 as_ln_s=ln
7067 else
7068 as_ln_s='cp -p'
7069 fi
7070 rm -f conf$$ conf$$.exe conf$$.file
7071
7072 if mkdir -p . 2>/dev/null; then
7073 as_mkdir_p=:
7074 else
7075 test -d ./-p && rmdir ./-p
7076 as_mkdir_p=false
7077 fi
7078
7079 as_executable_p="test -f"
7080
7081 # Sed expression to map a string onto a valid CPP name.
7082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7083
7084 # Sed expression to map a string onto a valid variable name.
7085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7086
7087
7088 # IFS
7089 # We need space, tab and new line, in precisely that order.
7090 as_nl='
7091 '
7092 IFS=" $as_nl"
7093
7094 # CDPATH.
7095 $as_unset CDPATH
7096
7097 exec 6>&1
7098
7099 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7100 # report actual input values of CONFIG_FILES etc. instead of their
7101 # values after options handling. Logging --version etc. is OK.
7102 exec 5>>config.log
7103 {
7104 echo
7105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7106 ## Running $as_me. ##
7107 _ASBOX
7108 } >&5
7109 cat >&5 <<_CSEOF
7110
7111 This file was extended by libmudflap $as_me 1.0, which was
7112 generated by GNU Autoconf 2.59. Invocation command line was
7113
7114 CONFIG_FILES = $CONFIG_FILES
7115 CONFIG_HEADERS = $CONFIG_HEADERS
7116 CONFIG_LINKS = $CONFIG_LINKS
7117 CONFIG_COMMANDS = $CONFIG_COMMANDS
7118 $ $0 $@
7119
7120 _CSEOF
7121 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7122 echo >&5
7123 _ACEOF
7124
7125 # Files that config.status was made for.
7126 if test -n "$ac_config_files"; then
7127 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7128 fi
7129
7130 if test -n "$ac_config_headers"; then
7131 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7132 fi
7133
7134 if test -n "$ac_config_links"; then
7135 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7136 fi
7137
7138 if test -n "$ac_config_commands"; then
7139 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7140 fi
7141
7142 cat >>$CONFIG_STATUS <<\_ACEOF
7143
7144 ac_cs_usage="\
7145 \`$as_me' instantiates files from templates according to the
7146 current configuration.
7147
7148 Usage: $0 [OPTIONS] [FILE]...
7149
7150 -h, --help print this help, then exit
7151 -V, --version print version number, then exit
7152 -q, --quiet do not print progress messages
7153 -d, --debug don't remove temporary files
7154 --recheck update $as_me by reconfiguring in the same conditions
7155 --file=FILE[:TEMPLATE]
7156 instantiate the configuration file FILE
7157 --header=FILE[:TEMPLATE]
7158 instantiate the configuration header FILE
7159
7160 Configuration files:
7161 $config_files
7162
7163 Configuration headers:
7164 $config_headers
7165
7166 Configuration commands:
7167 $config_commands
7168
7169 Report bugs to <bug-autoconf@gnu.org>."
7170 _ACEOF
7171
7172 cat >>$CONFIG_STATUS <<_ACEOF
7173 ac_cs_version="\\
7174 libmudflap config.status 1.0
7175 configured by $0, generated by GNU Autoconf 2.59,
7176 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7177
7178 Copyright (C) 2003 Free Software Foundation, Inc.
7179 This config.status script is free software; the Free Software Foundation
7180 gives unlimited permission to copy, distribute and modify it."
7181 srcdir=$srcdir
7182 INSTALL="$INSTALL"
7183 _ACEOF
7184
7185 cat >>$CONFIG_STATUS <<\_ACEOF
7186 # If no file are specified by the user, then we need to provide default
7187 # value. By we need to know if files were specified by the user.
7188 ac_need_defaults=:
7189 while test $# != 0
7190 do
7191 case $1 in
7192 --*=*)
7193 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7194 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7195 ac_shift=:
7196 ;;
7197 -*)
7198 ac_option=$1
7199 ac_optarg=$2
7200 ac_shift=shift
7201 ;;
7202 *) # This is not an option, so the user has probably given explicit
7203 # arguments.
7204 ac_option=$1
7205 ac_need_defaults=false;;
7206 esac
7207
7208 case $ac_option in
7209 # Handling of the options.
7210 _ACEOF
7211 cat >>$CONFIG_STATUS <<\_ACEOF
7212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7213 ac_cs_recheck=: ;;
7214 --version | --vers* | -V )
7215 echo "$ac_cs_version"; exit 0 ;;
7216 --he | --h)
7217 # Conflict between --help and --header
7218 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7219 Try \`$0 --help' for more information." >&5
7220 echo "$as_me: error: ambiguous option: $1
7221 Try \`$0 --help' for more information." >&2;}
7222 { (exit 1); exit 1; }; };;
7223 --help | --hel | -h )
7224 echo "$ac_cs_usage"; exit 0 ;;
7225 --debug | --d* | -d )
7226 debug=: ;;
7227 --file | --fil | --fi | --f )
7228 $ac_shift
7229 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7230 ac_need_defaults=false;;
7231 --header | --heade | --head | --hea )
7232 $ac_shift
7233 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7234 ac_need_defaults=false;;
7235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7237 ac_cs_silent=: ;;
7238
7239 # This is an error.
7240 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7241 Try \`$0 --help' for more information." >&5
7242 echo "$as_me: error: unrecognized option: $1
7243 Try \`$0 --help' for more information." >&2;}
7244 { (exit 1); exit 1; }; } ;;
7245
7246 *) ac_config_targets="$ac_config_targets $1" ;;
7247
7248 esac
7249 shift
7250 done
7251
7252 ac_configure_extra_args=
7253
7254 if $ac_cs_silent; then
7255 exec 6>/dev/null
7256 ac_configure_extra_args="$ac_configure_extra_args --silent"
7257 fi
7258
7259 _ACEOF
7260 cat >>$CONFIG_STATUS <<_ACEOF
7261 if \$ac_cs_recheck; then
7262 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7263 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7264 fi
7265
7266 _ACEOF
7267
7268 cat >>$CONFIG_STATUS <<_ACEOF
7269 #
7270 # INIT-COMMANDS section.
7271 #
7272
7273
7274 srcdir="$srcdir"
7275 host="$host"
7276 target="$target"
7277 with_multisubdir="$with_multisubdir"
7278 with_multisrctop="$with_multisrctop"
7279 with_target_subdir="$with_target_subdir"
7280 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7281 multi_basedir="$multi_basedir"
7282 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7283 CC="$CC"
7284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7285
7286 _ACEOF
7287
7288
7289
7290 cat >>$CONFIG_STATUS <<\_ACEOF
7291 for ac_config_target in $ac_config_targets
7292 do
7293 case "$ac_config_target" in
7294 # Handling of arguments.
7295 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7296 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7297 "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
7298 "mf-runtime.h" ) CONFIG_FILES="$CONFIG_FILES mf-runtime.h" ;;
7299 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7300 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7301 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7303 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7304 { (exit 1); exit 1; }; };;
7305 esac
7306 done
7307
7308 # If the user did not use the arguments to specify the items to instantiate,
7309 # then the envvar interface is used. Set only those that are not.
7310 # We use the long form for the default assignment because of an extremely
7311 # bizarre bug on SunOS 4.1.3.
7312 if $ac_need_defaults; then
7313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7316 fi
7317
7318 # Have a temporary directory for convenience. Make it in the build tree
7319 # simply because there is no reason to put it here, and in addition,
7320 # creating and moving files from /tmp can sometimes cause problems.
7321 # Create a temporary directory, and hook for its removal unless debugging.
7322 $debug ||
7323 {
7324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7325 trap '{ (exit 1); exit 1; }' 1 2 13 15
7326 }
7327
7328 # Create a (secure) tmp directory for tmp files.
7329
7330 {
7331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7332 test -n "$tmp" && test -d "$tmp"
7333 } ||
7334 {
7335 tmp=./confstat$$-$RANDOM
7336 (umask 077 && mkdir $tmp)
7337 } ||
7338 {
7339 echo "$me: cannot create a temporary directory in ." >&2
7340 { (exit 1); exit 1; }
7341 }
7342
7343 _ACEOF
7344
7345 cat >>$CONFIG_STATUS <<_ACEOF
7346
7347 #
7348 # CONFIG_FILES section.
7349 #
7350
7351 # No need to generate the scripts if there are no CONFIG_FILES.
7352 # This happens for instance when ./config.status config.h
7353 if test -n "\$CONFIG_FILES"; then
7354 # Protect against being on the right side of a sed subst in config.status.
7355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7357 s,@SHELL@,$SHELL,;t t
7358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7364 s,@exec_prefix@,$exec_prefix,;t t
7365 s,@prefix@,$prefix,;t t
7366 s,@program_transform_name@,$program_transform_name,;t t
7367 s,@bindir@,$bindir,;t t
7368 s,@sbindir@,$sbindir,;t t
7369 s,@libexecdir@,$libexecdir,;t t
7370 s,@datadir@,$datadir,;t t
7371 s,@sysconfdir@,$sysconfdir,;t t
7372 s,@sharedstatedir@,$sharedstatedir,;t t
7373 s,@localstatedir@,$localstatedir,;t t
7374 s,@libdir@,$libdir,;t t
7375 s,@includedir@,$includedir,;t t
7376 s,@oldincludedir@,$oldincludedir,;t t
7377 s,@infodir@,$infodir,;t t
7378 s,@mandir@,$mandir,;t t
7379 s,@build_alias@,$build_alias,;t t
7380 s,@host_alias@,$host_alias,;t t
7381 s,@target_alias@,$target_alias,;t t
7382 s,@DEFS@,$DEFS,;t t
7383 s,@ECHO_C@,$ECHO_C,;t t
7384 s,@ECHO_N@,$ECHO_N,;t t
7385 s,@ECHO_T@,$ECHO_T,;t t
7386 s,@LIBS@,$LIBS,;t t
7387 s,@build@,$build,;t t
7388 s,@build_cpu@,$build_cpu,;t t
7389 s,@build_vendor@,$build_vendor,;t t
7390 s,@build_os@,$build_os,;t t
7391 s,@host@,$host,;t t
7392 s,@host_cpu@,$host_cpu,;t t
7393 s,@host_vendor@,$host_vendor,;t t
7394 s,@host_os@,$host_os,;t t
7395 s,@target@,$target,;t t
7396 s,@target_cpu@,$target_cpu,;t t
7397 s,@target_vendor@,$target_vendor,;t t
7398 s,@target_os@,$target_os,;t t
7399 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7400 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7401 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7402 s,@CYGPATH_W@,$CYGPATH_W,;t t
7403 s,@PACKAGE@,$PACKAGE,;t t
7404 s,@VERSION@,$VERSION,;t t
7405 s,@ACLOCAL@,$ACLOCAL,;t t
7406 s,@AUTOCONF@,$AUTOCONF,;t t
7407 s,@AUTOMAKE@,$AUTOMAKE,;t t
7408 s,@AUTOHEADER@,$AUTOHEADER,;t t
7409 s,@MAKEINFO@,$MAKEINFO,;t t
7410 s,@AMTAR@,$AMTAR,;t t
7411 s,@install_sh@,$install_sh,;t t
7412 s,@STRIP@,$STRIP,;t t
7413 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7414 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7415 s,@mkdir_p@,$mkdir_p,;t t
7416 s,@AWK@,$AWK,;t t
7417 s,@SET_MAKE@,$SET_MAKE,;t t
7418 s,@am__leading_dot@,$am__leading_dot,;t t
7419 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7420 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7421 s,@MAINT@,$MAINT,;t t
7422 s,@multi_basedir@,$multi_basedir,;t t
7423 s,@CC@,$CC,;t t
7424 s,@ac_ct_CC@,$ac_ct_CC,;t t
7425 s,@EXEEXT@,$EXEEXT,;t t
7426 s,@OBJEXT@,$OBJEXT,;t t
7427 s,@DEPDIR@,$DEPDIR,;t t
7428 s,@am__include@,$am__include,;t t
7429 s,@am__quote@,$am__quote,;t t
7430 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7431 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7432 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7433 s,@CCDEPMODE@,$CCDEPMODE,;t t
7434 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7435 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7436 s,@CFLAGS@,$CFLAGS,;t t
7437 s,@CPP@,$CPP,;t t
7438 s,@CPPFLAGS@,$CPPFLAGS,;t t
7439 s,@EGREP@,$EGREP,;t t
7440 s,@LN_S@,$LN_S,;t t
7441 s,@RANLIB@,$RANLIB,;t t
7442 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7443 s,@LIBTOOL@,$LIBTOOL,;t t
7444 s,@enable_shared@,$enable_shared,;t t
7445 s,@enable_static@,$enable_static,;t t
7446 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
7447 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
7448 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
7449 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
7450 s,@build_libmudflapth@,$build_libmudflapth,;t t
7451 s,@gcc_version@,$gcc_version,;t t
7452 s,@toolexecdir@,$toolexecdir,;t t
7453 s,@toolexeclibdir@,$toolexeclibdir,;t t
7454 s,@NM@,$NM,;t t
7455 s,@ac_ct_NM@,$ac_ct_NM,;t t
7456 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
7457 s,@LIBOBJS@,$LIBOBJS,;t t
7458 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7459 CEOF
7460
7461 _ACEOF
7462
7463 cat >>$CONFIG_STATUS <<\_ACEOF
7464 # Split the substitutions into bite-sized pieces for seds with
7465 # small command number limits, like on Digital OSF/1 and HP-UX.
7466 ac_max_sed_lines=48
7467 ac_sed_frag=1 # Number of current file.
7468 ac_beg=1 # First line for current file.
7469 ac_end=$ac_max_sed_lines # Line after last line for current file.
7470 ac_more_lines=:
7471 ac_sed_cmds=
7472 while $ac_more_lines; do
7473 if test $ac_beg -gt 1; then
7474 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7475 else
7476 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7477 fi
7478 if test ! -s $tmp/subs.frag; then
7479 ac_more_lines=false
7480 else
7481 # The purpose of the label and of the branching condition is to
7482 # speed up the sed processing (if there are no `@' at all, there
7483 # is no need to browse any of the substitutions).
7484 # These are the two extra sed commands mentioned above.
7485 (echo ':t
7486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7487 if test -z "$ac_sed_cmds"; then
7488 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7489 else
7490 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7491 fi
7492 ac_sed_frag=`expr $ac_sed_frag + 1`
7493 ac_beg=$ac_end
7494 ac_end=`expr $ac_end + $ac_max_sed_lines`
7495 fi
7496 done
7497 if test -z "$ac_sed_cmds"; then
7498 ac_sed_cmds=cat
7499 fi
7500 fi # test -n "$CONFIG_FILES"
7501
7502 _ACEOF
7503 cat >>$CONFIG_STATUS <<\_ACEOF
7504 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7506 case $ac_file in
7507 - | *:- | *:-:* ) # input from stdin
7508 cat >$tmp/stdin
7509 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7511 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7512 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7513 * ) ac_file_in=$ac_file.in ;;
7514 esac
7515
7516 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7517 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7519 X"$ac_file" : 'X\(//\)[^/]' \| \
7520 X"$ac_file" : 'X\(//\)$' \| \
7521 X"$ac_file" : 'X\(/\)' \| \
7522 . : '\(.\)' 2>/dev/null ||
7523 echo X"$ac_file" |
7524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7526 /^X\(\/\/\)$/{ s//\1/; q; }
7527 /^X\(\/\).*/{ s//\1/; q; }
7528 s/.*/./; q'`
7529 { if $as_mkdir_p; then
7530 mkdir -p "$ac_dir"
7531 else
7532 as_dir="$ac_dir"
7533 as_dirs=
7534 while test ! -d "$as_dir"; do
7535 as_dirs="$as_dir $as_dirs"
7536 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7538 X"$as_dir" : 'X\(//\)[^/]' \| \
7539 X"$as_dir" : 'X\(//\)$' \| \
7540 X"$as_dir" : 'X\(/\)' \| \
7541 . : '\(.\)' 2>/dev/null ||
7542 echo X"$as_dir" |
7543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7545 /^X\(\/\/\)$/{ s//\1/; q; }
7546 /^X\(\/\).*/{ s//\1/; q; }
7547 s/.*/./; q'`
7548 done
7549 test ! -n "$as_dirs" || mkdir $as_dirs
7550 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7551 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7552 { (exit 1); exit 1; }; }; }
7553
7554 ac_builddir=.
7555
7556 if test "$ac_dir" != .; then
7557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7558 # A "../" for each directory in $ac_dir_suffix.
7559 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7560 else
7561 ac_dir_suffix= ac_top_builddir=
7562 fi
7563
7564 case $srcdir in
7565 .) # No --srcdir option. We are building in place.
7566 ac_srcdir=.
7567 if test -z "$ac_top_builddir"; then
7568 ac_top_srcdir=.
7569 else
7570 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7571 fi ;;
7572 [\\/]* | ?:[\\/]* ) # Absolute path.
7573 ac_srcdir=$srcdir$ac_dir_suffix;
7574 ac_top_srcdir=$srcdir ;;
7575 *) # Relative path.
7576 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7577 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7578 esac
7579
7580 # Do not use `cd foo && pwd` to compute absolute paths, because
7581 # the directories may not exist.
7582 case `pwd` in
7583 .) ac_abs_builddir="$ac_dir";;
7584 *)
7585 case "$ac_dir" in
7586 .) ac_abs_builddir=`pwd`;;
7587 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7588 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7589 esac;;
7590 esac
7591 case $ac_abs_builddir in
7592 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7593 *)
7594 case ${ac_top_builddir}. in
7595 .) ac_abs_top_builddir=$ac_abs_builddir;;
7596 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7597 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7598 esac;;
7599 esac
7600 case $ac_abs_builddir in
7601 .) ac_abs_srcdir=$ac_srcdir;;
7602 *)
7603 case $ac_srcdir in
7604 .) ac_abs_srcdir=$ac_abs_builddir;;
7605 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7606 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7607 esac;;
7608 esac
7609 case $ac_abs_builddir in
7610 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7611 *)
7612 case $ac_top_srcdir in
7613 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7614 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7615 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7616 esac;;
7617 esac
7618
7619
7620 case $INSTALL in
7621 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7622 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7623 esac
7624
7625 if test x"$ac_file" != x-; then
7626 { echo "$as_me:$LINENO: creating $ac_file" >&5
7627 echo "$as_me: creating $ac_file" >&6;}
7628 rm -f "$ac_file"
7629 fi
7630 # Let's still pretend it is `configure' which instantiates (i.e., don't
7631 # use $as_me), people would be surprised to read:
7632 # /* config.h. Generated by config.status. */
7633 if test x"$ac_file" = x-; then
7634 configure_input=
7635 else
7636 configure_input="$ac_file. "
7637 fi
7638 configure_input=$configure_input"Generated from `echo $ac_file_in |
7639 sed 's,.*/,,'` by configure."
7640
7641 # First look for the input files in the build tree, otherwise in the
7642 # src tree.
7643 ac_file_inputs=`IFS=:
7644 for f in $ac_file_in; do
7645 case $f in
7646 -) echo $tmp/stdin ;;
7647 [\\/$]*)
7648 # Absolute (can't be DOS-style, as IFS=:)
7649 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7650 echo "$as_me: error: cannot find input file: $f" >&2;}
7651 { (exit 1); exit 1; }; }
7652 echo "$f";;
7653 *) # Relative
7654 if test -f "$f"; then
7655 # Build tree
7656 echo "$f"
7657 elif test -f "$srcdir/$f"; then
7658 # Source tree
7659 echo "$srcdir/$f"
7660 else
7661 # /dev/null tree
7662 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7663 echo "$as_me: error: cannot find input file: $f" >&2;}
7664 { (exit 1); exit 1; }; }
7665 fi;;
7666 esac
7667 done` || { (exit 1); exit 1; }
7668 _ACEOF
7669 cat >>$CONFIG_STATUS <<_ACEOF
7670 sed "$ac_vpsub
7671 $extrasub
7672 _ACEOF
7673 cat >>$CONFIG_STATUS <<\_ACEOF
7674 :t
7675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7676 s,@configure_input@,$configure_input,;t t
7677 s,@srcdir@,$ac_srcdir,;t t
7678 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7679 s,@top_srcdir@,$ac_top_srcdir,;t t
7680 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7681 s,@builddir@,$ac_builddir,;t t
7682 s,@abs_builddir@,$ac_abs_builddir,;t t
7683 s,@top_builddir@,$ac_top_builddir,;t t
7684 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7685 s,@INSTALL@,$ac_INSTALL,;t t
7686 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7687 rm -f $tmp/stdin
7688 if test x"$ac_file" != x-; then
7689 mv $tmp/out $ac_file
7690 else
7691 cat $tmp/out
7692 rm -f $tmp/out
7693 fi
7694
7695 done
7696 _ACEOF
7697 cat >>$CONFIG_STATUS <<\_ACEOF
7698
7699 #
7700 # CONFIG_HEADER section.
7701 #
7702
7703 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7704 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7705 #
7706 # ac_d sets the value in "#define NAME VALUE" lines.
7707 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7708 ac_dB='[ ].*$,\1#\2'
7709 ac_dC=' '
7710 ac_dD=',;t'
7711 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7712 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7713 ac_uB='$,\1#\2define\3'
7714 ac_uC=' '
7715 ac_uD=',;t'
7716
7717 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7719 case $ac_file in
7720 - | *:- | *:-:* ) # input from stdin
7721 cat >$tmp/stdin
7722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726 * ) ac_file_in=$ac_file.in ;;
7727 esac
7728
7729 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7730 echo "$as_me: creating $ac_file" >&6;}
7731
7732 # First look for the input files in the build tree, otherwise in the
7733 # src tree.
7734 ac_file_inputs=`IFS=:
7735 for f in $ac_file_in; do
7736 case $f in
7737 -) echo $tmp/stdin ;;
7738 [\\/$]*)
7739 # Absolute (can't be DOS-style, as IFS=:)
7740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7741 echo "$as_me: error: cannot find input file: $f" >&2;}
7742 { (exit 1); exit 1; }; }
7743 # Do quote $f, to prevent DOS paths from being IFS'd.
7744 echo "$f";;
7745 *) # Relative
7746 if test -f "$f"; then
7747 # Build tree
7748 echo "$f"
7749 elif test -f "$srcdir/$f"; then
7750 # Source tree
7751 echo "$srcdir/$f"
7752 else
7753 # /dev/null tree
7754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7755 echo "$as_me: error: cannot find input file: $f" >&2;}
7756 { (exit 1); exit 1; }; }
7757 fi;;
7758 esac
7759 done` || { (exit 1); exit 1; }
7760 # Remove the trailing spaces.
7761 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7762
7763 _ACEOF
7764
7765 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7766 # `conftest.undefs', that substitutes the proper values into
7767 # config.h.in to produce config.h. The first handles `#define'
7768 # templates, and the second `#undef' templates.
7769 # And first: Protect against being on the right side of a sed subst in
7770 # config.status. Protect against being in an unquoted here document
7771 # in config.status.
7772 rm -f conftest.defines conftest.undefs
7773 # Using a here document instead of a string reduces the quoting nightmare.
7774 # Putting comments in sed scripts is not portable.
7775 #
7776 # `end' is used to avoid that the second main sed command (meant for
7777 # 0-ary CPP macros) applies to n-ary macro definitions.
7778 # See the Autoconf documentation for `clear'.
7779 cat >confdef2sed.sed <<\_ACEOF
7780 s/[\\&,]/\\&/g
7781 s,[\\$`],\\&,g
7782 t clear
7783 : clear
7784 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7785 t end
7786 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7787 : end
7788 _ACEOF
7789 # If some macros were called several times there might be several times
7790 # the same #defines, which is useless. Nevertheless, we may not want to
7791 # sort them, since we want the *last* AC-DEFINE to be honored.
7792 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7793 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7794 rm -f confdef2sed.sed
7795
7796 # This sed command replaces #undef with comments. This is necessary, for
7797 # example, in the case of _POSIX_SOURCE, which is predefined and required
7798 # on some systems where configure will not decide to define it.
7799 cat >>conftest.undefs <<\_ACEOF
7800 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7801 _ACEOF
7802
7803 # Break up conftest.defines because some shells have a limit on the size
7804 # of here documents, and old seds have small limits too (100 cmds).
7805 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7806 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7807 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7808 echo ' :' >>$CONFIG_STATUS
7809 rm -f conftest.tail
7810 while grep . conftest.defines >/dev/null
7811 do
7812 # Write a limited-size here document to $tmp/defines.sed.
7813 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7814 # Speed up: don't consider the non `#define' lines.
7815 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7816 # Work around the forget-to-reset-the-flag bug.
7817 echo 't clr' >>$CONFIG_STATUS
7818 echo ': clr' >>$CONFIG_STATUS
7819 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7820 echo 'CEOF
7821 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7822 rm -f $tmp/in
7823 mv $tmp/out $tmp/in
7824 ' >>$CONFIG_STATUS
7825 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7826 rm -f conftest.defines
7827 mv conftest.tail conftest.defines
7828 done
7829 rm -f conftest.defines
7830 echo ' fi # grep' >>$CONFIG_STATUS
7831 echo >>$CONFIG_STATUS
7832
7833 # Break up conftest.undefs because some shells have a limit on the size
7834 # of here documents, and old seds have small limits too (100 cmds).
7835 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7836 rm -f conftest.tail
7837 while grep . conftest.undefs >/dev/null
7838 do
7839 # Write a limited-size here document to $tmp/undefs.sed.
7840 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7841 # Speed up: don't consider the non `#undef'
7842 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7843 # Work around the forget-to-reset-the-flag bug.
7844 echo 't clr' >>$CONFIG_STATUS
7845 echo ': clr' >>$CONFIG_STATUS
7846 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7847 echo 'CEOF
7848 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7849 rm -f $tmp/in
7850 mv $tmp/out $tmp/in
7851 ' >>$CONFIG_STATUS
7852 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7853 rm -f conftest.undefs
7854 mv conftest.tail conftest.undefs
7855 done
7856 rm -f conftest.undefs
7857
7858 cat >>$CONFIG_STATUS <<\_ACEOF
7859 # Let's still pretend it is `configure' which instantiates (i.e., don't
7860 # use $as_me), people would be surprised to read:
7861 # /* config.h. Generated by config.status. */
7862 if test x"$ac_file" = x-; then
7863 echo "/* Generated by configure. */" >$tmp/config.h
7864 else
7865 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7866 fi
7867 cat $tmp/in >>$tmp/config.h
7868 rm -f $tmp/in
7869 if test x"$ac_file" != x-; then
7870 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7871 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7872 echo "$as_me: $ac_file is unchanged" >&6;}
7873 else
7874 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7876 X"$ac_file" : 'X\(//\)[^/]' \| \
7877 X"$ac_file" : 'X\(//\)$' \| \
7878 X"$ac_file" : 'X\(/\)' \| \
7879 . : '\(.\)' 2>/dev/null ||
7880 echo X"$ac_file" |
7881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7883 /^X\(\/\/\)$/{ s//\1/; q; }
7884 /^X\(\/\).*/{ s//\1/; q; }
7885 s/.*/./; q'`
7886 { if $as_mkdir_p; then
7887 mkdir -p "$ac_dir"
7888 else
7889 as_dir="$ac_dir"
7890 as_dirs=
7891 while test ! -d "$as_dir"; do
7892 as_dirs="$as_dir $as_dirs"
7893 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7895 X"$as_dir" : 'X\(//\)[^/]' \| \
7896 X"$as_dir" : 'X\(//\)$' \| \
7897 X"$as_dir" : 'X\(/\)' \| \
7898 . : '\(.\)' 2>/dev/null ||
7899 echo X"$as_dir" |
7900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7902 /^X\(\/\/\)$/{ s//\1/; q; }
7903 /^X\(\/\).*/{ s//\1/; q; }
7904 s/.*/./; q'`
7905 done
7906 test ! -n "$as_dirs" || mkdir $as_dirs
7907 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7908 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7909 { (exit 1); exit 1; }; }; }
7910
7911 rm -f $ac_file
7912 mv $tmp/config.h $ac_file
7913 fi
7914 else
7915 cat $tmp/config.h
7916 rm -f $tmp/config.h
7917 fi
7918 # Compute $ac_file's index in $config_headers.
7919 _am_stamp_count=1
7920 for _am_header in $config_headers :; do
7921 case $_am_header in
7922 $ac_file | $ac_file:* )
7923 break ;;
7924 * )
7925 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7926 esac
7927 done
7928 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7929 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7930 X$ac_file : 'X\(//\)[^/]' \| \
7931 X$ac_file : 'X\(//\)$' \| \
7932 X$ac_file : 'X\(/\)' \| \
7933 . : '\(.\)' 2>/dev/null ||
7934 echo X$ac_file |
7935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7937 /^X\(\/\/\)$/{ s//\1/; q; }
7938 /^X\(\/\).*/{ s//\1/; q; }
7939 s/.*/./; q'`/stamp-h$_am_stamp_count
7940 done
7941 _ACEOF
7942 cat >>$CONFIG_STATUS <<\_ACEOF
7943
7944 #
7945 # CONFIG_COMMANDS section.
7946 #
7947 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7948 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7949 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7950 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7951 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7952 X"$ac_dest" : 'X\(//\)[^/]' \| \
7953 X"$ac_dest" : 'X\(//\)$' \| \
7954 X"$ac_dest" : 'X\(/\)' \| \
7955 . : '\(.\)' 2>/dev/null ||
7956 echo X"$ac_dest" |
7957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7959 /^X\(\/\/\)$/{ s//\1/; q; }
7960 /^X\(\/\).*/{ s//\1/; q; }
7961 s/.*/./; q'`
7962 { if $as_mkdir_p; then
7963 mkdir -p "$ac_dir"
7964 else
7965 as_dir="$ac_dir"
7966 as_dirs=
7967 while test ! -d "$as_dir"; do
7968 as_dirs="$as_dir $as_dirs"
7969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7971 X"$as_dir" : 'X\(//\)[^/]' \| \
7972 X"$as_dir" : 'X\(//\)$' \| \
7973 X"$as_dir" : 'X\(/\)' \| \
7974 . : '\(.\)' 2>/dev/null ||
7975 echo X"$as_dir" |
7976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7978 /^X\(\/\/\)$/{ s//\1/; q; }
7979 /^X\(\/\).*/{ s//\1/; q; }
7980 s/.*/./; q'`
7981 done
7982 test ! -n "$as_dirs" || mkdir $as_dirs
7983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7985 { (exit 1); exit 1; }; }; }
7986
7987 ac_builddir=.
7988
7989 if test "$ac_dir" != .; then
7990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7991 # A "../" for each directory in $ac_dir_suffix.
7992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7993 else
7994 ac_dir_suffix= ac_top_builddir=
7995 fi
7996
7997 case $srcdir in
7998 .) # No --srcdir option. We are building in place.
7999 ac_srcdir=.
8000 if test -z "$ac_top_builddir"; then
8001 ac_top_srcdir=.
8002 else
8003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8004 fi ;;
8005 [\\/]* | ?:[\\/]* ) # Absolute path.
8006 ac_srcdir=$srcdir$ac_dir_suffix;
8007 ac_top_srcdir=$srcdir ;;
8008 *) # Relative path.
8009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8011 esac
8012
8013 # Do not use `cd foo && pwd` to compute absolute paths, because
8014 # the directories may not exist.
8015 case `pwd` in
8016 .) ac_abs_builddir="$ac_dir";;
8017 *)
8018 case "$ac_dir" in
8019 .) ac_abs_builddir=`pwd`;;
8020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8022 esac;;
8023 esac
8024 case $ac_abs_builddir in
8025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8026 *)
8027 case ${ac_top_builddir}. in
8028 .) ac_abs_top_builddir=$ac_abs_builddir;;
8029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8031 esac;;
8032 esac
8033 case $ac_abs_builddir in
8034 .) ac_abs_srcdir=$ac_srcdir;;
8035 *)
8036 case $ac_srcdir in
8037 .) ac_abs_srcdir=$ac_abs_builddir;;
8038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8040 esac;;
8041 esac
8042 case $ac_abs_builddir in
8043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8044 *)
8045 case $ac_top_srcdir in
8046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8049 esac;;
8050 esac
8051
8052
8053 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8054 echo "$as_me: executing $ac_dest commands" >&6;}
8055 case $ac_dest in
8056 default-1 )
8057 # Only add multilib support code if we just rebuilt the top-level
8058 # Makefile.
8059 case " $CONFIG_FILES " in
8060 *" Makefile "*)
8061 ac_file=Makefile . ${multi_basedir}/config-ml.in
8062 ;;
8063 esac ;;
8064 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8065 # Strip MF so we end up with the name of the file.
8066 mf=`echo "$mf" | sed -e 's/:.*$//'`
8067 # Check whether this is an Automake generated Makefile or not.
8068 # We used to match only the files named `Makefile.in', but
8069 # some people rename them; so instead we look at the file content.
8070 # Grep'ing the first line is not enough: some people post-process
8071 # each Makefile.in and add a new line on top of each file to say so.
8072 # So let's grep whole file.
8073 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8074 dirpart=`(dirname "$mf") 2>/dev/null ||
8075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8076 X"$mf" : 'X\(//\)[^/]' \| \
8077 X"$mf" : 'X\(//\)$' \| \
8078 X"$mf" : 'X\(/\)' \| \
8079 . : '\(.\)' 2>/dev/null ||
8080 echo X"$mf" |
8081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8083 /^X\(\/\/\)$/{ s//\1/; q; }
8084 /^X\(\/\).*/{ s//\1/; q; }
8085 s/.*/./; q'`
8086 else
8087 continue
8088 fi
8089 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8090 # Extract the definition of DEP_FILES from the Makefile without
8091 # running `make'.
8092 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8093 test -z "$DEPDIR" && continue
8094 # When using ansi2knr, U may be empty or an underscore; expand it
8095 U=`sed -n 's/^U = //p' < "$mf"`
8096 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8097 # We invoke sed twice because it is the simplest approach to
8098 # changing $(DEPDIR) to its actual value in the expansion.
8099 for file in `sed -n '
8100 /^DEP_FILES = .*\\\\$/ {
8101 s/^DEP_FILES = //
8102 :loop
8103 s/\\\\$//
8104 p
8105 n
8106 /\\\\$/ b loop
8107 p
8108 }
8109 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8110 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8111 # Make sure the directory exists.
8112 test -f "$dirpart/$file" && continue
8113 fdir=`(dirname "$file") 2>/dev/null ||
8114 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8115 X"$file" : 'X\(//\)[^/]' \| \
8116 X"$file" : 'X\(//\)$' \| \
8117 X"$file" : 'X\(/\)' \| \
8118 . : '\(.\)' 2>/dev/null ||
8119 echo X"$file" |
8120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8122 /^X\(\/\/\)$/{ s//\1/; q; }
8123 /^X\(\/\).*/{ s//\1/; q; }
8124 s/.*/./; q'`
8125 { if $as_mkdir_p; then
8126 mkdir -p $dirpart/$fdir
8127 else
8128 as_dir=$dirpart/$fdir
8129 as_dirs=
8130 while test ! -d "$as_dir"; do
8131 as_dirs="$as_dir $as_dirs"
8132 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8134 X"$as_dir" : 'X\(//\)[^/]' \| \
8135 X"$as_dir" : 'X\(//\)$' \| \
8136 X"$as_dir" : 'X\(/\)' \| \
8137 . : '\(.\)' 2>/dev/null ||
8138 echo X"$as_dir" |
8139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8141 /^X\(\/\/\)$/{ s//\1/; q; }
8142 /^X\(\/\).*/{ s//\1/; q; }
8143 s/.*/./; q'`
8144 done
8145 test ! -n "$as_dirs" || mkdir $as_dirs
8146 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8147 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8148 { (exit 1); exit 1; }; }; }
8149
8150 # echo "creating $dirpart/$file"
8151 echo '# dummy' > "$dirpart/$file"
8152 done
8153 done
8154 ;;
8155 esac
8156 done
8157 _ACEOF
8158
8159 cat >>$CONFIG_STATUS <<\_ACEOF
8160
8161 { (exit 0); exit 0; }
8162 _ACEOF
8163 chmod +x $CONFIG_STATUS
8164 ac_clean_files=$ac_clean_files_save
8165
8166
8167 # configure is writing to config.log, and then calls config.status.
8168 # config.status does its own redirection, appending to config.log.
8169 # Unfortunately, on DOS this fails, as config.log is still kept open
8170 # by configure, so config.status won't be able to write to it; its
8171 # output is simply discarded. So we exec the FD to /dev/null,
8172 # effectively closing config.log, so it can be properly (re)opened and
8173 # appended to by config.status. When coming back to configure, we
8174 # need to make the FD available again.
8175 if test "$no_create" != yes; then
8176 ac_cs_success=:
8177 ac_config_status_args=
8178 test "$silent" = yes &&
8179 ac_config_status_args="$ac_config_status_args --quiet"
8180 exec 5>/dev/null
8181 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8182 exec 5>>config.log
8183 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8184 # would make configure fail if this is the last instruction.
8185 $ac_cs_success || { (exit 1); exit 1; }
8186 fi
8187