OSDN Git Service

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