OSDN Git Service

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