1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.59.
|
---|
4 | #
|
---|
5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
6 | # This configure script is free software; the Free Software Foundation
|
---|
7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
8 | ## --------------------- ##
|
---|
9 | ## M4sh Initialization. ##
|
---|
10 | ## --------------------- ##
|
---|
11 |
|
---|
12 | # Be Bourne compatible
|
---|
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
14 | emulate sh
|
---|
15 | NULLCMD=:
|
---|
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
17 | # is contrary to our usage. Disable this feature.
|
---|
18 | alias -g '${1+"$@"}'='"$@"'
|
---|
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
20 | set -o posix
|
---|
21 | fi
|
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
23 |
|
---|
24 | # Support unset when possible.
|
---|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
26 | as_unset=unset
|
---|
27 | else
|
---|
28 | as_unset=false
|
---|
29 | fi
|
---|
30 |
|
---|
31 |
|
---|
32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
33 | $as_unset ENV MAIL MAILPATH
|
---|
34 | PS1='$ '
|
---|
35 | PS2='> '
|
---|
36 | PS4='+ '
|
---|
37 |
|
---|
38 | # NLS nuisances.
|
---|
39 | for as_var in \
|
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
42 | LC_TELEPHONE LC_TIME
|
---|
43 | do
|
---|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
45 | eval $as_var=C; export $as_var
|
---|
46 | else
|
---|
47 | $as_unset $as_var
|
---|
48 | fi
|
---|
49 | done
|
---|
50 |
|
---|
51 | # Required to use basename.
|
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
53 | as_expr=expr
|
---|
54 | else
|
---|
55 | as_expr=false
|
---|
56 | fi
|
---|
57 |
|
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
59 | as_basename=basename
|
---|
60 | else
|
---|
61 | as_basename=false
|
---|
62 | fi
|
---|
63 |
|
---|
64 |
|
---|
65 | # Name of the executable.
|
---|
66 | as_me=`$as_basename "$0" ||
|
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
68 | X"$0" : 'X\(//\)$' \| \
|
---|
69 | X"$0" : 'X\(/\)$' \| \
|
---|
70 | . : '\(.\)' 2>/dev/null ||
|
---|
71 | echo X/"$0" |
|
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
75 | s/.*/./; q'`
|
---|
76 |
|
---|
77 |
|
---|
78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
79 | # Avoid depending upon Character Ranges.
|
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
83 | as_cr_digits='0123456789'
|
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
85 |
|
---|
86 | # The user is always right.
|
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
88 | echo "#! /bin/sh" >conf$$.sh
|
---|
89 | echo "exit 0" >>conf$$.sh
|
---|
90 | chmod +x conf$$.sh
|
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
92 | PATH_SEPARATOR=';'
|
---|
93 | else
|
---|
94 | PATH_SEPARATOR=:
|
---|
95 | fi
|
---|
96 | rm -f conf$$.sh
|
---|
97 | fi
|
---|
98 |
|
---|
99 |
|
---|
100 | as_lineno_1=$LINENO
|
---|
101 | as_lineno_2=$LINENO
|
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
105 | # Find who we are. Look in the path if we contain no path at all
|
---|
106 | # relative or not.
|
---|
107 | case $0 in
|
---|
108 | *[\\/]* ) as_myself=$0 ;;
|
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
110 | for as_dir in $PATH
|
---|
111 | do
|
---|
112 | IFS=$as_save_IFS
|
---|
113 | test -z "$as_dir" && as_dir=.
|
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
115 | done
|
---|
116 |
|
---|
117 | ;;
|
---|
118 | esac
|
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
120 | # in which case we are not to be found in the path.
|
---|
121 | if test "x$as_myself" = x; then
|
---|
122 | as_myself=$0
|
---|
123 | fi
|
---|
124 | if test ! -f "$as_myself"; then
|
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
126 | { (exit 1); exit 1; }; }
|
---|
127 | fi
|
---|
128 | case $CONFIG_SHELL in
|
---|
129 | '')
|
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
132 | do
|
---|
133 | IFS=$as_save_IFS
|
---|
134 | test -z "$as_dir" && as_dir=.
|
---|
135 | for as_base in sh bash ksh sh5; do
|
---|
136 | case $as_dir in
|
---|
137 | /*)
|
---|
138 | if ("$as_dir/$as_base" -c '
|
---|
139 | as_lineno_1=$LINENO
|
---|
140 | as_lineno_2=$LINENO
|
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
147 | export CONFIG_SHELL
|
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
149 | fi;;
|
---|
150 | esac
|
---|
151 | done
|
---|
152 | done
|
---|
153 | ;;
|
---|
154 | esac
|
---|
155 |
|
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
158 | # line-number line before each line; the second 'sed' does the real
|
---|
159 | # work. The second script uses 'N' to pair each line-number line
|
---|
160 | # with the numbered line, and appends trailing '-' during
|
---|
161 | # substitution so that $LINENO is not a special case at line end.
|
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
164 | sed '=' <$as_myself |
|
---|
165 | sed '
|
---|
166 | N
|
---|
167 | s,$,-,
|
---|
168 | : loop
|
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
170 | t loop
|
---|
171 | s,-$,,
|
---|
172 | s,^['$as_cr_digits']*\n,,
|
---|
173 | ' >$as_me.lineno &&
|
---|
174 | chmod +x $as_me.lineno ||
|
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
176 | { (exit 1); exit 1; }; }
|
---|
177 |
|
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
179 | # (the dirname of $[0] is not the place where we might find the
|
---|
180 | # original and so on. Autoconf is especially sensible to this).
|
---|
181 | . ./$as_me.lineno
|
---|
182 | # Exit status is that of the last command.
|
---|
183 | exit
|
---|
184 | }
|
---|
185 |
|
---|
186 |
|
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
189 | ' ECHO_T=' ' ;;
|
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
192 | esac
|
---|
193 |
|
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
195 | as_expr=expr
|
---|
196 | else
|
---|
197 | as_expr=false
|
---|
198 | fi
|
---|
199 |
|
---|
200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
201 | echo >conf$$.file
|
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
205 | if test -f conf$$.exe; then
|
---|
206 | # Don't use ln at all; we don't have any links
|
---|
207 | as_ln_s='cp -p'
|
---|
208 | else
|
---|
209 | as_ln_s='ln -s'
|
---|
210 | fi
|
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
212 | as_ln_s=ln
|
---|
213 | else
|
---|
214 | as_ln_s='cp -p'
|
---|
215 | fi
|
---|
216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
217 |
|
---|
218 | if mkdir -p . 2>/dev/null; then
|
---|
219 | as_mkdir_p=:
|
---|
220 | else
|
---|
221 | test -d ./-p && rmdir ./-p
|
---|
222 | as_mkdir_p=false
|
---|
223 | fi
|
---|
224 |
|
---|
225 | as_executable_p="test -f"
|
---|
226 |
|
---|
227 | # Sed expression to map a string onto a valid CPP name.
|
---|
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
229 |
|
---|
230 | # Sed expression to map a string onto a valid variable name.
|
---|
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
232 |
|
---|
233 |
|
---|
234 | # IFS
|
---|
235 | # We need space, tab and new line, in precisely that order.
|
---|
236 | as_nl='
|
---|
237 | '
|
---|
238 | IFS=" $as_nl"
|
---|
239 |
|
---|
240 | # CDPATH.
|
---|
241 | $as_unset CDPATH
|
---|
242 |
|
---|
243 |
|
---|
244 | # Name of the host.
|
---|
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
246 | # so uname gets run too.
|
---|
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
248 |
|
---|
249 | exec 6>&1
|
---|
250 |
|
---|
251 | #
|
---|
252 | # Initializations.
|
---|
253 | #
|
---|
254 | ac_default_prefix=/usr/local
|
---|
255 | ac_config_libobj_dir=.
|
---|
256 | cross_compiling=no
|
---|
257 | subdirs=
|
---|
258 | MFLAGS=
|
---|
259 | MAKEFLAGS=
|
---|
260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
261 |
|
---|
262 | # Maximum number of lines to put in a shell here document.
|
---|
263 | # This variable seems obsolete. It should probably be removed, and
|
---|
264 | # only ac_max_sed_lines should be used.
|
---|
265 | : ${ac_max_here_lines=38}
|
---|
266 |
|
---|
267 | # Identity of this package.
|
---|
268 | PACKAGE_NAME=
|
---|
269 | PACKAGE_TARNAME=
|
---|
270 | PACKAGE_VERSION=
|
---|
271 | PACKAGE_STRING=
|
---|
272 | PACKAGE_BUGREPORT=
|
---|
273 |
|
---|
274 | ac_unique_file="lib/text_t.h"
|
---|
275 | # Factoring default headers for most tests.
|
---|
276 | ac_includes_default="\
|
---|
277 | #include <stdio.h>
|
---|
278 | #if HAVE_SYS_TYPES_H
|
---|
279 | # include <sys/types.h>
|
---|
280 | #endif
|
---|
281 | #if HAVE_SYS_STAT_H
|
---|
282 | # include <sys/stat.h>
|
---|
283 | #endif
|
---|
284 | #if STDC_HEADERS
|
---|
285 | # include <stdlib.h>
|
---|
286 | # include <stddef.h>
|
---|
287 | #else
|
---|
288 | # if HAVE_STDLIB_H
|
---|
289 | # include <stdlib.h>
|
---|
290 | # endif
|
---|
291 | #endif
|
---|
292 | #if HAVE_STRING_H
|
---|
293 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
294 | # include <memory.h>
|
---|
295 | # endif
|
---|
296 | # include <string.h>
|
---|
297 | #endif
|
---|
298 | #if HAVE_STRINGS_H
|
---|
299 | # include <strings.h>
|
---|
300 | #endif
|
---|
301 | #if HAVE_INTTYPES_H
|
---|
302 | # include <inttypes.h>
|
---|
303 | #else
|
---|
304 | # if HAVE_STDINT_H
|
---|
305 | # include <stdint.h>
|
---|
306 | # endif
|
---|
307 | #endif
|
---|
308 | #if HAVE_UNISTD_H
|
---|
309 | # include <unistd.h>
|
---|
310 | #endif"
|
---|
311 |
|
---|
312 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION ENABLE_ACCENTFOLD CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDE gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
314 | ac_subst_files=''
|
---|
315 |
|
---|
316 | # Initialize some variables set by options.
|
---|
317 | ac_init_help=
|
---|
318 | ac_init_version=false
|
---|
319 | # The variables have the same names as the options, with
|
---|
320 | # dashes changed to underlines.
|
---|
321 | cache_file=/dev/null
|
---|
322 | exec_prefix=NONE
|
---|
323 | no_create=
|
---|
324 | no_recursion=
|
---|
325 | prefix=NONE
|
---|
326 | program_prefix=NONE
|
---|
327 | program_suffix=NONE
|
---|
328 | program_transform_name=s,x,x,
|
---|
329 | silent=
|
---|
330 | site=
|
---|
331 | srcdir=
|
---|
332 | verbose=
|
---|
333 | x_includes=NONE
|
---|
334 | x_libraries=NONE
|
---|
335 |
|
---|
336 | # Installation directory options.
|
---|
337 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
338 | # and all the variables that are supposed to be based on exec_prefix
|
---|
339 | # by default will actually change.
|
---|
340 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
341 | bindir='${exec_prefix}/bin'
|
---|
342 | sbindir='${exec_prefix}/sbin'
|
---|
343 | libexecdir='${exec_prefix}/libexec'
|
---|
344 | datadir='${prefix}/share'
|
---|
345 | sysconfdir='${prefix}/etc'
|
---|
346 | sharedstatedir='${prefix}/com'
|
---|
347 | localstatedir='${prefix}/var'
|
---|
348 | libdir='${exec_prefix}/lib'
|
---|
349 | includedir='${prefix}/include'
|
---|
350 | oldincludedir='/usr/include'
|
---|
351 | infodir='${prefix}/info'
|
---|
352 | mandir='${prefix}/man'
|
---|
353 |
|
---|
354 | ac_prev=
|
---|
355 | for ac_option
|
---|
356 | do
|
---|
357 | # If the previous option needs an argument, assign it.
|
---|
358 | if test -n "$ac_prev"; then
|
---|
359 | eval "$ac_prev=\$ac_option"
|
---|
360 | ac_prev=
|
---|
361 | continue
|
---|
362 | fi
|
---|
363 |
|
---|
364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
365 |
|
---|
366 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
367 |
|
---|
368 | case $ac_option in
|
---|
369 |
|
---|
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
371 | ac_prev=bindir ;;
|
---|
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
373 | bindir=$ac_optarg ;;
|
---|
374 |
|
---|
375 | -build | --build | --buil | --bui | --bu)
|
---|
376 | ac_prev=build_alias ;;
|
---|
377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
378 | build_alias=$ac_optarg ;;
|
---|
379 |
|
---|
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
382 | ac_prev=cache_file ;;
|
---|
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
385 | cache_file=$ac_optarg ;;
|
---|
386 |
|
---|
387 | --config-cache | -C)
|
---|
388 | cache_file=config.cache ;;
|
---|
389 |
|
---|
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
391 | ac_prev=datadir ;;
|
---|
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
393 | | --da=*)
|
---|
394 | datadir=$ac_optarg ;;
|
---|
395 |
|
---|
396 | -disable-* | --disable-*)
|
---|
397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
398 | # Reject names that are not valid shell variable names.
|
---|
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
401 | { (exit 1); exit 1; }; }
|
---|
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
403 | eval "enable_$ac_feature=no" ;;
|
---|
404 |
|
---|
405 | -enable-* | --enable-*)
|
---|
406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
407 | # Reject names that are not valid shell variable names.
|
---|
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
410 | { (exit 1); exit 1; }; }
|
---|
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
412 | case $ac_option in
|
---|
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
414 | *) ac_optarg=yes ;;
|
---|
415 | esac
|
---|
416 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
417 |
|
---|
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
420 | | --exec | --exe | --ex)
|
---|
421 | ac_prev=exec_prefix ;;
|
---|
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
424 | | --exec=* | --exe=* | --ex=*)
|
---|
425 | exec_prefix=$ac_optarg ;;
|
---|
426 |
|
---|
427 | -gas | --gas | --ga | --g)
|
---|
428 | # Obsolete; use --with-gas.
|
---|
429 | with_gas=yes ;;
|
---|
430 |
|
---|
431 | -help | --help | --hel | --he | -h)
|
---|
432 | ac_init_help=long ;;
|
---|
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
434 | ac_init_help=recursive ;;
|
---|
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
436 | ac_init_help=short ;;
|
---|
437 |
|
---|
438 | -host | --host | --hos | --ho)
|
---|
439 | ac_prev=host_alias ;;
|
---|
440 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
441 | host_alias=$ac_optarg ;;
|
---|
442 |
|
---|
443 | -includedir | --includedir | --includedi | --included | --include \
|
---|
444 | | --includ | --inclu | --incl | --inc)
|
---|
445 | ac_prev=includedir ;;
|
---|
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
447 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
448 | includedir=$ac_optarg ;;
|
---|
449 |
|
---|
450 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
451 | ac_prev=infodir ;;
|
---|
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
453 | infodir=$ac_optarg ;;
|
---|
454 |
|
---|
455 | -libdir | --libdir | --libdi | --libd)
|
---|
456 | ac_prev=libdir ;;
|
---|
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
458 | libdir=$ac_optarg ;;
|
---|
459 |
|
---|
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
461 | | --libexe | --libex | --libe)
|
---|
462 | ac_prev=libexecdir ;;
|
---|
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
464 | | --libexe=* | --libex=* | --libe=*)
|
---|
465 | libexecdir=$ac_optarg ;;
|
---|
466 |
|
---|
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
468 | | --localstate | --localstat | --localsta | --localst \
|
---|
469 | | --locals | --local | --loca | --loc | --lo)
|
---|
470 | ac_prev=localstatedir ;;
|
---|
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
474 | localstatedir=$ac_optarg ;;
|
---|
475 |
|
---|
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
477 | ac_prev=mandir ;;
|
---|
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
479 | mandir=$ac_optarg ;;
|
---|
480 |
|
---|
481 | -nfp | --nfp | --nf)
|
---|
482 | # Obsolete; use --without-fp.
|
---|
483 | with_fp=no ;;
|
---|
484 |
|
---|
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
486 | | --no-cr | --no-c | -n)
|
---|
487 | no_create=yes ;;
|
---|
488 |
|
---|
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
491 | no_recursion=yes ;;
|
---|
492 |
|
---|
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
495 | | --oldin | --oldi | --old | --ol | --o)
|
---|
496 | ac_prev=oldincludedir ;;
|
---|
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
500 | oldincludedir=$ac_optarg ;;
|
---|
501 |
|
---|
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
503 | ac_prev=prefix ;;
|
---|
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
505 | prefix=$ac_optarg ;;
|
---|
506 |
|
---|
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
508 | | --program-pre | --program-pr | --program-p)
|
---|
509 | ac_prev=program_prefix ;;
|
---|
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
512 | program_prefix=$ac_optarg ;;
|
---|
513 |
|
---|
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
515 | | --program-suf | --program-su | --program-s)
|
---|
516 | ac_prev=program_suffix ;;
|
---|
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
519 | program_suffix=$ac_optarg ;;
|
---|
520 |
|
---|
521 | -program-transform-name | --program-transform-name \
|
---|
522 | | --program-transform-nam | --program-transform-na \
|
---|
523 | | --program-transform-n | --program-transform- \
|
---|
524 | | --program-transform | --program-transfor \
|
---|
525 | | --program-transfo | --program-transf \
|
---|
526 | | --program-trans | --program-tran \
|
---|
527 | | --progr-tra | --program-tr | --program-t)
|
---|
528 | ac_prev=program_transform_name ;;
|
---|
529 | -program-transform-name=* | --program-transform-name=* \
|
---|
530 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
531 | | --program-transform-n=* | --program-transform-=* \
|
---|
532 | | --program-transform=* | --program-transfor=* \
|
---|
533 | | --program-transfo=* | --program-transf=* \
|
---|
534 | | --program-trans=* | --program-tran=* \
|
---|
535 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
536 | program_transform_name=$ac_optarg ;;
|
---|
537 |
|
---|
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
539 | | -silent | --silent | --silen | --sile | --sil)
|
---|
540 | silent=yes ;;
|
---|
541 |
|
---|
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
543 | ac_prev=sbindir ;;
|
---|
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
545 | | --sbi=* | --sb=*)
|
---|
546 | sbindir=$ac_optarg ;;
|
---|
547 |
|
---|
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
550 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
551 | | --sha | --sh)
|
---|
552 | ac_prev=sharedstatedir ;;
|
---|
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
556 | | --sha=* | --sh=*)
|
---|
557 | sharedstatedir=$ac_optarg ;;
|
---|
558 |
|
---|
559 | -site | --site | --sit)
|
---|
560 | ac_prev=site ;;
|
---|
561 | -site=* | --site=* | --sit=*)
|
---|
562 | site=$ac_optarg ;;
|
---|
563 |
|
---|
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
565 | ac_prev=srcdir ;;
|
---|
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
567 | srcdir=$ac_optarg ;;
|
---|
568 |
|
---|
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
570 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
571 | ac_prev=sysconfdir ;;
|
---|
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
574 | sysconfdir=$ac_optarg ;;
|
---|
575 |
|
---|
576 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
577 | ac_prev=target_alias ;;
|
---|
578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
579 | target_alias=$ac_optarg ;;
|
---|
580 |
|
---|
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
582 | verbose=yes ;;
|
---|
583 |
|
---|
584 | -version | --version | --versio | --versi | --vers | -V)
|
---|
585 | ac_init_version=: ;;
|
---|
586 |
|
---|
587 | -with-* | --with-*)
|
---|
588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
589 | # Reject names that are not valid shell variable names.
|
---|
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
592 | { (exit 1); exit 1; }; }
|
---|
593 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
594 | case $ac_option in
|
---|
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
596 | *) ac_optarg=yes ;;
|
---|
597 | esac
|
---|
598 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
599 |
|
---|
600 | -without-* | --without-*)
|
---|
601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
602 | # Reject names that are not valid shell variable names.
|
---|
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
605 | { (exit 1); exit 1; }; }
|
---|
606 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
607 | eval "with_$ac_package=no" ;;
|
---|
608 |
|
---|
609 | --x)
|
---|
610 | # Obsolete; use --with-x.
|
---|
611 | with_x=yes ;;
|
---|
612 |
|
---|
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
614 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
615 | ac_prev=x_includes ;;
|
---|
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
618 | x_includes=$ac_optarg ;;
|
---|
619 |
|
---|
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
622 | ac_prev=x_libraries ;;
|
---|
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
625 | x_libraries=$ac_optarg ;;
|
---|
626 |
|
---|
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
628 | Try \`$0 --help' for more information." >&2
|
---|
629 | { (exit 1); exit 1; }; }
|
---|
630 | ;;
|
---|
631 |
|
---|
632 | *=*)
|
---|
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
634 | # Reject names that are not valid shell variable names.
|
---|
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
637 | { (exit 1); exit 1; }; }
|
---|
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
639 | eval "$ac_envvar='$ac_optarg'"
|
---|
640 | export $ac_envvar ;;
|
---|
641 |
|
---|
642 | *)
|
---|
643 | # FIXME: should be removed in autoconf 3.0.
|
---|
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
648 | ;;
|
---|
649 |
|
---|
650 | esac
|
---|
651 | done
|
---|
652 |
|
---|
653 | if test -n "$ac_prev"; then
|
---|
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
655 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
656 | { (exit 1); exit 1; }; }
|
---|
657 | fi
|
---|
658 |
|
---|
659 | # Be sure to have absolute paths.
|
---|
660 | for ac_var in exec_prefix prefix
|
---|
661 | do
|
---|
662 | eval ac_val=$`echo $ac_var`
|
---|
663 | case $ac_val in
|
---|
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
666 | { (exit 1); exit 1; }; };;
|
---|
667 | esac
|
---|
668 | done
|
---|
669 |
|
---|
670 | # Be sure to have absolute paths.
|
---|
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
672 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
673 | do
|
---|
674 | eval ac_val=$`echo $ac_var`
|
---|
675 | case $ac_val in
|
---|
676 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
678 | { (exit 1); exit 1; }; };;
|
---|
679 | esac
|
---|
680 | done
|
---|
681 |
|
---|
682 | # There might be people who depend on the old broken behavior: `$host'
|
---|
683 | # used to hold the argument of --host etc.
|
---|
684 | # FIXME: To remove some day.
|
---|
685 | build=$build_alias
|
---|
686 | host=$host_alias
|
---|
687 | target=$target_alias
|
---|
688 |
|
---|
689 | # FIXME: To remove some day.
|
---|
690 | if test "x$host_alias" != x; then
|
---|
691 | if test "x$build_alias" = x; then
|
---|
692 | cross_compiling=maybe
|
---|
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
694 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
695 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
696 | cross_compiling=yes
|
---|
697 | fi
|
---|
698 | fi
|
---|
699 |
|
---|
700 | ac_tool_prefix=
|
---|
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
702 |
|
---|
703 | test "$silent" = yes && exec 6>/dev/null
|
---|
704 |
|
---|
705 |
|
---|
706 | # Find the source files, if location was not specified.
|
---|
707 | if test -z "$srcdir"; then
|
---|
708 | ac_srcdir_defaulted=yes
|
---|
709 | # Try the directory containing this script, then its parent.
|
---|
710 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
712 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
713 | X"$0" : 'X\(//\)$' \| \
|
---|
714 | X"$0" : 'X\(/\)' \| \
|
---|
715 | . : '\(.\)' 2>/dev/null ||
|
---|
716 | echo X"$0" |
|
---|
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
719 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
720 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
721 | s/.*/./; q'`
|
---|
722 | srcdir=$ac_confdir
|
---|
723 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
724 | srcdir=..
|
---|
725 | fi
|
---|
726 | else
|
---|
727 | ac_srcdir_defaulted=no
|
---|
728 | fi
|
---|
729 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
730 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
732 | { (exit 1); exit 1; }; }
|
---|
733 | else
|
---|
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
735 | { (exit 1); exit 1; }; }
|
---|
736 | fi
|
---|
737 | fi
|
---|
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
740 | { (exit 1); exit 1; }; }
|
---|
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
742 | ac_env_build_alias_set=${build_alias+set}
|
---|
743 | ac_env_build_alias_value=$build_alias
|
---|
744 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
745 | ac_cv_env_build_alias_value=$build_alias
|
---|
746 | ac_env_host_alias_set=${host_alias+set}
|
---|
747 | ac_env_host_alias_value=$host_alias
|
---|
748 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
749 | ac_cv_env_host_alias_value=$host_alias
|
---|
750 | ac_env_target_alias_set=${target_alias+set}
|
---|
751 | ac_env_target_alias_value=$target_alias
|
---|
752 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
753 | ac_cv_env_target_alias_value=$target_alias
|
---|
754 | ac_env_CC_set=${CC+set}
|
---|
755 | ac_env_CC_value=$CC
|
---|
756 | ac_cv_env_CC_set=${CC+set}
|
---|
757 | ac_cv_env_CC_value=$CC
|
---|
758 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
759 | ac_env_CFLAGS_value=$CFLAGS
|
---|
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
761 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
762 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
763 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
767 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
770 | ac_env_CXX_set=${CXX+set}
|
---|
771 | ac_env_CXX_value=$CXX
|
---|
772 | ac_cv_env_CXX_set=${CXX+set}
|
---|
773 | ac_cv_env_CXX_value=$CXX
|
---|
774 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
775 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
776 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
777 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
778 | ac_env_CPP_set=${CPP+set}
|
---|
779 | ac_env_CPP_value=$CPP
|
---|
780 | ac_cv_env_CPP_set=${CPP+set}
|
---|
781 | ac_cv_env_CPP_value=$CPP
|
---|
782 |
|
---|
783 | #
|
---|
784 | # Report the --help message.
|
---|
785 | #
|
---|
786 | if test "$ac_init_help" = "long"; then
|
---|
787 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
788 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
789 | cat <<_ACEOF
|
---|
790 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
791 |
|
---|
792 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
793 |
|
---|
794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
795 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
796 |
|
---|
797 | Defaults for the options are specified in brackets.
|
---|
798 |
|
---|
799 | Configuration:
|
---|
800 | -h, --help display this help and exit
|
---|
801 | --help=short display options specific to this package
|
---|
802 | --help=recursive display the short help of all the included packages
|
---|
803 | -V, --version display version information and exit
|
---|
804 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
805 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
806 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
807 | -n, --no-create do not create output files
|
---|
808 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
809 |
|
---|
810 | _ACEOF
|
---|
811 |
|
---|
812 | cat <<_ACEOF
|
---|
813 | Installation directories:
|
---|
814 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
815 | [$ac_default_prefix]
|
---|
816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
817 | [PREFIX]
|
---|
818 |
|
---|
819 | By default, \`make install' will install all the files in
|
---|
820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
822 | for instance \`--prefix=\$HOME'.
|
---|
823 |
|
---|
824 | For better control, use the options below.
|
---|
825 |
|
---|
826 | Fine tuning of the installation directories:
|
---|
827 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
828 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
829 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
830 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
834 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
835 | --includedir=DIR C header files [PREFIX/include]
|
---|
836 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
837 | --infodir=DIR info documentation [PREFIX/info]
|
---|
838 | --mandir=DIR man documentation [PREFIX/man]
|
---|
839 | _ACEOF
|
---|
840 |
|
---|
841 | cat <<\_ACEOF
|
---|
842 |
|
---|
843 | System types:
|
---|
844 | --build=BUILD configure for building on BUILD [guessed]
|
---|
845 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
846 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
847 | _ACEOF
|
---|
848 | fi
|
---|
849 |
|
---|
850 | if test -n "$ac_init_help"; then
|
---|
851 |
|
---|
852 | cat <<\_ACEOF
|
---|
853 |
|
---|
854 | Optional Features:
|
---|
855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
857 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
858 |
|
---|
859 | Optional Packages:
|
---|
860 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
861 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
862 | --with-gdbm=dir Use local gdbm library and headers
|
---|
863 | --with-dmalloc use dmalloc, as in
|
---|
864 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
865 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
866 |
|
---|
867 | Some influential environment variables:
|
---|
868 | CC C compiler command
|
---|
869 | CFLAGS C compiler flags
|
---|
870 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
871 | nonstandard directory <lib dir>
|
---|
872 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
873 | headers in a nonstandard directory <include dir>
|
---|
874 | CXX C++ compiler command
|
---|
875 | CXXFLAGS C++ compiler flags
|
---|
876 | CPP C preprocessor
|
---|
877 |
|
---|
878 | Use these variables to override the choices made by `configure' or to help
|
---|
879 | it to find libraries and programs with nonstandard names/locations.
|
---|
880 |
|
---|
881 | _ACEOF
|
---|
882 | fi
|
---|
883 |
|
---|
884 | if test "$ac_init_help" = "recursive"; then
|
---|
885 | # If there are subdirs, report their specific --help.
|
---|
886 | ac_popdir=`pwd`
|
---|
887 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
888 | test -d $ac_dir || continue
|
---|
889 | ac_builddir=.
|
---|
890 |
|
---|
891 | if test "$ac_dir" != .; then
|
---|
892 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
893 | # A "../" for each directory in $ac_dir_suffix.
|
---|
894 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
895 | else
|
---|
896 | ac_dir_suffix= ac_top_builddir=
|
---|
897 | fi
|
---|
898 |
|
---|
899 | case $srcdir in
|
---|
900 | .) # No --srcdir option. We are building in place.
|
---|
901 | ac_srcdir=.
|
---|
902 | if test -z "$ac_top_builddir"; then
|
---|
903 | ac_top_srcdir=.
|
---|
904 | else
|
---|
905 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
906 | fi ;;
|
---|
907 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
908 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
909 | ac_top_srcdir=$srcdir ;;
|
---|
910 | *) # Relative path.
|
---|
911 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
912 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
913 | esac
|
---|
914 |
|
---|
915 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
916 | # the directories may not exist.
|
---|
917 | case `pwd` in
|
---|
918 | .) ac_abs_builddir="$ac_dir";;
|
---|
919 | *)
|
---|
920 | case "$ac_dir" in
|
---|
921 | .) ac_abs_builddir=`pwd`;;
|
---|
922 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
923 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
924 | esac;;
|
---|
925 | esac
|
---|
926 | case $ac_abs_builddir in
|
---|
927 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
928 | *)
|
---|
929 | case ${ac_top_builddir}. in
|
---|
930 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
931 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
932 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
933 | esac;;
|
---|
934 | esac
|
---|
935 | case $ac_abs_builddir in
|
---|
936 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
937 | *)
|
---|
938 | case $ac_srcdir in
|
---|
939 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
940 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
941 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
942 | esac;;
|
---|
943 | esac
|
---|
944 | case $ac_abs_builddir in
|
---|
945 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
946 | *)
|
---|
947 | case $ac_top_srcdir in
|
---|
948 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
949 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
950 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
951 | esac;;
|
---|
952 | esac
|
---|
953 |
|
---|
954 | cd $ac_dir
|
---|
955 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
956 | if test -f $ac_srcdir/configure.gnu; then
|
---|
957 | echo
|
---|
958 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
959 | elif test -f $ac_srcdir/configure; then
|
---|
960 | echo
|
---|
961 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
962 | elif test -f $ac_srcdir/configure.ac ||
|
---|
963 | test -f $ac_srcdir/configure.in; then
|
---|
964 | echo
|
---|
965 | $ac_configure --help
|
---|
966 | else
|
---|
967 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
968 | fi
|
---|
969 | cd $ac_popdir
|
---|
970 | done
|
---|
971 | fi
|
---|
972 |
|
---|
973 | test -n "$ac_init_help" && exit 0
|
---|
974 | if $ac_init_version; then
|
---|
975 | cat <<\_ACEOF
|
---|
976 |
|
---|
977 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
978 | This configure script is free software; the Free Software Foundation
|
---|
979 | gives unlimited permission to copy, distribute and modify it.
|
---|
980 | _ACEOF
|
---|
981 | exit 0
|
---|
982 | fi
|
---|
983 | exec 5>config.log
|
---|
984 | cat >&5 <<_ACEOF
|
---|
985 | This file contains any messages produced by compilers while
|
---|
986 | running configure, to aid debugging if configure makes a mistake.
|
---|
987 |
|
---|
988 | It was created by $as_me, which was
|
---|
989 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
990 |
|
---|
991 | $ $0 $@
|
---|
992 |
|
---|
993 | _ACEOF
|
---|
994 | {
|
---|
995 | cat <<_ASUNAME
|
---|
996 | ## --------- ##
|
---|
997 | ## Platform. ##
|
---|
998 | ## --------- ##
|
---|
999 |
|
---|
1000 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1001 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1002 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1003 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1004 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1005 |
|
---|
1006 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1007 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1008 |
|
---|
1009 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1010 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1011 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1012 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1013 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1014 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1015 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1016 |
|
---|
1017 | _ASUNAME
|
---|
1018 |
|
---|
1019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1020 | for as_dir in $PATH
|
---|
1021 | do
|
---|
1022 | IFS=$as_save_IFS
|
---|
1023 | test -z "$as_dir" && as_dir=.
|
---|
1024 | echo "PATH: $as_dir"
|
---|
1025 | done
|
---|
1026 |
|
---|
1027 | } >&5
|
---|
1028 |
|
---|
1029 | cat >&5 <<_ACEOF
|
---|
1030 |
|
---|
1031 |
|
---|
1032 | ## ----------- ##
|
---|
1033 | ## Core tests. ##
|
---|
1034 | ## ----------- ##
|
---|
1035 |
|
---|
1036 | _ACEOF
|
---|
1037 |
|
---|
1038 |
|
---|
1039 | # Keep a trace of the command line.
|
---|
1040 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1041 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1042 | # Also quote any args containing shell meta-characters.
|
---|
1043 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1044 | ac_configure_args=
|
---|
1045 | ac_configure_args0=
|
---|
1046 | ac_configure_args1=
|
---|
1047 | ac_sep=
|
---|
1048 | ac_must_keep_next=false
|
---|
1049 | for ac_pass in 1 2
|
---|
1050 | do
|
---|
1051 | for ac_arg
|
---|
1052 | do
|
---|
1053 | case $ac_arg in
|
---|
1054 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1055 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1056 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1057 | continue ;;
|
---|
1058 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1059 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1060 | esac
|
---|
1061 | case $ac_pass in
|
---|
1062 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1063 | 2)
|
---|
1064 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1065 | if test $ac_must_keep_next = true; then
|
---|
1066 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1067 | else
|
---|
1068 | case $ac_arg in
|
---|
1069 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1070 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1071 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1072 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1073 | case "$ac_configure_args0 " in
|
---|
1074 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1075 | esac
|
---|
1076 | ;;
|
---|
1077 | -* ) ac_must_keep_next=true ;;
|
---|
1078 | esac
|
---|
1079 | fi
|
---|
1080 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1081 | # Get rid of the leading space.
|
---|
1082 | ac_sep=" "
|
---|
1083 | ;;
|
---|
1084 | esac
|
---|
1085 | done
|
---|
1086 | done
|
---|
1087 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1088 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1089 |
|
---|
1090 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1091 | # config.log. We remove comments because anyway the quotes in there
|
---|
1092 | # would cause problems or look ugly.
|
---|
1093 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1094 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1095 | trap 'exit_status=$?
|
---|
1096 | # Save into config.log some information that might help in debugging.
|
---|
1097 | {
|
---|
1098 | echo
|
---|
1099 |
|
---|
1100 | cat <<\_ASBOX
|
---|
1101 | ## ---------------- ##
|
---|
1102 | ## Cache variables. ##
|
---|
1103 | ## ---------------- ##
|
---|
1104 | _ASBOX
|
---|
1105 | echo
|
---|
1106 | # The following way of writing the cache mishandles newlines in values,
|
---|
1107 | {
|
---|
1108 | (set) 2>&1 |
|
---|
1109 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1110 | *ac_space=\ *)
|
---|
1111 | sed -n \
|
---|
1112 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1113 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1114 | ;;
|
---|
1115 | *)
|
---|
1116 | sed -n \
|
---|
1117 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1118 | ;;
|
---|
1119 | esac;
|
---|
1120 | }
|
---|
1121 | echo
|
---|
1122 |
|
---|
1123 | cat <<\_ASBOX
|
---|
1124 | ## ----------------- ##
|
---|
1125 | ## Output variables. ##
|
---|
1126 | ## ----------------- ##
|
---|
1127 | _ASBOX
|
---|
1128 | echo
|
---|
1129 | for ac_var in $ac_subst_vars
|
---|
1130 | do
|
---|
1131 | eval ac_val=$`echo $ac_var`
|
---|
1132 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1133 | done | sort
|
---|
1134 | echo
|
---|
1135 |
|
---|
1136 | if test -n "$ac_subst_files"; then
|
---|
1137 | cat <<\_ASBOX
|
---|
1138 | ## ------------- ##
|
---|
1139 | ## Output files. ##
|
---|
1140 | ## ------------- ##
|
---|
1141 | _ASBOX
|
---|
1142 | echo
|
---|
1143 | for ac_var in $ac_subst_files
|
---|
1144 | do
|
---|
1145 | eval ac_val=$`echo $ac_var`
|
---|
1146 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1147 | done | sort
|
---|
1148 | echo
|
---|
1149 | fi
|
---|
1150 |
|
---|
1151 | if test -s confdefs.h; then
|
---|
1152 | cat <<\_ASBOX
|
---|
1153 | ## ----------- ##
|
---|
1154 | ## confdefs.h. ##
|
---|
1155 | ## ----------- ##
|
---|
1156 | _ASBOX
|
---|
1157 | echo
|
---|
1158 | sed "/^$/d" confdefs.h | sort
|
---|
1159 | echo
|
---|
1160 | fi
|
---|
1161 | test "$ac_signal" != 0 &&
|
---|
1162 | echo "$as_me: caught signal $ac_signal"
|
---|
1163 | echo "$as_me: exit $exit_status"
|
---|
1164 | } >&5
|
---|
1165 | rm -f core *.core &&
|
---|
1166 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1167 | exit $exit_status
|
---|
1168 | ' 0
|
---|
1169 | for ac_signal in 1 2 13 15; do
|
---|
1170 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1171 | done
|
---|
1172 | ac_signal=0
|
---|
1173 |
|
---|
1174 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1175 | rm -rf conftest* confdefs.h
|
---|
1176 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1177 | echo >confdefs.h
|
---|
1178 |
|
---|
1179 | # Predefined preprocessor variables.
|
---|
1180 |
|
---|
1181 | cat >>confdefs.h <<_ACEOF
|
---|
1182 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1183 | _ACEOF
|
---|
1184 |
|
---|
1185 |
|
---|
1186 | cat >>confdefs.h <<_ACEOF
|
---|
1187 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1188 | _ACEOF
|
---|
1189 |
|
---|
1190 |
|
---|
1191 | cat >>confdefs.h <<_ACEOF
|
---|
1192 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1193 | _ACEOF
|
---|
1194 |
|
---|
1195 |
|
---|
1196 | cat >>confdefs.h <<_ACEOF
|
---|
1197 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1198 | _ACEOF
|
---|
1199 |
|
---|
1200 |
|
---|
1201 | cat >>confdefs.h <<_ACEOF
|
---|
1202 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1203 | _ACEOF
|
---|
1204 |
|
---|
1205 |
|
---|
1206 | # Let the site file select an alternate cache file if it wants to.
|
---|
1207 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1208 | if test -z "$CONFIG_SITE"; then
|
---|
1209 | if test "x$prefix" != xNONE; then
|
---|
1210 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1211 | else
|
---|
1212 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1213 | fi
|
---|
1214 | fi
|
---|
1215 | for ac_site_file in $CONFIG_SITE; do
|
---|
1216 | if test -r "$ac_site_file"; then
|
---|
1217 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1218 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1219 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1220 | . "$ac_site_file"
|
---|
1221 | fi
|
---|
1222 | done
|
---|
1223 |
|
---|
1224 | if test -r "$cache_file"; then
|
---|
1225 | # Some versions of bash will fail to source /dev/null (special
|
---|
1226 | # files actually), so we avoid doing that.
|
---|
1227 | if test -f "$cache_file"; then
|
---|
1228 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1229 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1230 | case $cache_file in
|
---|
1231 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1232 | *) . ./$cache_file;;
|
---|
1233 | esac
|
---|
1234 | fi
|
---|
1235 | else
|
---|
1236 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1237 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1238 | >$cache_file
|
---|
1239 | fi
|
---|
1240 |
|
---|
1241 | # Check that the precious variables saved in the cache have kept the same
|
---|
1242 | # value.
|
---|
1243 | ac_cache_corrupted=false
|
---|
1244 | for ac_var in `(set) 2>&1 |
|
---|
1245 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1246 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1247 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1248 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1249 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1250 | case $ac_old_set,$ac_new_set in
|
---|
1251 | set,)
|
---|
1252 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1253 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1254 | ac_cache_corrupted=: ;;
|
---|
1255 | ,set)
|
---|
1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1257 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1258 | ac_cache_corrupted=: ;;
|
---|
1259 | ,);;
|
---|
1260 | *)
|
---|
1261 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1262 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1263 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1264 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1265 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1266 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1267 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1268 | ac_cache_corrupted=:
|
---|
1269 | fi;;
|
---|
1270 | esac
|
---|
1271 | # Pass precious variables to config.status.
|
---|
1272 | if test "$ac_new_set" = set; then
|
---|
1273 | case $ac_new_val in
|
---|
1274 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1275 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1276 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1277 | esac
|
---|
1278 | case " $ac_configure_args " in
|
---|
1279 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1280 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1281 | esac
|
---|
1282 | fi
|
---|
1283 | done
|
---|
1284 | if $ac_cache_corrupted; then
|
---|
1285 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1286 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1287 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1288 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1289 | { (exit 1); exit 1; }; }
|
---|
1290 | fi
|
---|
1291 |
|
---|
1292 | ac_ext=c
|
---|
1293 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1297 |
|
---|
1298 |
|
---|
1299 |
|
---|
1300 |
|
---|
1301 |
|
---|
1302 |
|
---|
1303 |
|
---|
1304 |
|
---|
1305 |
|
---|
1306 |
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 |
|
---|
1314 |
|
---|
1315 |
|
---|
1316 | ac_config_headers="$ac_config_headers config.h"
|
---|
1317 |
|
---|
1318 |
|
---|
1319 | PACKAGE=gsdl
|
---|
1320 | VERSION=2.1
|
---|
1321 | cat >>confdefs.h <<_ACEOF
|
---|
1322 | #define PACKAGE "$PACKAGE"
|
---|
1323 | _ACEOF
|
---|
1324 |
|
---|
1325 | cat >>confdefs.h <<_ACEOF
|
---|
1326 | #define VERSION "$VERSION"
|
---|
1327 | _ACEOF
|
---|
1328 |
|
---|
1329 |
|
---|
1330 |
|
---|
1331 |
|
---|
1332 |
|
---|
1333 | # Check whether --with-gdbm or --without-gdbm was given.
|
---|
1334 | if test "${with_gdbm+set}" = set; then
|
---|
1335 | withval="$with_gdbm"
|
---|
1336 | gdbmdir=$withval
|
---|
1337 | fi;
|
---|
1338 |
|
---|
1339 |
|
---|
1340 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
1341 | if test "${enable_accentfold+set}" = set; then
|
---|
1342 | enableval="$enable_accentfold"
|
---|
1343 | ENABLE_ACCENTFOLD=0
|
---|
1344 | else
|
---|
1345 | ENABLE_ACCENTFOLD=1
|
---|
1346 | fi;
|
---|
1347 | cat >>confdefs.h <<\_ACEOF
|
---|
1348 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
1349 | _ACEOF
|
---|
1350 |
|
---|
1351 |
|
---|
1352 |
|
---|
1353 |
|
---|
1354 | LDFLAGS=
|
---|
1355 | if test -z "$CFLAGS"; then
|
---|
1356 | CFLAGS=-O2
|
---|
1357 | fi
|
---|
1358 |
|
---|
1359 |
|
---|
1360 | ac_ext=c
|
---|
1361 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1365 | if test -n "$ac_tool_prefix"; then
|
---|
1366 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1367 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1368 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1370 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1372 | else
|
---|
1373 | if test -n "$CC"; then
|
---|
1374 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1375 | else
|
---|
1376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1377 | for as_dir in $PATH
|
---|
1378 | do
|
---|
1379 | IFS=$as_save_IFS
|
---|
1380 | test -z "$as_dir" && as_dir=.
|
---|
1381 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1383 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1385 | break 2
|
---|
1386 | fi
|
---|
1387 | done
|
---|
1388 | done
|
---|
1389 |
|
---|
1390 | fi
|
---|
1391 | fi
|
---|
1392 | CC=$ac_cv_prog_CC
|
---|
1393 | if test -n "$CC"; then
|
---|
1394 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1395 | echo "${ECHO_T}$CC" >&6
|
---|
1396 | else
|
---|
1397 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1398 | echo "${ECHO_T}no" >&6
|
---|
1399 | fi
|
---|
1400 |
|
---|
1401 | fi
|
---|
1402 | if test -z "$ac_cv_prog_CC"; then
|
---|
1403 | ac_ct_CC=$CC
|
---|
1404 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1405 | set dummy gcc; ac_word=$2
|
---|
1406 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1408 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1410 | else
|
---|
1411 | if test -n "$ac_ct_CC"; then
|
---|
1412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1413 | else
|
---|
1414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1415 | for as_dir in $PATH
|
---|
1416 | do
|
---|
1417 | IFS=$as_save_IFS
|
---|
1418 | test -z "$as_dir" && as_dir=.
|
---|
1419 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1421 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1423 | break 2
|
---|
1424 | fi
|
---|
1425 | done
|
---|
1426 | done
|
---|
1427 |
|
---|
1428 | fi
|
---|
1429 | fi
|
---|
1430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1431 | if test -n "$ac_ct_CC"; then
|
---|
1432 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1433 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1434 | else
|
---|
1435 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1436 | echo "${ECHO_T}no" >&6
|
---|
1437 | fi
|
---|
1438 |
|
---|
1439 | CC=$ac_ct_CC
|
---|
1440 | else
|
---|
1441 | CC="$ac_cv_prog_CC"
|
---|
1442 | fi
|
---|
1443 |
|
---|
1444 | if test -z "$CC"; then
|
---|
1445 | if test -n "$ac_tool_prefix"; then
|
---|
1446 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1447 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1450 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1452 | else
|
---|
1453 | if test -n "$CC"; then
|
---|
1454 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1455 | else
|
---|
1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1457 | for as_dir in $PATH
|
---|
1458 | do
|
---|
1459 | IFS=$as_save_IFS
|
---|
1460 | test -z "$as_dir" && as_dir=.
|
---|
1461 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1463 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1465 | break 2
|
---|
1466 | fi
|
---|
1467 | done
|
---|
1468 | done
|
---|
1469 |
|
---|
1470 | fi
|
---|
1471 | fi
|
---|
1472 | CC=$ac_cv_prog_CC
|
---|
1473 | if test -n "$CC"; then
|
---|
1474 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1475 | echo "${ECHO_T}$CC" >&6
|
---|
1476 | else
|
---|
1477 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1478 | echo "${ECHO_T}no" >&6
|
---|
1479 | fi
|
---|
1480 |
|
---|
1481 | fi
|
---|
1482 | if test -z "$ac_cv_prog_CC"; then
|
---|
1483 | ac_ct_CC=$CC
|
---|
1484 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1485 | set dummy cc; ac_word=$2
|
---|
1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1488 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1489 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1490 | else
|
---|
1491 | if test -n "$ac_ct_CC"; then
|
---|
1492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1493 | else
|
---|
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1495 | for as_dir in $PATH
|
---|
1496 | do
|
---|
1497 | IFS=$as_save_IFS
|
---|
1498 | test -z "$as_dir" && as_dir=.
|
---|
1499 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1501 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1503 | break 2
|
---|
1504 | fi
|
---|
1505 | done
|
---|
1506 | done
|
---|
1507 |
|
---|
1508 | fi
|
---|
1509 | fi
|
---|
1510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1511 | if test -n "$ac_ct_CC"; then
|
---|
1512 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1513 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1514 | else
|
---|
1515 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1516 | echo "${ECHO_T}no" >&6
|
---|
1517 | fi
|
---|
1518 |
|
---|
1519 | CC=$ac_ct_CC
|
---|
1520 | else
|
---|
1521 | CC="$ac_cv_prog_CC"
|
---|
1522 | fi
|
---|
1523 |
|
---|
1524 | fi
|
---|
1525 | if test -z "$CC"; then
|
---|
1526 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1527 | set dummy cc; ac_word=$2
|
---|
1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1530 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1531 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1532 | else
|
---|
1533 | if test -n "$CC"; then
|
---|
1534 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1535 | else
|
---|
1536 | ac_prog_rejected=no
|
---|
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1538 | for as_dir in $PATH
|
---|
1539 | do
|
---|
1540 | IFS=$as_save_IFS
|
---|
1541 | test -z "$as_dir" && as_dir=.
|
---|
1542 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1544 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1545 | ac_prog_rejected=yes
|
---|
1546 | continue
|
---|
1547 | fi
|
---|
1548 | ac_cv_prog_CC="cc"
|
---|
1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1550 | break 2
|
---|
1551 | fi
|
---|
1552 | done
|
---|
1553 | done
|
---|
1554 |
|
---|
1555 | if test $ac_prog_rejected = yes; then
|
---|
1556 | # We found a bogon in the path, so make sure we never use it.
|
---|
1557 | set dummy $ac_cv_prog_CC
|
---|
1558 | shift
|
---|
1559 | if test $# != 0; then
|
---|
1560 | # We chose a different compiler from the bogus one.
|
---|
1561 | # However, it has the same basename, so the bogon will be chosen
|
---|
1562 | # first if we set CC to just the basename; use the full file name.
|
---|
1563 | shift
|
---|
1564 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1565 | fi
|
---|
1566 | fi
|
---|
1567 | fi
|
---|
1568 | fi
|
---|
1569 | CC=$ac_cv_prog_CC
|
---|
1570 | if test -n "$CC"; then
|
---|
1571 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1572 | echo "${ECHO_T}$CC" >&6
|
---|
1573 | else
|
---|
1574 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1575 | echo "${ECHO_T}no" >&6
|
---|
1576 | fi
|
---|
1577 |
|
---|
1578 | fi
|
---|
1579 | if test -z "$CC"; then
|
---|
1580 | if test -n "$ac_tool_prefix"; then
|
---|
1581 | for ac_prog in cl
|
---|
1582 | do
|
---|
1583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1585 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1587 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1589 | else
|
---|
1590 | if test -n "$CC"; then
|
---|
1591 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1592 | else
|
---|
1593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1594 | for as_dir in $PATH
|
---|
1595 | do
|
---|
1596 | IFS=$as_save_IFS
|
---|
1597 | test -z "$as_dir" && as_dir=.
|
---|
1598 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1600 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1602 | break 2
|
---|
1603 | fi
|
---|
1604 | done
|
---|
1605 | done
|
---|
1606 |
|
---|
1607 | fi
|
---|
1608 | fi
|
---|
1609 | CC=$ac_cv_prog_CC
|
---|
1610 | if test -n "$CC"; then
|
---|
1611 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1612 | echo "${ECHO_T}$CC" >&6
|
---|
1613 | else
|
---|
1614 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1615 | echo "${ECHO_T}no" >&6
|
---|
1616 | fi
|
---|
1617 |
|
---|
1618 | test -n "$CC" && break
|
---|
1619 | done
|
---|
1620 | fi
|
---|
1621 | if test -z "$CC"; then
|
---|
1622 | ac_ct_CC=$CC
|
---|
1623 | for ac_prog in cl
|
---|
1624 | do
|
---|
1625 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1626 | set dummy $ac_prog; ac_word=$2
|
---|
1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1629 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1630 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1631 | else
|
---|
1632 | if test -n "$ac_ct_CC"; then
|
---|
1633 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1634 | else
|
---|
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1636 | for as_dir in $PATH
|
---|
1637 | do
|
---|
1638 | IFS=$as_save_IFS
|
---|
1639 | test -z "$as_dir" && as_dir=.
|
---|
1640 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1642 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1644 | break 2
|
---|
1645 | fi
|
---|
1646 | done
|
---|
1647 | done
|
---|
1648 |
|
---|
1649 | fi
|
---|
1650 | fi
|
---|
1651 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1652 | if test -n "$ac_ct_CC"; then
|
---|
1653 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1654 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1655 | else
|
---|
1656 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1657 | echo "${ECHO_T}no" >&6
|
---|
1658 | fi
|
---|
1659 |
|
---|
1660 | test -n "$ac_ct_CC" && break
|
---|
1661 | done
|
---|
1662 |
|
---|
1663 | CC=$ac_ct_CC
|
---|
1664 | fi
|
---|
1665 |
|
---|
1666 | fi
|
---|
1667 |
|
---|
1668 |
|
---|
1669 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1670 | See \`config.log' for more details." >&5
|
---|
1671 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1672 | See \`config.log' for more details." >&2;}
|
---|
1673 | { (exit 1); exit 1; }; }
|
---|
1674 |
|
---|
1675 | # Provide some information about the compiler.
|
---|
1676 | echo "$as_me:$LINENO:" \
|
---|
1677 | "checking for C compiler version" >&5
|
---|
1678 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1679 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1680 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1681 | ac_status=$?
|
---|
1682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1683 | (exit $ac_status); }
|
---|
1684 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1685 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1686 | ac_status=$?
|
---|
1687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1688 | (exit $ac_status); }
|
---|
1689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1690 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1691 | ac_status=$?
|
---|
1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1693 | (exit $ac_status); }
|
---|
1694 |
|
---|
1695 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1696 | /* confdefs.h. */
|
---|
1697 | _ACEOF
|
---|
1698 | cat confdefs.h >>conftest.$ac_ext
|
---|
1699 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1700 | /* end confdefs.h. */
|
---|
1701 |
|
---|
1702 | int
|
---|
1703 | main ()
|
---|
1704 | {
|
---|
1705 |
|
---|
1706 | ;
|
---|
1707 | return 0;
|
---|
1708 | }
|
---|
1709 | _ACEOF
|
---|
1710 | ac_clean_files_save=$ac_clean_files
|
---|
1711 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1712 | # Try to create an executable without -o first, disregard a.out.
|
---|
1713 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1714 | # of exeext.
|
---|
1715 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1716 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1717 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1718 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1719 | (eval $ac_link_default) 2>&5
|
---|
1720 | ac_status=$?
|
---|
1721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1722 | (exit $ac_status); }; then
|
---|
1723 | # Find the output, starting from the most likely. This scheme is
|
---|
1724 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1725 | # resort.
|
---|
1726 |
|
---|
1727 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1728 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1729 | ac_cv_exeext=
|
---|
1730 | # b.out is created by i960 compilers.
|
---|
1731 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1732 | do
|
---|
1733 | test -f "$ac_file" || continue
|
---|
1734 | case $ac_file in
|
---|
1735 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1736 | ;;
|
---|
1737 | conftest.$ac_ext )
|
---|
1738 | # This is the source file.
|
---|
1739 | ;;
|
---|
1740 | [ab].out )
|
---|
1741 | # We found the default executable, but exeext='' is most
|
---|
1742 | # certainly right.
|
---|
1743 | break;;
|
---|
1744 | *.* )
|
---|
1745 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1746 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1747 | # but it would be cool to find out if it's true. Does anybody
|
---|
1748 | # maintain Libtool? --akim.
|
---|
1749 | export ac_cv_exeext
|
---|
1750 | break;;
|
---|
1751 | * )
|
---|
1752 | break;;
|
---|
1753 | esac
|
---|
1754 | done
|
---|
1755 | else
|
---|
1756 | echo "$as_me: failed program was:" >&5
|
---|
1757 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1758 |
|
---|
1759 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1760 | See \`config.log' for more details." >&5
|
---|
1761 | echo "$as_me: error: C compiler cannot create executables
|
---|
1762 | See \`config.log' for more details." >&2;}
|
---|
1763 | { (exit 77); exit 77; }; }
|
---|
1764 | fi
|
---|
1765 |
|
---|
1766 | ac_exeext=$ac_cv_exeext
|
---|
1767 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1768 | echo "${ECHO_T}$ac_file" >&6
|
---|
1769 |
|
---|
1770 | # Check the compiler produces executables we can run. If not, either
|
---|
1771 | # the compiler is broken, or we cross compile.
|
---|
1772 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1773 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1774 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1775 | # If not cross compiling, check that we can run a simple program.
|
---|
1776 | if test "$cross_compiling" != yes; then
|
---|
1777 | if { ac_try='./$ac_file'
|
---|
1778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1779 | (eval $ac_try) 2>&5
|
---|
1780 | ac_status=$?
|
---|
1781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1782 | (exit $ac_status); }; }; then
|
---|
1783 | cross_compiling=no
|
---|
1784 | else
|
---|
1785 | if test "$cross_compiling" = maybe; then
|
---|
1786 | cross_compiling=yes
|
---|
1787 | else
|
---|
1788 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1789 | If you meant to cross compile, use \`--host'.
|
---|
1790 | See \`config.log' for more details." >&5
|
---|
1791 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1792 | If you meant to cross compile, use \`--host'.
|
---|
1793 | See \`config.log' for more details." >&2;}
|
---|
1794 | { (exit 1); exit 1; }; }
|
---|
1795 | fi
|
---|
1796 | fi
|
---|
1797 | fi
|
---|
1798 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1799 | echo "${ECHO_T}yes" >&6
|
---|
1800 |
|
---|
1801 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1802 | ac_clean_files=$ac_clean_files_save
|
---|
1803 | # Check the compiler produces executables we can run. If not, either
|
---|
1804 | # the compiler is broken, or we cross compile.
|
---|
1805 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1806 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1807 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
1808 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1809 |
|
---|
1810 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
1811 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
1812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
1813 | (eval $ac_link) 2>&5
|
---|
1814 | ac_status=$?
|
---|
1815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1816 | (exit $ac_status); }; then
|
---|
1817 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1818 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1819 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1820 | # `rm'.
|
---|
1821 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
1822 | test -f "$ac_file" || continue
|
---|
1823 | case $ac_file in
|
---|
1824 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
1825 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1826 | export ac_cv_exeext
|
---|
1827 | break;;
|
---|
1828 | * ) break;;
|
---|
1829 | esac
|
---|
1830 | done
|
---|
1831 | else
|
---|
1832 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
1833 | See \`config.log' for more details." >&5
|
---|
1834 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
1835 | See \`config.log' for more details." >&2;}
|
---|
1836 | { (exit 1); exit 1; }; }
|
---|
1837 | fi
|
---|
1838 |
|
---|
1839 | rm -f conftest$ac_cv_exeext
|
---|
1840 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
1841 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1842 |
|
---|
1843 | rm -f conftest.$ac_ext
|
---|
1844 | EXEEXT=$ac_cv_exeext
|
---|
1845 | ac_exeext=$EXEEXT
|
---|
1846 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
1847 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
1848 | if test "${ac_cv_objext+set}" = set; then
|
---|
1849 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1850 | else
|
---|
1851 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1852 | /* confdefs.h. */
|
---|
1853 | _ACEOF
|
---|
1854 | cat confdefs.h >>conftest.$ac_ext
|
---|
1855 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1856 | /* end confdefs.h. */
|
---|
1857 |
|
---|
1858 | int
|
---|
1859 | main ()
|
---|
1860 | {
|
---|
1861 |
|
---|
1862 | ;
|
---|
1863 | return 0;
|
---|
1864 | }
|
---|
1865 | _ACEOF
|
---|
1866 | rm -f conftest.o conftest.obj
|
---|
1867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1868 | (eval $ac_compile) 2>&5
|
---|
1869 | ac_status=$?
|
---|
1870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1871 | (exit $ac_status); }; then
|
---|
1872 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1873 | case $ac_file in
|
---|
1874 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
1875 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1876 | break;;
|
---|
1877 | esac
|
---|
1878 | done
|
---|
1879 | else
|
---|
1880 | echo "$as_me: failed program was:" >&5
|
---|
1881 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1882 |
|
---|
1883 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
1884 | See \`config.log' for more details." >&5
|
---|
1885 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
1886 | See \`config.log' for more details." >&2;}
|
---|
1887 | { (exit 1); exit 1; }; }
|
---|
1888 | fi
|
---|
1889 |
|
---|
1890 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1891 | fi
|
---|
1892 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
1893 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1894 | OBJEXT=$ac_cv_objext
|
---|
1895 | ac_objext=$OBJEXT
|
---|
1896 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
1897 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
1898 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
1899 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1900 | else
|
---|
1901 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1902 | /* confdefs.h. */
|
---|
1903 | _ACEOF
|
---|
1904 | cat confdefs.h >>conftest.$ac_ext
|
---|
1905 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1906 | /* end confdefs.h. */
|
---|
1907 |
|
---|
1908 | int
|
---|
1909 | main ()
|
---|
1910 | {
|
---|
1911 | #ifndef __GNUC__
|
---|
1912 | choke me
|
---|
1913 | #endif
|
---|
1914 |
|
---|
1915 | ;
|
---|
1916 | return 0;
|
---|
1917 | }
|
---|
1918 | _ACEOF
|
---|
1919 | rm -f conftest.$ac_objext
|
---|
1920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1921 | (eval $ac_compile) 2>conftest.er1
|
---|
1922 | ac_status=$?
|
---|
1923 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1924 | rm -f conftest.er1
|
---|
1925 | cat conftest.err >&5
|
---|
1926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1927 | (exit $ac_status); } &&
|
---|
1928 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
1929 | || test ! -s conftest.err'
|
---|
1930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1931 | (eval $ac_try) 2>&5
|
---|
1932 | ac_status=$?
|
---|
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1934 | (exit $ac_status); }; } &&
|
---|
1935 | { ac_try='test -s conftest.$ac_objext'
|
---|
1936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1937 | (eval $ac_try) 2>&5
|
---|
1938 | ac_status=$?
|
---|
1939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1940 | (exit $ac_status); }; }; then
|
---|
1941 | ac_compiler_gnu=yes
|
---|
1942 | else
|
---|
1943 | echo "$as_me: failed program was:" >&5
|
---|
1944 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1945 |
|
---|
1946 | ac_compiler_gnu=no
|
---|
1947 | fi
|
---|
1948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1949 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
1950 |
|
---|
1951 | fi
|
---|
1952 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
1953 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
1954 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
1955 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
1956 | ac_save_CFLAGS=$CFLAGS
|
---|
1957 | CFLAGS="-g"
|
---|
1958 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
1959 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
1960 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
1961 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1962 | else
|
---|
1963 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1964 | /* confdefs.h. */
|
---|
1965 | _ACEOF
|
---|
1966 | cat confdefs.h >>conftest.$ac_ext
|
---|
1967 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1968 | /* end confdefs.h. */
|
---|
1969 |
|
---|
1970 | int
|
---|
1971 | main ()
|
---|
1972 | {
|
---|
1973 |
|
---|
1974 | ;
|
---|
1975 | return 0;
|
---|
1976 | }
|
---|
1977 | _ACEOF
|
---|
1978 | rm -f conftest.$ac_objext
|
---|
1979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1980 | (eval $ac_compile) 2>conftest.er1
|
---|
1981 | ac_status=$?
|
---|
1982 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1983 | rm -f conftest.er1
|
---|
1984 | cat conftest.err >&5
|
---|
1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1986 | (exit $ac_status); } &&
|
---|
1987 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
1988 | || test ! -s conftest.err'
|
---|
1989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1990 | (eval $ac_try) 2>&5
|
---|
1991 | ac_status=$?
|
---|
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1993 | (exit $ac_status); }; } &&
|
---|
1994 | { ac_try='test -s conftest.$ac_objext'
|
---|
1995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1996 | (eval $ac_try) 2>&5
|
---|
1997 | ac_status=$?
|
---|
1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1999 | (exit $ac_status); }; }; then
|
---|
2000 | ac_cv_prog_cc_g=yes
|
---|
2001 | else
|
---|
2002 | echo "$as_me: failed program was:" >&5
|
---|
2003 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2004 |
|
---|
2005 | ac_cv_prog_cc_g=no
|
---|
2006 | fi
|
---|
2007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2008 | fi
|
---|
2009 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2010 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2011 | if test "$ac_test_CFLAGS" = set; then
|
---|
2012 | CFLAGS=$ac_save_CFLAGS
|
---|
2013 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2014 | if test "$GCC" = yes; then
|
---|
2015 | CFLAGS="-g -O2"
|
---|
2016 | else
|
---|
2017 | CFLAGS="-g"
|
---|
2018 | fi
|
---|
2019 | else
|
---|
2020 | if test "$GCC" = yes; then
|
---|
2021 | CFLAGS="-O2"
|
---|
2022 | else
|
---|
2023 | CFLAGS=
|
---|
2024 | fi
|
---|
2025 | fi
|
---|
2026 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2027 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2028 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2029 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2030 | else
|
---|
2031 | ac_cv_prog_cc_stdc=no
|
---|
2032 | ac_save_CC=$CC
|
---|
2033 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2034 | /* confdefs.h. */
|
---|
2035 | _ACEOF
|
---|
2036 | cat confdefs.h >>conftest.$ac_ext
|
---|
2037 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2038 | /* end confdefs.h. */
|
---|
2039 | #include <stdarg.h>
|
---|
2040 | #include <stdio.h>
|
---|
2041 | #include <sys/types.h>
|
---|
2042 | #include <sys/stat.h>
|
---|
2043 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2044 | struct buf { int x; };
|
---|
2045 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2046 | static char *e (p, i)
|
---|
2047 | char **p;
|
---|
2048 | int i;
|
---|
2049 | {
|
---|
2050 | return p[i];
|
---|
2051 | }
|
---|
2052 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2053 | {
|
---|
2054 | char *s;
|
---|
2055 | va_list v;
|
---|
2056 | va_start (v,p);
|
---|
2057 | s = g (p, va_arg (v,int));
|
---|
2058 | va_end (v);
|
---|
2059 | return s;
|
---|
2060 | }
|
---|
2061 |
|
---|
2062 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2063 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2064 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2065 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2066 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2067 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2068 | that's true only with -std1. */
|
---|
2069 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2070 |
|
---|
2071 | int test (int i, double x);
|
---|
2072 | struct s1 {int (*f) (int a);};
|
---|
2073 | struct s2 {int (*f) (double a);};
|
---|
2074 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2075 | int argc;
|
---|
2076 | char **argv;
|
---|
2077 | int
|
---|
2078 | main ()
|
---|
2079 | {
|
---|
2080 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2081 | ;
|
---|
2082 | return 0;
|
---|
2083 | }
|
---|
2084 | _ACEOF
|
---|
2085 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2086 | # breaks some systems' header files.
|
---|
2087 | # AIX -qlanglvl=ansi
|
---|
2088 | # Ultrix and OSF/1 -std1
|
---|
2089 | # HP-UX 10.20 and later -Ae
|
---|
2090 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2091 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2092 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2093 | do
|
---|
2094 | CC="$ac_save_CC $ac_arg"
|
---|
2095 | rm -f conftest.$ac_objext
|
---|
2096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2097 | (eval $ac_compile) 2>conftest.er1
|
---|
2098 | ac_status=$?
|
---|
2099 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2100 | rm -f conftest.er1
|
---|
2101 | cat conftest.err >&5
|
---|
2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2103 | (exit $ac_status); } &&
|
---|
2104 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2105 | || test ! -s conftest.err'
|
---|
2106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2107 | (eval $ac_try) 2>&5
|
---|
2108 | ac_status=$?
|
---|
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2110 | (exit $ac_status); }; } &&
|
---|
2111 | { ac_try='test -s conftest.$ac_objext'
|
---|
2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2113 | (eval $ac_try) 2>&5
|
---|
2114 | ac_status=$?
|
---|
2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2116 | (exit $ac_status); }; }; then
|
---|
2117 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2118 | break
|
---|
2119 | else
|
---|
2120 | echo "$as_me: failed program was:" >&5
|
---|
2121 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2122 |
|
---|
2123 | fi
|
---|
2124 | rm -f conftest.err conftest.$ac_objext
|
---|
2125 | done
|
---|
2126 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2127 | CC=$ac_save_CC
|
---|
2128 |
|
---|
2129 | fi
|
---|
2130 |
|
---|
2131 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2132 | x|xno)
|
---|
2133 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2134 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2135 | *)
|
---|
2136 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2137 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2138 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2139 | esac
|
---|
2140 |
|
---|
2141 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2142 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2143 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2144 | # the declaration of exit, since it's the most demanding environment.
|
---|
2145 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2146 | #ifndef __cplusplus
|
---|
2147 | choke me
|
---|
2148 | #endif
|
---|
2149 | _ACEOF
|
---|
2150 | rm -f conftest.$ac_objext
|
---|
2151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2152 | (eval $ac_compile) 2>conftest.er1
|
---|
2153 | ac_status=$?
|
---|
2154 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2155 | rm -f conftest.er1
|
---|
2156 | cat conftest.err >&5
|
---|
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2158 | (exit $ac_status); } &&
|
---|
2159 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2160 | || test ! -s conftest.err'
|
---|
2161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2162 | (eval $ac_try) 2>&5
|
---|
2163 | ac_status=$?
|
---|
2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2165 | (exit $ac_status); }; } &&
|
---|
2166 | { ac_try='test -s conftest.$ac_objext'
|
---|
2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2168 | (eval $ac_try) 2>&5
|
---|
2169 | ac_status=$?
|
---|
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2171 | (exit $ac_status); }; }; then
|
---|
2172 | for ac_declaration in \
|
---|
2173 | '' \
|
---|
2174 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2175 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2176 | 'extern "C" void exit (int) throw ();' \
|
---|
2177 | 'extern "C" void exit (int);' \
|
---|
2178 | 'void exit (int);'
|
---|
2179 | do
|
---|
2180 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2181 | /* confdefs.h. */
|
---|
2182 | _ACEOF
|
---|
2183 | cat confdefs.h >>conftest.$ac_ext
|
---|
2184 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2185 | /* end confdefs.h. */
|
---|
2186 | $ac_declaration
|
---|
2187 | #include <stdlib.h>
|
---|
2188 | int
|
---|
2189 | main ()
|
---|
2190 | {
|
---|
2191 | exit (42);
|
---|
2192 | ;
|
---|
2193 | return 0;
|
---|
2194 | }
|
---|
2195 | _ACEOF
|
---|
2196 | rm -f conftest.$ac_objext
|
---|
2197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2198 | (eval $ac_compile) 2>conftest.er1
|
---|
2199 | ac_status=$?
|
---|
2200 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2201 | rm -f conftest.er1
|
---|
2202 | cat conftest.err >&5
|
---|
2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2204 | (exit $ac_status); } &&
|
---|
2205 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2206 | || test ! -s conftest.err'
|
---|
2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2208 | (eval $ac_try) 2>&5
|
---|
2209 | ac_status=$?
|
---|
2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2211 | (exit $ac_status); }; } &&
|
---|
2212 | { ac_try='test -s conftest.$ac_objext'
|
---|
2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2214 | (eval $ac_try) 2>&5
|
---|
2215 | ac_status=$?
|
---|
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2217 | (exit $ac_status); }; }; then
|
---|
2218 | :
|
---|
2219 | else
|
---|
2220 | echo "$as_me: failed program was:" >&5
|
---|
2221 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2222 |
|
---|
2223 | continue
|
---|
2224 | fi
|
---|
2225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2226 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2227 | /* confdefs.h. */
|
---|
2228 | _ACEOF
|
---|
2229 | cat confdefs.h >>conftest.$ac_ext
|
---|
2230 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2231 | /* end confdefs.h. */
|
---|
2232 | $ac_declaration
|
---|
2233 | int
|
---|
2234 | main ()
|
---|
2235 | {
|
---|
2236 | exit (42);
|
---|
2237 | ;
|
---|
2238 | return 0;
|
---|
2239 | }
|
---|
2240 | _ACEOF
|
---|
2241 | rm -f conftest.$ac_objext
|
---|
2242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2243 | (eval $ac_compile) 2>conftest.er1
|
---|
2244 | ac_status=$?
|
---|
2245 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2246 | rm -f conftest.er1
|
---|
2247 | cat conftest.err >&5
|
---|
2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2249 | (exit $ac_status); } &&
|
---|
2250 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2251 | || test ! -s conftest.err'
|
---|
2252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2253 | (eval $ac_try) 2>&5
|
---|
2254 | ac_status=$?
|
---|
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2256 | (exit $ac_status); }; } &&
|
---|
2257 | { ac_try='test -s conftest.$ac_objext'
|
---|
2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2259 | (eval $ac_try) 2>&5
|
---|
2260 | ac_status=$?
|
---|
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2262 | (exit $ac_status); }; }; then
|
---|
2263 | break
|
---|
2264 | else
|
---|
2265 | echo "$as_me: failed program was:" >&5
|
---|
2266 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2267 |
|
---|
2268 | fi
|
---|
2269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2270 | done
|
---|
2271 | rm -f conftest*
|
---|
2272 | if test -n "$ac_declaration"; then
|
---|
2273 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2274 | echo $ac_declaration >>confdefs.h
|
---|
2275 | echo '#endif' >>confdefs.h
|
---|
2276 | fi
|
---|
2277 |
|
---|
2278 | else
|
---|
2279 | echo "$as_me: failed program was:" >&5
|
---|
2280 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2281 |
|
---|
2282 | fi
|
---|
2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2284 | ac_ext=c
|
---|
2285 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2289 |
|
---|
2290 | ac_ext=cc
|
---|
2291 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2292 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2293 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2294 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2295 | if test -n "$ac_tool_prefix"; then
|
---|
2296 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2297 | do
|
---|
2298 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2299 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2300 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2302 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2303 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2304 | else
|
---|
2305 | if test -n "$CXX"; then
|
---|
2306 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2307 | else
|
---|
2308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2309 | for as_dir in $PATH
|
---|
2310 | do
|
---|
2311 | IFS=$as_save_IFS
|
---|
2312 | test -z "$as_dir" && as_dir=.
|
---|
2313 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2315 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2317 | break 2
|
---|
2318 | fi
|
---|
2319 | done
|
---|
2320 | done
|
---|
2321 |
|
---|
2322 | fi
|
---|
2323 | fi
|
---|
2324 | CXX=$ac_cv_prog_CXX
|
---|
2325 | if test -n "$CXX"; then
|
---|
2326 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2327 | echo "${ECHO_T}$CXX" >&6
|
---|
2328 | else
|
---|
2329 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2330 | echo "${ECHO_T}no" >&6
|
---|
2331 | fi
|
---|
2332 |
|
---|
2333 | test -n "$CXX" && break
|
---|
2334 | done
|
---|
2335 | fi
|
---|
2336 | if test -z "$CXX"; then
|
---|
2337 | ac_ct_CXX=$CXX
|
---|
2338 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2339 | do
|
---|
2340 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2341 | set dummy $ac_prog; ac_word=$2
|
---|
2342 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2344 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2345 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2346 | else
|
---|
2347 | if test -n "$ac_ct_CXX"; then
|
---|
2348 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2349 | else
|
---|
2350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2351 | for as_dir in $PATH
|
---|
2352 | do
|
---|
2353 | IFS=$as_save_IFS
|
---|
2354 | test -z "$as_dir" && as_dir=.
|
---|
2355 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2357 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2359 | break 2
|
---|
2360 | fi
|
---|
2361 | done
|
---|
2362 | done
|
---|
2363 |
|
---|
2364 | fi
|
---|
2365 | fi
|
---|
2366 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2367 | if test -n "$ac_ct_CXX"; then
|
---|
2368 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2369 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
2370 | else
|
---|
2371 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2372 | echo "${ECHO_T}no" >&6
|
---|
2373 | fi
|
---|
2374 |
|
---|
2375 | test -n "$ac_ct_CXX" && break
|
---|
2376 | done
|
---|
2377 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
2378 |
|
---|
2379 | CXX=$ac_ct_CXX
|
---|
2380 | fi
|
---|
2381 |
|
---|
2382 |
|
---|
2383 | # Provide some information about the compiler.
|
---|
2384 | echo "$as_me:$LINENO:" \
|
---|
2385 | "checking for C++ compiler version" >&5
|
---|
2386 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2387 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2388 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2389 | ac_status=$?
|
---|
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2391 | (exit $ac_status); }
|
---|
2392 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2393 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2394 | ac_status=$?
|
---|
2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2396 | (exit $ac_status); }
|
---|
2397 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2398 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2399 | ac_status=$?
|
---|
2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2401 | (exit $ac_status); }
|
---|
2402 |
|
---|
2403 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2404 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
2405 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2406 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2407 | else
|
---|
2408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2409 | /* confdefs.h. */
|
---|
2410 | _ACEOF
|
---|
2411 | cat confdefs.h >>conftest.$ac_ext
|
---|
2412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2413 | /* end confdefs.h. */
|
---|
2414 |
|
---|
2415 | int
|
---|
2416 | main ()
|
---|
2417 | {
|
---|
2418 | #ifndef __GNUC__
|
---|
2419 | choke me
|
---|
2420 | #endif
|
---|
2421 |
|
---|
2422 | ;
|
---|
2423 | return 0;
|
---|
2424 | }
|
---|
2425 | _ACEOF
|
---|
2426 | rm -f conftest.$ac_objext
|
---|
2427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2428 | (eval $ac_compile) 2>conftest.er1
|
---|
2429 | ac_status=$?
|
---|
2430 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2431 | rm -f conftest.er1
|
---|
2432 | cat conftest.err >&5
|
---|
2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2434 | (exit $ac_status); } &&
|
---|
2435 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2436 | || test ! -s conftest.err'
|
---|
2437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2438 | (eval $ac_try) 2>&5
|
---|
2439 | ac_status=$?
|
---|
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2441 | (exit $ac_status); }; } &&
|
---|
2442 | { ac_try='test -s conftest.$ac_objext'
|
---|
2443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2444 | (eval $ac_try) 2>&5
|
---|
2445 | ac_status=$?
|
---|
2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2447 | (exit $ac_status); }; }; then
|
---|
2448 | ac_compiler_gnu=yes
|
---|
2449 | else
|
---|
2450 | echo "$as_me: failed program was:" >&5
|
---|
2451 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2452 |
|
---|
2453 | ac_compiler_gnu=no
|
---|
2454 | fi
|
---|
2455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2456 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2457 |
|
---|
2458 | fi
|
---|
2459 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2460 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
2461 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2462 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2463 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2464 | CXXFLAGS="-g"
|
---|
2465 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2466 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
2467 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2468 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2469 | else
|
---|
2470 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2471 | /* confdefs.h. */
|
---|
2472 | _ACEOF
|
---|
2473 | cat confdefs.h >>conftest.$ac_ext
|
---|
2474 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2475 | /* end confdefs.h. */
|
---|
2476 |
|
---|
2477 | int
|
---|
2478 | main ()
|
---|
2479 | {
|
---|
2480 |
|
---|
2481 | ;
|
---|
2482 | return 0;
|
---|
2483 | }
|
---|
2484 | _ACEOF
|
---|
2485 | rm -f conftest.$ac_objext
|
---|
2486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2487 | (eval $ac_compile) 2>conftest.er1
|
---|
2488 | ac_status=$?
|
---|
2489 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2490 | rm -f conftest.er1
|
---|
2491 | cat conftest.err >&5
|
---|
2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2493 | (exit $ac_status); } &&
|
---|
2494 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2495 | || test ! -s conftest.err'
|
---|
2496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2497 | (eval $ac_try) 2>&5
|
---|
2498 | ac_status=$?
|
---|
2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2500 | (exit $ac_status); }; } &&
|
---|
2501 | { ac_try='test -s conftest.$ac_objext'
|
---|
2502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2503 | (eval $ac_try) 2>&5
|
---|
2504 | ac_status=$?
|
---|
2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2506 | (exit $ac_status); }; }; then
|
---|
2507 | ac_cv_prog_cxx_g=yes
|
---|
2508 | else
|
---|
2509 | echo "$as_me: failed program was:" >&5
|
---|
2510 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2511 |
|
---|
2512 | ac_cv_prog_cxx_g=no
|
---|
2513 | fi
|
---|
2514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2515 | fi
|
---|
2516 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2517 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
2518 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2519 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2520 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2521 | if test "$GXX" = yes; then
|
---|
2522 | CXXFLAGS="-g -O2"
|
---|
2523 | else
|
---|
2524 | CXXFLAGS="-g"
|
---|
2525 | fi
|
---|
2526 | else
|
---|
2527 | if test "$GXX" = yes; then
|
---|
2528 | CXXFLAGS="-O2"
|
---|
2529 | else
|
---|
2530 | CXXFLAGS=
|
---|
2531 | fi
|
---|
2532 | fi
|
---|
2533 | for ac_declaration in \
|
---|
2534 | '' \
|
---|
2535 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2536 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2537 | 'extern "C" void exit (int) throw ();' \
|
---|
2538 | 'extern "C" void exit (int);' \
|
---|
2539 | 'void exit (int);'
|
---|
2540 | do
|
---|
2541 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2542 | /* confdefs.h. */
|
---|
2543 | _ACEOF
|
---|
2544 | cat confdefs.h >>conftest.$ac_ext
|
---|
2545 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2546 | /* end confdefs.h. */
|
---|
2547 | $ac_declaration
|
---|
2548 | #include <stdlib.h>
|
---|
2549 | int
|
---|
2550 | main ()
|
---|
2551 | {
|
---|
2552 | exit (42);
|
---|
2553 | ;
|
---|
2554 | return 0;
|
---|
2555 | }
|
---|
2556 | _ACEOF
|
---|
2557 | rm -f conftest.$ac_objext
|
---|
2558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2559 | (eval $ac_compile) 2>conftest.er1
|
---|
2560 | ac_status=$?
|
---|
2561 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2562 | rm -f conftest.er1
|
---|
2563 | cat conftest.err >&5
|
---|
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2565 | (exit $ac_status); } &&
|
---|
2566 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2567 | || test ! -s conftest.err'
|
---|
2568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2569 | (eval $ac_try) 2>&5
|
---|
2570 | ac_status=$?
|
---|
2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2572 | (exit $ac_status); }; } &&
|
---|
2573 | { ac_try='test -s conftest.$ac_objext'
|
---|
2574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2575 | (eval $ac_try) 2>&5
|
---|
2576 | ac_status=$?
|
---|
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2578 | (exit $ac_status); }; }; then
|
---|
2579 | :
|
---|
2580 | else
|
---|
2581 | echo "$as_me: failed program was:" >&5
|
---|
2582 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2583 |
|
---|
2584 | continue
|
---|
2585 | fi
|
---|
2586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2587 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2588 | /* confdefs.h. */
|
---|
2589 | _ACEOF
|
---|
2590 | cat confdefs.h >>conftest.$ac_ext
|
---|
2591 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2592 | /* end confdefs.h. */
|
---|
2593 | $ac_declaration
|
---|
2594 | int
|
---|
2595 | main ()
|
---|
2596 | {
|
---|
2597 | exit (42);
|
---|
2598 | ;
|
---|
2599 | return 0;
|
---|
2600 | }
|
---|
2601 | _ACEOF
|
---|
2602 | rm -f conftest.$ac_objext
|
---|
2603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2604 | (eval $ac_compile) 2>conftest.er1
|
---|
2605 | ac_status=$?
|
---|
2606 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2607 | rm -f conftest.er1
|
---|
2608 | cat conftest.err >&5
|
---|
2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2610 | (exit $ac_status); } &&
|
---|
2611 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2612 | || test ! -s conftest.err'
|
---|
2613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2614 | (eval $ac_try) 2>&5
|
---|
2615 | ac_status=$?
|
---|
2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2617 | (exit $ac_status); }; } &&
|
---|
2618 | { ac_try='test -s conftest.$ac_objext'
|
---|
2619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2620 | (eval $ac_try) 2>&5
|
---|
2621 | ac_status=$?
|
---|
2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2623 | (exit $ac_status); }; }; then
|
---|
2624 | break
|
---|
2625 | else
|
---|
2626 | echo "$as_me: failed program was:" >&5
|
---|
2627 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2628 |
|
---|
2629 | fi
|
---|
2630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2631 | done
|
---|
2632 | rm -f conftest*
|
---|
2633 | if test -n "$ac_declaration"; then
|
---|
2634 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2635 | echo $ac_declaration >>confdefs.h
|
---|
2636 | echo '#endif' >>confdefs.h
|
---|
2637 | fi
|
---|
2638 |
|
---|
2639 | ac_ext=c
|
---|
2640 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2644 |
|
---|
2645 | for ac_prog in gawk mawk nawk awk
|
---|
2646 | do
|
---|
2647 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2648 | set dummy $ac_prog; ac_word=$2
|
---|
2649 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2651 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
2652 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2653 | else
|
---|
2654 | if test -n "$AWK"; then
|
---|
2655 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2656 | else
|
---|
2657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2658 | for as_dir in $PATH
|
---|
2659 | do
|
---|
2660 | IFS=$as_save_IFS
|
---|
2661 | test -z "$as_dir" && as_dir=.
|
---|
2662 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2664 | ac_cv_prog_AWK="$ac_prog"
|
---|
2665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2666 | break 2
|
---|
2667 | fi
|
---|
2668 | done
|
---|
2669 | done
|
---|
2670 |
|
---|
2671 | fi
|
---|
2672 | fi
|
---|
2673 | AWK=$ac_cv_prog_AWK
|
---|
2674 | if test -n "$AWK"; then
|
---|
2675 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
2676 | echo "${ECHO_T}$AWK" >&6
|
---|
2677 | else
|
---|
2678 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2679 | echo "${ECHO_T}no" >&6
|
---|
2680 | fi
|
---|
2681 |
|
---|
2682 | test -n "$AWK" && break
|
---|
2683 | done
|
---|
2684 |
|
---|
2685 | for ac_prog in 'bison -y' byacc
|
---|
2686 | do
|
---|
2687 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2688 | set dummy $ac_prog; ac_word=$2
|
---|
2689 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2691 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
2692 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2693 | else
|
---|
2694 | if test -n "$YACC"; then
|
---|
2695 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
2696 | else
|
---|
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2698 | for as_dir in $PATH
|
---|
2699 | do
|
---|
2700 | IFS=$as_save_IFS
|
---|
2701 | test -z "$as_dir" && as_dir=.
|
---|
2702 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2704 | ac_cv_prog_YACC="$ac_prog"
|
---|
2705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2706 | break 2
|
---|
2707 | fi
|
---|
2708 | done
|
---|
2709 | done
|
---|
2710 |
|
---|
2711 | fi
|
---|
2712 | fi
|
---|
2713 | YACC=$ac_cv_prog_YACC
|
---|
2714 | if test -n "$YACC"; then
|
---|
2715 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
2716 | echo "${ECHO_T}$YACC" >&6
|
---|
2717 | else
|
---|
2718 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2719 | echo "${ECHO_T}no" >&6
|
---|
2720 | fi
|
---|
2721 |
|
---|
2722 | test -n "$YACC" && break
|
---|
2723 | done
|
---|
2724 | test -n "$YACC" || YACC="yacc"
|
---|
2725 |
|
---|
2726 | ac_aux_dir=
|
---|
2727 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2728 | if test -f $ac_dir/install-sh; then
|
---|
2729 | ac_aux_dir=$ac_dir
|
---|
2730 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2731 | break
|
---|
2732 | elif test -f $ac_dir/install.sh; then
|
---|
2733 | ac_aux_dir=$ac_dir
|
---|
2734 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2735 | break
|
---|
2736 | elif test -f $ac_dir/shtool; then
|
---|
2737 | ac_aux_dir=$ac_dir
|
---|
2738 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2739 | break
|
---|
2740 | fi
|
---|
2741 | done
|
---|
2742 | if test -z "$ac_aux_dir"; then
|
---|
2743 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2744 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2745 | { (exit 1); exit 1; }; }
|
---|
2746 | fi
|
---|
2747 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2748 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2749 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2750 |
|
---|
2751 | # Make sure we can run config.sub.
|
---|
2752 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
2753 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
2754 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
2755 | { (exit 1); exit 1; }; }
|
---|
2756 |
|
---|
2757 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
2758 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
2759 | if test "${ac_cv_build+set}" = set; then
|
---|
2760 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2761 | else
|
---|
2762 | ac_cv_build_alias=$build_alias
|
---|
2763 | test -z "$ac_cv_build_alias" &&
|
---|
2764 | ac_cv_build_alias=`$ac_config_guess`
|
---|
2765 | test -z "$ac_cv_build_alias" &&
|
---|
2766 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
2767 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
2768 | { (exit 1); exit 1; }; }
|
---|
2769 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
2770 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
2771 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
2772 | { (exit 1); exit 1; }; }
|
---|
2773 |
|
---|
2774 | fi
|
---|
2775 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
2776 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
2777 | build=$ac_cv_build
|
---|
2778 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2779 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2780 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2781 |
|
---|
2782 |
|
---|
2783 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
2784 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
2785 | if test "${ac_cv_host+set}" = set; then
|
---|
2786 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2787 | else
|
---|
2788 | ac_cv_host_alias=$host_alias
|
---|
2789 | test -z "$ac_cv_host_alias" &&
|
---|
2790 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
2791 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
2792 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
2793 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
2794 | { (exit 1); exit 1; }; }
|
---|
2795 |
|
---|
2796 | fi
|
---|
2797 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
2798 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
2799 | host=$ac_cv_host
|
---|
2800 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2801 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2802 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2803 |
|
---|
2804 |
|
---|
2805 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
2806 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
2807 | if test "${ac_cv_target+set}" = set; then
|
---|
2808 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2809 | else
|
---|
2810 | ac_cv_target_alias=$target_alias
|
---|
2811 | test "x$ac_cv_target_alias" = "x" &&
|
---|
2812 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
2813 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
2814 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
2815 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
2816 | { (exit 1); exit 1; }; }
|
---|
2817 |
|
---|
2818 | fi
|
---|
2819 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
2820 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
2821 | target=$ac_cv_target
|
---|
2822 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2823 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2824 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2825 |
|
---|
2826 |
|
---|
2827 | # The aliases save the names the user supplied, while $host etc.
|
---|
2828 | # will get canonicalized.
|
---|
2829 | test -n "$target_alias" &&
|
---|
2830 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2831 | NONENONEs,x,x, &&
|
---|
2832 | program_prefix=${target_alias}-
|
---|
2833 | # Find a good install program. We prefer a C program (faster),
|
---|
2834 | # so one script is as good as another. But avoid the broken or
|
---|
2835 | # incompatible versions:
|
---|
2836 | # SysV /etc/install, /usr/sbin/install
|
---|
2837 | # SunOS /usr/etc/install
|
---|
2838 | # IRIX /sbin/install
|
---|
2839 | # AIX /bin/install
|
---|
2840 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2841 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2842 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2843 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2844 | # OS/2's system install, which has a completely different semantic
|
---|
2845 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2846 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2847 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2848 | if test -z "$INSTALL"; then
|
---|
2849 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2850 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2851 | else
|
---|
2852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2853 | for as_dir in $PATH
|
---|
2854 | do
|
---|
2855 | IFS=$as_save_IFS
|
---|
2856 | test -z "$as_dir" && as_dir=.
|
---|
2857 | # Account for people who put trailing slashes in PATH elements.
|
---|
2858 | case $as_dir/ in
|
---|
2859 | ./ | .// | /cC/* | \
|
---|
2860 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2861 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2862 | /usr/ucb/* ) ;;
|
---|
2863 | *)
|
---|
2864 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2865 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2866 | # by default.
|
---|
2867 | for ac_prog in ginstall scoinst install; do
|
---|
2868 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2869 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2870 | if test $ac_prog = install &&
|
---|
2871 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2872 | # AIX install. It has an incompatible calling convention.
|
---|
2873 | :
|
---|
2874 | elif test $ac_prog = install &&
|
---|
2875 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2876 | # program-specific install script used by HP pwplus--don't use.
|
---|
2877 | :
|
---|
2878 | else
|
---|
2879 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2880 | break 3
|
---|
2881 | fi
|
---|
2882 | fi
|
---|
2883 | done
|
---|
2884 | done
|
---|
2885 | ;;
|
---|
2886 | esac
|
---|
2887 | done
|
---|
2888 |
|
---|
2889 |
|
---|
2890 | fi
|
---|
2891 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2892 | INSTALL=$ac_cv_path_install
|
---|
2893 | else
|
---|
2894 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2895 | # path for INSTALL within a source directory, because that will
|
---|
2896 | # break other packages using the cache if that directory is
|
---|
2897 | # removed, or if the path is relative.
|
---|
2898 | INSTALL=$ac_install_sh
|
---|
2899 | fi
|
---|
2900 | fi
|
---|
2901 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2902 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2903 |
|
---|
2904 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2905 | # It thinks the first close brace ends the variable substitution.
|
---|
2906 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2907 |
|
---|
2908 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2909 |
|
---|
2910 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2911 |
|
---|
2912 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
2913 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
2914 | LN_S=$as_ln_s
|
---|
2915 | if test "$LN_S" = "ln -s"; then
|
---|
2916 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
2917 | echo "${ECHO_T}yes" >&6
|
---|
2918 | else
|
---|
2919 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
2920 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
2921 | fi
|
---|
2922 |
|
---|
2923 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
2924 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
2925 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
2926 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
2927 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2928 | else
|
---|
2929 | cat >conftest.make <<\_ACEOF
|
---|
2930 | all:
|
---|
2931 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
2932 | _ACEOF
|
---|
2933 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
2934 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
2935 | if test -n "$ac_maketemp"; then
|
---|
2936 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
2937 | else
|
---|
2938 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
2939 | fi
|
---|
2940 | rm -f conftest.make
|
---|
2941 | fi
|
---|
2942 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
2943 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
2944 | echo "${ECHO_T}yes" >&6
|
---|
2945 | SET_MAKE=
|
---|
2946 | else
|
---|
2947 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2948 | echo "${ECHO_T}no" >&6
|
---|
2949 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
2950 | fi
|
---|
2951 |
|
---|
2952 | if test -n "$ac_tool_prefix"; then
|
---|
2953 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2954 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2955 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2956 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2957 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
2958 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2959 | else
|
---|
2960 | if test -n "$RANLIB"; then
|
---|
2961 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2962 | else
|
---|
2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2964 | for as_dir in $PATH
|
---|
2965 | do
|
---|
2966 | IFS=$as_save_IFS
|
---|
2967 | test -z "$as_dir" && as_dir=.
|
---|
2968 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2969 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2970 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2971 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2972 | break 2
|
---|
2973 | fi
|
---|
2974 | done
|
---|
2975 | done
|
---|
2976 |
|
---|
2977 | fi
|
---|
2978 | fi
|
---|
2979 | RANLIB=$ac_cv_prog_RANLIB
|
---|
2980 | if test -n "$RANLIB"; then
|
---|
2981 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
2982 | echo "${ECHO_T}$RANLIB" >&6
|
---|
2983 | else
|
---|
2984 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2985 | echo "${ECHO_T}no" >&6
|
---|
2986 | fi
|
---|
2987 |
|
---|
2988 | fi
|
---|
2989 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2990 | ac_ct_RANLIB=$RANLIB
|
---|
2991 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2992 | set dummy ranlib; ac_word=$2
|
---|
2993 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2995 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
2996 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2997 | else
|
---|
2998 | if test -n "$ac_ct_RANLIB"; then
|
---|
2999 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3000 | else
|
---|
3001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3002 | for as_dir in $PATH
|
---|
3003 | do
|
---|
3004 | IFS=$as_save_IFS
|
---|
3005 | test -z "$as_dir" && as_dir=.
|
---|
3006 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3008 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3010 | break 2
|
---|
3011 | fi
|
---|
3012 | done
|
---|
3013 | done
|
---|
3014 |
|
---|
3015 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
3016 | fi
|
---|
3017 | fi
|
---|
3018 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3019 | if test -n "$ac_ct_RANLIB"; then
|
---|
3020 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3021 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
3022 | else
|
---|
3023 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3024 | echo "${ECHO_T}no" >&6
|
---|
3025 | fi
|
---|
3026 |
|
---|
3027 | RANLIB=$ac_ct_RANLIB
|
---|
3028 | else
|
---|
3029 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3030 | fi
|
---|
3031 |
|
---|
3032 |
|
---|
3033 |
|
---|
3034 | ac_ext=c
|
---|
3035 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3039 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3040 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
3041 | # On Suns, sometimes $CPP names a directory.
|
---|
3042 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3043 | CPP=
|
---|
3044 | fi
|
---|
3045 | if test -z "$CPP"; then
|
---|
3046 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3047 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3048 | else
|
---|
3049 | # Double quotes because CPP needs to be expanded
|
---|
3050 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3051 | do
|
---|
3052 | ac_preproc_ok=false
|
---|
3053 | for ac_c_preproc_warn_flag in '' yes
|
---|
3054 | do
|
---|
3055 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3056 | # with a fresh cross-compiler works.
|
---|
3057 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3058 | # <limits.h> exists even on freestanding compilers.
|
---|
3059 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3060 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3061 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3062 | /* confdefs.h. */
|
---|
3063 | _ACEOF
|
---|
3064 | cat confdefs.h >>conftest.$ac_ext
|
---|
3065 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3066 | /* end confdefs.h. */
|
---|
3067 | #ifdef __STDC__
|
---|
3068 | # include <limits.h>
|
---|
3069 | #else
|
---|
3070 | # include <assert.h>
|
---|
3071 | #endif
|
---|
3072 | Syntax error
|
---|
3073 | _ACEOF
|
---|
3074 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3075 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3076 | ac_status=$?
|
---|
3077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3078 | rm -f conftest.er1
|
---|
3079 | cat conftest.err >&5
|
---|
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3081 | (exit $ac_status); } >/dev/null; then
|
---|
3082 | if test -s conftest.err; then
|
---|
3083 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3085 | else
|
---|
3086 | ac_cpp_err=
|
---|
3087 | fi
|
---|
3088 | else
|
---|
3089 | ac_cpp_err=yes
|
---|
3090 | fi
|
---|
3091 | if test -z "$ac_cpp_err"; then
|
---|
3092 | :
|
---|
3093 | else
|
---|
3094 | echo "$as_me: failed program was:" >&5
|
---|
3095 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3096 |
|
---|
3097 | # Broken: fails on valid input.
|
---|
3098 | continue
|
---|
3099 | fi
|
---|
3100 | rm -f conftest.err conftest.$ac_ext
|
---|
3101 |
|
---|
3102 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3103 | # can be detected and how.
|
---|
3104 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3105 | /* confdefs.h. */
|
---|
3106 | _ACEOF
|
---|
3107 | cat confdefs.h >>conftest.$ac_ext
|
---|
3108 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3109 | /* end confdefs.h. */
|
---|
3110 | #include <ac_nonexistent.h>
|
---|
3111 | _ACEOF
|
---|
3112 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3114 | ac_status=$?
|
---|
3115 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3116 | rm -f conftest.er1
|
---|
3117 | cat conftest.err >&5
|
---|
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3119 | (exit $ac_status); } >/dev/null; then
|
---|
3120 | if test -s conftest.err; then
|
---|
3121 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3122 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3123 | else
|
---|
3124 | ac_cpp_err=
|
---|
3125 | fi
|
---|
3126 | else
|
---|
3127 | ac_cpp_err=yes
|
---|
3128 | fi
|
---|
3129 | if test -z "$ac_cpp_err"; then
|
---|
3130 | # Broken: success on invalid input.
|
---|
3131 | continue
|
---|
3132 | else
|
---|
3133 | echo "$as_me: failed program was:" >&5
|
---|
3134 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3135 |
|
---|
3136 | # Passes both tests.
|
---|
3137 | ac_preproc_ok=:
|
---|
3138 | break
|
---|
3139 | fi
|
---|
3140 | rm -f conftest.err conftest.$ac_ext
|
---|
3141 |
|
---|
3142 | done
|
---|
3143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3144 | rm -f conftest.err conftest.$ac_ext
|
---|
3145 | if $ac_preproc_ok; then
|
---|
3146 | break
|
---|
3147 | fi
|
---|
3148 |
|
---|
3149 | done
|
---|
3150 | ac_cv_prog_CPP=$CPP
|
---|
3151 |
|
---|
3152 | fi
|
---|
3153 | CPP=$ac_cv_prog_CPP
|
---|
3154 | else
|
---|
3155 | ac_cv_prog_CPP=$CPP
|
---|
3156 | fi
|
---|
3157 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3158 | echo "${ECHO_T}$CPP" >&6
|
---|
3159 | ac_preproc_ok=false
|
---|
3160 | for ac_c_preproc_warn_flag in '' yes
|
---|
3161 | do
|
---|
3162 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3163 | # with a fresh cross-compiler works.
|
---|
3164 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3165 | # <limits.h> exists even on freestanding compilers.
|
---|
3166 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3167 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3169 | /* confdefs.h. */
|
---|
3170 | _ACEOF
|
---|
3171 | cat confdefs.h >>conftest.$ac_ext
|
---|
3172 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3173 | /* end confdefs.h. */
|
---|
3174 | #ifdef __STDC__
|
---|
3175 | # include <limits.h>
|
---|
3176 | #else
|
---|
3177 | # include <assert.h>
|
---|
3178 | #endif
|
---|
3179 | Syntax error
|
---|
3180 | _ACEOF
|
---|
3181 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3182 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3183 | ac_status=$?
|
---|
3184 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3185 | rm -f conftest.er1
|
---|
3186 | cat conftest.err >&5
|
---|
3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3188 | (exit $ac_status); } >/dev/null; then
|
---|
3189 | if test -s conftest.err; then
|
---|
3190 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3191 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3192 | else
|
---|
3193 | ac_cpp_err=
|
---|
3194 | fi
|
---|
3195 | else
|
---|
3196 | ac_cpp_err=yes
|
---|
3197 | fi
|
---|
3198 | if test -z "$ac_cpp_err"; then
|
---|
3199 | :
|
---|
3200 | else
|
---|
3201 | echo "$as_me: failed program was:" >&5
|
---|
3202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3203 |
|
---|
3204 | # Broken: fails on valid input.
|
---|
3205 | continue
|
---|
3206 | fi
|
---|
3207 | rm -f conftest.err conftest.$ac_ext
|
---|
3208 |
|
---|
3209 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3210 | # can be detected and how.
|
---|
3211 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3212 | /* confdefs.h. */
|
---|
3213 | _ACEOF
|
---|
3214 | cat confdefs.h >>conftest.$ac_ext
|
---|
3215 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3216 | /* end confdefs.h. */
|
---|
3217 | #include <ac_nonexistent.h>
|
---|
3218 | _ACEOF
|
---|
3219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3221 | ac_status=$?
|
---|
3222 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3223 | rm -f conftest.er1
|
---|
3224 | cat conftest.err >&5
|
---|
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3226 | (exit $ac_status); } >/dev/null; then
|
---|
3227 | if test -s conftest.err; then
|
---|
3228 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3230 | else
|
---|
3231 | ac_cpp_err=
|
---|
3232 | fi
|
---|
3233 | else
|
---|
3234 | ac_cpp_err=yes
|
---|
3235 | fi
|
---|
3236 | if test -z "$ac_cpp_err"; then
|
---|
3237 | # Broken: success on invalid input.
|
---|
3238 | continue
|
---|
3239 | else
|
---|
3240 | echo "$as_me: failed program was:" >&5
|
---|
3241 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3242 |
|
---|
3243 | # Passes both tests.
|
---|
3244 | ac_preproc_ok=:
|
---|
3245 | break
|
---|
3246 | fi
|
---|
3247 | rm -f conftest.err conftest.$ac_ext
|
---|
3248 |
|
---|
3249 | done
|
---|
3250 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3251 | rm -f conftest.err conftest.$ac_ext
|
---|
3252 | if $ac_preproc_ok; then
|
---|
3253 | :
|
---|
3254 | else
|
---|
3255 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3256 | See \`config.log' for more details." >&5
|
---|
3257 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3258 | See \`config.log' for more details." >&2;}
|
---|
3259 | { (exit 1); exit 1; }; }
|
---|
3260 | fi
|
---|
3261 |
|
---|
3262 | ac_ext=c
|
---|
3263 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3267 |
|
---|
3268 |
|
---|
3269 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3270 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3271 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3272 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3273 | else
|
---|
3274 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3275 | then ac_cv_prog_egrep='grep -E'
|
---|
3276 | else ac_cv_prog_egrep='egrep'
|
---|
3277 | fi
|
---|
3278 | fi
|
---|
3279 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3280 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3281 | EGREP=$ac_cv_prog_egrep
|
---|
3282 |
|
---|
3283 |
|
---|
3284 |
|
---|
3285 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3286 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
3287 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3288 | /* confdefs.h. */
|
---|
3289 | _ACEOF
|
---|
3290 | cat confdefs.h >>conftest.$ac_ext
|
---|
3291 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3292 | /* end confdefs.h. */
|
---|
3293 | #ifdef _AIX
|
---|
3294 | yes
|
---|
3295 | #endif
|
---|
3296 |
|
---|
3297 | _ACEOF
|
---|
3298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3299 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3300 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3301 | echo "${ECHO_T}yes" >&6
|
---|
3302 | cat >>confdefs.h <<\_ACEOF
|
---|
3303 | #define _ALL_SOURCE 1
|
---|
3304 | _ACEOF
|
---|
3305 |
|
---|
3306 | else
|
---|
3307 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3308 | echo "${ECHO_T}no" >&6
|
---|
3309 | fi
|
---|
3310 | rm -f conftest*
|
---|
3311 |
|
---|
3312 |
|
---|
3313 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3314 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
3315 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3316 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3317 | else
|
---|
3318 | ac_func_search_save_LIBS=$LIBS
|
---|
3319 | ac_cv_search_strerror=no
|
---|
3320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3321 | /* confdefs.h. */
|
---|
3322 | _ACEOF
|
---|
3323 | cat confdefs.h >>conftest.$ac_ext
|
---|
3324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3325 | /* end confdefs.h. */
|
---|
3326 |
|
---|
3327 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3328 | #ifdef __cplusplus
|
---|
3329 | extern "C"
|
---|
3330 | #endif
|
---|
3331 | /* We use char because int might match the return type of a gcc2
|
---|
3332 | builtin and then its argument prototype would still apply. */
|
---|
3333 | char strerror ();
|
---|
3334 | int
|
---|
3335 | main ()
|
---|
3336 | {
|
---|
3337 | strerror ();
|
---|
3338 | ;
|
---|
3339 | return 0;
|
---|
3340 | }
|
---|
3341 | _ACEOF
|
---|
3342 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3344 | (eval $ac_link) 2>conftest.er1
|
---|
3345 | ac_status=$?
|
---|
3346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3347 | rm -f conftest.er1
|
---|
3348 | cat conftest.err >&5
|
---|
3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3350 | (exit $ac_status); } &&
|
---|
3351 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3352 | || test ! -s conftest.err'
|
---|
3353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3354 | (eval $ac_try) 2>&5
|
---|
3355 | ac_status=$?
|
---|
3356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3357 | (exit $ac_status); }; } &&
|
---|
3358 | { ac_try='test -s conftest$ac_exeext'
|
---|
3359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3360 | (eval $ac_try) 2>&5
|
---|
3361 | ac_status=$?
|
---|
3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3363 | (exit $ac_status); }; }; then
|
---|
3364 | ac_cv_search_strerror="none required"
|
---|
3365 | else
|
---|
3366 | echo "$as_me: failed program was:" >&5
|
---|
3367 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3368 |
|
---|
3369 | fi
|
---|
3370 | rm -f conftest.err conftest.$ac_objext \
|
---|
3371 | conftest$ac_exeext conftest.$ac_ext
|
---|
3372 | if test "$ac_cv_search_strerror" = no; then
|
---|
3373 | for ac_lib in cposix; do
|
---|
3374 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
3375 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3376 | /* confdefs.h. */
|
---|
3377 | _ACEOF
|
---|
3378 | cat confdefs.h >>conftest.$ac_ext
|
---|
3379 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3380 | /* end confdefs.h. */
|
---|
3381 |
|
---|
3382 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3383 | #ifdef __cplusplus
|
---|
3384 | extern "C"
|
---|
3385 | #endif
|
---|
3386 | /* We use char because int might match the return type of a gcc2
|
---|
3387 | builtin and then its argument prototype would still apply. */
|
---|
3388 | char strerror ();
|
---|
3389 | int
|
---|
3390 | main ()
|
---|
3391 | {
|
---|
3392 | strerror ();
|
---|
3393 | ;
|
---|
3394 | return 0;
|
---|
3395 | }
|
---|
3396 | _ACEOF
|
---|
3397 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3399 | (eval $ac_link) 2>conftest.er1
|
---|
3400 | ac_status=$?
|
---|
3401 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3402 | rm -f conftest.er1
|
---|
3403 | cat conftest.err >&5
|
---|
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3405 | (exit $ac_status); } &&
|
---|
3406 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3407 | || test ! -s conftest.err'
|
---|
3408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3409 | (eval $ac_try) 2>&5
|
---|
3410 | ac_status=$?
|
---|
3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3412 | (exit $ac_status); }; } &&
|
---|
3413 | { ac_try='test -s conftest$ac_exeext'
|
---|
3414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3415 | (eval $ac_try) 2>&5
|
---|
3416 | ac_status=$?
|
---|
3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3418 | (exit $ac_status); }; }; then
|
---|
3419 | ac_cv_search_strerror="-l$ac_lib"
|
---|
3420 | break
|
---|
3421 | else
|
---|
3422 | echo "$as_me: failed program was:" >&5
|
---|
3423 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3424 |
|
---|
3425 | fi
|
---|
3426 | rm -f conftest.err conftest.$ac_objext \
|
---|
3427 | conftest$ac_exeext conftest.$ac_ext
|
---|
3428 | done
|
---|
3429 | fi
|
---|
3430 | LIBS=$ac_func_search_save_LIBS
|
---|
3431 | fi
|
---|
3432 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
3433 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
3434 | if test "$ac_cv_search_strerror" != no; then
|
---|
3435 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
3436 |
|
---|
3437 | fi
|
---|
3438 |
|
---|
3439 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3440 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3441 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3443 | else
|
---|
3444 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3445 | /* confdefs.h. */
|
---|
3446 | _ACEOF
|
---|
3447 | cat confdefs.h >>conftest.$ac_ext
|
---|
3448 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3449 | /* end confdefs.h. */
|
---|
3450 | #include <stdlib.h>
|
---|
3451 | #include <stdarg.h>
|
---|
3452 | #include <string.h>
|
---|
3453 | #include <float.h>
|
---|
3454 |
|
---|
3455 | int
|
---|
3456 | main ()
|
---|
3457 | {
|
---|
3458 |
|
---|
3459 | ;
|
---|
3460 | return 0;
|
---|
3461 | }
|
---|
3462 | _ACEOF
|
---|
3463 | rm -f conftest.$ac_objext
|
---|
3464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3465 | (eval $ac_compile) 2>conftest.er1
|
---|
3466 | ac_status=$?
|
---|
3467 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3468 | rm -f conftest.er1
|
---|
3469 | cat conftest.err >&5
|
---|
3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3471 | (exit $ac_status); } &&
|
---|
3472 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3473 | || test ! -s conftest.err'
|
---|
3474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3475 | (eval $ac_try) 2>&5
|
---|
3476 | ac_status=$?
|
---|
3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3478 | (exit $ac_status); }; } &&
|
---|
3479 | { ac_try='test -s conftest.$ac_objext'
|
---|
3480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3481 | (eval $ac_try) 2>&5
|
---|
3482 | ac_status=$?
|
---|
3483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3484 | (exit $ac_status); }; }; then
|
---|
3485 | ac_cv_header_stdc=yes
|
---|
3486 | else
|
---|
3487 | echo "$as_me: failed program was:" >&5
|
---|
3488 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3489 |
|
---|
3490 | ac_cv_header_stdc=no
|
---|
3491 | fi
|
---|
3492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3493 |
|
---|
3494 | if test $ac_cv_header_stdc = yes; then
|
---|
3495 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3496 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3497 | /* confdefs.h. */
|
---|
3498 | _ACEOF
|
---|
3499 | cat confdefs.h >>conftest.$ac_ext
|
---|
3500 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3501 | /* end confdefs.h. */
|
---|
3502 | #include <string.h>
|
---|
3503 |
|
---|
3504 | _ACEOF
|
---|
3505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3506 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3507 | :
|
---|
3508 | else
|
---|
3509 | ac_cv_header_stdc=no
|
---|
3510 | fi
|
---|
3511 | rm -f conftest*
|
---|
3512 |
|
---|
3513 | fi
|
---|
3514 |
|
---|
3515 | if test $ac_cv_header_stdc = yes; then
|
---|
3516 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3517 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3518 | /* confdefs.h. */
|
---|
3519 | _ACEOF
|
---|
3520 | cat confdefs.h >>conftest.$ac_ext
|
---|
3521 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3522 | /* end confdefs.h. */
|
---|
3523 | #include <stdlib.h>
|
---|
3524 |
|
---|
3525 | _ACEOF
|
---|
3526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3527 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3528 | :
|
---|
3529 | else
|
---|
3530 | ac_cv_header_stdc=no
|
---|
3531 | fi
|
---|
3532 | rm -f conftest*
|
---|
3533 |
|
---|
3534 | fi
|
---|
3535 |
|
---|
3536 | if test $ac_cv_header_stdc = yes; then
|
---|
3537 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3538 | if test "$cross_compiling" = yes; then
|
---|
3539 | :
|
---|
3540 | else
|
---|
3541 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3542 | /* confdefs.h. */
|
---|
3543 | _ACEOF
|
---|
3544 | cat confdefs.h >>conftest.$ac_ext
|
---|
3545 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3546 | /* end confdefs.h. */
|
---|
3547 | #include <ctype.h>
|
---|
3548 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3549 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3550 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3551 | #else
|
---|
3552 | # define ISLOWER(c) \
|
---|
3553 | (('a' <= (c) && (c) <= 'i') \
|
---|
3554 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3555 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3556 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3557 | #endif
|
---|
3558 |
|
---|
3559 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3560 | int
|
---|
3561 | main ()
|
---|
3562 | {
|
---|
3563 | int i;
|
---|
3564 | for (i = 0; i < 256; i++)
|
---|
3565 | if (XOR (islower (i), ISLOWER (i))
|
---|
3566 | || toupper (i) != TOUPPER (i))
|
---|
3567 | exit(2);
|
---|
3568 | exit (0);
|
---|
3569 | }
|
---|
3570 | _ACEOF
|
---|
3571 | rm -f conftest$ac_exeext
|
---|
3572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3573 | (eval $ac_link) 2>&5
|
---|
3574 | ac_status=$?
|
---|
3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3578 | (eval $ac_try) 2>&5
|
---|
3579 | ac_status=$?
|
---|
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3581 | (exit $ac_status); }; }; then
|
---|
3582 | :
|
---|
3583 | else
|
---|
3584 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3585 | echo "$as_me: failed program was:" >&5
|
---|
3586 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3587 |
|
---|
3588 | ( exit $ac_status )
|
---|
3589 | ac_cv_header_stdc=no
|
---|
3590 | fi
|
---|
3591 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3592 | fi
|
---|
3593 | fi
|
---|
3594 | fi
|
---|
3595 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3596 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3597 | if test $ac_cv_header_stdc = yes; then
|
---|
3598 |
|
---|
3599 | cat >>confdefs.h <<\_ACEOF
|
---|
3600 | #define STDC_HEADERS 1
|
---|
3601 | _ACEOF
|
---|
3602 |
|
---|
3603 | fi
|
---|
3604 |
|
---|
3605 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3606 |
|
---|
3607 |
|
---|
3608 |
|
---|
3609 |
|
---|
3610 |
|
---|
3611 |
|
---|
3612 |
|
---|
3613 |
|
---|
3614 |
|
---|
3615 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3616 | inttypes.h stdint.h unistd.h
|
---|
3617 | do
|
---|
3618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3619 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3620 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3621 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3622 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3623 | else
|
---|
3624 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3625 | /* confdefs.h. */
|
---|
3626 | _ACEOF
|
---|
3627 | cat confdefs.h >>conftest.$ac_ext
|
---|
3628 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3629 | /* end confdefs.h. */
|
---|
3630 | $ac_includes_default
|
---|
3631 |
|
---|
3632 | #include <$ac_header>
|
---|
3633 | _ACEOF
|
---|
3634 | rm -f conftest.$ac_objext
|
---|
3635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3636 | (eval $ac_compile) 2>conftest.er1
|
---|
3637 | ac_status=$?
|
---|
3638 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3639 | rm -f conftest.er1
|
---|
3640 | cat conftest.err >&5
|
---|
3641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3642 | (exit $ac_status); } &&
|
---|
3643 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3644 | || test ! -s conftest.err'
|
---|
3645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3646 | (eval $ac_try) 2>&5
|
---|
3647 | ac_status=$?
|
---|
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3649 | (exit $ac_status); }; } &&
|
---|
3650 | { ac_try='test -s conftest.$ac_objext'
|
---|
3651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3652 | (eval $ac_try) 2>&5
|
---|
3653 | ac_status=$?
|
---|
3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3655 | (exit $ac_status); }; }; then
|
---|
3656 | eval "$as_ac_Header=yes"
|
---|
3657 | else
|
---|
3658 | echo "$as_me: failed program was:" >&5
|
---|
3659 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3660 |
|
---|
3661 | eval "$as_ac_Header=no"
|
---|
3662 | fi
|
---|
3663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3664 | fi
|
---|
3665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3667 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3668 | cat >>confdefs.h <<_ACEOF
|
---|
3669 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3670 | _ACEOF
|
---|
3671 |
|
---|
3672 | fi
|
---|
3673 |
|
---|
3674 | done
|
---|
3675 |
|
---|
3676 |
|
---|
3677 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3678 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3679 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3680 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3681 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3682 | fi
|
---|
3683 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3684 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3685 | else
|
---|
3686 | # Is the header compilable?
|
---|
3687 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
3688 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
3689 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3690 | /* confdefs.h. */
|
---|
3691 | _ACEOF
|
---|
3692 | cat confdefs.h >>conftest.$ac_ext
|
---|
3693 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3694 | /* end confdefs.h. */
|
---|
3695 | $ac_includes_default
|
---|
3696 | #include <minix/config.h>
|
---|
3697 | _ACEOF
|
---|
3698 | rm -f conftest.$ac_objext
|
---|
3699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3700 | (eval $ac_compile) 2>conftest.er1
|
---|
3701 | ac_status=$?
|
---|
3702 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3703 | rm -f conftest.er1
|
---|
3704 | cat conftest.err >&5
|
---|
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3706 | (exit $ac_status); } &&
|
---|
3707 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3708 | || test ! -s conftest.err'
|
---|
3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3710 | (eval $ac_try) 2>&5
|
---|
3711 | ac_status=$?
|
---|
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3713 | (exit $ac_status); }; } &&
|
---|
3714 | { ac_try='test -s conftest.$ac_objext'
|
---|
3715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3716 | (eval $ac_try) 2>&5
|
---|
3717 | ac_status=$?
|
---|
3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3719 | (exit $ac_status); }; }; then
|
---|
3720 | ac_header_compiler=yes
|
---|
3721 | else
|
---|
3722 | echo "$as_me: failed program was:" >&5
|
---|
3723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3724 |
|
---|
3725 | ac_header_compiler=no
|
---|
3726 | fi
|
---|
3727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3728 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3729 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3730 |
|
---|
3731 | # Is the header present?
|
---|
3732 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
3733 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
3734 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3735 | /* confdefs.h. */
|
---|
3736 | _ACEOF
|
---|
3737 | cat confdefs.h >>conftest.$ac_ext
|
---|
3738 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3739 | /* end confdefs.h. */
|
---|
3740 | #include <minix/config.h>
|
---|
3741 | _ACEOF
|
---|
3742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3744 | ac_status=$?
|
---|
3745 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3746 | rm -f conftest.er1
|
---|
3747 | cat conftest.err >&5
|
---|
3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3749 | (exit $ac_status); } >/dev/null; then
|
---|
3750 | if test -s conftest.err; then
|
---|
3751 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3752 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3753 | else
|
---|
3754 | ac_cpp_err=
|
---|
3755 | fi
|
---|
3756 | else
|
---|
3757 | ac_cpp_err=yes
|
---|
3758 | fi
|
---|
3759 | if test -z "$ac_cpp_err"; then
|
---|
3760 | ac_header_preproc=yes
|
---|
3761 | else
|
---|
3762 | echo "$as_me: failed program was:" >&5
|
---|
3763 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3764 |
|
---|
3765 | ac_header_preproc=no
|
---|
3766 | fi
|
---|
3767 | rm -f conftest.err conftest.$ac_ext
|
---|
3768 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
3769 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
3770 |
|
---|
3771 | # So? What about this header?
|
---|
3772 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
3773 | yes:no: )
|
---|
3774 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
3775 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
3776 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
3777 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
3778 | ac_header_preproc=yes
|
---|
3779 | ;;
|
---|
3780 | no:yes:* )
|
---|
3781 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
3782 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
3783 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
3784 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
3785 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
3786 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
3787 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
3788 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
3789 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
3790 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
3791 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
3792 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
3793 | (
|
---|
3794 | cat <<\_ASBOX
|
---|
3795 | ## ------------------------------------------ ##
|
---|
3796 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
3797 | ## ------------------------------------------ ##
|
---|
3798 | _ASBOX
|
---|
3799 | ) |
|
---|
3800 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
3801 | ;;
|
---|
3802 | esac
|
---|
3803 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3804 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3805 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3806 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3807 | else
|
---|
3808 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
3809 | fi
|
---|
3810 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3811 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3812 |
|
---|
3813 | fi
|
---|
3814 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
3815 | MINIX=yes
|
---|
3816 | else
|
---|
3817 | MINIX=
|
---|
3818 | fi
|
---|
3819 |
|
---|
3820 |
|
---|
3821 | if test "$MINIX" = yes; then
|
---|
3822 |
|
---|
3823 | cat >>confdefs.h <<\_ACEOF
|
---|
3824 | #define _POSIX_SOURCE 1
|
---|
3825 | _ACEOF
|
---|
3826 |
|
---|
3827 |
|
---|
3828 | cat >>confdefs.h <<\_ACEOF
|
---|
3829 | #define _POSIX_1_SOURCE 2
|
---|
3830 | _ACEOF
|
---|
3831 |
|
---|
3832 |
|
---|
3833 | cat >>confdefs.h <<\_ACEOF
|
---|
3834 | #define _MINIX 1
|
---|
3835 | _ACEOF
|
---|
3836 |
|
---|
3837 | fi
|
---|
3838 |
|
---|
3839 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
3840 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
3841 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
3842 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3843 | else
|
---|
3844 | ac_cv_prog_cc_stdc=no
|
---|
3845 | ac_save_CFLAGS="$CFLAGS"
|
---|
3846 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
3847 | # breaks some systems' header files.
|
---|
3848 | # AIX -qlanglvl=ansi
|
---|
3849 | # Ultrix and OSF/1 -std1
|
---|
3850 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
3851 | # SVR4 -Xc
|
---|
3852 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
3853 | do
|
---|
3854 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
3855 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3856 | /* confdefs.h. */
|
---|
3857 | _ACEOF
|
---|
3858 | cat confdefs.h >>conftest.$ac_ext
|
---|
3859 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3860 | /* end confdefs.h. */
|
---|
3861 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
3862 | choke me
|
---|
3863 | #endif
|
---|
3864 |
|
---|
3865 | int
|
---|
3866 | main ()
|
---|
3867 | {
|
---|
3868 | int test (int i, double x);
|
---|
3869 | struct s1 {int (*f) (int a);};
|
---|
3870 | struct s2 {int (*f) (double a);};
|
---|
3871 | ;
|
---|
3872 | return 0;
|
---|
3873 | }
|
---|
3874 | _ACEOF
|
---|
3875 | rm -f conftest.$ac_objext
|
---|
3876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3877 | (eval $ac_compile) 2>conftest.er1
|
---|
3878 | ac_status=$?
|
---|
3879 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3880 | rm -f conftest.er1
|
---|
3881 | cat conftest.err >&5
|
---|
3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3883 | (exit $ac_status); } &&
|
---|
3884 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3885 | || test ! -s conftest.err'
|
---|
3886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3887 | (eval $ac_try) 2>&5
|
---|
3888 | ac_status=$?
|
---|
3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3890 | (exit $ac_status); }; } &&
|
---|
3891 | { ac_try='test -s conftest.$ac_objext'
|
---|
3892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3893 | (eval $ac_try) 2>&5
|
---|
3894 | ac_status=$?
|
---|
3895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3896 | (exit $ac_status); }; }; then
|
---|
3897 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
3898 | else
|
---|
3899 | echo "$as_me: failed program was:" >&5
|
---|
3900 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3901 |
|
---|
3902 | fi
|
---|
3903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3904 | done
|
---|
3905 | CFLAGS="$ac_save_CFLAGS"
|
---|
3906 |
|
---|
3907 | fi
|
---|
3908 |
|
---|
3909 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
3910 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
3911 | case "x$ac_cv_prog_cc_stdc" in
|
---|
3912 | x|xno) ;;
|
---|
3913 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
3914 | esac
|
---|
3915 |
|
---|
3916 |
|
---|
3917 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
3918 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
3919 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
3920 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3921 | echo "${ECHO_T}yes" >&6
|
---|
3922 | cat >>confdefs.h <<\_ACEOF
|
---|
3923 | #define PROTOTYPES 1
|
---|
3924 | _ACEOF
|
---|
3925 |
|
---|
3926 | U= ANSI2KNR=
|
---|
3927 | else
|
---|
3928 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3929 | echo "${ECHO_T}no" >&6
|
---|
3930 | U=_ ANSI2KNR=ansi2knr
|
---|
3931 | fi
|
---|
3932 |
|
---|
3933 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
3934 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
3935 | if test "${ac_cv_c_const+set}" = set; then
|
---|
3936 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3937 | else
|
---|
3938 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3939 | /* confdefs.h. */
|
---|
3940 | _ACEOF
|
---|
3941 | cat confdefs.h >>conftest.$ac_ext
|
---|
3942 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3943 | /* end confdefs.h. */
|
---|
3944 |
|
---|
3945 | int
|
---|
3946 | main ()
|
---|
3947 | {
|
---|
3948 | /* FIXME: Include the comments suggested by Paul. */
|
---|
3949 | #ifndef __cplusplus
|
---|
3950 | /* Ultrix mips cc rejects this. */
|
---|
3951 | typedef int charset[2];
|
---|
3952 | const charset x;
|
---|
3953 | /* SunOS 4.1.1 cc rejects this. */
|
---|
3954 | char const *const *ccp;
|
---|
3955 | char **p;
|
---|
3956 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
3957 | struct point {int x, y;};
|
---|
3958 | static struct point const zero = {0,0};
|
---|
3959 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
3960 | It does not let you subtract one const X* pointer from another in
|
---|
3961 | an arm of an if-expression whose if-part is not a constant
|
---|
3962 | expression */
|
---|
3963 | const char *g = "string";
|
---|
3964 | ccp = &g + (g ? g-g : 0);
|
---|
3965 | /* HPUX 7.0 cc rejects these. */
|
---|
3966 | ++ccp;
|
---|
3967 | p = (char**) ccp;
|
---|
3968 | ccp = (char const *const *) p;
|
---|
3969 | { /* SCO 3.2v4 cc rejects this. */
|
---|
3970 | char *t;
|
---|
3971 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
3972 |
|
---|
3973 | *t++ = 0;
|
---|
3974 | }
|
---|
3975 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
3976 | int x[] = {25, 17};
|
---|
3977 | const int *foo = &x[0];
|
---|
3978 | ++foo;
|
---|
3979 | }
|
---|
3980 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
3981 | typedef const int *iptr;
|
---|
3982 | iptr p = 0;
|
---|
3983 | ++p;
|
---|
3984 | }
|
---|
3985 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
3986 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
3987 | struct s { int j; const int *ap[3]; };
|
---|
3988 | struct s *b; b->j = 5;
|
---|
3989 | }
|
---|
3990 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
3991 | const int foo = 10;
|
---|
3992 | }
|
---|
3993 | #endif
|
---|
3994 |
|
---|
3995 | ;
|
---|
3996 | return 0;
|
---|
3997 | }
|
---|
3998 | _ACEOF
|
---|
3999 | rm -f conftest.$ac_objext
|
---|
4000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4001 | (eval $ac_compile) 2>conftest.er1
|
---|
4002 | ac_status=$?
|
---|
4003 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4004 | rm -f conftest.er1
|
---|
4005 | cat conftest.err >&5
|
---|
4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4007 | (exit $ac_status); } &&
|
---|
4008 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4009 | || test ! -s conftest.err'
|
---|
4010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4011 | (eval $ac_try) 2>&5
|
---|
4012 | ac_status=$?
|
---|
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4014 | (exit $ac_status); }; } &&
|
---|
4015 | { ac_try='test -s conftest.$ac_objext'
|
---|
4016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4017 | (eval $ac_try) 2>&5
|
---|
4018 | ac_status=$?
|
---|
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4020 | (exit $ac_status); }; }; then
|
---|
4021 | ac_cv_c_const=yes
|
---|
4022 | else
|
---|
4023 | echo "$as_me: failed program was:" >&5
|
---|
4024 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4025 |
|
---|
4026 | ac_cv_c_const=no
|
---|
4027 | fi
|
---|
4028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4029 | fi
|
---|
4030 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
4031 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
4032 | if test $ac_cv_c_const = no; then
|
---|
4033 |
|
---|
4034 | cat >>confdefs.h <<\_ACEOF
|
---|
4035 | #define const
|
---|
4036 | _ACEOF
|
---|
4037 |
|
---|
4038 | fi
|
---|
4039 |
|
---|
4040 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
4041 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
4042 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
4043 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4044 | else
|
---|
4045 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4046 | /* confdefs.h. */
|
---|
4047 | _ACEOF
|
---|
4048 | cat confdefs.h >>conftest.$ac_ext
|
---|
4049 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4050 | /* end confdefs.h. */
|
---|
4051 | $ac_includes_default
|
---|
4052 | int
|
---|
4053 | main ()
|
---|
4054 | {
|
---|
4055 | if ((off_t *) 0)
|
---|
4056 | return 0;
|
---|
4057 | if (sizeof (off_t))
|
---|
4058 | return 0;
|
---|
4059 | ;
|
---|
4060 | return 0;
|
---|
4061 | }
|
---|
4062 | _ACEOF
|
---|
4063 | rm -f conftest.$ac_objext
|
---|
4064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4065 | (eval $ac_compile) 2>conftest.er1
|
---|
4066 | ac_status=$?
|
---|
4067 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4068 | rm -f conftest.er1
|
---|
4069 | cat conftest.err >&5
|
---|
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4071 | (exit $ac_status); } &&
|
---|
4072 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4073 | || test ! -s conftest.err'
|
---|
4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4075 | (eval $ac_try) 2>&5
|
---|
4076 | ac_status=$?
|
---|
4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4078 | (exit $ac_status); }; } &&
|
---|
4079 | { ac_try='test -s conftest.$ac_objext'
|
---|
4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4081 | (eval $ac_try) 2>&5
|
---|
4082 | ac_status=$?
|
---|
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4084 | (exit $ac_status); }; }; then
|
---|
4085 | ac_cv_type_off_t=yes
|
---|
4086 | else
|
---|
4087 | echo "$as_me: failed program was:" >&5
|
---|
4088 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4089 |
|
---|
4090 | ac_cv_type_off_t=no
|
---|
4091 | fi
|
---|
4092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4093 | fi
|
---|
4094 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
4095 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
4096 | if test $ac_cv_type_off_t = yes; then
|
---|
4097 | :
|
---|
4098 | else
|
---|
4099 |
|
---|
4100 | cat >>confdefs.h <<_ACEOF
|
---|
4101 | #define off_t long
|
---|
4102 | _ACEOF
|
---|
4103 |
|
---|
4104 | fi
|
---|
4105 |
|
---|
4106 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
4107 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
4108 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
4109 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4110 | else
|
---|
4111 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4112 | /* confdefs.h. */
|
---|
4113 | _ACEOF
|
---|
4114 | cat confdefs.h >>conftest.$ac_ext
|
---|
4115 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4116 | /* end confdefs.h. */
|
---|
4117 | $ac_includes_default
|
---|
4118 | int
|
---|
4119 | main ()
|
---|
4120 | {
|
---|
4121 | if ((size_t *) 0)
|
---|
4122 | return 0;
|
---|
4123 | if (sizeof (size_t))
|
---|
4124 | return 0;
|
---|
4125 | ;
|
---|
4126 | return 0;
|
---|
4127 | }
|
---|
4128 | _ACEOF
|
---|
4129 | rm -f conftest.$ac_objext
|
---|
4130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4131 | (eval $ac_compile) 2>conftest.er1
|
---|
4132 | ac_status=$?
|
---|
4133 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4134 | rm -f conftest.er1
|
---|
4135 | cat conftest.err >&5
|
---|
4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4137 | (exit $ac_status); } &&
|
---|
4138 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4139 | || test ! -s conftest.err'
|
---|
4140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4141 | (eval $ac_try) 2>&5
|
---|
4142 | ac_status=$?
|
---|
4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4144 | (exit $ac_status); }; } &&
|
---|
4145 | { ac_try='test -s conftest.$ac_objext'
|
---|
4146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4147 | (eval $ac_try) 2>&5
|
---|
4148 | ac_status=$?
|
---|
4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4150 | (exit $ac_status); }; }; then
|
---|
4151 | ac_cv_type_size_t=yes
|
---|
4152 | else
|
---|
4153 | echo "$as_me: failed program was:" >&5
|
---|
4154 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4155 |
|
---|
4156 | ac_cv_type_size_t=no
|
---|
4157 | fi
|
---|
4158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4159 | fi
|
---|
4160 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
4161 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
4162 | if test $ac_cv_type_size_t = yes; then
|
---|
4163 | :
|
---|
4164 | else
|
---|
4165 |
|
---|
4166 | cat >>confdefs.h <<_ACEOF
|
---|
4167 | #define size_t unsigned
|
---|
4168 | _ACEOF
|
---|
4169 |
|
---|
4170 | fi
|
---|
4171 |
|
---|
4172 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4173 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
4174 | if test "${ac_cv_header_time+set}" = set; then
|
---|
4175 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4176 | else
|
---|
4177 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4178 | /* confdefs.h. */
|
---|
4179 | _ACEOF
|
---|
4180 | cat confdefs.h >>conftest.$ac_ext
|
---|
4181 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4182 | /* end confdefs.h. */
|
---|
4183 | #include <sys/types.h>
|
---|
4184 | #include <sys/time.h>
|
---|
4185 | #include <time.h>
|
---|
4186 |
|
---|
4187 | int
|
---|
4188 | main ()
|
---|
4189 | {
|
---|
4190 | if ((struct tm *) 0)
|
---|
4191 | return 0;
|
---|
4192 | ;
|
---|
4193 | return 0;
|
---|
4194 | }
|
---|
4195 | _ACEOF
|
---|
4196 | rm -f conftest.$ac_objext
|
---|
4197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4198 | (eval $ac_compile) 2>conftest.er1
|
---|
4199 | ac_status=$?
|
---|
4200 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4201 | rm -f conftest.er1
|
---|
4202 | cat conftest.err >&5
|
---|
4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4204 | (exit $ac_status); } &&
|
---|
4205 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4206 | || test ! -s conftest.err'
|
---|
4207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4208 | (eval $ac_try) 2>&5
|
---|
4209 | ac_status=$?
|
---|
4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4211 | (exit $ac_status); }; } &&
|
---|
4212 | { ac_try='test -s conftest.$ac_objext'
|
---|
4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4214 | (eval $ac_try) 2>&5
|
---|
4215 | ac_status=$?
|
---|
4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4217 | (exit $ac_status); }; }; then
|
---|
4218 | ac_cv_header_time=yes
|
---|
4219 | else
|
---|
4220 | echo "$as_me: failed program was:" >&5
|
---|
4221 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4222 |
|
---|
4223 | ac_cv_header_time=no
|
---|
4224 | fi
|
---|
4225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4226 | fi
|
---|
4227 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
4228 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
4229 | if test $ac_cv_header_time = yes; then
|
---|
4230 |
|
---|
4231 | cat >>confdefs.h <<\_ACEOF
|
---|
4232 | #define TIME_WITH_SYS_TIME 1
|
---|
4233 | _ACEOF
|
---|
4234 |
|
---|
4235 | fi
|
---|
4236 |
|
---|
4237 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4238 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
4239 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
4240 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4241 | else
|
---|
4242 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4243 | /* confdefs.h. */
|
---|
4244 | _ACEOF
|
---|
4245 | cat confdefs.h >>conftest.$ac_ext
|
---|
4246 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4247 | /* end confdefs.h. */
|
---|
4248 | #include <sys/types.h>
|
---|
4249 | #include <time.h>
|
---|
4250 |
|
---|
4251 | int
|
---|
4252 | main ()
|
---|
4253 | {
|
---|
4254 | struct tm *tp; tp->tm_sec;
|
---|
4255 | ;
|
---|
4256 | return 0;
|
---|
4257 | }
|
---|
4258 | _ACEOF
|
---|
4259 | rm -f conftest.$ac_objext
|
---|
4260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4261 | (eval $ac_compile) 2>conftest.er1
|
---|
4262 | ac_status=$?
|
---|
4263 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4264 | rm -f conftest.er1
|
---|
4265 | cat conftest.err >&5
|
---|
4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4267 | (exit $ac_status); } &&
|
---|
4268 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4269 | || test ! -s conftest.err'
|
---|
4270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4271 | (eval $ac_try) 2>&5
|
---|
4272 | ac_status=$?
|
---|
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4274 | (exit $ac_status); }; } &&
|
---|
4275 | { ac_try='test -s conftest.$ac_objext'
|
---|
4276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4277 | (eval $ac_try) 2>&5
|
---|
4278 | ac_status=$?
|
---|
4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4280 | (exit $ac_status); }; }; then
|
---|
4281 | ac_cv_struct_tm=time.h
|
---|
4282 | else
|
---|
4283 | echo "$as_me: failed program was:" >&5
|
---|
4284 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4285 |
|
---|
4286 | ac_cv_struct_tm=sys/time.h
|
---|
4287 | fi
|
---|
4288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4289 | fi
|
---|
4290 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
4291 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
4292 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4293 |
|
---|
4294 | cat >>confdefs.h <<\_ACEOF
|
---|
4295 | #define TM_IN_SYS_TIME 1
|
---|
4296 | _ACEOF
|
---|
4297 |
|
---|
4298 | fi
|
---|
4299 |
|
---|
4300 |
|
---|
4301 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4302 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4303 | /* confdefs.h. */
|
---|
4304 | _ACEOF
|
---|
4305 | cat confdefs.h >>conftest.$ac_ext
|
---|
4306 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4307 | /* end confdefs.h. */
|
---|
4308 | #include <stdio.h>
|
---|
4309 |
|
---|
4310 | int
|
---|
4311 | main ()
|
---|
4312 | {
|
---|
4313 | FILE *rubbish = popen("yes", "r");
|
---|
4314 | ;
|
---|
4315 | return 0;
|
---|
4316 | }
|
---|
4317 | _ACEOF
|
---|
4318 | rm -f conftest.$ac_objext
|
---|
4319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4320 | (eval $ac_compile) 2>conftest.er1
|
---|
4321 | ac_status=$?
|
---|
4322 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4323 | rm -f conftest.er1
|
---|
4324 | cat conftest.err >&5
|
---|
4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4326 | (exit $ac_status); } &&
|
---|
4327 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4328 | || test ! -s conftest.err'
|
---|
4329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4330 | (eval $ac_try) 2>&5
|
---|
4331 | ac_status=$?
|
---|
4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4333 | (exit $ac_status); }; } &&
|
---|
4334 | { ac_try='test -s conftest.$ac_objext'
|
---|
4335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4336 | (eval $ac_try) 2>&5
|
---|
4337 | ac_status=$?
|
---|
4338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4339 | (exit $ac_status); }; }; then
|
---|
4340 | :
|
---|
4341 | else
|
---|
4342 | echo "$as_me: failed program was:" >&5
|
---|
4343 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4344 |
|
---|
4345 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4346 | fi
|
---|
4347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4348 | fi
|
---|
4349 |
|
---|
4350 |
|
---|
4351 |
|
---|
4352 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
4353 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
4354 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
4355 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4356 | else
|
---|
4357 | ac_check_lib_save_LIBS=$LIBS
|
---|
4358 | LIBS="-lg $LIBS"
|
---|
4359 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4360 | /* confdefs.h. */
|
---|
4361 | _ACEOF
|
---|
4362 | cat confdefs.h >>conftest.$ac_ext
|
---|
4363 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4364 | /* end confdefs.h. */
|
---|
4365 |
|
---|
4366 |
|
---|
4367 | int
|
---|
4368 | main ()
|
---|
4369 | {
|
---|
4370 | main ();
|
---|
4371 | ;
|
---|
4372 | return 0;
|
---|
4373 | }
|
---|
4374 | _ACEOF
|
---|
4375 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4377 | (eval $ac_link) 2>conftest.er1
|
---|
4378 | ac_status=$?
|
---|
4379 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4380 | rm -f conftest.er1
|
---|
4381 | cat conftest.err >&5
|
---|
4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4383 | (exit $ac_status); } &&
|
---|
4384 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4385 | || test ! -s conftest.err'
|
---|
4386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4387 | (eval $ac_try) 2>&5
|
---|
4388 | ac_status=$?
|
---|
4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4390 | (exit $ac_status); }; } &&
|
---|
4391 | { ac_try='test -s conftest$ac_exeext'
|
---|
4392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4393 | (eval $ac_try) 2>&5
|
---|
4394 | ac_status=$?
|
---|
4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4396 | (exit $ac_status); }; }; then
|
---|
4397 | ac_cv_lib_g_main=yes
|
---|
4398 | else
|
---|
4399 | echo "$as_me: failed program was:" >&5
|
---|
4400 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4401 |
|
---|
4402 | ac_cv_lib_g_main=no
|
---|
4403 | fi
|
---|
4404 | rm -f conftest.err conftest.$ac_objext \
|
---|
4405 | conftest$ac_exeext conftest.$ac_ext
|
---|
4406 | LIBS=$ac_check_lib_save_LIBS
|
---|
4407 | fi
|
---|
4408 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
4409 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
4410 | if test $ac_cv_lib_g_main = yes; then
|
---|
4411 | cat >>confdefs.h <<_ACEOF
|
---|
4412 | #define HAVE_LIBG 1
|
---|
4413 | _ACEOF
|
---|
4414 |
|
---|
4415 | LIBS="-lg $LIBS"
|
---|
4416 |
|
---|
4417 | fi
|
---|
4418 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
4419 |
|
---|
4420 |
|
---|
4421 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
4422 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
4423 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4425 | else
|
---|
4426 | ac_check_lib_save_LIBS=$LIBS
|
---|
4427 | LIBS="-lm $LIBS"
|
---|
4428 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4429 | /* confdefs.h. */
|
---|
4430 | _ACEOF
|
---|
4431 | cat confdefs.h >>conftest.$ac_ext
|
---|
4432 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4433 | /* end confdefs.h. */
|
---|
4434 |
|
---|
4435 |
|
---|
4436 | int
|
---|
4437 | main ()
|
---|
4438 | {
|
---|
4439 | main ();
|
---|
4440 | ;
|
---|
4441 | return 0;
|
---|
4442 | }
|
---|
4443 | _ACEOF
|
---|
4444 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4446 | (eval $ac_link) 2>conftest.er1
|
---|
4447 | ac_status=$?
|
---|
4448 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4449 | rm -f conftest.er1
|
---|
4450 | cat conftest.err >&5
|
---|
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4452 | (exit $ac_status); } &&
|
---|
4453 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4454 | || test ! -s conftest.err'
|
---|
4455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4456 | (eval $ac_try) 2>&5
|
---|
4457 | ac_status=$?
|
---|
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4459 | (exit $ac_status); }; } &&
|
---|
4460 | { ac_try='test -s conftest$ac_exeext'
|
---|
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4462 | (eval $ac_try) 2>&5
|
---|
4463 | ac_status=$?
|
---|
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4465 | (exit $ac_status); }; }; then
|
---|
4466 | ac_cv_lib_m_main=yes
|
---|
4467 | else
|
---|
4468 | echo "$as_me: failed program was:" >&5
|
---|
4469 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4470 |
|
---|
4471 | ac_cv_lib_m_main=no
|
---|
4472 | fi
|
---|
4473 | rm -f conftest.err conftest.$ac_objext \
|
---|
4474 | conftest$ac_exeext conftest.$ac_ext
|
---|
4475 | LIBS=$ac_check_lib_save_LIBS
|
---|
4476 | fi
|
---|
4477 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
4478 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
4479 | if test $ac_cv_lib_m_main = yes; then
|
---|
4480 | cat >>confdefs.h <<_ACEOF
|
---|
4481 | #define HAVE_LIBM 1
|
---|
4482 | _ACEOF
|
---|
4483 |
|
---|
4484 | LIBS="-lm $LIBS"
|
---|
4485 |
|
---|
4486 | fi
|
---|
4487 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
4488 |
|
---|
4489 |
|
---|
4490 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
4491 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
4492 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
4493 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4494 | else
|
---|
4495 | ac_check_lib_save_LIBS=$LIBS
|
---|
4496 | LIBS="-lcrypt $LIBS"
|
---|
4497 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4498 | /* confdefs.h. */
|
---|
4499 | _ACEOF
|
---|
4500 | cat confdefs.h >>conftest.$ac_ext
|
---|
4501 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4502 | /* end confdefs.h. */
|
---|
4503 |
|
---|
4504 |
|
---|
4505 | int
|
---|
4506 | main ()
|
---|
4507 | {
|
---|
4508 | main ();
|
---|
4509 | ;
|
---|
4510 | return 0;
|
---|
4511 | }
|
---|
4512 | _ACEOF
|
---|
4513 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4515 | (eval $ac_link) 2>conftest.er1
|
---|
4516 | ac_status=$?
|
---|
4517 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4518 | rm -f conftest.er1
|
---|
4519 | cat conftest.err >&5
|
---|
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4521 | (exit $ac_status); } &&
|
---|
4522 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4523 | || test ! -s conftest.err'
|
---|
4524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4525 | (eval $ac_try) 2>&5
|
---|
4526 | ac_status=$?
|
---|
4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4528 | (exit $ac_status); }; } &&
|
---|
4529 | { ac_try='test -s conftest$ac_exeext'
|
---|
4530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4531 | (eval $ac_try) 2>&5
|
---|
4532 | ac_status=$?
|
---|
4533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4534 | (exit $ac_status); }; }; then
|
---|
4535 | ac_cv_lib_crypt_main=yes
|
---|
4536 | else
|
---|
4537 | echo "$as_me: failed program was:" >&5
|
---|
4538 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4539 |
|
---|
4540 | ac_cv_lib_crypt_main=no
|
---|
4541 | fi
|
---|
4542 | rm -f conftest.err conftest.$ac_objext \
|
---|
4543 | conftest$ac_exeext conftest.$ac_ext
|
---|
4544 | LIBS=$ac_check_lib_save_LIBS
|
---|
4545 | fi
|
---|
4546 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
4547 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
4548 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
4549 | cat >>confdefs.h <<_ACEOF
|
---|
4550 | #define HAVE_LIBCRYPT 1
|
---|
4551 | _ACEOF
|
---|
4552 |
|
---|
4553 | LIBS="-lcrypt $LIBS"
|
---|
4554 |
|
---|
4555 | fi
|
---|
4556 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
4557 |
|
---|
4558 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
4559 |
|
---|
4560 | echo "$as_me:$LINENO: checking for main in -lICONV" >&5
|
---|
4561 | echo $ECHO_N "checking for main in -lICONV... $ECHO_C" >&6
|
---|
4562 | if test "${ac_cv_lib_ICONV_main+set}" = set; then
|
---|
4563 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4564 | else
|
---|
4565 | ac_check_lib_save_LIBS=$LIBS
|
---|
4566 | LIBS="-lICONV $LIBS"
|
---|
4567 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4568 | /* confdefs.h. */
|
---|
4569 | _ACEOF
|
---|
4570 | cat confdefs.h >>conftest.$ac_ext
|
---|
4571 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4572 | /* end confdefs.h. */
|
---|
4573 |
|
---|
4574 |
|
---|
4575 | int
|
---|
4576 | main ()
|
---|
4577 | {
|
---|
4578 | main ();
|
---|
4579 | ;
|
---|
4580 | return 0;
|
---|
4581 | }
|
---|
4582 | _ACEOF
|
---|
4583 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4585 | (eval $ac_link) 2>conftest.er1
|
---|
4586 | ac_status=$?
|
---|
4587 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4588 | rm -f conftest.er1
|
---|
4589 | cat conftest.err >&5
|
---|
4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4591 | (exit $ac_status); } &&
|
---|
4592 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4593 | || test ! -s conftest.err'
|
---|
4594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4595 | (eval $ac_try) 2>&5
|
---|
4596 | ac_status=$?
|
---|
4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4598 | (exit $ac_status); }; } &&
|
---|
4599 | { ac_try='test -s conftest$ac_exeext'
|
---|
4600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4601 | (eval $ac_try) 2>&5
|
---|
4602 | ac_status=$?
|
---|
4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4604 | (exit $ac_status); }; }; then
|
---|
4605 | ac_cv_lib_ICONV_main=yes
|
---|
4606 | else
|
---|
4607 | echo "$as_me: failed program was:" >&5
|
---|
4608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4609 |
|
---|
4610 | ac_cv_lib_ICONV_main=no
|
---|
4611 | fi
|
---|
4612 | rm -f conftest.err conftest.$ac_objext \
|
---|
4613 | conftest$ac_exeext conftest.$ac_ext
|
---|
4614 | LIBS=$ac_check_lib_save_LIBS
|
---|
4615 | fi
|
---|
4616 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICONV_main" >&5
|
---|
4617 | echo "${ECHO_T}$ac_cv_lib_ICONV_main" >&6
|
---|
4618 | if test $ac_cv_lib_ICONV_main = yes; then
|
---|
4619 | cat >>confdefs.h <<_ACEOF
|
---|
4620 | #define HAVE_LIBICONV 1
|
---|
4621 | _ACEOF
|
---|
4622 |
|
---|
4623 | LIBS="-lICONV $LIBS"
|
---|
4624 |
|
---|
4625 | fi
|
---|
4626 | ac_cv_lib_ICONV=ac_cv_lib_ICONV_main
|
---|
4627 |
|
---|
4628 | fi
|
---|
4629 |
|
---|
4630 |
|
---|
4631 |
|
---|
4632 |
|
---|
4633 |
|
---|
4634 |
|
---|
4635 |
|
---|
4636 | ac_header_dirent=no
|
---|
4637 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
4638 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
4639 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
4640 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
4641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4642 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4643 | else
|
---|
4644 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4645 | /* confdefs.h. */
|
---|
4646 | _ACEOF
|
---|
4647 | cat confdefs.h >>conftest.$ac_ext
|
---|
4648 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4649 | /* end confdefs.h. */
|
---|
4650 | #include <sys/types.h>
|
---|
4651 | #include <$ac_hdr>
|
---|
4652 |
|
---|
4653 | int
|
---|
4654 | main ()
|
---|
4655 | {
|
---|
4656 | if ((DIR *) 0)
|
---|
4657 | return 0;
|
---|
4658 | ;
|
---|
4659 | return 0;
|
---|
4660 | }
|
---|
4661 | _ACEOF
|
---|
4662 | rm -f conftest.$ac_objext
|
---|
4663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4664 | (eval $ac_compile) 2>conftest.er1
|
---|
4665 | ac_status=$?
|
---|
4666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4667 | rm -f conftest.er1
|
---|
4668 | cat conftest.err >&5
|
---|
4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4670 | (exit $ac_status); } &&
|
---|
4671 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4672 | || test ! -s conftest.err'
|
---|
4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4674 | (eval $ac_try) 2>&5
|
---|
4675 | ac_status=$?
|
---|
4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4677 | (exit $ac_status); }; } &&
|
---|
4678 | { ac_try='test -s conftest.$ac_objext'
|
---|
4679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4680 | (eval $ac_try) 2>&5
|
---|
4681 | ac_status=$?
|
---|
4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4683 | (exit $ac_status); }; }; then
|
---|
4684 | eval "$as_ac_Header=yes"
|
---|
4685 | else
|
---|
4686 | echo "$as_me: failed program was:" >&5
|
---|
4687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4688 |
|
---|
4689 | eval "$as_ac_Header=no"
|
---|
4690 | fi
|
---|
4691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4692 | fi
|
---|
4693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4694 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4695 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4696 | cat >>confdefs.h <<_ACEOF
|
---|
4697 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
4698 | _ACEOF
|
---|
4699 |
|
---|
4700 | ac_header_dirent=$ac_hdr; break
|
---|
4701 | fi
|
---|
4702 |
|
---|
4703 | done
|
---|
4704 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4705 | if test $ac_header_dirent = dirent.h; then
|
---|
4706 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4707 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4708 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4709 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4710 | else
|
---|
4711 | ac_func_search_save_LIBS=$LIBS
|
---|
4712 | ac_cv_search_opendir=no
|
---|
4713 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4714 | /* confdefs.h. */
|
---|
4715 | _ACEOF
|
---|
4716 | cat confdefs.h >>conftest.$ac_ext
|
---|
4717 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4718 | /* end confdefs.h. */
|
---|
4719 |
|
---|
4720 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4721 | #ifdef __cplusplus
|
---|
4722 | extern "C"
|
---|
4723 | #endif
|
---|
4724 | /* We use char because int might match the return type of a gcc2
|
---|
4725 | builtin and then its argument prototype would still apply. */
|
---|
4726 | char opendir ();
|
---|
4727 | int
|
---|
4728 | main ()
|
---|
4729 | {
|
---|
4730 | opendir ();
|
---|
4731 | ;
|
---|
4732 | return 0;
|
---|
4733 | }
|
---|
4734 | _ACEOF
|
---|
4735 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4737 | (eval $ac_link) 2>conftest.er1
|
---|
4738 | ac_status=$?
|
---|
4739 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4740 | rm -f conftest.er1
|
---|
4741 | cat conftest.err >&5
|
---|
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4743 | (exit $ac_status); } &&
|
---|
4744 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4745 | || test ! -s conftest.err'
|
---|
4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4747 | (eval $ac_try) 2>&5
|
---|
4748 | ac_status=$?
|
---|
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4750 | (exit $ac_status); }; } &&
|
---|
4751 | { ac_try='test -s conftest$ac_exeext'
|
---|
4752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4753 | (eval $ac_try) 2>&5
|
---|
4754 | ac_status=$?
|
---|
4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4756 | (exit $ac_status); }; }; then
|
---|
4757 | ac_cv_search_opendir="none required"
|
---|
4758 | else
|
---|
4759 | echo "$as_me: failed program was:" >&5
|
---|
4760 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4761 |
|
---|
4762 | fi
|
---|
4763 | rm -f conftest.err conftest.$ac_objext \
|
---|
4764 | conftest$ac_exeext conftest.$ac_ext
|
---|
4765 | if test "$ac_cv_search_opendir" = no; then
|
---|
4766 | for ac_lib in dir; do
|
---|
4767 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4768 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4769 | /* confdefs.h. */
|
---|
4770 | _ACEOF
|
---|
4771 | cat confdefs.h >>conftest.$ac_ext
|
---|
4772 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4773 | /* end confdefs.h. */
|
---|
4774 |
|
---|
4775 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4776 | #ifdef __cplusplus
|
---|
4777 | extern "C"
|
---|
4778 | #endif
|
---|
4779 | /* We use char because int might match the return type of a gcc2
|
---|
4780 | builtin and then its argument prototype would still apply. */
|
---|
4781 | char opendir ();
|
---|
4782 | int
|
---|
4783 | main ()
|
---|
4784 | {
|
---|
4785 | opendir ();
|
---|
4786 | ;
|
---|
4787 | return 0;
|
---|
4788 | }
|
---|
4789 | _ACEOF
|
---|
4790 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4792 | (eval $ac_link) 2>conftest.er1
|
---|
4793 | ac_status=$?
|
---|
4794 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4795 | rm -f conftest.er1
|
---|
4796 | cat conftest.err >&5
|
---|
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4798 | (exit $ac_status); } &&
|
---|
4799 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4800 | || test ! -s conftest.err'
|
---|
4801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4802 | (eval $ac_try) 2>&5
|
---|
4803 | ac_status=$?
|
---|
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4805 | (exit $ac_status); }; } &&
|
---|
4806 | { ac_try='test -s conftest$ac_exeext'
|
---|
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4808 | (eval $ac_try) 2>&5
|
---|
4809 | ac_status=$?
|
---|
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4811 | (exit $ac_status); }; }; then
|
---|
4812 | ac_cv_search_opendir="-l$ac_lib"
|
---|
4813 | break
|
---|
4814 | else
|
---|
4815 | echo "$as_me: failed program was:" >&5
|
---|
4816 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4817 |
|
---|
4818 | fi
|
---|
4819 | rm -f conftest.err conftest.$ac_objext \
|
---|
4820 | conftest$ac_exeext conftest.$ac_ext
|
---|
4821 | done
|
---|
4822 | fi
|
---|
4823 | LIBS=$ac_func_search_save_LIBS
|
---|
4824 | fi
|
---|
4825 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
4826 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
4827 | if test "$ac_cv_search_opendir" != no; then
|
---|
4828 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
4829 |
|
---|
4830 | fi
|
---|
4831 |
|
---|
4832 | else
|
---|
4833 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4834 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4835 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4836 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4837 | else
|
---|
4838 | ac_func_search_save_LIBS=$LIBS
|
---|
4839 | ac_cv_search_opendir=no
|
---|
4840 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4841 | /* confdefs.h. */
|
---|
4842 | _ACEOF
|
---|
4843 | cat confdefs.h >>conftest.$ac_ext
|
---|
4844 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4845 | /* end confdefs.h. */
|
---|
4846 |
|
---|
4847 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4848 | #ifdef __cplusplus
|
---|
4849 | extern "C"
|
---|
4850 | #endif
|
---|
4851 | /* We use char because int might match the return type of a gcc2
|
---|
4852 | builtin and then its argument prototype would still apply. */
|
---|
4853 | char opendir ();
|
---|
4854 | int
|
---|
4855 | main ()
|
---|
4856 | {
|
---|
4857 | opendir ();
|
---|
4858 | ;
|
---|
4859 | return 0;
|
---|
4860 | }
|
---|
4861 | _ACEOF
|
---|
4862 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4864 | (eval $ac_link) 2>conftest.er1
|
---|
4865 | ac_status=$?
|
---|
4866 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4867 | rm -f conftest.er1
|
---|
4868 | cat conftest.err >&5
|
---|
4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4870 | (exit $ac_status); } &&
|
---|
4871 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4872 | || test ! -s conftest.err'
|
---|
4873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4874 | (eval $ac_try) 2>&5
|
---|
4875 | ac_status=$?
|
---|
4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4877 | (exit $ac_status); }; } &&
|
---|
4878 | { ac_try='test -s conftest$ac_exeext'
|
---|
4879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4880 | (eval $ac_try) 2>&5
|
---|
4881 | ac_status=$?
|
---|
4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4883 | (exit $ac_status); }; }; then
|
---|
4884 | ac_cv_search_opendir="none required"
|
---|
4885 | else
|
---|
4886 | echo "$as_me: failed program was:" >&5
|
---|
4887 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4888 |
|
---|
4889 | fi
|
---|
4890 | rm -f conftest.err conftest.$ac_objext \
|
---|
4891 | conftest$ac_exeext conftest.$ac_ext
|
---|
4892 | if test "$ac_cv_search_opendir" = no; then
|
---|
4893 | for ac_lib in x; do
|
---|
4894 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4895 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4896 | /* confdefs.h. */
|
---|
4897 | _ACEOF
|
---|
4898 | cat confdefs.h >>conftest.$ac_ext
|
---|
4899 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4900 | /* end confdefs.h. */
|
---|
4901 |
|
---|
4902 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4903 | #ifdef __cplusplus
|
---|
4904 | extern "C"
|
---|
4905 | #endif
|
---|
4906 | /* We use char because int might match the return type of a gcc2
|
---|
4907 | builtin and then its argument prototype would still apply. */
|
---|
4908 | char opendir ();
|
---|
4909 | int
|
---|
4910 | main ()
|
---|
4911 | {
|
---|
4912 | opendir ();
|
---|
4913 | ;
|
---|
4914 | return 0;
|
---|
4915 | }
|
---|
4916 | _ACEOF
|
---|
4917 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4919 | (eval $ac_link) 2>conftest.er1
|
---|
4920 | ac_status=$?
|
---|
4921 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4922 | rm -f conftest.er1
|
---|
4923 | cat conftest.err >&5
|
---|
4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4925 | (exit $ac_status); } &&
|
---|
4926 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4927 | || test ! -s conftest.err'
|
---|
4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4929 | (eval $ac_try) 2>&5
|
---|
4930 | ac_status=$?
|
---|
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4932 | (exit $ac_status); }; } &&
|
---|
4933 | { ac_try='test -s conftest$ac_exeext'
|
---|
4934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4935 | (eval $ac_try) 2>&5
|
---|
4936 | ac_status=$?
|
---|
4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4938 | (exit $ac_status); }; }; then
|
---|
4939 | ac_cv_search_opendir="-l$ac_lib"
|
---|
4940 | break
|
---|
4941 | else
|
---|
4942 | echo "$as_me: failed program was:" >&5
|
---|
4943 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4944 |
|
---|
4945 | fi
|
---|
4946 | rm -f conftest.err conftest.$ac_objext \
|
---|
4947 | conftest$ac_exeext conftest.$ac_ext
|
---|
4948 | done
|
---|
4949 | fi
|
---|
4950 | LIBS=$ac_func_search_save_LIBS
|
---|
4951 | fi
|
---|
4952 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
4953 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
4954 | if test "$ac_cv_search_opendir" != no; then
|
---|
4955 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
4956 |
|
---|
4957 | fi
|
---|
4958 |
|
---|
4959 | fi
|
---|
4960 |
|
---|
4961 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
4962 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
4963 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
4964 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4965 | else
|
---|
4966 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4967 | /* confdefs.h. */
|
---|
4968 | _ACEOF
|
---|
4969 | cat confdefs.h >>conftest.$ac_ext
|
---|
4970 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4971 | /* end confdefs.h. */
|
---|
4972 | #include <stdlib.h>
|
---|
4973 | #include <stdarg.h>
|
---|
4974 | #include <string.h>
|
---|
4975 | #include <float.h>
|
---|
4976 |
|
---|
4977 | int
|
---|
4978 | main ()
|
---|
4979 | {
|
---|
4980 |
|
---|
4981 | ;
|
---|
4982 | return 0;
|
---|
4983 | }
|
---|
4984 | _ACEOF
|
---|
4985 | rm -f conftest.$ac_objext
|
---|
4986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4987 | (eval $ac_compile) 2>conftest.er1
|
---|
4988 | ac_status=$?
|
---|
4989 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4990 | rm -f conftest.er1
|
---|
4991 | cat conftest.err >&5
|
---|
4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4993 | (exit $ac_status); } &&
|
---|
4994 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4995 | || test ! -s conftest.err'
|
---|
4996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4997 | (eval $ac_try) 2>&5
|
---|
4998 | ac_status=$?
|
---|
4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5000 | (exit $ac_status); }; } &&
|
---|
5001 | { ac_try='test -s conftest.$ac_objext'
|
---|
5002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5003 | (eval $ac_try) 2>&5
|
---|
5004 | ac_status=$?
|
---|
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5006 | (exit $ac_status); }; }; then
|
---|
5007 | ac_cv_header_stdc=yes
|
---|
5008 | else
|
---|
5009 | echo "$as_me: failed program was:" >&5
|
---|
5010 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5011 |
|
---|
5012 | ac_cv_header_stdc=no
|
---|
5013 | fi
|
---|
5014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5015 |
|
---|
5016 | if test $ac_cv_header_stdc = yes; then
|
---|
5017 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5018 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5019 | /* confdefs.h. */
|
---|
5020 | _ACEOF
|
---|
5021 | cat confdefs.h >>conftest.$ac_ext
|
---|
5022 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5023 | /* end confdefs.h. */
|
---|
5024 | #include <string.h>
|
---|
5025 |
|
---|
5026 | _ACEOF
|
---|
5027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5028 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5029 | :
|
---|
5030 | else
|
---|
5031 | ac_cv_header_stdc=no
|
---|
5032 | fi
|
---|
5033 | rm -f conftest*
|
---|
5034 |
|
---|
5035 | fi
|
---|
5036 |
|
---|
5037 | if test $ac_cv_header_stdc = yes; then
|
---|
5038 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5039 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5040 | /* confdefs.h. */
|
---|
5041 | _ACEOF
|
---|
5042 | cat confdefs.h >>conftest.$ac_ext
|
---|
5043 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5044 | /* end confdefs.h. */
|
---|
5045 | #include <stdlib.h>
|
---|
5046 |
|
---|
5047 | _ACEOF
|
---|
5048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5049 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5050 | :
|
---|
5051 | else
|
---|
5052 | ac_cv_header_stdc=no
|
---|
5053 | fi
|
---|
5054 | rm -f conftest*
|
---|
5055 |
|
---|
5056 | fi
|
---|
5057 |
|
---|
5058 | if test $ac_cv_header_stdc = yes; then
|
---|
5059 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5060 | if test "$cross_compiling" = yes; then
|
---|
5061 | :
|
---|
5062 | else
|
---|
5063 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5064 | /* confdefs.h. */
|
---|
5065 | _ACEOF
|
---|
5066 | cat confdefs.h >>conftest.$ac_ext
|
---|
5067 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5068 | /* end confdefs.h. */
|
---|
5069 | #include <ctype.h>
|
---|
5070 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5071 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5072 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5073 | #else
|
---|
5074 | # define ISLOWER(c) \
|
---|
5075 | (('a' <= (c) && (c) <= 'i') \
|
---|
5076 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5077 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5078 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5079 | #endif
|
---|
5080 |
|
---|
5081 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5082 | int
|
---|
5083 | main ()
|
---|
5084 | {
|
---|
5085 | int i;
|
---|
5086 | for (i = 0; i < 256; i++)
|
---|
5087 | if (XOR (islower (i), ISLOWER (i))
|
---|
5088 | || toupper (i) != TOUPPER (i))
|
---|
5089 | exit(2);
|
---|
5090 | exit (0);
|
---|
5091 | }
|
---|
5092 | _ACEOF
|
---|
5093 | rm -f conftest$ac_exeext
|
---|
5094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5095 | (eval $ac_link) 2>&5
|
---|
5096 | ac_status=$?
|
---|
5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5098 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5100 | (eval $ac_try) 2>&5
|
---|
5101 | ac_status=$?
|
---|
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5103 | (exit $ac_status); }; }; then
|
---|
5104 | :
|
---|
5105 | else
|
---|
5106 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5107 | echo "$as_me: failed program was:" >&5
|
---|
5108 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5109 |
|
---|
5110 | ( exit $ac_status )
|
---|
5111 | ac_cv_header_stdc=no
|
---|
5112 | fi
|
---|
5113 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5114 | fi
|
---|
5115 | fi
|
---|
5116 | fi
|
---|
5117 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5118 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
5119 | if test $ac_cv_header_stdc = yes; then
|
---|
5120 |
|
---|
5121 | cat >>confdefs.h <<\_ACEOF
|
---|
5122 | #define STDC_HEADERS 1
|
---|
5123 | _ACEOF
|
---|
5124 |
|
---|
5125 | fi
|
---|
5126 |
|
---|
5127 |
|
---|
5128 |
|
---|
5129 |
|
---|
5130 |
|
---|
5131 |
|
---|
5132 |
|
---|
5133 |
|
---|
5134 |
|
---|
5135 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
5136 | do
|
---|
5137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5139 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5142 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5143 | fi
|
---|
5144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5146 | else
|
---|
5147 | # Is the header compilable?
|
---|
5148 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5149 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
5150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5151 | /* confdefs.h. */
|
---|
5152 | _ACEOF
|
---|
5153 | cat confdefs.h >>conftest.$ac_ext
|
---|
5154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5155 | /* end confdefs.h. */
|
---|
5156 | $ac_includes_default
|
---|
5157 | #include <$ac_header>
|
---|
5158 | _ACEOF
|
---|
5159 | rm -f conftest.$ac_objext
|
---|
5160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5161 | (eval $ac_compile) 2>conftest.er1
|
---|
5162 | ac_status=$?
|
---|
5163 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5164 | rm -f conftest.er1
|
---|
5165 | cat conftest.err >&5
|
---|
5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5167 | (exit $ac_status); } &&
|
---|
5168 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5169 | || test ! -s conftest.err'
|
---|
5170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5171 | (eval $ac_try) 2>&5
|
---|
5172 | ac_status=$?
|
---|
5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5174 | (exit $ac_status); }; } &&
|
---|
5175 | { ac_try='test -s conftest.$ac_objext'
|
---|
5176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5177 | (eval $ac_try) 2>&5
|
---|
5178 | ac_status=$?
|
---|
5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5180 | (exit $ac_status); }; }; then
|
---|
5181 | ac_header_compiler=yes
|
---|
5182 | else
|
---|
5183 | echo "$as_me: failed program was:" >&5
|
---|
5184 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5185 |
|
---|
5186 | ac_header_compiler=no
|
---|
5187 | fi
|
---|
5188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5190 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5191 |
|
---|
5192 | # Is the header present?
|
---|
5193 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5194 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
5195 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5196 | /* confdefs.h. */
|
---|
5197 | _ACEOF
|
---|
5198 | cat confdefs.h >>conftest.$ac_ext
|
---|
5199 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5200 | /* end confdefs.h. */
|
---|
5201 | #include <$ac_header>
|
---|
5202 | _ACEOF
|
---|
5203 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5205 | ac_status=$?
|
---|
5206 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5207 | rm -f conftest.er1
|
---|
5208 | cat conftest.err >&5
|
---|
5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5210 | (exit $ac_status); } >/dev/null; then
|
---|
5211 | if test -s conftest.err; then
|
---|
5212 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5213 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5214 | else
|
---|
5215 | ac_cpp_err=
|
---|
5216 | fi
|
---|
5217 | else
|
---|
5218 | ac_cpp_err=yes
|
---|
5219 | fi
|
---|
5220 | if test -z "$ac_cpp_err"; then
|
---|
5221 | ac_header_preproc=yes
|
---|
5222 | else
|
---|
5223 | echo "$as_me: failed program was:" >&5
|
---|
5224 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5225 |
|
---|
5226 | ac_header_preproc=no
|
---|
5227 | fi
|
---|
5228 | rm -f conftest.err conftest.$ac_ext
|
---|
5229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5230 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5231 |
|
---|
5232 | # So? What about this header?
|
---|
5233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5234 | yes:no: )
|
---|
5235 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5236 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5238 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5239 | ac_header_preproc=yes
|
---|
5240 | ;;
|
---|
5241 | no:yes:* )
|
---|
5242 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5243 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5244 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5245 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5246 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5247 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5248 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5249 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5252 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5253 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5254 | (
|
---|
5255 | cat <<\_ASBOX
|
---|
5256 | ## ------------------------------------------ ##
|
---|
5257 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
5258 | ## ------------------------------------------ ##
|
---|
5259 | _ASBOX
|
---|
5260 | ) |
|
---|
5261 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5262 | ;;
|
---|
5263 | esac
|
---|
5264 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5266 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5267 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5268 | else
|
---|
5269 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5270 | fi
|
---|
5271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5273 |
|
---|
5274 | fi
|
---|
5275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5276 | cat >>confdefs.h <<_ACEOF
|
---|
5277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5278 | _ACEOF
|
---|
5279 |
|
---|
5280 | fi
|
---|
5281 |
|
---|
5282 | done
|
---|
5283 |
|
---|
5284 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5285 | /* confdefs.h. */
|
---|
5286 | _ACEOF
|
---|
5287 | cat confdefs.h >>conftest.$ac_ext
|
---|
5288 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5289 | /* end confdefs.h. */
|
---|
5290 | #include <stdio.h>
|
---|
5291 |
|
---|
5292 | _ACEOF
|
---|
5293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5294 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
5295 | cat >>confdefs.h <<\_ACEOF
|
---|
5296 | #define HAVE_FREAD_DECL 1
|
---|
5297 | _ACEOF
|
---|
5298 |
|
---|
5299 | fi
|
---|
5300 | rm -f conftest*
|
---|
5301 |
|
---|
5302 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5303 | /* confdefs.h. */
|
---|
5304 | _ACEOF
|
---|
5305 | cat confdefs.h >>conftest.$ac_ext
|
---|
5306 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5307 | /* end confdefs.h. */
|
---|
5308 | #include <stdio.h>
|
---|
5309 |
|
---|
5310 | _ACEOF
|
---|
5311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5312 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
5313 | cat >>confdefs.h <<\_ACEOF
|
---|
5314 | #define HAVE_FGETC_DECL 1
|
---|
5315 | _ACEOF
|
---|
5316 |
|
---|
5317 | fi
|
---|
5318 | rm -f conftest*
|
---|
5319 |
|
---|
5320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5321 | /* confdefs.h. */
|
---|
5322 | _ACEOF
|
---|
5323 | cat confdefs.h >>conftest.$ac_ext
|
---|
5324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5325 | /* end confdefs.h. */
|
---|
5326 | #include <sys/procfs.h>
|
---|
5327 |
|
---|
5328 | _ACEOF
|
---|
5329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5330 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
5331 | cat >>confdefs.h <<\_ACEOF
|
---|
5332 | #define HAVE_PR_BRKSIZE 1
|
---|
5333 | _ACEOF
|
---|
5334 |
|
---|
5335 | fi
|
---|
5336 | rm -f conftest*
|
---|
5337 |
|
---|
5338 |
|
---|
5339 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5340 | # for constant arguments. Useless!
|
---|
5341 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
5342 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
5343 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
5344 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5345 | else
|
---|
5346 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5347 | /* confdefs.h. */
|
---|
5348 | _ACEOF
|
---|
5349 | cat confdefs.h >>conftest.$ac_ext
|
---|
5350 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5351 | /* end confdefs.h. */
|
---|
5352 | #include <alloca.h>
|
---|
5353 | int
|
---|
5354 | main ()
|
---|
5355 | {
|
---|
5356 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5357 | ;
|
---|
5358 | return 0;
|
---|
5359 | }
|
---|
5360 | _ACEOF
|
---|
5361 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5363 | (eval $ac_link) 2>conftest.er1
|
---|
5364 | ac_status=$?
|
---|
5365 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5366 | rm -f conftest.er1
|
---|
5367 | cat conftest.err >&5
|
---|
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5369 | (exit $ac_status); } &&
|
---|
5370 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5371 | || test ! -s conftest.err'
|
---|
5372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5373 | (eval $ac_try) 2>&5
|
---|
5374 | ac_status=$?
|
---|
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5376 | (exit $ac_status); }; } &&
|
---|
5377 | { ac_try='test -s conftest$ac_exeext'
|
---|
5378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5379 | (eval $ac_try) 2>&5
|
---|
5380 | ac_status=$?
|
---|
5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5382 | (exit $ac_status); }; }; then
|
---|
5383 | ac_cv_working_alloca_h=yes
|
---|
5384 | else
|
---|
5385 | echo "$as_me: failed program was:" >&5
|
---|
5386 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5387 |
|
---|
5388 | ac_cv_working_alloca_h=no
|
---|
5389 | fi
|
---|
5390 | rm -f conftest.err conftest.$ac_objext \
|
---|
5391 | conftest$ac_exeext conftest.$ac_ext
|
---|
5392 | fi
|
---|
5393 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
5394 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
5395 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5396 |
|
---|
5397 | cat >>confdefs.h <<\_ACEOF
|
---|
5398 | #define HAVE_ALLOCA_H 1
|
---|
5399 | _ACEOF
|
---|
5400 |
|
---|
5401 | fi
|
---|
5402 |
|
---|
5403 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
5404 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
5405 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
5406 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5407 | else
|
---|
5408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5409 | /* confdefs.h. */
|
---|
5410 | _ACEOF
|
---|
5411 | cat confdefs.h >>conftest.$ac_ext
|
---|
5412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5413 | /* end confdefs.h. */
|
---|
5414 | #ifdef __GNUC__
|
---|
5415 | # define alloca __builtin_alloca
|
---|
5416 | #else
|
---|
5417 | # ifdef _MSC_VER
|
---|
5418 | # include <malloc.h>
|
---|
5419 | # define alloca _alloca
|
---|
5420 | # else
|
---|
5421 | # if HAVE_ALLOCA_H
|
---|
5422 | # include <alloca.h>
|
---|
5423 | # else
|
---|
5424 | # ifdef _AIX
|
---|
5425 | #pragma alloca
|
---|
5426 | # else
|
---|
5427 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5428 | char *alloca ();
|
---|
5429 | # endif
|
---|
5430 | # endif
|
---|
5431 | # endif
|
---|
5432 | # endif
|
---|
5433 | #endif
|
---|
5434 |
|
---|
5435 | int
|
---|
5436 | main ()
|
---|
5437 | {
|
---|
5438 | char *p = (char *) alloca (1);
|
---|
5439 | ;
|
---|
5440 | return 0;
|
---|
5441 | }
|
---|
5442 | _ACEOF
|
---|
5443 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5445 | (eval $ac_link) 2>conftest.er1
|
---|
5446 | ac_status=$?
|
---|
5447 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5448 | rm -f conftest.er1
|
---|
5449 | cat conftest.err >&5
|
---|
5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5451 | (exit $ac_status); } &&
|
---|
5452 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5453 | || test ! -s conftest.err'
|
---|
5454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5455 | (eval $ac_try) 2>&5
|
---|
5456 | ac_status=$?
|
---|
5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5458 | (exit $ac_status); }; } &&
|
---|
5459 | { ac_try='test -s conftest$ac_exeext'
|
---|
5460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5461 | (eval $ac_try) 2>&5
|
---|
5462 | ac_status=$?
|
---|
5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5464 | (exit $ac_status); }; }; then
|
---|
5465 | ac_cv_func_alloca_works=yes
|
---|
5466 | else
|
---|
5467 | echo "$as_me: failed program was:" >&5
|
---|
5468 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5469 |
|
---|
5470 | ac_cv_func_alloca_works=no
|
---|
5471 | fi
|
---|
5472 | rm -f conftest.err conftest.$ac_objext \
|
---|
5473 | conftest$ac_exeext conftest.$ac_ext
|
---|
5474 | fi
|
---|
5475 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
5476 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
5477 |
|
---|
5478 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5479 |
|
---|
5480 | cat >>confdefs.h <<\_ACEOF
|
---|
5481 | #define HAVE_ALLOCA 1
|
---|
5482 | _ACEOF
|
---|
5483 |
|
---|
5484 | else
|
---|
5485 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5486 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5487 | # contain a buggy version. If you still want to use their alloca,
|
---|
5488 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5489 |
|
---|
5490 | ALLOCA=alloca.$ac_objext
|
---|
5491 |
|
---|
5492 | cat >>confdefs.h <<\_ACEOF
|
---|
5493 | #define C_ALLOCA 1
|
---|
5494 | _ACEOF
|
---|
5495 |
|
---|
5496 |
|
---|
5497 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5498 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
5499 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
5500 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5501 | else
|
---|
5502 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5503 | /* confdefs.h. */
|
---|
5504 | _ACEOF
|
---|
5505 | cat confdefs.h >>conftest.$ac_ext
|
---|
5506 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5507 | /* end confdefs.h. */
|
---|
5508 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
5509 | webecray
|
---|
5510 | #else
|
---|
5511 | wenotbecray
|
---|
5512 | #endif
|
---|
5513 |
|
---|
5514 | _ACEOF
|
---|
5515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5516 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
5517 | ac_cv_os_cray=yes
|
---|
5518 | else
|
---|
5519 | ac_cv_os_cray=no
|
---|
5520 | fi
|
---|
5521 | rm -f conftest*
|
---|
5522 |
|
---|
5523 | fi
|
---|
5524 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
5525 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
5526 | if test $ac_cv_os_cray = yes; then
|
---|
5527 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5528 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5529 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5530 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5531 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5532 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5533 | else
|
---|
5534 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5535 | /* confdefs.h. */
|
---|
5536 | _ACEOF
|
---|
5537 | cat confdefs.h >>conftest.$ac_ext
|
---|
5538 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5539 | /* end confdefs.h. */
|
---|
5540 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5541 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5542 | #define $ac_func innocuous_$ac_func
|
---|
5543 |
|
---|
5544 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5545 | which can conflict with char $ac_func (); below.
|
---|
5546 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5547 | <limits.h> exists even on freestanding compilers. */
|
---|
5548 |
|
---|
5549 | #ifdef __STDC__
|
---|
5550 | # include <limits.h>
|
---|
5551 | #else
|
---|
5552 | # include <assert.h>
|
---|
5553 | #endif
|
---|
5554 |
|
---|
5555 | #undef $ac_func
|
---|
5556 |
|
---|
5557 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5558 | #ifdef __cplusplus
|
---|
5559 | extern "C"
|
---|
5560 | {
|
---|
5561 | #endif
|
---|
5562 | /* We use char because int might match the return type of a gcc2
|
---|
5563 | builtin and then its argument prototype would still apply. */
|
---|
5564 | char $ac_func ();
|
---|
5565 | /* The GNU C library defines this for functions which it implements
|
---|
5566 | to always fail with ENOSYS. Some functions are actually named
|
---|
5567 | something starting with __ and the normal name is an alias. */
|
---|
5568 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5569 | choke me
|
---|
5570 | #else
|
---|
5571 | char (*f) () = $ac_func;
|
---|
5572 | #endif
|
---|
5573 | #ifdef __cplusplus
|
---|
5574 | }
|
---|
5575 | #endif
|
---|
5576 |
|
---|
5577 | int
|
---|
5578 | main ()
|
---|
5579 | {
|
---|
5580 | return f != $ac_func;
|
---|
5581 | ;
|
---|
5582 | return 0;
|
---|
5583 | }
|
---|
5584 | _ACEOF
|
---|
5585 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5587 | (eval $ac_link) 2>conftest.er1
|
---|
5588 | ac_status=$?
|
---|
5589 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5590 | rm -f conftest.er1
|
---|
5591 | cat conftest.err >&5
|
---|
5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5593 | (exit $ac_status); } &&
|
---|
5594 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5595 | || test ! -s conftest.err'
|
---|
5596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5597 | (eval $ac_try) 2>&5
|
---|
5598 | ac_status=$?
|
---|
5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5600 | (exit $ac_status); }; } &&
|
---|
5601 | { ac_try='test -s conftest$ac_exeext'
|
---|
5602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5603 | (eval $ac_try) 2>&5
|
---|
5604 | ac_status=$?
|
---|
5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5606 | (exit $ac_status); }; }; then
|
---|
5607 | eval "$as_ac_var=yes"
|
---|
5608 | else
|
---|
5609 | echo "$as_me: failed program was:" >&5
|
---|
5610 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5611 |
|
---|
5612 | eval "$as_ac_var=no"
|
---|
5613 | fi
|
---|
5614 | rm -f conftest.err conftest.$ac_objext \
|
---|
5615 | conftest$ac_exeext conftest.$ac_ext
|
---|
5616 | fi
|
---|
5617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5618 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5619 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5620 |
|
---|
5621 | cat >>confdefs.h <<_ACEOF
|
---|
5622 | #define CRAY_STACKSEG_END $ac_func
|
---|
5623 | _ACEOF
|
---|
5624 |
|
---|
5625 | break
|
---|
5626 | fi
|
---|
5627 |
|
---|
5628 | done
|
---|
5629 | fi
|
---|
5630 |
|
---|
5631 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
5632 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
5633 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
5634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5635 | else
|
---|
5636 | if test "$cross_compiling" = yes; then
|
---|
5637 | ac_cv_c_stack_direction=0
|
---|
5638 | else
|
---|
5639 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5640 | /* confdefs.h. */
|
---|
5641 | _ACEOF
|
---|
5642 | cat confdefs.h >>conftest.$ac_ext
|
---|
5643 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5644 | /* end confdefs.h. */
|
---|
5645 | int
|
---|
5646 | find_stack_direction ()
|
---|
5647 | {
|
---|
5648 | static char *addr = 0;
|
---|
5649 | auto char dummy;
|
---|
5650 | if (addr == 0)
|
---|
5651 | {
|
---|
5652 | addr = &dummy;
|
---|
5653 | return find_stack_direction ();
|
---|
5654 | }
|
---|
5655 | else
|
---|
5656 | return (&dummy > addr) ? 1 : -1;
|
---|
5657 | }
|
---|
5658 |
|
---|
5659 | int
|
---|
5660 | main ()
|
---|
5661 | {
|
---|
5662 | exit (find_stack_direction () < 0);
|
---|
5663 | }
|
---|
5664 | _ACEOF
|
---|
5665 | rm -f conftest$ac_exeext
|
---|
5666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5667 | (eval $ac_link) 2>&5
|
---|
5668 | ac_status=$?
|
---|
5669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5672 | (eval $ac_try) 2>&5
|
---|
5673 | ac_status=$?
|
---|
5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5675 | (exit $ac_status); }; }; then
|
---|
5676 | ac_cv_c_stack_direction=1
|
---|
5677 | else
|
---|
5678 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5679 | echo "$as_me: failed program was:" >&5
|
---|
5680 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5681 |
|
---|
5682 | ( exit $ac_status )
|
---|
5683 | ac_cv_c_stack_direction=-1
|
---|
5684 | fi
|
---|
5685 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5686 | fi
|
---|
5687 | fi
|
---|
5688 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
5689 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
5690 |
|
---|
5691 | cat >>confdefs.h <<_ACEOF
|
---|
5692 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5693 | _ACEOF
|
---|
5694 |
|
---|
5695 |
|
---|
5696 | fi
|
---|
5697 |
|
---|
5698 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5699 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
5700 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
5701 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
5702 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5703 | else
|
---|
5704 | ac_pattern="Autoconf.*'x'"
|
---|
5705 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5706 | /* confdefs.h. */
|
---|
5707 | _ACEOF
|
---|
5708 | cat confdefs.h >>conftest.$ac_ext
|
---|
5709 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5710 | /* end confdefs.h. */
|
---|
5711 | #include <sgtty.h>
|
---|
5712 | Autoconf TIOCGETP
|
---|
5713 | _ACEOF
|
---|
5714 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5715 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5716 | ac_cv_prog_gcc_traditional=yes
|
---|
5717 | else
|
---|
5718 | ac_cv_prog_gcc_traditional=no
|
---|
5719 | fi
|
---|
5720 | rm -f conftest*
|
---|
5721 |
|
---|
5722 |
|
---|
5723 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5724 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5725 | /* confdefs.h. */
|
---|
5726 | _ACEOF
|
---|
5727 | cat confdefs.h >>conftest.$ac_ext
|
---|
5728 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5729 | /* end confdefs.h. */
|
---|
5730 | #include <termio.h>
|
---|
5731 | Autoconf TCGETA
|
---|
5732 | _ACEOF
|
---|
5733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5734 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5735 | ac_cv_prog_gcc_traditional=yes
|
---|
5736 | fi
|
---|
5737 | rm -f conftest*
|
---|
5738 |
|
---|
5739 | fi
|
---|
5740 | fi
|
---|
5741 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5742 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
5743 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5744 | CC="$CC -traditional"
|
---|
5745 | fi
|
---|
5746 | fi
|
---|
5747 |
|
---|
5748 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
5749 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
5750 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
5751 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5752 | else
|
---|
5753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5754 | /* confdefs.h. */
|
---|
5755 | _ACEOF
|
---|
5756 | cat confdefs.h >>conftest.$ac_ext
|
---|
5757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5758 | /* end confdefs.h. */
|
---|
5759 | #include <sys/types.h>
|
---|
5760 | #include <signal.h>
|
---|
5761 | #ifdef signal
|
---|
5762 | # undef signal
|
---|
5763 | #endif
|
---|
5764 | #ifdef __cplusplus
|
---|
5765 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
5766 | #else
|
---|
5767 | void (*signal ()) ();
|
---|
5768 | #endif
|
---|
5769 |
|
---|
5770 | int
|
---|
5771 | main ()
|
---|
5772 | {
|
---|
5773 | int i;
|
---|
5774 | ;
|
---|
5775 | return 0;
|
---|
5776 | }
|
---|
5777 | _ACEOF
|
---|
5778 | rm -f conftest.$ac_objext
|
---|
5779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5780 | (eval $ac_compile) 2>conftest.er1
|
---|
5781 | ac_status=$?
|
---|
5782 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5783 | rm -f conftest.er1
|
---|
5784 | cat conftest.err >&5
|
---|
5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5786 | (exit $ac_status); } &&
|
---|
5787 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5788 | || test ! -s conftest.err'
|
---|
5789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5790 | (eval $ac_try) 2>&5
|
---|
5791 | ac_status=$?
|
---|
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5793 | (exit $ac_status); }; } &&
|
---|
5794 | { ac_try='test -s conftest.$ac_objext'
|
---|
5795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5796 | (eval $ac_try) 2>&5
|
---|
5797 | ac_status=$?
|
---|
5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5799 | (exit $ac_status); }; }; then
|
---|
5800 | ac_cv_type_signal=void
|
---|
5801 | else
|
---|
5802 | echo "$as_me: failed program was:" >&5
|
---|
5803 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5804 |
|
---|
5805 | ac_cv_type_signal=int
|
---|
5806 | fi
|
---|
5807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5808 | fi
|
---|
5809 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
5810 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
5811 |
|
---|
5812 | cat >>confdefs.h <<_ACEOF
|
---|
5813 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5814 | _ACEOF
|
---|
5815 |
|
---|
5816 |
|
---|
5817 |
|
---|
5818 | for ac_func in vprintf
|
---|
5819 | do
|
---|
5820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5821 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5823 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5824 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5825 | else
|
---|
5826 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5827 | /* confdefs.h. */
|
---|
5828 | _ACEOF
|
---|
5829 | cat confdefs.h >>conftest.$ac_ext
|
---|
5830 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5831 | /* end confdefs.h. */
|
---|
5832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5834 | #define $ac_func innocuous_$ac_func
|
---|
5835 |
|
---|
5836 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5837 | which can conflict with char $ac_func (); below.
|
---|
5838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5839 | <limits.h> exists even on freestanding compilers. */
|
---|
5840 |
|
---|
5841 | #ifdef __STDC__
|
---|
5842 | # include <limits.h>
|
---|
5843 | #else
|
---|
5844 | # include <assert.h>
|
---|
5845 | #endif
|
---|
5846 |
|
---|
5847 | #undef $ac_func
|
---|
5848 |
|
---|
5849 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5850 | #ifdef __cplusplus
|
---|
5851 | extern "C"
|
---|
5852 | {
|
---|
5853 | #endif
|
---|
5854 | /* We use char because int might match the return type of a gcc2
|
---|
5855 | builtin and then its argument prototype would still apply. */
|
---|
5856 | char $ac_func ();
|
---|
5857 | /* The GNU C library defines this for functions which it implements
|
---|
5858 | to always fail with ENOSYS. Some functions are actually named
|
---|
5859 | something starting with __ and the normal name is an alias. */
|
---|
5860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5861 | choke me
|
---|
5862 | #else
|
---|
5863 | char (*f) () = $ac_func;
|
---|
5864 | #endif
|
---|
5865 | #ifdef __cplusplus
|
---|
5866 | }
|
---|
5867 | #endif
|
---|
5868 |
|
---|
5869 | int
|
---|
5870 | main ()
|
---|
5871 | {
|
---|
5872 | return f != $ac_func;
|
---|
5873 | ;
|
---|
5874 | return 0;
|
---|
5875 | }
|
---|
5876 | _ACEOF
|
---|
5877 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5879 | (eval $ac_link) 2>conftest.er1
|
---|
5880 | ac_status=$?
|
---|
5881 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5882 | rm -f conftest.er1
|
---|
5883 | cat conftest.err >&5
|
---|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5885 | (exit $ac_status); } &&
|
---|
5886 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5887 | || test ! -s conftest.err'
|
---|
5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5889 | (eval $ac_try) 2>&5
|
---|
5890 | ac_status=$?
|
---|
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5892 | (exit $ac_status); }; } &&
|
---|
5893 | { ac_try='test -s conftest$ac_exeext'
|
---|
5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5895 | (eval $ac_try) 2>&5
|
---|
5896 | ac_status=$?
|
---|
5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5898 | (exit $ac_status); }; }; then
|
---|
5899 | eval "$as_ac_var=yes"
|
---|
5900 | else
|
---|
5901 | echo "$as_me: failed program was:" >&5
|
---|
5902 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5903 |
|
---|
5904 | eval "$as_ac_var=no"
|
---|
5905 | fi
|
---|
5906 | rm -f conftest.err conftest.$ac_objext \
|
---|
5907 | conftest$ac_exeext conftest.$ac_ext
|
---|
5908 | fi
|
---|
5909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5911 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5912 | cat >>confdefs.h <<_ACEOF
|
---|
5913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
5914 | _ACEOF
|
---|
5915 |
|
---|
5916 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
5917 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
5918 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
5919 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5920 | else
|
---|
5921 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5922 | /* confdefs.h. */
|
---|
5923 | _ACEOF
|
---|
5924 | cat confdefs.h >>conftest.$ac_ext
|
---|
5925 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5926 | /* end confdefs.h. */
|
---|
5927 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
5928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5929 | #define _doprnt innocuous__doprnt
|
---|
5930 |
|
---|
5931 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5932 | which can conflict with char _doprnt (); below.
|
---|
5933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5934 | <limits.h> exists even on freestanding compilers. */
|
---|
5935 |
|
---|
5936 | #ifdef __STDC__
|
---|
5937 | # include <limits.h>
|
---|
5938 | #else
|
---|
5939 | # include <assert.h>
|
---|
5940 | #endif
|
---|
5941 |
|
---|
5942 | #undef _doprnt
|
---|
5943 |
|
---|
5944 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5945 | #ifdef __cplusplus
|
---|
5946 | extern "C"
|
---|
5947 | {
|
---|
5948 | #endif
|
---|
5949 | /* We use char because int might match the return type of a gcc2
|
---|
5950 | builtin and then its argument prototype would still apply. */
|
---|
5951 | char _doprnt ();
|
---|
5952 | /* The GNU C library defines this for functions which it implements
|
---|
5953 | to always fail with ENOSYS. Some functions are actually named
|
---|
5954 | something starting with __ and the normal name is an alias. */
|
---|
5955 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
5956 | choke me
|
---|
5957 | #else
|
---|
5958 | char (*f) () = _doprnt;
|
---|
5959 | #endif
|
---|
5960 | #ifdef __cplusplus
|
---|
5961 | }
|
---|
5962 | #endif
|
---|
5963 |
|
---|
5964 | int
|
---|
5965 | main ()
|
---|
5966 | {
|
---|
5967 | return f != _doprnt;
|
---|
5968 | ;
|
---|
5969 | return 0;
|
---|
5970 | }
|
---|
5971 | _ACEOF
|
---|
5972 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5974 | (eval $ac_link) 2>conftest.er1
|
---|
5975 | ac_status=$?
|
---|
5976 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5977 | rm -f conftest.er1
|
---|
5978 | cat conftest.err >&5
|
---|
5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5980 | (exit $ac_status); } &&
|
---|
5981 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5982 | || test ! -s conftest.err'
|
---|
5983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5984 | (eval $ac_try) 2>&5
|
---|
5985 | ac_status=$?
|
---|
5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5987 | (exit $ac_status); }; } &&
|
---|
5988 | { ac_try='test -s conftest$ac_exeext'
|
---|
5989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5990 | (eval $ac_try) 2>&5
|
---|
5991 | ac_status=$?
|
---|
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5993 | (exit $ac_status); }; }; then
|
---|
5994 | ac_cv_func__doprnt=yes
|
---|
5995 | else
|
---|
5996 | echo "$as_me: failed program was:" >&5
|
---|
5997 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5998 |
|
---|
5999 | ac_cv_func__doprnt=no
|
---|
6000 | fi
|
---|
6001 | rm -f conftest.err conftest.$ac_objext \
|
---|
6002 | conftest$ac_exeext conftest.$ac_ext
|
---|
6003 | fi
|
---|
6004 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6005 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
6006 | if test $ac_cv_func__doprnt = yes; then
|
---|
6007 |
|
---|
6008 | cat >>confdefs.h <<\_ACEOF
|
---|
6009 | #define HAVE_DOPRNT 1
|
---|
6010 | _ACEOF
|
---|
6011 |
|
---|
6012 | fi
|
---|
6013 |
|
---|
6014 | fi
|
---|
6015 | done
|
---|
6016 |
|
---|
6017 |
|
---|
6018 |
|
---|
6019 |
|
---|
6020 |
|
---|
6021 |
|
---|
6022 |
|
---|
6023 |
|
---|
6024 |
|
---|
6025 |
|
---|
6026 |
|
---|
6027 |
|
---|
6028 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6029 | do
|
---|
6030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6031 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6033 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6035 | else
|
---|
6036 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6037 | /* confdefs.h. */
|
---|
6038 | _ACEOF
|
---|
6039 | cat confdefs.h >>conftest.$ac_ext
|
---|
6040 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6041 | /* end confdefs.h. */
|
---|
6042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6044 | #define $ac_func innocuous_$ac_func
|
---|
6045 |
|
---|
6046 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6047 | which can conflict with char $ac_func (); below.
|
---|
6048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6049 | <limits.h> exists even on freestanding compilers. */
|
---|
6050 |
|
---|
6051 | #ifdef __STDC__
|
---|
6052 | # include <limits.h>
|
---|
6053 | #else
|
---|
6054 | # include <assert.h>
|
---|
6055 | #endif
|
---|
6056 |
|
---|
6057 | #undef $ac_func
|
---|
6058 |
|
---|
6059 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6060 | #ifdef __cplusplus
|
---|
6061 | extern "C"
|
---|
6062 | {
|
---|
6063 | #endif
|
---|
6064 | /* We use char because int might match the return type of a gcc2
|
---|
6065 | builtin and then its argument prototype would still apply. */
|
---|
6066 | char $ac_func ();
|
---|
6067 | /* The GNU C library defines this for functions which it implements
|
---|
6068 | to always fail with ENOSYS. Some functions are actually named
|
---|
6069 | something starting with __ and the normal name is an alias. */
|
---|
6070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6071 | choke me
|
---|
6072 | #else
|
---|
6073 | char (*f) () = $ac_func;
|
---|
6074 | #endif
|
---|
6075 | #ifdef __cplusplus
|
---|
6076 | }
|
---|
6077 | #endif
|
---|
6078 |
|
---|
6079 | int
|
---|
6080 | main ()
|
---|
6081 | {
|
---|
6082 | return f != $ac_func;
|
---|
6083 | ;
|
---|
6084 | return 0;
|
---|
6085 | }
|
---|
6086 | _ACEOF
|
---|
6087 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6089 | (eval $ac_link) 2>conftest.er1
|
---|
6090 | ac_status=$?
|
---|
6091 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6092 | rm -f conftest.er1
|
---|
6093 | cat conftest.err >&5
|
---|
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6095 | (exit $ac_status); } &&
|
---|
6096 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6097 | || test ! -s conftest.err'
|
---|
6098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6099 | (eval $ac_try) 2>&5
|
---|
6100 | ac_status=$?
|
---|
6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6102 | (exit $ac_status); }; } &&
|
---|
6103 | { ac_try='test -s conftest$ac_exeext'
|
---|
6104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6105 | (eval $ac_try) 2>&5
|
---|
6106 | ac_status=$?
|
---|
6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6108 | (exit $ac_status); }; }; then
|
---|
6109 | eval "$as_ac_var=yes"
|
---|
6110 | else
|
---|
6111 | echo "$as_me: failed program was:" >&5
|
---|
6112 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6113 |
|
---|
6114 | eval "$as_ac_var=no"
|
---|
6115 | fi
|
---|
6116 | rm -f conftest.err conftest.$ac_objext \
|
---|
6117 | conftest$ac_exeext conftest.$ac_ext
|
---|
6118 | fi
|
---|
6119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6120 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6121 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6122 | cat >>confdefs.h <<_ACEOF
|
---|
6123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6124 | _ACEOF
|
---|
6125 |
|
---|
6126 | fi
|
---|
6127 | done
|
---|
6128 |
|
---|
6129 |
|
---|
6130 |
|
---|
6131 |
|
---|
6132 | for ac_func in ftruncate strstr strcasecmp
|
---|
6133 | do
|
---|
6134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6135 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6137 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6138 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6139 | else
|
---|
6140 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6141 | /* confdefs.h. */
|
---|
6142 | _ACEOF
|
---|
6143 | cat confdefs.h >>conftest.$ac_ext
|
---|
6144 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6145 | /* end confdefs.h. */
|
---|
6146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6148 | #define $ac_func innocuous_$ac_func
|
---|
6149 |
|
---|
6150 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6151 | which can conflict with char $ac_func (); below.
|
---|
6152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6153 | <limits.h> exists even on freestanding compilers. */
|
---|
6154 |
|
---|
6155 | #ifdef __STDC__
|
---|
6156 | # include <limits.h>
|
---|
6157 | #else
|
---|
6158 | # include <assert.h>
|
---|
6159 | #endif
|
---|
6160 |
|
---|
6161 | #undef $ac_func
|
---|
6162 |
|
---|
6163 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6164 | #ifdef __cplusplus
|
---|
6165 | extern "C"
|
---|
6166 | {
|
---|
6167 | #endif
|
---|
6168 | /* We use char because int might match the return type of a gcc2
|
---|
6169 | builtin and then its argument prototype would still apply. */
|
---|
6170 | char $ac_func ();
|
---|
6171 | /* The GNU C library defines this for functions which it implements
|
---|
6172 | to always fail with ENOSYS. Some functions are actually named
|
---|
6173 | something starting with __ and the normal name is an alias. */
|
---|
6174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6175 | choke me
|
---|
6176 | #else
|
---|
6177 | char (*f) () = $ac_func;
|
---|
6178 | #endif
|
---|
6179 | #ifdef __cplusplus
|
---|
6180 | }
|
---|
6181 | #endif
|
---|
6182 |
|
---|
6183 | int
|
---|
6184 | main ()
|
---|
6185 | {
|
---|
6186 | return f != $ac_func;
|
---|
6187 | ;
|
---|
6188 | return 0;
|
---|
6189 | }
|
---|
6190 | _ACEOF
|
---|
6191 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6193 | (eval $ac_link) 2>conftest.er1
|
---|
6194 | ac_status=$?
|
---|
6195 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6196 | rm -f conftest.er1
|
---|
6197 | cat conftest.err >&5
|
---|
6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6199 | (exit $ac_status); } &&
|
---|
6200 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6201 | || test ! -s conftest.err'
|
---|
6202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6203 | (eval $ac_try) 2>&5
|
---|
6204 | ac_status=$?
|
---|
6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6206 | (exit $ac_status); }; } &&
|
---|
6207 | { ac_try='test -s conftest$ac_exeext'
|
---|
6208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6209 | (eval $ac_try) 2>&5
|
---|
6210 | ac_status=$?
|
---|
6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6212 | (exit $ac_status); }; }; then
|
---|
6213 | eval "$as_ac_var=yes"
|
---|
6214 | else
|
---|
6215 | echo "$as_me: failed program was:" >&5
|
---|
6216 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6217 |
|
---|
6218 | eval "$as_ac_var=no"
|
---|
6219 | fi
|
---|
6220 | rm -f conftest.err conftest.$ac_objext \
|
---|
6221 | conftest$ac_exeext conftest.$ac_ext
|
---|
6222 | fi
|
---|
6223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6225 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6226 | cat >>confdefs.h <<_ACEOF
|
---|
6227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6228 | _ACEOF
|
---|
6229 |
|
---|
6230 | else
|
---|
6231 | case $LIBOBJS in
|
---|
6232 | "$ac_func.$ac_objext" | \
|
---|
6233 | *" $ac_func.$ac_objext" | \
|
---|
6234 | "$ac_func.$ac_objext "* | \
|
---|
6235 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6236 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
6237 | esac
|
---|
6238 |
|
---|
6239 | fi
|
---|
6240 | done
|
---|
6241 |
|
---|
6242 |
|
---|
6243 |
|
---|
6244 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
6245 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
6246 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
6247 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6248 | else
|
---|
6249 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6250 | /* confdefs.h. */
|
---|
6251 | _ACEOF
|
---|
6252 | cat confdefs.h >>conftest.$ac_ext
|
---|
6253 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6254 | /* end confdefs.h. */
|
---|
6255 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
6256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6257 | #define textdomain innocuous_textdomain
|
---|
6258 |
|
---|
6259 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6260 | which can conflict with char textdomain (); below.
|
---|
6261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6262 | <limits.h> exists even on freestanding compilers. */
|
---|
6263 |
|
---|
6264 | #ifdef __STDC__
|
---|
6265 | # include <limits.h>
|
---|
6266 | #else
|
---|
6267 | # include <assert.h>
|
---|
6268 | #endif
|
---|
6269 |
|
---|
6270 | #undef textdomain
|
---|
6271 |
|
---|
6272 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6273 | #ifdef __cplusplus
|
---|
6274 | extern "C"
|
---|
6275 | {
|
---|
6276 | #endif
|
---|
6277 | /* We use char because int might match the return type of a gcc2
|
---|
6278 | builtin and then its argument prototype would still apply. */
|
---|
6279 | char textdomain ();
|
---|
6280 | /* The GNU C library defines this for functions which it implements
|
---|
6281 | to always fail with ENOSYS. Some functions are actually named
|
---|
6282 | something starting with __ and the normal name is an alias. */
|
---|
6283 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
6284 | choke me
|
---|
6285 | #else
|
---|
6286 | char (*f) () = textdomain;
|
---|
6287 | #endif
|
---|
6288 | #ifdef __cplusplus
|
---|
6289 | }
|
---|
6290 | #endif
|
---|
6291 |
|
---|
6292 | int
|
---|
6293 | main ()
|
---|
6294 | {
|
---|
6295 | return f != textdomain;
|
---|
6296 | ;
|
---|
6297 | return 0;
|
---|
6298 | }
|
---|
6299 | _ACEOF
|
---|
6300 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6302 | (eval $ac_link) 2>conftest.er1
|
---|
6303 | ac_status=$?
|
---|
6304 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6305 | rm -f conftest.er1
|
---|
6306 | cat conftest.err >&5
|
---|
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6308 | (exit $ac_status); } &&
|
---|
6309 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6310 | || test ! -s conftest.err'
|
---|
6311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6312 | (eval $ac_try) 2>&5
|
---|
6313 | ac_status=$?
|
---|
6314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6315 | (exit $ac_status); }; } &&
|
---|
6316 | { ac_try='test -s conftest$ac_exeext'
|
---|
6317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6318 | (eval $ac_try) 2>&5
|
---|
6319 | ac_status=$?
|
---|
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6321 | (exit $ac_status); }; }; then
|
---|
6322 | ac_cv_func_textdomain=yes
|
---|
6323 | else
|
---|
6324 | echo "$as_me: failed program was:" >&5
|
---|
6325 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6326 |
|
---|
6327 | ac_cv_func_textdomain=no
|
---|
6328 | fi
|
---|
6329 | rm -f conftest.err conftest.$ac_objext \
|
---|
6330 | conftest$ac_exeext conftest.$ac_ext
|
---|
6331 | fi
|
---|
6332 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
6333 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
6334 | if test $ac_cv_func_textdomain = yes; then
|
---|
6335 | cat >>confdefs.h <<\_ACEOF
|
---|
6336 | #define ENABLE_NLS 1
|
---|
6337 | _ACEOF
|
---|
6338 |
|
---|
6339 | fi
|
---|
6340 |
|
---|
6341 |
|
---|
6342 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6343 | # ---------------------------------------------------------------------------
|
---|
6344 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
6345 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
6346 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6347 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6348 | echo "${ECHO_T}yes" >&6
|
---|
6349 | case $LIBOBJS in
|
---|
6350 | "gmalloc.$ac_objext" | \
|
---|
6351 | *" gmalloc.$ac_objext" | \
|
---|
6352 | "gmalloc.$ac_objext "* | \
|
---|
6353 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6354 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
6355 | esac
|
---|
6356 |
|
---|
6357 | cat >>confdefs.h <<\_ACEOF
|
---|
6358 | #define HAVE_VALLOC 1
|
---|
6359 | _ACEOF
|
---|
6360 |
|
---|
6361 | else
|
---|
6362 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6363 | echo "${ECHO_T}no" >&6
|
---|
6364 |
|
---|
6365 | for ac_func in valloc
|
---|
6366 | do
|
---|
6367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6368 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6370 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6371 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6372 | else
|
---|
6373 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6374 | /* confdefs.h. */
|
---|
6375 | _ACEOF
|
---|
6376 | cat confdefs.h >>conftest.$ac_ext
|
---|
6377 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6378 | /* end confdefs.h. */
|
---|
6379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6381 | #define $ac_func innocuous_$ac_func
|
---|
6382 |
|
---|
6383 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6384 | which can conflict with char $ac_func (); below.
|
---|
6385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6386 | <limits.h> exists even on freestanding compilers. */
|
---|
6387 |
|
---|
6388 | #ifdef __STDC__
|
---|
6389 | # include <limits.h>
|
---|
6390 | #else
|
---|
6391 | # include <assert.h>
|
---|
6392 | #endif
|
---|
6393 |
|
---|
6394 | #undef $ac_func
|
---|
6395 |
|
---|
6396 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6397 | #ifdef __cplusplus
|
---|
6398 | extern "C"
|
---|
6399 | {
|
---|
6400 | #endif
|
---|
6401 | /* We use char because int might match the return type of a gcc2
|
---|
6402 | builtin and then its argument prototype would still apply. */
|
---|
6403 | char $ac_func ();
|
---|
6404 | /* The GNU C library defines this for functions which it implements
|
---|
6405 | to always fail with ENOSYS. Some functions are actually named
|
---|
6406 | something starting with __ and the normal name is an alias. */
|
---|
6407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6408 | choke me
|
---|
6409 | #else
|
---|
6410 | char (*f) () = $ac_func;
|
---|
6411 | #endif
|
---|
6412 | #ifdef __cplusplus
|
---|
6413 | }
|
---|
6414 | #endif
|
---|
6415 |
|
---|
6416 | int
|
---|
6417 | main ()
|
---|
6418 | {
|
---|
6419 | return f != $ac_func;
|
---|
6420 | ;
|
---|
6421 | return 0;
|
---|
6422 | }
|
---|
6423 | _ACEOF
|
---|
6424 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6426 | (eval $ac_link) 2>conftest.er1
|
---|
6427 | ac_status=$?
|
---|
6428 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6429 | rm -f conftest.er1
|
---|
6430 | cat conftest.err >&5
|
---|
6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6432 | (exit $ac_status); } &&
|
---|
6433 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6434 | || test ! -s conftest.err'
|
---|
6435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6436 | (eval $ac_try) 2>&5
|
---|
6437 | ac_status=$?
|
---|
6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6439 | (exit $ac_status); }; } &&
|
---|
6440 | { ac_try='test -s conftest$ac_exeext'
|
---|
6441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6442 | (eval $ac_try) 2>&5
|
---|
6443 | ac_status=$?
|
---|
6444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6445 | (exit $ac_status); }; }; then
|
---|
6446 | eval "$as_ac_var=yes"
|
---|
6447 | else
|
---|
6448 | echo "$as_me: failed program was:" >&5
|
---|
6449 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6450 |
|
---|
6451 | eval "$as_ac_var=no"
|
---|
6452 | fi
|
---|
6453 | rm -f conftest.err conftest.$ac_objext \
|
---|
6454 | conftest$ac_exeext conftest.$ac_ext
|
---|
6455 | fi
|
---|
6456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6458 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6459 | cat >>confdefs.h <<_ACEOF
|
---|
6460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6461 | _ACEOF
|
---|
6462 |
|
---|
6463 | fi
|
---|
6464 | done
|
---|
6465 |
|
---|
6466 | fi
|
---|
6467 |
|
---|
6468 | # we cannot generate static libraries under Darwin
|
---|
6469 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
6470 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
6471 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6472 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6473 | echo "${ECHO_T}yes" >&6
|
---|
6474 | STATIC=""
|
---|
6475 | else
|
---|
6476 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6477 | echo "${ECHO_T}no" >&6
|
---|
6478 | STATIC="-static "
|
---|
6479 | fi
|
---|
6480 |
|
---|
6481 |
|
---|
6482 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
6483 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
6484 |
|
---|
6485 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
6486 | if test "${with_dmalloc+set}" = set; then
|
---|
6487 | withval="$with_dmalloc"
|
---|
6488 | if test "$withval" = yes; then
|
---|
6489 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6490 | echo "${ECHO_T}yes" >&6
|
---|
6491 | cat >>confdefs.h <<\_ACEOF
|
---|
6492 | #define WITH_DMALLOC 1
|
---|
6493 | _ACEOF
|
---|
6494 |
|
---|
6495 | LIBS="$LIBS -ldmalloc"
|
---|
6496 | LDFLAGS="$LDFLAGS -g"
|
---|
6497 | else
|
---|
6498 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6499 | echo "${ECHO_T}no" >&6
|
---|
6500 | fi
|
---|
6501 | else
|
---|
6502 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6503 | echo "${ECHO_T}no" >&6
|
---|
6504 | fi;
|
---|
6505 |
|
---|
6506 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
6507 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
6508 |
|
---|
6509 | # Check whether --with-regex or --without-regex was given.
|
---|
6510 | if test "${with_regex+set}" = set; then
|
---|
6511 | withval="$with_regex"
|
---|
6512 | if test "$withval" = yes; then
|
---|
6513 | ac_with_regex=1
|
---|
6514 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
6515 | echo "${ECHO_T}regex" >&6
|
---|
6516 | cat >>confdefs.h <<\_ACEOF
|
---|
6517 | #define WITH_REGEX 1
|
---|
6518 | _ACEOF
|
---|
6519 |
|
---|
6520 | case $LIBOBJS in
|
---|
6521 | "regex.$ac_objext" | \
|
---|
6522 | *" regex.$ac_objext" | \
|
---|
6523 | "regex.$ac_objext "* | \
|
---|
6524 | *" regex.$ac_objext "* ) ;;
|
---|
6525 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
6526 | esac
|
---|
6527 |
|
---|
6528 | fi
|
---|
6529 | fi;
|
---|
6530 | if test -z "$ac_with_regex"; then
|
---|
6531 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
6532 | echo "${ECHO_T}rx" >&6
|
---|
6533 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
6534 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
6535 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
6536 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6537 | else
|
---|
6538 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6539 | /* confdefs.h. */
|
---|
6540 | _ACEOF
|
---|
6541 | cat confdefs.h >>conftest.$ac_ext
|
---|
6542 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6543 | /* end confdefs.h. */
|
---|
6544 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
6545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6546 | #define re_rx_search innocuous_re_rx_search
|
---|
6547 |
|
---|
6548 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6549 | which can conflict with char re_rx_search (); below.
|
---|
6550 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6551 | <limits.h> exists even on freestanding compilers. */
|
---|
6552 |
|
---|
6553 | #ifdef __STDC__
|
---|
6554 | # include <limits.h>
|
---|
6555 | #else
|
---|
6556 | # include <assert.h>
|
---|
6557 | #endif
|
---|
6558 |
|
---|
6559 | #undef re_rx_search
|
---|
6560 |
|
---|
6561 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6562 | #ifdef __cplusplus
|
---|
6563 | extern "C"
|
---|
6564 | {
|
---|
6565 | #endif
|
---|
6566 | /* We use char because int might match the return type of a gcc2
|
---|
6567 | builtin and then its argument prototype would still apply. */
|
---|
6568 | char re_rx_search ();
|
---|
6569 | /* The GNU C library defines this for functions which it implements
|
---|
6570 | to always fail with ENOSYS. Some functions are actually named
|
---|
6571 | something starting with __ and the normal name is an alias. */
|
---|
6572 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
6573 | choke me
|
---|
6574 | #else
|
---|
6575 | char (*f) () = re_rx_search;
|
---|
6576 | #endif
|
---|
6577 | #ifdef __cplusplus
|
---|
6578 | }
|
---|
6579 | #endif
|
---|
6580 |
|
---|
6581 | int
|
---|
6582 | main ()
|
---|
6583 | {
|
---|
6584 | return f != re_rx_search;
|
---|
6585 | ;
|
---|
6586 | return 0;
|
---|
6587 | }
|
---|
6588 | _ACEOF
|
---|
6589 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6591 | (eval $ac_link) 2>conftest.er1
|
---|
6592 | ac_status=$?
|
---|
6593 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6594 | rm -f conftest.er1
|
---|
6595 | cat conftest.err >&5
|
---|
6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6597 | (exit $ac_status); } &&
|
---|
6598 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6599 | || test ! -s conftest.err'
|
---|
6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6601 | (eval $ac_try) 2>&5
|
---|
6602 | ac_status=$?
|
---|
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6604 | (exit $ac_status); }; } &&
|
---|
6605 | { ac_try='test -s conftest$ac_exeext'
|
---|
6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6607 | (eval $ac_try) 2>&5
|
---|
6608 | ac_status=$?
|
---|
6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6610 | (exit $ac_status); }; }; then
|
---|
6611 | ac_cv_func_re_rx_search=yes
|
---|
6612 | else
|
---|
6613 | echo "$as_me: failed program was:" >&5
|
---|
6614 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6615 |
|
---|
6616 | ac_cv_func_re_rx_search=no
|
---|
6617 | fi
|
---|
6618 | rm -f conftest.err conftest.$ac_objext \
|
---|
6619 | conftest$ac_exeext conftest.$ac_ext
|
---|
6620 | fi
|
---|
6621 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
6622 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
6623 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
6624 | :
|
---|
6625 | else
|
---|
6626 | case $LIBOBJS in
|
---|
6627 | "rx.$ac_objext" | \
|
---|
6628 | *" rx.$ac_objext" | \
|
---|
6629 | "rx.$ac_objext "* | \
|
---|
6630 | *" rx.$ac_objext "* ) ;;
|
---|
6631 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
6632 | esac
|
---|
6633 |
|
---|
6634 | fi
|
---|
6635 |
|
---|
6636 | fi
|
---|
6637 |
|
---|
6638 |
|
---|
6639 | # ---------------------------------------------------------------------------
|
---|
6640 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6641 | case $LIBOBJS in
|
---|
6642 | "xmalloc.$ac_objext" | \
|
---|
6643 | *" xmalloc.$ac_objext" | \
|
---|
6644 | "xmalloc.$ac_objext "* | \
|
---|
6645 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6646 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
6647 | esac
|
---|
6648 |
|
---|
6649 | case $LIBOBJS in
|
---|
6650 | "error.$ac_objext" | \
|
---|
6651 | *" error.$ac_objext" | \
|
---|
6652 | "error.$ac_objext "* | \
|
---|
6653 | *" error.$ac_objext "* ) ;;
|
---|
6654 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
6655 | esac
|
---|
6656 |
|
---|
6657 | fi
|
---|
6658 |
|
---|
6659 |
|
---|
6660 | # ---------------------------------------------------------------------------
|
---|
6661 |
|
---|
6662 | ac_ext=cc
|
---|
6663 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6664 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6665 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6666 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6667 |
|
---|
6668 |
|
---|
6669 |
|
---|
6670 | echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
|
---|
6671 | echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
|
---|
6672 | if test ! -z "$gdbmdir" ; then
|
---|
6673 | # look in given directory for header file
|
---|
6674 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
6675 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
6676 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
6677 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
6678 | fi
|
---|
6679 |
|
---|
6680 | # look in given directory for library
|
---|
6681 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
6682 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
6683 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
6684 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
6685 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
6686 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
6687 | fi
|
---|
6688 |
|
---|
6689 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
6690 | echo "$as_me:$LINENO: result: $gdbmdir" >&5
|
---|
6691 | echo "${ECHO_T}$gdbmdir" >&6 ;
|
---|
6692 | else
|
---|
6693 | echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
|
---|
6694 | echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
|
---|
6695 | echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
|
---|
6696 | echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
|
---|
6697 | fi
|
---|
6698 | fi
|
---|
6699 |
|
---|
6700 | # look in default path and in /usr/local
|
---|
6701 | if test -z "$GDBM_INCLUDE" ; then
|
---|
6702 | # try in system directory
|
---|
6703 |
|
---|
6704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6705 | /* confdefs.h. */
|
---|
6706 | _ACEOF
|
---|
6707 | cat confdefs.h >>conftest.$ac_ext
|
---|
6708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6709 | /* end confdefs.h. */
|
---|
6710 | #include <gdbm.h>
|
---|
6711 |
|
---|
6712 | int
|
---|
6713 | main ()
|
---|
6714 | {
|
---|
6715 |
|
---|
6716 | ;
|
---|
6717 | return 0;
|
---|
6718 | }
|
---|
6719 | _ACEOF
|
---|
6720 | rm -f conftest.$ac_objext
|
---|
6721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6722 | (eval $ac_compile) 2>conftest.er1
|
---|
6723 | ac_status=$?
|
---|
6724 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6725 | rm -f conftest.er1
|
---|
6726 | cat conftest.err >&5
|
---|
6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6728 | (exit $ac_status); } &&
|
---|
6729 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6730 | || test ! -s conftest.err'
|
---|
6731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6732 | (eval $ac_try) 2>&5
|
---|
6733 | ac_status=$?
|
---|
6734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6735 | (exit $ac_status); }; } &&
|
---|
6736 | { ac_try='test -s conftest.$ac_objext'
|
---|
6737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6738 | (eval $ac_try) 2>&5
|
---|
6739 | ac_status=$?
|
---|
6740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6741 | (exit $ac_status); }; }; then
|
---|
6742 | success=yes
|
---|
6743 | else
|
---|
6744 | echo "$as_me: failed program was:" >&5
|
---|
6745 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6746 |
|
---|
6747 | success=no
|
---|
6748 |
|
---|
6749 | fi
|
---|
6750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6751 |
|
---|
6752 | if test $success = "no"; then
|
---|
6753 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
6754 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
6755 | GDBM_INCLUDE=-I/usr/local/include
|
---|
6756 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
6757 | ac_save_LIBS="$LIBS"
|
---|
6758 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
6759 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
6760 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6761 | /* confdefs.h. */
|
---|
6762 | _ACEOF
|
---|
6763 | cat confdefs.h >>conftest.$ac_ext
|
---|
6764 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6765 | /* end confdefs.h. */
|
---|
6766 | #include <gdbm.h>
|
---|
6767 | #include <stdio.h>
|
---|
6768 |
|
---|
6769 | int
|
---|
6770 | main ()
|
---|
6771 | {
|
---|
6772 | printf("%s",gdbm_version);
|
---|
6773 | ;
|
---|
6774 | return 0;
|
---|
6775 | }
|
---|
6776 | _ACEOF
|
---|
6777 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6779 | (eval $ac_link) 2>conftest.er1
|
---|
6780 | ac_status=$?
|
---|
6781 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6782 | rm -f conftest.er1
|
---|
6783 | cat conftest.err >&5
|
---|
6784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6785 | (exit $ac_status); } &&
|
---|
6786 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6787 | || test ! -s conftest.err'
|
---|
6788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6789 | (eval $ac_try) 2>&5
|
---|
6790 | ac_status=$?
|
---|
6791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6792 | (exit $ac_status); }; } &&
|
---|
6793 | { ac_try='test -s conftest$ac_exeext'
|
---|
6794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6795 | (eval $ac_try) 2>&5
|
---|
6796 | ac_status=$?
|
---|
6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6798 | (exit $ac_status); }; }; then
|
---|
6799 | success=/usr/local
|
---|
6800 | else
|
---|
6801 | echo "$as_me: failed program was:" >&5
|
---|
6802 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6803 |
|
---|
6804 | success=no
|
---|
6805 |
|
---|
6806 | fi
|
---|
6807 | rm -f conftest.err conftest.$ac_objext \
|
---|
6808 | conftest$ac_exeext conftest.$ac_ext
|
---|
6809 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
6810 | LIBS=$ac_save_LIBS
|
---|
6811 | fi
|
---|
6812 |
|
---|
6813 | echo "$as_me:$LINENO: result: $success" >&5
|
---|
6814 | echo "${ECHO_T}$success" >&6
|
---|
6815 | if test $success = "no"; then
|
---|
6816 | { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
|
---|
6817 | echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
|
---|
6818 | { (exit 1); exit 1; }; }
|
---|
6819 | fi
|
---|
6820 | fi
|
---|
6821 | cat >>confdefs.h <<\_ACEOF
|
---|
6822 | #define HAVE_LIBGDBM 1
|
---|
6823 | _ACEOF
|
---|
6824 |
|
---|
6825 |
|
---|
6826 |
|
---|
6827 |
|
---|
6828 |
|
---|
6829 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
6830 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
6831 | success="no"
|
---|
6832 | pl_path="$PATH"
|
---|
6833 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
6834 | for pl_dir in $pl_path; do
|
---|
6835 | test -z "$pl_dir" && pl_dir=.
|
---|
6836 | if test -x $pl_dir/perl; then
|
---|
6837 | success="yes"
|
---|
6838 | break
|
---|
6839 | fi
|
---|
6840 | done
|
---|
6841 | IFS="$pl_save_ifs"
|
---|
6842 |
|
---|
6843 | if test $success = "yes"; then
|
---|
6844 | try=`perl configtest.pl` || try="0"
|
---|
6845 | try=`expr $try \> 5.000`
|
---|
6846 | if test $try = "1"; then
|
---|
6847 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
6848 | echo "${ECHO_T}\"yes\"" >&6
|
---|
6849 | else
|
---|
6850 | success="no"
|
---|
6851 | fi
|
---|
6852 | fi
|
---|
6853 |
|
---|
6854 | if test $success = "no"; then
|
---|
6855 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
6856 | echo "${ECHO_T}\"no\"" >&6
|
---|
6857 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
6858 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
6859 | { (exit 1); exit 1; }; }
|
---|
6860 | fi
|
---|
6861 |
|
---|
6862 | success=no
|
---|
6863 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
6864 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
6865 |
|
---|
6866 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6867 | /* confdefs.h. */
|
---|
6868 | _ACEOF
|
---|
6869 | cat confdefs.h >>conftest.$ac_ext
|
---|
6870 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6871 | /* end confdefs.h. */
|
---|
6872 | #include <vector>
|
---|
6873 |
|
---|
6874 | int
|
---|
6875 | main ()
|
---|
6876 | {
|
---|
6877 |
|
---|
6878 | ;
|
---|
6879 | return 0;
|
---|
6880 | }
|
---|
6881 | _ACEOF
|
---|
6882 | rm -f conftest.$ac_objext
|
---|
6883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6884 | (eval $ac_compile) 2>conftest.er1
|
---|
6885 | ac_status=$?
|
---|
6886 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6887 | rm -f conftest.er1
|
---|
6888 | cat conftest.err >&5
|
---|
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6890 | (exit $ac_status); } &&
|
---|
6891 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6892 | || test ! -s conftest.err'
|
---|
6893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6894 | (eval $ac_try) 2>&5
|
---|
6895 | ac_status=$?
|
---|
6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6897 | (exit $ac_status); }; } &&
|
---|
6898 | { ac_try='test -s conftest.$ac_objext'
|
---|
6899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6900 | (eval $ac_try) 2>&5
|
---|
6901 | ac_status=$?
|
---|
6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6903 | (exit $ac_status); }; }; then
|
---|
6904 | success=yes
|
---|
6905 | else
|
---|
6906 | echo "$as_me: failed program was:" >&5
|
---|
6907 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6908 |
|
---|
6909 | fi
|
---|
6910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6911 |
|
---|
6912 | if test $success = "no"; then
|
---|
6913 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6914 | /* confdefs.h. */
|
---|
6915 | _ACEOF
|
---|
6916 | cat confdefs.h >>conftest.$ac_ext
|
---|
6917 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6918 | /* end confdefs.h. */
|
---|
6919 | #include <vector.h>
|
---|
6920 |
|
---|
6921 | int
|
---|
6922 | main ()
|
---|
6923 | {
|
---|
6924 |
|
---|
6925 | ;
|
---|
6926 | return 0;
|
---|
6927 | }
|
---|
6928 | _ACEOF
|
---|
6929 | rm -f conftest.$ac_objext
|
---|
6930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6931 | (eval $ac_compile) 2>conftest.er1
|
---|
6932 | ac_status=$?
|
---|
6933 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6934 | rm -f conftest.er1
|
---|
6935 | cat conftest.err >&5
|
---|
6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6937 | (exit $ac_status); } &&
|
---|
6938 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6939 | || test ! -s conftest.err'
|
---|
6940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6941 | (eval $ac_try) 2>&5
|
---|
6942 | ac_status=$?
|
---|
6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6944 | (exit $ac_status); }; } &&
|
---|
6945 | { ac_try='test -s conftest.$ac_objext'
|
---|
6946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6947 | (eval $ac_try) 2>&5
|
---|
6948 | ac_status=$?
|
---|
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6950 | (exit $ac_status); }; }; then
|
---|
6951 | success="yes"
|
---|
6952 | else
|
---|
6953 | echo "$as_me: failed program was:" >&5
|
---|
6954 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6955 |
|
---|
6956 | fi
|
---|
6957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6958 | fi
|
---|
6959 |
|
---|
6960 | if test $success = "no"; then
|
---|
6961 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6962 | /* confdefs.h. */
|
---|
6963 | _ACEOF
|
---|
6964 | cat confdefs.h >>conftest.$ac_ext
|
---|
6965 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6966 | /* end confdefs.h. */
|
---|
6967 | #include <ospace\\std\\vector>
|
---|
6968 |
|
---|
6969 | int
|
---|
6970 | main ()
|
---|
6971 | {
|
---|
6972 |
|
---|
6973 | ;
|
---|
6974 | return 0;
|
---|
6975 | }
|
---|
6976 | _ACEOF
|
---|
6977 | rm -f conftest.$ac_objext
|
---|
6978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6979 | (eval $ac_compile) 2>conftest.er1
|
---|
6980 | ac_status=$?
|
---|
6981 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6982 | rm -f conftest.er1
|
---|
6983 | cat conftest.err >&5
|
---|
6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6985 | (exit $ac_status); } &&
|
---|
6986 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6987 | || test ! -s conftest.err'
|
---|
6988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6989 | (eval $ac_try) 2>&5
|
---|
6990 | ac_status=$?
|
---|
6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6992 | (exit $ac_status); }; } &&
|
---|
6993 | { ac_try='test -s conftest.$ac_objext'
|
---|
6994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6995 | (eval $ac_try) 2>&5
|
---|
6996 | ac_status=$?
|
---|
6997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6998 | (exit $ac_status); }; }; then
|
---|
6999 | success="yes"
|
---|
7000 | else
|
---|
7001 | echo "$as_me: failed program was:" >&5
|
---|
7002 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7003 |
|
---|
7004 | fi
|
---|
7005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7006 | fi
|
---|
7007 |
|
---|
7008 | if test $success = yes; then
|
---|
7009 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
7010 | echo "${ECHO_T}\"no\"" >&6
|
---|
7011 | else
|
---|
7012 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
7013 | echo "${ECHO_T}\"yes\"" >&6
|
---|
7014 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
7015 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
7016 | { (exit 1); exit 1; }; }
|
---|
7017 | fi
|
---|
7018 |
|
---|
7019 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
7020 | # check for running bash under cygwin
|
---|
7021 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
7022 | then
|
---|
7023 | gsdlos=windows
|
---|
7024 | fi
|
---|
7025 |
|
---|
7026 |
|
---|
7027 | # check for endianness
|
---|
7028 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
7029 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
7030 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
7031 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7032 | else
|
---|
7033 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
7034 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7035 | /* confdefs.h. */
|
---|
7036 | _ACEOF
|
---|
7037 | cat confdefs.h >>conftest.$ac_ext
|
---|
7038 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7039 | /* end confdefs.h. */
|
---|
7040 | #include <sys/types.h>
|
---|
7041 | #include <sys/param.h>
|
---|
7042 |
|
---|
7043 | int
|
---|
7044 | main ()
|
---|
7045 | {
|
---|
7046 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
7047 | bogus endian macros
|
---|
7048 | #endif
|
---|
7049 |
|
---|
7050 | ;
|
---|
7051 | return 0;
|
---|
7052 | }
|
---|
7053 | _ACEOF
|
---|
7054 | rm -f conftest.$ac_objext
|
---|
7055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7056 | (eval $ac_compile) 2>conftest.er1
|
---|
7057 | ac_status=$?
|
---|
7058 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7059 | rm -f conftest.er1
|
---|
7060 | cat conftest.err >&5
|
---|
7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7062 | (exit $ac_status); } &&
|
---|
7063 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7064 | || test ! -s conftest.err'
|
---|
7065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7066 | (eval $ac_try) 2>&5
|
---|
7067 | ac_status=$?
|
---|
7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7069 | (exit $ac_status); }; } &&
|
---|
7070 | { ac_try='test -s conftest.$ac_objext'
|
---|
7071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7072 | (eval $ac_try) 2>&5
|
---|
7073 | ac_status=$?
|
---|
7074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7075 | (exit $ac_status); }; }; then
|
---|
7076 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
7077 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7078 | /* confdefs.h. */
|
---|
7079 | _ACEOF
|
---|
7080 | cat confdefs.h >>conftest.$ac_ext
|
---|
7081 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7082 | /* end confdefs.h. */
|
---|
7083 | #include <sys/types.h>
|
---|
7084 | #include <sys/param.h>
|
---|
7085 |
|
---|
7086 | int
|
---|
7087 | main ()
|
---|
7088 | {
|
---|
7089 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
7090 | not big endian
|
---|
7091 | #endif
|
---|
7092 |
|
---|
7093 | ;
|
---|
7094 | return 0;
|
---|
7095 | }
|
---|
7096 | _ACEOF
|
---|
7097 | rm -f conftest.$ac_objext
|
---|
7098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7099 | (eval $ac_compile) 2>conftest.er1
|
---|
7100 | ac_status=$?
|
---|
7101 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7102 | rm -f conftest.er1
|
---|
7103 | cat conftest.err >&5
|
---|
7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7105 | (exit $ac_status); } &&
|
---|
7106 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7107 | || test ! -s conftest.err'
|
---|
7108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7109 | (eval $ac_try) 2>&5
|
---|
7110 | ac_status=$?
|
---|
7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7112 | (exit $ac_status); }; } &&
|
---|
7113 | { ac_try='test -s conftest.$ac_objext'
|
---|
7114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7115 | (eval $ac_try) 2>&5
|
---|
7116 | ac_status=$?
|
---|
7117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7118 | (exit $ac_status); }; }; then
|
---|
7119 | ac_cv_c_bigendian=yes
|
---|
7120 | else
|
---|
7121 | echo "$as_me: failed program was:" >&5
|
---|
7122 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7123 |
|
---|
7124 | ac_cv_c_bigendian=no
|
---|
7125 | fi
|
---|
7126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7127 | else
|
---|
7128 | echo "$as_me: failed program was:" >&5
|
---|
7129 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7130 |
|
---|
7131 | # It does not; compile a test program.
|
---|
7132 | if test "$cross_compiling" = yes; then
|
---|
7133 | # try to guess the endianness by grepping values into an object file
|
---|
7134 | ac_cv_c_bigendian=unknown
|
---|
7135 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7136 | /* confdefs.h. */
|
---|
7137 | _ACEOF
|
---|
7138 | cat confdefs.h >>conftest.$ac_ext
|
---|
7139 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7140 | /* end confdefs.h. */
|
---|
7141 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7142 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7143 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7144 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7145 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7146 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7147 | int
|
---|
7148 | main ()
|
---|
7149 | {
|
---|
7150 | _ascii (); _ebcdic ();
|
---|
7151 | ;
|
---|
7152 | return 0;
|
---|
7153 | }
|
---|
7154 | _ACEOF
|
---|
7155 | rm -f conftest.$ac_objext
|
---|
7156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7157 | (eval $ac_compile) 2>conftest.er1
|
---|
7158 | ac_status=$?
|
---|
7159 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7160 | rm -f conftest.er1
|
---|
7161 | cat conftest.err >&5
|
---|
7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7163 | (exit $ac_status); } &&
|
---|
7164 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7165 | || test ! -s conftest.err'
|
---|
7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7167 | (eval $ac_try) 2>&5
|
---|
7168 | ac_status=$?
|
---|
7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7170 | (exit $ac_status); }; } &&
|
---|
7171 | { ac_try='test -s conftest.$ac_objext'
|
---|
7172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7173 | (eval $ac_try) 2>&5
|
---|
7174 | ac_status=$?
|
---|
7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7176 | (exit $ac_status); }; }; then
|
---|
7177 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7178 | ac_cv_c_bigendian=yes
|
---|
7179 | fi
|
---|
7180 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7181 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7182 | ac_cv_c_bigendian=no
|
---|
7183 | else
|
---|
7184 | # finding both strings is unlikely to happen, but who knows?
|
---|
7185 | ac_cv_c_bigendian=unknown
|
---|
7186 | fi
|
---|
7187 | fi
|
---|
7188 | else
|
---|
7189 | echo "$as_me: failed program was:" >&5
|
---|
7190 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7191 |
|
---|
7192 | fi
|
---|
7193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7194 | else
|
---|
7195 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7196 | /* confdefs.h. */
|
---|
7197 | _ACEOF
|
---|
7198 | cat confdefs.h >>conftest.$ac_ext
|
---|
7199 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7200 | /* end confdefs.h. */
|
---|
7201 | int
|
---|
7202 | main ()
|
---|
7203 | {
|
---|
7204 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7205 | union
|
---|
7206 | {
|
---|
7207 | long l;
|
---|
7208 | char c[sizeof (long)];
|
---|
7209 | } u;
|
---|
7210 | u.l = 1;
|
---|
7211 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
7212 | }
|
---|
7213 | _ACEOF
|
---|
7214 | rm -f conftest$ac_exeext
|
---|
7215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7216 | (eval $ac_link) 2>&5
|
---|
7217 | ac_status=$?
|
---|
7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7219 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7221 | (eval $ac_try) 2>&5
|
---|
7222 | ac_status=$?
|
---|
7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7224 | (exit $ac_status); }; }; then
|
---|
7225 | ac_cv_c_bigendian=no
|
---|
7226 | else
|
---|
7227 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7228 | echo "$as_me: failed program was:" >&5
|
---|
7229 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7230 |
|
---|
7231 | ( exit $ac_status )
|
---|
7232 | ac_cv_c_bigendian=yes
|
---|
7233 | fi
|
---|
7234 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7235 | fi
|
---|
7236 | fi
|
---|
7237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7238 | fi
|
---|
7239 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
7240 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
7241 | case $ac_cv_c_bigendian in
|
---|
7242 | yes)
|
---|
7243 |
|
---|
7244 | cat >>confdefs.h <<\_ACEOF
|
---|
7245 | #define WORDS_BIGENDIAN 1
|
---|
7246 | _ACEOF
|
---|
7247 | ;;
|
---|
7248 | no)
|
---|
7249 | ;;
|
---|
7250 | *)
|
---|
7251 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
7252 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
7253 | echo "$as_me: error: unknown endianness
|
---|
7254 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
7255 | { (exit 1); exit 1; }; } ;;
|
---|
7256 | esac
|
---|
7257 |
|
---|
7258 | # ---------------------------------------------------------------------------
|
---|
7259 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7260 | case $LIBOBJS in
|
---|
7261 | "xmalloc.o.$ac_objext" | \
|
---|
7262 | *" xmalloc.o.$ac_objext" | \
|
---|
7263 | "xmalloc.o.$ac_objext "* | \
|
---|
7264 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
7265 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
7266 | esac
|
---|
7267 |
|
---|
7268 | case $LIBOBJS in
|
---|
7269 | "error.$ac_objext" | \
|
---|
7270 | *" error.$ac_objext" | \
|
---|
7271 | "error.$ac_objext "* | \
|
---|
7272 | *" error.$ac_objext "* ) ;;
|
---|
7273 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
7274 | esac
|
---|
7275 |
|
---|
7276 | fi
|
---|
7277 |
|
---|
7278 | # ---------------------------------------------------------------------------
|
---|
7279 |
|
---|
7280 | moduleDirs=""
|
---|
7281 | MODULEDIRS=""
|
---|
7282 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
7283 | if test -d "$x"; then
|
---|
7284 | d="$x/Makefile.in"
|
---|
7285 | if test -e "$d"; then
|
---|
7286 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
7287 | MODULEDIRS="$MODULEDIRS $x"
|
---|
7288 | fi
|
---|
7289 | fi
|
---|
7290 | done
|
---|
7291 | echo "Making$moduleDirs in modules directory"
|
---|
7292 |
|
---|
7293 |
|
---|
7294 | # ---------------------------------------------------------------------------
|
---|
7295 |
|
---|
7296 |
|
---|
7297 | subdirs="$subdirs packages"
|
---|
7298 |
|
---|
7299 |
|
---|
7300 | # the list of folders in the src folder
|
---|
7301 | srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile src/hashfile/Makefile src/txt2db/Makefile src/db2txt/Makefile src/phind/generate/Makefile "
|
---|
7302 |
|
---|
7303 | ac_config_files="$ac_config_files packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile packages/mg/src/scripts/Makefile packages/mg/lib/Makefile lib/Makefile Makefile $srclist $moduleDirs"
|
---|
7304 | cat >confcache <<\_ACEOF
|
---|
7305 | # This file is a shell script that caches the results of configure
|
---|
7306 | # tests run on this system so they can be shared between configure
|
---|
7307 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7308 | # It is not useful on other systems. If it contains results you don't
|
---|
7309 | # want to keep, you may remove or edit it.
|
---|
7310 | #
|
---|
7311 | # config.status only pays attention to the cache file if you give it
|
---|
7312 | # the --recheck option to rerun configure.
|
---|
7313 | #
|
---|
7314 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7315 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7316 | # following values.
|
---|
7317 |
|
---|
7318 | _ACEOF
|
---|
7319 |
|
---|
7320 | # The following way of writing the cache mishandles newlines in values,
|
---|
7321 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7322 | # So, don't put newlines in cache variables' values.
|
---|
7323 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7324 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7325 | {
|
---|
7326 | (set) 2>&1 |
|
---|
7327 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7328 | *ac_space=\ *)
|
---|
7329 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
7330 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
7331 | sed -n \
|
---|
7332 | "s/'/'\\\\''/g;
|
---|
7333 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7334 | ;;
|
---|
7335 | *)
|
---|
7336 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7337 | sed -n \
|
---|
7338 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
7339 | ;;
|
---|
7340 | esac;
|
---|
7341 | } |
|
---|
7342 | sed '
|
---|
7343 | t clear
|
---|
7344 | : clear
|
---|
7345 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7346 | t end
|
---|
7347 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7348 | : end' >>confcache
|
---|
7349 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
7350 | if test -w $cache_file; then
|
---|
7351 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
7352 | cat confcache >$cache_file
|
---|
7353 | else
|
---|
7354 | echo "not updating unwritable cache $cache_file"
|
---|
7355 | fi
|
---|
7356 | fi
|
---|
7357 | rm -f confcache
|
---|
7358 |
|
---|
7359 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7360 | # Let make expand exec_prefix.
|
---|
7361 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7362 |
|
---|
7363 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7364 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7365 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7366 | # (actually we leave an empty line to preserve line numbers).
|
---|
7367 | if test "x$srcdir" = x.; then
|
---|
7368 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7369 | s/:*\$(srcdir):*/:/;
|
---|
7370 | s/:*\${srcdir}:*/:/;
|
---|
7371 | s/:*@srcdir@:*/:/;
|
---|
7372 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
7373 | s/:*$//;
|
---|
7374 | s/^[^=]*=[ ]*$//;
|
---|
7375 | }'
|
---|
7376 | fi
|
---|
7377 |
|
---|
7378 | DEFS=-DHAVE_CONFIG_H
|
---|
7379 |
|
---|
7380 | ac_libobjs=
|
---|
7381 | ac_ltlibobjs=
|
---|
7382 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7383 | # 1. Remove the extension, and $U if already installed.
|
---|
7384 | ac_i=`echo "$ac_i" |
|
---|
7385 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
7386 | # 2. Add them.
|
---|
7387 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
7388 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
7389 | done
|
---|
7390 | LIBOBJS=$ac_libobjs
|
---|
7391 |
|
---|
7392 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7393 |
|
---|
7394 |
|
---|
7395 |
|
---|
7396 | : ${CONFIG_STATUS=./config.status}
|
---|
7397 | ac_clean_files_save=$ac_clean_files
|
---|
7398 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7399 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
7400 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7401 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
7402 | #! $SHELL
|
---|
7403 | # Generated by $as_me.
|
---|
7404 | # Run this file to recreate the current configuration.
|
---|
7405 | # Compiler output produced by configure, useful for debugging
|
---|
7406 | # configure, is in config.log if it exists.
|
---|
7407 |
|
---|
7408 | debug=false
|
---|
7409 | ac_cs_recheck=false
|
---|
7410 | ac_cs_silent=false
|
---|
7411 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7412 | _ACEOF
|
---|
7413 |
|
---|
7414 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7415 | ## --------------------- ##
|
---|
7416 | ## M4sh Initialization. ##
|
---|
7417 | ## --------------------- ##
|
---|
7418 |
|
---|
7419 | # Be Bourne compatible
|
---|
7420 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
7421 | emulate sh
|
---|
7422 | NULLCMD=:
|
---|
7423 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
7424 | # is contrary to our usage. Disable this feature.
|
---|
7425 | alias -g '${1+"$@"}'='"$@"'
|
---|
7426 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
7427 | set -o posix
|
---|
7428 | fi
|
---|
7429 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7430 |
|
---|
7431 | # Support unset when possible.
|
---|
7432 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
7433 | as_unset=unset
|
---|
7434 | else
|
---|
7435 | as_unset=false
|
---|
7436 | fi
|
---|
7437 |
|
---|
7438 |
|
---|
7439 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
7440 | $as_unset ENV MAIL MAILPATH
|
---|
7441 | PS1='$ '
|
---|
7442 | PS2='> '
|
---|
7443 | PS4='+ '
|
---|
7444 |
|
---|
7445 | # NLS nuisances.
|
---|
7446 | for as_var in \
|
---|
7447 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
7448 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
7449 | LC_TELEPHONE LC_TIME
|
---|
7450 | do
|
---|
7451 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
7452 | eval $as_var=C; export $as_var
|
---|
7453 | else
|
---|
7454 | $as_unset $as_var
|
---|
7455 | fi
|
---|
7456 | done
|
---|
7457 |
|
---|
7458 | # Required to use basename.
|
---|
7459 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7460 | as_expr=expr
|
---|
7461 | else
|
---|
7462 | as_expr=false
|
---|
7463 | fi
|
---|
7464 |
|
---|
7465 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
7466 | as_basename=basename
|
---|
7467 | else
|
---|
7468 | as_basename=false
|
---|
7469 | fi
|
---|
7470 |
|
---|
7471 |
|
---|
7472 | # Name of the executable.
|
---|
7473 | as_me=`$as_basename "$0" ||
|
---|
7474 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7475 | X"$0" : 'X\(//\)$' \| \
|
---|
7476 | X"$0" : 'X\(/\)$' \| \
|
---|
7477 | . : '\(.\)' 2>/dev/null ||
|
---|
7478 | echo X/"$0" |
|
---|
7479 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
7480 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
7481 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
7482 | s/.*/./; q'`
|
---|
7483 |
|
---|
7484 |
|
---|
7485 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
7486 | # Avoid depending upon Character Ranges.
|
---|
7487 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7488 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7489 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7490 | as_cr_digits='0123456789'
|
---|
7491 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7492 |
|
---|
7493 | # The user is always right.
|
---|
7494 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7495 | echo "#! /bin/sh" >conf$$.sh
|
---|
7496 | echo "exit 0" >>conf$$.sh
|
---|
7497 | chmod +x conf$$.sh
|
---|
7498 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
7499 | PATH_SEPARATOR=';'
|
---|
7500 | else
|
---|
7501 | PATH_SEPARATOR=:
|
---|
7502 | fi
|
---|
7503 | rm -f conf$$.sh
|
---|
7504 | fi
|
---|
7505 |
|
---|
7506 |
|
---|
7507 | as_lineno_1=$LINENO
|
---|
7508 | as_lineno_2=$LINENO
|
---|
7509 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7510 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7511 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
7512 | # Find who we are. Look in the path if we contain no path at all
|
---|
7513 | # relative or not.
|
---|
7514 | case $0 in
|
---|
7515 | *[\\/]* ) as_myself=$0 ;;
|
---|
7516 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7517 | for as_dir in $PATH
|
---|
7518 | do
|
---|
7519 | IFS=$as_save_IFS
|
---|
7520 | test -z "$as_dir" && as_dir=.
|
---|
7521 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7522 | done
|
---|
7523 |
|
---|
7524 | ;;
|
---|
7525 | esac
|
---|
7526 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7527 | # in which case we are not to be found in the path.
|
---|
7528 | if test "x$as_myself" = x; then
|
---|
7529 | as_myself=$0
|
---|
7530 | fi
|
---|
7531 | if test ! -f "$as_myself"; then
|
---|
7532 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
7533 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
7534 | { (exit 1); exit 1; }; }
|
---|
7535 | fi
|
---|
7536 | case $CONFIG_SHELL in
|
---|
7537 | '')
|
---|
7538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7539 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
7540 | do
|
---|
7541 | IFS=$as_save_IFS
|
---|
7542 | test -z "$as_dir" && as_dir=.
|
---|
7543 | for as_base in sh bash ksh sh5; do
|
---|
7544 | case $as_dir in
|
---|
7545 | /*)
|
---|
7546 | if ("$as_dir/$as_base" -c '
|
---|
7547 | as_lineno_1=$LINENO
|
---|
7548 | as_lineno_2=$LINENO
|
---|
7549 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7550 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7551 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
7552 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
7553 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
7554 | CONFIG_SHELL=$as_dir/$as_base
|
---|
7555 | export CONFIG_SHELL
|
---|
7556 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
7557 | fi;;
|
---|
7558 | esac
|
---|
7559 | done
|
---|
7560 | done
|
---|
7561 | ;;
|
---|
7562 | esac
|
---|
7563 |
|
---|
7564 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
7565 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
7566 | # line-number line before each line; the second 'sed' does the real
|
---|
7567 | # work. The second script uses 'N' to pair each line-number line
|
---|
7568 | # with the numbered line, and appends trailing '-' during
|
---|
7569 | # substitution so that $LINENO is not a special case at line end.
|
---|
7570 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
7571 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
7572 | sed '=' <$as_myself |
|
---|
7573 | sed '
|
---|
7574 | N
|
---|
7575 | s,$,-,
|
---|
7576 | : loop
|
---|
7577 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
7578 | t loop
|
---|
7579 | s,-$,,
|
---|
7580 | s,^['$as_cr_digits']*\n,,
|
---|
7581 | ' >$as_me.lineno &&
|
---|
7582 | chmod +x $as_me.lineno ||
|
---|
7583 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
7584 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
7585 | { (exit 1); exit 1; }; }
|
---|
7586 |
|
---|
7587 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
7588 | # (the dirname of $[0] is not the place where we might find the
|
---|
7589 | # original and so on. Autoconf is especially sensible to this).
|
---|
7590 | . ./$as_me.lineno
|
---|
7591 | # Exit status is that of the last command.
|
---|
7592 | exit
|
---|
7593 | }
|
---|
7594 |
|
---|
7595 |
|
---|
7596 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
7597 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
7598 | ' ECHO_T=' ' ;;
|
---|
7599 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
7600 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
7601 | esac
|
---|
7602 |
|
---|
7603 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7604 | as_expr=expr
|
---|
7605 | else
|
---|
7606 | as_expr=false
|
---|
7607 | fi
|
---|
7608 |
|
---|
7609 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7610 | echo >conf$$.file
|
---|
7611 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7612 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
7613 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
7614 | if test -f conf$$.exe; then
|
---|
7615 | # Don't use ln at all; we don't have any links
|
---|
7616 | as_ln_s='cp -p'
|
---|
7617 | else
|
---|
7618 | as_ln_s='ln -s'
|
---|
7619 | fi
|
---|
7620 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7621 | as_ln_s=ln
|
---|
7622 | else
|
---|
7623 | as_ln_s='cp -p'
|
---|
7624 | fi
|
---|
7625 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7626 |
|
---|
7627 | if mkdir -p . 2>/dev/null; then
|
---|
7628 | as_mkdir_p=:
|
---|
7629 | else
|
---|
7630 | test -d ./-p && rmdir ./-p
|
---|
7631 | as_mkdir_p=false
|
---|
7632 | fi
|
---|
7633 |
|
---|
7634 | as_executable_p="test -f"
|
---|
7635 |
|
---|
7636 | # Sed expression to map a string onto a valid CPP name.
|
---|
7637 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7638 |
|
---|
7639 | # Sed expression to map a string onto a valid variable name.
|
---|
7640 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7641 |
|
---|
7642 |
|
---|
7643 | # IFS
|
---|
7644 | # We need space, tab and new line, in precisely that order.
|
---|
7645 | as_nl='
|
---|
7646 | '
|
---|
7647 | IFS=" $as_nl"
|
---|
7648 |
|
---|
7649 | # CDPATH.
|
---|
7650 | $as_unset CDPATH
|
---|
7651 |
|
---|
7652 | exec 6>&1
|
---|
7653 |
|
---|
7654 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
7655 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7656 | # values after options handling. Logging --version etc. is OK.
|
---|
7657 | exec 5>>config.log
|
---|
7658 | {
|
---|
7659 | echo
|
---|
7660 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7661 | ## Running $as_me. ##
|
---|
7662 | _ASBOX
|
---|
7663 | } >&5
|
---|
7664 | cat >&5 <<_CSEOF
|
---|
7665 |
|
---|
7666 | This file was extended by $as_me, which was
|
---|
7667 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
7668 |
|
---|
7669 | CONFIG_FILES = $CONFIG_FILES
|
---|
7670 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7671 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7672 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7673 | $ $0 $@
|
---|
7674 |
|
---|
7675 | _CSEOF
|
---|
7676 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
7677 | echo >&5
|
---|
7678 | _ACEOF
|
---|
7679 |
|
---|
7680 | # Files that config.status was made for.
|
---|
7681 | if test -n "$ac_config_files"; then
|
---|
7682 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
7683 | fi
|
---|
7684 |
|
---|
7685 | if test -n "$ac_config_headers"; then
|
---|
7686 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
7687 | fi
|
---|
7688 |
|
---|
7689 | if test -n "$ac_config_links"; then
|
---|
7690 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
7691 | fi
|
---|
7692 |
|
---|
7693 | if test -n "$ac_config_commands"; then
|
---|
7694 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
7695 | fi
|
---|
7696 |
|
---|
7697 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7698 |
|
---|
7699 | ac_cs_usage="\
|
---|
7700 | \`$as_me' instantiates files from templates according to the
|
---|
7701 | current configuration.
|
---|
7702 |
|
---|
7703 | Usage: $0 [OPTIONS] [FILE]...
|
---|
7704 |
|
---|
7705 | -h, --help print this help, then exit
|
---|
7706 | -V, --version print version number, then exit
|
---|
7707 | -q, --quiet do not print progress messages
|
---|
7708 | -d, --debug don't remove temporary files
|
---|
7709 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7710 | --file=FILE[:TEMPLATE]
|
---|
7711 | instantiate the configuration file FILE
|
---|
7712 | --header=FILE[:TEMPLATE]
|
---|
7713 | instantiate the configuration header FILE
|
---|
7714 |
|
---|
7715 | Configuration files:
|
---|
7716 | $config_files
|
---|
7717 |
|
---|
7718 | Configuration headers:
|
---|
7719 | $config_headers
|
---|
7720 |
|
---|
7721 | Report bugs to <[email protected]>."
|
---|
7722 | _ACEOF
|
---|
7723 |
|
---|
7724 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7725 | ac_cs_version="\\
|
---|
7726 | config.status
|
---|
7727 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
7728 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
7729 |
|
---|
7730 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
7731 | This config.status script is free software; the Free Software Foundation
|
---|
7732 | gives unlimited permission to copy, distribute and modify it."
|
---|
7733 | srcdir=$srcdir
|
---|
7734 | INSTALL="$INSTALL"
|
---|
7735 | _ACEOF
|
---|
7736 |
|
---|
7737 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7738 | # If no file are specified by the user, then we need to provide default
|
---|
7739 | # value. By we need to know if files were specified by the user.
|
---|
7740 | ac_need_defaults=:
|
---|
7741 | while test $# != 0
|
---|
7742 | do
|
---|
7743 | case $1 in
|
---|
7744 | --*=*)
|
---|
7745 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
7746 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
7747 | ac_shift=:
|
---|
7748 | ;;
|
---|
7749 | -*)
|
---|
7750 | ac_option=$1
|
---|
7751 | ac_optarg=$2
|
---|
7752 | ac_shift=shift
|
---|
7753 | ;;
|
---|
7754 | *) # This is not an option, so the user has probably given explicit
|
---|
7755 | # arguments.
|
---|
7756 | ac_option=$1
|
---|
7757 | ac_need_defaults=false;;
|
---|
7758 | esac
|
---|
7759 |
|
---|
7760 | case $ac_option in
|
---|
7761 | # Handling of the options.
|
---|
7762 | _ACEOF
|
---|
7763 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7764 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7765 | ac_cs_recheck=: ;;
|
---|
7766 | --version | --vers* | -V )
|
---|
7767 | echo "$ac_cs_version"; exit 0 ;;
|
---|
7768 | --he | --h)
|
---|
7769 | # Conflict between --help and --header
|
---|
7770 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
7771 | Try \`$0 --help' for more information." >&5
|
---|
7772 | echo "$as_me: error: ambiguous option: $1
|
---|
7773 | Try \`$0 --help' for more information." >&2;}
|
---|
7774 | { (exit 1); exit 1; }; };;
|
---|
7775 | --help | --hel | -h )
|
---|
7776 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
7777 | --debug | --d* | -d )
|
---|
7778 | debug=: ;;
|
---|
7779 | --file | --fil | --fi | --f )
|
---|
7780 | $ac_shift
|
---|
7781 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
7782 | ac_need_defaults=false;;
|
---|
7783 | --header | --heade | --head | --hea )
|
---|
7784 | $ac_shift
|
---|
7785 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
7786 | ac_need_defaults=false;;
|
---|
7787 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7788 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7789 | ac_cs_silent=: ;;
|
---|
7790 |
|
---|
7791 | # This is an error.
|
---|
7792 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
7793 | Try \`$0 --help' for more information." >&5
|
---|
7794 | echo "$as_me: error: unrecognized option: $1
|
---|
7795 | Try \`$0 --help' for more information." >&2;}
|
---|
7796 | { (exit 1); exit 1; }; } ;;
|
---|
7797 |
|
---|
7798 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
7799 |
|
---|
7800 | esac
|
---|
7801 | shift
|
---|
7802 | done
|
---|
7803 |
|
---|
7804 | ac_configure_extra_args=
|
---|
7805 |
|
---|
7806 | if $ac_cs_silent; then
|
---|
7807 | exec 6>/dev/null
|
---|
7808 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7809 | fi
|
---|
7810 |
|
---|
7811 | _ACEOF
|
---|
7812 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7813 | if \$ac_cs_recheck; then
|
---|
7814 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
7815 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7816 | fi
|
---|
7817 |
|
---|
7818 | _ACEOF
|
---|
7819 |
|
---|
7820 |
|
---|
7821 |
|
---|
7822 |
|
---|
7823 |
|
---|
7824 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7825 | for ac_config_target in $ac_config_targets
|
---|
7826 | do
|
---|
7827 | case "$ac_config_target" in
|
---|
7828 | # Handling of arguments.
|
---|
7829 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
7830 | "packages/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
|
---|
7831 | "packages/mg/src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
|
---|
7832 | "packages/mg/src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
|
---|
7833 | "packages/mg/src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
|
---|
7834 | "packages/mg/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
|
---|
7835 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
7836 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7837 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7838 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7839 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7840 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
7841 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
7842 | { (exit 1); exit 1; }; };;
|
---|
7843 | esac
|
---|
7844 | done
|
---|
7845 |
|
---|
7846 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7847 | # then the envvar interface is used. Set only those that are not.
|
---|
7848 | # We use the long form for the default assignment because of an extremely
|
---|
7849 | # bizarre bug on SunOS 4.1.3.
|
---|
7850 | if $ac_need_defaults; then
|
---|
7851 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7852 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7853 | fi
|
---|
7854 |
|
---|
7855 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7856 | # simply because there is no reason to put it here, and in addition,
|
---|
7857 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7858 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
7859 | $debug ||
|
---|
7860 | {
|
---|
7861 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
7862 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
7863 | }
|
---|
7864 |
|
---|
7865 | # Create a (secure) tmp directory for tmp files.
|
---|
7866 |
|
---|
7867 | {
|
---|
7868 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
7869 | test -n "$tmp" && test -d "$tmp"
|
---|
7870 | } ||
|
---|
7871 | {
|
---|
7872 | tmp=./confstat$$-$RANDOM
|
---|
7873 | (umask 077 && mkdir $tmp)
|
---|
7874 | } ||
|
---|
7875 | {
|
---|
7876 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
7877 | { (exit 1); exit 1; }
|
---|
7878 | }
|
---|
7879 |
|
---|
7880 | _ACEOF
|
---|
7881 |
|
---|
7882 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7883 |
|
---|
7884 | #
|
---|
7885 | # CONFIG_FILES section.
|
---|
7886 | #
|
---|
7887 |
|
---|
7888 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
7889 | # This happens for instance when ./config.status config.h
|
---|
7890 | if test -n "\$CONFIG_FILES"; then
|
---|
7891 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7892 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
7893 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
7894 | s,@SHELL@,$SHELL,;t t
|
---|
7895 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
7896 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
7897 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
7898 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
7899 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
7900 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
7901 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
7902 | s,@prefix@,$prefix,;t t
|
---|
7903 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
7904 | s,@bindir@,$bindir,;t t
|
---|
7905 | s,@sbindir@,$sbindir,;t t
|
---|
7906 | s,@libexecdir@,$libexecdir,;t t
|
---|
7907 | s,@datadir@,$datadir,;t t
|
---|
7908 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
7909 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
7910 | s,@localstatedir@,$localstatedir,;t t
|
---|
7911 | s,@libdir@,$libdir,;t t
|
---|
7912 | s,@includedir@,$includedir,;t t
|
---|
7913 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
7914 | s,@infodir@,$infodir,;t t
|
---|
7915 | s,@mandir@,$mandir,;t t
|
---|
7916 | s,@build_alias@,$build_alias,;t t
|
---|
7917 | s,@host_alias@,$host_alias,;t t
|
---|
7918 | s,@target_alias@,$target_alias,;t t
|
---|
7919 | s,@DEFS@,$DEFS,;t t
|
---|
7920 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
7921 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
7922 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
7923 | s,@LIBS@,$LIBS,;t t
|
---|
7924 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
7925 | s,@VERSION@,$VERSION,;t t
|
---|
7926 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
7927 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
7928 | s,@CC@,$CC,;t t
|
---|
7929 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
7930 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
7931 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
7932 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
7933 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
7934 | s,@CXX@,$CXX,;t t
|
---|
7935 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
7936 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
7937 | s,@AWK@,$AWK,;t t
|
---|
7938 | s,@YACC@,$YACC,;t t
|
---|
7939 | s,@build@,$build,;t t
|
---|
7940 | s,@build_cpu@,$build_cpu,;t t
|
---|
7941 | s,@build_vendor@,$build_vendor,;t t
|
---|
7942 | s,@build_os@,$build_os,;t t
|
---|
7943 | s,@host@,$host,;t t
|
---|
7944 | s,@host_cpu@,$host_cpu,;t t
|
---|
7945 | s,@host_vendor@,$host_vendor,;t t
|
---|
7946 | s,@host_os@,$host_os,;t t
|
---|
7947 | s,@target@,$target,;t t
|
---|
7948 | s,@target_cpu@,$target_cpu,;t t
|
---|
7949 | s,@target_vendor@,$target_vendor,;t t
|
---|
7950 | s,@target_os@,$target_os,;t t
|
---|
7951 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
7952 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
7953 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
7954 | s,@LN_S@,$LN_S,;t t
|
---|
7955 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
7956 | s,@RANLIB@,$RANLIB,;t t
|
---|
7957 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
7958 | s,@CPP@,$CPP,;t t
|
---|
7959 | s,@EGREP@,$EGREP,;t t
|
---|
7960 | s,@U@,$U,;t t
|
---|
7961 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
7962 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
7963 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
7964 | s,@STATIC@,$STATIC,;t t
|
---|
7965 | s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
|
---|
7966 | s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
|
---|
7967 | s,@gsdlos@,$gsdlos,;t t
|
---|
7968 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
7969 | s,@subdirs@,$subdirs,;t t
|
---|
7970 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
7971 | CEOF
|
---|
7972 |
|
---|
7973 | _ACEOF
|
---|
7974 |
|
---|
7975 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7976 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7977 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7978 | ac_max_sed_lines=48
|
---|
7979 | ac_sed_frag=1 # Number of current file.
|
---|
7980 | ac_beg=1 # First line for current file.
|
---|
7981 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
7982 | ac_more_lines=:
|
---|
7983 | ac_sed_cmds=
|
---|
7984 | while $ac_more_lines; do
|
---|
7985 | if test $ac_beg -gt 1; then
|
---|
7986 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
7987 | else
|
---|
7988 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
7989 | fi
|
---|
7990 | if test ! -s $tmp/subs.frag; then
|
---|
7991 | ac_more_lines=false
|
---|
7992 | else
|
---|
7993 | # The purpose of the label and of the branching condition is to
|
---|
7994 | # speed up the sed processing (if there are no `@' at all, there
|
---|
7995 | # is no need to browse any of the substitutions).
|
---|
7996 | # These are the two extra sed commands mentioned above.
|
---|
7997 | (echo ':t
|
---|
7998 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
7999 | if test -z "$ac_sed_cmds"; then
|
---|
8000 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
8001 | else
|
---|
8002 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
8003 | fi
|
---|
8004 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
8005 | ac_beg=$ac_end
|
---|
8006 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
8007 | fi
|
---|
8008 | done
|
---|
8009 | if test -z "$ac_sed_cmds"; then
|
---|
8010 | ac_sed_cmds=cat
|
---|
8011 | fi
|
---|
8012 | fi # test -n "$CONFIG_FILES"
|
---|
8013 |
|
---|
8014 | _ACEOF
|
---|
8015 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8016 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
8017 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8018 | case $ac_file in
|
---|
8019 | - | *:- | *:-:* ) # input from stdin
|
---|
8020 | cat >$tmp/stdin
|
---|
8021 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8022 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8023 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8024 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8025 | * ) ac_file_in=$ac_file.in ;;
|
---|
8026 | esac
|
---|
8027 |
|
---|
8028 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
8029 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8030 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8031 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8032 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8033 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8034 | . : '\(.\)' 2>/dev/null ||
|
---|
8035 | echo X"$ac_file" |
|
---|
8036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8037 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8038 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8039 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8040 | s/.*/./; q'`
|
---|
8041 | { if $as_mkdir_p; then
|
---|
8042 | mkdir -p "$ac_dir"
|
---|
8043 | else
|
---|
8044 | as_dir="$ac_dir"
|
---|
8045 | as_dirs=
|
---|
8046 | while test ! -d "$as_dir"; do
|
---|
8047 | as_dirs="$as_dir $as_dirs"
|
---|
8048 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8049 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8050 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8051 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8052 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8053 | . : '\(.\)' 2>/dev/null ||
|
---|
8054 | echo X"$as_dir" |
|
---|
8055 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8056 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8057 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8058 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8059 | s/.*/./; q'`
|
---|
8060 | done
|
---|
8061 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8062 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8063 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8064 | { (exit 1); exit 1; }; }; }
|
---|
8065 |
|
---|
8066 | ac_builddir=.
|
---|
8067 |
|
---|
8068 | if test "$ac_dir" != .; then
|
---|
8069 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8070 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8071 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8072 | else
|
---|
8073 | ac_dir_suffix= ac_top_builddir=
|
---|
8074 | fi
|
---|
8075 |
|
---|
8076 | case $srcdir in
|
---|
8077 | .) # No --srcdir option. We are building in place.
|
---|
8078 | ac_srcdir=.
|
---|
8079 | if test -z "$ac_top_builddir"; then
|
---|
8080 | ac_top_srcdir=.
|
---|
8081 | else
|
---|
8082 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8083 | fi ;;
|
---|
8084 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8085 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8086 | ac_top_srcdir=$srcdir ;;
|
---|
8087 | *) # Relative path.
|
---|
8088 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8089 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8090 | esac
|
---|
8091 |
|
---|
8092 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8093 | # the directories may not exist.
|
---|
8094 | case `pwd` in
|
---|
8095 | .) ac_abs_builddir="$ac_dir";;
|
---|
8096 | *)
|
---|
8097 | case "$ac_dir" in
|
---|
8098 | .) ac_abs_builddir=`pwd`;;
|
---|
8099 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8100 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8101 | esac;;
|
---|
8102 | esac
|
---|
8103 | case $ac_abs_builddir in
|
---|
8104 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8105 | *)
|
---|
8106 | case ${ac_top_builddir}. in
|
---|
8107 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8108 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8109 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8110 | esac;;
|
---|
8111 | esac
|
---|
8112 | case $ac_abs_builddir in
|
---|
8113 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8114 | *)
|
---|
8115 | case $ac_srcdir in
|
---|
8116 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8117 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8118 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8119 | esac;;
|
---|
8120 | esac
|
---|
8121 | case $ac_abs_builddir in
|
---|
8122 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8123 | *)
|
---|
8124 | case $ac_top_srcdir in
|
---|
8125 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8126 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8127 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8128 | esac;;
|
---|
8129 | esac
|
---|
8130 |
|
---|
8131 |
|
---|
8132 | case $INSTALL in
|
---|
8133 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8134 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
8135 | esac
|
---|
8136 |
|
---|
8137 | if test x"$ac_file" != x-; then
|
---|
8138 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8139 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8140 | rm -f "$ac_file"
|
---|
8141 | fi
|
---|
8142 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8143 | # use $as_me), people would be surprised to read:
|
---|
8144 | # /* config.h. Generated by config.status. */
|
---|
8145 | if test x"$ac_file" = x-; then
|
---|
8146 | configure_input=
|
---|
8147 | else
|
---|
8148 | configure_input="$ac_file. "
|
---|
8149 | fi
|
---|
8150 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
8151 | sed 's,.*/,,'` by configure."
|
---|
8152 |
|
---|
8153 | # First look for the input files in the build tree, otherwise in the
|
---|
8154 | # src tree.
|
---|
8155 | ac_file_inputs=`IFS=:
|
---|
8156 | for f in $ac_file_in; do
|
---|
8157 | case $f in
|
---|
8158 | -) echo $tmp/stdin ;;
|
---|
8159 | [\\/$]*)
|
---|
8160 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8161 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8162 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8163 | { (exit 1); exit 1; }; }
|
---|
8164 | echo "$f";;
|
---|
8165 | *) # Relative
|
---|
8166 | if test -f "$f"; then
|
---|
8167 | # Build tree
|
---|
8168 | echo "$f"
|
---|
8169 | elif test -f "$srcdir/$f"; then
|
---|
8170 | # Source tree
|
---|
8171 | echo "$srcdir/$f"
|
---|
8172 | else
|
---|
8173 | # /dev/null tree
|
---|
8174 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8175 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8176 | { (exit 1); exit 1; }; }
|
---|
8177 | fi;;
|
---|
8178 | esac
|
---|
8179 | done` || { (exit 1); exit 1; }
|
---|
8180 | _ACEOF
|
---|
8181 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8182 | sed "$ac_vpsub
|
---|
8183 | $extrasub
|
---|
8184 | _ACEOF
|
---|
8185 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8186 | :t
|
---|
8187 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8188 | s,@configure_input@,$configure_input,;t t
|
---|
8189 | s,@srcdir@,$ac_srcdir,;t t
|
---|
8190 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
8191 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
8192 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
8193 | s,@builddir@,$ac_builddir,;t t
|
---|
8194 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
8195 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
8196 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
8197 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
8198 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
8199 | rm -f $tmp/stdin
|
---|
8200 | if test x"$ac_file" != x-; then
|
---|
8201 | mv $tmp/out $ac_file
|
---|
8202 | else
|
---|
8203 | cat $tmp/out
|
---|
8204 | rm -f $tmp/out
|
---|
8205 | fi
|
---|
8206 |
|
---|
8207 | done
|
---|
8208 | _ACEOF
|
---|
8209 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8210 |
|
---|
8211 | #
|
---|
8212 | # CONFIG_HEADER section.
|
---|
8213 | #
|
---|
8214 |
|
---|
8215 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
8216 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
8217 | #
|
---|
8218 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
8219 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
8220 | ac_dB='[ ].*$,\1#\2'
|
---|
8221 | ac_dC=' '
|
---|
8222 | ac_dD=',;t'
|
---|
8223 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
8224 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
8225 | ac_uB='$,\1#\2define\3'
|
---|
8226 | ac_uC=' '
|
---|
8227 | ac_uD=',;t'
|
---|
8228 |
|
---|
8229 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
8230 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8231 | case $ac_file in
|
---|
8232 | - | *:- | *:-:* ) # input from stdin
|
---|
8233 | cat >$tmp/stdin
|
---|
8234 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8235 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8236 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8237 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8238 | * ) ac_file_in=$ac_file.in ;;
|
---|
8239 | esac
|
---|
8240 |
|
---|
8241 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8242 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8243 |
|
---|
8244 | # First look for the input files in the build tree, otherwise in the
|
---|
8245 | # src tree.
|
---|
8246 | ac_file_inputs=`IFS=:
|
---|
8247 | for f in $ac_file_in; do
|
---|
8248 | case $f in
|
---|
8249 | -) echo $tmp/stdin ;;
|
---|
8250 | [\\/$]*)
|
---|
8251 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8252 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8253 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8254 | { (exit 1); exit 1; }; }
|
---|
8255 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
8256 | echo "$f";;
|
---|
8257 | *) # Relative
|
---|
8258 | if test -f "$f"; then
|
---|
8259 | # Build tree
|
---|
8260 | echo "$f"
|
---|
8261 | elif test -f "$srcdir/$f"; then
|
---|
8262 | # Source tree
|
---|
8263 | echo "$srcdir/$f"
|
---|
8264 | else
|
---|
8265 | # /dev/null tree
|
---|
8266 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8267 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8268 | { (exit 1); exit 1; }; }
|
---|
8269 | fi;;
|
---|
8270 | esac
|
---|
8271 | done` || { (exit 1); exit 1; }
|
---|
8272 | # Remove the trailing spaces.
|
---|
8273 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
8274 |
|
---|
8275 | _ACEOF
|
---|
8276 |
|
---|
8277 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
8278 | # `conftest.undefs', that substitutes the proper values into
|
---|
8279 | # config.h.in to produce config.h. The first handles `#define'
|
---|
8280 | # templates, and the second `#undef' templates.
|
---|
8281 | # And first: Protect against being on the right side of a sed subst in
|
---|
8282 | # config.status. Protect against being in an unquoted here document
|
---|
8283 | # in config.status.
|
---|
8284 | rm -f conftest.defines conftest.undefs
|
---|
8285 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
8286 | # Putting comments in sed scripts is not portable.
|
---|
8287 | #
|
---|
8288 | # `end' is used to avoid that the second main sed command (meant for
|
---|
8289 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
8290 | # See the Autoconf documentation for `clear'.
|
---|
8291 | cat >confdef2sed.sed <<\_ACEOF
|
---|
8292 | s/[\\&,]/\\&/g
|
---|
8293 | s,[\\$`],\\&,g
|
---|
8294 | t clear
|
---|
8295 | : clear
|
---|
8296 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
8297 | t end
|
---|
8298 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
8299 | : end
|
---|
8300 | _ACEOF
|
---|
8301 | # If some macros were called several times there might be several times
|
---|
8302 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
8303 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
8304 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
8305 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
8306 | rm -f confdef2sed.sed
|
---|
8307 |
|
---|
8308 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
8309 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
8310 | # on some systems where configure will not decide to define it.
|
---|
8311 | cat >>conftest.undefs <<\_ACEOF
|
---|
8312 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
8313 | _ACEOF
|
---|
8314 |
|
---|
8315 | # Break up conftest.defines because some shells have a limit on the size
|
---|
8316 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8317 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
8318 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
8319 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
8320 | echo ' :' >>$CONFIG_STATUS
|
---|
8321 | rm -f conftest.tail
|
---|
8322 | while grep . conftest.defines >/dev/null
|
---|
8323 | do
|
---|
8324 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
8325 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8326 | # Speed up: don't consider the non `#define' lines.
|
---|
8327 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
8328 | # Work around the forget-to-reset-the-flag bug.
|
---|
8329 | echo 't clr' >>$CONFIG_STATUS
|
---|
8330 | echo ': clr' >>$CONFIG_STATUS
|
---|
8331 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
8332 | echo 'CEOF
|
---|
8333 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
8334 | rm -f $tmp/in
|
---|
8335 | mv $tmp/out $tmp/in
|
---|
8336 | ' >>$CONFIG_STATUS
|
---|
8337 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
8338 | rm -f conftest.defines
|
---|
8339 | mv conftest.tail conftest.defines
|
---|
8340 | done
|
---|
8341 | rm -f conftest.defines
|
---|
8342 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
8343 | echo >>$CONFIG_STATUS
|
---|
8344 |
|
---|
8345 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
8346 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8347 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
8348 | rm -f conftest.tail
|
---|
8349 | while grep . conftest.undefs >/dev/null
|
---|
8350 | do
|
---|
8351 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
8352 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8353 | # Speed up: don't consider the non `#undef'
|
---|
8354 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
8355 | # Work around the forget-to-reset-the-flag bug.
|
---|
8356 | echo 't clr' >>$CONFIG_STATUS
|
---|
8357 | echo ': clr' >>$CONFIG_STATUS
|
---|
8358 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
8359 | echo 'CEOF
|
---|
8360 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
8361 | rm -f $tmp/in
|
---|
8362 | mv $tmp/out $tmp/in
|
---|
8363 | ' >>$CONFIG_STATUS
|
---|
8364 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
8365 | rm -f conftest.undefs
|
---|
8366 | mv conftest.tail conftest.undefs
|
---|
8367 | done
|
---|
8368 | rm -f conftest.undefs
|
---|
8369 |
|
---|
8370 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8371 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8372 | # use $as_me), people would be surprised to read:
|
---|
8373 | # /* config.h. Generated by config.status. */
|
---|
8374 | if test x"$ac_file" = x-; then
|
---|
8375 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
8376 | else
|
---|
8377 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
8378 | fi
|
---|
8379 | cat $tmp/in >>$tmp/config.h
|
---|
8380 | rm -f $tmp/in
|
---|
8381 | if test x"$ac_file" != x-; then
|
---|
8382 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
8383 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
8384 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
8385 | else
|
---|
8386 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8387 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8388 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8389 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8390 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8391 | . : '\(.\)' 2>/dev/null ||
|
---|
8392 | echo X"$ac_file" |
|
---|
8393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8394 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8395 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8396 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8397 | s/.*/./; q'`
|
---|
8398 | { if $as_mkdir_p; then
|
---|
8399 | mkdir -p "$ac_dir"
|
---|
8400 | else
|
---|
8401 | as_dir="$ac_dir"
|
---|
8402 | as_dirs=
|
---|
8403 | while test ! -d "$as_dir"; do
|
---|
8404 | as_dirs="$as_dir $as_dirs"
|
---|
8405 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8406 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8407 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8408 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8409 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8410 | . : '\(.\)' 2>/dev/null ||
|
---|
8411 | echo X"$as_dir" |
|
---|
8412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8413 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8414 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8415 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8416 | s/.*/./; q'`
|
---|
8417 | done
|
---|
8418 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8419 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8420 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8421 | { (exit 1); exit 1; }; }; }
|
---|
8422 |
|
---|
8423 | rm -f $ac_file
|
---|
8424 | mv $tmp/config.h $ac_file
|
---|
8425 | fi
|
---|
8426 | else
|
---|
8427 | cat $tmp/config.h
|
---|
8428 | rm -f $tmp/config.h
|
---|
8429 | fi
|
---|
8430 | done
|
---|
8431 | _ACEOF
|
---|
8432 |
|
---|
8433 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8434 |
|
---|
8435 | { (exit 0); exit 0; }
|
---|
8436 | _ACEOF
|
---|
8437 | chmod +x $CONFIG_STATUS
|
---|
8438 | ac_clean_files=$ac_clean_files_save
|
---|
8439 |
|
---|
8440 |
|
---|
8441 | # configure is writing to config.log, and then calls config.status.
|
---|
8442 | # config.status does its own redirection, appending to config.log.
|
---|
8443 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8444 | # by configure, so config.status won't be able to write to it; its
|
---|
8445 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8446 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8447 | # appended to by config.status. When coming back to configure, we
|
---|
8448 | # need to make the FD available again.
|
---|
8449 | if test "$no_create" != yes; then
|
---|
8450 | ac_cs_success=:
|
---|
8451 | ac_config_status_args=
|
---|
8452 | test "$silent" = yes &&
|
---|
8453 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8454 | exec 5>/dev/null
|
---|
8455 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8456 | exec 5>>config.log
|
---|
8457 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8458 | # would make configure fail if this is the last instruction.
|
---|
8459 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
8460 | fi
|
---|
8461 |
|
---|
8462 | #
|
---|
8463 | # CONFIG_SUBDIRS section.
|
---|
8464 | #
|
---|
8465 | if test "$no_recursion" != yes; then
|
---|
8466 |
|
---|
8467 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
8468 | ac_sub_configure_args=
|
---|
8469 | ac_prev=
|
---|
8470 | for ac_arg in $ac_configure_args; do
|
---|
8471 | if test -n "$ac_prev"; then
|
---|
8472 | ac_prev=
|
---|
8473 | continue
|
---|
8474 | fi
|
---|
8475 | case $ac_arg in
|
---|
8476 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8477 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8478 | ac_prev=cache_file ;;
|
---|
8479 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8480 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
8481 | | --c=*)
|
---|
8482 | ;;
|
---|
8483 | --config-cache | -C)
|
---|
8484 | ;;
|
---|
8485 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8486 | ac_prev=srcdir ;;
|
---|
8487 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8488 | ;;
|
---|
8489 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
8490 | ac_prev=prefix ;;
|
---|
8491 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
8492 | ;;
|
---|
8493 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
8494 | esac
|
---|
8495 | done
|
---|
8496 |
|
---|
8497 | # Always prepend --prefix to ensure using the same prefix
|
---|
8498 | # in subdir configurations.
|
---|
8499 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
8500 |
|
---|
8501 | ac_popdir=`pwd`
|
---|
8502 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
8503 |
|
---|
8504 | # Do not complain, so a configure script can configure whichever
|
---|
8505 | # parts of a large source tree are present.
|
---|
8506 | test -d $srcdir/$ac_dir || continue
|
---|
8507 |
|
---|
8508 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
8509 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
8510 | { if $as_mkdir_p; then
|
---|
8511 | mkdir -p "$ac_dir"
|
---|
8512 | else
|
---|
8513 | as_dir="$ac_dir"
|
---|
8514 | as_dirs=
|
---|
8515 | while test ! -d "$as_dir"; do
|
---|
8516 | as_dirs="$as_dir $as_dirs"
|
---|
8517 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8518 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8519 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8520 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8521 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8522 | . : '\(.\)' 2>/dev/null ||
|
---|
8523 | echo X"$as_dir" |
|
---|
8524 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8525 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8526 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8527 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8528 | s/.*/./; q'`
|
---|
8529 | done
|
---|
8530 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8531 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8532 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8533 | { (exit 1); exit 1; }; }; }
|
---|
8534 |
|
---|
8535 | ac_builddir=.
|
---|
8536 |
|
---|
8537 | if test "$ac_dir" != .; then
|
---|
8538 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8539 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8540 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8541 | else
|
---|
8542 | ac_dir_suffix= ac_top_builddir=
|
---|
8543 | fi
|
---|
8544 |
|
---|
8545 | case $srcdir in
|
---|
8546 | .) # No --srcdir option. We are building in place.
|
---|
8547 | ac_srcdir=.
|
---|
8548 | if test -z "$ac_top_builddir"; then
|
---|
8549 | ac_top_srcdir=.
|
---|
8550 | else
|
---|
8551 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8552 | fi ;;
|
---|
8553 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8554 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8555 | ac_top_srcdir=$srcdir ;;
|
---|
8556 | *) # Relative path.
|
---|
8557 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8558 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8559 | esac
|
---|
8560 |
|
---|
8561 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8562 | # the directories may not exist.
|
---|
8563 | case `pwd` in
|
---|
8564 | .) ac_abs_builddir="$ac_dir";;
|
---|
8565 | *)
|
---|
8566 | case "$ac_dir" in
|
---|
8567 | .) ac_abs_builddir=`pwd`;;
|
---|
8568 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8569 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8570 | esac;;
|
---|
8571 | esac
|
---|
8572 | case $ac_abs_builddir in
|
---|
8573 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8574 | *)
|
---|
8575 | case ${ac_top_builddir}. in
|
---|
8576 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8577 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8578 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8579 | esac;;
|
---|
8580 | esac
|
---|
8581 | case $ac_abs_builddir in
|
---|
8582 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8583 | *)
|
---|
8584 | case $ac_srcdir in
|
---|
8585 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8586 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8587 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8588 | esac;;
|
---|
8589 | esac
|
---|
8590 | case $ac_abs_builddir in
|
---|
8591 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8592 | *)
|
---|
8593 | case $ac_top_srcdir in
|
---|
8594 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8595 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8596 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8597 | esac;;
|
---|
8598 | esac
|
---|
8599 |
|
---|
8600 |
|
---|
8601 | cd $ac_dir
|
---|
8602 |
|
---|
8603 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8604 | if test -f $ac_srcdir/configure.gnu; then
|
---|
8605 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
8606 | elif test -f $ac_srcdir/configure; then
|
---|
8607 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
8608 | elif test -f $ac_srcdir/configure.in; then
|
---|
8609 | ac_sub_configure=$ac_configure
|
---|
8610 | else
|
---|
8611 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8612 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8613 | ac_sub_configure=
|
---|
8614 | fi
|
---|
8615 |
|
---|
8616 | # The recursion is here.
|
---|
8617 | if test -n "$ac_sub_configure"; then
|
---|
8618 | # Make the cache file name correct relative to the subdirectory.
|
---|
8619 | case $cache_file in
|
---|
8620 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8621 | *) # Relative path.
|
---|
8622 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
8623 | esac
|
---|
8624 |
|
---|
8625 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8626 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8627 | # The eval makes quoting arguments work.
|
---|
8628 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
8629 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
8630 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
8631 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
8632 | { (exit 1); exit 1; }; }
|
---|
8633 | fi
|
---|
8634 |
|
---|
8635 | cd $ac_popdir
|
---|
8636 | done
|
---|
8637 | fi
|
---|
8638 |
|
---|