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