ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
(Generate patch)

Comparing Convert-UUlib/uulib/configure (file contents):
Revision 1.4 by root, Sun Feb 10 22:47:59 2002 UTC vs.
Revision 1.4.2.4 by root, Thu Nov 6 13:08:23 2003 UTC

1#! /bin/sh 1#! /bin/sh
2
2# Guess values for system-dependent variables and create Makefiles. 3# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52. 4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
4# 6#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
9 9
10# Avoid depending upon Character Ranges. 10# Defaults:
11as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11ac_help=
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# Name of the executable.
32as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36else
37 as_expr=false
38fi
39
40rm -f conf$$ conf$$.exe conf$$.file
41echo >conf$$.file
42if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53else
54 as_ln_s='cp -p'
55fi
56rm -f conf$$ conf$$.exe conf$$.file
57
58as_executable_p="test -f"
59
60# Support unset when possible.
61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63else
64 as_unset=false
65fi
66
67# NLS nuisances.
68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77# IFS
78# We need space, tab and new line, in precisely that order.
79as_nl='
80'
81IFS=" $as_nl"
82
83# CDPATH.
84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86# Name of the host.
87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88# so uname gets run too.
89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91exec 6>&1
92
93#
94# Initializations.
95#
96ac_default_prefix=/usr/local 12ac_default_prefix=/usr/local
97cross_compiling=no 13# Any additions from configure.in:
98subdirs= 14ac_help="$ac_help
99MFLAGS= MAKEFLAGS= 15 --disable-optimize compile for debugging"
100SHELL=${CONFIG_SHELL-/bin/sh}
101
102# Maximum number of lines to put in a shell here document.
103# This variable seems obsolete. It should probably be removed, and
104# only ac_max_sed_lines should be used.
105: ${ac_max_here_lines=38}
106
107ac_unique_file="uulib.c"
108# Factoring default headers for most tests.
109ac_includes_default="\
110#include <stdio.h>
111#if HAVE_SYS_TYPES_H
112# include <sys/types.h>
113#endif
114#if HAVE_SYS_STAT_H
115# include <sys/stat.h>
116#endif
117#if STDC_HEADERS
118# include <stdlib.h>
119# include <stddef.h>
120#else
121# if HAVE_STDLIB_H
122# include <stdlib.h>
123# endif
124#endif
125#if HAVE_STRING_H
126# if !STDC_HEADERS && HAVE_MEMORY_H
127# include <memory.h>
128# endif
129# include <string.h>
130#endif
131#if HAVE_STRINGS_H
132# include <strings.h>
133#endif
134#if HAVE_INTTYPES_H
135# include <inttypes.h>
136#else
137# if HAVE_STDINT_H
138# include <stdint.h>
139# endif
140#endif
141#if HAVE_UNISTD_H
142# include <unistd.h>
143#endif"
144 16
145# Initialize some variables set by options. 17# Initialize some variables set by options.
146ac_init_help=
147ac_init_version=false
148# The variables have the same names as the options, with 18# The variables have the same names as the options, with
149# dashes changed to underlines. 19# dashes changed to underlines.
150cache_file=/dev/null 20build=NONE
21cache_file=./config.cache
151exec_prefix=NONE 22exec_prefix=NONE
23host=NONE
152no_create= 24no_create=
25nonopt=NONE
153no_recursion= 26no_recursion=
154prefix=NONE 27prefix=NONE
155program_prefix=NONE 28program_prefix=NONE
156program_suffix=NONE 29program_suffix=NONE
157program_transform_name=s,x,x, 30program_transform_name=s,x,x,
158silent= 31silent=
159site= 32site=
160srcdir= 33srcdir=
34target=NONE
161verbose= 35verbose=
162x_includes=NONE 36x_includes=NONE
163x_libraries=NONE 37x_libraries=NONE
164
165# Installation directory options.
166# These are left unexpanded so users can "make install exec_prefix=/foo"
167# and all the variables that are supposed to be based on exec_prefix
168# by default will actually change.
169# Use braces instead of parens because sh, perl, etc. also accept them.
170bindir='${exec_prefix}/bin' 38bindir='${exec_prefix}/bin'
171sbindir='${exec_prefix}/sbin' 39sbindir='${exec_prefix}/sbin'
172libexecdir='${exec_prefix}/libexec' 40libexecdir='${exec_prefix}/libexec'
173datadir='${prefix}/share' 41datadir='${prefix}/share'
174sysconfdir='${prefix}/etc' 42sysconfdir='${prefix}/etc'
178includedir='${prefix}/include' 46includedir='${prefix}/include'
179oldincludedir='/usr/include' 47oldincludedir='/usr/include'
180infodir='${prefix}/info' 48infodir='${prefix}/info'
181mandir='${prefix}/man' 49mandir='${prefix}/man'
182 50
183# Identity of this package. 51# Initialize some other variables.
184PACKAGE_NAME= 52subdirs=
185PACKAGE_TARNAME= 53MFLAGS= MAKEFLAGS=
186PACKAGE_VERSION= 54SHELL=${CONFIG_SHELL-/bin/sh}
187PACKAGE_STRING= 55# Maximum number of lines to put in a shell here document.
188PACKAGE_BUGREPORT= 56ac_max_here_lines=12
189 57
190ac_prev= 58ac_prev=
191for ac_option 59for ac_option
192do 60do
61
193 # If the previous option needs an argument, assign it. 62 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then 63 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option" 64 eval "$ac_prev=\$ac_option"
196 ac_prev= 65 ac_prev=
197 continue 66 continue
198 fi 67 fi
199 68
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
201 73
202 # Accept the important Cygnus configure options, so we can diagnose typos. 74 # Accept the important Cygnus configure options, so we can diagnose typos.
203 75
204 case $ac_option in 76 case "$ac_option" in
205 77
206 -bindir | --bindir | --bindi | --bind | --bin | --bi) 78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;; 79 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;; 81 bindir="$ac_optarg" ;;
210 82
211 -build | --build | --buil | --bui | --bu) 83 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;; 84 ac_prev=build ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;; 86 build="$ac_optarg" ;;
215 87
216 -cache-file | --cache-file | --cache-fil | --cache-fi \ 88 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;; 90 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;; 93 cache_file="$ac_optarg" ;;
222
223 --config-cache | -C)
224 cache_file=config.cache ;;
225 94
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;; 96 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*) 98 | --da=*)
230 datadir=$ac_optarg ;; 99 datadir="$ac_optarg" ;;
231 100
232 -disable-* | --disable-*) 101 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
234 # Reject names that are not valid shell variable names. 103 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
237 { (exit 1); exit 1; }; } 106 fi
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;; 108 eval "enable_${ac_feature}=no" ;;
240 109
241 -enable-* | --enable-*) 110 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
243 # Reject names that are not valid shell variable names. 112 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 { (exit 1); exit 1; }; } 115 fi
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 case $ac_option in 117 case "$ac_option" in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 118 *=*) ;;
250 *) ac_optarg=yes ;; 119 *) ac_optarg=yes ;;
251 esac 120 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;; 121 eval "enable_${ac_feature}='$ac_optarg'" ;;
253 122
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex) 125 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;; 126 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*) 129 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;; 130 exec_prefix="$ac_optarg" ;;
262 131
263 -gas | --gas | --ga | --g) 132 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas. 133 # Obsolete; use --with-gas.
265 with_gas=yes ;; 134 with_gas=yes ;;
266 135
267 -help | --help | --hel | --he | -h) 136 -help | --help | --hel | --he)
268 ac_init_help=long ;; 137 # Omit some internal or obsolete options to make the list less imposing.
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 138 # This message is too long to be a string in the A/UX 3.1 sh.
270 ac_init_help=recursive ;; 139 cat << EOF
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 140Usage: configure [options] [host]
272 ac_init_help=short ;; 141Options: [defaults in brackets after descriptions]
142Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
172EOF
173 cat << EOF
174Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
185EOF
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
188 fi
189 exit 0 ;;
273 190
274 -host | --host | --hos | --ho) 191 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;; 192 ac_prev=host ;;
276 -host=* | --host=* | --hos=* | --ho=*) 193 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;; 194 host="$ac_optarg" ;;
278 195
279 -includedir | --includedir | --includedi | --included | --include \ 196 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc) 197 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;; 198 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*) 200 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;; 201 includedir="$ac_optarg" ;;
285 202
286 -infodir | --infodir | --infodi | --infod | --info | --inf) 203 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;; 204 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;; 206 infodir="$ac_optarg" ;;
290 207
291 -libdir | --libdir | --libdi | --libd) 208 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;; 209 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*) 210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;; 211 libdir="$ac_optarg" ;;
295 212
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe) 214 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;; 215 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*) 217 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;; 218 libexecdir="$ac_optarg" ;;
302 219
303 -localstatedir | --localstatedir | --localstatedi | --localstated \ 220 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \ 221 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo) 222 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;; 223 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;; 227 localstatedir="$ac_optarg" ;;
311 228
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;; 230 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;; 232 mandir="$ac_optarg" ;;
316 233
317 -nfp | --nfp | --nf) 234 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp. 235 # Obsolete; use --without-fp.
319 with_fp=no ;; 236 with_fp=no ;;
320 237
331 | --oldin | --oldi | --old | --ol | --o) 248 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;; 249 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;; 253 oldincludedir="$ac_optarg" ;;
337 254
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;; 256 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;; 258 prefix="$ac_optarg" ;;
342 259
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p) 261 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;; 262 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;; 265 program_prefix="$ac_optarg" ;;
349 266
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s) 268 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;; 269 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;; 272 program_suffix="$ac_optarg" ;;
356 273
357 -program-transform-name | --program-transform-name \ 274 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \ 275 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \ 276 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \ 277 | --program-transform | --program-transfor \
367 | --program-transform-n=* | --program-transform-=* \ 284 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \ 285 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \ 286 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \ 287 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*) 288 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;; 289 program_transform_name="$ac_optarg" ;;
373 290
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil) 292 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;; 293 silent=yes ;;
377 294
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;; 296 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*) 298 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;; 299 sbindir="$ac_optarg" ;;
383 300
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \ 303 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh) 304 | --sha | --sh)
388 ac_prev=sharedstatedir ;; 305 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*) 309 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;; 310 sharedstatedir="$ac_optarg" ;;
394 311
395 -site | --site | --sit) 312 -site | --site | --sit)
396 ac_prev=site ;; 313 ac_prev=site ;;
397 -site=* | --site=* | --sit=*) 314 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;; 315 site="$ac_optarg" ;;
399 316
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;; 318 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;; 320 srcdir="$ac_optarg" ;;
404 321
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy) 323 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;; 324 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;; 327 sysconfdir="$ac_optarg" ;;
411 328
412 -target | --target | --targe | --targ | --tar | --ta | --t) 329 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;; 330 ac_prev=target ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;; 332 target="$ac_optarg" ;;
416 333
417 -v | -verbose | --verbose | --verbos | --verbo | --verb) 334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;; 335 verbose=yes ;;
419 336
420 -version | --version | --versio | --versi | --vers | -V) 337 -version | --version | --versio | --versi | --vers)
421 ac_init_version=: ;; 338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
422 340
423 -with-* | --with-*) 341 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
425 # Reject names that are not valid shell variable names. 343 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
427 { echo "$as_me: error: invalid package name: $ac_package" >&2 345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 { (exit 1); exit 1; }; } 346 fi
429 ac_package=`echo $ac_package| sed 's/-/_/g'` 347 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in 348 case "$ac_option" in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 349 *=*) ;;
432 *) ac_optarg=yes ;; 350 *) ac_optarg=yes ;;
433 esac 351 esac
434 eval "with_$ac_package='$ac_optarg'" ;; 352 eval "with_${ac_package}='$ac_optarg'" ;;
435 353
436 -without-* | --without-*) 354 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
438 # Reject names that are not valid shell variable names. 356 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
440 { echo "$as_me: error: invalid package name: $ac_package" >&2 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 { (exit 1); exit 1; }; } 359 fi
442 ac_package=`echo $ac_package | sed 's/-/_/g'` 360 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;; 361 eval "with_${ac_package}=no" ;;
444 362
445 --x) 363 --x)
446 # Obsolete; use --with-x. 364 # Obsolete; use --with-x.
447 with_x=yes ;; 365 with_x=yes ;;
448 366
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i) 368 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;; 369 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;; 372 x_includes="$ac_optarg" ;;
455 373
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;; 376 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;; 379 x_libraries="$ac_optarg" ;;
462 380
463 -*) { echo "$as_me: error: unrecognized option: $ac_option 381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
466 ;; 382 ;;
467 383
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
477
478 *) 384 *)
479 # FIXME: should be removed in autoconf 3.0. 385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 386 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 387 fi
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 388 if test "x$nonopt" != xNONE; then
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 fi
391 nonopt="$ac_option"
484 ;; 392 ;;
485 393
486 esac 394 esac
487done 395done
488 396
489if test -n "$ac_prev"; then 397if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
493fi 399fi
494 400
495# Be sure to have absolute paths. 401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496for ac_var in exec_prefix prefix 402
403# File descriptor usage:
404# 0 standard input
405# 1 file creation
406# 2 errors and warnings
407# 3 some systems may open it to /dev/tty
408# 4 used on the Kubota Titan
409# 6 checking for... messages and results
410# 5 compiler messages saved in config.log
411if test "$silent" = yes; then
412 exec 6>/dev/null
413else
414 exec 6>&1
415fi
416exec 5>./config.log
417
418echo "\
419This file contains any messages produced by compilers while
420running configure, to aid debugging if configure makes a mistake.
421" 1>&5
422
423# Strip out --no-create and --no-recursion so they do not pile up.
424# Also quote any args containing shell metacharacters.
425ac_configure_args=
426for ac_arg
497do 427do
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in 428 case "$ac_arg" in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 430 | --no-cr | --no-c) ;;
502 { (exit 1); exit 1; }; };; 431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 esac 436 esac
504done 437done
505 438
506# Be sure to have absolute paths. 439# NLS nuisances.
507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 440# Only set these to C if already set. These must not be set unconditionally
508 localstatedir libdir includedir oldincludedir infodir mandir 441# because not all systems understand e.g. LANG=C (notably SCO).
509do 442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 eval ac_val=$`echo $ac_var` 443# Non-C LC_CTYPE values break the ctype check.
511 case $ac_val in 444if test "${LANG+set}" = set; then LANG=C; export LANG; fi
512 [\\/$]* | ?:[\\/]* ) ;; 445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
514 { (exit 1); exit 1; }; };; 447if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
515 esac
516done
517 448
518# There might be people who depend on the old broken behavior: `$host' 449# confdefs.h avoids OS command line length limits that DEFS can exceed.
519# used to hold the argument of --host etc. 450rm -rf conftest* confdefs.h
520build=$build_alias 451# AIX cpp loses on an empty file, so make sure it contains at least a newline.
521host=$host_alias 452echo > confdefs.h
522target=$target_alias
523 453
524# FIXME: should be removed in autoconf 3.0. 454# A filename unique to this package, relative to the directory that
525if test "x$host_alias" != x; then 455# configure is in, which we can look for to find out if srcdir is correct.
526 if test "x$build_alias" = x; then 456ac_unique_file=uulib.c
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
532 fi
533fi
534
535ac_tool_prefix=
536test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538test "$silent" = yes && exec 6>/dev/null
539 457
540# Find the source files, if location was not specified. 458# Find the source files, if location was not specified.
541if test -z "$srcdir"; then 459if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes 460 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent. 461 # Try the directory containing this script, then its parent.
544 ac_prog=$0 462 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir 465 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then 466 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=.. 467 srcdir=..
550 fi 468 fi
551else 469else
552 ac_srcdir_defaulted=no 470 ac_srcdir_defaulted=no
553fi 471fi
554if test ! -r $srcdir/$ac_unique_file; then 472if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then 473 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { (exit 1); exit 1; }; }
558 else 475 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 { (exit 1); exit 1; }; }
561 fi 477 fi
562fi 478fi
563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564ac_env_build_alias_set=${build_alias+set}
565ac_env_build_alias_value=$build_alias
566ac_cv_env_build_alias_set=${build_alias+set}
567ac_cv_env_build_alias_value=$build_alias
568ac_env_host_alias_set=${host_alias+set}
569ac_env_host_alias_value=$host_alias
570ac_cv_env_host_alias_set=${host_alias+set}
571ac_cv_env_host_alias_value=$host_alias
572ac_env_target_alias_set=${target_alias+set}
573ac_env_target_alias_value=$target_alias
574ac_cv_env_target_alias_set=${target_alias+set}
575ac_cv_env_target_alias_value=$target_alias
576ac_env_CC_set=${CC+set}
577ac_env_CC_value=$CC
578ac_cv_env_CC_set=${CC+set}
579ac_cv_env_CC_value=$CC
580ac_env_CFLAGS_set=${CFLAGS+set}
581ac_env_CFLAGS_value=$CFLAGS
582ac_cv_env_CFLAGS_set=${CFLAGS+set}
583ac_cv_env_CFLAGS_value=$CFLAGS
584ac_env_LDFLAGS_set=${LDFLAGS+set}
585ac_env_LDFLAGS_value=$LDFLAGS
586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587ac_cv_env_LDFLAGS_value=$LDFLAGS
588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589ac_env_CPPFLAGS_value=$CPPFLAGS
590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592ac_env_CPP_set=${CPP+set}
593ac_env_CPP_value=$CPP
594ac_cv_env_CPP_set=${CPP+set}
595ac_cv_env_CPP_value=$CPP
596 480
597#
598# Report the --help message.
599#
600if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604\`configure' configures this package to adapt to many kinds of systems.
605
606Usage: $0 [OPTION]... [VAR=VALUE]...
607
608To assign environment variables (e.g., CC, CFLAGS...), specify them as
609VAR=VALUE. See below for descriptions of some of the useful variables.
610
611Defaults for the options are specified in brackets.
612
613Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
623
624EOF
625
626 cat <<EOF
627Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
632
633By default, \`make install' will install all the files in
634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636for instance \`--prefix=\$HOME'.
637
638For better control, use the options below.
639
640Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
653EOF
654
655 cat <<\EOF
656EOF
657fi
658
659if test -n "$ac_init_help"; then
660
661 cat <<\EOF
662
663Optional Packages:
664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
666
667Some influential environment variables:
668 CC C compiler command
669 CFLAGS C compiler flags
670 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
671 nonstandard directory <lib dir>
672 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
673 headers in a nonstandard directory <include dir>
674 CPP C preprocessor
675
676Use these variables to override the choices made by `configure' or to help
677it to find libraries and programs with nonstandard names/locations.
678
679EOF
680fi
681
682if test "$ac_init_help" = "recursive"; then
683 # If there are subdirs, report their specific --help.
684 ac_popdir=`pwd`
685 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686 cd $ac_subdir
687 # A "../" for each directory in /$ac_subdir.
688 ac_dots=`echo $ac_subdir |
689 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690
691 case $srcdir in
692 .) # No --srcdir option. We are building in place.
693 ac_sub_srcdir=$srcdir ;;
694 [\\/]* | ?:[\\/]* ) # Absolute path.
695 ac_sub_srcdir=$srcdir/$ac_subdir ;;
696 *) # Relative path.
697 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 esac
699
700 # Check for guested configure; otherwise get Cygnus style configure.
701 if test -f $ac_sub_srcdir/configure.gnu; then
702 echo
703 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704 elif test -f $ac_sub_srcdir/configure; then
705 echo
706 $SHELL $ac_sub_srcdir/configure --help=recursive
707 elif test -f $ac_sub_srcdir/configure.ac ||
708 test -f $ac_sub_srcdir/configure.in; then
709 echo
710 $ac_configure --help
711 else
712 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 fi
714 cd $ac_popdir
715 done
716fi
717
718test -n "$ac_init_help" && exit 0
719if $ac_init_version; then
720 cat <<\EOF
721
722Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
723Free Software Foundation, Inc.
724This configure script is free software; the Free Software Foundation
725gives unlimited permission to copy, distribute and modify it.
726EOF
727 exit 0
728fi
729exec 5>config.log
730cat >&5 <<EOF
731This file contains any messages produced by compilers while
732running configure, to aid debugging if configure makes a mistake.
733
734It was created by $as_me, which was
735generated by GNU Autoconf 2.52. Invocation command line was
736
737 $ $0 $@
738
739EOF
740{
741cat <<_ASUNAME
742## ---------- ##
743## Platform. ##
744## ---------- ##
745
746hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
747uname -m = `(uname -m) 2>/dev/null || echo unknown`
748uname -r = `(uname -r) 2>/dev/null || echo unknown`
749uname -s = `(uname -s) 2>/dev/null || echo unknown`
750uname -v = `(uname -v) 2>/dev/null || echo unknown`
751
752/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
753/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
754
755/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
756/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
757/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
758hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
759/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
760/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
761/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
762
763PATH = $PATH
764
765_ASUNAME
766} >&5
767
768cat >&5 <<EOF
769## ------------ ##
770## Core tests. ##
771## ------------ ##
772
773EOF
774
775# Keep a trace of the command line.
776# Strip out --no-create and --no-recursion so they do not pile up.
777# Also quote any args containing shell meta-characters.
778ac_configure_args=
779ac_sep=
780for ac_arg
781do
782 case $ac_arg in
783 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
784 | --no-cr | --no-c) ;;
785 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
786 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
787 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
788 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
789 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
790 ac_sep=" " ;;
791 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
792 ac_sep=" " ;;
793 esac
794 # Get rid of the leading space.
795done
796
797# When interrupted or exit'd, cleanup temporary files, and complete
798# config.log. We remove comments because anyway the quotes in there
799# would cause problems or look ugly.
800trap 'exit_status=$?
801 # Save into config.log some information that might help in debugging.
802 echo >&5
803 echo "## ----------------- ##" >&5
804 echo "## Cache variables. ##" >&5
805 echo "## ----------------- ##" >&5
806 echo >&5
807 # The following way of writing the cache mishandles newlines in values,
808{
809 (set) 2>&1 |
810 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
811 *ac_space=\ *)
812 sed -n \
813 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
815 ;;
816 *)
817 sed -n \
818 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
819 ;;
820 esac;
821} >&5
822 sed "/^$/d" confdefs.h >conftest.log
823 if test -s conftest.log; then
824 echo >&5
825 echo "## ------------ ##" >&5
826 echo "## confdefs.h. ##" >&5
827 echo "## ------------ ##" >&5
828 echo >&5
829 cat conftest.log >&5
830 fi
831 (echo; echo) >&5
832 test "$ac_signal" != 0 &&
833 echo "$as_me: caught signal $ac_signal" >&5
834 echo "$as_me: exit $exit_status" >&5
835 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
836 exit $exit_status
837 ' 0
838for ac_signal in 1 2 13 15; do
839 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
840done
841ac_signal=0
842
843# confdefs.h avoids OS command line length limits that DEFS can exceed.
844rm -rf conftest* confdefs.h
845# AIX cpp loses on an empty file, so make sure it contains at least a newline.
846echo >confdefs.h
847
848# Let the site file select an alternate cache file if it wants to.
849# Prefer explicitly selected file to automatically selected ones. 481# Prefer explicitly selected file to automatically selected ones.
850if test -z "$CONFIG_SITE"; then 482if test -z "$CONFIG_SITE"; then
851 if test "x$prefix" != xNONE; then 483 if test "x$prefix" != xNONE; then
852 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
853 else 485 else
854 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
855 fi 487 fi
856fi 488fi
857for ac_site_file in $CONFIG_SITE; do 489for ac_site_file in $CONFIG_SITE; do
858 if test -r "$ac_site_file"; then 490 if test -r "$ac_site_file"; then
859 { echo "$as_me:859: loading site script $ac_site_file" >&5 491 echo "loading site script $ac_site_file"
860echo "$as_me: loading site script $ac_site_file" >&6;}
861 cat "$ac_site_file" >&5
862 . "$ac_site_file" 492 . "$ac_site_file"
863 fi 493 fi
864done 494done
865 495
866if test -r "$cache_file"; then 496if test -r "$cache_file"; then
867 # Some versions of bash will fail to source /dev/null (special
868 # files actually), so we avoid doing that.
869 if test -f "$cache_file"; then
870 { echo "$as_me:870: loading cache $cache_file" >&5
871echo "$as_me: loading cache $cache_file" >&6;} 497 echo "loading cache $cache_file"
872 case $cache_file in 498 . $cache_file
873 [\\/]* | ?:[\\/]* ) . $cache_file;; 499else
874 *) . ./$cache_file;; 500 echo "creating cache $cache_file"
875 esac 501 > $cache_file
502fi
503
504ac_ext=c
505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506ac_cpp='$CPP $CPPFLAGS'
507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509cross_compiling=$ac_cv_prog_cc_cross
510
511ac_exeext=
512ac_objext=o
513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
876 fi 520 fi
877else 521else
878 { echo "$as_me:878: creating cache $cache_file" >&5 522 ac_n= ac_c='\c' ac_t=
879echo "$as_me: creating cache $cache_file" >&6;}
880 >$cache_file
881fi 523fi
882 524
883# Check that the precious variables saved in the cache have kept the same
884# value.
885ac_cache_corrupted=false
886for ac_var in `(set) 2>&1 |
887 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
889 eval ac_new_set=\$ac_env_${ac_var}_set
890 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
891 eval ac_new_val="\$ac_env_${ac_var}_value"
892 case $ac_old_set,$ac_new_set in
893 set,)
894 { echo "$as_me:894: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
895echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
896 ac_cache_corrupted=: ;;
897 ,set)
898 { echo "$as_me:898: error: \`$ac_var' was not set in the previous run" >&5
899echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
900 ac_cache_corrupted=: ;;
901 ,);;
902 *)
903 if test "x$ac_old_val" != "x$ac_new_val"; then
904 { echo "$as_me:904: error: \`$ac_var' has changed since the previous run:" >&5
905echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
906 { echo "$as_me:906: former value: $ac_old_val" >&5
907echo "$as_me: former value: $ac_old_val" >&2;}
908 { echo "$as_me:908: current value: $ac_new_val" >&5
909echo "$as_me: current value: $ac_new_val" >&2;}
910 ac_cache_corrupted=:
911 fi;;
912 esac
913 # Pass precious variables to config.status. It doesn't matter if
914 # we pass some twice (in addition to the command line arguments).
915 if test "$ac_new_set" = set; then
916 case $ac_new_val in
917 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
918 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
919 ac_configure_args="$ac_configure_args '$ac_arg'"
920 ;;
921 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
922 ;;
923 esac
924 fi
925done
926if $ac_cache_corrupted; then
927 { echo "$as_me:927: error: changes in the environment can compromise the build" >&5
928echo "$as_me: error: changes in the environment can compromise the build" >&2;}
929 { { echo "$as_me:929: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
930echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
931 { (exit 1); exit 1; }; }
932fi
933 525
934ac_ext=c
935ac_cpp='$CPP $CPPFLAGS'
936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
938ac_compiler_gnu=$ac_cv_c_compiler_gnu
939 526
940case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
941 *c*,-n*) ECHO_N= ECHO_C='
942' ECHO_T=' ' ;;
943 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
944 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
945esac
946echo "#! $SHELL" >conftest.sh
947echo "exit 0" >>conftest.sh
948chmod +x conftest.sh
949if { (echo "$as_me:949: PATH=\".;.\"; conftest.sh") >&5
950 (PATH=".;."; conftest.sh) 2>&5
951 ac_status=$?
952 echo "$as_me:952: \$? = $ac_status" >&5
953 (exit $ac_status); }; then
954 ac_path_separator=';'
955else
956 ac_path_separator=:
957fi
958PATH_SEPARATOR="$ac_path_separator"
959rm -f conftest.sh
960 527
961ac_config_headers="$ac_config_headers config.h"
962 528
963# 529#
964# package revision 530# package revision
965# 531#
966VERSION=0.5 532VERSION=0.5
967PATCH=15 533PATCH=19
968 534
969# Check whether --with-cc or --without-cc was given. 535# Check whether --enable-optimize or --disable-optimize was given.
970if test "${with_cc+set}" = set; then 536if test "${enable_optimize+set}" = set; then
971 withval="$with_cc" 537 enableval="$enable_optimize"
972 CC=$with_cc 538 optimize=$enableval
539else
540 optimize=yes
973fi; 541fi
974 542
975# Check whether --with-cflags or --without-cflags was given.
976if test "${with_cflags+set}" = set; then
977 withval="$with_cflags"
978 CFLAGS=$with_cflags
979fi;
980 543
981ac_ext=c
982ac_cpp='$CPP $CPPFLAGS'
983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
985ac_compiler_gnu=$ac_cv_c_compiler_gnu
986if test -n "$ac_tool_prefix"; then
987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 544# Extract the first word of "gcc", so it can be a program name with args.
988set dummy ${ac_tool_prefix}gcc; ac_word=$2 545set dummy gcc; ac_word=$2
546echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989echo "$as_me:989: checking for $ac_word" >&5 547echo "configure:548: checking for $ac_word" >&5
990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
991if test "${ac_cv_prog_CC+set}" = set; then 548if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
992 echo $ECHO_N "(cached) $ECHO_C" >&6 549 echo $ac_n "(cached) $ac_c" 1>&6
993else 550else
994 if test -n "$CC"; then 551 if test -n "$CC"; then
995 ac_cv_prog_CC="$CC" # Let the user override the test. 552 ac_cv_prog_CC="$CC" # Let the user override the test.
996else 553else
997 ac_save_IFS=$IFS; IFS=$ac_path_separator 554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998ac_dummy="$PATH" 555 ac_dummy="$PATH"
999for ac_dir in $ac_dummy; do 556 for ac_dir in $ac_dummy; do
1000 IFS=$ac_save_IFS
1001 test -z "$ac_dir" && ac_dir=. 557 test -z "$ac_dir" && ac_dir=.
1002 $as_executable_p "$ac_dir/$ac_word" || continue 558 if test -f $ac_dir/$ac_word; then
1003ac_cv_prog_CC="${ac_tool_prefix}gcc" 559 ac_cv_prog_CC="gcc"
1004echo "$as_me:1004: found $ac_dir/$ac_word" >&5 560 break
1005break 561 fi
1006done 562 done
1007 563 IFS="$ac_save_ifs"
1008fi 564fi
1009fi 565fi
1010CC=$ac_cv_prog_CC 566CC="$ac_cv_prog_CC"
1011if test -n "$CC"; then 567if test -n "$CC"; then
1012 echo "$as_me:1012: result: $CC" >&5 568 echo "$ac_t""$CC" 1>&6
1013echo "${ECHO_T}$CC" >&6
1014else 569else
1015 echo "$as_me:1015: result: no" >&5 570 echo "$ac_t""no" 1>&6
1016echo "${ECHO_T}no" >&6
1017fi 571fi
1018 572
1019fi
1020if test -z "$ac_cv_prog_CC"; then
1021 ac_ct_CC=$CC
1022 # Extract the first word of "gcc", so it can be a program name with args.
1023set dummy gcc; ac_word=$2
1024echo "$as_me:1024: checking for $ac_word" >&5
1025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1027 echo $ECHO_N "(cached) $ECHO_C" >&6
1028else
1029 if test -n "$ac_ct_CC"; then
1030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1031else
1032 ac_save_IFS=$IFS; IFS=$ac_path_separator
1033ac_dummy="$PATH"
1034for ac_dir in $ac_dummy; do
1035 IFS=$ac_save_IFS
1036 test -z "$ac_dir" && ac_dir=.
1037 $as_executable_p "$ac_dir/$ac_word" || continue
1038ac_cv_prog_ac_ct_CC="gcc"
1039echo "$as_me:1039: found $ac_dir/$ac_word" >&5
1040break
1041done
1042
1043fi
1044fi
1045ac_ct_CC=$ac_cv_prog_ac_ct_CC
1046if test -n "$ac_ct_CC"; then
1047 echo "$as_me:1047: result: $ac_ct_CC" >&5
1048echo "${ECHO_T}$ac_ct_CC" >&6
1049else
1050 echo "$as_me:1050: result: no" >&5
1051echo "${ECHO_T}no" >&6
1052fi
1053
1054 CC=$ac_ct_CC
1055else
1056 CC="$ac_cv_prog_CC"
1057fi
1058
1059if test -z "$CC"; then
1060 if test -n "$ac_tool_prefix"; then
1061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1062set dummy ${ac_tool_prefix}cc; ac_word=$2
1063echo "$as_me:1063: checking for $ac_word" >&5
1064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1065if test "${ac_cv_prog_CC+set}" = set; then
1066 echo $ECHO_N "(cached) $ECHO_C" >&6
1067else
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC="$CC" # Let the user override the test.
1070else
1071 ac_save_IFS=$IFS; IFS=$ac_path_separator
1072ac_dummy="$PATH"
1073for ac_dir in $ac_dummy; do
1074 IFS=$ac_save_IFS
1075 test -z "$ac_dir" && ac_dir=.
1076 $as_executable_p "$ac_dir/$ac_word" || continue
1077ac_cv_prog_CC="${ac_tool_prefix}cc"
1078echo "$as_me:1078: found $ac_dir/$ac_word" >&5
1079break
1080done
1081
1082fi
1083fi
1084CC=$ac_cv_prog_CC
1085if test -n "$CC"; then
1086 echo "$as_me:1086: result: $CC" >&5
1087echo "${ECHO_T}$CC" >&6
1088else
1089 echo "$as_me:1089: result: no" >&5
1090echo "${ECHO_T}no" >&6
1091fi
1092
1093fi
1094if test -z "$ac_cv_prog_CC"; then
1095 ac_ct_CC=$CC
1096 # Extract the first word of "cc", so it can be a program name with args.
1097set dummy cc; ac_word=$2
1098echo "$as_me:1098: checking for $ac_word" >&5
1099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1101 echo $ECHO_N "(cached) $ECHO_C" >&6
1102else
1103 if test -n "$ac_ct_CC"; then
1104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1105else
1106 ac_save_IFS=$IFS; IFS=$ac_path_separator
1107ac_dummy="$PATH"
1108for ac_dir in $ac_dummy; do
1109 IFS=$ac_save_IFS
1110 test -z "$ac_dir" && ac_dir=.
1111 $as_executable_p "$ac_dir/$ac_word" || continue
1112ac_cv_prog_ac_ct_CC="cc"
1113echo "$as_me:1113: found $ac_dir/$ac_word" >&5
1114break
1115done
1116
1117fi
1118fi
1119ac_ct_CC=$ac_cv_prog_ac_ct_CC
1120if test -n "$ac_ct_CC"; then
1121 echo "$as_me:1121: result: $ac_ct_CC" >&5
1122echo "${ECHO_T}$ac_ct_CC" >&6
1123else
1124 echo "$as_me:1124: result: no" >&5
1125echo "${ECHO_T}no" >&6
1126fi
1127
1128 CC=$ac_ct_CC
1129else
1130 CC="$ac_cv_prog_CC"
1131fi
1132
1133fi
1134if test -z "$CC"; then 573if test -z "$CC"; then
1135 # Extract the first word of "cc", so it can be a program name with args. 574 # Extract the first word of "cc", so it can be a program name with args.
1136set dummy cc; ac_word=$2 575set dummy cc; ac_word=$2
1137echo "$as_me:1137: checking for $ac_word" >&5
1138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 576echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577echo "configure:578: checking for $ac_word" >&5
1139if test "${ac_cv_prog_CC+set}" = set; then 578if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1140 echo $ECHO_N "(cached) $ECHO_C" >&6 579 echo $ac_n "(cached) $ac_c" 1>&6
1141else 580else
1142 if test -n "$CC"; then 581 if test -n "$CC"; then
1143 ac_cv_prog_CC="$CC" # Let the user override the test. 582 ac_cv_prog_CC="$CC" # Let the user override the test.
1144else 583else
584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1145 ac_prog_rejected=no 585 ac_prog_rejected=no
1146 ac_save_IFS=$IFS; IFS=$ac_path_separator
1147ac_dummy="$PATH" 586 ac_dummy="$PATH"
1148for ac_dir in $ac_dummy; do 587 for ac_dir in $ac_dummy; do
1149 IFS=$ac_save_IFS
1150 test -z "$ac_dir" && ac_dir=. 588 test -z "$ac_dir" && ac_dir=.
1151 $as_executable_p "$ac_dir/$ac_word" || continue 589 if test -f $ac_dir/$ac_word; then
1152if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 590 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1153 ac_prog_rejected=yes 591 ac_prog_rejected=yes
1154 continue 592 continue
1155fi 593 fi
1156ac_cv_prog_CC="cc" 594 ac_cv_prog_CC="cc"
1157echo "$as_me:1157: found $ac_dir/$ac_word" >&5 595 break
1158break 596 fi
1159done 597 done
1160 598 IFS="$ac_save_ifs"
1161if test $ac_prog_rejected = yes; then 599if test $ac_prog_rejected = yes; then
1162 # We found a bogon in the path, so make sure we never use it. 600 # We found a bogon in the path, so make sure we never use it.
1163 set dummy $ac_cv_prog_CC 601 set dummy $ac_cv_prog_CC
1164 shift 602 shift
1165 if test $# != 0; then 603 if test $# -gt 0; then
1166 # We chose a different compiler from the bogus one. 604 # We chose a different compiler from the bogus one.
1167 # However, it has the same basename, so the bogon will be chosen 605 # However, it has the same basename, so the bogon will be chosen
1168 # first if we set CC to just the basename; use the full file name. 606 # first if we set CC to just the basename; use the full file name.
1169 shift 607 shift
1170 set dummy "$ac_dir/$ac_word" ${1+"$@"} 608 set dummy "$ac_dir/$ac_word" "$@"
1171 shift 609 shift
1172 ac_cv_prog_CC="$@" 610 ac_cv_prog_CC="$@"
1173 fi 611 fi
1174fi 612fi
1175fi 613fi
1176fi 614fi
1177CC=$ac_cv_prog_CC 615CC="$ac_cv_prog_CC"
1178if test -n "$CC"; then 616if test -n "$CC"; then
1179 echo "$as_me:1179: result: $CC" >&5 617 echo "$ac_t""$CC" 1>&6
1180echo "${ECHO_T}$CC" >&6
1181else 618else
1182 echo "$as_me:1182: result: no" >&5 619 echo "$ac_t""no" 1>&6
1183echo "${ECHO_T}no" >&6
1184fi 620fi
1185 621
1186fi
1187if test -z "$CC"; then 622 if test -z "$CC"; then
1188 if test -n "$ac_tool_prefix"; then 623 case "`uname -s`" in
1189 for ac_prog in cl 624 *win32* | *WIN32*)
1190 do
1191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 625 # Extract the first word of "cl", so it can be a program name with args.
1192set dummy $ac_tool_prefix$ac_prog; ac_word=$2 626set dummy cl; ac_word=$2
1193echo "$as_me:1193: checking for $ac_word" >&5
1194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628echo "configure:629: checking for $ac_word" >&5
1195if test "${ac_cv_prog_CC+set}" = set; then 629if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1196 echo $ECHO_N "(cached) $ECHO_C" >&6 630 echo $ac_n "(cached) $ac_c" 1>&6
1197else 631else
1198 if test -n "$CC"; then 632 if test -n "$CC"; then
1199 ac_cv_prog_CC="$CC" # Let the user override the test. 633 ac_cv_prog_CC="$CC" # Let the user override the test.
1200else 634else
1201 ac_save_IFS=$IFS; IFS=$ac_path_separator 635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202ac_dummy="$PATH" 636 ac_dummy="$PATH"
1203for ac_dir in $ac_dummy; do 637 for ac_dir in $ac_dummy; do
1204 IFS=$ac_save_IFS
1205 test -z "$ac_dir" && ac_dir=. 638 test -z "$ac_dir" && ac_dir=.
1206 $as_executable_p "$ac_dir/$ac_word" || continue 639 if test -f $ac_dir/$ac_word; then
1207ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 640 ac_cv_prog_CC="cl"
1208echo "$as_me:1208: found $ac_dir/$ac_word" >&5 641 break
1209break 642 fi
1210done 643 done
1211 644 IFS="$ac_save_ifs"
1212fi 645fi
1213fi 646fi
1214CC=$ac_cv_prog_CC 647CC="$ac_cv_prog_CC"
1215if test -n "$CC"; then 648if test -n "$CC"; then
1216 echo "$as_me:1216: result: $CC" >&5 649 echo "$ac_t""$CC" 1>&6
1217echo "${ECHO_T}$CC" >&6
1218else 650else
1219 echo "$as_me:1219: result: no" >&5 651 echo "$ac_t""no" 1>&6
1220echo "${ECHO_T}no" >&6
1221fi 652fi
1222 653 ;;
1223 test -n "$CC" && break 654 esac
1224 done 655 fi
1225fi
1226if test -z "$CC"; then
1227 ac_ct_CC=$CC
1228 for ac_prog in cl
1229do
1230 # Extract the first word of "$ac_prog", so it can be a program name with args.
1231set dummy $ac_prog; ac_word=$2
1232echo "$as_me:1232: checking for $ac_word" >&5
1233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1235 echo $ECHO_N "(cached) $ECHO_C" >&6
1236else
1237 if test -n "$ac_ct_CC"; then
1238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1239else
1240 ac_save_IFS=$IFS; IFS=$ac_path_separator
1241ac_dummy="$PATH"
1242for ac_dir in $ac_dummy; do
1243 IFS=$ac_save_IFS
1244 test -z "$ac_dir" && ac_dir=.
1245 $as_executable_p "$ac_dir/$ac_word" || continue
1246ac_cv_prog_ac_ct_CC="$ac_prog"
1247echo "$as_me:1247: found $ac_dir/$ac_word" >&5
1248break
1249done
1250
1251fi
1252fi
1253ac_ct_CC=$ac_cv_prog_ac_ct_CC
1254if test -n "$ac_ct_CC"; then
1255 echo "$as_me:1255: result: $ac_ct_CC" >&5
1256echo "${ECHO_T}$ac_ct_CC" >&6
1257else
1258 echo "$as_me:1258: result: no" >&5
1259echo "${ECHO_T}no" >&6
1260fi
1261
1262 test -n "$ac_ct_CC" && break
1263done
1264
1265 CC=$ac_ct_CC
1266fi
1267
1268fi
1269
1270test -z "$CC" && { { echo "$as_me:1270: error: no acceptable cc found in \$PATH" >&5 656 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1271echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 657fi
1272 { (exit 1); exit 1; }; }
1273 658
1274# Provide some information about the compiler. 659echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1275echo "$as_me:1275:" \ 660echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1276 "checking for C compiler version" >&5
1277ac_compiler=`set X $ac_compile; echo $2`
1278{ (eval echo "$as_me:1278: \"$ac_compiler --version </dev/null >&5\"") >&5
1279 (eval $ac_compiler --version </dev/null >&5) 2>&5
1280 ac_status=$?
1281 echo "$as_me:1281: \$? = $ac_status" >&5
1282 (exit $ac_status); }
1283{ (eval echo "$as_me:1283: \"$ac_compiler -v </dev/null >&5\"") >&5
1284 (eval $ac_compiler -v </dev/null >&5) 2>&5
1285 ac_status=$?
1286 echo "$as_me:1286: \$? = $ac_status" >&5
1287 (exit $ac_status); }
1288{ (eval echo "$as_me:1288: \"$ac_compiler -V </dev/null >&5\"") >&5
1289 (eval $ac_compiler -V </dev/null >&5) 2>&5
1290 ac_status=$?
1291 echo "$as_me:1291: \$? = $ac_status" >&5
1292 (exit $ac_status); }
1293 661
662ac_ext=c
663# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
664ac_cpp='$CPP $CPPFLAGS'
665ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
666ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
667cross_compiling=$ac_cv_prog_cc_cross
668
1294cat >conftest.$ac_ext <<_ACEOF 669cat > conftest.$ac_ext << EOF
670
1295#line 1295 "configure" 671#line 672 "configure"
1296#include "confdefs.h" 672#include "confdefs.h"
1297 673
1298int 674main(){return(0);}
1299main () 675EOF
1300{ 676if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 677 ac_cv_prog_cc_works=yes
1302 ; 678 # If we can't run a trivial program, we are probably using a cross compiler.
1303 return 0; 679 if (./conftest; exit) 2>/dev/null; then
1304} 680 ac_cv_prog_cc_cross=no
1305_ACEOF
1306ac_clean_files_save=$ac_clean_files
1307ac_clean_files="$ac_clean_files a.out a.exe"
1308# Try to create an executable without -o first, disregard a.out.
1309# It will help us diagnose broken compilers, and finding out an intuition
1310# of exeext.
1311echo "$as_me:1311: checking for C compiler default output" >&5
1312echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1313ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1314if { (eval echo "$as_me:1314: \"$ac_link_default\"") >&5
1315 (eval $ac_link_default) 2>&5
1316 ac_status=$?
1317 echo "$as_me:1317: \$? = $ac_status" >&5
1318 (exit $ac_status); }; then
1319 # Find the output, starting from the most likely. This scheme is
1320# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1321# resort.
1322for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1323 ls a.out conftest 2>/dev/null;
1324 ls a.* conftest.* 2>/dev/null`; do
1325 case $ac_file in
1326 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1327 a.out ) # We found the default executable, but exeext='' is most
1328 # certainly right.
1329 break;;
1330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1331 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1332 export ac_cv_exeext
1333 break;;
1334 * ) break;;
1335 esac
1336done
1337else
1338 echo "$as_me: failed program was:" >&5
1339cat conftest.$ac_ext >&5
1340{ { echo "$as_me:1340: error: C compiler cannot create executables" >&5
1341echo "$as_me: error: C compiler cannot create executables" >&2;}
1342 { (exit 77); exit 77; }; }
1343fi
1344
1345ac_exeext=$ac_cv_exeext
1346echo "$as_me:1346: result: $ac_file" >&5
1347echo "${ECHO_T}$ac_file" >&6
1348
1349# Check the compiler produces executables we can run. If not, either
1350# the compiler is broken, or we cross compile.
1351echo "$as_me:1351: checking whether the C compiler works" >&5
1352echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1353# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1354# If not cross compiling, check that we can run a simple program.
1355if test "$cross_compiling" != yes; then
1356 if { ac_try='./$ac_file'
1357 { (eval echo "$as_me:1357: \"$ac_try\"") >&5
1358 (eval $ac_try) 2>&5
1359 ac_status=$?
1360 echo "$as_me:1360: \$? = $ac_status" >&5
1361 (exit $ac_status); }; }; then
1362 cross_compiling=no
1363 else 681 else
1364 if test "$cross_compiling" = maybe; then 682 ac_cv_prog_cc_cross=yes
1365 cross_compiling=yes
1366 else
1367 { { echo "$as_me:1367: error: cannot run C compiled programs.
1368If you meant to cross compile, use \`--host'." >&5
1369echo "$as_me: error: cannot run C compiled programs.
1370If you meant to cross compile, use \`--host'." >&2;}
1371 { (exit 1); exit 1; }; }
1372 fi
1373 fi 683 fi
1374fi
1375echo "$as_me:1375: result: yes" >&5
1376echo "${ECHO_T}yes" >&6
1377
1378rm -f a.out a.exe conftest$ac_cv_exeext
1379ac_clean_files=$ac_clean_files_save
1380# Check the compiler produces executables we can run. If not, either
1381# the compiler is broken, or we cross compile.
1382echo "$as_me:1382: checking whether we are cross compiling" >&5
1383echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1384echo "$as_me:1384: result: $cross_compiling" >&5
1385echo "${ECHO_T}$cross_compiling" >&6
1386
1387echo "$as_me:1387: checking for executable suffix" >&5
1388echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1389if { (eval echo "$as_me:1389: \"$ac_link\"") >&5
1390 (eval $ac_link) 2>&5
1391 ac_status=$?
1392 echo "$as_me:1392: \$? = $ac_status" >&5
1393 (exit $ac_status); }; then
1394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1395# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1396# work properly (i.e., refer to `conftest.exe'), while it won't with
1397# `rm'.
1398for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1399 case $ac_file in
1400 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1402 export ac_cv_exeext
1403 break;;
1404 * ) break;;
1405 esac
1406done
1407else 684else
1408 { { echo "$as_me:1408: error: cannot compute EXEEXT: cannot compile and link" >&5
1409echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1410 { (exit 1); exit 1; }; }
1411fi
1412
1413rm -f conftest$ac_cv_exeext
1414echo "$as_me:1414: result: $ac_cv_exeext" >&5
1415echo "${ECHO_T}$ac_cv_exeext" >&6
1416
1417rm -f conftest.$ac_ext
1418EXEEXT=$ac_cv_exeext
1419ac_exeext=$EXEEXT
1420echo "$as_me:1420: checking for object suffix" >&5
1421echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1422if test "${ac_cv_objext+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424else
1425 cat >conftest.$ac_ext <<_ACEOF
1426#line 1426 "configure"
1427#include "confdefs.h"
1428
1429int
1430main ()
1431{
1432
1433 ;
1434 return 0;
1435}
1436_ACEOF
1437rm -f conftest.o conftest.obj
1438if { (eval echo "$as_me:1438: \"$ac_compile\"") >&5
1439 (eval $ac_compile) 2>&5
1440 ac_status=$?
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }; then
1443 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1444 case $ac_file in
1445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1446 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1447 break;;
1448 esac
1449done
1450else
1451 echo "$as_me: failed program was:" >&5 685 echo "configure: failed program was:" >&5
1452cat conftest.$ac_ext >&5 686 cat conftest.$ac_ext >&5
1453{ { echo "$as_me:1453: error: cannot compute OBJEXT: cannot compile" >&5 687 ac_cv_prog_cc_works=no
1454echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1455 { (exit 1); exit 1; }; }
1456fi 688fi
689rm -fr conftest*
690ac_ext=c
691# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
692ac_cpp='$CPP $CPPFLAGS'
693ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
694ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
695cross_compiling=$ac_cv_prog_cc_cross
1457 696
1458rm -f conftest.$ac_cv_objext conftest.$ac_ext 697echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
698if test $ac_cv_prog_cc_works = no; then
699 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1459fi 700fi
1460echo "$as_me:1460: result: $ac_cv_objext" >&5 701echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1461echo "${ECHO_T}$ac_cv_objext" >&6 702echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1462OBJEXT=$ac_cv_objext 703echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1463ac_objext=$OBJEXT 704cross_compiling=$ac_cv_prog_cc_cross
1464echo "$as_me:1464: checking whether we are using the GNU C compiler" >&5 705
1465echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 706echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1466if test "${ac_cv_c_compiler_gnu+set}" = set; then 707echo "configure:708: checking whether we are using GNU C" >&5
708if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6 709 echo $ac_n "(cached) $ac_c" 1>&6
1468else 710else
1469 cat >conftest.$ac_ext <<_ACEOF 711 cat > conftest.c <<EOF
1470#line 1470 "configure"
1471#include "confdefs.h"
1472
1473int
1474main ()
1475{
1476#ifndef __GNUC__ 712#ifdef __GNUC__
1477 choke me 713 yes;
1478#endif 714#endif
1479 715EOF
1480 ; 716if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1481 return 0; 717 ac_cv_prog_gcc=yes
1482}
1483_ACEOF
1484rm -f conftest.$ac_objext
1485if { (eval echo "$as_me:1485: \"$ac_compile\"") >&5
1486 (eval $ac_compile) 2>&5
1487 ac_status=$?
1488 echo "$as_me:1488: \$? = $ac_status" >&5
1489 (exit $ac_status); } &&
1490 { ac_try='test -s conftest.$ac_objext'
1491 { (eval echo "$as_me:1491: \"$ac_try\"") >&5
1492 (eval $ac_try) 2>&5
1493 ac_status=$?
1494 echo "$as_me:1494: \$? = $ac_status" >&5
1495 (exit $ac_status); }; }; then
1496 ac_compiler_gnu=yes
1497else 718else
1498 echo "$as_me: failed program was:" >&5 719 ac_cv_prog_gcc=no
1499cat conftest.$ac_ext >&5
1500ac_compiler_gnu=no
1501fi 720fi
1502rm -f conftest.$ac_objext conftest.$ac_ext
1503ac_cv_c_compiler_gnu=$ac_compiler_gnu
1504
1505fi 721fi
1506echo "$as_me:1506: result: $ac_cv_c_compiler_gnu" >&5 722
1507echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 723echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1508GCC=`test $ac_compiler_gnu = yes && echo yes` 724
725if test $ac_cv_prog_gcc = yes; then
726 GCC=yes
727else
728 GCC=
729fi
730
1509ac_test_CFLAGS=${CFLAGS+set} 731ac_test_CFLAGS="${CFLAGS+set}"
1510ac_save_CFLAGS=$CFLAGS 732ac_save_CFLAGS="$CFLAGS"
1511CFLAGS="-g" 733CFLAGS=
1512echo "$as_me:1512: checking whether $CC accepts -g" >&5
1513echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 734echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
1514if test "${ac_cv_prog_cc_g+set}" = set; then 736if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6 737 echo $ac_n "(cached) $ac_c" 1>&6
1516else 738else
1517 cat >conftest.$ac_ext <<_ACEOF 739 echo 'void f(){}' > conftest.c
1518#line 1518 "configure" 740if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1519#include "confdefs.h"
1520
1521int
1522main ()
1523{
1524
1525 ;
1526 return 0;
1527}
1528_ACEOF
1529rm -f conftest.$ac_objext
1530if { (eval echo "$as_me:1530: \"$ac_compile\"") >&5
1531 (eval $ac_compile) 2>&5
1532 ac_status=$?
1533 echo "$as_me:1533: \$? = $ac_status" >&5
1534 (exit $ac_status); } &&
1535 { ac_try='test -s conftest.$ac_objext'
1536 { (eval echo "$as_me:1536: \"$ac_try\"") >&5
1537 (eval $ac_try) 2>&5
1538 ac_status=$?
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); }; }; then
1541 ac_cv_prog_cc_g=yes 741 ac_cv_prog_cc_g=yes
1542else 742else
1543 echo "$as_me: failed program was:" >&5
1544cat conftest.$ac_ext >&5
1545ac_cv_prog_cc_g=no 743 ac_cv_prog_cc_g=no
1546fi 744fi
1547rm -f conftest.$ac_objext conftest.$ac_ext 745rm -f conftest*
746
1548fi 747fi
1549echo "$as_me:1549: result: $ac_cv_prog_cc_g" >&5 748
1550echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 749echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1551if test "$ac_test_CFLAGS" = set; then 750if test "$ac_test_CFLAGS" = set; then
1552 CFLAGS=$ac_save_CFLAGS 751 CFLAGS="$ac_save_CFLAGS"
1553elif test $ac_cv_prog_cc_g = yes; then 752elif test $ac_cv_prog_cc_g = yes; then
1554 if test "$GCC" = yes; then 753 if test "$GCC" = yes; then
1555 CFLAGS="-g -O2" 754 CFLAGS="-g -O2"
1556 else 755 else
1557 CFLAGS="-g" 756 CFLAGS="-g"
1561 CFLAGS="-O2" 760 CFLAGS="-O2"
1562 else 761 else
1563 CFLAGS= 762 CFLAGS=
1564 fi 763 fi
1565fi 764fi
1566# Some people use a C++ compiler to compile C. Since we use `exit',
1567# in C++ we need to declare it. In case someone uses the same compiler
1568# for both compiling C and C++ we need to have the C++ compiler decide
1569# the declaration of exit, since it's the most demanding environment.
1570cat >conftest.$ac_ext <<_ACEOF
1571#ifndef __cplusplus
1572 choke me
1573#endif
1574_ACEOF
1575rm -f conftest.$ac_objext
1576if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5
1577 (eval $ac_compile) 2>&5
1578 ac_status=$?
1579 echo "$as_me:1579: \$? = $ac_status" >&5
1580 (exit $ac_status); } &&
1581 { ac_try='test -s conftest.$ac_objext'
1582 { (eval echo "$as_me:1582: \"$ac_try\"") >&5
1583 (eval $ac_try) 2>&5
1584 ac_status=$?
1585 echo "$as_me:1585: \$? = $ac_status" >&5
1586 (exit $ac_status); }; }; then
1587 for ac_declaration in \
1588 ''\
1589 '#include <stdlib.h>' \
1590 'extern "C" void std::exit (int) throw (); using std::exit;' \
1591 'extern "C" void std::exit (int); using std::exit;' \
1592 'extern "C" void exit (int) throw ();' \
1593 'extern "C" void exit (int);' \
1594 'void exit (int);'
1595do
1596 cat >conftest.$ac_ext <<_ACEOF
1597#line 1597 "configure"
1598#include "confdefs.h"
1599#include <stdlib.h>
1600$ac_declaration
1601int
1602main ()
1603{
1604exit (42);
1605 ;
1606 return 0;
1607}
1608_ACEOF
1609rm -f conftest.$ac_objext
1610if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1612 ac_status=$?
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); } &&
1615 { ac_try='test -s conftest.$ac_objext'
1616 { (eval echo "$as_me:1616: \"$ac_try\"") >&5
1617 (eval $ac_try) 2>&5
1618 ac_status=$?
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }; }; then
1621 :
1622else
1623 echo "$as_me: failed program was:" >&5
1624cat conftest.$ac_ext >&5
1625continue
1626fi
1627rm -f conftest.$ac_objext conftest.$ac_ext
1628 cat >conftest.$ac_ext <<_ACEOF
1629#line 1629 "configure"
1630#include "confdefs.h"
1631$ac_declaration
1632int
1633main ()
1634{
1635exit (42);
1636 ;
1637 return 0;
1638}
1639_ACEOF
1640rm -f conftest.$ac_objext
1641if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5
1642 (eval $ac_compile) 2>&5
1643 ac_status=$?
1644 echo "$as_me:1644: \$? = $ac_status" >&5
1645 (exit $ac_status); } &&
1646 { ac_try='test -s conftest.$ac_objext'
1647 { (eval echo "$as_me:1647: \"$ac_try\"") >&5
1648 (eval $ac_try) 2>&5
1649 ac_status=$?
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; }; then
1652 break
1653else
1654 echo "$as_me: failed program was:" >&5
1655cat conftest.$ac_ext >&5
1656fi
1657rm -f conftest.$ac_objext conftest.$ac_ext
1658done
1659rm -f conftest*
1660if test -n "$ac_declaration"; then
1661 echo '#ifdef __cplusplus' >>confdefs.h
1662 echo $ac_declaration >>confdefs.h
1663 echo '#endif' >>confdefs.h
1664fi
1665 765
1666else 766echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1667 echo "$as_me: failed program was:" >&5
1668cat conftest.$ac_ext >&5
1669fi
1670rm -f conftest.$ac_objext conftest.$ac_ext
1671ac_ext=c
1672ac_cpp='$CPP $CPPFLAGS'
1673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675ac_compiler_gnu=$ac_cv_c_compiler_gnu
1676
1677ac_ext=c
1678ac_cpp='$CPP $CPPFLAGS'
1679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1681ac_compiler_gnu=$ac_cv_c_compiler_gnu
1682echo "$as_me:1682: checking how to run the C preprocessor" >&5 767echo "configure:768: checking how to run the C preprocessor" >&5
1683echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1684# On Suns, sometimes $CPP names a directory. 768# On Suns, sometimes $CPP names a directory.
1685if test -n "$CPP" && test -d "$CPP"; then 769if test -n "$CPP" && test -d "$CPP"; then
1686 CPP= 770 CPP=
1687fi 771fi
1688if test -z "$CPP"; then 772if test -z "$CPP"; then
1689 if test "${ac_cv_prog_CPP+set}" = set; then 773if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6 774 echo $ac_n "(cached) $ac_c" 1>&6
1691else 775else
1692 # Double quotes because CPP needs to be expanded 776 # This must be in double quotes, not single quotes, because CPP may get
1693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 777 # substituted into the Makefile and "${CC-cc}" will confuse make.
1694 do 778 CPP="${CC-cc} -E"
1695 ac_preproc_ok=false
1696for ac_c_preproc_warn_flag in '' yes
1697do
1698 # Use a header file that comes with gcc, so configuring glibc
1699 # with a fresh cross-compiler works.
1700 # On the NeXT, cc -E runs the code through the compiler's parser, 779 # On the NeXT, cc -E runs the code through the compiler's parser,
1701 # not just through cpp. "Syntax error" is here to catch this case. 780 # not just through cpp.
1702 cat >conftest.$ac_ext <<_ACEOF 781 cat > conftest.$ac_ext <<EOF
1703#line 1703 "configure" 782#line 783 "configure"
1704#include "confdefs.h" 783#include "confdefs.h"
1705#include <assert.h> 784#include <assert.h>
1706 Syntax error 785Syntax Error
1707_ACEOF 786EOF
1708if { (eval echo "$as_me:1708: \"$ac_cpp conftest.$ac_ext\"") >&5 787ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 788{ (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1710 ac_status=$? 789ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1711 egrep -v '^ *\+' conftest.er1 >conftest.err
1712 rm -f conftest.er1
1713 cat conftest.err >&5
1714 echo "$as_me:1714: \$? = $ac_status" >&5
1715 (exit $ac_status); } >/dev/null; then
1716 if test -s conftest.err; then
1717 ac_cpp_err=$ac_c_preproc_warn_flag
1718 else
1719 ac_cpp_err=
1720 fi
1721else
1722 ac_cpp_err=yes
1723fi
1724if test -z "$ac_cpp_err"; then 790if test -z "$ac_err"; then
1725 : 791 :
1726else 792else
793 echo "$ac_err" >&5
1727 echo "$as_me: failed program was:" >&5 794 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5 795 cat conftest.$ac_ext >&5
1729 # Broken: fails on valid input. 796 rm -rf conftest*
1730continue 797 CPP="${CC-cc} -E -traditional-cpp"
1731fi
1732rm -f conftest.err conftest.$ac_ext
1733
1734 # OK, works on sane cases. Now check whether non-existent headers
1735 # can be detected and how.
1736 cat >conftest.$ac_ext <<_ACEOF 798 cat > conftest.$ac_ext <<EOF
1737#line 1737 "configure" 799#line 800 "configure"
1738#include "confdefs.h"
1739#include <ac_nonexistent.h>
1740_ACEOF
1741if { (eval echo "$as_me:1741: \"$ac_cpp conftest.$ac_ext\"") >&5
1742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1743 ac_status=$?
1744 egrep -v '^ *\+' conftest.er1 >conftest.err
1745 rm -f conftest.er1
1746 cat conftest.err >&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); } >/dev/null; then
1749 if test -s conftest.err; then
1750 ac_cpp_err=$ac_c_preproc_warn_flag
1751 else
1752 ac_cpp_err=
1753 fi
1754else
1755 ac_cpp_err=yes
1756fi
1757if test -z "$ac_cpp_err"; then
1758 # Broken: success on invalid input.
1759continue
1760else
1761 echo "$as_me: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1763 # Passes both tests.
1764ac_preproc_ok=:
1765break
1766fi
1767rm -f conftest.err conftest.$ac_ext
1768
1769done
1770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1771rm -f conftest.err conftest.$ac_ext
1772if $ac_preproc_ok; then
1773 break
1774fi
1775
1776 done
1777 ac_cv_prog_CPP=$CPP
1778
1779fi
1780 CPP=$ac_cv_prog_CPP
1781else
1782 ac_cv_prog_CPP=$CPP
1783fi
1784echo "$as_me:1784: result: $CPP" >&5
1785echo "${ECHO_T}$CPP" >&6
1786ac_preproc_ok=false
1787for ac_c_preproc_warn_flag in '' yes
1788do
1789 # Use a header file that comes with gcc, so configuring glibc
1790 # with a fresh cross-compiler works.
1791 # On the NeXT, cc -E runs the code through the compiler's parser,
1792 # not just through cpp. "Syntax error" is here to catch this case.
1793 cat >conftest.$ac_ext <<_ACEOF
1794#line 1794 "configure"
1795#include "confdefs.h" 800#include "confdefs.h"
1796#include <assert.h> 801#include <assert.h>
1797 Syntax error 802Syntax Error
1798_ACEOF 803EOF
1799if { (eval echo "$as_me:1799: \"$ac_cpp conftest.$ac_ext\"") >&5 804ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 805{ (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1801 ac_status=$? 806ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1802 egrep -v '^ *\+' conftest.er1 >conftest.err
1803 rm -f conftest.er1
1804 cat conftest.err >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); } >/dev/null; then
1807 if test -s conftest.err; then
1808 ac_cpp_err=$ac_c_preproc_warn_flag
1809 else
1810 ac_cpp_err=
1811 fi
1812else
1813 ac_cpp_err=yes
1814fi
1815if test -z "$ac_cpp_err"; then 807if test -z "$ac_err"; then
1816 : 808 :
1817else 809else
810 echo "$ac_err" >&5
1818 echo "$as_me: failed program was:" >&5 811 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5 812 cat conftest.$ac_ext >&5
1820 # Broken: fails on valid input. 813 rm -rf conftest*
1821continue 814 CPP="${CC-cc} -nologo -E"
1822fi
1823rm -f conftest.err conftest.$ac_ext
1824
1825 # OK, works on sane cases. Now check whether non-existent headers
1826 # can be detected and how.
1827 cat >conftest.$ac_ext <<_ACEOF 815 cat > conftest.$ac_ext <<EOF
1828#line 1828 "configure" 816#line 817 "configure"
1829#include "confdefs.h" 817#include "confdefs.h"
1830#include <ac_nonexistent.h> 818#include <assert.h>
1831_ACEOF 819Syntax Error
1832if { (eval echo "$as_me:1832: \"$ac_cpp conftest.$ac_ext\"") >&5 820EOF
1833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 821ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1834 ac_status=$? 822{ (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1835 egrep -v '^ *\+' conftest.er1 >conftest.err 823ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1836 rm -f conftest.er1
1837 cat conftest.err >&5
1838 echo "$as_me:1838: \$? = $ac_status" >&5
1839 (exit $ac_status); } >/dev/null; then
1840 if test -s conftest.err; then
1841 ac_cpp_err=$ac_c_preproc_warn_flag
1842 else
1843 ac_cpp_err=
1844 fi
1845else
1846 ac_cpp_err=yes
1847fi
1848if test -z "$ac_cpp_err"; then 824if test -z "$ac_err"; then
1849 # Broken: success on invalid input. 825 :
1850continue
1851else 826else
827 echo "$ac_err" >&5
1852 echo "$as_me: failed program was:" >&5 828 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5 829 cat conftest.$ac_ext >&5
1854 # Passes both tests. 830 rm -rf conftest*
1855ac_preproc_ok=: 831 CPP=/lib/cpp
1856break
1857fi 832fi
1858rm -f conftest.err conftest.$ac_ext 833rm -f conftest*
1859
1860done
1861# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1862rm -f conftest.err conftest.$ac_ext
1863if $ac_preproc_ok; then
1864 :
1865else
1866 { { echo "$as_me:1866: error: C preprocessor \"$CPP\" fails sanity check" >&5
1867echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1868 { (exit 1); exit 1; }; }
1869fi 834fi
835rm -f conftest*
836fi
837rm -f conftest*
838 ac_cv_prog_CPP="$CPP"
839fi
840 CPP="$ac_cv_prog_CPP"
841else
842 ac_cv_prog_CPP="$CPP"
843fi
844echo "$ac_t""$CPP" 1>&6
1870 845
1871ac_ext=c
1872ac_cpp='$CPP $CPPFLAGS'
1873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 846
1877echo "$as_me:1877: checking if HP-UX ansi C compiler flags are needed" >&5
1878echo $ECHO_N "checking if HP-UX ansi C compiler flags are needed... $ECHO_C" >&6 847echo $ac_n "checking if HP-UX ansi C compiler flags are needed""... $ac_c" 1>&6
848echo "configure:849: checking if HP-UX ansi C compiler flags are needed" >&5
1879 849
1880os=`uname -s | tr 'A-Z' 'a-z'` 850os=`uname -s | tr 'A-Z' 'a-z'`
1881ac_cv_hpux_flags=no 851ac_cv_hpux_flags=no
1882if test "$os" = hp-ux ; then 852if test "$os" = hp-ux ; then
1883 if test "$ac_cv_c_compiler_gnu" = yes ; then 853 if test "$ac_cv_prog_gcc" = yes ; then
1884 if test "$CFLAGS" != "" ; then 854 if test "$CFLAGS" != "" ; then
1885 # Shouldn't be in there. 855 # Shouldn't be in there.
1886 CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'` 856 CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'`
1887 fi 857 fi
1888 else 858 else
1900 x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null` 870 x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null`
1901 if test "$x" = "" ; then 871 if test "$x" = "" ; then
1902 CFLAGS="$CFLAGS -D_HPUX_SOURCE" 872 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
1903 fi 873 fi
1904fi 874fi
1905echo "$as_me:1905: result: $ac_cv_hpux_flags" >&5
1906echo "${ECHO_T}$ac_cv_hpux_flags" >&6 875echo "$ac_t""$ac_cv_hpux_flags" 1>&6
1907 876
1908 if test "$CFLAGS" = "" ; then 877 if test "$CFLAGS" = "" ; then
1909 CFLAGS="-O" 878 CFLAGS="-O"
1910 elif test "$ac_cv_c_compiler_gnu" = "yes" ; then 879 elif test "$ac_cv_prog_gcc" = "yes" ; then
1911 case "$CFLAGS" in 880 case "$CFLAGS" in
1912 *"-g -O"*) 881 *"-g -O"*)
1913 #echo "using -g as default gcc CFLAGS" 1>&6 882 #echo "using -g as default gcc CFLAGS" 1>&6
1914 CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'` 883 CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'`
1915 ;; 884 ;;
1919 CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'` 888 CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'`
1920 ;; 889 ;;
1921 esac 890 esac
1922 fi 891 fi
1923 892
1924echo "$as_me:1924: checking if the compiler supports function prototypes" >&5 893
1925echo $ECHO_N "checking if the compiler supports function prototypes... $ECHO_C" >&6 894echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6
895echo "configure:896: checking if the compiler supports function prototypes" >&5
1926cat >conftest.$ac_ext <<_ACEOF 896cat > conftest.$ac_ext <<EOF
1927#line 1927 "configure" 897#line 898 "configure"
1928#include "confdefs.h" 898#include "confdefs.h"
1929 899
1930int 900int main() {
1931main ()
1932{
1933extern void exit(int status); 901extern void exit(int status);
1934 ;
1935 return 0; 902; return 0; }
1936} 903EOF
1937_ACEOF 904if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1938rm -f conftest.$ac_objext 905 rm -rf conftest*
1939if { (eval echo "$as_me:1939: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:1942: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:1945: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:1948: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 wi_cv_prototypes=yes 906 wi_cv_prototypes=yes
1951cat >>confdefs.h <<\EOF 907cat >> confdefs.h <<\EOF
1952#define PROTOTYPES 1 908#define PROTOTYPES 1
1953EOF 909EOF
1954 910
1955else 911else
1956 echo "$as_me: failed program was:" >&5 912 echo "configure: failed program was:" >&5
1957cat conftest.$ac_ext >&5 913 cat conftest.$ac_ext >&5
914 rm -rf conftest*
1958wi_cv_prototypes=no 915 wi_cv_prototypes=no
1959fi 916fi
1960rm -f conftest.$ac_objext conftest.$ac_ext 917rm -f conftest*
1961echo "$as_me:1961: result: $wi_cv_prototypes" >&5
1962echo "${ECHO_T}$wi_cv_prototypes" >&6 918echo "$ac_t""$wi_cv_prototypes" 1>&6
1963 919
1964echo "$as_me:1964: checking whether ${MAKE-make} sets \${MAKE}" >&5
1965echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 920echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
921echo "configure:922: checking whether ${MAKE-make} sets \${MAKE}" >&5
1966set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 922set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1967if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 923if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6 924 echo $ac_n "(cached) $ac_c" 1>&6
1969else 925else
1970 cat >conftest.make <<\EOF 926 cat > conftestmake <<\EOF
1971all: 927all:
1972 @echo 'ac_maketemp="${MAKE}"' 928 @echo 'ac_maketemp="${MAKE}"'
1973EOF 929EOF
1974# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 930# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1975eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 931eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1976if test -n "$ac_maketemp"; then 932if test -n "$ac_maketemp"; then
1977 eval ac_cv_prog_make_${ac_make}_set=yes 933 eval ac_cv_prog_make_${ac_make}_set=yes
1978else 934else
1979 eval ac_cv_prog_make_${ac_make}_set=no 935 eval ac_cv_prog_make_${ac_make}_set=no
1980fi 936fi
1981rm -f conftest.make 937rm -f conftestmake
1982fi 938fi
1983if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 939if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1984 echo "$as_me:1984: result: yes" >&5 940 echo "$ac_t""yes" 1>&6
1985echo "${ECHO_T}yes" >&6
1986 SET_MAKE= 941 SET_MAKE=
1987else 942else
1988 echo "$as_me:1988: result: no" >&5 943 echo "$ac_t""no" 1>&6
1989echo "${ECHO_T}no" >&6
1990 SET_MAKE="MAKE=${MAKE-make}" 944 SET_MAKE="MAKE=${MAKE-make}"
1991fi 945fi
1992 946
1993if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 947# Extract the first word of "ranlib", so it can be a program name with args.
1995set dummy ${ac_tool_prefix}ranlib; ac_word=$2 948set dummy ranlib; ac_word=$2
1996echo "$as_me:1996: checking for $ac_word" >&5
1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950echo "configure:951: checking for $ac_word" >&5
1998if test "${ac_cv_prog_RANLIB+set}" = set; then 951if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6 952 echo $ac_n "(cached) $ac_c" 1>&6
2000else 953else
2001 if test -n "$RANLIB"; then 954 if test -n "$RANLIB"; then
2002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2003else 956else
2004 ac_save_IFS=$IFS; IFS=$ac_path_separator 957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2005ac_dummy="$PATH" 958 ac_dummy="$PATH"
2006for ac_dir in $ac_dummy; do 959 for ac_dir in $ac_dummy; do
2007 IFS=$ac_save_IFS
2008 test -z "$ac_dir" && ac_dir=. 960 test -z "$ac_dir" && ac_dir=.
2009 $as_executable_p "$ac_dir/$ac_word" || continue 961 if test -f $ac_dir/$ac_word; then
2010ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 962 ac_cv_prog_RANLIB="ranlib"
2011echo "$as_me:2011: found $ac_dir/$ac_word" >&5 963 break
2012break 964 fi
2013done 965 done
2014 966 IFS="$ac_save_ifs"
967 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2015fi 968fi
2016fi 969fi
2017RANLIB=$ac_cv_prog_RANLIB 970RANLIB="$ac_cv_prog_RANLIB"
2018if test -n "$RANLIB"; then 971if test -n "$RANLIB"; then
2019 echo "$as_me:2019: result: $RANLIB" >&5 972 echo "$ac_t""$RANLIB" 1>&6
2020echo "${ECHO_T}$RANLIB" >&6
2021else 973else
2022 echo "$as_me:2022: result: no" >&5 974 echo "$ac_t""no" 1>&6
2023echo "${ECHO_T}no" >&6
2024fi 975fi
2025 976
2026fi
2027if test -z "$ac_cv_prog_RANLIB"; then
2028 ac_ct_RANLIB=$RANLIB
2029 # Extract the first word of "ranlib", so it can be a program name with args.
2030set dummy ranlib; ac_word=$2
2031echo "$as_me:2031: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 if test -n "$ac_ct_RANLIB"; then
2037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2038else
2039 ac_save_IFS=$IFS; IFS=$ac_path_separator
2040ac_dummy="$PATH"
2041for ac_dir in $ac_dummy; do
2042 IFS=$ac_save_IFS
2043 test -z "$ac_dir" && ac_dir=.
2044 $as_executable_p "$ac_dir/$ac_word" || continue
2045ac_cv_prog_ac_ct_RANLIB="ranlib"
2046echo "$as_me:2046: found $ac_dir/$ac_word" >&5
2047break
2048done
2049 977
2050 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 978#
2051fi 979# When optimization is enabled, remove -g from CFLAGS and add -O
2052fi 980#
2053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2054if test -n "$ac_ct_RANLIB"; then
2055 echo "$as_me:2055: result: $ac_ct_RANLIB" >&5
2056echo "${ECHO_T}$ac_ct_RANLIB" >&6
2057else
2058 echo "$as_me:2058: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061 981
2062 RANLIB=$ac_ct_RANLIB 982if test "$optimize" = "yes" ; then
2063else 983echo $ac_n "checking compiler flags""... $ac_c" 1>&6
2064 RANLIB="$ac_cv_prog_RANLIB" 984echo "configure:985: checking compiler flags" >&5
985CFLAGS=`echo $CFLAGS | sed 's/-g//g'`
986case $CFLAGS in
987 *"-O"*)
988 ;;
989 *)
990 CFLAGS="$CFLAGS -O"
991 ;;
992esac
993echo "$ac_t""done" 1>&6
2065fi 994fi
2066 995
2067if test "$wi_cv_prototypes" = no ; then 996if test "$wi_cv_prototypes" = no ; then
2068 { echo "$as_me:2068: WARNING: Your compiler does not support function prototyping and" >&5
2069echo "$as_me: WARNING: Your compiler does not support function prototyping and" >&2;} 997 echo "configure: warning: Your compiler does not support function prototyping and" 1>&2
2070 { echo "$as_me:2070: WARNING: is not able to properly compile this package. What a pity." >&5
2071echo "$as_me: WARNING: is not able to properly compile this package. What a pity." >&2;} 998 echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2
2072 { echo "$as_me:2072: WARNING: Get gcc, or any compiler that supports function prototypes." >&5 999 echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2
2073echo "$as_me: WARNING: Get gcc, or any compiler that supports function prototypes." >&2;}
2074 exit 1 1000 exit 1
2075fi 1001fi
2076 1002
2077# 1003#
2078# Checks for header files and library functions 1004# Checks for header files and library functions
2079# 1005#
2080 1006
2081echo "$as_me:2081: checking for ANSI C header files" >&5
2082echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 1007echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1008echo "configure:1009: checking for ANSI C header files" >&5
2083if test "${ac_cv_header_stdc+set}" = set; then 1009if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6 1010 echo $ac_n "(cached) $ac_c" 1>&6
2085else 1011else
2086 cat >conftest.$ac_ext <<_ACEOF 1012 cat > conftest.$ac_ext <<EOF
2087#line 2087 "configure" 1013#line 1014 "configure"
2088#include "confdefs.h" 1014#include "confdefs.h"
2089#include <stdlib.h> 1015#include <stdlib.h>
2090#include <stdarg.h> 1016#include <stdarg.h>
2091#include <string.h> 1017#include <string.h>
2092#include <float.h> 1018#include <float.h>
2093 1019EOF
2094_ACEOF 1020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2095if { (eval echo "$as_me:2095: \"$ac_cpp conftest.$ac_ext\"") >&5 1021{ (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1022ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2097 ac_status=$?
2098 egrep -v '^ *\+' conftest.er1 >conftest.err
2099 rm -f conftest.er1
2100 cat conftest.err >&5
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit $ac_status); } >/dev/null; then
2103 if test -s conftest.err; then
2104 ac_cpp_err=$ac_c_preproc_warn_flag
2105 else
2106 ac_cpp_err=
2107 fi
2108else
2109 ac_cpp_err=yes
2110fi
2111if test -z "$ac_cpp_err"; then 1023if test -z "$ac_err"; then
1024 rm -rf conftest*
2112 ac_cv_header_stdc=yes 1025 ac_cv_header_stdc=yes
2113else 1026else
1027 echo "$ac_err" >&5
2114 echo "$as_me: failed program was:" >&5 1028 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5 1029 cat conftest.$ac_ext >&5
1030 rm -rf conftest*
2116 ac_cv_header_stdc=no 1031 ac_cv_header_stdc=no
2117fi 1032fi
2118rm -f conftest.err conftest.$ac_ext 1033rm -f conftest*
2119 1034
2120if test $ac_cv_header_stdc = yes; then 1035if test $ac_cv_header_stdc = yes; then
2121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2122 cat >conftest.$ac_ext <<_ACEOF 1037cat > conftest.$ac_ext <<EOF
2123#line 2123 "configure" 1038#line 1039 "configure"
2124#include "confdefs.h" 1039#include "confdefs.h"
2125#include <string.h> 1040#include <string.h>
2126 1041EOF
2127_ACEOF
2128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2129 egrep "memchr" >/dev/null 2>&1; then 1043 egrep "memchr" >/dev/null 2>&1; then
2130 : 1044 :
2131else 1045else
1046 rm -rf conftest*
2132 ac_cv_header_stdc=no 1047 ac_cv_header_stdc=no
2133fi 1048fi
2134rm -f conftest* 1049rm -f conftest*
2135 1050
2136fi 1051fi
2137 1052
2138if test $ac_cv_header_stdc = yes; then 1053if test $ac_cv_header_stdc = yes; then
2139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2140 cat >conftest.$ac_ext <<_ACEOF 1055cat > conftest.$ac_ext <<EOF
2141#line 2141 "configure" 1056#line 1057 "configure"
2142#include "confdefs.h" 1057#include "confdefs.h"
2143#include <stdlib.h> 1058#include <stdlib.h>
2144 1059EOF
2145_ACEOF
2146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2147 egrep "free" >/dev/null 2>&1; then 1061 egrep "free" >/dev/null 2>&1; then
2148 : 1062 :
2149else 1063else
1064 rm -rf conftest*
2150 ac_cv_header_stdc=no 1065 ac_cv_header_stdc=no
2151fi 1066fi
2152rm -f conftest* 1067rm -f conftest*
2153 1068
2154fi 1069fi
2155 1070
2156if test $ac_cv_header_stdc = yes; then 1071if test $ac_cv_header_stdc = yes; then
2157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2158 if test "$cross_compiling" = yes; then 1073if test "$cross_compiling" = yes; then
2159 : 1074 :
2160else 1075else
2161 cat >conftest.$ac_ext <<_ACEOF 1076 cat > conftest.$ac_ext <<EOF
2162#line 2162 "configure" 1077#line 1078 "configure"
2163#include "confdefs.h" 1078#include "confdefs.h"
2164#include <ctype.h> 1079#include <ctype.h>
2165#if ((' ' & 0x0FF) == 0x020)
2166# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1080#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2167# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1081#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1083int main () { int i; for (i = 0; i < 256; i++)
1084if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1085exit (0); }
1086
1087EOF
1088if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1089then
1090 :
2168#else 1091else
2169# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 1092 echo "configure: failed program was:" >&5
2170 || ('j' <= (c) && (c) <= 'r') \ 1093 cat conftest.$ac_ext >&5
2171 || ('s' <= (c) && (c) <= 'z')) 1094 rm -fr conftest*
2172# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 1095 ac_cv_header_stdc=no
1096fi
1097rm -fr conftest*
1098fi
1099
1100fi
1101fi
1102
1103echo "$ac_t""$ac_cv_header_stdc" 1>&6
1104if test $ac_cv_header_stdc = yes; then
1105 cat >> confdefs.h <<\EOF
1106#define STDC_HEADERS 1
1107EOF
1108
1109fi
1110
1111echo $ac_n "checking for size_t""... $ac_c" 1>&6
1112echo "configure:1113: checking for size_t" >&5
1113if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115else
1116 cat > conftest.$ac_ext <<EOF
1117#line 1118 "configure"
1118#include "confdefs.h"
1119#include <sys/types.h>
1120#if STDC_HEADERS
1121#include <stdlib.h>
1122#include <stddef.h>
2173#endif 1123#endif
2174
2175#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2176int
2177main ()
2178{
2179 int i;
2180 for (i = 0; i < 256; i++)
2181 if (XOR (islower (i), ISLOWER (i))
2182 || toupper (i) != TOUPPER (i))
2183 exit(2);
2184 exit (0);
2185}
2186_ACEOF
2187rm -f conftest$ac_exeext
2188if { (eval echo "$as_me:2188: \"$ac_link\"") >&5
2189 (eval $ac_link) 2>&5
2190 ac_status=$?
2191 echo "$as_me:2191: \$? = $ac_status" >&5
2192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2193 { (eval echo "$as_me:2193: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:2196: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 :
2199else
2200 echo "$as_me: program exited with status $ac_status" >&5
2201echo "$as_me: failed program was:" >&5
2202cat conftest.$ac_ext >&5
2203ac_cv_header_stdc=no
2204fi
2205rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2206fi
2207fi
2208fi
2209echo "$as_me:2209: result: $ac_cv_header_stdc" >&5
2210echo "${ECHO_T}$ac_cv_header_stdc" >&6
2211if test $ac_cv_header_stdc = yes; then
2212
2213cat >>confdefs.h <<\EOF
2214#define STDC_HEADERS 1
2215EOF 1124EOF
2216 1125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2217fi 1126 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2218 1127 rm -rf conftest*
2219# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2220
2221for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2222 inttypes.h stdint.h unistd.h
2223do
2224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2225echo "$as_me:2225: checking for $ac_header" >&5
2226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2227if eval "test \"\${$as_ac_Header+set}\" = set"; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230 cat >conftest.$ac_ext <<_ACEOF
2231#line 2231 "configure"
2232#include "confdefs.h"
2233$ac_includes_default
2234#include <$ac_header>
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:2237: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>&5
2239 ac_status=$?
2240 echo "$as_me:2240: \$? = $ac_status" >&5
2241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:2243: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:2246: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 eval "$as_ac_Header=yes"
2249else
2250 echo "$as_me: failed program was:" >&5
2251cat conftest.$ac_ext >&5
2252eval "$as_ac_Header=no"
2253fi
2254rm -f conftest.$ac_objext conftest.$ac_ext
2255fi
2256echo "$as_me:2256: result: `eval echo '${'$as_ac_Header'}'`" >&5
2257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2258if test `eval echo '${'$as_ac_Header'}'` = yes; then
2259 cat >>confdefs.h <<EOF
2260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2261EOF
2262
2263fi
2264done
2265
2266echo "$as_me:2266: checking for size_t" >&5
2267echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2268if test "${ac_cv_type_size_t+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271 cat >conftest.$ac_ext <<_ACEOF
2272#line 2272 "configure"
2273#include "confdefs.h"
2274$ac_includes_default
2275int
2276main ()
2277{
2278if ((size_t *) 0)
2279 return 0;
2280if (sizeof (size_t))
2281 return 0;
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:2287: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2289 ac_status=$?
2290 echo "$as_me:2290: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:2293: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_type_size_t=yes 1128 ac_cv_type_size_t=yes
2299else 1129else
2300 echo "$as_me: failed program was:" >&5 1130 rm -rf conftest*
2301cat conftest.$ac_ext >&5
2302ac_cv_type_size_t=no 1131 ac_cv_type_size_t=no
2303fi 1132fi
2304rm -f conftest.$ac_objext conftest.$ac_ext 1133rm -f conftest*
1134
2305fi 1135fi
2306echo "$as_me:2306: result: $ac_cv_type_size_t" >&5
2307echo "${ECHO_T}$ac_cv_type_size_t" >&6 1136echo "$ac_t""$ac_cv_type_size_t" 1>&6
2308if test $ac_cv_type_size_t = yes; then 1137if test $ac_cv_type_size_t = no; then
2309 :
2310else
2311
2312cat >>confdefs.h <<EOF 1138 cat >> confdefs.h <<\EOF
2313#define size_t unsigned 1139#define size_t unsigned
2314EOF 1140EOF
2315 1141
2316fi 1142fi
2317 1143
2318echo "$as_me:2318: checking whether time.h and sys/time.h may both be included" >&5
2319echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 1144echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1145echo "configure:1146: checking whether time.h and sys/time.h may both be included" >&5
2320if test "${ac_cv_header_time+set}" = set; then 1146if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6 1147 echo $ac_n "(cached) $ac_c" 1>&6
2322else 1148else
2323 cat >conftest.$ac_ext <<_ACEOF 1149 cat > conftest.$ac_ext <<EOF
2324#line 2324 "configure" 1150#line 1151 "configure"
2325#include "confdefs.h" 1151#include "confdefs.h"
2326#include <sys/types.h> 1152#include <sys/types.h>
2327#include <sys/time.h> 1153#include <sys/time.h>
2328#include <time.h> 1154#include <time.h>
2329 1155int main() {
2330int 1156struct tm *tp;
2331main ()
2332{
2333if ((struct tm *) 0)
2334return 0;
2335 ;
2336 return 0; 1157; return 0; }
2337} 1158EOF
2338_ACEOF 1159if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339rm -f conftest.$ac_objext 1160 rm -rf conftest*
2340if { (eval echo "$as_me:2340: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2342 ac_status=$?
2343 echo "$as_me:2343: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:2346: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:2349: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_header_time=yes 1161 ac_cv_header_time=yes
2352else 1162else
2353 echo "$as_me: failed program was:" >&5 1163 echo "configure: failed program was:" >&5
2354cat conftest.$ac_ext >&5 1164 cat conftest.$ac_ext >&5
1165 rm -rf conftest*
2355ac_cv_header_time=no 1166 ac_cv_header_time=no
2356fi 1167fi
2357rm -f conftest.$ac_objext conftest.$ac_ext 1168rm -f conftest*
2358fi 1169fi
2359echo "$as_me:2359: result: $ac_cv_header_time" >&5 1170
2360echo "${ECHO_T}$ac_cv_header_time" >&6 1171echo "$ac_t""$ac_cv_header_time" 1>&6
2361if test $ac_cv_header_time = yes; then 1172if test $ac_cv_header_time = yes; then
2362
2363cat >>confdefs.h <<\EOF 1173 cat >> confdefs.h <<\EOF
2364#define TIME_WITH_SYS_TIME 1 1174#define TIME_WITH_SYS_TIME 1
2365EOF 1175EOF
2366 1176
2367fi 1177fi
2368 1178
2369for ac_header in fcntl.h unistd.h memory.h malloc.h errno.h 1179for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h
2370do 1180do
2371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 1181ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2372echo "$as_me:2372: checking for $ac_header" >&5
2373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 1182echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2374if eval "test \"\${$as_ac_Header+set}\" = set"; then 1183echo "configure:1184: checking for $ac_hdr" >&5
1184if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6 1185 echo $ac_n "(cached) $ac_c" 1>&6
2376else 1186else
2377 cat >conftest.$ac_ext <<_ACEOF 1187 cat > conftest.$ac_ext <<EOF
2378#line 2378 "configure" 1188#line 1189 "configure"
2379#include "confdefs.h" 1189#include "confdefs.h"
2380#include <$ac_header> 1190#include <$ac_hdr>
2381_ACEOF 1191EOF
2382if { (eval echo "$as_me:2382: \"$ac_cpp conftest.$ac_ext\"") >&5 1192ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1193{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2384 ac_status=$? 1194ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2385 egrep -v '^ *\+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); } >/dev/null; then
2390 if test -s conftest.err; then
2391 ac_cpp_err=$ac_c_preproc_warn_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395else
2396 ac_cpp_err=yes
2397fi
2398if test -z "$ac_cpp_err"; then 1195if test -z "$ac_err"; then
2399 eval "$as_ac_Header=yes" 1196 rm -rf conftest*
1197 eval "ac_cv_header_$ac_safe=yes"
2400else 1198else
1199 echo "$ac_err" >&5
2401 echo "$as_me: failed program was:" >&5 1200 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5 1201 cat conftest.$ac_ext >&5
2403 eval "$as_ac_Header=no" 1202 rm -rf conftest*
1203 eval "ac_cv_header_$ac_safe=no"
2404fi 1204fi
2405rm -f conftest.err conftest.$ac_ext 1205rm -f conftest*
2406fi 1206fi
2407echo "$as_me:2407: result: `eval echo '${'$as_ac_Header'}'`" >&5 1207if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 1208 echo "$ac_t""yes" 1>&6
2409if test `eval echo '${'$as_ac_Header'}'` = yes; then 1209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2410 cat >>confdefs.h <<EOF 1210 cat >> confdefs.h <<EOF
2411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 1211#define $ac_tr_hdr 1
2412EOF 1212EOF
2413 1213
1214else
1215 echo "$ac_t""no" 1>&6
2414fi 1216fi
2415done 1217done
2416 1218
2417for ac_header in io.h sys/time.h 1219for ac_hdr in io.h sys/time.h
2418do 1220do
2419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 1221ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1222echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420echo "$as_me:2420: checking for $ac_header" >&5 1223echo "configure:1224: checking for $ac_hdr" >&5
2421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 1224if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422if eval "test \"\${$as_ac_Header+set}\" = set"; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6 1225 echo $ac_n "(cached) $ac_c" 1>&6
2424else 1226else
2425 cat >conftest.$ac_ext <<_ACEOF 1227 cat > conftest.$ac_ext <<EOF
2426#line 2426 "configure" 1228#line 1229 "configure"
2427#include "confdefs.h" 1229#include "confdefs.h"
2428#include <$ac_header> 1230#include <$ac_hdr>
2429_ACEOF 1231EOF
2430if { (eval echo "$as_me:2430: \"$ac_cpp conftest.$ac_ext\"") >&5 1232ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1233{ (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_status=$? 1234ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 egrep -v '^ *\+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:2436: \$? = $ac_status" >&5
2437 (exit $ac_status); } >/dev/null; then
2438 if test -s conftest.err; then
2439 ac_cpp_err=$ac_c_preproc_warn_flag
2440 else
2441 ac_cpp_err=
2442 fi
2443else
2444 ac_cpp_err=yes
2445fi
2446if test -z "$ac_cpp_err"; then 1235if test -z "$ac_err"; then
2447 eval "$as_ac_Header=yes" 1236 rm -rf conftest*
1237 eval "ac_cv_header_$ac_safe=yes"
2448else 1238else
1239 echo "$ac_err" >&5
2449 echo "$as_me: failed program was:" >&5 1240 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5 1241 cat conftest.$ac_ext >&5
2451 eval "$as_ac_Header=no" 1242 rm -rf conftest*
1243 eval "ac_cv_header_$ac_safe=no"
2452fi 1244fi
2453rm -f conftest.err conftest.$ac_ext 1245rm -f conftest*
2454fi 1246fi
2455echo "$as_me:2455: result: `eval echo '${'$as_ac_Header'}'`" >&5 1247if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 1248 echo "$ac_t""yes" 1>&6
2457if test `eval echo '${'$as_ac_Header'}'` = yes; then 1249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2458 cat >>confdefs.h <<EOF 1250 cat >> confdefs.h <<EOF
2459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 1251#define $ac_tr_hdr 1
2460EOF 1252EOF
2461 1253
1254else
1255 echo "$ac_t""no" 1>&6
2462fi 1256fi
2463done 1257done
2464 1258
2465for ac_func in gettimeofday 1259for ac_func in gettimeofday
2466do 1260do
2467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 1261echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2468echo "$as_me:2468: checking for $ac_func" >&5 1262echo "configure:1263: checking for $ac_func" >&5
2469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 1263if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2470if eval "test \"\${$as_ac_var+set}\" = set"; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6 1264 echo $ac_n "(cached) $ac_c" 1>&6
2472else 1265else
2473 cat >conftest.$ac_ext <<_ACEOF 1266 cat > conftest.$ac_ext <<EOF
2474#line 2474 "configure" 1267#line 1268 "configure"
2475#include "confdefs.h" 1268#include "confdefs.h"
2476/* System header to define __stub macros and hopefully few prototypes, 1269/* System header to define __stub macros and hopefully few prototypes,
2477 which can conflict with char $ac_func (); below. */ 1270 which can conflict with char $ac_func(); below. */
2478#include <assert.h> 1271#include <assert.h>
2479/* Override any gcc2 internal prototype to avoid an error. */ 1272/* Override any gcc2 internal prototype to avoid an error. */
2480#ifdef __cplusplus
2481extern "C"
2482#endif
2483/* We use char because int might match the return type of a gcc2 1273/* We use char because int might match the return type of a gcc2
2484 builtin and then its argument prototype would still apply. */ 1274 builtin and then its argument prototype would still apply. */
2485char $ac_func (); 1275char $ac_func();
2486char (*f) ();
2487 1276
2488int 1277int main() {
2489main () 1278
2490{
2491/* The GNU C library defines this for functions which it implements 1279/* The GNU C library defines this for functions which it implements
2492 to always fail with ENOSYS. Some functions are actually named 1280 to always fail with ENOSYS. Some functions are actually named
2493 something starting with __ and the normal name is an alias. */ 1281 something starting with __ and the normal name is an alias. */
2494#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 1282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2495choke me 1283choke me
2496#else 1284#else
2497f = $ac_func; 1285$ac_func();
2498#endif 1286#endif
2499 1287
2500 ;
2501 return 0; 1288; return 0; }
2502} 1289EOF
2503_ACEOF 1290if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2504rm -f conftest.$ac_objext conftest$ac_exeext 1291 rm -rf conftest*
2505if { (eval echo "$as_me:2505: \"$ac_link\"") >&5 1292 eval "ac_cv_func_$ac_func=yes"
2506 (eval $ac_link) 2>&5
2507 ac_status=$?
2508 echo "$as_me:2508: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -s conftest$ac_exeext'
2511 { (eval echo "$as_me:2511: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:2514: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 eval "$as_ac_var=yes"
2517else 1293else
2518 echo "$as_me: failed program was:" >&5 1294 echo "configure: failed program was:" >&5
2519cat conftest.$ac_ext >&5 1295 cat conftest.$ac_ext >&5
2520eval "$as_ac_var=no" 1296 rm -rf conftest*
1297 eval "ac_cv_func_$ac_func=no"
2521fi 1298fi
2522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 1299rm -f conftest*
2523fi 1300fi
2524echo "$as_me:2524: result: `eval echo '${'$as_ac_var'}'`" >&5 1301
2525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 1302if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2526if test `eval echo '${'$as_ac_var'}'` = yes; then 1303 echo "$ac_t""yes" 1>&6
1304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2527 cat >>confdefs.h <<EOF 1305 cat >> confdefs.h <<EOF
2528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 1306#define $ac_tr_func 1
2529EOF 1307EOF
2530 1308
1309else
1310 echo "$ac_t""no" 1>&6
2531fi 1311fi
2532done 1312done
2533 1313
2534echo "$as_me:2534: checking for tempnam" >&5 1314
2535echo $ECHO_N "checking for tempnam... $ECHO_C" >&6 1315echo $ac_n "checking for tempnam""... $ac_c" 1>&6
1316echo "configure:1317: checking for tempnam" >&5
2536if test "${ac_cv_func_tempnam+set}" = set; then 1317if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6 1318 echo $ac_n "(cached) $ac_c" 1>&6
2538else 1319else
2539 cat >conftest.$ac_ext <<_ACEOF 1320 cat > conftest.$ac_ext <<EOF
2540#line 2540 "configure" 1321#line 1322 "configure"
2541#include "confdefs.h" 1322#include "confdefs.h"
2542/* System header to define __stub macros and hopefully few prototypes, 1323/* System header to define __stub macros and hopefully few prototypes,
2543 which can conflict with char tempnam (); below. */ 1324 which can conflict with char tempnam(); below. */
2544#include <assert.h> 1325#include <assert.h>
2545/* Override any gcc2 internal prototype to avoid an error. */ 1326/* Override any gcc2 internal prototype to avoid an error. */
2546#ifdef __cplusplus
2547extern "C"
2548#endif
2549/* We use char because int might match the return type of a gcc2 1327/* We use char because int might match the return type of a gcc2
2550 builtin and then its argument prototype would still apply. */ 1328 builtin and then its argument prototype would still apply. */
2551char tempnam (); 1329char tempnam();
2552char (*f) ();
2553 1330
2554int 1331int main() {
2555main () 1332
2556{
2557/* The GNU C library defines this for functions which it implements 1333/* The GNU C library defines this for functions which it implements
2558 to always fail with ENOSYS. Some functions are actually named 1334 to always fail with ENOSYS. Some functions are actually named
2559 something starting with __ and the normal name is an alias. */ 1335 something starting with __ and the normal name is an alias. */
2560#if defined (__stub_tempnam) || defined (__stub___tempnam) 1336#if defined (__stub_tempnam) || defined (__stub___tempnam)
2561choke me 1337choke me
2562#else 1338#else
2563f = tempnam; 1339tempnam();
2564#endif 1340#endif
2565 1341
2566 ;
2567 return 0; 1342; return 0; }
2568} 1343EOF
2569_ACEOF 1344if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570rm -f conftest.$ac_objext conftest$ac_exeext 1345 rm -rf conftest*
2571if { (eval echo "$as_me:2571: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>&5
2573 ac_status=$?
2574 echo "$as_me:2574: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -s conftest$ac_exeext'
2577 { (eval echo "$as_me:2577: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:2580: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 ac_cv_func_tempnam=yes 1346 eval "ac_cv_func_tempnam=yes"
2583else 1347else
2584 echo "$as_me: failed program was:" >&5 1348 echo "configure: failed program was:" >&5
2585cat conftest.$ac_ext >&5 1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
2586ac_cv_func_tempnam=no 1351 eval "ac_cv_func_tempnam=no"
2587fi 1352fi
2588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 1353rm -f conftest*
2589fi 1354fi
2590echo "$as_me:2590: result: $ac_cv_func_tempnam" >&5 1355
2591echo "${ECHO_T}$ac_cv_func_tempnam" >&6
2592if test $ac_cv_func_tempnam = yes; then 1356if eval "test \"`echo '$ac_cv_func_'tempnam`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
2593 : 1358 :
2594else 1359else
1360 echo "$ac_t""no" 1>&6
2595 cat >>confdefs.h <<\EOF 1361cat >> confdefs.h <<\EOF
2596#define tempnam FP_tempnam 1362#define tempnam _FP_tempnam
2597EOF 1363EOF
2598 1364
2599fi 1365fi
2600 1366
2601echo "$as_me:2601: checking for chmod" >&5
2602echo $ECHO_N "checking for chmod... $ECHO_C" >&6
2603if test "${ac_cv_func_chmod+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 cat >conftest.$ac_ext <<_ACEOF
2607#line 2607 "configure"
2608#include "confdefs.h"
2609/* System header to define __stub macros and hopefully few prototypes,
2610 which can conflict with char chmod (); below. */
2611#include <assert.h>
2612/* Override any gcc2 internal prototype to avoid an error. */
2613#ifdef __cplusplus
2614extern "C"
2615#endif
2616/* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618char chmod ();
2619char (*f) ();
2620
2621int
2622main ()
2623{
2624/* The GNU C library defines this for functions which it implements
2625 to always fail with ENOSYS. Some functions are actually named
2626 something starting with __ and the normal name is an alias. */
2627#if defined (__stub_chmod) || defined (__stub___chmod)
2628choke me
2629#else
2630f = chmod;
2631#endif
2632
2633 ;
2634 return 0;
2635}
2636_ACEOF
2637rm -f conftest.$ac_objext conftest$ac_exeext
2638if { (eval echo "$as_me:2638: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2640 ac_status=$?
2641 echo "$as_me:2641: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest$ac_exeext'
2644 { (eval echo "$as_me:2644: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:2647: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_func_chmod=yes
2650else
2651 echo "$as_me: failed program was:" >&5
2652cat conftest.$ac_ext >&5
2653ac_cv_func_chmod=no
2654fi
2655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2656fi
2657echo "$as_me:2657: result: $ac_cv_func_chmod" >&5
2658echo "${ECHO_T}$ac_cv_func_chmod" >&6
2659if test $ac_cv_func_chmod = yes; then
2660 cat >>confdefs.h <<\EOF
2661#define HAVE_CHMOD 1
2662EOF
2663
2664fi
2665
2666echo "$as_me:2666: checking for umask" >&5
2667echo $ECHO_N "checking for umask... $ECHO_C" >&6
2668if test "${ac_cv_func_umask+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671 cat >conftest.$ac_ext <<_ACEOF
2672#line 2672 "configure"
2673#include "confdefs.h"
2674/* System header to define __stub macros and hopefully few prototypes,
2675 which can conflict with char umask (); below. */
2676#include <assert.h>
2677/* Override any gcc2 internal prototype to avoid an error. */
2678#ifdef __cplusplus
2679extern "C"
2680#endif
2681/* We use char because int might match the return type of a gcc2
2682 builtin and then its argument prototype would still apply. */
2683char umask ();
2684char (*f) ();
2685
2686int
2687main ()
2688{
2689/* The GNU C library defines this for functions which it implements
2690 to always fail with ENOSYS. Some functions are actually named
2691 something starting with __ and the normal name is an alias. */
2692#if defined (__stub_umask) || defined (__stub___umask)
2693choke me
2694#else
2695f = umask;
2696#endif
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext conftest$ac_exeext
2703if { (eval echo "$as_me:2703: \"$ac_link\"") >&5
2704 (eval $ac_link) 2>&5
2705 ac_status=$?
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -s conftest$ac_exeext'
2709 { (eval echo "$as_me:2709: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:2712: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_func_umask=yes
2715else
2716 echo "$as_me: failed program was:" >&5
2717cat conftest.$ac_ext >&5
2718ac_cv_func_umask=no
2719fi
2720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2721fi
2722echo "$as_me:2722: result: $ac_cv_func_umask" >&5
2723echo "${ECHO_T}$ac_cv_func_umask" >&6
2724if test $ac_cv_func_umask = yes; then
2725 cat >>confdefs.h <<\EOF
2726#define HAVE_UMASK 1
2727EOF
2728
2729fi
2730
2731echo "$as_me:2731: checking for mkstemp" >&5
2732echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
2733if test "${ac_cv_func_mkstemp+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
2736 cat >conftest.$ac_ext <<_ACEOF
2737#line 2737 "configure"
2738#include "confdefs.h"
2739/* System header to define __stub macros and hopefully few prototypes,
2740 which can conflict with char mkstemp (); below. */
2741#include <assert.h>
2742/* Override any gcc2 internal prototype to avoid an error. */
2743#ifdef __cplusplus
2744extern "C"
2745#endif
2746/* We use char because int might match the return type of a gcc2
2747 builtin and then its argument prototype would still apply. */
2748char mkstemp ();
2749char (*f) ();
2750
2751int
2752main ()
2753{
2754/* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
2758choke me
2759#else
2760f = mkstemp;
2761#endif
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext conftest$ac_exeext
2768if { (eval echo "$as_me:2768: \"$ac_link\"") >&5
2769 (eval $ac_link) 2>&5
2770 ac_status=$?
2771 echo "$as_me:2771: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -s conftest$ac_exeext'
2774 { (eval echo "$as_me:2774: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:2777: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 ac_cv_func_mkstemp=yes
2780else
2781 echo "$as_me: failed program was:" >&5
2782cat conftest.$ac_ext >&5
2783ac_cv_func_mkstemp=no
2784fi
2785rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2786fi
2787echo "$as_me:2787: result: $ac_cv_func_mkstemp" >&5
2788echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
2789if test $ac_cv_func_mkstemp = yes; then
2790 cat >>confdefs.h <<\EOF
2791#define HAVE_MKSTEMP 1
2792EOF
2793
2794fi
2795 1367
2796# 1368#
2797# strerror might be internally defined. this would cause a 1369# strerror might be internally defined. this would cause a
2798# CHECK_FUNCS(strerror) to fail because it'd be called with 1370# CHECK_FUNCS(strerror) to fail because it'd be called with
2799# zero arguments. So use our own code. 1371# zero arguments. So use our own code.
2800# 1372#
2801echo "$as_me:2801: checking for strerror" >&5
2802echo $ECHO_N "checking for strerror... $ECHO_C" >&6 1373echo $ac_n "checking for strerror""... $ac_c" 1>&6
1374echo "configure:1375: checking for strerror" >&5
2803cat >conftest.$ac_ext <<_ACEOF 1375cat > conftest.$ac_ext <<EOF
2804#line 2804 "configure" 1376#line 1377 "configure"
2805#include "confdefs.h" 1377#include "confdefs.h"
2806 1378
2807char *blubb() { return (char *) strerror (42); } 1379char *blubb() { return (char *) strerror (42); }
2808 1380
2809int 1381int main() {
2810main ()
2811{
2812 1382
2813(void) blubb(); 1383(void) blubb();
2814 1384
2815 ;
2816 return 0; 1385; return 0; }
2817} 1386EOF
2818_ACEOF 1387if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2819rm -f conftest.$ac_objext conftest$ac_exeext 1388 rm -rf conftest*
2820if { (eval echo "$as_me:2820: \"$ac_link\"") >&5
2821 (eval $ac_link) 2>&5
2822 ac_status=$?
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -s conftest$ac_exeext'
2826 { (eval echo "$as_me:2826: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:2829: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 have_strerror=yes 1389 have_strerror=yes
2832else 1390else
2833 echo "$as_me: failed program was:" >&5 1391 echo "configure: failed program was:" >&5
2834cat conftest.$ac_ext >&5 1392 cat conftest.$ac_ext >&5
1393 rm -rf conftest*
2835cat >>confdefs.h <<\EOF 1394 cat >> confdefs.h <<\EOF
2836#define strerror FP_strerror 1395#define strerror _FP_strerror
2837EOF 1396EOF
2838 1397
2839have_strerror=no 1398have_strerror=no
2840fi 1399fi
2841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 1400rm -f conftest*
2842echo "$as_me:2842: result: $have_strerror" >&5
2843echo "${ECHO_T}$have_strerror" >&6 1401echo "$ac_t""$have_strerror" 1>&6
2844 1402
1403echo $ac_n "checking for stdin""... $ac_c" 1>&6
2845echo "$as_me:2845: checking for stdin" >&5 1404echo "configure:1405: checking for stdin" >&5
2846echo $ECHO_N "checking for stdin... $ECHO_C" >&6
2847cat >conftest.$ac_ext <<_ACEOF 1405cat > conftest.$ac_ext <<EOF
2848#line 2848 "configure" 1406#line 1407 "configure"
2849#include "confdefs.h" 1407#include "confdefs.h"
2850 1408
2851#include <stdio.h> 1409#include <stdio.h>
2852char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } 1410char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; }
2853 1411
2854int 1412int main() {
2855main ()
2856{
2857 1413
2858(void) blubb(); 1414(void) blubb();
2859 1415
2860 ;
2861 return 0; 1416; return 0; }
2862} 1417EOF
2863_ACEOF 1418if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2864rm -f conftest.$ac_objext conftest$ac_exeext 1419 rm -rf conftest*
2865if { (eval echo "$as_me:2865: \"$ac_link\"") >&5
2866 (eval $ac_link) 2>&5
2867 ac_status=$?
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest$ac_exeext'
2871 { (eval echo "$as_me:2871: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 have_stdio=yes 1420 have_stdio=yes
2877else 1421else
2878 echo "$as_me: failed program was:" >&5 1422 echo "configure: failed program was:" >&5
2879cat conftest.$ac_ext >&5 1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
2880cat >>confdefs.h <<\EOF 1425 cat >> confdefs.h <<\EOF
2881#define HAVE_STDIO 1 1426#define HAVE_STDIO 1
2882EOF 1427EOF
2883 1428
2884have_stdio=no 1429have_stdio=no
2885fi 1430fi
2886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 1431rm -f conftest*
2887echo "$as_me:2887: result: $have_stdio" >&5
2888echo "${ECHO_T}$have_stdio" >&6 1432echo "$ac_t""$have_stdio" 1>&6
2889 1433
2890if test "$ac_cv_header_stdc" = "no" ; then 1434if test "$ac_cv_header_stdc" = "no" ; then
2891
2892for ac_header in stdarg.h varargs.h 1435 for ac_hdr in stdarg.h varargs.h
2893do 1436do
2894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 1437ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2895echo "$as_me:2895: checking for $ac_header" >&5
2896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 1438echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2897if eval "test \"\${$as_ac_Header+set}\" = set"; then 1439echo "configure:1440: checking for $ac_hdr" >&5
1440if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6 1441 echo $ac_n "(cached) $ac_c" 1>&6
2899else 1442else
2900 cat >conftest.$ac_ext <<_ACEOF 1443 cat > conftest.$ac_ext <<EOF
2901#line 2901 "configure" 1444#line 1445 "configure"
2902#include "confdefs.h" 1445#include "confdefs.h"
2903#include <$ac_header> 1446#include <$ac_hdr>
2904_ACEOF 1447EOF
2905if { (eval echo "$as_me:2905: \"$ac_cpp conftest.$ac_ext\"") >&5 1448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 1449{ (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2907 ac_status=$? 1450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2908 egrep -v '^ *\+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } >/dev/null; then
2913 if test -s conftest.err; then
2914 ac_cpp_err=$ac_c_preproc_warn_flag
2915 else
2916 ac_cpp_err=
2917 fi
2918else
2919 ac_cpp_err=yes
2920fi
2921if test -z "$ac_cpp_err"; then 1451if test -z "$ac_err"; then
2922 eval "$as_ac_Header=yes" 1452 rm -rf conftest*
1453 eval "ac_cv_header_$ac_safe=yes"
2923else 1454else
1455 echo "$ac_err" >&5
2924 echo "$as_me: failed program was:" >&5 1456 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5 1457 cat conftest.$ac_ext >&5
2926 eval "$as_ac_Header=no" 1458 rm -rf conftest*
1459 eval "ac_cv_header_$ac_safe=no"
2927fi 1460fi
2928rm -f conftest.err conftest.$ac_ext 1461rm -f conftest*
2929fi 1462fi
2930echo "$as_me:2930: result: `eval echo '${'$as_ac_Header'}'`" >&5 1463if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 1464 echo "$ac_t""yes" 1>&6
2932if test `eval echo '${'$as_ac_Header'}'` = yes; then 1465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2933 cat >>confdefs.h <<EOF 1466 cat >> confdefs.h <<EOF
2934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 1467#define $ac_tr_hdr 1
2935EOF 1468EOF
2936 1469
1470else
1471 echo "$ac_t""no" 1>&6
2937fi 1472fi
2938done 1473done
2939 1474
2940 if test "$ac_cv_header_stdarg_h" = "no" ; then 1475 if test "$ac_cv_header_stdarg_h" = "no" ; then
2941 if test "$ac_cv_header_varargs_h" = "no" ; then 1476 if test "$ac_cv_header_varargs_h" = "no" ; then
2942 { { echo "$as_me:2942: error: neither stdarg.h nor varargs.h present" >&5
2943echo "$as_me: error: neither stdarg.h nor varargs.h present" >&2;} 1477 { echo "configure: error: neither stdarg.h nor varargs.h present" 1>&2; exit 1; }
2944 { (exit 1); exit 1; }; }
2945 fi 1478 fi
2946 fi 1479 fi
2947fi 1480fi
2948 1481
2949# 1482#
2953# and we can change the definition by hand on a really DOS 1486# and we can change the definition by hand on a really DOS
2954# system (where ./configure doesn't work anyway ...) 1487# system (where ./configure doesn't work anyway ...)
2955# 1488#
2956 1489
2957if false ; then 1490if false ; then
2958 cat >>confdefs.h <<\EOF 1491 cat >> confdefs.h <<\EOF
2959#define SYSTEM_DOS 1 1492#define SYSTEM_DOS 1
2960EOF 1493EOF
2961 1494
2962 cat >>confdefs.h <<\EOF 1495 cat >> confdefs.h <<\EOF
2963#define SYSTEM_QUICKWIN 1 1496#define SYSTEM_QUICKWIN 1
2964EOF 1497EOF
2965 1498
2966 cat >>confdefs.h <<\EOF 1499 cat >> confdefs.h <<\EOF
2967#define SYSTEM_WINDLL 1 1500#define SYSTEM_WINDLL 1
2968EOF 1501EOF
2969 1502
2970 cat >>confdefs.h <<\EOF 1503 cat >> confdefs.h <<\EOF
2971#define SYSTEM_OS2 1 1504#define SYSTEM_OS2 1
2972EOF 1505EOF
2973 1506
2974fi 1507fi
2975 1508
2976# 1509#
2977# On some systems (so far, OS2 and WINDOWS), functions that are exported 1510# On some systems (so far, OS2 and WINDOWS), functions that are exported
2978# from a DLL must be declared specifically. 1511# from a DLL must be declared specifically.
2979# 1512#
2980 1513
2981cat >>confdefs.h <<EOF 1514cat >> confdefs.h <<EOF
2982#define UUEXPORT 1515#define UUEXPORT
2983EOF 1516EOF
2984 1517
2985cat >>confdefs.h <<EOF 1518cat >> confdefs.h <<EOF
2986#define TOOLEXPORT 1519#define TOOLEXPORT
2987EOF 1520EOF
1521
2988 1522
2989# 1523#
2990# set version number 1524# set version number
2991# 1525#
2992echo "$as_me:2992: checking version number" >&5
2993echo $ECHO_N "checking version number... $ECHO_C" >&6 1526echo $ac_n "checking version number""... $ac_c" 1>&6
1527echo "configure:1528: checking version number" >&5
2994version_number="$VERSION"pl"$PATCH" 1528version_number="$VERSION"pl"$PATCH"
2995echo "$as_me:2995: result: $version_number" >&5
2996echo "${ECHO_T}$version_number" >&6 1529echo "$ac_t""$version_number" 1>&6
1530
1531
2997 1532
2998# 1533#
2999# done 1534# done
3000# 1535#
3001 1536
3002ac_config_files="$ac_config_files Makefile" 1537trap '' 1 2 15
3003cat >confcache <<\_ACEOF 1538cat > confcache <<\EOF
3004# This file is a shell script that caches the results of configure 1539# This file is a shell script that caches the results of configure
3005# tests run on this system so they can be shared between configure 1540# tests run on this system so they can be shared between configure
3006# scripts and configure runs, see configure's option --config-cache. 1541# scripts and configure runs. It is not useful on other systems.
3007# It is not useful on other systems. If it contains results you don't 1542# If it contains results you don't want to keep, you may remove or edit it.
3008# want to keep, you may remove or edit it.
3009# 1543#
1544# By default, configure uses ./config.cache as the cache file,
1545# creating it if it does not exist already. You can give configure
1546# the --cache-file=FILE option to use a different cache file; that is
1547# what configure does when it calls configure scripts in
1548# subdirectories, so they share the cache.
1549# Giving --cache-file=/dev/null disables caching, for debugging configure.
3010# config.status only pays attention to the cache file if you give it 1550# config.status only pays attention to the cache file if you give it the
3011# the --recheck option to rerun configure. 1551# --recheck option to rerun configure.
3012# 1552#
3013# `ac_cv_env_foo' variables (set or unset) will be overriden when 1553EOF
3014# loading this file, other *unset* `ac_cv_foo' will be assigned the
3015# following values.
3016
3017_ACEOF
3018
3019# The following way of writing the cache mishandles newlines in values, 1554# The following way of writing the cache mishandles newlines in values,
3020# but we know of no workaround that is simple, portable, and efficient. 1555# but we know of no workaround that is simple, portable, and efficient.
3021# So, don't put newlines in cache variables' values. 1556# So, don't put newlines in cache variables' values.
3022# Ultrix sh set writes to stderr and can't be redirected directly, 1557# Ultrix sh set writes to stderr and can't be redirected directly,
3023# and sets the high bit in the cache file unless we assign to the vars. 1558# and sets the high bit in the cache file unless we assign to the vars.
3024{
3025 (set) 2>&1 | 1559(set) 2>&1 |
3026 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3027 *ac_space=\ *) 1561 *ac_space=\ *)
3028 # `set' does not quote correctly, so add quotes (double-quote 1562 # `set' does not quote correctly, so add quotes (double-quote substitution
3029 # substitution turns \\\\ into \\, and sed turns \\ into \). 1563 # turns \\\\ into \\, and sed turns \\ into \).
3030 sed -n \ 1564 sed -n \
3031 "s/'/'\\\\''/g; 1565 -e "s/'/'\\\\''/g" \
3032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 1566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3033 ;; 1567 ;;
3034 *) 1568 *)
3035 # `set' quotes correctly as required by POSIX, so do not add quotes. 1569 # `set' quotes correctly as required by POSIX, so do not add quotes.
3036 sed -n \ 1570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3038 ;; 1571 ;;
3039 esac; 1572 esac >> confcache
3040} |
3041 sed '
3042 t clear
3043 : clear
3044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3045 t end
3046 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3047 : end' >>confcache
3048if cmp -s $cache_file confcache; then :; else 1573if cmp -s $cache_file confcache; then
1574 :
1575else
3049 if test -w $cache_file; then 1576 if test -w $cache_file; then
3050 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 1577 echo "updating cache $cache_file"
3051 cat confcache >$cache_file 1578 cat confcache > $cache_file
3052 else 1579 else
3053 echo "not updating unwritable cache $cache_file" 1580 echo "not updating unwritable cache $cache_file"
3054 fi 1581 fi
3055fi 1582fi
3056rm -f confcache 1583rm -f confcache
3057 1584
1585trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1586
3058test "x$prefix" = xNONE && prefix=$ac_default_prefix 1587test "x$prefix" = xNONE && prefix=$ac_default_prefix
3059# Let make expand exec_prefix. 1588# Let make expand exec_prefix.
3060test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1589test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3061 1590
3062# VPATH may cause trouble with some makes, so we remove $(srcdir), 1591# Any assignment to VPATH causes Sun make to only execute
3063# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 1592# the first set of double-colon rules, so remove it if not needed.
3064# trailing colons and then remove the whole line if VPATH becomes empty 1593# If there is a colon in the path, we need to keep it.
3065# (actually we leave an empty line to preserve line numbers).
3066if test "x$srcdir" = x.; then 1594if test "x$srcdir" = x.; then
3067 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 1595 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3068s/:*\$(srcdir):*/:/;
3069s/:*\${srcdir}:*/:/;
3070s/:*@srcdir@:*/:/;
3071s/^\([^=]*=[ ]*\):*/\1/;
3072s/:*$//;
3073s/^[^=]*=[ ]*$//;
3074}'
3075fi 1596fi
1597
1598trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3076 1599
3077DEFS=-DHAVE_CONFIG_H 1600DEFS=-DHAVE_CONFIG_H
3078 1601
1602# Without the "./", some shells look in PATH for config.status.
3079: ${CONFIG_STATUS=./config.status} 1603: ${CONFIG_STATUS=./config.status}
3080ac_clean_files_save=$ac_clean_files 1604
3081ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3082{ echo "$as_me:3082: creating $CONFIG_STATUS" >&5
3083echo "$as_me: creating $CONFIG_STATUS" >&6;} 1605echo creating $CONFIG_STATUS
1606rm -f $CONFIG_STATUS
3084cat >$CONFIG_STATUS <<_ACEOF 1607cat > $CONFIG_STATUS <<EOF
3085#! $SHELL 1608#! /bin/sh
3086# Generated automatically by configure. 1609# Generated automatically by configure.
3087# Run this file to recreate the current configuration. 1610# Run this file to recreate the current configuration.
1611# This directory was configured as follows,
1612# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1613#
1614# $0 $ac_configure_args
1615#
3088# Compiler output produced by configure, useful for debugging 1616# Compiler output produced by configure, useful for debugging
3089# configure, is in config.log if it exists. 1617# configure, is in ./config.log if it exists.
3090 1618
3091debug=false 1619ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3092SHELL=\${CONFIG_SHELL-$SHELL} 1620for ac_option
3093ac_cs_invocation="\$0 \$@"
3094
3095_ACEOF
3096
3097cat >>$CONFIG_STATUS <<\_ACEOF
3098# Be Bourne compatible
3099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3100 emulate sh
3101 NULLCMD=:
3102elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3103 set -o posix
3104fi
3105
3106# Name of the executable.
3107as_me=`echo "$0" |sed 's,.*[\\/],,'`
3108
3109if expr a : '\(a\)' >/dev/null 2>&1; then
3110 as_expr=expr
3111else
3112 as_expr=false
3113fi
3114
3115rm -f conf$$ conf$$.exe conf$$.file
3116echo >conf$$.file
3117if ln -s conf$$.file conf$$ 2>/dev/null; then
3118 # We could just check for DJGPP; but this test a) works b) is more generic
3119 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3120 if test -f conf$$.exe; then
3121 # Don't use ln at all; we don't have any links
3122 as_ln_s='cp -p'
3123 else
3124 as_ln_s='ln -s'
3125 fi
3126elif ln conf$$.file conf$$ 2>/dev/null; then
3127 as_ln_s=ln
3128else
3129 as_ln_s='cp -p'
3130fi
3131rm -f conf$$ conf$$.exe conf$$.file
3132
3133as_executable_p="test -f"
3134
3135# Support unset when possible.
3136if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3137 as_unset=unset
3138else
3139 as_unset=false
3140fi
3141
3142# NLS nuisances.
3143$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3144$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3145$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3146$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3147$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3148$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3149$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3150$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3151
3152# IFS
3153# We need space, tab and new line, in precisely that order.
3154as_nl='
3155'
3156IFS=" $as_nl"
3157
3158# CDPATH.
3159$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3160
3161exec 6>&1
3162
3163_ACEOF
3164
3165# Files that config.status was made for.
3166if test -n "$ac_config_files"; then
3167 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3168fi
3169
3170if test -n "$ac_config_headers"; then
3171 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3172fi
3173
3174if test -n "$ac_config_links"; then
3175 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3176fi
3177
3178if test -n "$ac_config_commands"; then
3179 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3180fi
3181
3182cat >>$CONFIG_STATUS <<\EOF
3183
3184ac_cs_usage="\
3185\`$as_me' instantiates files from templates according to the
3186current configuration.
3187
3188Usage: $0 [OPTIONS] [FILE]...
3189
3190 -h, --help print this help, then exit
3191 -V, --version print version number, then exit
3192 -d, --debug don't remove temporary files
3193 --recheck update $as_me by reconfiguring in the same conditions
3194 --file=FILE[:TEMPLATE]
3195 instantiate the configuration file FILE
3196 --header=FILE[:TEMPLATE]
3197 instantiate the configuration header FILE
3198
3199Configuration files:
3200$config_files
3201
3202Configuration headers:
3203$config_headers
3204
3205Report bugs to <bug-autoconf@gnu.org>."
3206EOF
3207
3208cat >>$CONFIG_STATUS <<EOF
3209ac_cs_version="\\
3210config.status
3211configured by $0, generated by GNU Autoconf 2.52,
3212 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3213
3214Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3215Free Software Foundation, Inc.
3216This config.status script is free software; the Free Software Foundation
3217gives unlimited permission to copy, distribute and modify it."
3218srcdir=$srcdir
3219EOF
3220
3221cat >>$CONFIG_STATUS <<\EOF
3222# If no file are specified by the user, then we need to provide default
3223# value. By we need to know if files were specified by the user.
3224ac_need_defaults=:
3225while test $# != 0
3226do 1621do
3227 case $1 in 1622 case "\$ac_option" in
3228 --*=*)
3229 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3230 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3231 shift
3232 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3233 shift
3234 ;;
3235 -*);;
3236 *) # This is not an option, so the user has probably given explicit
3237 # arguments.
3238 ac_need_defaults=false;;
3239 esac
3240
3241 case $1 in
3242 # Handling of the options.
3243EOF
3244cat >>$CONFIG_STATUS <<EOF
3245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3246 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 1624 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3247 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 1625 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3248EOF 1626 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3249cat >>$CONFIG_STATUS <<\EOF 1627 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3250 --version | --vers* | -V ) 1628 exit 0 ;;
3251 echo "$ac_cs_version"; exit 0 ;; 1629 -help | --help | --hel | --he | --h)
3252 --he | --h)
3253 # Conflict between --help and --header
3254 { { echo "$as_me:3254: error: ambiguous option: $1
3255Try \`$0 --help' for more information." >&5
3256echo "$as_me: error: ambiguous option: $1
3257Try \`$0 --help' for more information." >&2;}
3258 { (exit 1); exit 1; }; };;
3259 --help | --hel | -h )
3260 echo "$ac_cs_usage"; exit 0 ;; 1630 echo "\$ac_cs_usage"; exit 0 ;;
3261 --debug | --d* | -d ) 1631 *) echo "\$ac_cs_usage"; exit 1 ;;
3262 debug=: ;;
3263 --file | --fil | --fi | --f )
3264 shift
3265 CONFIG_FILES="$CONFIG_FILES $1"
3266 ac_need_defaults=false;;
3267 --header | --heade | --head | --hea )
3268 shift
3269 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3270 ac_need_defaults=false;;
3271
3272 # This is an error.
3273 -*) { { echo "$as_me:3273: error: unrecognized option: $1
3274Try \`$0 --help' for more information." >&5
3275echo "$as_me: error: unrecognized option: $1
3276Try \`$0 --help' for more information." >&2;}
3277 { (exit 1); exit 1; }; } ;;
3278
3279 *) ac_config_targets="$ac_config_targets $1" ;;
3280
3281 esac
3282 shift
3283done
3284
3285exec 5>>config.log
3286cat >&5 << _ACEOF
3287
3288## ----------------------- ##
3289## Running config.status. ##
3290## ----------------------- ##
3291
3292This file was extended by $as_me 2.52, executed with
3293 CONFIG_FILES = $CONFIG_FILES
3294 CONFIG_HEADERS = $CONFIG_HEADERS
3295 CONFIG_LINKS = $CONFIG_LINKS
3296 CONFIG_COMMANDS = $CONFIG_COMMANDS
3297 > $ac_cs_invocation
3298on `(hostname || uname -n) 2>/dev/null | sed 1q`
3299
3300_ACEOF
3301EOF
3302
3303cat >>$CONFIG_STATUS <<\EOF
3304for ac_config_target in $ac_config_targets
3305do
3306 case "$ac_config_target" in
3307 # Handling of arguments.
3308 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3309 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3310 *) { { echo "$as_me:3310: error: invalid argument: $ac_config_target" >&5
3311echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3312 { (exit 1); exit 1; }; };;
3313 esac 1632 esac
3314done 1633done
3315 1634
3316# If the user did not use the arguments to specify the items to instantiate, 1635ac_given_srcdir=$srcdir
3317# then the envvar interface is used. Set only those that are not.
3318# We use the long form for the default assignment because of an extremely
3319# bizarre bug on SunOS 4.1.3.
3320if $ac_need_defaults; then
3321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3323fi
3324 1636
3325# Create a temporary directory, and hook for its removal unless debugging. 1637trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3326$debug ||
3327{
3328 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3329 trap '{ (exit 1); exit 1; }' 1 2 13 15
3330}
3331
3332# Create a (secure) tmp directory for tmp files.
3333: ${TMPDIR=/tmp}
3334{
3335 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3336 test -n "$tmp" && test -d "$tmp"
3337} ||
3338{
3339 tmp=$TMPDIR/cs$$-$RANDOM
3340 (umask 077 && mkdir $tmp)
3341} ||
3342{
3343 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3344 { (exit 1); exit 1; }
3345}
3346
3347EOF 1638EOF
3348
3349cat >>$CONFIG_STATUS <<EOF 1639cat >> $CONFIG_STATUS <<EOF
3350 1640
3351#
3352# CONFIG_FILES section.
3353#
3354
3355# No need to generate the scripts if there are no CONFIG_FILES.
3356# This happens for instance when ./config.status config.h
3357if test -n "\$CONFIG_FILES"; then
3358 # Protect against being on the right side of a sed subst in config.status. 1641# Protect against being on the right side of a sed subst in config.status.
3359 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 1642sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3360 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 1643 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3361s,@SHELL@,$SHELL,;t t 1644$ac_vpsub
1645$extrasub
1646s%@SHELL@%$SHELL%g
1647s%@CFLAGS@%$CFLAGS%g
1648s%@CPPFLAGS@%$CPPFLAGS%g
1649s%@CXXFLAGS@%$CXXFLAGS%g
1650s%@FFLAGS@%$FFLAGS%g
1651s%@DEFS@%$DEFS%g
1652s%@LDFLAGS@%$LDFLAGS%g
1653s%@LIBS@%$LIBS%g
3362s,@exec_prefix@,$exec_prefix,;t t 1654s%@exec_prefix@%$exec_prefix%g
3363s,@prefix@,$prefix,;t t 1655s%@prefix@%$prefix%g
3364s,@program_transform_name@,$program_transform_name,;t t 1656s%@program_transform_name@%$program_transform_name%g
3365s,@bindir@,$bindir,;t t 1657s%@bindir@%$bindir%g
3366s,@sbindir@,$sbindir,;t t 1658s%@sbindir@%$sbindir%g
3367s,@libexecdir@,$libexecdir,;t t 1659s%@libexecdir@%$libexecdir%g
3368s,@datadir@,$datadir,;t t 1660s%@datadir@%$datadir%g
3369s,@sysconfdir@,$sysconfdir,;t t 1661s%@sysconfdir@%$sysconfdir%g
3370s,@sharedstatedir@,$sharedstatedir,;t t 1662s%@sharedstatedir@%$sharedstatedir%g
3371s,@localstatedir@,$localstatedir,;t t 1663s%@localstatedir@%$localstatedir%g
3372s,@libdir@,$libdir,;t t 1664s%@libdir@%$libdir%g
3373s,@includedir@,$includedir,;t t 1665s%@includedir@%$includedir%g
3374s,@oldincludedir@,$oldincludedir,;t t 1666s%@oldincludedir@%$oldincludedir%g
3375s,@infodir@,$infodir,;t t 1667s%@infodir@%$infodir%g
3376s,@mandir@,$mandir,;t t 1668s%@mandir@%$mandir%g
3377s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 1669s%@CC@%$CC%g
3378s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 1670s%@CPP@%$CPP%g
3379s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3380s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3381s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3382s,@build_alias@,$build_alias,;t t
3383s,@host_alias@,$host_alias,;t t
3384s,@target_alias@,$target_alias,;t t
3385s,@ECHO_C@,$ECHO_C,;t t
3386s,@ECHO_N@,$ECHO_N,;t t
3387s,@ECHO_T@,$ECHO_T,;t t
3388s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3389s,@DEFS@,$DEFS,;t t
3390s,@LIBS@,$LIBS,;t t
3391s,@CC@,$CC,;t t
3392s,@CFLAGS@,$CFLAGS,;t t
3393s,@LDFLAGS@,$LDFLAGS,;t t
3394s,@CPPFLAGS@,$CPPFLAGS,;t t
3395s,@ac_ct_CC@,$ac_ct_CC,;t t
3396s,@EXEEXT@,$EXEEXT,;t t
3397s,@OBJEXT@,$OBJEXT,;t t
3398s,@CPP@,$CPP,;t t
3399s,@SET_MAKE@,$SET_MAKE,;t t 1671s%@SET_MAKE@%$SET_MAKE%g
3400s,@RANLIB@,$RANLIB,;t t 1672s%@RANLIB@%$RANLIB%g
3401s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3402s,@VERSION@,$VERSION,;t t 1673s%@VERSION@%$VERSION%g
3403s,@PATCH@,$PATCH,;t t 1674s%@PATCH@%$PATCH%g
1675
3404CEOF 1676CEOF
3405
3406EOF 1677EOF
3407 1678
3408 cat >>$CONFIG_STATUS <<\EOF 1679cat >> $CONFIG_STATUS <<\EOF
1680
3409 # Split the substitutions into bite-sized pieces for seds with 1681# Split the substitutions into bite-sized pieces for seds with
3410 # small command number limits, like on Digital OSF/1 and HP-UX. 1682# small command number limits, like on Digital OSF/1 and HP-UX.
3411 ac_max_sed_lines=48 1683ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3412 ac_sed_frag=1 # Number of current file. 1684ac_file=1 # Number of current file.
3413 ac_beg=1 # First line for current file. 1685ac_beg=1 # First line for current file.
3414 ac_end=$ac_max_sed_lines # Line after last line for current file. 1686ac_end=$ac_max_sed_cmds # Line after last line for current file.
3415 ac_more_lines=: 1687ac_more_lines=:
3416 ac_sed_cmds= 1688ac_sed_cmds=""
3417 while $ac_more_lines; do 1689while $ac_more_lines; do
3418 if test $ac_beg -gt 1; then 1690 if test $ac_beg -gt 1; then
3419 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 1691 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1692 else
1693 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1694 fi
1695 if test ! -s conftest.s$ac_file; then
1696 ac_more_lines=false
1697 rm -f conftest.s$ac_file
1698 else
1699 if test -z "$ac_sed_cmds"; then
1700 ac_sed_cmds="sed -f conftest.s$ac_file"
3420 else 1701 else
3421 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 1702 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3422 fi 1703 fi
3423 if test ! -s $tmp/subs.frag; then 1704 ac_file=`expr $ac_file + 1`
3424 ac_more_lines=false
3425 else
3426 # The purpose of the label and of the branching condition is to
3427 # speed up the sed processing (if there are no `@' at all, there
3428 # is no need to browse any of the substitutions).
3429 # These are the two extra sed commands mentioned above.
3430 (echo ':t
3431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3432 if test -z "$ac_sed_cmds"; then
3433 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3434 else
3435 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3436 fi
3437 ac_sed_frag=`expr $ac_sed_frag + 1`
3438 ac_beg=$ac_end 1705 ac_beg=$ac_end
3439 ac_end=`expr $ac_end + $ac_max_sed_lines` 1706 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3440 fi
3441 done
3442 if test -z "$ac_sed_cmds"; then
3443 ac_sed_cmds=cat
3444 fi 1707 fi
3445fi # test -n "$CONFIG_FILES" 1708done
3446 1709if test -z "$ac_sed_cmds"; then
1710 ac_sed_cmds=cat
1711fi
3447EOF 1712EOF
1713
1714cat >> $CONFIG_STATUS <<EOF
1715
1716CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1717EOF
3448cat >>$CONFIG_STATUS <<\EOF 1718cat >> $CONFIG_STATUS <<\EOF
3449for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 1719for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3451 case $ac_file in 1721 case "$ac_file" in
3452 - | *:- | *:-:* ) # input from stdin
3453 cat >$tmp/stdin
3454 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3456 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 1722 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3457 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 1723 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3458 * ) ac_file_in=$ac_file.in ;; 1724 *) ac_file_in="${ac_file}.in" ;;
3459 esac 1725 esac
3460 1726
3461 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 1727 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3462 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1728
3463 X"$ac_file" : 'X\(//\)[^/]' \| \ 1729 # Remove last slash and all that follows it. Not all systems have dirname.
3464 X"$ac_file" : 'X\(//\)$' \| \ 1730 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3465 X"$ac_file" : 'X\(/\)' \| \
3466 . : '\(.\)' 2>/dev/null ||
3467echo X"$ac_file" |
3468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3470 /^X\(\/\/\)$/{ s//\1/; q; }
3471 /^X\(\/\).*/{ s//\1/; q; }
3472 s/.*/./; q'`
3473 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3474 { case "$ac_dir" in 1732 # The file is in a subdirectory.
3475 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3476 *) as_incr_dir=.;;
3477esac
3478as_dummy="$ac_dir"
3479for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3480 case $as_mkdir_dir in
3481 # Skip DOS drivespec
3482 ?:) as_incr_dir=$as_mkdir_dir ;;
3483 *)
3484 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3485 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 1733 test ! -d "$ac_dir" && mkdir "$ac_dir"
3486 ;;
3487 esac
3488done; }
3489
3490 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 1734 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3491 # A "../" for each directory in $ac_dir_suffix. 1735 # A "../" for each directory in $ac_dir_suffix.
3492 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 1736 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3493 else 1737 else
3494 ac_dir_suffix= ac_dots= 1738 ac_dir_suffix= ac_dots=
3495 fi 1739 fi
3496 1740
3497 case $srcdir in 1741 case "$ac_given_srcdir" in
3498 .) ac_srcdir=. 1742 .) srcdir=.
3499 if test -z "$ac_dots"; then 1743 if test -z "$ac_dots"; then top_srcdir=.
3500 ac_top_srcdir=.
3501 else
3502 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 1744 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3503 fi ;; 1745 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3504 [\\/]* | ?:[\\/]* )
3505 ac_srcdir=$srcdir$ac_dir_suffix;
3506 ac_top_srcdir=$srcdir ;;
3507 *) # Relative path. 1746 *) # Relative path.
3508 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 1747 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3509 ac_top_srcdir=$ac_dots$srcdir ;; 1748 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3510 esac 1749 esac
3511 1750
3512 if test x"$ac_file" != x-; then 1751
3513 { echo "$as_me:3513: creating $ac_file" >&5 1752 echo creating "$ac_file"
3514echo "$as_me: creating $ac_file" >&6;}
3515 rm -f "$ac_file" 1753 rm -f "$ac_file"
3516 fi
3517 # Let's still pretend it is `configure' which instantiates (i.e., don't
3518 # use $as_me), people would be surprised to read:
3519 # /* config.h. Generated automatically by config.status. */
3520 configure_input="Generated automatically from `echo $ac_file_in | 1754 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3521 sed 's,.*/,,'` by configure." 1755 case "$ac_file" in
3522 1756 *Makefile*) ac_comsub="1i\\
3523 # First look for the input files in the build tree, otherwise in the 1757# $configure_input" ;;
3524 # src tree. 1758 *) ac_comsub= ;;
3525 ac_file_inputs=`IFS=:
3526 for f in $ac_file_in; do
3527 case $f in
3528 -) echo $tmp/stdin ;;
3529 [\\/$]*)
3530 # Absolute (can't be DOS-style, as IFS=:)
3531 test -f "$f" || { { echo "$as_me:3531: error: cannot find input file: $f" >&5
3532echo "$as_me: error: cannot find input file: $f" >&2;}
3533 { (exit 1); exit 1; }; }
3534 echo $f;;
3535 *) # Relative
3536 if test -f "$f"; then
3537 # Build tree
3538 echo $f
3539 elif test -f "$srcdir/$f"; then
3540 # Source tree
3541 echo $srcdir/$f
3542 else
3543 # /dev/null tree
3544 { { echo "$as_me:3544: error: cannot find input file: $f" >&5
3545echo "$as_me: error: cannot find input file: $f" >&2;}
3546 { (exit 1); exit 1; }; }
3547 fi;;
3548 esac 1759 esac
3549 done` || { (exit 1); exit 1; } 1760
3550EOF 1761 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3551cat >>$CONFIG_STATUS <<EOF
3552 sed "$ac_vpsub 1762 sed -e "$ac_comsub
3553$extrasub
3554EOF
3555cat >>$CONFIG_STATUS <<\EOF
3556:t
3557/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3558s,@configure_input@,$configure_input,;t t 1763s%@configure_input@%$configure_input%g
3559s,@srcdir@,$ac_srcdir,;t t 1764s%@srcdir@%$srcdir%g
3560s,@top_srcdir@,$ac_top_srcdir,;t t 1765s%@top_srcdir@%$top_srcdir%g
3561" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 1766" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3562 rm -f $tmp/stdin 1767fi; done
3563 if test x"$ac_file" != x-; then 1768rm -f conftest.s*
3564 mv $tmp/out $ac_file
3565 else
3566 cat $tmp/out
3567 rm -f $tmp/out
3568 fi
3569
3570done
3571EOF
3572cat >>$CONFIG_STATUS <<\EOF
3573
3574#
3575# CONFIG_HEADER section.
3576#
3577 1769
3578# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1770# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3579# NAME is the cpp macro being defined and VALUE is the value it is being given. 1771# NAME is the cpp macro being defined and VALUE is the value it is being given.
3580# 1772#
3581# ac_d sets the value in "#define NAME VALUE" lines. 1773# ac_d sets the value in "#define NAME VALUE" lines.
3582ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1774ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3583ac_dB='[ ].*$,\1#\2' 1775ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3584ac_dC=' ' 1776ac_dC='\3'
3585ac_dD=',;t' 1777ac_dD='%g'
3586# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1778# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3587ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1779ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3588ac_uB='$,\1#\2define\3' 1780ac_uB='\([ ]\)%\1#\2define\3'
3589ac_uC=' ' 1781ac_uC=' '
3590ac_uD=',;t' 1782ac_uD='\4%g'
1783# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1784ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1785ac_eB='$%\1#\2define\3'
1786ac_eC=' '
1787ac_eD='%g'
3591 1788
1789if test "${CONFIG_HEADERS+set}" != set; then
1790EOF
1791cat >> $CONFIG_STATUS <<EOF
1792 CONFIG_HEADERS="config.h"
1793EOF
1794cat >> $CONFIG_STATUS <<\EOF
1795fi
3592for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 1796for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3594 case $ac_file in 1798 case "$ac_file" in
3595 - | *:- | *:-:* ) # input from stdin
3596 cat >$tmp/stdin
3597 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3599 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 1799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 1800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3601 * ) ac_file_in=$ac_file.in ;; 1801 *) ac_file_in="${ac_file}.in" ;;
3602 esac 1802 esac
3603 1803
3604 test x"$ac_file" != x- && { echo "$as_me:3604: creating $ac_file" >&5 1804 echo creating $ac_file
3605echo "$as_me: creating $ac_file" >&6;}
3606 1805
3607 # First look for the input files in the build tree, otherwise in the 1806 rm -f conftest.frag conftest.in conftest.out
3608 # src tree. 1807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3609 ac_file_inputs=`IFS=: 1808 cat $ac_file_inputs > conftest.in
3610 for f in $ac_file_in; do
3611 case $f in
3612 -) echo $tmp/stdin ;;
3613 [\\/$]*)
3614 # Absolute (can't be DOS-style, as IFS=:)
3615 test -f "$f" || { { echo "$as_me:3615: error: cannot find input file: $f" >&5
3616echo "$as_me: error: cannot find input file: $f" >&2;}
3617 { (exit 1); exit 1; }; }
3618 echo $f;;
3619 *) # Relative
3620 if test -f "$f"; then
3621 # Build tree
3622 echo $f
3623 elif test -f "$srcdir/$f"; then
3624 # Source tree
3625 echo $srcdir/$f
3626 else
3627 # /dev/null tree
3628 { { echo "$as_me:3628: error: cannot find input file: $f" >&5
3629echo "$as_me: error: cannot find input file: $f" >&2;}
3630 { (exit 1); exit 1; }; }
3631 fi;;
3632 esac
3633 done` || { (exit 1); exit 1; }
3634 # Remove the trailing spaces.
3635 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3636 1809
3637EOF 1810EOF
3638 1811
3639# Transform confdefs.h into two sed scripts, `conftest.defines' and 1812# Transform confdefs.h into a sed script conftest.vals that substitutes
3640# `conftest.undefs', that substitutes the proper values into 1813# the proper values into config.h.in to produce config.h. And first:
3641# config.h.in to produce config.h. The first handles `#define'
3642# templates, and the second `#undef' templates.
3643# And first: Protect against being on the right side of a sed subst in 1814# Protect against being on the right side of a sed subst in config.status.
3644# config.status. Protect against being in an unquoted here document 1815# Protect against being in an unquoted here document in config.status.
3645# in config.status. 1816rm -f conftest.vals
3646rm -f conftest.defines conftest.undefs 1817cat > conftest.hdr <<\EOF
3647# Using a here document instead of a string reduces the quoting nightmare.
3648# Putting comments in sed scripts is not portable.
3649#
3650# `end' is used to avoid that the second main sed command (meant for
3651# 0-ary CPP macros) applies to n-ary macro definitions.
3652# See the Autoconf documentation for `clear'.
3653cat >confdef2sed.sed <<\EOF
3654s/[\\&,]/\\&/g 1818s/[\\&%]/\\&/g
3655s,[\\$`],\\&,g 1819s%[\\$`]%\\&%g
3656t clear 1820s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3657: clear 1821s%ac_d%ac_u%gp
3658s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 1822s%ac_u%ac_e%gp
3659t end
3660s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3661: end
3662EOF 1823EOF
3663# If some macros were called several times there might be several times 1824sed -n -f conftest.hdr confdefs.h > conftest.vals
3664# the same #defines, which is useless. Nevertheless, we may not want to 1825rm -f conftest.hdr
3665# sort them, since we want the *last* AC-DEFINE to be honored.
3666uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3667sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3668rm -f confdef2sed.sed
3669 1826
3670# This sed command replaces #undef with comments. This is necessary, for 1827# This sed command replaces #undef with comments. This is necessary, for
3671# example, in the case of _POSIX_SOURCE, which is predefined and required 1828# example, in the case of _POSIX_SOURCE, which is predefined and required
3672# on some systems where configure will not decide to define it. 1829# on some systems where configure will not decide to define it.
3673cat >>conftest.undefs <<\EOF 1830cat >> conftest.vals <<\EOF
3674s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 1831s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3675EOF 1832EOF
3676 1833
3677# Break up conftest.defines because some shells have a limit on the size 1834# Break up conftest.vals because some shells have a limit on
3678# of here documents, and old seds have small limits too (100 cmds). 1835# the size of here documents, and old seds have small limits too.
3679echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 1836
3680echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3681echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3682echo ' :' >>$CONFIG_STATUS
3683rm -f conftest.tail 1837rm -f conftest.tail
3684while grep . conftest.defines >/dev/null 1838while :
3685do 1839do
1840 ac_lines=`grep -c . conftest.vals`
1841 # grep -c gives empty output for an empty file on some AIX systems.
1842 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3686 # Write a limited-size here document to $tmp/defines.sed. 1843 # Write a limited-size here document to conftest.frag.
3687 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 1844 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3688 # Speed up: don't consider the non `#define' lines.
3689 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3690 # Work around the forget-to-reset-the-flag bug.
3691 echo 't clr' >>$CONFIG_STATUS
3692 echo ': clr' >>$CONFIG_STATUS
3693 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 1845 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3694 echo 'CEOF 1846 echo 'CEOF
3695 sed -f $tmp/defines.sed $tmp/in >$tmp/out 1847 sed -f conftest.frag conftest.in > conftest.out
3696 rm -f $tmp/in 1848 rm -f conftest.in
3697 mv $tmp/out $tmp/in 1849 mv conftest.out conftest.in
3698' >>$CONFIG_STATUS 1850' >> $CONFIG_STATUS
3699 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 1851 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3700 rm -f conftest.defines 1852 rm -f conftest.vals
3701 mv conftest.tail conftest.defines 1853 mv conftest.tail conftest.vals
3702done 1854done
3703rm -f conftest.defines
3704echo ' fi # egrep' >>$CONFIG_STATUS
3705echo >>$CONFIG_STATUS
3706
3707# Break up conftest.undefs because some shells have a limit on the size
3708# of here documents, and old seds have small limits too (100 cmds).
3709echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3710rm -f conftest.tail 1855rm -f conftest.vals
3711while grep . conftest.undefs >/dev/null
3712do
3713 # Write a limited-size here document to $tmp/undefs.sed.
3714 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3715 # Speed up: don't consider the non `#undef'
3716 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3717 # Work around the forget-to-reset-the-flag bug.
3718 echo 't clr' >>$CONFIG_STATUS
3719 echo ': clr' >>$CONFIG_STATUS
3720 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3721 echo 'CEOF
3722 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3723 rm -f $tmp/in
3724 mv $tmp/out $tmp/in
3725' >>$CONFIG_STATUS
3726 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3727 rm -f conftest.undefs
3728 mv conftest.tail conftest.undefs
3729done
3730rm -f conftest.undefs
3731 1856
3732cat >>$CONFIG_STATUS <<\EOF 1857cat >> $CONFIG_STATUS <<\EOF
3733 # Let's still pretend it is `configure' which instantiates (i.e., don't 1858 rm -f conftest.frag conftest.h
3734 # use $as_me), people would be surprised to read:
3735 # /* config.h. Generated automatically by config.status. */
3736 if test x"$ac_file" = x-; then
3737 echo "/* Generated automatically by configure. */" >$tmp/config.h 1859 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1860 cat conftest.in >> conftest.h
1861 rm -f conftest.in
1862 if cmp -s $ac_file conftest.h 2>/dev/null; then
1863 echo "$ac_file is unchanged"
1864 rm -f conftest.h
3738 else 1865 else
3739 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 1866 # Remove last slash and all that follows it. Not all systems have dirname.
1867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1869 # The file is in a subdirectory.
1870 test ! -d "$ac_dir" && mkdir "$ac_dir"
1871 fi
1872 rm -f $ac_file
1873 mv conftest.h $ac_file
3740 fi 1874 fi
3741 cat $tmp/in >>$tmp/config.h 1875fi; done
3742 rm -f $tmp/in
3743 if test x"$ac_file" != x-; then
3744 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3745 { echo "$as_me:3745: $ac_file is unchanged" >&5
3746echo "$as_me: $ac_file is unchanged" >&6;}
3747 else
3748 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3749 X"$ac_file" : 'X\(//\)[^/]' \| \
3750 X"$ac_file" : 'X\(//\)$' \| \
3751 X"$ac_file" : 'X\(/\)' \| \
3752 . : '\(.\)' 2>/dev/null ||
3753echo X"$ac_file" |
3754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3756 /^X\(\/\/\)$/{ s//\1/; q; }
3757 /^X\(\/\).*/{ s//\1/; q; }
3758 s/.*/./; q'`
3759 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3760 { case "$ac_dir" in
3761 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3762 *) as_incr_dir=.;;
3763esac
3764as_dummy="$ac_dir"
3765for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3766 case $as_mkdir_dir in
3767 # Skip DOS drivespec
3768 ?:) as_incr_dir=$as_mkdir_dir ;;
3769 *)
3770 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3771 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3772 ;;
3773 esac
3774done; }
3775 1876
3776 fi
3777 rm -f $ac_file
3778 mv $tmp/config.h $ac_file
3779 fi
3780 else
3781 cat $tmp/config.h
3782 rm -f $tmp/config.h
3783 fi
3784done
3785EOF 1877EOF
1878cat >> $CONFIG_STATUS <<EOF
3786 1879
1880EOF
3787cat >>$CONFIG_STATUS <<\EOF 1881cat >> $CONFIG_STATUS <<\EOF
3788 1882
3789{ (exit 0); exit 0; } 1883exit 0
3790EOF 1884EOF
3791chmod +x $CONFIG_STATUS 1885chmod +x $CONFIG_STATUS
3792ac_clean_files=$ac_clean_files_save 1886rm -fr confdefs* $ac_clean_files
1887test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3793 1888
3794# configure is writing to config.log, and then calls config.status.
3795# config.status does its own redirection, appending to config.log.
3796# Unfortunately, on DOS this fails, as config.log is still kept open
3797# by configure, so config.status won't be able to write to it; its
3798# output is simply discarded. So we exec the FD to /dev/null,
3799# effectively closing config.log, so it can be properly (re)opened and
3800# appended to by config.status. When coming back to configure, we
3801# need to make the FD available again.
3802if test "$no_create" != yes; then
3803 ac_cs_success=:
3804 exec 5>/dev/null
3805 $SHELL $CONFIG_STATUS || ac_cs_success=false
3806 exec 5>>config.log
3807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3808 # would make configure fail if this is the last instruction.
3809 $ac_cs_success || { (exit 1); exit 1; }
3810fi
3811

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines