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