OSDN Git Service

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