OSDN Git Service

* c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
[pf3gnuchains/gcc-fork.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"                   || test ! -s conftest.err'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; } &&
2497          { ac_try='test -s conftest.$ac_objext'
2498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499   (eval $ac_try) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; }; then
2503   ac_compiler_gnu=yes
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_compiler_gnu=no
2509 fi
2510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2512
2513 fi
2514 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2515 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2516 GCC=`test $ac_compiler_gnu = yes && echo yes`
2517 ac_test_CFLAGS=${CFLAGS+set}
2518 ac_save_CFLAGS=$CFLAGS
2519 CFLAGS="-g"
2520 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2522 if test "${ac_cv_prog_cc_g+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531
2532 int
2533 main ()
2534 {
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; } &&
2555          { ac_try='test -s conftest.$ac_objext'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; }; then
2561   ac_cv_prog_cc_g=yes
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 ac_cv_prog_cc_g=no
2567 fi
2568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2572 if test "$ac_test_CFLAGS" = set; then
2573   CFLAGS=$ac_save_CFLAGS
2574 elif test $ac_cv_prog_cc_g = yes; then
2575   if test "$GCC" = yes; then
2576     CFLAGS="-g -O2"
2577   else
2578     CFLAGS="-g"
2579   fi
2580 else
2581   if test "$GCC" = yes; then
2582     CFLAGS="-O2"
2583   else
2584     CFLAGS=
2585   fi
2586 fi
2587 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2588 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2589 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2590   echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592   ac_cv_prog_cc_stdc=no
2593 ac_save_CC=$CC
2594 cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h.  */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h.  */
2600 #include <stdarg.h>
2601 #include <stdio.h>
2602 #include <sys/types.h>
2603 #include <sys/stat.h>
2604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2605 struct buf { int x; };
2606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2607 static char *e (p, i)
2608      char **p;
2609      int i;
2610 {
2611   return p[i];
2612 }
2613 static char *f (char * (*g) (char **, int), char **p, ...)
2614 {
2615   char *s;
2616   va_list v;
2617   va_start (v,p);
2618   s = g (p, va_arg (v,int));
2619   va_end (v);
2620   return s;
2621 }
2622
2623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2624    function prototypes and stuff, but not '\xHH' hex character constants.
2625    These don't provoke an error unfortunately, instead are silently treated
2626    as 'x'.  The following induces an error, until -std1 is added to get
2627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2628    array size at least.  It's necessary to write '\x00'==0 to get something
2629    that's true only with -std1.  */
2630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2631
2632 int test (int i, double x);
2633 struct s1 {int (*f) (int a);};
2634 struct s2 {int (*f) (double a);};
2635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2636 int argc;
2637 char **argv;
2638 int
2639 main ()
2640 {
2641 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 # Don't try gcc -ansi; that turns off useful extensions and
2647 # breaks some systems' header files.
2648 # AIX                   -qlanglvl=ansi
2649 # Ultrix and OSF/1      -std1
2650 # HP-UX 10.20 and later -Ae
2651 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2652 # SVR4                  -Xc -D__EXTENSIONS__
2653 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2654 do
2655   CC="$ac_save_CC $ac_arg"
2656   rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658   (eval $ac_compile) 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_stdc=$ac_arg
2678 break
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 fi
2684 rm -f conftest.err conftest.$ac_objext
2685 done
2686 rm -f conftest.$ac_ext conftest.$ac_objext
2687 CC=$ac_save_CC
2688
2689 fi
2690
2691 case "x$ac_cv_prog_cc_stdc" in
2692   x|xno)
2693     echo "$as_me:$LINENO: result: none needed" >&5
2694 echo "${ECHO_T}none needed" >&6 ;;
2695   *)
2696     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2698     CC="$CC $ac_cv_prog_cc_stdc" ;;
2699 esac
2700
2701 # Some people use a C++ compiler to compile C.  Since we use `exit',
2702 # in C++ we need to declare it.  In case someone uses the same compiler
2703 # for both compiling C and C++ we need to have the C++ compiler decide
2704 # the declaration of exit, since it's the most demanding environment.
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #ifndef __cplusplus
2707   choke me
2708 #endif
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712   (eval $ac_compile) 2>conftest.er1
2713   ac_status=$?
2714   grep -v '^ *+' conftest.er1 >conftest.err
2715   rm -f conftest.er1
2716   cat conftest.err >&5
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); } &&
2719          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   for ac_declaration in \
2732    '' \
2733    'extern "C" void std::exit (int) throw (); using std::exit;' \
2734    'extern "C" void std::exit (int); using std::exit;' \
2735    'extern "C" void exit (int) throw ();' \
2736    'extern "C" void exit (int);' \
2737    'void exit (int);'
2738 do
2739   cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 $ac_declaration
2746 #include <stdlib.h>
2747 int
2748 main ()
2749 {
2750 exit (42);
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; } &&
2770          { ac_try='test -s conftest.$ac_objext'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; }; then
2776   :
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 continue
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790 $ac_declaration
2791 int
2792 main ()
2793 {
2794 exit (42);
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>conftest.er1
2802   ac_status=$?
2803   grep -v '^ *+' conftest.er1 >conftest.err
2804   rm -f conftest.er1
2805   cat conftest.err >&5
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; } &&
2814          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2820   break
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 fi
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 done
2828 rm -f conftest*
2829 if test -n "$ac_declaration"; then
2830   echo '#ifdef __cplusplus' >>confdefs.h
2831   echo $ac_declaration      >>confdefs.h
2832   echo '#endif'             >>confdefs.h
2833 fi
2834
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 fi
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_ext=c
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 DEPDIR="${am__leading_dot}deps"
2847
2848           ac_config_commands="$ac_config_commands depfiles"
2849
2850
2851 am_make=${MAKE-make}
2852 cat > confinc << 'END'
2853 am__doit:
2854         @echo done
2855 .PHONY: am__doit
2856 END
2857 # If we don't find an include directive, just comment out the code.
2858 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2859 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2860 am__include="#"
2861 am__quote=
2862 _am_result=none
2863 # First try GNU make style include.
2864 echo "include confinc" > confmf
2865 # We grep out `Entering directory' and `Leaving directory'
2866 # messages which can occur if `w' ends up in MAKEFLAGS.
2867 # In particular we don't look at `^make:' because GNU make might
2868 # be invoked under some other name (usually "gmake"), in which
2869 # case it prints its new name instead of `make'.
2870 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2871    am__include=include
2872    am__quote=
2873    _am_result=GNU
2874 fi
2875 # Now try BSD make style include.
2876 if test "$am__include" = "#"; then
2877    echo '.include "confinc"' > confmf
2878    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2879       am__include=.include
2880       am__quote="\""
2881       _am_result=BSD
2882    fi
2883 fi
2884
2885
2886 echo "$as_me:$LINENO: result: $_am_result" >&5
2887 echo "${ECHO_T}$_am_result" >&6
2888 rm -f confinc confmf
2889
2890 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2891 if test "${enable_dependency_tracking+set}" = set; then
2892   enableval="$enable_dependency_tracking"
2893
2894 fi;
2895 if test "x$enable_dependency_tracking" != xno; then
2896   am_depcomp="$ac_aux_dir/depcomp"
2897   AMDEPBACKSLASH='\'
2898 fi
2899
2900
2901 if test "x$enable_dependency_tracking" != xno; then
2902   AMDEP_TRUE=
2903   AMDEP_FALSE='#'
2904 else
2905   AMDEP_TRUE='#'
2906   AMDEP_FALSE=
2907 fi
2908
2909
2910
2911
2912 depcc="$CC"   am_compiler_list=
2913
2914 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2915 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2916 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2920   # We make a subdir and do the tests there.  Otherwise we can end up
2921   # making bogus files that we don't know about and never remove.  For
2922   # instance it was reported that on HP-UX the gcc test will end up
2923   # making a dummy file named `D' -- because `-MD' means `put the output
2924   # in D'.
2925   mkdir conftest.dir
2926   # Copy depcomp to subdir because otherwise we won't find it if we're
2927   # using a relative directory.
2928   cp "$am_depcomp" conftest.dir
2929   cd conftest.dir
2930   # We will build objects and dependencies in a subdirectory because
2931   # it helps to detect inapplicable dependency modes.  For instance
2932   # both Tru64's cc and ICC support -MD to output dependencies as a
2933   # side effect of compilation, but ICC will put the dependencies in
2934   # the current directory while Tru64 will put them in the object
2935   # directory.
2936   mkdir sub
2937
2938   am_cv_CC_dependencies_compiler_type=none
2939   if test "$am_compiler_list" = ""; then
2940      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2941   fi
2942   for depmode in $am_compiler_list; do
2943     # Setup a source with many dependencies, because some compilers
2944     # like to wrap large dependency lists on column 80 (with \), and
2945     # we should not choose a depcomp mode which is confused by this.
2946     #
2947     # We need to recreate these files for each test, as the compiler may
2948     # overwrite some of them when testing with obscure command lines.
2949     # This happens at least with the AIX C compiler.
2950     : > sub/conftest.c
2951     for i in 1 2 3 4 5 6; do
2952       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2953       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2954       # Solaris 8's {/usr,}/bin/sh.
2955       touch sub/conftst$i.h
2956     done
2957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2958
2959     case $depmode in
2960     nosideeffect)
2961       # after this tag, mechanisms are not by side-effect, so they'll
2962       # only be used when explicitly requested
2963       if test "x$enable_dependency_tracking" = xyes; then
2964         continue
2965       else
2966         break
2967       fi
2968       ;;
2969     none) break ;;
2970     esac
2971     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2972     # mode.  It turns out that the SunPro C++ compiler does not properly
2973     # handle `-M -o', and we need to detect this.
2974     if depmode=$depmode \
2975        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2976        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2977        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2978          >/dev/null 2>conftest.err &&
2979        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2980        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2981        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2982       # icc doesn't choke on unknown options, it will just issue warnings
2983       # or remarks (even with -Werror).  So we grep stderr for any message
2984       # that says an option was ignored or not supported.
2985       # When given -MP, icc 7.0 and 7.1 complain thusly:
2986       #   icc: Command line warning: ignoring option '-M'; no argument required
2987       # The diagnosis changed in icc 8.0:
2988       #   icc: Command line remark: option '-MP' not supported
2989       if (grep 'ignoring option' conftest.err ||
2990           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2991         am_cv_CC_dependencies_compiler_type=$depmode
2992         break
2993       fi
2994     fi
2995   done
2996
2997   cd ..
2998   rm -rf conftest.dir
2999 else
3000   am_cv_CC_dependencies_compiler_type=none
3001 fi
3002
3003 fi
3004 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3005 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3006 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3007
3008
3009
3010 if
3011   test "x$enable_dependency_tracking" != xno \
3012   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3013   am__fastdepCC_TRUE=
3014   am__fastdepCC_FALSE='#'
3015 else
3016   am__fastdepCC_TRUE='#'
3017   am__fastdepCC_FALSE=
3018 fi
3019
3020
3021
3022
3023
3024
3025 if test "x$GCC" != "xyes"; then
3026   { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3027 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3028    { (exit 1); exit 1; }; }
3029 fi
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3036 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3037 # On Suns, sometimes $CPP names a directory.
3038 if test -n "$CPP" && test -d "$CPP"; then
3039   CPP=
3040 fi
3041 if test -z "$CPP"; then
3042   if test "${ac_cv_prog_CPP+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045       # Double quotes because CPP needs to be expanded
3046     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3047     do
3048       ac_preproc_ok=false
3049 for ac_c_preproc_warn_flag in '' yes
3050 do
3051   # Use a header file that comes with gcc, so configuring glibc
3052   # with a fresh cross-compiler works.
3053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054   # <limits.h> exists even on freestanding compilers.
3055   # On the NeXT, cc -E runs the code through the compiler's parser,
3056   # not just through cpp. "Syntax error" is here to catch this case.
3057   cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063 #ifdef __STDC__
3064 # include <limits.h>
3065 #else
3066 # include <assert.h>
3067 #endif
3068                      Syntax error
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } >/dev/null; then
3078   if test -s conftest.err; then
3079     ac_cpp_err=$ac_c_preproc_warn_flag
3080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081   else
3082     ac_cpp_err=
3083   fi
3084 else
3085   ac_cpp_err=yes
3086 fi
3087 if test -z "$ac_cpp_err"; then
3088   :
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093   # Broken: fails on valid input.
3094 continue
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098   # OK, works on sane cases.  Now check whether non-existent headers
3099   # can be detected and how.
3100   cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106 #include <ac_nonexistent.h>
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110   ac_status=$?
3111   grep -v '^ *+' conftest.er1 >conftest.err
3112   rm -f conftest.er1
3113   cat conftest.err >&5
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } >/dev/null; then
3116   if test -s conftest.err; then
3117     ac_cpp_err=$ac_c_preproc_warn_flag
3118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119   else
3120     ac_cpp_err=
3121   fi
3122 else
3123   ac_cpp_err=yes
3124 fi
3125 if test -z "$ac_cpp_err"; then
3126   # Broken: success on invalid input.
3127 continue
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132   # Passes both tests.
3133 ac_preproc_ok=:
3134 break
3135 fi
3136 rm -f conftest.err conftest.$ac_ext
3137
3138 done
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3142   break
3143 fi
3144
3145     done
3146     ac_cv_prog_CPP=$CPP
3147
3148 fi
3149   CPP=$ac_cv_prog_CPP
3150 else
3151   ac_cv_prog_CPP=$CPP
3152 fi
3153 echo "$as_me:$LINENO: result: $CPP" >&5
3154 echo "${ECHO_T}$CPP" >&6
3155 ac_preproc_ok=false
3156 for ac_c_preproc_warn_flag in '' yes
3157 do
3158   # Use a header file that comes with gcc, so configuring glibc
3159   # with a fresh cross-compiler works.
3160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161   # <limits.h> exists even on freestanding compilers.
3162   # On the NeXT, cc -E runs the code through the compiler's parser,
3163   # not just through cpp. "Syntax error" is here to catch this case.
3164   cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 #ifdef __STDC__
3171 # include <limits.h>
3172 #else
3173 # include <assert.h>
3174 #endif
3175                      Syntax error
3176 _ACEOF
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } >/dev/null; then
3185   if test -s conftest.err; then
3186     ac_cpp_err=$ac_c_preproc_warn_flag
3187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188   else
3189     ac_cpp_err=
3190   fi
3191 else
3192   ac_cpp_err=yes
3193 fi
3194 if test -z "$ac_cpp_err"; then
3195   :
3196 else
3197   echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200   # Broken: fails on valid input.
3201 continue
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205   # OK, works on sane cases.  Now check whether non-existent headers
3206   # can be detected and how.
3207   cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213 #include <ac_nonexistent.h>
3214 _ACEOF
3215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217   ac_status=$?
3218   grep -v '^ *+' conftest.er1 >conftest.err
3219   rm -f conftest.er1
3220   cat conftest.err >&5
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); } >/dev/null; then
3223   if test -s conftest.err; then
3224     ac_cpp_err=$ac_c_preproc_warn_flag
3225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3226   else
3227     ac_cpp_err=
3228   fi
3229 else
3230   ac_cpp_err=yes
3231 fi
3232 if test -z "$ac_cpp_err"; then
3233   # Broken: success on invalid input.
3234 continue
3235 else
3236   echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239   # Passes both tests.
3240 ac_preproc_ok=:
3241 break
3242 fi
3243 rm -f conftest.err conftest.$ac_ext
3244
3245 done
3246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247 rm -f conftest.err conftest.$ac_ext
3248 if $ac_preproc_ok; then
3249   :
3250 else
3251   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3252 See \`config.log' for more details." >&5
3253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3254 See \`config.log' for more details." >&2;}
3255    { (exit 1); exit 1; }; }
3256 fi
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3266 # symbol interposition.  We disable shared libraries for these.
3267 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3268 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3269
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 #define _GNU_SOURCE
3278 #include <dlfcn.h>
3279
3280 int
3281 main ()
3282 {
3283 void *foo = dlsym (RTLD_NEXT, "exit");
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290   (eval $ac_compile) 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } &&
3297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299   (eval $ac_try) 2>&5
3300   ac_status=$?
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); }; } &&
3303          { ac_try='test -s conftest.$ac_objext'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; }; then
3309   echo "$as_me:$LINENO: result: yes" >&5
3310 echo "${ECHO_T}yes" >&6
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 enable_shared=no
3318 fi
3319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320
3321
3322 echo "$as_me:$LINENO: checking for egrep" >&5
3323 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3324 if test "${ac_cv_prog_egrep+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3328     then ac_cv_prog_egrep='grep -E'
3329     else ac_cv_prog_egrep='egrep'
3330     fi
3331 fi
3332 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3333 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3334  EGREP=$ac_cv_prog_egrep
3335
3336
3337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3339 if test "${ac_cv_header_stdc+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h.  */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h.  */
3348 #include <stdlib.h>
3349 #include <stdarg.h>
3350 #include <string.h>
3351 #include <float.h>
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3363   (eval $ac_compile) 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } &&
3370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372   (eval $ac_try) 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; } &&
3376          { ac_try='test -s conftest.$ac_objext'
3377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378   (eval $ac_try) 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; }; then
3382   ac_cv_header_stdc=yes
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 ac_cv_header_stdc=no
3388 fi
3389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390
3391 if test $ac_cv_header_stdc = yes; then
3392   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <string.h>
3400
3401 _ACEOF
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403   $EGREP "memchr" >/dev/null 2>&1; then
3404   :
3405 else
3406   ac_cv_header_stdc=no
3407 fi
3408 rm -f conftest*
3409
3410 fi
3411
3412 if test $ac_cv_header_stdc = yes; then
3413   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #include <stdlib.h>
3421
3422 _ACEOF
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424   $EGREP "free" >/dev/null 2>&1; then
3425   :
3426 else
3427   ac_cv_header_stdc=no
3428 fi
3429 rm -f conftest*
3430
3431 fi
3432
3433 if test $ac_cv_header_stdc = yes; then
3434   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3435   if test "$cross_compiling" = yes; then
3436   :
3437 else
3438   cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444 #include <ctype.h>
3445 #if ((' ' & 0x0FF) == 0x020)
3446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3448 #else
3449 # define ISLOWER(c) \
3450                    (('a' <= (c) && (c) <= 'i') \
3451                      || ('j' <= (c) && (c) <= 'r') \
3452                      || ('s' <= (c) && (c) <= 'z'))
3453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3454 #endif
3455
3456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3457 int
3458 main ()
3459 {
3460   int i;
3461   for (i = 0; i < 256; i++)
3462     if (XOR (islower (i), ISLOWER (i))
3463         || toupper (i) != TOUPPER (i))
3464       exit(2);
3465   exit (0);
3466 }
3467 _ACEOF
3468 rm -f conftest$ac_exeext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470   (eval $ac_link) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475   (eval $ac_try) 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; }; then
3479   :
3480 else
3481   echo "$as_me: program exited with status $ac_status" >&5
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ( exit $ac_status )
3486 ac_cv_header_stdc=no
3487 fi
3488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 fi
3491 fi
3492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3494 if test $ac_cv_header_stdc = yes; then
3495
3496 cat >>confdefs.h <<\_ACEOF
3497 #define STDC_HEADERS 1
3498 _ACEOF
3499
3500 fi
3501
3502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3513                   inttypes.h stdint.h unistd.h
3514 do
3515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3516 echo "$as_me:$LINENO: checking for $ac_header" >&5
3517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3519   echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521   cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 $ac_includes_default
3528
3529 #include <$ac_header>
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533   (eval $ac_compile) 2>conftest.er1
3534   ac_status=$?
3535   grep -v '^ *+' conftest.er1 >conftest.err
3536   rm -f conftest.er1
3537   cat conftest.err >&5
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); } &&
3540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542   (eval $ac_try) 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; } &&
3546          { ac_try='test -s conftest.$ac_objext'
3547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548   (eval $ac_try) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552   eval "$as_ac_Header=yes"
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 eval "$as_ac_Header=no"
3558 fi
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 fi
3561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3564   cat >>confdefs.h <<_ACEOF
3565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3566 _ACEOF
3567
3568 fi
3569
3570 done
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h \
3586   netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h sys/socket.h ctype.h
3587 do
3588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3590   echo "$as_me:$LINENO: checking for $ac_header" >&5
3591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 fi
3595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3597 else
3598   # Is the header compilable?
3599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 $ac_includes_default
3608 #include <$ac_header>
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612   (eval $ac_compile) 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621   (eval $ac_try) 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); }; } &&
3625          { ac_try='test -s conftest.$ac_objext'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; }; then
3631   ac_header_compiler=yes
3632 else
3633   echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 ac_header_compiler=no
3637 fi
3638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3640 echo "${ECHO_T}$ac_header_compiler" >&6
3641
3642 # Is the header present?
3643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651 #include <$ac_header>
3652 _ACEOF
3653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } >/dev/null; then
3661   if test -s conftest.err; then
3662     ac_cpp_err=$ac_c_preproc_warn_flag
3663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664   else
3665     ac_cpp_err=
3666   fi
3667 else
3668   ac_cpp_err=yes
3669 fi
3670 if test -z "$ac_cpp_err"; then
3671   ac_header_preproc=yes
3672 else
3673   echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676   ac_header_preproc=no
3677 fi
3678 rm -f conftest.err conftest.$ac_ext
3679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3680 echo "${ECHO_T}$ac_header_preproc" >&6
3681
3682 # So?  What about this header?
3683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3684   yes:no: )
3685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3689     ac_header_preproc=yes
3690     ;;
3691   no:yes:* )
3692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3704     (
3705       cat <<\_ASBOX
3706 ## ------------------------------------- ##
3707 ## Report this to the libmudflap lists.  ##
3708 ## ------------------------------------- ##
3709 _ASBOX
3710     ) |
3711       sed "s/^/$as_me: WARNING:     /" >&2
3712     ;;
3713 esac
3714 echo "$as_me:$LINENO: checking for $ac_header" >&5
3715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   eval "$as_ac_Header=\$ac_header_preproc"
3720 fi
3721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3723
3724 fi
3725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3726   cat >>confdefs.h <<_ACEOF
3727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3728 _ACEOF
3729
3730 fi
3731
3732 done
3733
3734
3735
3736
3737
3738 for ac_func in backtrace backtrace_symbols gettimeofday signal
3739 do
3740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3741 echo "$as_me:$LINENO: checking for $ac_func" >&5
3742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3743 if eval "test \"\${$as_ac_var+set}\" = set"; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h.  */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h.  */
3752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3754 #define $ac_func innocuous_$ac_func
3755
3756 /* System header to define __stub macros and hopefully few prototypes,
3757     which can conflict with char $ac_func (); below.
3758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759     <limits.h> exists even on freestanding compilers.  */
3760
3761 #ifdef __STDC__
3762 # include <limits.h>
3763 #else
3764 # include <assert.h>
3765 #endif
3766
3767 #undef $ac_func
3768
3769 /* Override any gcc2 internal prototype to avoid an error.  */
3770 #ifdef __cplusplus
3771 extern "C"
3772 {
3773 #endif
3774 /* We use char because int might match the return type of a gcc2
3775    builtin and then its argument prototype would still apply.  */
3776 char $ac_func ();
3777 /* The GNU C library defines this for functions which it implements
3778     to always fail with ENOSYS.  Some functions are actually named
3779     something starting with __ and the normal name is an alias.  */
3780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3781 choke me
3782 #else
3783 char (*f) () = $ac_func;
3784 #endif
3785 #ifdef __cplusplus
3786 }
3787 #endif
3788
3789 int
3790 main ()
3791 {
3792 return f != $ac_func;
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.$ac_objext conftest$ac_exeext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3799   (eval $ac_link) 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } &&
3806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808   (eval $ac_try) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; } &&
3812          { ac_try='test -s conftest$ac_exeext'
3813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814   (eval $ac_try) 2>&5
3815   ac_status=$?
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); }; }; then
3818   eval "$as_ac_var=yes"
3819 else
3820   echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 eval "$as_ac_var=no"
3824 fi
3825 rm -f conftest.err conftest.$ac_objext \
3826       conftest$ac_exeext conftest.$ac_ext
3827 fi
3828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3830 if test `eval echo '${'$as_ac_var'}'` = yes; then
3831   cat >>confdefs.h <<_ACEOF
3832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3833 _ACEOF
3834
3835 fi
3836 done
3837
3838
3839
3840
3841
3842
3843 for ac_func in fopen64 fseeko64 ftello64 stat64
3844 do
3845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3846 echo "$as_me:$LINENO: checking for $ac_func" >&5
3847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3848 if eval "test \"\${$as_ac_var+set}\" = set"; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3859 #define $ac_func innocuous_$ac_func
3860
3861 /* System header to define __stub macros and hopefully few prototypes,
3862     which can conflict with char $ac_func (); below.
3863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3864     <limits.h> exists even on freestanding compilers.  */
3865
3866 #ifdef __STDC__
3867 # include <limits.h>
3868 #else
3869 # include <assert.h>
3870 #endif
3871
3872 #undef $ac_func
3873
3874 /* Override any gcc2 internal prototype to avoid an error.  */
3875 #ifdef __cplusplus
3876 extern "C"
3877 {
3878 #endif
3879 /* We use char because int might match the return type of a gcc2
3880    builtin and then its argument prototype would still apply.  */
3881 char $ac_func ();
3882 /* The GNU C library defines this for functions which it implements
3883     to always fail with ENOSYS.  Some functions are actually named
3884     something starting with __ and the normal name is an alias.  */
3885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3886 choke me
3887 #else
3888 char (*f) () = $ac_func;
3889 #endif
3890 #ifdef __cplusplus
3891 }
3892 #endif
3893
3894 int
3895 main ()
3896 {
3897 return f != $ac_func;
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 rm -f conftest.$ac_objext conftest$ac_exeext
3903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904   (eval $ac_link) 2>conftest.er1
3905   ac_status=$?
3906   grep -v '^ *+' conftest.er1 >conftest.err
3907   rm -f conftest.er1
3908   cat conftest.err >&5
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); } &&
3911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913   (eval $ac_try) 2>&5
3914   ac_status=$?
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); }; } &&
3917          { ac_try='test -s conftest$ac_exeext'
3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919   (eval $ac_try) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; }; then
3923   eval "$as_ac_var=yes"
3924 else
3925   echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3927
3928 eval "$as_ac_var=no"
3929 fi
3930 rm -f conftest.err conftest.$ac_objext \
3931       conftest$ac_exeext conftest.$ac_ext
3932 fi
3933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3935 if test `eval echo '${'$as_ac_var'}'` = yes; then
3936   cat >>confdefs.h <<_ACEOF
3937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3938 _ACEOF
3939
3940 fi
3941 done
3942
3943
3944
3945
3946
3947
3948
3949 for ac_func in strnlen memrchr strncpy memmem sethostname
3950 do
3951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3952 echo "$as_me:$LINENO: checking for $ac_func" >&5
3953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3954 if eval "test \"\${$as_ac_var+set}\" = set"; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3965 #define $ac_func innocuous_$ac_func
3966
3967 /* System header to define __stub macros and hopefully few prototypes,
3968     which can conflict with char $ac_func (); below.
3969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970     <limits.h> exists even on freestanding compilers.  */
3971
3972 #ifdef __STDC__
3973 # include <limits.h>
3974 #else
3975 # include <assert.h>
3976 #endif
3977
3978 #undef $ac_func
3979
3980 /* Override any gcc2 internal prototype to avoid an error.  */
3981 #ifdef __cplusplus
3982 extern "C"
3983 {
3984 #endif
3985 /* We use char because int might match the return type of a gcc2
3986    builtin and then its argument prototype would still apply.  */
3987 char $ac_func ();
3988 /* The GNU C library defines this for functions which it implements
3989     to always fail with ENOSYS.  Some functions are actually named
3990     something starting with __ and the normal name is an alias.  */
3991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3992 choke me
3993 #else
3994 char (*f) () = $ac_func;
3995 #endif
3996 #ifdef __cplusplus
3997 }
3998 #endif
3999
4000 int
4001 main ()
4002 {
4003 return f != $ac_func;
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 rm -f conftest.$ac_objext conftest$ac_exeext
4009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4010   (eval $ac_link) 2>conftest.er1
4011   ac_status=$?
4012   grep -v '^ *+' conftest.er1 >conftest.err
4013   rm -f conftest.er1
4014   cat conftest.err >&5
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); } &&
4017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019   (eval $ac_try) 2>&5
4020   ac_status=$?
4021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022   (exit $ac_status); }; } &&
4023          { ac_try='test -s conftest$ac_exeext'
4024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025   (eval $ac_try) 2>&5
4026   ac_status=$?
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); }; }; then
4029   eval "$as_ac_var=yes"
4030 else
4031   echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 eval "$as_ac_var=no"
4035 fi
4036 rm -f conftest.err conftest.$ac_objext \
4037       conftest$ac_exeext conftest.$ac_ext
4038 fi
4039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4041 if test `eval echo '${'$as_ac_var'}'` = yes; then
4042   cat >>confdefs.h <<_ACEOF
4043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4044 _ACEOF
4045
4046 fi
4047 done
4048
4049
4050
4051
4052
4053 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4054 do
4055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4056 echo "$as_me:$LINENO: checking for $ac_func" >&5
4057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4058 if eval "test \"\${$as_ac_var+set}\" = set"; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061   cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4069 #define $ac_func innocuous_$ac_func
4070
4071 /* System header to define __stub macros and hopefully few prototypes,
4072     which can conflict with char $ac_func (); below.
4073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074     <limits.h> exists even on freestanding compilers.  */
4075
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081
4082 #undef $ac_func
4083
4084 /* Override any gcc2 internal prototype to avoid an error.  */
4085 #ifdef __cplusplus
4086 extern "C"
4087 {
4088 #endif
4089 /* We use char because int might match the return type of a gcc2
4090    builtin and then its argument prototype would still apply.  */
4091 char $ac_func ();
4092 /* The GNU C library defines this for functions which it implements
4093     to always fail with ENOSYS.  Some functions are actually named
4094     something starting with __ and the normal name is an alias.  */
4095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4096 choke me
4097 #else
4098 char (*f) () = $ac_func;
4099 #endif
4100 #ifdef __cplusplus
4101 }
4102 #endif
4103
4104 int
4105 main ()
4106 {
4107 return f != $ac_func;
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114   (eval $ac_link) 2>conftest.er1
4115   ac_status=$?
4116   grep -v '^ *+' conftest.er1 >conftest.err
4117   rm -f conftest.er1
4118   cat conftest.err >&5
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); } &&
4121          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; } &&
4127          { ac_try='test -s conftest$ac_exeext'
4128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129   (eval $ac_try) 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; }; then
4133   eval "$as_ac_var=yes"
4134 else
4135   echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 eval "$as_ac_var=no"
4139 fi
4140 rm -f conftest.err conftest.$ac_objext \
4141       conftest$ac_exeext conftest.$ac_ext
4142 fi
4143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4145 if test `eval echo '${'$as_ac_var'}'` = yes; then
4146   cat >>confdefs.h <<_ACEOF
4147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4148 _ACEOF
4149
4150 fi
4151 done
4152
4153
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 #include <sys/types.h>
4161 #include <sys/ipc.h>
4162 #include <sys/sem.h>
4163 int
4164 main ()
4165 {
4166 union semun foo;
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173   (eval $ac_compile) 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } &&
4180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182   (eval $ac_try) 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; } &&
4186          { ac_try='test -s conftest.$ac_objext'
4187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188   (eval $ac_try) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192   mf_have_semun=1
4193 else
4194   echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 mf_have_semun=0
4198 fi
4199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $mf_have_semun = 1
4201 then
4202
4203 cat >>confdefs.h <<\_ACEOF
4204 #define HAVE_UNION_SEMUN 1
4205 _ACEOF
4206
4207 fi
4208
4209
4210 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
4211 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 #define _POSIX_PII_SOCKET
4219 #include <sys/types.h>
4220 #include <sys/socket.h>
4221 int
4222 main ()
4223 {
4224 socklen_t x = 5;
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231   (eval $ac_compile) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; } &&
4244          { ac_try='test -s conftest.$ac_objext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250
4251 cat >>confdefs.h <<\_ACEOF
4252 #define HAVE_SOCKLEN_T 1
4253 _ACEOF
4254
4255    echo "$as_me:$LINENO: result: yes" >&5
4256 echo "${ECHO_T}yes" >&6
4257 else
4258   echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265
4266
4267 # Check whether --enable-shared or --disable-shared was given.
4268 if test "${enable_shared+set}" = set; then
4269   enableval="$enable_shared"
4270   p=${PACKAGE-default}
4271 case $enableval in
4272 yes) enable_shared=yes ;;
4273 no) enable_shared=no ;;
4274 *)
4275   enable_shared=no
4276   # Look at the argument we got.  We use all the common list separators.
4277   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4278   for pkg in $enableval; do
4279     if test "X$pkg" = "X$p"; then
4280       enable_shared=yes
4281     fi
4282   done
4283   IFS="$ac_save_ifs"
4284   ;;
4285 esac
4286 else
4287   enable_shared=yes
4288 fi;
4289 # Check whether --enable-static or --disable-static was given.
4290 if test "${enable_static+set}" = set; then
4291   enableval="$enable_static"
4292   p=${PACKAGE-default}
4293 case $enableval in
4294 yes) enable_static=yes ;;
4295 no) enable_static=no ;;
4296 *)
4297   enable_static=no
4298   # Look at the argument we got.  We use all the common list separators.
4299   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4300   for pkg in $enableval; do
4301     if test "X$pkg" = "X$p"; then
4302       enable_static=yes
4303     fi
4304   done
4305   IFS="$ac_save_ifs"
4306   ;;
4307 esac
4308 else
4309   enable_static=yes
4310 fi;
4311 # Check whether --enable-fast-install or --disable-fast-install was given.
4312 if test "${enable_fast_install+set}" = set; then
4313   enableval="$enable_fast_install"
4314   p=${PACKAGE-default}
4315 case $enableval in
4316 yes) enable_fast_install=yes ;;
4317 no) enable_fast_install=no ;;
4318 *)
4319   enable_fast_install=no
4320   # Look at the argument we got.  We use all the common list separators.
4321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4322   for pkg in $enableval; do
4323     if test "X$pkg" = "X$p"; then
4324       enable_fast_install=yes
4325     fi
4326   done
4327   IFS="$ac_save_ifs"
4328   ;;
4329 esac
4330 else
4331   enable_fast_install=yes
4332 fi;
4333
4334 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4335 if test "${with_gnu_ld+set}" = set; then
4336   withval="$with_gnu_ld"
4337   test "$withval" = no || with_gnu_ld=yes
4338 else
4339   with_gnu_ld=no
4340 fi;
4341 ac_prog=ld
4342 if test "$GCC" = yes; then
4343   # Check if gcc -print-prog-name=ld gives a path.
4344   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4345 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4346   case $host in
4347   *-*-mingw*)
4348     # gcc leaves a trailing carriage return which upsets mingw
4349     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4350   *)
4351     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4352   esac
4353   case $ac_prog in
4354     # Accept absolute paths.
4355     [\\/]* | [A-Za-z]:[\\/]*)
4356       re_direlt='/[^/][^/]*/\.\./'
4357       # Canonicalize the path of ld
4358       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4359       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4360         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4361       done
4362       test -z "$LD" && LD="$ac_prog"
4363       ;;
4364   "")
4365     # If it fails, then pretend we aren't using GCC.
4366     ac_prog=ld
4367     ;;
4368   *)
4369     # If it is relative, then search for the first ld in PATH.
4370     with_gnu_ld=unknown
4371     ;;
4372   esac
4373 elif test "$with_gnu_ld" = yes; then
4374   echo "$as_me:$LINENO: checking for GNU ld" >&5
4375 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4376 else
4377   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4378 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4379 fi
4380 if test "${lt_cv_path_LD+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   if test -z "$LD"; then
4384   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4385   for ac_dir in $PATH; do
4386     test -z "$ac_dir" && ac_dir=.
4387     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4388       lt_cv_path_LD="$ac_dir/$ac_prog"
4389       # Check to see if the program is GNU ld.  I'd rather use --version,
4390       # but apparently some GNU ld's only accept -v.
4391       # Break only if it was the GNU/non-GNU ld that we prefer.
4392       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4393         test "$with_gnu_ld" != no && break
4394       else
4395         test "$with_gnu_ld" != yes && break
4396       fi
4397     fi
4398   done
4399   IFS="$ac_save_ifs"
4400 else
4401   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4402 fi
4403 fi
4404
4405 LD="$lt_cv_path_LD"
4406 if test -n "$LD"; then
4407   echo "$as_me:$LINENO: result: $LD" >&5
4408 echo "${ECHO_T}$LD" >&6
4409 else
4410   echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4412 fi
4413 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4414 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4415    { (exit 1); exit 1; }; }
4416 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4417 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4418 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4422 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4423   lt_cv_prog_gnu_ld=yes
4424 else
4425   lt_cv_prog_gnu_ld=no
4426 fi
4427 fi
4428 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4429 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4430 with_gnu_ld=$lt_cv_prog_gnu_ld
4431
4432
4433 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4434 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4435 if test "${lt_cv_ld_reload_flag+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   lt_cv_ld_reload_flag='-r'
4439 fi
4440 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4441 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4442 reload_flag=$lt_cv_ld_reload_flag
4443 test -n "$reload_flag" && reload_flag=" $reload_flag"
4444
4445 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4446 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4447 if test "${lt_cv_path_NM+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   if test -n "$NM"; then
4451   # Let the user override the test.
4452   lt_cv_path_NM="$NM"
4453 else
4454   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4455   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4456     test -z "$ac_dir" && ac_dir=.
4457     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4458     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4459       # Check to see if the nm accepts a BSD-compat flag.
4460       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4461       #   nm: unknown option "B" ignored
4462       # Tru64's nm complains that /dev/null is an invalid object file
4463       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4464         lt_cv_path_NM="$tmp_nm -B"
4465         break
4466       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4467         lt_cv_path_NM="$tmp_nm -p"
4468         break
4469       else
4470         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4471         continue # so that we can try to find one that supports BSD flags
4472       fi
4473     fi
4474   done
4475   IFS="$ac_save_ifs"
4476   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4477 fi
4478 fi
4479
4480 NM="$lt_cv_path_NM"
4481 echo "$as_me:$LINENO: result: $NM" >&5
4482 echo "${ECHO_T}$NM" >&6
4483
4484 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4485 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4486 LN_S=$as_ln_s
4487 if test "$LN_S" = "ln -s"; then
4488   echo "$as_me:$LINENO: result: yes" >&5
4489 echo "${ECHO_T}yes" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4492 echo "${ECHO_T}no, using $LN_S" >&6
4493 fi
4494
4495 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4496 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4497 lt_cv_file_magic_cmd='$MAGIC_CMD'
4498 lt_cv_file_magic_test_file=
4499 lt_cv_deplibs_check_method='unknown'
4500 # Need to set the preceding variable on all platforms that support
4501 # interlibrary dependencies.
4502 # 'none' -- dependencies not supported.
4503 # `unknown' -- same as none, but documents that we really don't know.
4504 # 'pass_all' -- all dependencies passed with no checks.
4505 # 'test_compile' -- check by making test program.
4506 # 'file_magic [regex]' -- check by looking for files in library path
4507 # which responds to the $file_magic_cmd with a given egrep regex.
4508 # If you have `file' or equivalent on your system and you're not sure
4509 # whether `pass_all' will *always* work, you probably want this one.
4510
4511 case $host_os in
4512 aix*)
4513   lt_cv_deplibs_check_method=pass_all
4514   ;;
4515
4516 beos*)
4517   lt_cv_deplibs_check_method=pass_all
4518   ;;
4519
4520 bsdi4*)
4521   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4522   lt_cv_file_magic_cmd='/usr/bin/file -L'
4523   lt_cv_file_magic_test_file=/shlib/libc.so
4524   ;;
4525
4526 cygwin* | mingw* |pw32*)
4527   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4528   lt_cv_file_magic_cmd='$OBJDUMP -f'
4529   ;;
4530
4531 darwin* | rhapsody*)
4532   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4533   lt_cv_file_magic_cmd='/usr/bin/file -L'
4534   case "$host_os" in
4535   rhapsody* | darwin1.012)
4536     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4537     ;;
4538   *) # Darwin 1.3 on
4539     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4540     ;;
4541   esac
4542   ;;
4543
4544 freebsd* )
4545   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4546     case $host_cpu in
4547     i*86 )
4548       # Not sure whether the presence of OpenBSD here was a mistake.
4549       # Let's accept both of them until this is cleared up.
4550       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4551       lt_cv_file_magic_cmd=/usr/bin/file
4552       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4553       ;;
4554     esac
4555   else
4556     lt_cv_deplibs_check_method=pass_all
4557   fi
4558   ;;
4559
4560 gnu*)
4561   lt_cv_deplibs_check_method=pass_all
4562   ;;
4563
4564 hpux10.20*|hpux11*)
4565   case $host_cpu in
4566   hppa*)
4567     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4568     lt_cv_file_magic_cmd=/usr/bin/file
4569     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4570     ;;
4571   ia64*)
4572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4573     lt_cv_file_magic_cmd=/usr/bin/file
4574     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4575     ;;
4576   esac
4577   ;;
4578
4579 irix5* | irix6*)
4580   case $host_os in
4581   irix5*)
4582     # this will be overridden with pass_all, but let us keep it just in case
4583     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4584     ;;
4585   *)
4586     case $LD in
4587     *-32|*"-32 ") libmagic=32-bit;;
4588     *-n32|*"-n32 ") libmagic=N32;;
4589     *-64|*"-64 ") libmagic=64-bit;;
4590     *) libmagic=never-match;;
4591     esac
4592     # this will be overridden with pass_all, but let us keep it just in case
4593     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4594     ;;
4595   esac
4596   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4597   lt_cv_deplibs_check_method=pass_all
4598   ;;
4599
4600 # This must be Linux ELF.
4601 linux-gnu*)
4602   case $host_cpu in
4603   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | x86_64* | sh*)
4604     lt_cv_deplibs_check_method=pass_all ;;
4605     # NB 2003-06-03: According to Alexandre Oliva, x86_64 should not be
4606     # in this list.  However, it works around a libtool problem that
4607     # wrongly excludes -ldl/-lpthread from the libmudflap(th) dependencies.
4608   *)
4609     # glibc up to 2.1.1 does not perform some relocations on ARM
4610     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4611   esac
4612   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4613   ;;
4614
4615 netbsd*)
4616   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4617     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4618   else
4619     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4620   fi
4621   ;;
4622
4623 newsos6)
4624   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4625   lt_cv_file_magic_cmd=/usr/bin/file
4626   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4627   ;;
4628
4629 osf3* | osf4* | osf5*)
4630   # this will be overridden with pass_all, but let us keep it just in case
4631   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4632   lt_cv_file_magic_test_file=/shlib/libc.so
4633   lt_cv_deplibs_check_method=pass_all
4634   ;;
4635
4636 sco3.2v5*)
4637   lt_cv_deplibs_check_method=pass_all
4638   ;;
4639
4640 solaris*)
4641   lt_cv_deplibs_check_method=pass_all
4642   lt_cv_file_magic_test_file=/lib/libc.so
4643   ;;
4644
4645 sysv5uw[78]* | sysv4*uw2*)
4646   lt_cv_deplibs_check_method=pass_all
4647   ;;
4648
4649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4650   case $host_vendor in
4651   ncr)
4652     lt_cv_deplibs_check_method=pass_all
4653     ;;
4654   motorola)
4655     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]'
4656     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4657     ;;
4658   esac
4659   ;;
4660 esac
4661 file_magic_cmd=$lt_cv_file_magic_cmd
4662 deplibs_check_method=$lt_cv_deplibs_check_method
4663 # NB: See above NB ... this is to make sure that the overriden
4664 #     local libtool variant doesn't pollute the upstream cache
4665 unset lt_cv_file_magic_cmd
4666 unset lt_cv_deplibs_check_method
4667 echo "$as_me:$LINENO: result: $deplibs_check_method" >&5
4668 echo "${ECHO_T}$deplibs_check_method" >&6
4669
4670
4671
4672 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4673
4674 # Only perform the check for file, if the check method requires it
4675 case $deplibs_check_method in
4676 file_magic*)
4677   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4678     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4679 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4680 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   case $MAGIC_CMD in
4684   /*)
4685   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4686   ;;
4687   ?:/*)
4688   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4689   ;;
4690   *)
4691   ac_save_MAGIC_CMD="$MAGIC_CMD"
4692   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4693   ac_dummy="/usr/bin:$PATH"
4694   for ac_dir in $ac_dummy; do
4695     test -z "$ac_dir" && ac_dir=.
4696     if test -f $ac_dir/${ac_tool_prefix}file; then
4697       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4698       if test -n "$file_magic_test_file"; then
4699         case $deplibs_check_method in
4700         "file_magic "*)
4701           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4702           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4703           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4704             egrep "$file_magic_regex" > /dev/null; then
4705             :
4706           else
4707             cat <<EOF 1>&2
4708
4709 *** Warning: the command libtool uses to detect shared libraries,
4710 *** $file_magic_cmd, produces output that libtool cannot recognize.
4711 *** The result is that libtool may fail to recognize shared libraries
4712 *** as such.  This will affect the creation of libtool libraries that
4713 *** depend on shared libraries, but programs linked with such libtool
4714 *** libraries will work regardless of this problem.  Nevertheless, you
4715 *** may want to report the problem to your system manager and/or to
4716 *** bug-libtool@gnu.org
4717
4718 EOF
4719           fi ;;
4720         esac
4721       fi
4722       break
4723     fi
4724   done
4725   IFS="$ac_save_ifs"
4726   MAGIC_CMD="$ac_save_MAGIC_CMD"
4727   ;;
4728 esac
4729 fi
4730
4731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4732 if test -n "$MAGIC_CMD"; then
4733   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4734 echo "${ECHO_T}$MAGIC_CMD" >&6
4735 else
4736   echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738 fi
4739
4740 if test -z "$lt_cv_path_MAGIC_CMD"; then
4741   if test -n "$ac_tool_prefix"; then
4742     echo "$as_me:$LINENO: checking for file" >&5
4743 echo $ECHO_N "checking for file... $ECHO_C" >&6
4744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   case $MAGIC_CMD in
4748   /*)
4749   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4750   ;;
4751   ?:/*)
4752   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4753   ;;
4754   *)
4755   ac_save_MAGIC_CMD="$MAGIC_CMD"
4756   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4757   ac_dummy="/usr/bin:$PATH"
4758   for ac_dir in $ac_dummy; do
4759     test -z "$ac_dir" && ac_dir=.
4760     if test -f $ac_dir/file; then
4761       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4762       if test -n "$file_magic_test_file"; then
4763         case $deplibs_check_method in
4764         "file_magic "*)
4765           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4766           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4767           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4768             egrep "$file_magic_regex" > /dev/null; then
4769             :
4770           else
4771             cat <<EOF 1>&2
4772
4773 *** Warning: the command libtool uses to detect shared libraries,
4774 *** $file_magic_cmd, produces output that libtool cannot recognize.
4775 *** The result is that libtool may fail to recognize shared libraries
4776 *** as such.  This will affect the creation of libtool libraries that
4777 *** depend on shared libraries, but programs linked with such libtool
4778 *** libraries will work regardless of this problem.  Nevertheless, you
4779 *** may want to report the problem to your system manager and/or to
4780 *** bug-libtool@gnu.org
4781
4782 EOF
4783           fi ;;
4784         esac
4785       fi
4786       break
4787     fi
4788   done
4789   IFS="$ac_save_ifs"
4790   MAGIC_CMD="$ac_save_MAGIC_CMD"
4791   ;;
4792 esac
4793 fi
4794
4795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4796 if test -n "$MAGIC_CMD"; then
4797   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4798 echo "${ECHO_T}$MAGIC_CMD" >&6
4799 else
4800   echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4802 fi
4803
4804   else
4805     MAGIC_CMD=:
4806   fi
4807 fi
4808
4809   fi
4810   ;;
4811 esac
4812
4813 if test -n "$ac_tool_prefix"; then
4814   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_prog_RANLIB+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   if test -n "$RANLIB"; then
4822   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837
4838 fi
4839 fi
4840 RANLIB=$ac_cv_prog_RANLIB
4841 if test -n "$RANLIB"; then
4842   echo "$as_me:$LINENO: result: $RANLIB" >&5
4843 echo "${ECHO_T}$RANLIB" >&6
4844 else
4845   echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 fi
4848
4849 fi
4850 if test -z "$ac_cv_prog_RANLIB"; then
4851   ac_ct_RANLIB=$RANLIB
4852   # Extract the first word of "ranlib", so it can be a program name with args.
4853 set dummy ranlib; ac_word=$2
4854 echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   if test -n "$ac_ct_RANLIB"; then
4860   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867   for ac_exec_ext in '' $ac_executable_extensions; do
4868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869     ac_cv_prog_ac_ct_RANLIB="ranlib"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875
4876   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4877 fi
4878 fi
4879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4880 if test -n "$ac_ct_RANLIB"; then
4881   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4882 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4883 else
4884   echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4886 fi
4887
4888   RANLIB=$ac_ct_RANLIB
4889 else
4890   RANLIB="$ac_cv_prog_RANLIB"
4891 fi
4892
4893 if test -n "$ac_tool_prefix"; then
4894   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4895 set dummy ${ac_tool_prefix}strip; ac_word=$2
4896 echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898 if test "${ac_cv_prog_STRIP+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   if test -n "$STRIP"; then
4902   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909   for ac_exec_ext in '' $ac_executable_extensions; do
4910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917
4918 fi
4919 fi
4920 STRIP=$ac_cv_prog_STRIP
4921 if test -n "$STRIP"; then
4922   echo "$as_me:$LINENO: result: $STRIP" >&5
4923 echo "${ECHO_T}$STRIP" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929 fi
4930 if test -z "$ac_cv_prog_STRIP"; then
4931   ac_ct_STRIP=$STRIP
4932   # Extract the first word of "strip", so it can be a program name with args.
4933 set dummy strip; ac_word=$2
4934 echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4936 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   if test -n "$ac_ct_STRIP"; then
4940   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_prog_ac_ct_STRIP="strip"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955
4956   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4957 fi
4958 fi
4959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4960 if test -n "$ac_ct_STRIP"; then
4961   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4962 echo "${ECHO_T}$ac_ct_STRIP" >&6
4963 else
4964   echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4966 fi
4967
4968   STRIP=$ac_ct_STRIP
4969 else
4970   STRIP="$ac_cv_prog_STRIP"
4971 fi
4972
4973
4974 # Check for any special flags to pass to ltconfig.
4975 libtool_flags="--cache-file=$cache_file"
4976 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4977 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4978 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4979 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4980 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4981
4982
4983 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4984 if test "${enable_libtool_lock+set}" = set; then
4985   enableval="$enable_libtool_lock"
4986
4987 fi;
4988 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4989 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4990
4991
4992 # Check whether --with-pic or --without-pic was given.
4993 if test "${with_pic+set}" = set; then
4994   withval="$with_pic"
4995   pic_mode="$withval"
4996 else
4997   pic_mode=default
4998 fi;
4999 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5000 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5001
5002 # Some flags need to be propagated to the compiler or linker for good
5003 # libtool support.
5004 case $host in
5005 *-*-irix6*)
5006   # Find out which ABI we are using.
5007   echo '#line 5007 "configure"' > conftest.$ac_ext
5008   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009   (eval $ac_compile) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; then
5013     case `/usr/bin/file conftest.$ac_objext` in
5014     *32-bit*)
5015       LD="${LD-ld} -32"
5016       ;;
5017     *N32*)
5018       LD="${LD-ld} -n32"
5019       ;;
5020     *64-bit*)
5021       LD="${LD-ld} -64"
5022       ;;
5023     esac
5024   fi
5025   rm -rf conftest*
5026   ;;
5027
5028 ia64-*-hpux*)
5029   # Find out which ABI we are using.
5030   echo 'int i;' > conftest.$ac_ext
5031   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032   (eval $ac_compile) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; then
5036     case "`/usr/bin/file conftest.o`" in
5037     *ELF-32*)
5038       HPUX_IA64_MODE="32"
5039       ;;
5040     *ELF-64*)
5041       HPUX_IA64_MODE="64"
5042       ;;
5043     esac
5044   fi
5045   rm -rf conftest*
5046   ;;
5047
5048 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5049   # Find out which ABI we are using.
5050   echo 'int i;' > conftest.$ac_ext
5051   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052   (eval $ac_compile) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; then
5056     case "`/usr/bin/file conftest.o`" in
5057     *32-bit*)
5058       case $host in
5059         x86_64-*linux*)
5060           LD="${LD-ld} -m elf_i386"
5061           ;;
5062         ppc64-*linux*)
5063           LD="${LD-ld} -m elf32ppclinux"
5064           ;;
5065         s390x-*linux*)
5066           LD="${LD-ld} -m elf_s390"
5067           ;;
5068         sparc64-*linux*)
5069           LD="${LD-ld} -m elf32_sparc"
5070           ;;
5071       esac
5072       ;;
5073     *64-bit*)
5074       case $host in
5075         x86_64-*linux*)
5076           LD="${LD-ld} -m elf_x86_64"
5077           ;;
5078         ppc*-*linux*|powerpc*-*linux*)
5079           LD="${LD-ld} -m elf64ppc"
5080           ;;
5081         s390*-*linux*)
5082           LD="${LD-ld} -m elf64_s390"
5083           ;;
5084         sparc*-*linux*)
5085           LD="${LD-ld} -m elf64_sparc"
5086           ;;
5087       esac
5088       ;;
5089     esac
5090   fi
5091   rm -rf conftest*
5092   ;;
5093
5094 *-*-sco3.2v5*)
5095   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5096   SAVE_CFLAGS="$CFLAGS"
5097   CFLAGS="$CFLAGS -belf"
5098   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5099 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5100 if test "${lt_cv_cc_needs_belf+set}" = set; then
5101   echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103
5104
5105      ac_ext=c
5106 ac_cpp='$CPP $CPPFLAGS'
5107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
5111      cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117
5118 int
5119 main ()
5120 {
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128   (eval $ac_link) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } &&
5135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137   (eval $ac_try) 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); }; } &&
5141          { ac_try='test -s conftest$ac_exeext'
5142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143   (eval $ac_try) 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }; }; then
5147   lt_cv_cc_needs_belf=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 lt_cv_cc_needs_belf=no
5153 fi
5154 rm -f conftest.err conftest.$ac_objext \
5155       conftest$ac_exeext conftest.$ac_ext
5156      ac_ext=c
5157 ac_cpp='$CPP $CPPFLAGS'
5158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5161
5162 fi
5163 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5164 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5165   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5166     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5167     CFLAGS="$SAVE_CFLAGS"
5168   fi
5169   ;;
5170
5171
5172 esac
5173
5174
5175 # Save cache, so that ltconfig can load it
5176 cat >confcache <<\_ACEOF
5177 # This file is a shell script that caches the results of configure
5178 # tests run on this system so they can be shared between configure
5179 # scripts and configure runs, see configure's option --config-cache.
5180 # It is not useful on other systems.  If it contains results you don't
5181 # want to keep, you may remove or edit it.
5182 #
5183 # config.status only pays attention to the cache file if you give it
5184 # the --recheck option to rerun configure.
5185 #
5186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5188 # following values.
5189
5190 _ACEOF
5191
5192 # The following way of writing the cache mishandles newlines in values,
5193 # but we know of no workaround that is simple, portable, and efficient.
5194 # So, don't put newlines in cache variables' values.
5195 # Ultrix sh set writes to stderr and can't be redirected directly,
5196 # and sets the high bit in the cache file unless we assign to the vars.
5197 {
5198   (set) 2>&1 |
5199     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5200     *ac_space=\ *)
5201       # `set' does not quote correctly, so add quotes (double-quote
5202       # substitution turns \\\\ into \\, and sed turns \\ into \).
5203       sed -n \
5204         "s/'/'\\\\''/g;
5205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5206       ;;
5207     *)
5208       # `set' quotes correctly as required by POSIX, so do not add quotes.
5209       sed -n \
5210         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5211       ;;
5212     esac;
5213 } |
5214   sed '
5215      t clear
5216      : clear
5217      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5218      t end
5219      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5220      : end' >>confcache
5221 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5222   if test -w $cache_file; then
5223     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5224     cat confcache >$cache_file
5225   else
5226     echo "not updating unwritable cache $cache_file"
5227   fi
5228 fi
5229 rm -f confcache
5230
5231 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5232 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5233 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5234 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5235 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5236 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5237 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5238 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5239 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5240 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5241 echo "$as_me: error: libtool configure failed" >&2;}
5242    { (exit 1); exit 1; }; }
5243
5244 # Reload cache, that may have been modified by ltconfig
5245 if test -r "$cache_file"; then
5246   # Some versions of bash will fail to source /dev/null (special
5247   # files actually), so we avoid doing that.
5248   if test -f "$cache_file"; then
5249     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5250 echo "$as_me: loading cache $cache_file" >&6;}
5251     case $cache_file in
5252       [\\/]* | ?:[\\/]* ) . $cache_file;;
5253       *)                      . ./$cache_file;;
5254     esac
5255   fi
5256 else
5257   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5258 echo "$as_me: creating cache $cache_file" >&6;}
5259   >$cache_file
5260 fi
5261
5262
5263 # This can be used to rebuild libtool when needed
5264 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5265
5266 # Always use our own libtool.
5267 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5268
5269 # Redirect the config.log output again, so that the ltconfig log is not
5270 # clobbered by the next message.
5271 exec 5>>./config.log
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 if test "${ac_cv_header_stdint_h+set}" = set; then
5282   echo "$as_me:$LINENO: checking for stdint.h" >&5
5283 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5284 if test "${ac_cv_header_stdint_h+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
5289 else
5290   # Is the header compilable?
5291 echo "$as_me:$LINENO: checking stdint.h usability" >&5
5292 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 $ac_includes_default
5300 #include <stdint.h>
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304   (eval $ac_compile) 2>conftest.er1
5305   ac_status=$?
5306   grep -v '^ *+' conftest.er1 >conftest.err
5307   rm -f conftest.er1
5308   cat conftest.err >&5
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } &&
5311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; } &&
5317          { ac_try='test -s conftest.$ac_objext'
5318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319   (eval $ac_try) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }; }; then
5323   ac_header_compiler=yes
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_header_compiler=no
5329 fi
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5332 echo "${ECHO_T}$ac_header_compiler" >&6
5333
5334 # Is the header present?
5335 echo "$as_me:$LINENO: checking stdint.h presence" >&5
5336 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343 #include <stdint.h>
5344 _ACEOF
5345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5347   ac_status=$?
5348   grep -v '^ *+' conftest.er1 >conftest.err
5349   rm -f conftest.er1
5350   cat conftest.err >&5
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } >/dev/null; then
5353   if test -s conftest.err; then
5354     ac_cpp_err=$ac_c_preproc_warn_flag
5355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5356   else
5357     ac_cpp_err=
5358   fi
5359 else
5360   ac_cpp_err=yes
5361 fi
5362 if test -z "$ac_cpp_err"; then
5363   ac_header_preproc=yes
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368   ac_header_preproc=no
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5372 echo "${ECHO_T}$ac_header_preproc" >&6
5373
5374 # So?  What about this header?
5375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5376   yes:no: )
5377     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
5378 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5379     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
5380 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
5381     ac_header_preproc=yes
5382     ;;
5383   no:yes:* )
5384     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
5385 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
5386     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
5387 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
5388     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
5389 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
5390     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
5391 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5392     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
5393 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
5394     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
5395 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
5396     (
5397       cat <<\_ASBOX
5398 ## ------------------------------------- ##
5399 ## Report this to the libmudflap lists.  ##
5400 ## ------------------------------------- ##
5401 _ASBOX
5402     ) |
5403       sed "s/^/$as_me: WARNING:     /" >&2
5404     ;;
5405 esac
5406 echo "$as_me:$LINENO: checking for stdint.h" >&5
5407 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5408 if test "${ac_cv_header_stdint_h+set}" = set; then
5409   echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411   ac_cv_header_stdint_h=$ac_header_preproc
5412 fi
5413 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
5414 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
5415
5416 fi
5417 if test $ac_cv_header_stdint_h = yes; then
5418   MF_HAVE_STDINT_H=1
5419 else
5420   MF_HAVE_STDINT_H=0
5421 fi
5422
5423
5424
5425 if test $MF_HAVE_STDINT_H = 1
5426 then
5427    MF_HAVE_UINTPTR_T=1
5428 else
5429    cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435 #include <sys/types.h>
5436 int
5437 main ()
5438 {
5439 uintptr_t k = 0;
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446   (eval $ac_compile) 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; } &&
5459          { ac_try='test -s conftest.$ac_objext'
5460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461   (eval $ac_try) 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); }; }; then
5465   MF_HAVE_UINTPTR_T=1
5466 else
5467   echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 MF_HAVE_UINTPTR_T=0
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474
5475
5476 if test ! -d pth
5477 then
5478   # libmudflapth objects are built in this subdirectory
5479   mkdir pth
5480 fi
5481
5482 pthread_create_version='""'
5483 if test "${ac_cv_header_pthread_h+set}" = set; then
5484   echo "$as_me:$LINENO: checking for pthread.h" >&5
5485 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5486 if test "${ac_cv_header_pthread_h+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 fi
5489 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5490 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5491 else
5492   # Is the header compilable?
5493 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5494 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 $ac_includes_default
5502 #include <pthread.h>
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506   (eval $ac_compile) 2>conftest.er1
5507   ac_status=$?
5508   grep -v '^ *+' conftest.er1 >conftest.err
5509   rm -f conftest.er1
5510   cat conftest.err >&5
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); } &&
5513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515   (eval $ac_try) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; } &&
5519          { ac_try='test -s conftest.$ac_objext'
5520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521   (eval $ac_try) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }; }; then
5525   ac_header_compiler=yes
5526 else
5527   echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5529
5530 ac_header_compiler=no
5531 fi
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5534 echo "${ECHO_T}$ac_header_compiler" >&6
5535
5536 # Is the header present?
5537 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5538 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h.  */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h.  */
5545 #include <pthread.h>
5546 _ACEOF
5547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } >/dev/null; then
5555   if test -s conftest.err; then
5556     ac_cpp_err=$ac_c_preproc_warn_flag
5557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5558   else
5559     ac_cpp_err=
5560   fi
5561 else
5562   ac_cpp_err=yes
5563 fi
5564 if test -z "$ac_cpp_err"; then
5565   ac_header_preproc=yes
5566 else
5567   echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5569
5570   ac_header_preproc=no
5571 fi
5572 rm -f conftest.err conftest.$ac_ext
5573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5574 echo "${ECHO_T}$ac_header_preproc" >&6
5575
5576 # So?  What about this header?
5577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5578   yes:no: )
5579     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5580 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5581     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5582 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5583     ac_header_preproc=yes
5584     ;;
5585   no:yes:* )
5586     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5587 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5588     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
5589 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
5590     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5591 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5592     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
5593 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5594     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5595 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5596     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5597 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5598     (
5599       cat <<\_ASBOX
5600 ## ------------------------------------- ##
5601 ## Report this to the libmudflap lists.  ##
5602 ## ------------------------------------- ##
5603 _ASBOX
5604     ) |
5605       sed "s/^/$as_me: WARNING:     /" >&2
5606     ;;
5607 esac
5608 echo "$as_me:$LINENO: checking for pthread.h" >&5
5609 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5610 if test "${ac_cv_header_pthread_h+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   ac_cv_header_pthread_h=$ac_header_preproc
5614 fi
5615 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5616 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5617
5618 fi
5619 if test $ac_cv_header_pthread_h = yes; then
5620
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_PTHREAD_H 1
5624 _ACEOF
5625
5626 ac_have_pthread_h=yes
5627
5628 else
5629
5630 ac_have_pthread_h=
5631
5632 fi
5633
5634
5635
5636
5637 if test "x$ac_have_pthread_h" != "x"; then
5638   LIBMUDFLAPTH_TRUE=
5639   LIBMUDFLAPTH_FALSE='#'
5640 else
5641   LIBMUDFLAPTH_TRUE='#'
5642   LIBMUDFLAPTH_FALSE=
5643 fi
5644
5645 if test "x$ac_have_pthread_h" != "x"
5646 then
5647         build_libmudflapth=1
5648 else
5649         build_libmudflapth=0
5650 fi
5651
5652
5653
5654 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
5655 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5656 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5657   echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659   ac_check_lib_save_LIBS=$LIBS
5660 LIBS="-ldl  $LIBS"
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h.  */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h.  */
5667
5668 /* Override any gcc2 internal prototype to avoid an error.  */
5669 #ifdef __cplusplus
5670 extern "C"
5671 #endif
5672 /* We use char because int might match the return type of a gcc2
5673    builtin and then its argument prototype would still apply.  */
5674 char dlsym ();
5675 int
5676 main ()
5677 {
5678 dlsym ();
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694   (eval $ac_try) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; } &&
5698          { ac_try='test -s conftest$ac_exeext'
5699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700   (eval $ac_try) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; }; then
5704   ac_cv_lib_dl_dlsym=yes
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cv_lib_dl_dlsym=no
5710 fi
5711 rm -f conftest.err conftest.$ac_objext \
5712       conftest$ac_exeext conftest.$ac_ext
5713 LIBS=$ac_check_lib_save_LIBS
5714 fi
5715 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
5716 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5717 if test $ac_cv_lib_dl_dlsym = yes; then
5718   cat >>confdefs.h <<_ACEOF
5719 #define HAVE_LIBDL 1
5720 _ACEOF
5721
5722   LIBS="-ldl $LIBS"
5723
5724 fi
5725
5726
5727 # Process the option "--enable-version-specific-runtime-libs"
5728 gcc_version_trigger=${srcdir}/../gcc/version.c
5729 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
5730 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
5731
5732
5733 # Calculate toolexeclibdir
5734 # Also toolexecdir, though it's only used in toolexeclibdir
5735 case ${version_specific_libs} in
5736   yes)
5737     # Need the gcc compiler version to know where to install libraries
5738     # and header files if --enable-version-specific-runtime-libs option
5739     # is selected.
5740     toolexecdir='$(libdir)/gcc/$(target_alias)'
5741     toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
5742     ;;
5743   no)
5744     if test -n "$with_cross_host" &&
5745        test x"$with_cross_host" != x"no"; then
5746       # Install a library built with a cross compiler in tooldir, not libdir.
5747       toolexecdir='$(exec_prefix)/$(target_alias)'
5748       toolexeclibdir='$(toolexecdir)/lib'
5749     else
5750       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5751       toolexeclibdir='$(libdir)'
5752     fi
5753     multi_os_directory=`$CC -print-multi-os-directory`
5754     case $multi_os_directory in
5755       .) ;; # Avoid trailing /.
5756       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5757     esac
5758     ;;
5759 esac
5760
5761
5762
5763 if test "x$enable_shared" = "xyes" && test "x$ac_have_pthread_h" != "x"; then
5764   # NB: don't check for -lpthread here, because then it would be
5765   # added to LIBS.  For the thread-unaware libmudflap.la, we don't
5766   # want it there.
5767
5768   # glibc-related hacks.  dlsym() may pick the wrong version of
5769   # interposed functions like pthread_create on modern glibc.
5770   # We need to find the proper symbol version string, and use
5771   # the nonstandard dlvsym().
5772
5773 for ac_func in dlvsym
5774 do
5775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5776 echo "$as_me:$LINENO: checking for $ac_func" >&5
5777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5778 if eval "test \"\${$as_ac_var+set}\" = set"; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5789 #define $ac_func innocuous_$ac_func
5790
5791 /* System header to define __stub macros and hopefully few prototypes,
5792     which can conflict with char $ac_func (); below.
5793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794     <limits.h> exists even on freestanding compilers.  */
5795
5796 #ifdef __STDC__
5797 # include <limits.h>
5798 #else
5799 # include <assert.h>
5800 #endif
5801
5802 #undef $ac_func
5803
5804 /* Override any gcc2 internal prototype to avoid an error.  */
5805 #ifdef __cplusplus
5806 extern "C"
5807 {
5808 #endif
5809 /* We use char because int might match the return type of a gcc2
5810    builtin and then its argument prototype would still apply.  */
5811 char $ac_func ();
5812 /* The GNU C library defines this for functions which it implements
5813     to always fail with ENOSYS.  Some functions are actually named
5814     something starting with __ and the normal name is an alias.  */
5815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5816 choke me
5817 #else
5818 char (*f) () = $ac_func;
5819 #endif
5820 #ifdef __cplusplus
5821 }
5822 #endif
5823
5824 int
5825 main ()
5826 {
5827 return f != $ac_func;
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834   (eval $ac_link) 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } &&
5841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest$ac_exeext'
5848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849   (eval $ac_try) 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; }; then
5853   eval "$as_ac_var=yes"
5854 else
5855   echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 eval "$as_ac_var=no"
5859 fi
5860 rm -f conftest.err conftest.$ac_objext \
5861       conftest$ac_exeext conftest.$ac_ext
5862 fi
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5865 if test `eval echo '${'$as_ac_var'}'` = yes; then
5866   cat >>confdefs.h <<_ACEOF
5867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5868 _ACEOF
5869
5870 fi
5871 done
5872
5873   if test -n "$ac_tool_prefix"; then
5874   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}nm; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_NM+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$NM"; then
5882   ac_cv_prog_NM="$NM" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_NM="${ac_tool_prefix}nm"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 NM=$ac_cv_prog_NM
5901 if test -n "$NM"; then
5902   echo "$as_me:$LINENO: result: $NM" >&5
5903 echo "${ECHO_T}$NM" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_NM"; then
5911   ac_ct_NM=$NM
5912   # Extract the first word of "nm", so it can be a program name with args.
5913 set dummy nm; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$ac_ct_NM"; then
5920   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_NM="nm"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936 fi
5937 fi
5938 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5939 if test -n "$ac_ct_NM"; then
5940   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5941 echo "${ECHO_T}$ac_ct_NM" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   NM=$ac_ct_NM
5948 else
5949   NM="$ac_cv_prog_NM"
5950 fi
5951
5952   if test "x$ac_cv_have_dlvsym" != "x"; then
5953     # Try compiling a simple pthreads program.  Find the shared libraries it
5954     # ends up with.  Then use "nm" on those libraries to extract the
5955     # default symbol versioning suffix ("@@"), if any.  But that's tricky.
5956     # Rather, run nm on the resulting executable.  Unfortunately, autoconf
5957     # doesn't appear to have a macro that builds a test executable for
5958     # subsequent analysis ... so we do it by hand here.
5959     cat >> conftest.c << EOF
5960 #include <pthread.h>
5961 int main () { void *p = (void *) & pthread_create; return (int) p; }
5962 EOF
5963     oldLIBS="$LIBS"
5964     LIBS="$LIBS -lpthread"
5965     pthread_create_version="\"\""
5966     echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
5967 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
5968     if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
5969       version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
5970       if test "x$version" != "x"; then
5971         pthread_create_version="\"$version\""
5972       fi
5973     fi
5974     echo "$as_me:$LINENO: result: $pthread_create_version" >&5
5975 echo "${ECHO_T}$pthread_create_version" >&6
5976     LIBS="$oldLIBS"
5977   fi
5978 fi
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define PTHREAD_CREATE_VERSION $pthread_create_version
5982 _ACEOF
5983
5984
5985
5986 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5987 # similarly to how libstdc++ does it
5988 ac_test_CFLAGS="${CFLAGS+set}"
5989 ac_save_CFLAGS="$CFLAGS"
5990
5991 # Check for -ffunction-sections -fdata-sections
5992 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5993 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
5994 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001
6002 int
6003 main ()
6004 {
6005 int foo;
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012   (eval $ac_compile) 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021   (eval $ac_try) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; } &&
6025          { ac_try='test -s conftest.$ac_objext'
6026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027   (eval $ac_try) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }; }; then
6031   ac_fdsections=yes
6032 else
6033   echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6035
6036 ac_fdsections=no
6037 fi
6038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 if test "$ac_test_CFLAGS" = set; then
6040   CFLAGS="$ac_save_CFLAGS"
6041 else
6042   # this is the suspicious part
6043   CFLAGS=""
6044 fi
6045 if test x"$ac_fdsections" = x"yes"; then
6046   SECTION_FLAGS='-ffunction-sections -fdata-sections'
6047 fi
6048 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
6049 echo "${ECHO_T}$ac_fdsections" >&6
6050
6051
6052
6053 if test ${multilib} = yes; then
6054   multilib_arg="--enable-multilib"
6055 else
6056   multilib_arg=
6057 fi
6058
6059                                         ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp mf-runtime.h"
6060
6061 cat >confcache <<\_ACEOF
6062 # This file is a shell script that caches the results of configure
6063 # tests run on this system so they can be shared between configure
6064 # scripts and configure runs, see configure's option --config-cache.
6065 # It is not useful on other systems.  If it contains results you don't
6066 # want to keep, you may remove or edit it.
6067 #
6068 # config.status only pays attention to the cache file if you give it
6069 # the --recheck option to rerun configure.
6070 #
6071 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6072 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6073 # following values.
6074
6075 _ACEOF
6076
6077 # The following way of writing the cache mishandles newlines in values,
6078 # but we know of no workaround that is simple, portable, and efficient.
6079 # So, don't put newlines in cache variables' values.
6080 # Ultrix sh set writes to stderr and can't be redirected directly,
6081 # and sets the high bit in the cache file unless we assign to the vars.
6082 {
6083   (set) 2>&1 |
6084     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6085     *ac_space=\ *)
6086       # `set' does not quote correctly, so add quotes (double-quote
6087       # substitution turns \\\\ into \\, and sed turns \\ into \).
6088       sed -n \
6089         "s/'/'\\\\''/g;
6090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6091       ;;
6092     *)
6093       # `set' quotes correctly as required by POSIX, so do not add quotes.
6094       sed -n \
6095         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6096       ;;
6097     esac;
6098 } |
6099   sed '
6100      t clear
6101      : clear
6102      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6103      t end
6104      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6105      : end' >>confcache
6106 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6107   if test -w $cache_file; then
6108     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6109     cat confcache >$cache_file
6110   else
6111     echo "not updating unwritable cache $cache_file"
6112   fi
6113 fi
6114 rm -f confcache
6115
6116 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6117 # Let make expand exec_prefix.
6118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6119
6120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6122 # trailing colons and then remove the whole line if VPATH becomes empty
6123 # (actually we leave an empty line to preserve line numbers).
6124 if test "x$srcdir" = x.; then
6125   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6126 s/:*\$(srcdir):*/:/;
6127 s/:*\${srcdir}:*/:/;
6128 s/:*@srcdir@:*/:/;
6129 s/^\([^=]*=[     ]*\):*/\1/;
6130 s/:*$//;
6131 s/^[^=]*=[       ]*$//;
6132 }'
6133 fi
6134
6135 DEFS=-DHAVE_CONFIG_H
6136
6137 ac_libobjs=
6138 ac_ltlibobjs=
6139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6140   # 1. Remove the extension, and $U if already installed.
6141   ac_i=`echo "$ac_i" |
6142          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6143   # 2. Add them.
6144   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6145   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6146 done
6147 LIBOBJS=$ac_libobjs
6148
6149 LTLIBOBJS=$ac_ltlibobjs
6150
6151
6152 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6153   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6154 Usually this means the macro was only invoked conditionally." >&5
6155 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6156 Usually this means the macro was only invoked conditionally." >&2;}
6157    { (exit 1); exit 1; }; }
6158 fi
6159 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6160   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6161 Usually this means the macro was only invoked conditionally." >&5
6162 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6163 Usually this means the macro was only invoked conditionally." >&2;}
6164    { (exit 1); exit 1; }; }
6165 fi
6166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6167   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6168 Usually this means the macro was only invoked conditionally." >&5
6169 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6170 Usually this means the macro was only invoked conditionally." >&2;}
6171    { (exit 1); exit 1; }; }
6172 fi
6173 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
6174   { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
6175 Usually this means the macro was only invoked conditionally." >&5
6176 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
6177 Usually this means the macro was only invoked conditionally." >&2;}
6178    { (exit 1); exit 1; }; }
6179 fi
6180
6181 : ${CONFIG_STATUS=./config.status}
6182 ac_clean_files_save=$ac_clean_files
6183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6184 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6185 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6186 cat >$CONFIG_STATUS <<_ACEOF
6187 #! $SHELL
6188 # Generated by $as_me.
6189 # Run this file to recreate the current configuration.
6190 # Compiler output produced by configure, useful for debugging
6191 # configure, is in config.log if it exists.
6192
6193 debug=false
6194 ac_cs_recheck=false
6195 ac_cs_silent=false
6196 SHELL=\${CONFIG_SHELL-$SHELL}
6197 _ACEOF
6198
6199 cat >>$CONFIG_STATUS <<\_ACEOF
6200 ## --------------------- ##
6201 ## M4sh Initialization.  ##
6202 ## --------------------- ##
6203
6204 # Be Bourne compatible
6205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6206   emulate sh
6207   NULLCMD=:
6208   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6209   # is contrary to our usage.  Disable this feature.
6210   alias -g '${1+"$@"}'='"$@"'
6211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6212   set -o posix
6213 fi
6214 DUALCASE=1; export DUALCASE # for MKS sh
6215
6216 # Support unset when possible.
6217 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6218   as_unset=unset
6219 else
6220   as_unset=false
6221 fi
6222
6223
6224 # Work around bugs in pre-3.0 UWIN ksh.
6225 $as_unset ENV MAIL MAILPATH
6226 PS1='$ '
6227 PS2='> '
6228 PS4='+ '
6229
6230 # NLS nuisances.
6231 for as_var in \
6232   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6233   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6234   LC_TELEPHONE LC_TIME
6235 do
6236   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6237     eval $as_var=C; export $as_var
6238   else
6239     $as_unset $as_var
6240   fi
6241 done
6242
6243 # Required to use basename.
6244 if expr a : '\(a\)' >/dev/null 2>&1; then
6245   as_expr=expr
6246 else
6247   as_expr=false
6248 fi
6249
6250 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6251   as_basename=basename
6252 else
6253   as_basename=false
6254 fi
6255
6256
6257 # Name of the executable.
6258 as_me=`$as_basename "$0" ||
6259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6260          X"$0" : 'X\(//\)$' \| \
6261          X"$0" : 'X\(/\)$' \| \
6262          .     : '\(.\)' 2>/dev/null ||
6263 echo X/"$0" |
6264     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6265           /^X\/\(\/\/\)$/{ s//\1/; q; }
6266           /^X\/\(\/\).*/{ s//\1/; q; }
6267           s/.*/./; q'`
6268
6269
6270 # PATH needs CR, and LINENO needs CR and PATH.
6271 # Avoid depending upon Character Ranges.
6272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6275 as_cr_digits='0123456789'
6276 as_cr_alnum=$as_cr_Letters$as_cr_digits
6277
6278 # The user is always right.
6279 if test "${PATH_SEPARATOR+set}" != set; then
6280   echo "#! /bin/sh" >conf$$.sh
6281   echo  "exit 0"   >>conf$$.sh
6282   chmod +x conf$$.sh
6283   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6284     PATH_SEPARATOR=';'
6285   else
6286     PATH_SEPARATOR=:
6287   fi
6288   rm -f conf$$.sh
6289 fi
6290
6291
6292   as_lineno_1=$LINENO
6293   as_lineno_2=$LINENO
6294   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6295   test "x$as_lineno_1" != "x$as_lineno_2" &&
6296   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6297   # Find who we are.  Look in the path if we contain no path at all
6298   # relative or not.
6299   case $0 in
6300     *[\\/]* ) as_myself=$0 ;;
6301     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6307 done
6308
6309        ;;
6310   esac
6311   # We did not find ourselves, most probably we were run as `sh COMMAND'
6312   # in which case we are not to be found in the path.
6313   if test "x$as_myself" = x; then
6314     as_myself=$0
6315   fi
6316   if test ! -f "$as_myself"; then
6317     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6318 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6319    { (exit 1); exit 1; }; }
6320   fi
6321   case $CONFIG_SHELL in
6322   '')
6323     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for as_base in sh bash ksh sh5; do
6329          case $as_dir in
6330          /*)
6331            if ("$as_dir/$as_base" -c '
6332   as_lineno_1=$LINENO
6333   as_lineno_2=$LINENO
6334   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6335   test "x$as_lineno_1" != "x$as_lineno_2" &&
6336   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6337              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6338              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6339              CONFIG_SHELL=$as_dir/$as_base
6340              export CONFIG_SHELL
6341              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6342            fi;;
6343          esac
6344        done
6345 done
6346 ;;
6347   esac
6348
6349   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6350   # uniformly replaced by the line number.  The first 'sed' inserts a
6351   # line-number line before each line; the second 'sed' does the real
6352   # work.  The second script uses 'N' to pair each line-number line
6353   # with the numbered line, and appends trailing '-' during
6354   # substitution so that $LINENO is not a special case at line end.
6355   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6356   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6357   sed '=' <$as_myself |
6358     sed '
6359       N
6360       s,$,-,
6361       : loop
6362       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6363       t loop
6364       s,-$,,
6365       s,^['$as_cr_digits']*\n,,
6366     ' >$as_me.lineno &&
6367   chmod +x $as_me.lineno ||
6368     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6369 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6370    { (exit 1); exit 1; }; }
6371
6372   # Don't try to exec as it changes $[0], causing all sort of problems
6373   # (the dirname of $[0] is not the place where we might find the
6374   # original and so on.  Autoconf is especially sensible to this).
6375   . ./$as_me.lineno
6376   # Exit status is that of the last command.
6377   exit
6378 }
6379
6380
6381 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6382   *c*,-n*) ECHO_N= ECHO_C='
6383 ' ECHO_T='      ' ;;
6384   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6385   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6386 esac
6387
6388 if expr a : '\(a\)' >/dev/null 2>&1; then
6389   as_expr=expr
6390 else
6391   as_expr=false
6392 fi
6393
6394 rm -f conf$$ conf$$.exe conf$$.file
6395 echo >conf$$.file
6396 if ln -s conf$$.file conf$$ 2>/dev/null; then
6397   # We could just check for DJGPP; but this test a) works b) is more generic
6398   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6399   if test -f conf$$.exe; then
6400     # Don't use ln at all; we don't have any links
6401     as_ln_s='cp -p'
6402   else
6403     as_ln_s='ln -s'
6404   fi
6405 elif ln conf$$.file conf$$ 2>/dev/null; then
6406   as_ln_s=ln
6407 else
6408   as_ln_s='cp -p'
6409 fi
6410 rm -f conf$$ conf$$.exe conf$$.file
6411
6412 if mkdir -p . 2>/dev/null; then
6413   as_mkdir_p=:
6414 else
6415   test -d ./-p && rmdir ./-p
6416   as_mkdir_p=false
6417 fi
6418
6419 as_executable_p="test -f"
6420
6421 # Sed expression to map a string onto a valid CPP name.
6422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6423
6424 # Sed expression to map a string onto a valid variable name.
6425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6426
6427
6428 # IFS
6429 # We need space, tab and new line, in precisely that order.
6430 as_nl='
6431 '
6432 IFS="   $as_nl"
6433
6434 # CDPATH.
6435 $as_unset CDPATH
6436
6437 exec 6>&1
6438
6439 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6440 # report actual input values of CONFIG_FILES etc. instead of their
6441 # values after options handling.  Logging --version etc. is OK.
6442 exec 5>>config.log
6443 {
6444   echo
6445   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6446 ## Running $as_me. ##
6447 _ASBOX
6448 } >&5
6449 cat >&5 <<_CSEOF
6450
6451 This file was extended by libmudflap $as_me 1.0, which was
6452 generated by GNU Autoconf 2.59.  Invocation command line was
6453
6454   CONFIG_FILES    = $CONFIG_FILES
6455   CONFIG_HEADERS  = $CONFIG_HEADERS
6456   CONFIG_LINKS    = $CONFIG_LINKS
6457   CONFIG_COMMANDS = $CONFIG_COMMANDS
6458   $ $0 $@
6459
6460 _CSEOF
6461 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6462 echo >&5
6463 _ACEOF
6464
6465 # Files that config.status was made for.
6466 if test -n "$ac_config_files"; then
6467   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6468 fi
6469
6470 if test -n "$ac_config_headers"; then
6471   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6472 fi
6473
6474 if test -n "$ac_config_links"; then
6475   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6476 fi
6477
6478 if test -n "$ac_config_commands"; then
6479   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6480 fi
6481
6482 cat >>$CONFIG_STATUS <<\_ACEOF
6483
6484 ac_cs_usage="\
6485 \`$as_me' instantiates files from templates according to the
6486 current configuration.
6487
6488 Usage: $0 [OPTIONS] [FILE]...
6489
6490   -h, --help       print this help, then exit
6491   -V, --version    print version number, then exit
6492   -q, --quiet      do not print progress messages
6493   -d, --debug      don't remove temporary files
6494       --recheck    update $as_me by reconfiguring in the same conditions
6495   --file=FILE[:TEMPLATE]
6496                    instantiate the configuration file FILE
6497   --header=FILE[:TEMPLATE]
6498                    instantiate the configuration header FILE
6499
6500 Configuration files:
6501 $config_files
6502
6503 Configuration headers:
6504 $config_headers
6505
6506 Configuration commands:
6507 $config_commands
6508
6509 Report bugs to <bug-autoconf@gnu.org>."
6510 _ACEOF
6511
6512 cat >>$CONFIG_STATUS <<_ACEOF
6513 ac_cs_version="\\
6514 libmudflap config.status 1.0
6515 configured by $0, generated by GNU Autoconf 2.59,
6516   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6517
6518 Copyright (C) 2003 Free Software Foundation, Inc.
6519 This config.status script is free software; the Free Software Foundation
6520 gives unlimited permission to copy, distribute and modify it."
6521 srcdir=$srcdir
6522 INSTALL="$INSTALL"
6523 _ACEOF
6524
6525 cat >>$CONFIG_STATUS <<\_ACEOF
6526 # If no file are specified by the user, then we need to provide default
6527 # value.  By we need to know if files were specified by the user.
6528 ac_need_defaults=:
6529 while test $# != 0
6530 do
6531   case $1 in
6532   --*=*)
6533     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6534     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6535     ac_shift=:
6536     ;;
6537   -*)
6538     ac_option=$1
6539     ac_optarg=$2
6540     ac_shift=shift
6541     ;;
6542   *) # This is not an option, so the user has probably given explicit
6543      # arguments.
6544      ac_option=$1
6545      ac_need_defaults=false;;
6546   esac
6547
6548   case $ac_option in
6549   # Handling of the options.
6550 _ACEOF
6551 cat >>$CONFIG_STATUS <<\_ACEOF
6552   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6553     ac_cs_recheck=: ;;
6554   --version | --vers* | -V )
6555     echo "$ac_cs_version"; exit 0 ;;
6556   --he | --h)
6557     # Conflict between --help and --header
6558     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6559 Try \`$0 --help' for more information." >&5
6560 echo "$as_me: error: ambiguous option: $1
6561 Try \`$0 --help' for more information." >&2;}
6562    { (exit 1); exit 1; }; };;
6563   --help | --hel | -h )
6564     echo "$ac_cs_usage"; exit 0 ;;
6565   --debug | --d* | -d )
6566     debug=: ;;
6567   --file | --fil | --fi | --f )
6568     $ac_shift
6569     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6570     ac_need_defaults=false;;
6571   --header | --heade | --head | --hea )
6572     $ac_shift
6573     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6574     ac_need_defaults=false;;
6575   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6576   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6577     ac_cs_silent=: ;;
6578
6579   # This is an error.
6580   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6581 Try \`$0 --help' for more information." >&5
6582 echo "$as_me: error: unrecognized option: $1
6583 Try \`$0 --help' for more information." >&2;}
6584    { (exit 1); exit 1; }; } ;;
6585
6586   *) ac_config_targets="$ac_config_targets $1" ;;
6587
6588   esac
6589   shift
6590 done
6591
6592 ac_configure_extra_args=
6593
6594 if $ac_cs_silent; then
6595   exec 6>/dev/null
6596   ac_configure_extra_args="$ac_configure_extra_args --silent"
6597 fi
6598
6599 _ACEOF
6600 cat >>$CONFIG_STATUS <<_ACEOF
6601 if \$ac_cs_recheck; then
6602   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6603   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6604 fi
6605
6606 _ACEOF
6607
6608 cat >>$CONFIG_STATUS <<_ACEOF
6609 #
6610 # INIT-COMMANDS section.
6611 #
6612
6613
6614 srcdir="$srcdir"
6615 host="$host"
6616 target="$target"
6617 with_multisubdir="$with_multisubdir"
6618 with_multisrctop="$with_multisrctop"
6619 with_target_subdir="$with_target_subdir"
6620 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6621 multi_basedir="$multi_basedir"
6622 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6623 CC="$CC"
6624 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6625
6626 _ACEOF
6627
6628
6629
6630 cat >>$CONFIG_STATUS <<\_ACEOF
6631 for ac_config_target in $ac_config_targets
6632 do
6633   case "$ac_config_target" in
6634   # Handling of arguments.
6635   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6636   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
6637   "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
6638   "mf-runtime.h" ) CONFIG_FILES="$CONFIG_FILES mf-runtime.h" ;;
6639   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6640   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6641   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6642   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6644    { (exit 1); exit 1; }; };;
6645   esac
6646 done
6647
6648 # If the user did not use the arguments to specify the items to instantiate,
6649 # then the envvar interface is used.  Set only those that are not.
6650 # We use the long form for the default assignment because of an extremely
6651 # bizarre bug on SunOS 4.1.3.
6652 if $ac_need_defaults; then
6653   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6654   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6655   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6656 fi
6657
6658 # Have a temporary directory for convenience.  Make it in the build tree
6659 # simply because there is no reason to put it here, and in addition,
6660 # creating and moving files from /tmp can sometimes cause problems.
6661 # Create a temporary directory, and hook for its removal unless debugging.
6662 $debug ||
6663 {
6664   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6665   trap '{ (exit 1); exit 1; }' 1 2 13 15
6666 }
6667
6668 # Create a (secure) tmp directory for tmp files.
6669
6670 {
6671   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6672   test -n "$tmp" && test -d "$tmp"
6673 }  ||
6674 {
6675   tmp=./confstat$$-$RANDOM
6676   (umask 077 && mkdir $tmp)
6677 } ||
6678 {
6679    echo "$me: cannot create a temporary directory in ." >&2
6680    { (exit 1); exit 1; }
6681 }
6682
6683 _ACEOF
6684
6685 cat >>$CONFIG_STATUS <<_ACEOF
6686
6687 #
6688 # CONFIG_FILES section.
6689 #
6690
6691 # No need to generate the scripts if there are no CONFIG_FILES.
6692 # This happens for instance when ./config.status config.h
6693 if test -n "\$CONFIG_FILES"; then
6694   # Protect against being on the right side of a sed subst in config.status.
6695   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6696    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6697 s,@SHELL@,$SHELL,;t t
6698 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6699 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6700 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6701 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6702 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6703 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6704 s,@exec_prefix@,$exec_prefix,;t t
6705 s,@prefix@,$prefix,;t t
6706 s,@program_transform_name@,$program_transform_name,;t t
6707 s,@bindir@,$bindir,;t t
6708 s,@sbindir@,$sbindir,;t t
6709 s,@libexecdir@,$libexecdir,;t t
6710 s,@datadir@,$datadir,;t t
6711 s,@sysconfdir@,$sysconfdir,;t t
6712 s,@sharedstatedir@,$sharedstatedir,;t t
6713 s,@localstatedir@,$localstatedir,;t t
6714 s,@libdir@,$libdir,;t t
6715 s,@includedir@,$includedir,;t t
6716 s,@oldincludedir@,$oldincludedir,;t t
6717 s,@infodir@,$infodir,;t t
6718 s,@mandir@,$mandir,;t t
6719 s,@build_alias@,$build_alias,;t t
6720 s,@host_alias@,$host_alias,;t t
6721 s,@target_alias@,$target_alias,;t t
6722 s,@DEFS@,$DEFS,;t t
6723 s,@ECHO_C@,$ECHO_C,;t t
6724 s,@ECHO_N@,$ECHO_N,;t t
6725 s,@ECHO_T@,$ECHO_T,;t t
6726 s,@LIBS@,$LIBS,;t t
6727 s,@build@,$build,;t t
6728 s,@build_cpu@,$build_cpu,;t t
6729 s,@build_vendor@,$build_vendor,;t t
6730 s,@build_os@,$build_os,;t t
6731 s,@host@,$host,;t t
6732 s,@host_cpu@,$host_cpu,;t t
6733 s,@host_vendor@,$host_vendor,;t t
6734 s,@host_os@,$host_os,;t t
6735 s,@target@,$target,;t t
6736 s,@target_cpu@,$target_cpu,;t t
6737 s,@target_vendor@,$target_vendor,;t t
6738 s,@target_os@,$target_os,;t t
6739 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6740 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6741 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6742 s,@CYGPATH_W@,$CYGPATH_W,;t t
6743 s,@PACKAGE@,$PACKAGE,;t t
6744 s,@VERSION@,$VERSION,;t t
6745 s,@ACLOCAL@,$ACLOCAL,;t t
6746 s,@AUTOCONF@,$AUTOCONF,;t t
6747 s,@AUTOMAKE@,$AUTOMAKE,;t t
6748 s,@AUTOHEADER@,$AUTOHEADER,;t t
6749 s,@MAKEINFO@,$MAKEINFO,;t t
6750 s,@AMTAR@,$AMTAR,;t t
6751 s,@install_sh@,$install_sh,;t t
6752 s,@STRIP@,$STRIP,;t t
6753 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6754 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6755 s,@mkdir_p@,$mkdir_p,;t t
6756 s,@AWK@,$AWK,;t t
6757 s,@SET_MAKE@,$SET_MAKE,;t t
6758 s,@am__leading_dot@,$am__leading_dot,;t t
6759 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6760 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6761 s,@MAINT@,$MAINT,;t t
6762 s,@multi_basedir@,$multi_basedir,;t t
6763 s,@CC@,$CC,;t t
6764 s,@ac_ct_CC@,$ac_ct_CC,;t t
6765 s,@EXEEXT@,$EXEEXT,;t t
6766 s,@OBJEXT@,$OBJEXT,;t t
6767 s,@DEPDIR@,$DEPDIR,;t t
6768 s,@am__include@,$am__include,;t t
6769 s,@am__quote@,$am__quote,;t t
6770 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6771 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6772 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6773 s,@CCDEPMODE@,$CCDEPMODE,;t t
6774 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6775 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6776 s,@CFLAGS@,$CFLAGS,;t t
6777 s,@CPP@,$CPP,;t t
6778 s,@CPPFLAGS@,$CPPFLAGS,;t t
6779 s,@EGREP@,$EGREP,;t t
6780 s,@LN_S@,$LN_S,;t t
6781 s,@RANLIB@,$RANLIB,;t t
6782 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6783 s,@LIBTOOL@,$LIBTOOL,;t t
6784 s,@enable_shared@,$enable_shared,;t t
6785 s,@enable_static@,$enable_static,;t t
6786 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
6787 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
6788 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
6789 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
6790 s,@build_libmudflapth@,$build_libmudflapth,;t t
6791 s,@gcc_version@,$gcc_version,;t t
6792 s,@toolexecdir@,$toolexecdir,;t t
6793 s,@toolexeclibdir@,$toolexeclibdir,;t t
6794 s,@NM@,$NM,;t t
6795 s,@ac_ct_NM@,$ac_ct_NM,;t t
6796 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
6797 s,@LIBOBJS@,$LIBOBJS,;t t
6798 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6799 CEOF
6800
6801 _ACEOF
6802
6803   cat >>$CONFIG_STATUS <<\_ACEOF
6804   # Split the substitutions into bite-sized pieces for seds with
6805   # small command number limits, like on Digital OSF/1 and HP-UX.
6806   ac_max_sed_lines=48
6807   ac_sed_frag=1 # Number of current file.
6808   ac_beg=1 # First line for current file.
6809   ac_end=$ac_max_sed_lines # Line after last line for current file.
6810   ac_more_lines=:
6811   ac_sed_cmds=
6812   while $ac_more_lines; do
6813     if test $ac_beg -gt 1; then
6814       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6815     else
6816       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6817     fi
6818     if test ! -s $tmp/subs.frag; then
6819       ac_more_lines=false
6820     else
6821       # The purpose of the label and of the branching condition is to
6822       # speed up the sed processing (if there are no `@' at all, there
6823       # is no need to browse any of the substitutions).
6824       # These are the two extra sed commands mentioned above.
6825       (echo ':t
6826   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6827       if test -z "$ac_sed_cmds"; then
6828         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6829       else
6830         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6831       fi
6832       ac_sed_frag=`expr $ac_sed_frag + 1`
6833       ac_beg=$ac_end
6834       ac_end=`expr $ac_end + $ac_max_sed_lines`
6835     fi
6836   done
6837   if test -z "$ac_sed_cmds"; then
6838     ac_sed_cmds=cat
6839   fi
6840 fi # test -n "$CONFIG_FILES"
6841
6842 _ACEOF
6843 cat >>$CONFIG_STATUS <<\_ACEOF
6844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6845   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6846   case $ac_file in
6847   - | *:- | *:-:* ) # input from stdin
6848         cat >$tmp/stdin
6849         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6850         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6851   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6852         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6853   * )   ac_file_in=$ac_file.in ;;
6854   esac
6855
6856   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6857   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6859          X"$ac_file" : 'X\(//\)[^/]' \| \
6860          X"$ac_file" : 'X\(//\)$' \| \
6861          X"$ac_file" : 'X\(/\)' \| \
6862          .     : '\(.\)' 2>/dev/null ||
6863 echo X"$ac_file" |
6864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6866           /^X\(\/\/\)$/{ s//\1/; q; }
6867           /^X\(\/\).*/{ s//\1/; q; }
6868           s/.*/./; q'`
6869   { if $as_mkdir_p; then
6870     mkdir -p "$ac_dir"
6871   else
6872     as_dir="$ac_dir"
6873     as_dirs=
6874     while test ! -d "$as_dir"; do
6875       as_dirs="$as_dir $as_dirs"
6876       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6878          X"$as_dir" : 'X\(//\)[^/]' \| \
6879          X"$as_dir" : 'X\(//\)$' \| \
6880          X"$as_dir" : 'X\(/\)' \| \
6881          .     : '\(.\)' 2>/dev/null ||
6882 echo X"$as_dir" |
6883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6885           /^X\(\/\/\)$/{ s//\1/; q; }
6886           /^X\(\/\).*/{ s//\1/; q; }
6887           s/.*/./; q'`
6888     done
6889     test ! -n "$as_dirs" || mkdir $as_dirs
6890   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6892    { (exit 1); exit 1; }; }; }
6893
6894   ac_builddir=.
6895
6896 if test "$ac_dir" != .; then
6897   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6898   # A "../" for each directory in $ac_dir_suffix.
6899   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6900 else
6901   ac_dir_suffix= ac_top_builddir=
6902 fi
6903
6904 case $srcdir in
6905   .)  # No --srcdir option.  We are building in place.
6906     ac_srcdir=.
6907     if test -z "$ac_top_builddir"; then
6908        ac_top_srcdir=.
6909     else
6910        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6911     fi ;;
6912   [\\/]* | ?:[\\/]* )  # Absolute path.
6913     ac_srcdir=$srcdir$ac_dir_suffix;
6914     ac_top_srcdir=$srcdir ;;
6915   *) # Relative path.
6916     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6917     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6918 esac
6919
6920 # Do not use `cd foo && pwd` to compute absolute paths, because
6921 # the directories may not exist.
6922 case `pwd` in
6923 .) ac_abs_builddir="$ac_dir";;
6924 *)
6925   case "$ac_dir" in
6926   .) ac_abs_builddir=`pwd`;;
6927   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6928   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6929   esac;;
6930 esac
6931 case $ac_abs_builddir in
6932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6933 *)
6934   case ${ac_top_builddir}. in
6935   .) ac_abs_top_builddir=$ac_abs_builddir;;
6936   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6937   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6938   esac;;
6939 esac
6940 case $ac_abs_builddir in
6941 .) ac_abs_srcdir=$ac_srcdir;;
6942 *)
6943   case $ac_srcdir in
6944   .) ac_abs_srcdir=$ac_abs_builddir;;
6945   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6946   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6947   esac;;
6948 esac
6949 case $ac_abs_builddir in
6950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6951 *)
6952   case $ac_top_srcdir in
6953   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6954   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6955   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6956   esac;;
6957 esac
6958
6959
6960   case $INSTALL in
6961   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6962   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6963   esac
6964
6965   # Let's still pretend it is `configure' which instantiates (i.e., don't
6966   # use $as_me), people would be surprised to read:
6967   #    /* config.h.  Generated by config.status.  */
6968   if test x"$ac_file" = x-; then
6969     configure_input=
6970   else
6971     configure_input="$ac_file.  "
6972   fi
6973   configure_input=$configure_input"Generated from `echo $ac_file_in |
6974                                      sed 's,.*/,,'` by configure."
6975
6976   # First look for the input files in the build tree, otherwise in the
6977   # src tree.
6978   ac_file_inputs=`IFS=:
6979     for f in $ac_file_in; do
6980       case $f in
6981       -) echo $tmp/stdin ;;
6982       [\\/$]*)
6983          # Absolute (can't be DOS-style, as IFS=:)
6984          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6985 echo "$as_me: error: cannot find input file: $f" >&2;}
6986    { (exit 1); exit 1; }; }
6987          echo "$f";;
6988       *) # Relative
6989          if test -f "$f"; then
6990            # Build tree
6991            echo "$f"
6992          elif test -f "$srcdir/$f"; then
6993            # Source tree
6994            echo "$srcdir/$f"
6995          else
6996            # /dev/null tree
6997            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6998 echo "$as_me: error: cannot find input file: $f" >&2;}
6999    { (exit 1); exit 1; }; }
7000          fi;;
7001       esac
7002     done` || { (exit 1); exit 1; }
7003
7004   if test x"$ac_file" != x-; then
7005     { echo "$as_me:$LINENO: creating $ac_file" >&5
7006 echo "$as_me: creating $ac_file" >&6;}
7007     rm -f "$ac_file"
7008   fi
7009 _ACEOF
7010 cat >>$CONFIG_STATUS <<_ACEOF
7011   sed "$ac_vpsub
7012 $extrasub
7013 _ACEOF
7014 cat >>$CONFIG_STATUS <<\_ACEOF
7015 :t
7016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7017 s,@configure_input@,$configure_input,;t t
7018 s,@srcdir@,$ac_srcdir,;t t
7019 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7020 s,@top_srcdir@,$ac_top_srcdir,;t t
7021 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7022 s,@builddir@,$ac_builddir,;t t
7023 s,@abs_builddir@,$ac_abs_builddir,;t t
7024 s,@top_builddir@,$ac_top_builddir,;t t
7025 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7026 s,@INSTALL@,$ac_INSTALL,;t t
7027 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7028   rm -f $tmp/stdin
7029   if test x"$ac_file" != x-; then
7030     mv $tmp/out $ac_file
7031   else
7032     cat $tmp/out
7033     rm -f $tmp/out
7034   fi
7035
7036 done
7037 _ACEOF
7038 cat >>$CONFIG_STATUS <<\_ACEOF
7039
7040 #
7041 # CONFIG_HEADER section.
7042 #
7043
7044 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7045 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7046 #
7047 # ac_d sets the value in "#define NAME VALUE" lines.
7048 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7049 ac_dB='[         ].*$,\1#\2'
7050 ac_dC=' '
7051 ac_dD=',;t'
7052 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7053 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7054 ac_uB='$,\1#\2define\3'
7055 ac_uC=' '
7056 ac_uD=',;t'
7057
7058 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7059   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7060   case $ac_file in
7061   - | *:- | *:-:* ) # input from stdin
7062         cat >$tmp/stdin
7063         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7064         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7065   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7066         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7067   * )   ac_file_in=$ac_file.in ;;
7068   esac
7069
7070   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7071 echo "$as_me: creating $ac_file" >&6;}
7072
7073   # First look for the input files in the build tree, otherwise in the
7074   # src tree.
7075   ac_file_inputs=`IFS=:
7076     for f in $ac_file_in; do
7077       case $f in
7078       -) echo $tmp/stdin ;;
7079       [\\/$]*)
7080          # Absolute (can't be DOS-style, as IFS=:)
7081          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7082 echo "$as_me: error: cannot find input file: $f" >&2;}
7083    { (exit 1); exit 1; }; }
7084          # Do quote $f, to prevent DOS paths from being IFS'd.
7085          echo "$f";;
7086       *) # Relative
7087          if test -f "$f"; then
7088            # Build tree
7089            echo "$f"
7090          elif test -f "$srcdir/$f"; then
7091            # Source tree
7092            echo "$srcdir/$f"
7093          else
7094            # /dev/null tree
7095            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7096 echo "$as_me: error: cannot find input file: $f" >&2;}
7097    { (exit 1); exit 1; }; }
7098          fi;;
7099       esac
7100     done` || { (exit 1); exit 1; }
7101   # Remove the trailing spaces.
7102   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7103
7104 _ACEOF
7105
7106 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7107 # `conftest.undefs', that substitutes the proper values into
7108 # config.h.in to produce config.h.  The first handles `#define'
7109 # templates, and the second `#undef' templates.
7110 # And first: Protect against being on the right side of a sed subst in
7111 # config.status.  Protect against being in an unquoted here document
7112 # in config.status.
7113 rm -f conftest.defines conftest.undefs
7114 # Using a here document instead of a string reduces the quoting nightmare.
7115 # Putting comments in sed scripts is not portable.
7116 #
7117 # `end' is used to avoid that the second main sed command (meant for
7118 # 0-ary CPP macros) applies to n-ary macro definitions.
7119 # See the Autoconf documentation for `clear'.
7120 cat >confdef2sed.sed <<\_ACEOF
7121 s/[\\&,]/\\&/g
7122 s,[\\$`],\\&,g
7123 t clear
7124 : clear
7125 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7126 t end
7127 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7128 : end
7129 _ACEOF
7130 # If some macros were called several times there might be several times
7131 # the same #defines, which is useless.  Nevertheless, we may not want to
7132 # sort them, since we want the *last* AC-DEFINE to be honored.
7133 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7134 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7135 rm -f confdef2sed.sed
7136
7137 # This sed command replaces #undef with comments.  This is necessary, for
7138 # example, in the case of _POSIX_SOURCE, which is predefined and required
7139 # on some systems where configure will not decide to define it.
7140 cat >>conftest.undefs <<\_ACEOF
7141 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7142 _ACEOF
7143
7144 # Break up conftest.defines because some shells have a limit on the size
7145 # of here documents, and old seds have small limits too (100 cmds).
7146 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7147 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7148 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7149 echo '  :' >>$CONFIG_STATUS
7150 rm -f conftest.tail
7151 while grep . conftest.defines >/dev/null
7152 do
7153   # Write a limited-size here document to $tmp/defines.sed.
7154   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7155   # Speed up: don't consider the non `#define' lines.
7156   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7157   # Work around the forget-to-reset-the-flag bug.
7158   echo 't clr' >>$CONFIG_STATUS
7159   echo ': clr' >>$CONFIG_STATUS
7160   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7161   echo 'CEOF
7162   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7163   rm -f $tmp/in
7164   mv $tmp/out $tmp/in
7165 ' >>$CONFIG_STATUS
7166   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7167   rm -f conftest.defines
7168   mv conftest.tail conftest.defines
7169 done
7170 rm -f conftest.defines
7171 echo '  fi # grep' >>$CONFIG_STATUS
7172 echo >>$CONFIG_STATUS
7173
7174 # Break up conftest.undefs because some shells have a limit on the size
7175 # of here documents, and old seds have small limits too (100 cmds).
7176 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7177 rm -f conftest.tail
7178 while grep . conftest.undefs >/dev/null
7179 do
7180   # Write a limited-size here document to $tmp/undefs.sed.
7181   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7182   # Speed up: don't consider the non `#undef'
7183   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7184   # Work around the forget-to-reset-the-flag bug.
7185   echo 't clr' >>$CONFIG_STATUS
7186   echo ': clr' >>$CONFIG_STATUS
7187   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7188   echo 'CEOF
7189   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7190   rm -f $tmp/in
7191   mv $tmp/out $tmp/in
7192 ' >>$CONFIG_STATUS
7193   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7194   rm -f conftest.undefs
7195   mv conftest.tail conftest.undefs
7196 done
7197 rm -f conftest.undefs
7198
7199 cat >>$CONFIG_STATUS <<\_ACEOF
7200   # Let's still pretend it is `configure' which instantiates (i.e., don't
7201   # use $as_me), people would be surprised to read:
7202   #    /* config.h.  Generated by config.status.  */
7203   if test x"$ac_file" = x-; then
7204     echo "/* Generated by configure.  */" >$tmp/config.h
7205   else
7206     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7207   fi
7208   cat $tmp/in >>$tmp/config.h
7209   rm -f $tmp/in
7210   if test x"$ac_file" != x-; then
7211     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7212       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7213 echo "$as_me: $ac_file is unchanged" >&6;}
7214     else
7215       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7217          X"$ac_file" : 'X\(//\)[^/]' \| \
7218          X"$ac_file" : 'X\(//\)$' \| \
7219          X"$ac_file" : 'X\(/\)' \| \
7220          .     : '\(.\)' 2>/dev/null ||
7221 echo X"$ac_file" |
7222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7224           /^X\(\/\/\)$/{ s//\1/; q; }
7225           /^X\(\/\).*/{ s//\1/; q; }
7226           s/.*/./; q'`
7227       { if $as_mkdir_p; then
7228     mkdir -p "$ac_dir"
7229   else
7230     as_dir="$ac_dir"
7231     as_dirs=
7232     while test ! -d "$as_dir"; do
7233       as_dirs="$as_dir $as_dirs"
7234       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7236          X"$as_dir" : 'X\(//\)[^/]' \| \
7237          X"$as_dir" : 'X\(//\)$' \| \
7238          X"$as_dir" : 'X\(/\)' \| \
7239          .     : '\(.\)' 2>/dev/null ||
7240 echo X"$as_dir" |
7241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7243           /^X\(\/\/\)$/{ s//\1/; q; }
7244           /^X\(\/\).*/{ s//\1/; q; }
7245           s/.*/./; q'`
7246     done
7247     test ! -n "$as_dirs" || mkdir $as_dirs
7248   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7249 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7250    { (exit 1); exit 1; }; }; }
7251
7252       rm -f $ac_file
7253       mv $tmp/config.h $ac_file
7254     fi
7255   else
7256     cat $tmp/config.h
7257     rm -f $tmp/config.h
7258   fi
7259 # Compute $ac_file's index in $config_headers.
7260 _am_stamp_count=1
7261 for _am_header in $config_headers :; do
7262   case $_am_header in
7263     $ac_file | $ac_file:* )
7264       break ;;
7265     * )
7266       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7267   esac
7268 done
7269 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7270 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7271          X$ac_file : 'X\(//\)[^/]' \| \
7272          X$ac_file : 'X\(//\)$' \| \
7273          X$ac_file : 'X\(/\)' \| \
7274          .     : '\(.\)' 2>/dev/null ||
7275 echo X$ac_file |
7276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7278           /^X\(\/\/\)$/{ s//\1/; q; }
7279           /^X\(\/\).*/{ s//\1/; q; }
7280           s/.*/./; q'`/stamp-h$_am_stamp_count
7281 done
7282 _ACEOF
7283 cat >>$CONFIG_STATUS <<\_ACEOF
7284
7285 #
7286 # CONFIG_COMMANDS section.
7287 #
7288 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7289   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7290   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7291   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7292 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7293          X"$ac_dest" : 'X\(//\)[^/]' \| \
7294          X"$ac_dest" : 'X\(//\)$' \| \
7295          X"$ac_dest" : 'X\(/\)' \| \
7296          .     : '\(.\)' 2>/dev/null ||
7297 echo X"$ac_dest" |
7298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7299           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7300           /^X\(\/\/\)$/{ s//\1/; q; }
7301           /^X\(\/\).*/{ s//\1/; q; }
7302           s/.*/./; q'`
7303   { if $as_mkdir_p; then
7304     mkdir -p "$ac_dir"
7305   else
7306     as_dir="$ac_dir"
7307     as_dirs=
7308     while test ! -d "$as_dir"; do
7309       as_dirs="$as_dir $as_dirs"
7310       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7312          X"$as_dir" : 'X\(//\)[^/]' \| \
7313          X"$as_dir" : 'X\(//\)$' \| \
7314          X"$as_dir" : 'X\(/\)' \| \
7315          .     : '\(.\)' 2>/dev/null ||
7316 echo X"$as_dir" |
7317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7319           /^X\(\/\/\)$/{ s//\1/; q; }
7320           /^X\(\/\).*/{ s//\1/; q; }
7321           s/.*/./; q'`
7322     done
7323     test ! -n "$as_dirs" || mkdir $as_dirs
7324   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7326    { (exit 1); exit 1; }; }; }
7327
7328   ac_builddir=.
7329
7330 if test "$ac_dir" != .; then
7331   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7332   # A "../" for each directory in $ac_dir_suffix.
7333   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7334 else
7335   ac_dir_suffix= ac_top_builddir=
7336 fi
7337
7338 case $srcdir in
7339   .)  # No --srcdir option.  We are building in place.
7340     ac_srcdir=.
7341     if test -z "$ac_top_builddir"; then
7342        ac_top_srcdir=.
7343     else
7344        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7345     fi ;;
7346   [\\/]* | ?:[\\/]* )  # Absolute path.
7347     ac_srcdir=$srcdir$ac_dir_suffix;
7348     ac_top_srcdir=$srcdir ;;
7349   *) # Relative path.
7350     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7351     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7352 esac
7353
7354 # Do not use `cd foo && pwd` to compute absolute paths, because
7355 # the directories may not exist.
7356 case `pwd` in
7357 .) ac_abs_builddir="$ac_dir";;
7358 *)
7359   case "$ac_dir" in
7360   .) ac_abs_builddir=`pwd`;;
7361   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7362   *) ac_abs_builddir=`pwd`/"$ac_dir";;
7363   esac;;
7364 esac
7365 case $ac_abs_builddir in
7366 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7367 *)
7368   case ${ac_top_builddir}. in
7369   .) ac_abs_top_builddir=$ac_abs_builddir;;
7370   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7371   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7372   esac;;
7373 esac
7374 case $ac_abs_builddir in
7375 .) ac_abs_srcdir=$ac_srcdir;;
7376 *)
7377   case $ac_srcdir in
7378   .) ac_abs_srcdir=$ac_abs_builddir;;
7379   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7380   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7381   esac;;
7382 esac
7383 case $ac_abs_builddir in
7384 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7385 *)
7386   case $ac_top_srcdir in
7387   .) ac_abs_top_srcdir=$ac_abs_builddir;;
7388   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7389   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7390   esac;;
7391 esac
7392
7393
7394   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7395 echo "$as_me: executing $ac_dest commands" >&6;}
7396   case $ac_dest in
7397     default-1 )
7398 # Only add multilib support code if we just rebuilt the top-level
7399 # Makefile.
7400 case " $CONFIG_FILES " in
7401  *" Makefile "*)
7402    ac_file=Makefile . ${multi_basedir}/config-ml.in
7403    ;;
7404 esac ;;
7405     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7406   # Strip MF so we end up with the name of the file.
7407   mf=`echo "$mf" | sed -e 's/:.*$//'`
7408   # Check whether this is an Automake generated Makefile or not.
7409   # We used to match only the files named `Makefile.in', but
7410   # some people rename them; so instead we look at the file content.
7411   # Grep'ing the first line is not enough: some people post-process
7412   # each Makefile.in and add a new line on top of each file to say so.
7413   # So let's grep whole file.
7414   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7415     dirpart=`(dirname "$mf") 2>/dev/null ||
7416 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7417          X"$mf" : 'X\(//\)[^/]' \| \
7418          X"$mf" : 'X\(//\)$' \| \
7419          X"$mf" : 'X\(/\)' \| \
7420          .     : '\(.\)' 2>/dev/null ||
7421 echo X"$mf" |
7422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7423           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7424           /^X\(\/\/\)$/{ s//\1/; q; }
7425           /^X\(\/\).*/{ s//\1/; q; }
7426           s/.*/./; q'`
7427   else
7428     continue
7429   fi
7430   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7431   # Extract the definition of DEP_FILES from the Makefile without
7432   # running `make'.
7433   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7434   test -z "$DEPDIR" && continue
7435   # When using ansi2knr, U may be empty or an underscore; expand it
7436   U=`sed -n 's/^U = //p' < "$mf"`
7437   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7438   # We invoke sed twice because it is the simplest approach to
7439   # changing $(DEPDIR) to its actual value in the expansion.
7440   for file in `sed -n '
7441     /^DEP_FILES = .*\\\\$/ {
7442       s/^DEP_FILES = //
7443       :loop
7444         s/\\\\$//
7445         p
7446         n
7447         /\\\\$/ b loop
7448       p
7449     }
7450     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7451        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7452     # Make sure the directory exists.
7453     test -f "$dirpart/$file" && continue
7454     fdir=`(dirname "$file") 2>/dev/null ||
7455 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7456          X"$file" : 'X\(//\)[^/]' \| \
7457          X"$file" : 'X\(//\)$' \| \
7458          X"$file" : 'X\(/\)' \| \
7459          .     : '\(.\)' 2>/dev/null ||
7460 echo X"$file" |
7461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7463           /^X\(\/\/\)$/{ s//\1/; q; }
7464           /^X\(\/\).*/{ s//\1/; q; }
7465           s/.*/./; q'`
7466     { if $as_mkdir_p; then
7467     mkdir -p $dirpart/$fdir
7468   else
7469     as_dir=$dirpart/$fdir
7470     as_dirs=
7471     while test ! -d "$as_dir"; do
7472       as_dirs="$as_dir $as_dirs"
7473       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7475          X"$as_dir" : 'X\(//\)[^/]' \| \
7476          X"$as_dir" : 'X\(//\)$' \| \
7477          X"$as_dir" : 'X\(/\)' \| \
7478          .     : '\(.\)' 2>/dev/null ||
7479 echo X"$as_dir" |
7480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7481           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7482           /^X\(\/\/\)$/{ s//\1/; q; }
7483           /^X\(\/\).*/{ s//\1/; q; }
7484           s/.*/./; q'`
7485     done
7486     test ! -n "$as_dirs" || mkdir $as_dirs
7487   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7488 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7489    { (exit 1); exit 1; }; }; }
7490
7491     # echo "creating $dirpart/$file"
7492     echo '# dummy' > "$dirpart/$file"
7493   done
7494 done
7495  ;;
7496   esac
7497 done
7498 _ACEOF
7499
7500 cat >>$CONFIG_STATUS <<\_ACEOF
7501
7502 { (exit 0); exit 0; }
7503 _ACEOF
7504 chmod +x $CONFIG_STATUS
7505 ac_clean_files=$ac_clean_files_save
7506
7507
7508 # configure is writing to config.log, and then calls config.status.
7509 # config.status does its own redirection, appending to config.log.
7510 # Unfortunately, on DOS this fails, as config.log is still kept open
7511 # by configure, so config.status won't be able to write to it; its
7512 # output is simply discarded.  So we exec the FD to /dev/null,
7513 # effectively closing config.log, so it can be properly (re)opened and
7514 # appended to by config.status.  When coming back to configure, we
7515 # need to make the FD available again.
7516 if test "$no_create" != yes; then
7517   ac_cs_success=:
7518   ac_config_status_args=
7519   test "$silent" = yes &&
7520     ac_config_status_args="$ac_config_status_args --quiet"
7521   exec 5>/dev/null
7522   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7523   exec 5>>config.log
7524   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7525   # would make configure fail if this is the last instruction.
7526   $ac_cs_success || { (exit 1); exit 1; }
7527 fi
7528