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 | # Factoring default headers for most tests.
|
---|
275 | ac_includes_default="\
|
---|
276 | #include <stdio.h>
|
---|
277 | #if HAVE_SYS_TYPES_H
|
---|
278 | # include <sys/types.h>
|
---|
279 | #endif
|
---|
280 | #if HAVE_SYS_STAT_H
|
---|
281 | # include <sys/stat.h>
|
---|
282 | #endif
|
---|
283 | #if STDC_HEADERS
|
---|
284 | # include <stdlib.h>
|
---|
285 | # include <stddef.h>
|
---|
286 | #else
|
---|
287 | # if HAVE_STDLIB_H
|
---|
288 | # include <stdlib.h>
|
---|
289 | # endif
|
---|
290 | #endif
|
---|
291 | #if HAVE_STRING_H
|
---|
292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
293 | # include <memory.h>
|
---|
294 | # endif
|
---|
295 | # include <string.h>
|
---|
296 | #endif
|
---|
297 | #if HAVE_STRINGS_H
|
---|
298 | # include <strings.h>
|
---|
299 | #endif
|
---|
300 | #if HAVE_INTTYPES_H
|
---|
301 | # include <inttypes.h>
|
---|
302 | #else
|
---|
303 | # if HAVE_STDINT_H
|
---|
304 | # include <stdint.h>
|
---|
305 | # endif
|
---|
306 | #endif
|
---|
307 | #if HAVE_UNISTD_H
|
---|
308 | # include <unistd.h>
|
---|
309 | #endif"
|
---|
310 |
|
---|
311 | ac_subdirs_all="$ac_subdirs_all common-src build-src"
|
---|
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC 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 COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
313 | ac_subst_files=''
|
---|
314 |
|
---|
315 | # Initialize some variables set by options.
|
---|
316 | ac_init_help=
|
---|
317 | ac_init_version=false
|
---|
318 | # The variables have the same names as the options, with
|
---|
319 | # dashes changed to underlines.
|
---|
320 | cache_file=/dev/null
|
---|
321 | exec_prefix=NONE
|
---|
322 | no_create=
|
---|
323 | no_recursion=
|
---|
324 | prefix=NONE
|
---|
325 | program_prefix=NONE
|
---|
326 | program_suffix=NONE
|
---|
327 | program_transform_name=s,x,x,
|
---|
328 | silent=
|
---|
329 | site=
|
---|
330 | srcdir=
|
---|
331 | verbose=
|
---|
332 | x_includes=NONE
|
---|
333 | x_libraries=NONE
|
---|
334 |
|
---|
335 | # Installation directory options.
|
---|
336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
338 | # by default will actually change.
|
---|
339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
340 | bindir='${exec_prefix}/bin'
|
---|
341 | sbindir='${exec_prefix}/sbin'
|
---|
342 | libexecdir='${exec_prefix}/libexec'
|
---|
343 | datadir='${prefix}/share'
|
---|
344 | sysconfdir='${prefix}/etc'
|
---|
345 | sharedstatedir='${prefix}/com'
|
---|
346 | localstatedir='${prefix}/var'
|
---|
347 | libdir='${exec_prefix}/lib'
|
---|
348 | includedir='${prefix}/include'
|
---|
349 | oldincludedir='/usr/include'
|
---|
350 | infodir='${prefix}/info'
|
---|
351 | mandir='${prefix}/man'
|
---|
352 |
|
---|
353 | ac_prev=
|
---|
354 | for ac_option
|
---|
355 | do
|
---|
356 | # If the previous option needs an argument, assign it.
|
---|
357 | if test -n "$ac_prev"; then
|
---|
358 | eval "$ac_prev=\$ac_option"
|
---|
359 | ac_prev=
|
---|
360 | continue
|
---|
361 | fi
|
---|
362 |
|
---|
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
364 |
|
---|
365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
366 |
|
---|
367 | case $ac_option in
|
---|
368 |
|
---|
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
370 | ac_prev=bindir ;;
|
---|
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
372 | bindir=$ac_optarg ;;
|
---|
373 |
|
---|
374 | -build | --build | --buil | --bui | --bu)
|
---|
375 | ac_prev=build_alias ;;
|
---|
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
377 | build_alias=$ac_optarg ;;
|
---|
378 |
|
---|
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
381 | ac_prev=cache_file ;;
|
---|
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
384 | cache_file=$ac_optarg ;;
|
---|
385 |
|
---|
386 | --config-cache | -C)
|
---|
387 | cache_file=config.cache ;;
|
---|
388 |
|
---|
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
390 | ac_prev=datadir ;;
|
---|
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
392 | | --da=*)
|
---|
393 | datadir=$ac_optarg ;;
|
---|
394 |
|
---|
395 | -disable-* | --disable-*)
|
---|
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
397 | # Reject names that are not valid shell variable names.
|
---|
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
400 | { (exit 1); exit 1; }; }
|
---|
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
402 | eval "enable_$ac_feature=no" ;;
|
---|
403 |
|
---|
404 | -enable-* | --enable-*)
|
---|
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
406 | # Reject names that are not valid shell variable names.
|
---|
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
409 | { (exit 1); exit 1; }; }
|
---|
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
411 | case $ac_option in
|
---|
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
413 | *) ac_optarg=yes ;;
|
---|
414 | esac
|
---|
415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
416 |
|
---|
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
419 | | --exec | --exe | --ex)
|
---|
420 | ac_prev=exec_prefix ;;
|
---|
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
423 | | --exec=* | --exe=* | --ex=*)
|
---|
424 | exec_prefix=$ac_optarg ;;
|
---|
425 |
|
---|
426 | -gas | --gas | --ga | --g)
|
---|
427 | # Obsolete; use --with-gas.
|
---|
428 | with_gas=yes ;;
|
---|
429 |
|
---|
430 | -help | --help | --hel | --he | -h)
|
---|
431 | ac_init_help=long ;;
|
---|
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
433 | ac_init_help=recursive ;;
|
---|
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
435 | ac_init_help=short ;;
|
---|
436 |
|
---|
437 | -host | --host | --hos | --ho)
|
---|
438 | ac_prev=host_alias ;;
|
---|
439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
440 | host_alias=$ac_optarg ;;
|
---|
441 |
|
---|
442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
443 | | --includ | --inclu | --incl | --inc)
|
---|
444 | ac_prev=includedir ;;
|
---|
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
447 | includedir=$ac_optarg ;;
|
---|
448 |
|
---|
449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
450 | ac_prev=infodir ;;
|
---|
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
452 | infodir=$ac_optarg ;;
|
---|
453 |
|
---|
454 | -libdir | --libdir | --libdi | --libd)
|
---|
455 | ac_prev=libdir ;;
|
---|
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
457 | libdir=$ac_optarg ;;
|
---|
458 |
|
---|
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
460 | | --libexe | --libex | --libe)
|
---|
461 | ac_prev=libexecdir ;;
|
---|
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
463 | | --libexe=* | --libex=* | --libe=*)
|
---|
464 | libexecdir=$ac_optarg ;;
|
---|
465 |
|
---|
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
467 | | --localstate | --localstat | --localsta | --localst \
|
---|
468 | | --locals | --local | --loca | --loc | --lo)
|
---|
469 | ac_prev=localstatedir ;;
|
---|
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
473 | localstatedir=$ac_optarg ;;
|
---|
474 |
|
---|
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
476 | ac_prev=mandir ;;
|
---|
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
478 | mandir=$ac_optarg ;;
|
---|
479 |
|
---|
480 | -nfp | --nfp | --nf)
|
---|
481 | # Obsolete; use --without-fp.
|
---|
482 | with_fp=no ;;
|
---|
483 |
|
---|
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
485 | | --no-cr | --no-c | -n)
|
---|
486 | no_create=yes ;;
|
---|
487 |
|
---|
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
490 | no_recursion=yes ;;
|
---|
491 |
|
---|
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
495 | ac_prev=oldincludedir ;;
|
---|
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
499 | oldincludedir=$ac_optarg ;;
|
---|
500 |
|
---|
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
502 | ac_prev=prefix ;;
|
---|
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
504 | prefix=$ac_optarg ;;
|
---|
505 |
|
---|
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
507 | | --program-pre | --program-pr | --program-p)
|
---|
508 | ac_prev=program_prefix ;;
|
---|
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
511 | program_prefix=$ac_optarg ;;
|
---|
512 |
|
---|
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
514 | | --program-suf | --program-su | --program-s)
|
---|
515 | ac_prev=program_suffix ;;
|
---|
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
518 | program_suffix=$ac_optarg ;;
|
---|
519 |
|
---|
520 | -program-transform-name | --program-transform-name \
|
---|
521 | | --program-transform-nam | --program-transform-na \
|
---|
522 | | --program-transform-n | --program-transform- \
|
---|
523 | | --program-transform | --program-transfor \
|
---|
524 | | --program-transfo | --program-transf \
|
---|
525 | | --program-trans | --program-tran \
|
---|
526 | | --progr-tra | --program-tr | --program-t)
|
---|
527 | ac_prev=program_transform_name ;;
|
---|
528 | -program-transform-name=* | --program-transform-name=* \
|
---|
529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
530 | | --program-transform-n=* | --program-transform-=* \
|
---|
531 | | --program-transform=* | --program-transfor=* \
|
---|
532 | | --program-transfo=* | --program-transf=* \
|
---|
533 | | --program-trans=* | --program-tran=* \
|
---|
534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
535 | program_transform_name=$ac_optarg ;;
|
---|
536 |
|
---|
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
539 | silent=yes ;;
|
---|
540 |
|
---|
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
542 | ac_prev=sbindir ;;
|
---|
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
544 | | --sbi=* | --sb=*)
|
---|
545 | sbindir=$ac_optarg ;;
|
---|
546 |
|
---|
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
550 | | --sha | --sh)
|
---|
551 | ac_prev=sharedstatedir ;;
|
---|
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
555 | | --sha=* | --sh=*)
|
---|
556 | sharedstatedir=$ac_optarg ;;
|
---|
557 |
|
---|
558 | -site | --site | --sit)
|
---|
559 | ac_prev=site ;;
|
---|
560 | -site=* | --site=* | --sit=*)
|
---|
561 | site=$ac_optarg ;;
|
---|
562 |
|
---|
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
564 | ac_prev=srcdir ;;
|
---|
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
566 | srcdir=$ac_optarg ;;
|
---|
567 |
|
---|
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
570 | ac_prev=sysconfdir ;;
|
---|
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
573 | sysconfdir=$ac_optarg ;;
|
---|
574 |
|
---|
575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
576 | ac_prev=target_alias ;;
|
---|
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
578 | target_alias=$ac_optarg ;;
|
---|
579 |
|
---|
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
581 | verbose=yes ;;
|
---|
582 |
|
---|
583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
584 | ac_init_version=: ;;
|
---|
585 |
|
---|
586 | -with-* | --with-*)
|
---|
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
588 | # Reject names that are not valid shell variable names.
|
---|
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
591 | { (exit 1); exit 1; }; }
|
---|
592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
593 | case $ac_option in
|
---|
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
595 | *) ac_optarg=yes ;;
|
---|
596 | esac
|
---|
597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
598 |
|
---|
599 | -without-* | --without-*)
|
---|
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
601 | # Reject names that are not valid shell variable names.
|
---|
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
604 | { (exit 1); exit 1; }; }
|
---|
605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
606 | eval "with_$ac_package=no" ;;
|
---|
607 |
|
---|
608 | --x)
|
---|
609 | # Obsolete; use --with-x.
|
---|
610 | with_x=yes ;;
|
---|
611 |
|
---|
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
614 | ac_prev=x_includes ;;
|
---|
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
617 | x_includes=$ac_optarg ;;
|
---|
618 |
|
---|
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
621 | ac_prev=x_libraries ;;
|
---|
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
624 | x_libraries=$ac_optarg ;;
|
---|
625 |
|
---|
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
627 | Try \`$0 --help' for more information." >&2
|
---|
628 | { (exit 1); exit 1; }; }
|
---|
629 | ;;
|
---|
630 |
|
---|
631 | *=*)
|
---|
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
633 | # Reject names that are not valid shell variable names.
|
---|
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
636 | { (exit 1); exit 1; }; }
|
---|
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
638 | eval "$ac_envvar='$ac_optarg'"
|
---|
639 | export $ac_envvar ;;
|
---|
640 |
|
---|
641 | *)
|
---|
642 | # FIXME: should be removed in autoconf 3.0.
|
---|
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
647 | ;;
|
---|
648 |
|
---|
649 | esac
|
---|
650 | done
|
---|
651 |
|
---|
652 | if test -n "$ac_prev"; then
|
---|
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
655 | { (exit 1); exit 1; }; }
|
---|
656 | fi
|
---|
657 |
|
---|
658 | # Be sure to have absolute paths.
|
---|
659 | for ac_var in exec_prefix prefix
|
---|
660 | do
|
---|
661 | eval ac_val=$`echo $ac_var`
|
---|
662 | case $ac_val in
|
---|
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
665 | { (exit 1); exit 1; }; };;
|
---|
666 | esac
|
---|
667 | done
|
---|
668 |
|
---|
669 | # Be sure to have absolute paths.
|
---|
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
672 | do
|
---|
673 | eval ac_val=$`echo $ac_var`
|
---|
674 | case $ac_val in
|
---|
675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
677 | { (exit 1); exit 1; }; };;
|
---|
678 | esac
|
---|
679 | done
|
---|
680 |
|
---|
681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
682 | # used to hold the argument of --host etc.
|
---|
683 | # FIXME: To remove some day.
|
---|
684 | build=$build_alias
|
---|
685 | host=$host_alias
|
---|
686 | target=$target_alias
|
---|
687 |
|
---|
688 | # FIXME: To remove some day.
|
---|
689 | if test "x$host_alias" != x; then
|
---|
690 | if test "x$build_alias" = x; then
|
---|
691 | cross_compiling=maybe
|
---|
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
695 | cross_compiling=yes
|
---|
696 | fi
|
---|
697 | fi
|
---|
698 |
|
---|
699 | ac_tool_prefix=
|
---|
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
701 |
|
---|
702 | test "$silent" = yes && exec 6>/dev/null
|
---|
703 |
|
---|
704 |
|
---|
705 | # Find the source files, if location was not specified.
|
---|
706 | if test -z "$srcdir"; then
|
---|
707 | ac_srcdir_defaulted=yes
|
---|
708 | # Try the directory containing this script, then its parent.
|
---|
709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
712 | X"$0" : 'X\(//\)$' \| \
|
---|
713 | X"$0" : 'X\(/\)' \| \
|
---|
714 | . : '\(.\)' 2>/dev/null ||
|
---|
715 | echo X"$0" |
|
---|
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
720 | s/.*/./; q'`
|
---|
721 | srcdir=$ac_confdir
|
---|
722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
723 | srcdir=..
|
---|
724 | fi
|
---|
725 | else
|
---|
726 | ac_srcdir_defaulted=no
|
---|
727 | fi
|
---|
728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
731 | { (exit 1); exit 1; }; }
|
---|
732 | else
|
---|
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
734 | { (exit 1); exit 1; }; }
|
---|
735 | fi
|
---|
736 | fi
|
---|
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
739 | { (exit 1); exit 1; }; }
|
---|
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
741 | ac_env_build_alias_set=${build_alias+set}
|
---|
742 | ac_env_build_alias_value=$build_alias
|
---|
743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
744 | ac_cv_env_build_alias_value=$build_alias
|
---|
745 | ac_env_host_alias_set=${host_alias+set}
|
---|
746 | ac_env_host_alias_value=$host_alias
|
---|
747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
748 | ac_cv_env_host_alias_value=$host_alias
|
---|
749 | ac_env_target_alias_set=${target_alias+set}
|
---|
750 | ac_env_target_alias_value=$target_alias
|
---|
751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
752 | ac_cv_env_target_alias_value=$target_alias
|
---|
753 | ac_env_CC_set=${CC+set}
|
---|
754 | ac_env_CC_value=$CC
|
---|
755 | ac_cv_env_CC_set=${CC+set}
|
---|
756 | ac_cv_env_CC_value=$CC
|
---|
757 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
758 | ac_env_CFLAGS_value=$CFLAGS
|
---|
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
760 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
769 | ac_env_CXX_set=${CXX+set}
|
---|
770 | ac_env_CXX_value=$CXX
|
---|
771 | ac_cv_env_CXX_set=${CXX+set}
|
---|
772 | ac_cv_env_CXX_value=$CXX
|
---|
773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
774 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
777 | ac_env_CPP_set=${CPP+set}
|
---|
778 | ac_env_CPP_value=$CPP
|
---|
779 | ac_cv_env_CPP_set=${CPP+set}
|
---|
780 | ac_cv_env_CPP_value=$CPP
|
---|
781 |
|
---|
782 | #
|
---|
783 | # Report the --help message.
|
---|
784 | #
|
---|
785 | if test "$ac_init_help" = "long"; then
|
---|
786 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
787 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
788 | cat <<_ACEOF
|
---|
789 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
790 |
|
---|
791 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
792 |
|
---|
793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
794 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
795 |
|
---|
796 | Defaults for the options are specified in brackets.
|
---|
797 |
|
---|
798 | Configuration:
|
---|
799 | -h, --help display this help and exit
|
---|
800 | --help=short display options specific to this package
|
---|
801 | --help=recursive display the short help of all the included packages
|
---|
802 | -V, --version display version information and exit
|
---|
803 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
804 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
805 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
806 | -n, --no-create do not create output files
|
---|
807 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
808 |
|
---|
809 | _ACEOF
|
---|
810 |
|
---|
811 | cat <<_ACEOF
|
---|
812 | Installation directories:
|
---|
813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
814 | [$ac_default_prefix]
|
---|
815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
816 | [PREFIX]
|
---|
817 |
|
---|
818 | By default, \`make install' will install all the files in
|
---|
819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
821 | for instance \`--prefix=\$HOME'.
|
---|
822 |
|
---|
823 | For better control, use the options below.
|
---|
824 |
|
---|
825 | Fine tuning of the installation directories:
|
---|
826 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
827 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
828 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
833 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
834 | --includedir=DIR C header files [PREFIX/include]
|
---|
835 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
838 | _ACEOF
|
---|
839 |
|
---|
840 | cat <<\_ACEOF
|
---|
841 |
|
---|
842 | System types:
|
---|
843 | --build=BUILD configure for building on BUILD [guessed]
|
---|
844 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
845 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
846 | _ACEOF
|
---|
847 | fi
|
---|
848 |
|
---|
849 | if test -n "$ac_init_help"; then
|
---|
850 |
|
---|
851 | cat <<\_ACEOF
|
---|
852 |
|
---|
853 | Optional Features:
|
---|
854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
856 | --enable-corba Enable CORBA support
|
---|
857 | --enable-z3950 Enable Z39.50 client support
|
---|
858 | --disable-yaz Disable YAZ compilation
|
---|
859 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
860 | --disable-sqlite Disable SQLite support
|
---|
861 |
|
---|
862 | Optional Packages:
|
---|
863 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
864 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
865 | --with-micodir Use installed MICO directory
|
---|
866 | --with-dmalloc use dmalloc, as in
|
---|
867 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
868 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
869 |
|
---|
870 | Some influential environment variables:
|
---|
871 | CC C compiler command
|
---|
872 | CFLAGS C compiler flags
|
---|
873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
874 | nonstandard directory <lib dir>
|
---|
875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
876 | headers in a nonstandard directory <include dir>
|
---|
877 | CXX C++ compiler command
|
---|
878 | CXXFLAGS C++ compiler flags
|
---|
879 | CPP C preprocessor
|
---|
880 |
|
---|
881 | Use these variables to override the choices made by `configure' or to help
|
---|
882 | it to find libraries and programs with nonstandard names/locations.
|
---|
883 |
|
---|
884 | _ACEOF
|
---|
885 | fi
|
---|
886 |
|
---|
887 | if test "$ac_init_help" = "recursive"; then
|
---|
888 | # If there are subdirs, report their specific --help.
|
---|
889 | ac_popdir=`pwd`
|
---|
890 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
891 | test -d $ac_dir || continue
|
---|
892 | ac_builddir=.
|
---|
893 |
|
---|
894 | if test "$ac_dir" != .; then
|
---|
895 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
896 | # A "../" for each directory in $ac_dir_suffix.
|
---|
897 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
898 | else
|
---|
899 | ac_dir_suffix= ac_top_builddir=
|
---|
900 | fi
|
---|
901 |
|
---|
902 | case $srcdir in
|
---|
903 | .) # No --srcdir option. We are building in place.
|
---|
904 | ac_srcdir=.
|
---|
905 | if test -z "$ac_top_builddir"; then
|
---|
906 | ac_top_srcdir=.
|
---|
907 | else
|
---|
908 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
909 | fi ;;
|
---|
910 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
911 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
912 | ac_top_srcdir=$srcdir ;;
|
---|
913 | *) # Relative path.
|
---|
914 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
915 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
916 | esac
|
---|
917 |
|
---|
918 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
919 | # the directories may not exist.
|
---|
920 | case `pwd` in
|
---|
921 | .) ac_abs_builddir="$ac_dir";;
|
---|
922 | *)
|
---|
923 | case "$ac_dir" in
|
---|
924 | .) ac_abs_builddir=`pwd`;;
|
---|
925 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
926 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
927 | esac;;
|
---|
928 | esac
|
---|
929 | case $ac_abs_builddir in
|
---|
930 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
931 | *)
|
---|
932 | case ${ac_top_builddir}. in
|
---|
933 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
934 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
935 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
936 | esac;;
|
---|
937 | esac
|
---|
938 | case $ac_abs_builddir in
|
---|
939 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
940 | *)
|
---|
941 | case $ac_srcdir in
|
---|
942 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
943 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
944 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
945 | esac;;
|
---|
946 | esac
|
---|
947 | case $ac_abs_builddir in
|
---|
948 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
949 | *)
|
---|
950 | case $ac_top_srcdir in
|
---|
951 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
952 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
953 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
954 | esac;;
|
---|
955 | esac
|
---|
956 |
|
---|
957 | cd $ac_dir
|
---|
958 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
959 | if test -f $ac_srcdir/configure.gnu; then
|
---|
960 | echo
|
---|
961 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
962 | elif test -f $ac_srcdir/configure; then
|
---|
963 | echo
|
---|
964 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
965 | elif test -f $ac_srcdir/configure.ac ||
|
---|
966 | test -f $ac_srcdir/configure.in; then
|
---|
967 | echo
|
---|
968 | $ac_configure --help
|
---|
969 | else
|
---|
970 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
971 | fi
|
---|
972 | cd $ac_popdir
|
---|
973 | done
|
---|
974 | fi
|
---|
975 |
|
---|
976 | test -n "$ac_init_help" && exit 0
|
---|
977 | if $ac_init_version; then
|
---|
978 | cat <<\_ACEOF
|
---|
979 |
|
---|
980 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
981 | This configure script is free software; the Free Software Foundation
|
---|
982 | gives unlimited permission to copy, distribute and modify it.
|
---|
983 | _ACEOF
|
---|
984 | exit 0
|
---|
985 | fi
|
---|
986 | exec 5>config.log
|
---|
987 | cat >&5 <<_ACEOF
|
---|
988 | This file contains any messages produced by compilers while
|
---|
989 | running configure, to aid debugging if configure makes a mistake.
|
---|
990 |
|
---|
991 | It was created by $as_me, which was
|
---|
992 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
993 |
|
---|
994 | $ $0 $@
|
---|
995 |
|
---|
996 | _ACEOF
|
---|
997 | {
|
---|
998 | cat <<_ASUNAME
|
---|
999 | ## --------- ##
|
---|
1000 | ## Platform. ##
|
---|
1001 | ## --------- ##
|
---|
1002 |
|
---|
1003 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1004 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1005 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1006 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1007 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1008 |
|
---|
1009 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1010 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1011 |
|
---|
1012 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1013 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1014 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1015 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1016 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1017 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1018 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1019 |
|
---|
1020 | _ASUNAME
|
---|
1021 |
|
---|
1022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1023 | for as_dir in $PATH
|
---|
1024 | do
|
---|
1025 | IFS=$as_save_IFS
|
---|
1026 | test -z "$as_dir" && as_dir=.
|
---|
1027 | echo "PATH: $as_dir"
|
---|
1028 | done
|
---|
1029 |
|
---|
1030 | } >&5
|
---|
1031 |
|
---|
1032 | cat >&5 <<_ACEOF
|
---|
1033 |
|
---|
1034 |
|
---|
1035 | ## ----------- ##
|
---|
1036 | ## Core tests. ##
|
---|
1037 | ## ----------- ##
|
---|
1038 |
|
---|
1039 | _ACEOF
|
---|
1040 |
|
---|
1041 |
|
---|
1042 | # Keep a trace of the command line.
|
---|
1043 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1044 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1045 | # Also quote any args containing shell meta-characters.
|
---|
1046 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1047 | ac_configure_args=
|
---|
1048 | ac_configure_args0=
|
---|
1049 | ac_configure_args1=
|
---|
1050 | ac_sep=
|
---|
1051 | ac_must_keep_next=false
|
---|
1052 | for ac_pass in 1 2
|
---|
1053 | do
|
---|
1054 | for ac_arg
|
---|
1055 | do
|
---|
1056 | case $ac_arg in
|
---|
1057 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1059 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1060 | continue ;;
|
---|
1061 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1062 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1063 | esac
|
---|
1064 | case $ac_pass in
|
---|
1065 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1066 | 2)
|
---|
1067 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1068 | if test $ac_must_keep_next = true; then
|
---|
1069 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1070 | else
|
---|
1071 | case $ac_arg in
|
---|
1072 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1073 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1074 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1075 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1076 | case "$ac_configure_args0 " in
|
---|
1077 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1078 | esac
|
---|
1079 | ;;
|
---|
1080 | -* ) ac_must_keep_next=true ;;
|
---|
1081 | esac
|
---|
1082 | fi
|
---|
1083 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1084 | # Get rid of the leading space.
|
---|
1085 | ac_sep=" "
|
---|
1086 | ;;
|
---|
1087 | esac
|
---|
1088 | done
|
---|
1089 | done
|
---|
1090 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1091 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1092 |
|
---|
1093 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1094 | # config.log. We remove comments because anyway the quotes in there
|
---|
1095 | # would cause problems or look ugly.
|
---|
1096 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1097 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1098 | trap 'exit_status=$?
|
---|
1099 | # Save into config.log some information that might help in debugging.
|
---|
1100 | {
|
---|
1101 | echo
|
---|
1102 |
|
---|
1103 | cat <<\_ASBOX
|
---|
1104 | ## ---------------- ##
|
---|
1105 | ## Cache variables. ##
|
---|
1106 | ## ---------------- ##
|
---|
1107 | _ASBOX
|
---|
1108 | echo
|
---|
1109 | # The following way of writing the cache mishandles newlines in values,
|
---|
1110 | {
|
---|
1111 | (set) 2>&1 |
|
---|
1112 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1113 | *ac_space=\ *)
|
---|
1114 | sed -n \
|
---|
1115 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1116 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1117 | ;;
|
---|
1118 | *)
|
---|
1119 | sed -n \
|
---|
1120 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1121 | ;;
|
---|
1122 | esac;
|
---|
1123 | }
|
---|
1124 | echo
|
---|
1125 |
|
---|
1126 | cat <<\_ASBOX
|
---|
1127 | ## ----------------- ##
|
---|
1128 | ## Output variables. ##
|
---|
1129 | ## ----------------- ##
|
---|
1130 | _ASBOX
|
---|
1131 | echo
|
---|
1132 | for ac_var in $ac_subst_vars
|
---|
1133 | do
|
---|
1134 | eval ac_val=$`echo $ac_var`
|
---|
1135 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1136 | done | sort
|
---|
1137 | echo
|
---|
1138 |
|
---|
1139 | if test -n "$ac_subst_files"; then
|
---|
1140 | cat <<\_ASBOX
|
---|
1141 | ## ------------- ##
|
---|
1142 | ## Output files. ##
|
---|
1143 | ## ------------- ##
|
---|
1144 | _ASBOX
|
---|
1145 | echo
|
---|
1146 | for ac_var in $ac_subst_files
|
---|
1147 | do
|
---|
1148 | eval ac_val=$`echo $ac_var`
|
---|
1149 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1150 | done | sort
|
---|
1151 | echo
|
---|
1152 | fi
|
---|
1153 |
|
---|
1154 | if test -s confdefs.h; then
|
---|
1155 | cat <<\_ASBOX
|
---|
1156 | ## ----------- ##
|
---|
1157 | ## confdefs.h. ##
|
---|
1158 | ## ----------- ##
|
---|
1159 | _ASBOX
|
---|
1160 | echo
|
---|
1161 | sed "/^$/d" confdefs.h | sort
|
---|
1162 | echo
|
---|
1163 | fi
|
---|
1164 | test "$ac_signal" != 0 &&
|
---|
1165 | echo "$as_me: caught signal $ac_signal"
|
---|
1166 | echo "$as_me: exit $exit_status"
|
---|
1167 | } >&5
|
---|
1168 | rm -f core *.core &&
|
---|
1169 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1170 | exit $exit_status
|
---|
1171 | ' 0
|
---|
1172 | for ac_signal in 1 2 13 15; do
|
---|
1173 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1174 | done
|
---|
1175 | ac_signal=0
|
---|
1176 |
|
---|
1177 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1178 | rm -rf conftest* confdefs.h
|
---|
1179 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1180 | echo >confdefs.h
|
---|
1181 |
|
---|
1182 | # Predefined preprocessor variables.
|
---|
1183 |
|
---|
1184 | cat >>confdefs.h <<_ACEOF
|
---|
1185 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1186 | _ACEOF
|
---|
1187 |
|
---|
1188 |
|
---|
1189 | cat >>confdefs.h <<_ACEOF
|
---|
1190 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1191 | _ACEOF
|
---|
1192 |
|
---|
1193 |
|
---|
1194 | cat >>confdefs.h <<_ACEOF
|
---|
1195 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1196 | _ACEOF
|
---|
1197 |
|
---|
1198 |
|
---|
1199 | cat >>confdefs.h <<_ACEOF
|
---|
1200 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1201 | _ACEOF
|
---|
1202 |
|
---|
1203 |
|
---|
1204 | cat >>confdefs.h <<_ACEOF
|
---|
1205 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1206 | _ACEOF
|
---|
1207 |
|
---|
1208 |
|
---|
1209 | # Let the site file select an alternate cache file if it wants to.
|
---|
1210 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1211 | if test -z "$CONFIG_SITE"; then
|
---|
1212 | if test "x$prefix" != xNONE; then
|
---|
1213 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1214 | else
|
---|
1215 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1216 | fi
|
---|
1217 | fi
|
---|
1218 | for ac_site_file in $CONFIG_SITE; do
|
---|
1219 | if test -r "$ac_site_file"; then
|
---|
1220 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1221 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1222 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1223 | . "$ac_site_file"
|
---|
1224 | fi
|
---|
1225 | done
|
---|
1226 |
|
---|
1227 | if test -r "$cache_file"; then
|
---|
1228 | # Some versions of bash will fail to source /dev/null (special
|
---|
1229 | # files actually), so we avoid doing that.
|
---|
1230 | if test -f "$cache_file"; then
|
---|
1231 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1232 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1233 | case $cache_file in
|
---|
1234 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1235 | *) . ./$cache_file;;
|
---|
1236 | esac
|
---|
1237 | fi
|
---|
1238 | else
|
---|
1239 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1240 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1241 | >$cache_file
|
---|
1242 | fi
|
---|
1243 |
|
---|
1244 | # Check that the precious variables saved in the cache have kept the same
|
---|
1245 | # value.
|
---|
1246 | ac_cache_corrupted=false
|
---|
1247 | for ac_var in `(set) 2>&1 |
|
---|
1248 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1249 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1250 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1251 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1252 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1253 | case $ac_old_set,$ac_new_set in
|
---|
1254 | set,)
|
---|
1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1256 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1257 | ac_cache_corrupted=: ;;
|
---|
1258 | ,set)
|
---|
1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1260 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1261 | ac_cache_corrupted=: ;;
|
---|
1262 | ,);;
|
---|
1263 | *)
|
---|
1264 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1266 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1267 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1268 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1269 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1270 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1271 | ac_cache_corrupted=:
|
---|
1272 | fi;;
|
---|
1273 | esac
|
---|
1274 | # Pass precious variables to config.status.
|
---|
1275 | if test "$ac_new_set" = set; then
|
---|
1276 | case $ac_new_val in
|
---|
1277 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1278 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1279 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1280 | esac
|
---|
1281 | case " $ac_configure_args " in
|
---|
1282 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1283 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1284 | esac
|
---|
1285 | fi
|
---|
1286 | done
|
---|
1287 | if $ac_cache_corrupted; then
|
---|
1288 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1289 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1290 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1291 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1292 | { (exit 1); exit 1; }; }
|
---|
1293 | fi
|
---|
1294 |
|
---|
1295 | ac_ext=c
|
---|
1296 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1300 |
|
---|
1301 |
|
---|
1302 |
|
---|
1303 |
|
---|
1304 |
|
---|
1305 |
|
---|
1306 |
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 |
|
---|
1314 |
|
---|
1315 |
|
---|
1316 |
|
---|
1317 |
|
---|
1318 |
|
---|
1319 | ac_config_headers="$ac_config_headers config.h"
|
---|
1320 |
|
---|
1321 |
|
---|
1322 | PACKAGE=gsdl
|
---|
1323 | VERSION=2.82-svn
|
---|
1324 | cat >>confdefs.h <<_ACEOF
|
---|
1325 | #define PACKAGE "$PACKAGE"
|
---|
1326 | _ACEOF
|
---|
1327 |
|
---|
1328 | cat >>confdefs.h <<_ACEOF
|
---|
1329 | #define VERSION "$VERSION"
|
---|
1330 | _ACEOF
|
---|
1331 |
|
---|
1332 |
|
---|
1333 |
|
---|
1334 |
|
---|
1335 | USE_FASTCGI=0
|
---|
1336 | if test USE_FASTCGI = 1; then
|
---|
1337 | cat >>confdefs.h <<\_ACEOF
|
---|
1338 | #define USE_FASTCGI 1
|
---|
1339 | _ACEOF
|
---|
1340 |
|
---|
1341 |
|
---|
1342 | fi
|
---|
1343 |
|
---|
1344 | if test USE_LANGACTION = 1; then
|
---|
1345 | cat >>confdefs.h <<\_ACEOF
|
---|
1346 | #define USE_LANGACTION 1
|
---|
1347 | _ACEOF
|
---|
1348 |
|
---|
1349 |
|
---|
1350 | fi
|
---|
1351 |
|
---|
1352 | # Check whether --enable-corba or --disable-corba was given.
|
---|
1353 | if test "${enable_corba+set}" = set; then
|
---|
1354 | enableval="$enable_corba"
|
---|
1355 | USE_CORBA=1
|
---|
1356 | else
|
---|
1357 | USE_CORBA=0
|
---|
1358 | fi;
|
---|
1359 | cat >>confdefs.h <<_ACEOF
|
---|
1360 | #define USE_CORBA $USE_CORBA
|
---|
1361 | _ACEOF
|
---|
1362 |
|
---|
1363 |
|
---|
1364 |
|
---|
1365 |
|
---|
1366 | # Check whether --with-micodir or --without-micodir was given.
|
---|
1367 | if test "${with_micodir+set}" = set; then
|
---|
1368 | withval="$with_micodir"
|
---|
1369 | MICO_DIR=$enableval
|
---|
1370 | else
|
---|
1371 | MICO_DIR="default"
|
---|
1372 | fi;
|
---|
1373 | cat >>confdefs.h <<_ACEOF
|
---|
1374 | #define MICO_DIR "$MICO_DIR"
|
---|
1375 | _ACEOF
|
---|
1376 |
|
---|
1377 |
|
---|
1378 |
|
---|
1379 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
1380 | if test "${enable_z3950+set}" = set; then
|
---|
1381 | enableval="$enable_z3950"
|
---|
1382 | USE_Z3950=1
|
---|
1383 | else
|
---|
1384 | USE_Z3950=0
|
---|
1385 | fi;
|
---|
1386 | if test USE_Z3950 = 1; then
|
---|
1387 | cat >>confdefs.h <<\_ACEOF
|
---|
1388 | #define USE_Z3950 $USE_Z3950
|
---|
1389 | _ACEOF
|
---|
1390 |
|
---|
1391 |
|
---|
1392 | fi
|
---|
1393 |
|
---|
1394 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
1395 | if test "${enable_yaz+set}" = set; then
|
---|
1396 | enableval="$enable_yaz"
|
---|
1397 | USE_YAZ=0
|
---|
1398 | else
|
---|
1399 | USE_YAZ=1
|
---|
1400 | fi;
|
---|
1401 | cat >>confdefs.h <<\_ACEOF
|
---|
1402 | #define USE_YAZ $USE_YAZ
|
---|
1403 | _ACEOF
|
---|
1404 |
|
---|
1405 |
|
---|
1406 |
|
---|
1407 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
1408 | if test "${enable_accentfold+set}" = set; then
|
---|
1409 | enableval="$enable_accentfold"
|
---|
1410 | ENABLE_ACCENTFOLD=0
|
---|
1411 | else
|
---|
1412 | ENABLE_ACCENTFOLD=1
|
---|
1413 | fi;
|
---|
1414 | cat >>confdefs.h <<\_ACEOF
|
---|
1415 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
1416 | _ACEOF
|
---|
1417 |
|
---|
1418 |
|
---|
1419 |
|
---|
1420 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
1421 | if test "${enable_sqlite+set}" = set; then
|
---|
1422 | enableval="$enable_sqlite"
|
---|
1423 | USE_SQLITE=0
|
---|
1424 | else
|
---|
1425 | USE_SQLITE=1
|
---|
1426 | fi;
|
---|
1427 | cat >>confdefs.h <<\_ACEOF
|
---|
1428 | #define USE_SQLITE $USE_SQLITE
|
---|
1429 | _ACEOF
|
---|
1430 |
|
---|
1431 |
|
---|
1432 |
|
---|
1433 | LDFLAGS=$LDFLAGS
|
---|
1434 |
|
---|
1435 | if test -z "$CFLAGS"; then
|
---|
1436 | CFLAGS=-O2
|
---|
1437 | fi
|
---|
1438 |
|
---|
1439 |
|
---|
1440 |
|
---|
1441 | ac_ext=c
|
---|
1442 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1446 | if test -n "$ac_tool_prefix"; then
|
---|
1447 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1448 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1449 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1451 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1452 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1453 | else
|
---|
1454 | if test -n "$CC"; then
|
---|
1455 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1456 | else
|
---|
1457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1458 | for as_dir in $PATH
|
---|
1459 | do
|
---|
1460 | IFS=$as_save_IFS
|
---|
1461 | test -z "$as_dir" && as_dir=.
|
---|
1462 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1464 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1466 | break 2
|
---|
1467 | fi
|
---|
1468 | done
|
---|
1469 | done
|
---|
1470 |
|
---|
1471 | fi
|
---|
1472 | fi
|
---|
1473 | CC=$ac_cv_prog_CC
|
---|
1474 | if test -n "$CC"; then
|
---|
1475 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1476 | echo "${ECHO_T}$CC" >&6
|
---|
1477 | else
|
---|
1478 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1479 | echo "${ECHO_T}no" >&6
|
---|
1480 | fi
|
---|
1481 |
|
---|
1482 | fi
|
---|
1483 | if test -z "$ac_cv_prog_CC"; then
|
---|
1484 | ac_ct_CC=$CC
|
---|
1485 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1486 | set dummy gcc; ac_word=$2
|
---|
1487 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1489 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1490 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1491 | else
|
---|
1492 | if test -n "$ac_ct_CC"; then
|
---|
1493 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1494 | else
|
---|
1495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1496 | for as_dir in $PATH
|
---|
1497 | do
|
---|
1498 | IFS=$as_save_IFS
|
---|
1499 | test -z "$as_dir" && as_dir=.
|
---|
1500 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1502 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1504 | break 2
|
---|
1505 | fi
|
---|
1506 | done
|
---|
1507 | done
|
---|
1508 |
|
---|
1509 | fi
|
---|
1510 | fi
|
---|
1511 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1512 | if test -n "$ac_ct_CC"; then
|
---|
1513 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1514 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1515 | else
|
---|
1516 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1517 | echo "${ECHO_T}no" >&6
|
---|
1518 | fi
|
---|
1519 |
|
---|
1520 | CC=$ac_ct_CC
|
---|
1521 | else
|
---|
1522 | CC="$ac_cv_prog_CC"
|
---|
1523 | fi
|
---|
1524 |
|
---|
1525 | if test -z "$CC"; then
|
---|
1526 | if test -n "$ac_tool_prefix"; then
|
---|
1527 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1528 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1529 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1531 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1532 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1533 | else
|
---|
1534 | if test -n "$CC"; then
|
---|
1535 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1536 | else
|
---|
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 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1546 | break 2
|
---|
1547 | fi
|
---|
1548 | done
|
---|
1549 | done
|
---|
1550 |
|
---|
1551 | fi
|
---|
1552 | fi
|
---|
1553 | CC=$ac_cv_prog_CC
|
---|
1554 | if test -n "$CC"; then
|
---|
1555 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1556 | echo "${ECHO_T}$CC" >&6
|
---|
1557 | else
|
---|
1558 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1559 | echo "${ECHO_T}no" >&6
|
---|
1560 | fi
|
---|
1561 |
|
---|
1562 | fi
|
---|
1563 | if test -z "$ac_cv_prog_CC"; then
|
---|
1564 | ac_ct_CC=$CC
|
---|
1565 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1566 | set dummy cc; ac_word=$2
|
---|
1567 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1569 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1571 | else
|
---|
1572 | if test -n "$ac_ct_CC"; then
|
---|
1573 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1574 | else
|
---|
1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1576 | for as_dir in $PATH
|
---|
1577 | do
|
---|
1578 | IFS=$as_save_IFS
|
---|
1579 | test -z "$as_dir" && as_dir=.
|
---|
1580 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1582 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1584 | break 2
|
---|
1585 | fi
|
---|
1586 | done
|
---|
1587 | done
|
---|
1588 |
|
---|
1589 | fi
|
---|
1590 | fi
|
---|
1591 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1592 | if test -n "$ac_ct_CC"; then
|
---|
1593 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1594 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1595 | else
|
---|
1596 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1597 | echo "${ECHO_T}no" >&6
|
---|
1598 | fi
|
---|
1599 |
|
---|
1600 | CC=$ac_ct_CC
|
---|
1601 | else
|
---|
1602 | CC="$ac_cv_prog_CC"
|
---|
1603 | fi
|
---|
1604 |
|
---|
1605 | fi
|
---|
1606 | if test -z "$CC"; then
|
---|
1607 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1608 | set dummy cc; ac_word=$2
|
---|
1609 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1611 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1612 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1613 | else
|
---|
1614 | if test -n "$CC"; then
|
---|
1615 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1616 | else
|
---|
1617 | ac_prog_rejected=no
|
---|
1618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1619 | for as_dir in $PATH
|
---|
1620 | do
|
---|
1621 | IFS=$as_save_IFS
|
---|
1622 | test -z "$as_dir" && as_dir=.
|
---|
1623 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1625 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1626 | ac_prog_rejected=yes
|
---|
1627 | continue
|
---|
1628 | fi
|
---|
1629 | ac_cv_prog_CC="cc"
|
---|
1630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1631 | break 2
|
---|
1632 | fi
|
---|
1633 | done
|
---|
1634 | done
|
---|
1635 |
|
---|
1636 | if test $ac_prog_rejected = yes; then
|
---|
1637 | # We found a bogon in the path, so make sure we never use it.
|
---|
1638 | set dummy $ac_cv_prog_CC
|
---|
1639 | shift
|
---|
1640 | if test $# != 0; then
|
---|
1641 | # We chose a different compiler from the bogus one.
|
---|
1642 | # However, it has the same basename, so the bogon will be chosen
|
---|
1643 | # first if we set CC to just the basename; use the full file name.
|
---|
1644 | shift
|
---|
1645 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1646 | fi
|
---|
1647 | fi
|
---|
1648 | fi
|
---|
1649 | fi
|
---|
1650 | CC=$ac_cv_prog_CC
|
---|
1651 | if test -n "$CC"; then
|
---|
1652 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1653 | echo "${ECHO_T}$CC" >&6
|
---|
1654 | else
|
---|
1655 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1656 | echo "${ECHO_T}no" >&6
|
---|
1657 | fi
|
---|
1658 |
|
---|
1659 | fi
|
---|
1660 | if test -z "$CC"; then
|
---|
1661 | if test -n "$ac_tool_prefix"; then
|
---|
1662 | for ac_prog in cl
|
---|
1663 | do
|
---|
1664 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1665 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1666 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1668 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1669 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1670 | else
|
---|
1671 | if test -n "$CC"; then
|
---|
1672 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1673 | else
|
---|
1674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1675 | for as_dir in $PATH
|
---|
1676 | do
|
---|
1677 | IFS=$as_save_IFS
|
---|
1678 | test -z "$as_dir" && as_dir=.
|
---|
1679 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1681 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1683 | break 2
|
---|
1684 | fi
|
---|
1685 | done
|
---|
1686 | done
|
---|
1687 |
|
---|
1688 | fi
|
---|
1689 | fi
|
---|
1690 | CC=$ac_cv_prog_CC
|
---|
1691 | if test -n "$CC"; then
|
---|
1692 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1693 | echo "${ECHO_T}$CC" >&6
|
---|
1694 | else
|
---|
1695 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1696 | echo "${ECHO_T}no" >&6
|
---|
1697 | fi
|
---|
1698 |
|
---|
1699 | test -n "$CC" && break
|
---|
1700 | done
|
---|
1701 | fi
|
---|
1702 | if test -z "$CC"; then
|
---|
1703 | ac_ct_CC=$CC
|
---|
1704 | for ac_prog in cl
|
---|
1705 | do
|
---|
1706 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1707 | set dummy $ac_prog; ac_word=$2
|
---|
1708 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1710 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1711 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1712 | else
|
---|
1713 | if test -n "$ac_ct_CC"; then
|
---|
1714 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1715 | else
|
---|
1716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1717 | for as_dir in $PATH
|
---|
1718 | do
|
---|
1719 | IFS=$as_save_IFS
|
---|
1720 | test -z "$as_dir" && as_dir=.
|
---|
1721 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1722 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1723 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1724 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1725 | break 2
|
---|
1726 | fi
|
---|
1727 | done
|
---|
1728 | done
|
---|
1729 |
|
---|
1730 | fi
|
---|
1731 | fi
|
---|
1732 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1733 | if test -n "$ac_ct_CC"; then
|
---|
1734 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1735 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1736 | else
|
---|
1737 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1738 | echo "${ECHO_T}no" >&6
|
---|
1739 | fi
|
---|
1740 |
|
---|
1741 | test -n "$ac_ct_CC" && break
|
---|
1742 | done
|
---|
1743 |
|
---|
1744 | CC=$ac_ct_CC
|
---|
1745 | fi
|
---|
1746 |
|
---|
1747 | fi
|
---|
1748 |
|
---|
1749 |
|
---|
1750 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1751 | See \`config.log' for more details." >&5
|
---|
1752 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1753 | See \`config.log' for more details." >&2;}
|
---|
1754 | { (exit 1); exit 1; }; }
|
---|
1755 |
|
---|
1756 | # Provide some information about the compiler.
|
---|
1757 | echo "$as_me:$LINENO:" \
|
---|
1758 | "checking for C compiler version" >&5
|
---|
1759 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1760 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1761 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1762 | ac_status=$?
|
---|
1763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1764 | (exit $ac_status); }
|
---|
1765 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1766 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1767 | ac_status=$?
|
---|
1768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1769 | (exit $ac_status); }
|
---|
1770 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1771 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1772 | ac_status=$?
|
---|
1773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1774 | (exit $ac_status); }
|
---|
1775 |
|
---|
1776 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1777 | /* confdefs.h. */
|
---|
1778 | _ACEOF
|
---|
1779 | cat confdefs.h >>conftest.$ac_ext
|
---|
1780 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1781 | /* end confdefs.h. */
|
---|
1782 |
|
---|
1783 | int
|
---|
1784 | main ()
|
---|
1785 | {
|
---|
1786 |
|
---|
1787 | ;
|
---|
1788 | return 0;
|
---|
1789 | }
|
---|
1790 | _ACEOF
|
---|
1791 | ac_clean_files_save=$ac_clean_files
|
---|
1792 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1793 | # Try to create an executable without -o first, disregard a.out.
|
---|
1794 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1795 | # of exeext.
|
---|
1796 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1797 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1798 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1799 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1800 | (eval $ac_link_default) 2>&5
|
---|
1801 | ac_status=$?
|
---|
1802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1803 | (exit $ac_status); }; then
|
---|
1804 | # Find the output, starting from the most likely. This scheme is
|
---|
1805 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1806 | # resort.
|
---|
1807 |
|
---|
1808 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1809 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1810 | ac_cv_exeext=
|
---|
1811 | # b.out is created by i960 compilers.
|
---|
1812 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1813 | do
|
---|
1814 | test -f "$ac_file" || continue
|
---|
1815 | case $ac_file in
|
---|
1816 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1817 | ;;
|
---|
1818 | conftest.$ac_ext )
|
---|
1819 | # This is the source file.
|
---|
1820 | ;;
|
---|
1821 | [ab].out )
|
---|
1822 | # We found the default executable, but exeext='' is most
|
---|
1823 | # certainly right.
|
---|
1824 | break;;
|
---|
1825 | *.* )
|
---|
1826 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1827 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1828 | # but it would be cool to find out if it's true. Does anybody
|
---|
1829 | # maintain Libtool? --akim.
|
---|
1830 | export ac_cv_exeext
|
---|
1831 | break;;
|
---|
1832 | * )
|
---|
1833 | break;;
|
---|
1834 | esac
|
---|
1835 | done
|
---|
1836 | else
|
---|
1837 | echo "$as_me: failed program was:" >&5
|
---|
1838 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1839 |
|
---|
1840 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1841 | See \`config.log' for more details." >&5
|
---|
1842 | echo "$as_me: error: C compiler cannot create executables
|
---|
1843 | See \`config.log' for more details." >&2;}
|
---|
1844 | { (exit 77); exit 77; }; }
|
---|
1845 | fi
|
---|
1846 |
|
---|
1847 | ac_exeext=$ac_cv_exeext
|
---|
1848 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1849 | echo "${ECHO_T}$ac_file" >&6
|
---|
1850 |
|
---|
1851 | # Check the compiler produces executables we can run. If not, either
|
---|
1852 | # the compiler is broken, or we cross compile.
|
---|
1853 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1854 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1855 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1856 | # If not cross compiling, check that we can run a simple program.
|
---|
1857 | if test "$cross_compiling" != yes; then
|
---|
1858 | if { ac_try='./$ac_file'
|
---|
1859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1860 | (eval $ac_try) 2>&5
|
---|
1861 | ac_status=$?
|
---|
1862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1863 | (exit $ac_status); }; }; then
|
---|
1864 | cross_compiling=no
|
---|
1865 | else
|
---|
1866 | if test "$cross_compiling" = maybe; then
|
---|
1867 | cross_compiling=yes
|
---|
1868 | else
|
---|
1869 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1870 | If you meant to cross compile, use \`--host'.
|
---|
1871 | See \`config.log' for more details." >&5
|
---|
1872 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1873 | If you meant to cross compile, use \`--host'.
|
---|
1874 | See \`config.log' for more details." >&2;}
|
---|
1875 | { (exit 1); exit 1; }; }
|
---|
1876 | fi
|
---|
1877 | fi
|
---|
1878 | fi
|
---|
1879 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1880 | echo "${ECHO_T}yes" >&6
|
---|
1881 |
|
---|
1882 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1883 | ac_clean_files=$ac_clean_files_save
|
---|
1884 | # Check the compiler produces executables we can run. If not, either
|
---|
1885 | # the compiler is broken, or we cross compile.
|
---|
1886 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1887 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1888 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
1889 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1890 |
|
---|
1891 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
1892 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
1893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
1894 | (eval $ac_link) 2>&5
|
---|
1895 | ac_status=$?
|
---|
1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1897 | (exit $ac_status); }; then
|
---|
1898 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1899 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1900 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1901 | # `rm'.
|
---|
1902 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
1903 | test -f "$ac_file" || continue
|
---|
1904 | case $ac_file in
|
---|
1905 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
1906 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1907 | export ac_cv_exeext
|
---|
1908 | break;;
|
---|
1909 | * ) break;;
|
---|
1910 | esac
|
---|
1911 | done
|
---|
1912 | else
|
---|
1913 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
1914 | See \`config.log' for more details." >&5
|
---|
1915 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
1916 | See \`config.log' for more details." >&2;}
|
---|
1917 | { (exit 1); exit 1; }; }
|
---|
1918 | fi
|
---|
1919 |
|
---|
1920 | rm -f conftest$ac_cv_exeext
|
---|
1921 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
1922 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1923 |
|
---|
1924 | rm -f conftest.$ac_ext
|
---|
1925 | EXEEXT=$ac_cv_exeext
|
---|
1926 | ac_exeext=$EXEEXT
|
---|
1927 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
1928 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
1929 | if test "${ac_cv_objext+set}" = set; then
|
---|
1930 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1931 | else
|
---|
1932 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1933 | /* confdefs.h. */
|
---|
1934 | _ACEOF
|
---|
1935 | cat confdefs.h >>conftest.$ac_ext
|
---|
1936 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1937 | /* end confdefs.h. */
|
---|
1938 |
|
---|
1939 | int
|
---|
1940 | main ()
|
---|
1941 | {
|
---|
1942 |
|
---|
1943 | ;
|
---|
1944 | return 0;
|
---|
1945 | }
|
---|
1946 | _ACEOF
|
---|
1947 | rm -f conftest.o conftest.obj
|
---|
1948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1949 | (eval $ac_compile) 2>&5
|
---|
1950 | ac_status=$?
|
---|
1951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1952 | (exit $ac_status); }; then
|
---|
1953 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1954 | case $ac_file in
|
---|
1955 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
1956 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1957 | break;;
|
---|
1958 | esac
|
---|
1959 | done
|
---|
1960 | else
|
---|
1961 | echo "$as_me: failed program was:" >&5
|
---|
1962 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1963 |
|
---|
1964 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
1965 | See \`config.log' for more details." >&5
|
---|
1966 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
1967 | See \`config.log' for more details." >&2;}
|
---|
1968 | { (exit 1); exit 1; }; }
|
---|
1969 | fi
|
---|
1970 |
|
---|
1971 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1972 | fi
|
---|
1973 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
1974 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1975 | OBJEXT=$ac_cv_objext
|
---|
1976 | ac_objext=$OBJEXT
|
---|
1977 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
1978 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
1979 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
1980 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1981 | else
|
---|
1982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1983 | /* confdefs.h. */
|
---|
1984 | _ACEOF
|
---|
1985 | cat confdefs.h >>conftest.$ac_ext
|
---|
1986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1987 | /* end confdefs.h. */
|
---|
1988 |
|
---|
1989 | int
|
---|
1990 | main ()
|
---|
1991 | {
|
---|
1992 | #ifndef __GNUC__
|
---|
1993 | choke me
|
---|
1994 | #endif
|
---|
1995 |
|
---|
1996 | ;
|
---|
1997 | return 0;
|
---|
1998 | }
|
---|
1999 | _ACEOF
|
---|
2000 | rm -f conftest.$ac_objext
|
---|
2001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2002 | (eval $ac_compile) 2>conftest.er1
|
---|
2003 | ac_status=$?
|
---|
2004 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2005 | rm -f conftest.er1
|
---|
2006 | cat conftest.err >&5
|
---|
2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2008 | (exit $ac_status); } &&
|
---|
2009 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2010 | || test ! -s conftest.err'
|
---|
2011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2012 | (eval $ac_try) 2>&5
|
---|
2013 | ac_status=$?
|
---|
2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2015 | (exit $ac_status); }; } &&
|
---|
2016 | { ac_try='test -s conftest.$ac_objext'
|
---|
2017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2018 | (eval $ac_try) 2>&5
|
---|
2019 | ac_status=$?
|
---|
2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2021 | (exit $ac_status); }; }; then
|
---|
2022 | ac_compiler_gnu=yes
|
---|
2023 | else
|
---|
2024 | echo "$as_me: failed program was:" >&5
|
---|
2025 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2026 |
|
---|
2027 | ac_compiler_gnu=no
|
---|
2028 | fi
|
---|
2029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2030 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2031 |
|
---|
2032 | fi
|
---|
2033 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2034 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2035 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2036 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2037 | ac_save_CFLAGS=$CFLAGS
|
---|
2038 | CFLAGS="-g"
|
---|
2039 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2040 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2041 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2042 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2043 | else
|
---|
2044 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2045 | /* confdefs.h. */
|
---|
2046 | _ACEOF
|
---|
2047 | cat confdefs.h >>conftest.$ac_ext
|
---|
2048 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2049 | /* end confdefs.h. */
|
---|
2050 |
|
---|
2051 | int
|
---|
2052 | main ()
|
---|
2053 | {
|
---|
2054 |
|
---|
2055 | ;
|
---|
2056 | return 0;
|
---|
2057 | }
|
---|
2058 | _ACEOF
|
---|
2059 | rm -f conftest.$ac_objext
|
---|
2060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2061 | (eval $ac_compile) 2>conftest.er1
|
---|
2062 | ac_status=$?
|
---|
2063 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2064 | rm -f conftest.er1
|
---|
2065 | cat conftest.err >&5
|
---|
2066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2067 | (exit $ac_status); } &&
|
---|
2068 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2069 | || test ! -s conftest.err'
|
---|
2070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2071 | (eval $ac_try) 2>&5
|
---|
2072 | ac_status=$?
|
---|
2073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2074 | (exit $ac_status); }; } &&
|
---|
2075 | { ac_try='test -s conftest.$ac_objext'
|
---|
2076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2077 | (eval $ac_try) 2>&5
|
---|
2078 | ac_status=$?
|
---|
2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2080 | (exit $ac_status); }; }; then
|
---|
2081 | ac_cv_prog_cc_g=yes
|
---|
2082 | else
|
---|
2083 | echo "$as_me: failed program was:" >&5
|
---|
2084 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2085 |
|
---|
2086 | ac_cv_prog_cc_g=no
|
---|
2087 | fi
|
---|
2088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2089 | fi
|
---|
2090 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2091 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2092 | if test "$ac_test_CFLAGS" = set; then
|
---|
2093 | CFLAGS=$ac_save_CFLAGS
|
---|
2094 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2095 | if test "$GCC" = yes; then
|
---|
2096 | CFLAGS="-g -O2"
|
---|
2097 | else
|
---|
2098 | CFLAGS="-g"
|
---|
2099 | fi
|
---|
2100 | else
|
---|
2101 | if test "$GCC" = yes; then
|
---|
2102 | CFLAGS="-O2"
|
---|
2103 | else
|
---|
2104 | CFLAGS=
|
---|
2105 | fi
|
---|
2106 | fi
|
---|
2107 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2108 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2109 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2110 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2111 | else
|
---|
2112 | ac_cv_prog_cc_stdc=no
|
---|
2113 | ac_save_CC=$CC
|
---|
2114 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2115 | /* confdefs.h. */
|
---|
2116 | _ACEOF
|
---|
2117 | cat confdefs.h >>conftest.$ac_ext
|
---|
2118 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2119 | /* end confdefs.h. */
|
---|
2120 | #include <stdarg.h>
|
---|
2121 | #include <stdio.h>
|
---|
2122 | #include <sys/types.h>
|
---|
2123 | #include <sys/stat.h>
|
---|
2124 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2125 | struct buf { int x; };
|
---|
2126 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2127 | static char *e (p, i)
|
---|
2128 | char **p;
|
---|
2129 | int i;
|
---|
2130 | {
|
---|
2131 | return p[i];
|
---|
2132 | }
|
---|
2133 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2134 | {
|
---|
2135 | char *s;
|
---|
2136 | va_list v;
|
---|
2137 | va_start (v,p);
|
---|
2138 | s = g (p, va_arg (v,int));
|
---|
2139 | va_end (v);
|
---|
2140 | return s;
|
---|
2141 | }
|
---|
2142 |
|
---|
2143 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2144 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2145 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2146 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2147 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2148 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2149 | that's true only with -std1. */
|
---|
2150 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2151 |
|
---|
2152 | int test (int i, double x);
|
---|
2153 | struct s1 {int (*f) (int a);};
|
---|
2154 | struct s2 {int (*f) (double a);};
|
---|
2155 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2156 | int argc;
|
---|
2157 | char **argv;
|
---|
2158 | int
|
---|
2159 | main ()
|
---|
2160 | {
|
---|
2161 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2162 | ;
|
---|
2163 | return 0;
|
---|
2164 | }
|
---|
2165 | _ACEOF
|
---|
2166 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2167 | # breaks some systems' header files.
|
---|
2168 | # AIX -qlanglvl=ansi
|
---|
2169 | # Ultrix and OSF/1 -std1
|
---|
2170 | # HP-UX 10.20 and later -Ae
|
---|
2171 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2172 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2173 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2174 | do
|
---|
2175 | CC="$ac_save_CC $ac_arg"
|
---|
2176 | rm -f conftest.$ac_objext
|
---|
2177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2178 | (eval $ac_compile) 2>conftest.er1
|
---|
2179 | ac_status=$?
|
---|
2180 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2181 | rm -f conftest.er1
|
---|
2182 | cat conftest.err >&5
|
---|
2183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2184 | (exit $ac_status); } &&
|
---|
2185 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2186 | || test ! -s conftest.err'
|
---|
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2188 | (eval $ac_try) 2>&5
|
---|
2189 | ac_status=$?
|
---|
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2191 | (exit $ac_status); }; } &&
|
---|
2192 | { ac_try='test -s conftest.$ac_objext'
|
---|
2193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2194 | (eval $ac_try) 2>&5
|
---|
2195 | ac_status=$?
|
---|
2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2197 | (exit $ac_status); }; }; then
|
---|
2198 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2199 | break
|
---|
2200 | else
|
---|
2201 | echo "$as_me: failed program was:" >&5
|
---|
2202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2203 |
|
---|
2204 | fi
|
---|
2205 | rm -f conftest.err conftest.$ac_objext
|
---|
2206 | done
|
---|
2207 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2208 | CC=$ac_save_CC
|
---|
2209 |
|
---|
2210 | fi
|
---|
2211 |
|
---|
2212 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2213 | x|xno)
|
---|
2214 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2215 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2216 | *)
|
---|
2217 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2218 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2219 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2220 | esac
|
---|
2221 |
|
---|
2222 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2223 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2224 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2225 | # the declaration of exit, since it's the most demanding environment.
|
---|
2226 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2227 | #ifndef __cplusplus
|
---|
2228 | choke me
|
---|
2229 | #endif
|
---|
2230 | _ACEOF
|
---|
2231 | rm -f conftest.$ac_objext
|
---|
2232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2233 | (eval $ac_compile) 2>conftest.er1
|
---|
2234 | ac_status=$?
|
---|
2235 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2236 | rm -f conftest.er1
|
---|
2237 | cat conftest.err >&5
|
---|
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2239 | (exit $ac_status); } &&
|
---|
2240 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2241 | || test ! -s conftest.err'
|
---|
2242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2243 | (eval $ac_try) 2>&5
|
---|
2244 | ac_status=$?
|
---|
2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2246 | (exit $ac_status); }; } &&
|
---|
2247 | { ac_try='test -s conftest.$ac_objext'
|
---|
2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2249 | (eval $ac_try) 2>&5
|
---|
2250 | ac_status=$?
|
---|
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2252 | (exit $ac_status); }; }; then
|
---|
2253 | for ac_declaration in \
|
---|
2254 | '' \
|
---|
2255 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2256 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2257 | 'extern "C" void exit (int) throw ();' \
|
---|
2258 | 'extern "C" void exit (int);' \
|
---|
2259 | 'void exit (int);'
|
---|
2260 | do
|
---|
2261 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2262 | /* confdefs.h. */
|
---|
2263 | _ACEOF
|
---|
2264 | cat confdefs.h >>conftest.$ac_ext
|
---|
2265 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2266 | /* end confdefs.h. */
|
---|
2267 | $ac_declaration
|
---|
2268 | #include <stdlib.h>
|
---|
2269 | int
|
---|
2270 | main ()
|
---|
2271 | {
|
---|
2272 | exit (42);
|
---|
2273 | ;
|
---|
2274 | return 0;
|
---|
2275 | }
|
---|
2276 | _ACEOF
|
---|
2277 | rm -f conftest.$ac_objext
|
---|
2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2279 | (eval $ac_compile) 2>conftest.er1
|
---|
2280 | ac_status=$?
|
---|
2281 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2282 | rm -f conftest.er1
|
---|
2283 | cat conftest.err >&5
|
---|
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2285 | (exit $ac_status); } &&
|
---|
2286 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2287 | || test ! -s conftest.err'
|
---|
2288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2289 | (eval $ac_try) 2>&5
|
---|
2290 | ac_status=$?
|
---|
2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2292 | (exit $ac_status); }; } &&
|
---|
2293 | { ac_try='test -s conftest.$ac_objext'
|
---|
2294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2295 | (eval $ac_try) 2>&5
|
---|
2296 | ac_status=$?
|
---|
2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2298 | (exit $ac_status); }; }; then
|
---|
2299 | :
|
---|
2300 | else
|
---|
2301 | echo "$as_me: failed program was:" >&5
|
---|
2302 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2303 |
|
---|
2304 | continue
|
---|
2305 | fi
|
---|
2306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2307 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2308 | /* confdefs.h. */
|
---|
2309 | _ACEOF
|
---|
2310 | cat confdefs.h >>conftest.$ac_ext
|
---|
2311 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2312 | /* end confdefs.h. */
|
---|
2313 | $ac_declaration
|
---|
2314 | int
|
---|
2315 | main ()
|
---|
2316 | {
|
---|
2317 | exit (42);
|
---|
2318 | ;
|
---|
2319 | return 0;
|
---|
2320 | }
|
---|
2321 | _ACEOF
|
---|
2322 | rm -f conftest.$ac_objext
|
---|
2323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2324 | (eval $ac_compile) 2>conftest.er1
|
---|
2325 | ac_status=$?
|
---|
2326 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2327 | rm -f conftest.er1
|
---|
2328 | cat conftest.err >&5
|
---|
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2330 | (exit $ac_status); } &&
|
---|
2331 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2332 | || test ! -s conftest.err'
|
---|
2333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2334 | (eval $ac_try) 2>&5
|
---|
2335 | ac_status=$?
|
---|
2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2337 | (exit $ac_status); }; } &&
|
---|
2338 | { ac_try='test -s conftest.$ac_objext'
|
---|
2339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2340 | (eval $ac_try) 2>&5
|
---|
2341 | ac_status=$?
|
---|
2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2343 | (exit $ac_status); }; }; then
|
---|
2344 | break
|
---|
2345 | else
|
---|
2346 | echo "$as_me: failed program was:" >&5
|
---|
2347 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2348 |
|
---|
2349 | fi
|
---|
2350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2351 | done
|
---|
2352 | rm -f conftest*
|
---|
2353 | if test -n "$ac_declaration"; then
|
---|
2354 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2355 | echo $ac_declaration >>confdefs.h
|
---|
2356 | echo '#endif' >>confdefs.h
|
---|
2357 | fi
|
---|
2358 |
|
---|
2359 | else
|
---|
2360 | echo "$as_me: failed program was:" >&5
|
---|
2361 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2362 |
|
---|
2363 | fi
|
---|
2364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2365 | ac_ext=c
|
---|
2366 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2370 |
|
---|
2371 | ac_ext=cc
|
---|
2372 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2373 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2374 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2375 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2376 | if test -n "$ac_tool_prefix"; then
|
---|
2377 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2378 | do
|
---|
2379 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2380 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2381 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2383 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2384 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2385 | else
|
---|
2386 | if test -n "$CXX"; then
|
---|
2387 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2388 | else
|
---|
2389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2390 | for as_dir in $PATH
|
---|
2391 | do
|
---|
2392 | IFS=$as_save_IFS
|
---|
2393 | test -z "$as_dir" && as_dir=.
|
---|
2394 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2395 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2396 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2398 | break 2
|
---|
2399 | fi
|
---|
2400 | done
|
---|
2401 | done
|
---|
2402 |
|
---|
2403 | fi
|
---|
2404 | fi
|
---|
2405 | CXX=$ac_cv_prog_CXX
|
---|
2406 | if test -n "$CXX"; then
|
---|
2407 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2408 | echo "${ECHO_T}$CXX" >&6
|
---|
2409 | else
|
---|
2410 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2411 | echo "${ECHO_T}no" >&6
|
---|
2412 | fi
|
---|
2413 |
|
---|
2414 | test -n "$CXX" && break
|
---|
2415 | done
|
---|
2416 | fi
|
---|
2417 | if test -z "$CXX"; then
|
---|
2418 | ac_ct_CXX=$CXX
|
---|
2419 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2420 | do
|
---|
2421 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2422 | set dummy $ac_prog; ac_word=$2
|
---|
2423 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2425 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2426 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2427 | else
|
---|
2428 | if test -n "$ac_ct_CXX"; then
|
---|
2429 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2430 | else
|
---|
2431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2432 | for as_dir in $PATH
|
---|
2433 | do
|
---|
2434 | IFS=$as_save_IFS
|
---|
2435 | test -z "$as_dir" && as_dir=.
|
---|
2436 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2438 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2440 | break 2
|
---|
2441 | fi
|
---|
2442 | done
|
---|
2443 | done
|
---|
2444 |
|
---|
2445 | fi
|
---|
2446 | fi
|
---|
2447 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2448 | if test -n "$ac_ct_CXX"; then
|
---|
2449 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2450 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
2451 | else
|
---|
2452 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2453 | echo "${ECHO_T}no" >&6
|
---|
2454 | fi
|
---|
2455 |
|
---|
2456 | test -n "$ac_ct_CXX" && break
|
---|
2457 | done
|
---|
2458 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
2459 |
|
---|
2460 | CXX=$ac_ct_CXX
|
---|
2461 | fi
|
---|
2462 |
|
---|
2463 |
|
---|
2464 | # Provide some information about the compiler.
|
---|
2465 | echo "$as_me:$LINENO:" \
|
---|
2466 | "checking for C++ compiler version" >&5
|
---|
2467 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2468 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2469 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2470 | ac_status=$?
|
---|
2471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2472 | (exit $ac_status); }
|
---|
2473 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2474 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2475 | ac_status=$?
|
---|
2476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2477 | (exit $ac_status); }
|
---|
2478 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2479 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2480 | ac_status=$?
|
---|
2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2482 | (exit $ac_status); }
|
---|
2483 |
|
---|
2484 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2485 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
2486 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2487 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2488 | else
|
---|
2489 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2490 | /* confdefs.h. */
|
---|
2491 | _ACEOF
|
---|
2492 | cat confdefs.h >>conftest.$ac_ext
|
---|
2493 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2494 | /* end confdefs.h. */
|
---|
2495 |
|
---|
2496 | int
|
---|
2497 | main ()
|
---|
2498 | {
|
---|
2499 | #ifndef __GNUC__
|
---|
2500 | choke me
|
---|
2501 | #endif
|
---|
2502 |
|
---|
2503 | ;
|
---|
2504 | return 0;
|
---|
2505 | }
|
---|
2506 | _ACEOF
|
---|
2507 | rm -f conftest.$ac_objext
|
---|
2508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2509 | (eval $ac_compile) 2>conftest.er1
|
---|
2510 | ac_status=$?
|
---|
2511 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2512 | rm -f conftest.er1
|
---|
2513 | cat conftest.err >&5
|
---|
2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2515 | (exit $ac_status); } &&
|
---|
2516 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2517 | || test ! -s conftest.err'
|
---|
2518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2519 | (eval $ac_try) 2>&5
|
---|
2520 | ac_status=$?
|
---|
2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2522 | (exit $ac_status); }; } &&
|
---|
2523 | { ac_try='test -s conftest.$ac_objext'
|
---|
2524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2525 | (eval $ac_try) 2>&5
|
---|
2526 | ac_status=$?
|
---|
2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2528 | (exit $ac_status); }; }; then
|
---|
2529 | ac_compiler_gnu=yes
|
---|
2530 | else
|
---|
2531 | echo "$as_me: failed program was:" >&5
|
---|
2532 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2533 |
|
---|
2534 | ac_compiler_gnu=no
|
---|
2535 | fi
|
---|
2536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2537 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2538 |
|
---|
2539 | fi
|
---|
2540 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2541 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
2542 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2543 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2544 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2545 | CXXFLAGS="-g"
|
---|
2546 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2547 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
2548 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2549 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2550 | else
|
---|
2551 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2552 | /* confdefs.h. */
|
---|
2553 | _ACEOF
|
---|
2554 | cat confdefs.h >>conftest.$ac_ext
|
---|
2555 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2556 | /* end confdefs.h. */
|
---|
2557 |
|
---|
2558 | int
|
---|
2559 | main ()
|
---|
2560 | {
|
---|
2561 |
|
---|
2562 | ;
|
---|
2563 | return 0;
|
---|
2564 | }
|
---|
2565 | _ACEOF
|
---|
2566 | rm -f conftest.$ac_objext
|
---|
2567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2568 | (eval $ac_compile) 2>conftest.er1
|
---|
2569 | ac_status=$?
|
---|
2570 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2571 | rm -f conftest.er1
|
---|
2572 | cat conftest.err >&5
|
---|
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2574 | (exit $ac_status); } &&
|
---|
2575 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2576 | || test ! -s conftest.err'
|
---|
2577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2578 | (eval $ac_try) 2>&5
|
---|
2579 | ac_status=$?
|
---|
2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2581 | (exit $ac_status); }; } &&
|
---|
2582 | { ac_try='test -s conftest.$ac_objext'
|
---|
2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2584 | (eval $ac_try) 2>&5
|
---|
2585 | ac_status=$?
|
---|
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2587 | (exit $ac_status); }; }; then
|
---|
2588 | ac_cv_prog_cxx_g=yes
|
---|
2589 | else
|
---|
2590 | echo "$as_me: failed program was:" >&5
|
---|
2591 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2592 |
|
---|
2593 | ac_cv_prog_cxx_g=no
|
---|
2594 | fi
|
---|
2595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2596 | fi
|
---|
2597 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2598 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
2599 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2600 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2601 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2602 | if test "$GXX" = yes; then
|
---|
2603 | CXXFLAGS="-g -O2"
|
---|
2604 | else
|
---|
2605 | CXXFLAGS="-g"
|
---|
2606 | fi
|
---|
2607 | else
|
---|
2608 | if test "$GXX" = yes; then
|
---|
2609 | CXXFLAGS="-O2"
|
---|
2610 | else
|
---|
2611 | CXXFLAGS=
|
---|
2612 | fi
|
---|
2613 | fi
|
---|
2614 | for ac_declaration in \
|
---|
2615 | '' \
|
---|
2616 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2617 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2618 | 'extern "C" void exit (int) throw ();' \
|
---|
2619 | 'extern "C" void exit (int);' \
|
---|
2620 | 'void exit (int);'
|
---|
2621 | do
|
---|
2622 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2623 | /* confdefs.h. */
|
---|
2624 | _ACEOF
|
---|
2625 | cat confdefs.h >>conftest.$ac_ext
|
---|
2626 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2627 | /* end confdefs.h. */
|
---|
2628 | $ac_declaration
|
---|
2629 | #include <stdlib.h>
|
---|
2630 | int
|
---|
2631 | main ()
|
---|
2632 | {
|
---|
2633 | exit (42);
|
---|
2634 | ;
|
---|
2635 | return 0;
|
---|
2636 | }
|
---|
2637 | _ACEOF
|
---|
2638 | rm -f conftest.$ac_objext
|
---|
2639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2640 | (eval $ac_compile) 2>conftest.er1
|
---|
2641 | ac_status=$?
|
---|
2642 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2643 | rm -f conftest.er1
|
---|
2644 | cat conftest.err >&5
|
---|
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2646 | (exit $ac_status); } &&
|
---|
2647 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2648 | || test ! -s conftest.err'
|
---|
2649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2650 | (eval $ac_try) 2>&5
|
---|
2651 | ac_status=$?
|
---|
2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2653 | (exit $ac_status); }; } &&
|
---|
2654 | { ac_try='test -s conftest.$ac_objext'
|
---|
2655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2656 | (eval $ac_try) 2>&5
|
---|
2657 | ac_status=$?
|
---|
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2659 | (exit $ac_status); }; }; then
|
---|
2660 | :
|
---|
2661 | else
|
---|
2662 | echo "$as_me: failed program was:" >&5
|
---|
2663 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2664 |
|
---|
2665 | continue
|
---|
2666 | fi
|
---|
2667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2668 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2669 | /* confdefs.h. */
|
---|
2670 | _ACEOF
|
---|
2671 | cat confdefs.h >>conftest.$ac_ext
|
---|
2672 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2673 | /* end confdefs.h. */
|
---|
2674 | $ac_declaration
|
---|
2675 | int
|
---|
2676 | main ()
|
---|
2677 | {
|
---|
2678 | exit (42);
|
---|
2679 | ;
|
---|
2680 | return 0;
|
---|
2681 | }
|
---|
2682 | _ACEOF
|
---|
2683 | rm -f conftest.$ac_objext
|
---|
2684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2685 | (eval $ac_compile) 2>conftest.er1
|
---|
2686 | ac_status=$?
|
---|
2687 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2688 | rm -f conftest.er1
|
---|
2689 | cat conftest.err >&5
|
---|
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2691 | (exit $ac_status); } &&
|
---|
2692 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2693 | || test ! -s conftest.err'
|
---|
2694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2695 | (eval $ac_try) 2>&5
|
---|
2696 | ac_status=$?
|
---|
2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2698 | (exit $ac_status); }; } &&
|
---|
2699 | { ac_try='test -s conftest.$ac_objext'
|
---|
2700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2701 | (eval $ac_try) 2>&5
|
---|
2702 | ac_status=$?
|
---|
2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2704 | (exit $ac_status); }; }; then
|
---|
2705 | break
|
---|
2706 | else
|
---|
2707 | echo "$as_me: failed program was:" >&5
|
---|
2708 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2709 |
|
---|
2710 | fi
|
---|
2711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2712 | done
|
---|
2713 | rm -f conftest*
|
---|
2714 | if test -n "$ac_declaration"; then
|
---|
2715 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2716 | echo $ac_declaration >>confdefs.h
|
---|
2717 | echo '#endif' >>confdefs.h
|
---|
2718 | fi
|
---|
2719 |
|
---|
2720 | ac_ext=c
|
---|
2721 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2725 |
|
---|
2726 | for ac_prog in gawk mawk nawk awk
|
---|
2727 | do
|
---|
2728 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2729 | set dummy $ac_prog; ac_word=$2
|
---|
2730 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2732 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
2733 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2734 | else
|
---|
2735 | if test -n "$AWK"; then
|
---|
2736 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2737 | else
|
---|
2738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2739 | for as_dir in $PATH
|
---|
2740 | do
|
---|
2741 | IFS=$as_save_IFS
|
---|
2742 | test -z "$as_dir" && as_dir=.
|
---|
2743 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2745 | ac_cv_prog_AWK="$ac_prog"
|
---|
2746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2747 | break 2
|
---|
2748 | fi
|
---|
2749 | done
|
---|
2750 | done
|
---|
2751 |
|
---|
2752 | fi
|
---|
2753 | fi
|
---|
2754 | AWK=$ac_cv_prog_AWK
|
---|
2755 | if test -n "$AWK"; then
|
---|
2756 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
2757 | echo "${ECHO_T}$AWK" >&6
|
---|
2758 | else
|
---|
2759 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2760 | echo "${ECHO_T}no" >&6
|
---|
2761 | fi
|
---|
2762 |
|
---|
2763 | test -n "$AWK" && break
|
---|
2764 | done
|
---|
2765 |
|
---|
2766 | for ac_prog in 'bison -y' byacc
|
---|
2767 | do
|
---|
2768 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2769 | set dummy $ac_prog; ac_word=$2
|
---|
2770 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2772 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
2773 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2774 | else
|
---|
2775 | if test -n "$YACC"; then
|
---|
2776 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
2777 | else
|
---|
2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2779 | for as_dir in $PATH
|
---|
2780 | do
|
---|
2781 | IFS=$as_save_IFS
|
---|
2782 | test -z "$as_dir" && as_dir=.
|
---|
2783 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2785 | ac_cv_prog_YACC="$ac_prog"
|
---|
2786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2787 | break 2
|
---|
2788 | fi
|
---|
2789 | done
|
---|
2790 | done
|
---|
2791 |
|
---|
2792 | fi
|
---|
2793 | fi
|
---|
2794 | YACC=$ac_cv_prog_YACC
|
---|
2795 | if test -n "$YACC"; then
|
---|
2796 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
2797 | echo "${ECHO_T}$YACC" >&6
|
---|
2798 | else
|
---|
2799 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2800 | echo "${ECHO_T}no" >&6
|
---|
2801 | fi
|
---|
2802 |
|
---|
2803 | test -n "$YACC" && break
|
---|
2804 | done
|
---|
2805 | test -n "$YACC" || YACC="yacc"
|
---|
2806 |
|
---|
2807 | ac_aux_dir=
|
---|
2808 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2809 | if test -f $ac_dir/install-sh; then
|
---|
2810 | ac_aux_dir=$ac_dir
|
---|
2811 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2812 | break
|
---|
2813 | elif test -f $ac_dir/install.sh; then
|
---|
2814 | ac_aux_dir=$ac_dir
|
---|
2815 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2816 | break
|
---|
2817 | elif test -f $ac_dir/shtool; then
|
---|
2818 | ac_aux_dir=$ac_dir
|
---|
2819 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2820 | break
|
---|
2821 | fi
|
---|
2822 | done
|
---|
2823 | if test -z "$ac_aux_dir"; then
|
---|
2824 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2825 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2826 | { (exit 1); exit 1; }; }
|
---|
2827 | fi
|
---|
2828 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2829 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2830 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2831 |
|
---|
2832 | # Make sure we can run config.sub.
|
---|
2833 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
2834 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
2835 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
2836 | { (exit 1); exit 1; }; }
|
---|
2837 |
|
---|
2838 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
2839 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
2840 | if test "${ac_cv_build+set}" = set; then
|
---|
2841 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2842 | else
|
---|
2843 | ac_cv_build_alias=$build_alias
|
---|
2844 | test -z "$ac_cv_build_alias" &&
|
---|
2845 | ac_cv_build_alias=`$ac_config_guess`
|
---|
2846 | test -z "$ac_cv_build_alias" &&
|
---|
2847 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
2848 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
2849 | { (exit 1); exit 1; }; }
|
---|
2850 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
2851 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
2852 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
2853 | { (exit 1); exit 1; }; }
|
---|
2854 |
|
---|
2855 | fi
|
---|
2856 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
2857 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
2858 | build=$ac_cv_build
|
---|
2859 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2860 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2861 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2862 |
|
---|
2863 |
|
---|
2864 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
2865 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
2866 | if test "${ac_cv_host+set}" = set; then
|
---|
2867 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2868 | else
|
---|
2869 | ac_cv_host_alias=$host_alias
|
---|
2870 | test -z "$ac_cv_host_alias" &&
|
---|
2871 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
2872 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
2873 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
2874 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
2875 | { (exit 1); exit 1; }; }
|
---|
2876 |
|
---|
2877 | fi
|
---|
2878 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
2879 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
2880 | host=$ac_cv_host
|
---|
2881 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2882 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2883 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2884 |
|
---|
2885 |
|
---|
2886 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
2887 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
2888 | if test "${ac_cv_target+set}" = set; then
|
---|
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2890 | else
|
---|
2891 | ac_cv_target_alias=$target_alias
|
---|
2892 | test "x$ac_cv_target_alias" = "x" &&
|
---|
2893 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
2894 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
2895 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
2896 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
2897 | { (exit 1); exit 1; }; }
|
---|
2898 |
|
---|
2899 | fi
|
---|
2900 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
2901 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
2902 | target=$ac_cv_target
|
---|
2903 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2904 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2905 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2906 |
|
---|
2907 |
|
---|
2908 | # The aliases save the names the user supplied, while $host etc.
|
---|
2909 | # will get canonicalized.
|
---|
2910 | test -n "$target_alias" &&
|
---|
2911 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2912 | NONENONEs,x,x, &&
|
---|
2913 | program_prefix=${target_alias}-
|
---|
2914 | # Find a good install program. We prefer a C program (faster),
|
---|
2915 | # so one script is as good as another. But avoid the broken or
|
---|
2916 | # incompatible versions:
|
---|
2917 | # SysV /etc/install, /usr/sbin/install
|
---|
2918 | # SunOS /usr/etc/install
|
---|
2919 | # IRIX /sbin/install
|
---|
2920 | # AIX /bin/install
|
---|
2921 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2922 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2923 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2924 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2925 | # OS/2's system install, which has a completely different semantic
|
---|
2926 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2927 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2928 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2929 | if test -z "$INSTALL"; then
|
---|
2930 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2931 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2932 | else
|
---|
2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2934 | for as_dir in $PATH
|
---|
2935 | do
|
---|
2936 | IFS=$as_save_IFS
|
---|
2937 | test -z "$as_dir" && as_dir=.
|
---|
2938 | # Account for people who put trailing slashes in PATH elements.
|
---|
2939 | case $as_dir/ in
|
---|
2940 | ./ | .// | /cC/* | \
|
---|
2941 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2942 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2943 | /usr/ucb/* ) ;;
|
---|
2944 | *)
|
---|
2945 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2946 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2947 | # by default.
|
---|
2948 | for ac_prog in ginstall scoinst install; do
|
---|
2949 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2950 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2951 | if test $ac_prog = install &&
|
---|
2952 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2953 | # AIX install. It has an incompatible calling convention.
|
---|
2954 | :
|
---|
2955 | elif test $ac_prog = install &&
|
---|
2956 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2957 | # program-specific install script used by HP pwplus--don't use.
|
---|
2958 | :
|
---|
2959 | else
|
---|
2960 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2961 | break 3
|
---|
2962 | fi
|
---|
2963 | fi
|
---|
2964 | done
|
---|
2965 | done
|
---|
2966 | ;;
|
---|
2967 | esac
|
---|
2968 | done
|
---|
2969 |
|
---|
2970 |
|
---|
2971 | fi
|
---|
2972 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2973 | INSTALL=$ac_cv_path_install
|
---|
2974 | else
|
---|
2975 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2976 | # path for INSTALL within a source directory, because that will
|
---|
2977 | # break other packages using the cache if that directory is
|
---|
2978 | # removed, or if the path is relative.
|
---|
2979 | INSTALL=$ac_install_sh
|
---|
2980 | fi
|
---|
2981 | fi
|
---|
2982 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2983 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2984 |
|
---|
2985 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2986 | # It thinks the first close brace ends the variable substitution.
|
---|
2987 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2988 |
|
---|
2989 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2990 |
|
---|
2991 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2992 |
|
---|
2993 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
2994 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
2995 | LN_S=$as_ln_s
|
---|
2996 | if test "$LN_S" = "ln -s"; then
|
---|
2997 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
2998 | echo "${ECHO_T}yes" >&6
|
---|
2999 | else
|
---|
3000 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
3001 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
3002 | fi
|
---|
3003 |
|
---|
3004 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3005 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
3006 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
3007 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
3008 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3009 | else
|
---|
3010 | cat >conftest.make <<\_ACEOF
|
---|
3011 | all:
|
---|
3012 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
3013 | _ACEOF
|
---|
3014 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3015 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
3016 | if test -n "$ac_maketemp"; then
|
---|
3017 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
3018 | else
|
---|
3019 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
3020 | fi
|
---|
3021 | rm -f conftest.make
|
---|
3022 | fi
|
---|
3023 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
3024 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3025 | echo "${ECHO_T}yes" >&6
|
---|
3026 | SET_MAKE=
|
---|
3027 | else
|
---|
3028 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3029 | echo "${ECHO_T}no" >&6
|
---|
3030 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3031 | fi
|
---|
3032 |
|
---|
3033 | if test -n "$ac_tool_prefix"; then
|
---|
3034 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3035 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3036 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3038 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3039 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3040 | else
|
---|
3041 | if test -n "$RANLIB"; then
|
---|
3042 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3043 | else
|
---|
3044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3045 | for as_dir in $PATH
|
---|
3046 | do
|
---|
3047 | IFS=$as_save_IFS
|
---|
3048 | test -z "$as_dir" && as_dir=.
|
---|
3049 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3050 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3051 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3053 | break 2
|
---|
3054 | fi
|
---|
3055 | done
|
---|
3056 | done
|
---|
3057 |
|
---|
3058 | fi
|
---|
3059 | fi
|
---|
3060 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3061 | if test -n "$RANLIB"; then
|
---|
3062 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3063 | echo "${ECHO_T}$RANLIB" >&6
|
---|
3064 | else
|
---|
3065 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3066 | echo "${ECHO_T}no" >&6
|
---|
3067 | fi
|
---|
3068 |
|
---|
3069 | fi
|
---|
3070 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3071 | ac_ct_RANLIB=$RANLIB
|
---|
3072 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3073 | set dummy ranlib; ac_word=$2
|
---|
3074 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3076 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3077 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3078 | else
|
---|
3079 | if test -n "$ac_ct_RANLIB"; then
|
---|
3080 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3081 | else
|
---|
3082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3083 | for as_dir in $PATH
|
---|
3084 | do
|
---|
3085 | IFS=$as_save_IFS
|
---|
3086 | test -z "$as_dir" && as_dir=.
|
---|
3087 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3088 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3089 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3090 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3091 | break 2
|
---|
3092 | fi
|
---|
3093 | done
|
---|
3094 | done
|
---|
3095 |
|
---|
3096 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
3097 | fi
|
---|
3098 | fi
|
---|
3099 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3100 | if test -n "$ac_ct_RANLIB"; then
|
---|
3101 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3102 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
3103 | else
|
---|
3104 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3105 | echo "${ECHO_T}no" >&6
|
---|
3106 | fi
|
---|
3107 |
|
---|
3108 | RANLIB=$ac_ct_RANLIB
|
---|
3109 | else
|
---|
3110 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3111 | fi
|
---|
3112 |
|
---|
3113 |
|
---|
3114 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
3115 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
3116 | arch_64bit=no
|
---|
3117 | case "$host_cpu" in
|
---|
3118 | x86_64) arch_64bit=yes ;;
|
---|
3119 | esac
|
---|
3120 |
|
---|
3121 | if test "$arch_64bit" = yes; then
|
---|
3122 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3123 | echo "${ECHO_T}yes" >&6
|
---|
3124 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3125 | COMPAT32BITFLAGS="-m32"
|
---|
3126 | fi
|
---|
3127 | else
|
---|
3128 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3129 | echo "${ECHO_T}no" >&6
|
---|
3130 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3131 | COMPAT32BITFLAGS=
|
---|
3132 | fi
|
---|
3133 | fi
|
---|
3134 | export COMPAT32BITFLAGS
|
---|
3135 |
|
---|
3136 |
|
---|
3137 |
|
---|
3138 | #moved CORBA MICO directory test to get version of MICO
|
---|
3139 | if test $USE_CORBA = 1; then
|
---|
3140 |
|
---|
3141 | if test $MICO_DIR = "default"; then
|
---|
3142 | #do something
|
---|
3143 | MICO_INC="-I packages/mico/mico/include"
|
---|
3144 | else
|
---|
3145 | #build the micotest program
|
---|
3146 | MICO_INC= ""
|
---|
3147 | if test $MICO_DIR != yes; then
|
---|
3148 | MICO_INC="-I $MICO_DIR"
|
---|
3149 | fi
|
---|
3150 | fi
|
---|
3151 |
|
---|
3152 | #get MICO_VER value
|
---|
3153 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
3154 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
3155 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
3156 | sh -c "rm micotest"
|
---|
3157 | sh -c "rm micotest.o"
|
---|
3158 |
|
---|
3159 | #do test of MICO_VER
|
---|
3160 | if test MICO_VER != 0; then
|
---|
3161 | cat >>confdefs.h <<\_ACEOF
|
---|
3162 | #define MICO_VER 1
|
---|
3163 | _ACEOF
|
---|
3164 |
|
---|
3165 |
|
---|
3166 | fi
|
---|
3167 | #end USE_CORBA test
|
---|
3168 | fi
|
---|
3169 |
|
---|
3170 |
|
---|
3171 | ac_ext=c
|
---|
3172 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3176 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3177 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
3178 | # On Suns, sometimes $CPP names a directory.
|
---|
3179 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3180 | CPP=
|
---|
3181 | fi
|
---|
3182 | if test -z "$CPP"; then
|
---|
3183 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3184 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3185 | else
|
---|
3186 | # Double quotes because CPP needs to be expanded
|
---|
3187 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3188 | do
|
---|
3189 | ac_preproc_ok=false
|
---|
3190 | for ac_c_preproc_warn_flag in '' yes
|
---|
3191 | do
|
---|
3192 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3193 | # with a fresh cross-compiler works.
|
---|
3194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3195 | # <limits.h> exists even on freestanding compilers.
|
---|
3196 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3197 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3198 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3199 | /* confdefs.h. */
|
---|
3200 | _ACEOF
|
---|
3201 | cat confdefs.h >>conftest.$ac_ext
|
---|
3202 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3203 | /* end confdefs.h. */
|
---|
3204 | #ifdef __STDC__
|
---|
3205 | # include <limits.h>
|
---|
3206 | #else
|
---|
3207 | # include <assert.h>
|
---|
3208 | #endif
|
---|
3209 | Syntax error
|
---|
3210 | _ACEOF
|
---|
3211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3213 | ac_status=$?
|
---|
3214 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3215 | rm -f conftest.er1
|
---|
3216 | cat conftest.err >&5
|
---|
3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3218 | (exit $ac_status); } >/dev/null; then
|
---|
3219 | if test -s conftest.err; then
|
---|
3220 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3222 | else
|
---|
3223 | ac_cpp_err=
|
---|
3224 | fi
|
---|
3225 | else
|
---|
3226 | ac_cpp_err=yes
|
---|
3227 | fi
|
---|
3228 | if test -z "$ac_cpp_err"; then
|
---|
3229 | :
|
---|
3230 | else
|
---|
3231 | echo "$as_me: failed program was:" >&5
|
---|
3232 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3233 |
|
---|
3234 | # Broken: fails on valid input.
|
---|
3235 | continue
|
---|
3236 | fi
|
---|
3237 | rm -f conftest.err conftest.$ac_ext
|
---|
3238 |
|
---|
3239 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3240 | # can be detected and how.
|
---|
3241 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3242 | /* confdefs.h. */
|
---|
3243 | _ACEOF
|
---|
3244 | cat confdefs.h >>conftest.$ac_ext
|
---|
3245 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3246 | /* end confdefs.h. */
|
---|
3247 | #include <ac_nonexistent.h>
|
---|
3248 | _ACEOF
|
---|
3249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3251 | ac_status=$?
|
---|
3252 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3253 | rm -f conftest.er1
|
---|
3254 | cat conftest.err >&5
|
---|
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3256 | (exit $ac_status); } >/dev/null; then
|
---|
3257 | if test -s conftest.err; then
|
---|
3258 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3260 | else
|
---|
3261 | ac_cpp_err=
|
---|
3262 | fi
|
---|
3263 | else
|
---|
3264 | ac_cpp_err=yes
|
---|
3265 | fi
|
---|
3266 | if test -z "$ac_cpp_err"; then
|
---|
3267 | # Broken: success on invalid input.
|
---|
3268 | continue
|
---|
3269 | else
|
---|
3270 | echo "$as_me: failed program was:" >&5
|
---|
3271 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3272 |
|
---|
3273 | # Passes both tests.
|
---|
3274 | ac_preproc_ok=:
|
---|
3275 | break
|
---|
3276 | fi
|
---|
3277 | rm -f conftest.err conftest.$ac_ext
|
---|
3278 |
|
---|
3279 | done
|
---|
3280 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3281 | rm -f conftest.err conftest.$ac_ext
|
---|
3282 | if $ac_preproc_ok; then
|
---|
3283 | break
|
---|
3284 | fi
|
---|
3285 |
|
---|
3286 | done
|
---|
3287 | ac_cv_prog_CPP=$CPP
|
---|
3288 |
|
---|
3289 | fi
|
---|
3290 | CPP=$ac_cv_prog_CPP
|
---|
3291 | else
|
---|
3292 | ac_cv_prog_CPP=$CPP
|
---|
3293 | fi
|
---|
3294 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3295 | echo "${ECHO_T}$CPP" >&6
|
---|
3296 | ac_preproc_ok=false
|
---|
3297 | for ac_c_preproc_warn_flag in '' yes
|
---|
3298 | do
|
---|
3299 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3300 | # with a fresh cross-compiler works.
|
---|
3301 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3302 | # <limits.h> exists even on freestanding compilers.
|
---|
3303 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3304 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3305 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3306 | /* confdefs.h. */
|
---|
3307 | _ACEOF
|
---|
3308 | cat confdefs.h >>conftest.$ac_ext
|
---|
3309 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3310 | /* end confdefs.h. */
|
---|
3311 | #ifdef __STDC__
|
---|
3312 | # include <limits.h>
|
---|
3313 | #else
|
---|
3314 | # include <assert.h>
|
---|
3315 | #endif
|
---|
3316 | Syntax error
|
---|
3317 | _ACEOF
|
---|
3318 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3319 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3320 | ac_status=$?
|
---|
3321 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3322 | rm -f conftest.er1
|
---|
3323 | cat conftest.err >&5
|
---|
3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3325 | (exit $ac_status); } >/dev/null; then
|
---|
3326 | if test -s conftest.err; then
|
---|
3327 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3329 | else
|
---|
3330 | ac_cpp_err=
|
---|
3331 | fi
|
---|
3332 | else
|
---|
3333 | ac_cpp_err=yes
|
---|
3334 | fi
|
---|
3335 | if test -z "$ac_cpp_err"; then
|
---|
3336 | :
|
---|
3337 | else
|
---|
3338 | echo "$as_me: failed program was:" >&5
|
---|
3339 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3340 |
|
---|
3341 | # Broken: fails on valid input.
|
---|
3342 | continue
|
---|
3343 | fi
|
---|
3344 | rm -f conftest.err conftest.$ac_ext
|
---|
3345 |
|
---|
3346 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3347 | # can be detected and how.
|
---|
3348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3349 | /* confdefs.h. */
|
---|
3350 | _ACEOF
|
---|
3351 | cat confdefs.h >>conftest.$ac_ext
|
---|
3352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3353 | /* end confdefs.h. */
|
---|
3354 | #include <ac_nonexistent.h>
|
---|
3355 | _ACEOF
|
---|
3356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3358 | ac_status=$?
|
---|
3359 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3360 | rm -f conftest.er1
|
---|
3361 | cat conftest.err >&5
|
---|
3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3363 | (exit $ac_status); } >/dev/null; then
|
---|
3364 | if test -s conftest.err; then
|
---|
3365 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3366 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3367 | else
|
---|
3368 | ac_cpp_err=
|
---|
3369 | fi
|
---|
3370 | else
|
---|
3371 | ac_cpp_err=yes
|
---|
3372 | fi
|
---|
3373 | if test -z "$ac_cpp_err"; then
|
---|
3374 | # Broken: success on invalid input.
|
---|
3375 | continue
|
---|
3376 | else
|
---|
3377 | echo "$as_me: failed program was:" >&5
|
---|
3378 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3379 |
|
---|
3380 | # Passes both tests.
|
---|
3381 | ac_preproc_ok=:
|
---|
3382 | break
|
---|
3383 | fi
|
---|
3384 | rm -f conftest.err conftest.$ac_ext
|
---|
3385 |
|
---|
3386 | done
|
---|
3387 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3388 | rm -f conftest.err conftest.$ac_ext
|
---|
3389 | if $ac_preproc_ok; then
|
---|
3390 | :
|
---|
3391 | else
|
---|
3392 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3393 | See \`config.log' for more details." >&5
|
---|
3394 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3395 | See \`config.log' for more details." >&2;}
|
---|
3396 | { (exit 1); exit 1; }; }
|
---|
3397 | fi
|
---|
3398 |
|
---|
3399 | ac_ext=c
|
---|
3400 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3404 |
|
---|
3405 |
|
---|
3406 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3407 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3408 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3409 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3410 | else
|
---|
3411 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3412 | then ac_cv_prog_egrep='grep -E'
|
---|
3413 | else ac_cv_prog_egrep='egrep'
|
---|
3414 | fi
|
---|
3415 | fi
|
---|
3416 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3417 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3418 | EGREP=$ac_cv_prog_egrep
|
---|
3419 |
|
---|
3420 |
|
---|
3421 |
|
---|
3422 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3423 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
3424 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3425 | /* confdefs.h. */
|
---|
3426 | _ACEOF
|
---|
3427 | cat confdefs.h >>conftest.$ac_ext
|
---|
3428 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3429 | /* end confdefs.h. */
|
---|
3430 | #ifdef _AIX
|
---|
3431 | yes
|
---|
3432 | #endif
|
---|
3433 |
|
---|
3434 | _ACEOF
|
---|
3435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3436 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3437 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3438 | echo "${ECHO_T}yes" >&6
|
---|
3439 | cat >>confdefs.h <<\_ACEOF
|
---|
3440 | #define _ALL_SOURCE 1
|
---|
3441 | _ACEOF
|
---|
3442 |
|
---|
3443 | else
|
---|
3444 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3445 | echo "${ECHO_T}no" >&6
|
---|
3446 | fi
|
---|
3447 | rm -f conftest*
|
---|
3448 |
|
---|
3449 |
|
---|
3450 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3451 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
3452 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3453 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3454 | else
|
---|
3455 | ac_func_search_save_LIBS=$LIBS
|
---|
3456 | ac_cv_search_strerror=no
|
---|
3457 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3458 | /* confdefs.h. */
|
---|
3459 | _ACEOF
|
---|
3460 | cat confdefs.h >>conftest.$ac_ext
|
---|
3461 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3462 | /* end confdefs.h. */
|
---|
3463 |
|
---|
3464 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3465 | #ifdef __cplusplus
|
---|
3466 | extern "C"
|
---|
3467 | #endif
|
---|
3468 | /* We use char because int might match the return type of a gcc2
|
---|
3469 | builtin and then its argument prototype would still apply. */
|
---|
3470 | char strerror ();
|
---|
3471 | int
|
---|
3472 | main ()
|
---|
3473 | {
|
---|
3474 | strerror ();
|
---|
3475 | ;
|
---|
3476 | return 0;
|
---|
3477 | }
|
---|
3478 | _ACEOF
|
---|
3479 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3481 | (eval $ac_link) 2>conftest.er1
|
---|
3482 | ac_status=$?
|
---|
3483 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3484 | rm -f conftest.er1
|
---|
3485 | cat conftest.err >&5
|
---|
3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3487 | (exit $ac_status); } &&
|
---|
3488 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3489 | || test ! -s conftest.err'
|
---|
3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3491 | (eval $ac_try) 2>&5
|
---|
3492 | ac_status=$?
|
---|
3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3494 | (exit $ac_status); }; } &&
|
---|
3495 | { ac_try='test -s conftest$ac_exeext'
|
---|
3496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3497 | (eval $ac_try) 2>&5
|
---|
3498 | ac_status=$?
|
---|
3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3500 | (exit $ac_status); }; }; then
|
---|
3501 | ac_cv_search_strerror="none required"
|
---|
3502 | else
|
---|
3503 | echo "$as_me: failed program was:" >&5
|
---|
3504 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3505 |
|
---|
3506 | fi
|
---|
3507 | rm -f conftest.err conftest.$ac_objext \
|
---|
3508 | conftest$ac_exeext conftest.$ac_ext
|
---|
3509 | if test "$ac_cv_search_strerror" = no; then
|
---|
3510 | for ac_lib in cposix; do
|
---|
3511 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
3512 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3513 | /* confdefs.h. */
|
---|
3514 | _ACEOF
|
---|
3515 | cat confdefs.h >>conftest.$ac_ext
|
---|
3516 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3517 | /* end confdefs.h. */
|
---|
3518 |
|
---|
3519 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3520 | #ifdef __cplusplus
|
---|
3521 | extern "C"
|
---|
3522 | #endif
|
---|
3523 | /* We use char because int might match the return type of a gcc2
|
---|
3524 | builtin and then its argument prototype would still apply. */
|
---|
3525 | char strerror ();
|
---|
3526 | int
|
---|
3527 | main ()
|
---|
3528 | {
|
---|
3529 | strerror ();
|
---|
3530 | ;
|
---|
3531 | return 0;
|
---|
3532 | }
|
---|
3533 | _ACEOF
|
---|
3534 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3536 | (eval $ac_link) 2>conftest.er1
|
---|
3537 | ac_status=$?
|
---|
3538 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3539 | rm -f conftest.er1
|
---|
3540 | cat conftest.err >&5
|
---|
3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3542 | (exit $ac_status); } &&
|
---|
3543 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3544 | || test ! -s conftest.err'
|
---|
3545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3546 | (eval $ac_try) 2>&5
|
---|
3547 | ac_status=$?
|
---|
3548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3549 | (exit $ac_status); }; } &&
|
---|
3550 | { ac_try='test -s conftest$ac_exeext'
|
---|
3551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3552 | (eval $ac_try) 2>&5
|
---|
3553 | ac_status=$?
|
---|
3554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3555 | (exit $ac_status); }; }; then
|
---|
3556 | ac_cv_search_strerror="-l$ac_lib"
|
---|
3557 | break
|
---|
3558 | else
|
---|
3559 | echo "$as_me: failed program was:" >&5
|
---|
3560 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3561 |
|
---|
3562 | fi
|
---|
3563 | rm -f conftest.err conftest.$ac_objext \
|
---|
3564 | conftest$ac_exeext conftest.$ac_ext
|
---|
3565 | done
|
---|
3566 | fi
|
---|
3567 | LIBS=$ac_func_search_save_LIBS
|
---|
3568 | fi
|
---|
3569 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
3570 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
3571 | if test "$ac_cv_search_strerror" != no; then
|
---|
3572 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
3573 |
|
---|
3574 | fi
|
---|
3575 |
|
---|
3576 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3577 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3578 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3579 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3580 | else
|
---|
3581 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3582 | /* confdefs.h. */
|
---|
3583 | _ACEOF
|
---|
3584 | cat confdefs.h >>conftest.$ac_ext
|
---|
3585 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3586 | /* end confdefs.h. */
|
---|
3587 | #include <stdlib.h>
|
---|
3588 | #include <stdarg.h>
|
---|
3589 | #include <string.h>
|
---|
3590 | #include <float.h>
|
---|
3591 |
|
---|
3592 | int
|
---|
3593 | main ()
|
---|
3594 | {
|
---|
3595 |
|
---|
3596 | ;
|
---|
3597 | return 0;
|
---|
3598 | }
|
---|
3599 | _ACEOF
|
---|
3600 | rm -f conftest.$ac_objext
|
---|
3601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3602 | (eval $ac_compile) 2>conftest.er1
|
---|
3603 | ac_status=$?
|
---|
3604 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3605 | rm -f conftest.er1
|
---|
3606 | cat conftest.err >&5
|
---|
3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3608 | (exit $ac_status); } &&
|
---|
3609 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3610 | || test ! -s conftest.err'
|
---|
3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3612 | (eval $ac_try) 2>&5
|
---|
3613 | ac_status=$?
|
---|
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3615 | (exit $ac_status); }; } &&
|
---|
3616 | { ac_try='test -s conftest.$ac_objext'
|
---|
3617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3618 | (eval $ac_try) 2>&5
|
---|
3619 | ac_status=$?
|
---|
3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3621 | (exit $ac_status); }; }; then
|
---|
3622 | ac_cv_header_stdc=yes
|
---|
3623 | else
|
---|
3624 | echo "$as_me: failed program was:" >&5
|
---|
3625 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3626 |
|
---|
3627 | ac_cv_header_stdc=no
|
---|
3628 | fi
|
---|
3629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3630 |
|
---|
3631 | if test $ac_cv_header_stdc = yes; then
|
---|
3632 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3633 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3634 | /* confdefs.h. */
|
---|
3635 | _ACEOF
|
---|
3636 | cat confdefs.h >>conftest.$ac_ext
|
---|
3637 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3638 | /* end confdefs.h. */
|
---|
3639 | #include <string.h>
|
---|
3640 |
|
---|
3641 | _ACEOF
|
---|
3642 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3643 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3644 | :
|
---|
3645 | else
|
---|
3646 | ac_cv_header_stdc=no
|
---|
3647 | fi
|
---|
3648 | rm -f conftest*
|
---|
3649 |
|
---|
3650 | fi
|
---|
3651 |
|
---|
3652 | if test $ac_cv_header_stdc = yes; then
|
---|
3653 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3654 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3655 | /* confdefs.h. */
|
---|
3656 | _ACEOF
|
---|
3657 | cat confdefs.h >>conftest.$ac_ext
|
---|
3658 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3659 | /* end confdefs.h. */
|
---|
3660 | #include <stdlib.h>
|
---|
3661 |
|
---|
3662 | _ACEOF
|
---|
3663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3664 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3665 | :
|
---|
3666 | else
|
---|
3667 | ac_cv_header_stdc=no
|
---|
3668 | fi
|
---|
3669 | rm -f conftest*
|
---|
3670 |
|
---|
3671 | fi
|
---|
3672 |
|
---|
3673 | if test $ac_cv_header_stdc = yes; then
|
---|
3674 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3675 | if test "$cross_compiling" = yes; then
|
---|
3676 | :
|
---|
3677 | else
|
---|
3678 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3679 | /* confdefs.h. */
|
---|
3680 | _ACEOF
|
---|
3681 | cat confdefs.h >>conftest.$ac_ext
|
---|
3682 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3683 | /* end confdefs.h. */
|
---|
3684 | #include <ctype.h>
|
---|
3685 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3686 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3687 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3688 | #else
|
---|
3689 | # define ISLOWER(c) \
|
---|
3690 | (('a' <= (c) && (c) <= 'i') \
|
---|
3691 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3692 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3693 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3694 | #endif
|
---|
3695 |
|
---|
3696 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3697 | int
|
---|
3698 | main ()
|
---|
3699 | {
|
---|
3700 | int i;
|
---|
3701 | for (i = 0; i < 256; i++)
|
---|
3702 | if (XOR (islower (i), ISLOWER (i))
|
---|
3703 | || toupper (i) != TOUPPER (i))
|
---|
3704 | exit(2);
|
---|
3705 | exit (0);
|
---|
3706 | }
|
---|
3707 | _ACEOF
|
---|
3708 | rm -f conftest$ac_exeext
|
---|
3709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3710 | (eval $ac_link) 2>&5
|
---|
3711 | ac_status=$?
|
---|
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3713 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3715 | (eval $ac_try) 2>&5
|
---|
3716 | ac_status=$?
|
---|
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3718 | (exit $ac_status); }; }; then
|
---|
3719 | :
|
---|
3720 | else
|
---|
3721 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3722 | echo "$as_me: failed program was:" >&5
|
---|
3723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3724 |
|
---|
3725 | ( exit $ac_status )
|
---|
3726 | ac_cv_header_stdc=no
|
---|
3727 | fi
|
---|
3728 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3729 | fi
|
---|
3730 | fi
|
---|
3731 | fi
|
---|
3732 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3733 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3734 | if test $ac_cv_header_stdc = yes; then
|
---|
3735 |
|
---|
3736 | cat >>confdefs.h <<\_ACEOF
|
---|
3737 | #define STDC_HEADERS 1
|
---|
3738 | _ACEOF
|
---|
3739 |
|
---|
3740 | fi
|
---|
3741 |
|
---|
3742 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3743 |
|
---|
3744 |
|
---|
3745 |
|
---|
3746 |
|
---|
3747 |
|
---|
3748 |
|
---|
3749 |
|
---|
3750 |
|
---|
3751 |
|
---|
3752 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3753 | inttypes.h stdint.h unistd.h
|
---|
3754 | do
|
---|
3755 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3756 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3757 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3758 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3759 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3760 | else
|
---|
3761 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3762 | /* confdefs.h. */
|
---|
3763 | _ACEOF
|
---|
3764 | cat confdefs.h >>conftest.$ac_ext
|
---|
3765 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3766 | /* end confdefs.h. */
|
---|
3767 | $ac_includes_default
|
---|
3768 |
|
---|
3769 | #include <$ac_header>
|
---|
3770 | _ACEOF
|
---|
3771 | rm -f conftest.$ac_objext
|
---|
3772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3773 | (eval $ac_compile) 2>conftest.er1
|
---|
3774 | ac_status=$?
|
---|
3775 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3776 | rm -f conftest.er1
|
---|
3777 | cat conftest.err >&5
|
---|
3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3779 | (exit $ac_status); } &&
|
---|
3780 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3781 | || test ! -s conftest.err'
|
---|
3782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3783 | (eval $ac_try) 2>&5
|
---|
3784 | ac_status=$?
|
---|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3786 | (exit $ac_status); }; } &&
|
---|
3787 | { ac_try='test -s conftest.$ac_objext'
|
---|
3788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3789 | (eval $ac_try) 2>&5
|
---|
3790 | ac_status=$?
|
---|
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3792 | (exit $ac_status); }; }; then
|
---|
3793 | eval "$as_ac_Header=yes"
|
---|
3794 | else
|
---|
3795 | echo "$as_me: failed program was:" >&5
|
---|
3796 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3797 |
|
---|
3798 | eval "$as_ac_Header=no"
|
---|
3799 | fi
|
---|
3800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3801 | fi
|
---|
3802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3804 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3805 | cat >>confdefs.h <<_ACEOF
|
---|
3806 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3807 | _ACEOF
|
---|
3808 |
|
---|
3809 | fi
|
---|
3810 |
|
---|
3811 | done
|
---|
3812 |
|
---|
3813 |
|
---|
3814 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3815 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3816 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3817 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3819 | fi
|
---|
3820 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3821 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3822 | else
|
---|
3823 | # Is the header compilable?
|
---|
3824 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
3825 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
3826 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3827 | /* confdefs.h. */
|
---|
3828 | _ACEOF
|
---|
3829 | cat confdefs.h >>conftest.$ac_ext
|
---|
3830 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3831 | /* end confdefs.h. */
|
---|
3832 | $ac_includes_default
|
---|
3833 | #include <minix/config.h>
|
---|
3834 | _ACEOF
|
---|
3835 | rm -f conftest.$ac_objext
|
---|
3836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3837 | (eval $ac_compile) 2>conftest.er1
|
---|
3838 | ac_status=$?
|
---|
3839 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3840 | rm -f conftest.er1
|
---|
3841 | cat conftest.err >&5
|
---|
3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3843 | (exit $ac_status); } &&
|
---|
3844 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3845 | || test ! -s conftest.err'
|
---|
3846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3847 | (eval $ac_try) 2>&5
|
---|
3848 | ac_status=$?
|
---|
3849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3850 | (exit $ac_status); }; } &&
|
---|
3851 | { ac_try='test -s conftest.$ac_objext'
|
---|
3852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3853 | (eval $ac_try) 2>&5
|
---|
3854 | ac_status=$?
|
---|
3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3856 | (exit $ac_status); }; }; then
|
---|
3857 | ac_header_compiler=yes
|
---|
3858 | else
|
---|
3859 | echo "$as_me: failed program was:" >&5
|
---|
3860 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3861 |
|
---|
3862 | ac_header_compiler=no
|
---|
3863 | fi
|
---|
3864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3866 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3867 |
|
---|
3868 | # Is the header present?
|
---|
3869 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
3870 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
3871 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3872 | /* confdefs.h. */
|
---|
3873 | _ACEOF
|
---|
3874 | cat confdefs.h >>conftest.$ac_ext
|
---|
3875 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3876 | /* end confdefs.h. */
|
---|
3877 | #include <minix/config.h>
|
---|
3878 | _ACEOF
|
---|
3879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3881 | ac_status=$?
|
---|
3882 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3883 | rm -f conftest.er1
|
---|
3884 | cat conftest.err >&5
|
---|
3885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3886 | (exit $ac_status); } >/dev/null; then
|
---|
3887 | if test -s conftest.err; then
|
---|
3888 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3889 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3890 | else
|
---|
3891 | ac_cpp_err=
|
---|
3892 | fi
|
---|
3893 | else
|
---|
3894 | ac_cpp_err=yes
|
---|
3895 | fi
|
---|
3896 | if test -z "$ac_cpp_err"; then
|
---|
3897 | ac_header_preproc=yes
|
---|
3898 | else
|
---|
3899 | echo "$as_me: failed program was:" >&5
|
---|
3900 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3901 |
|
---|
3902 | ac_header_preproc=no
|
---|
3903 | fi
|
---|
3904 | rm -f conftest.err conftest.$ac_ext
|
---|
3905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
3906 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
3907 |
|
---|
3908 | # So? What about this header?
|
---|
3909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
3910 | yes:no: )
|
---|
3911 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
3912 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
3913 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
3914 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
3915 | ac_header_preproc=yes
|
---|
3916 | ;;
|
---|
3917 | no:yes:* )
|
---|
3918 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
3919 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
3920 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
3921 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
3922 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
3923 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
3924 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
3925 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
3926 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
3927 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
3928 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
3929 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
3930 | (
|
---|
3931 | cat <<\_ASBOX
|
---|
3932 | ## ------------------------------------------ ##
|
---|
3933 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
3934 | ## ------------------------------------------ ##
|
---|
3935 | _ASBOX
|
---|
3936 | ) |
|
---|
3937 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
3938 | ;;
|
---|
3939 | esac
|
---|
3940 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3941 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3942 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3944 | else
|
---|
3945 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
3946 | fi
|
---|
3947 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3948 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3949 |
|
---|
3950 | fi
|
---|
3951 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
3952 | MINIX=yes
|
---|
3953 | else
|
---|
3954 | MINIX=
|
---|
3955 | fi
|
---|
3956 |
|
---|
3957 |
|
---|
3958 | if test "$MINIX" = yes; then
|
---|
3959 |
|
---|
3960 | cat >>confdefs.h <<\_ACEOF
|
---|
3961 | #define _POSIX_SOURCE 1
|
---|
3962 | _ACEOF
|
---|
3963 |
|
---|
3964 |
|
---|
3965 | cat >>confdefs.h <<\_ACEOF
|
---|
3966 | #define _POSIX_1_SOURCE 2
|
---|
3967 | _ACEOF
|
---|
3968 |
|
---|
3969 |
|
---|
3970 | cat >>confdefs.h <<\_ACEOF
|
---|
3971 | #define _MINIX 1
|
---|
3972 | _ACEOF
|
---|
3973 |
|
---|
3974 | fi
|
---|
3975 |
|
---|
3976 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
3977 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
3978 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
3979 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3980 | else
|
---|
3981 | ac_cv_prog_cc_stdc=no
|
---|
3982 | ac_save_CFLAGS="$CFLAGS"
|
---|
3983 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
3984 | # breaks some systems' header files.
|
---|
3985 | # AIX -qlanglvl=ansi
|
---|
3986 | # Ultrix and OSF/1 -std1
|
---|
3987 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
3988 | # SVR4 -Xc
|
---|
3989 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
3990 | do
|
---|
3991 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
3992 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3993 | /* confdefs.h. */
|
---|
3994 | _ACEOF
|
---|
3995 | cat confdefs.h >>conftest.$ac_ext
|
---|
3996 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3997 | /* end confdefs.h. */
|
---|
3998 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
3999 | choke me
|
---|
4000 | #endif
|
---|
4001 |
|
---|
4002 | int
|
---|
4003 | main ()
|
---|
4004 | {
|
---|
4005 | int test (int i, double x);
|
---|
4006 | struct s1 {int (*f) (int a);};
|
---|
4007 | struct s2 {int (*f) (double a);};
|
---|
4008 | ;
|
---|
4009 | return 0;
|
---|
4010 | }
|
---|
4011 | _ACEOF
|
---|
4012 | rm -f conftest.$ac_objext
|
---|
4013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4014 | (eval $ac_compile) 2>conftest.er1
|
---|
4015 | ac_status=$?
|
---|
4016 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4017 | rm -f conftest.er1
|
---|
4018 | cat conftest.err >&5
|
---|
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4020 | (exit $ac_status); } &&
|
---|
4021 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4022 | || test ! -s conftest.err'
|
---|
4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4024 | (eval $ac_try) 2>&5
|
---|
4025 | ac_status=$?
|
---|
4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4027 | (exit $ac_status); }; } &&
|
---|
4028 | { ac_try='test -s conftest.$ac_objext'
|
---|
4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4030 | (eval $ac_try) 2>&5
|
---|
4031 | ac_status=$?
|
---|
4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4033 | (exit $ac_status); }; }; then
|
---|
4034 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4035 | else
|
---|
4036 | echo "$as_me: failed program was:" >&5
|
---|
4037 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4038 |
|
---|
4039 | fi
|
---|
4040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4041 | done
|
---|
4042 | CFLAGS="$ac_save_CFLAGS"
|
---|
4043 |
|
---|
4044 | fi
|
---|
4045 |
|
---|
4046 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4047 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
4048 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4049 | x|xno) ;;
|
---|
4050 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4051 | esac
|
---|
4052 |
|
---|
4053 |
|
---|
4054 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
4055 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
4056 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4057 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
4058 | echo "${ECHO_T}yes" >&6
|
---|
4059 | cat >>confdefs.h <<\_ACEOF
|
---|
4060 | #define PROTOTYPES 1
|
---|
4061 | _ACEOF
|
---|
4062 |
|
---|
4063 | U= ANSI2KNR=
|
---|
4064 | else
|
---|
4065 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4066 | echo "${ECHO_T}no" >&6
|
---|
4067 | U=_ ANSI2KNR=ansi2knr
|
---|
4068 | fi
|
---|
4069 |
|
---|
4070 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
4071 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
4072 | if test "${ac_cv_c_const+set}" = set; then
|
---|
4073 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4074 | else
|
---|
4075 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4076 | /* confdefs.h. */
|
---|
4077 | _ACEOF
|
---|
4078 | cat confdefs.h >>conftest.$ac_ext
|
---|
4079 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4080 | /* end confdefs.h. */
|
---|
4081 |
|
---|
4082 | int
|
---|
4083 | main ()
|
---|
4084 | {
|
---|
4085 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4086 | #ifndef __cplusplus
|
---|
4087 | /* Ultrix mips cc rejects this. */
|
---|
4088 | typedef int charset[2];
|
---|
4089 | const charset x;
|
---|
4090 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4091 | char const *const *ccp;
|
---|
4092 | char **p;
|
---|
4093 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4094 | struct point {int x, y;};
|
---|
4095 | static struct point const zero = {0,0};
|
---|
4096 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4097 | It does not let you subtract one const X* pointer from another in
|
---|
4098 | an arm of an if-expression whose if-part is not a constant
|
---|
4099 | expression */
|
---|
4100 | const char *g = "string";
|
---|
4101 | ccp = &g + (g ? g-g : 0);
|
---|
4102 | /* HPUX 7.0 cc rejects these. */
|
---|
4103 | ++ccp;
|
---|
4104 | p = (char**) ccp;
|
---|
4105 | ccp = (char const *const *) p;
|
---|
4106 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4107 | char *t;
|
---|
4108 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4109 |
|
---|
4110 | *t++ = 0;
|
---|
4111 | }
|
---|
4112 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4113 | int x[] = {25, 17};
|
---|
4114 | const int *foo = &x[0];
|
---|
4115 | ++foo;
|
---|
4116 | }
|
---|
4117 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4118 | typedef const int *iptr;
|
---|
4119 | iptr p = 0;
|
---|
4120 | ++p;
|
---|
4121 | }
|
---|
4122 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4123 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4124 | struct s { int j; const int *ap[3]; };
|
---|
4125 | struct s *b; b->j = 5;
|
---|
4126 | }
|
---|
4127 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4128 | const int foo = 10;
|
---|
4129 | }
|
---|
4130 | #endif
|
---|
4131 |
|
---|
4132 | ;
|
---|
4133 | return 0;
|
---|
4134 | }
|
---|
4135 | _ACEOF
|
---|
4136 | rm -f conftest.$ac_objext
|
---|
4137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4138 | (eval $ac_compile) 2>conftest.er1
|
---|
4139 | ac_status=$?
|
---|
4140 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4141 | rm -f conftest.er1
|
---|
4142 | cat conftest.err >&5
|
---|
4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4144 | (exit $ac_status); } &&
|
---|
4145 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4146 | || test ! -s conftest.err'
|
---|
4147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4148 | (eval $ac_try) 2>&5
|
---|
4149 | ac_status=$?
|
---|
4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4151 | (exit $ac_status); }; } &&
|
---|
4152 | { ac_try='test -s conftest.$ac_objext'
|
---|
4153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4154 | (eval $ac_try) 2>&5
|
---|
4155 | ac_status=$?
|
---|
4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4157 | (exit $ac_status); }; }; then
|
---|
4158 | ac_cv_c_const=yes
|
---|
4159 | else
|
---|
4160 | echo "$as_me: failed program was:" >&5
|
---|
4161 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4162 |
|
---|
4163 | ac_cv_c_const=no
|
---|
4164 | fi
|
---|
4165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4166 | fi
|
---|
4167 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
4168 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
4169 | if test $ac_cv_c_const = no; then
|
---|
4170 |
|
---|
4171 | cat >>confdefs.h <<\_ACEOF
|
---|
4172 | #define const
|
---|
4173 | _ACEOF
|
---|
4174 |
|
---|
4175 | fi
|
---|
4176 |
|
---|
4177 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
4178 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
4179 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
4180 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4181 | else
|
---|
4182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4183 | /* confdefs.h. */
|
---|
4184 | _ACEOF
|
---|
4185 | cat confdefs.h >>conftest.$ac_ext
|
---|
4186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4187 | /* end confdefs.h. */
|
---|
4188 | $ac_includes_default
|
---|
4189 | int
|
---|
4190 | main ()
|
---|
4191 | {
|
---|
4192 | if ((off_t *) 0)
|
---|
4193 | return 0;
|
---|
4194 | if (sizeof (off_t))
|
---|
4195 | return 0;
|
---|
4196 | ;
|
---|
4197 | return 0;
|
---|
4198 | }
|
---|
4199 | _ACEOF
|
---|
4200 | rm -f conftest.$ac_objext
|
---|
4201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4202 | (eval $ac_compile) 2>conftest.er1
|
---|
4203 | ac_status=$?
|
---|
4204 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4205 | rm -f conftest.er1
|
---|
4206 | cat conftest.err >&5
|
---|
4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4208 | (exit $ac_status); } &&
|
---|
4209 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4210 | || test ! -s conftest.err'
|
---|
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4212 | (eval $ac_try) 2>&5
|
---|
4213 | ac_status=$?
|
---|
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4215 | (exit $ac_status); }; } &&
|
---|
4216 | { ac_try='test -s conftest.$ac_objext'
|
---|
4217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4218 | (eval $ac_try) 2>&5
|
---|
4219 | ac_status=$?
|
---|
4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4221 | (exit $ac_status); }; }; then
|
---|
4222 | ac_cv_type_off_t=yes
|
---|
4223 | else
|
---|
4224 | echo "$as_me: failed program was:" >&5
|
---|
4225 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4226 |
|
---|
4227 | ac_cv_type_off_t=no
|
---|
4228 | fi
|
---|
4229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4230 | fi
|
---|
4231 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
4232 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
4233 | if test $ac_cv_type_off_t = yes; then
|
---|
4234 | :
|
---|
4235 | else
|
---|
4236 |
|
---|
4237 | cat >>confdefs.h <<_ACEOF
|
---|
4238 | #define off_t long
|
---|
4239 | _ACEOF
|
---|
4240 |
|
---|
4241 | fi
|
---|
4242 |
|
---|
4243 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
4244 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
4245 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
4246 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4247 | else
|
---|
4248 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4249 | /* confdefs.h. */
|
---|
4250 | _ACEOF
|
---|
4251 | cat confdefs.h >>conftest.$ac_ext
|
---|
4252 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4253 | /* end confdefs.h. */
|
---|
4254 | $ac_includes_default
|
---|
4255 | int
|
---|
4256 | main ()
|
---|
4257 | {
|
---|
4258 | if ((size_t *) 0)
|
---|
4259 | return 0;
|
---|
4260 | if (sizeof (size_t))
|
---|
4261 | return 0;
|
---|
4262 | ;
|
---|
4263 | return 0;
|
---|
4264 | }
|
---|
4265 | _ACEOF
|
---|
4266 | rm -f conftest.$ac_objext
|
---|
4267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4268 | (eval $ac_compile) 2>conftest.er1
|
---|
4269 | ac_status=$?
|
---|
4270 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4271 | rm -f conftest.er1
|
---|
4272 | cat conftest.err >&5
|
---|
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4274 | (exit $ac_status); } &&
|
---|
4275 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4276 | || test ! -s conftest.err'
|
---|
4277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4278 | (eval $ac_try) 2>&5
|
---|
4279 | ac_status=$?
|
---|
4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4281 | (exit $ac_status); }; } &&
|
---|
4282 | { ac_try='test -s conftest.$ac_objext'
|
---|
4283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4284 | (eval $ac_try) 2>&5
|
---|
4285 | ac_status=$?
|
---|
4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4287 | (exit $ac_status); }; }; then
|
---|
4288 | ac_cv_type_size_t=yes
|
---|
4289 | else
|
---|
4290 | echo "$as_me: failed program was:" >&5
|
---|
4291 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4292 |
|
---|
4293 | ac_cv_type_size_t=no
|
---|
4294 | fi
|
---|
4295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4296 | fi
|
---|
4297 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
4298 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
4299 | if test $ac_cv_type_size_t = yes; then
|
---|
4300 | :
|
---|
4301 | else
|
---|
4302 |
|
---|
4303 | cat >>confdefs.h <<_ACEOF
|
---|
4304 | #define size_t unsigned
|
---|
4305 | _ACEOF
|
---|
4306 |
|
---|
4307 | fi
|
---|
4308 |
|
---|
4309 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4310 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
4311 | if test "${ac_cv_header_time+set}" = set; then
|
---|
4312 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4313 | else
|
---|
4314 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4315 | /* confdefs.h. */
|
---|
4316 | _ACEOF
|
---|
4317 | cat confdefs.h >>conftest.$ac_ext
|
---|
4318 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4319 | /* end confdefs.h. */
|
---|
4320 | #include <sys/types.h>
|
---|
4321 | #include <sys/time.h>
|
---|
4322 | #include <time.h>
|
---|
4323 |
|
---|
4324 | int
|
---|
4325 | main ()
|
---|
4326 | {
|
---|
4327 | if ((struct tm *) 0)
|
---|
4328 | return 0;
|
---|
4329 | ;
|
---|
4330 | return 0;
|
---|
4331 | }
|
---|
4332 | _ACEOF
|
---|
4333 | rm -f conftest.$ac_objext
|
---|
4334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4335 | (eval $ac_compile) 2>conftest.er1
|
---|
4336 | ac_status=$?
|
---|
4337 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4338 | rm -f conftest.er1
|
---|
4339 | cat conftest.err >&5
|
---|
4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4341 | (exit $ac_status); } &&
|
---|
4342 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4343 | || test ! -s conftest.err'
|
---|
4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4345 | (eval $ac_try) 2>&5
|
---|
4346 | ac_status=$?
|
---|
4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4348 | (exit $ac_status); }; } &&
|
---|
4349 | { ac_try='test -s conftest.$ac_objext'
|
---|
4350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4351 | (eval $ac_try) 2>&5
|
---|
4352 | ac_status=$?
|
---|
4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4354 | (exit $ac_status); }; }; then
|
---|
4355 | ac_cv_header_time=yes
|
---|
4356 | else
|
---|
4357 | echo "$as_me: failed program was:" >&5
|
---|
4358 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4359 |
|
---|
4360 | ac_cv_header_time=no
|
---|
4361 | fi
|
---|
4362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4363 | fi
|
---|
4364 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
4365 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
4366 | if test $ac_cv_header_time = yes; then
|
---|
4367 |
|
---|
4368 | cat >>confdefs.h <<\_ACEOF
|
---|
4369 | #define TIME_WITH_SYS_TIME 1
|
---|
4370 | _ACEOF
|
---|
4371 |
|
---|
4372 | fi
|
---|
4373 |
|
---|
4374 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4375 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
4376 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
4377 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4378 | else
|
---|
4379 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4380 | /* confdefs.h. */
|
---|
4381 | _ACEOF
|
---|
4382 | cat confdefs.h >>conftest.$ac_ext
|
---|
4383 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4384 | /* end confdefs.h. */
|
---|
4385 | #include <sys/types.h>
|
---|
4386 | #include <time.h>
|
---|
4387 |
|
---|
4388 | int
|
---|
4389 | main ()
|
---|
4390 | {
|
---|
4391 | struct tm *tp; tp->tm_sec;
|
---|
4392 | ;
|
---|
4393 | return 0;
|
---|
4394 | }
|
---|
4395 | _ACEOF
|
---|
4396 | rm -f conftest.$ac_objext
|
---|
4397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4398 | (eval $ac_compile) 2>conftest.er1
|
---|
4399 | ac_status=$?
|
---|
4400 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4401 | rm -f conftest.er1
|
---|
4402 | cat conftest.err >&5
|
---|
4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4404 | (exit $ac_status); } &&
|
---|
4405 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4406 | || test ! -s conftest.err'
|
---|
4407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4408 | (eval $ac_try) 2>&5
|
---|
4409 | ac_status=$?
|
---|
4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4411 | (exit $ac_status); }; } &&
|
---|
4412 | { ac_try='test -s conftest.$ac_objext'
|
---|
4413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4414 | (eval $ac_try) 2>&5
|
---|
4415 | ac_status=$?
|
---|
4416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4417 | (exit $ac_status); }; }; then
|
---|
4418 | ac_cv_struct_tm=time.h
|
---|
4419 | else
|
---|
4420 | echo "$as_me: failed program was:" >&5
|
---|
4421 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4422 |
|
---|
4423 | ac_cv_struct_tm=sys/time.h
|
---|
4424 | fi
|
---|
4425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4426 | fi
|
---|
4427 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
4428 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
4429 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4430 |
|
---|
4431 | cat >>confdefs.h <<\_ACEOF
|
---|
4432 | #define TM_IN_SYS_TIME 1
|
---|
4433 | _ACEOF
|
---|
4434 |
|
---|
4435 | fi
|
---|
4436 |
|
---|
4437 |
|
---|
4438 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4439 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4440 | /* confdefs.h. */
|
---|
4441 | _ACEOF
|
---|
4442 | cat confdefs.h >>conftest.$ac_ext
|
---|
4443 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4444 | /* end confdefs.h. */
|
---|
4445 | #include <stdio.h>
|
---|
4446 |
|
---|
4447 | int
|
---|
4448 | main ()
|
---|
4449 | {
|
---|
4450 | FILE *rubbish = popen("yes", "r");
|
---|
4451 | ;
|
---|
4452 | return 0;
|
---|
4453 | }
|
---|
4454 | _ACEOF
|
---|
4455 | rm -f conftest.$ac_objext
|
---|
4456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4457 | (eval $ac_compile) 2>conftest.er1
|
---|
4458 | ac_status=$?
|
---|
4459 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4460 | rm -f conftest.er1
|
---|
4461 | cat conftest.err >&5
|
---|
4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4463 | (exit $ac_status); } &&
|
---|
4464 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4465 | || test ! -s conftest.err'
|
---|
4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4467 | (eval $ac_try) 2>&5
|
---|
4468 | ac_status=$?
|
---|
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4470 | (exit $ac_status); }; } &&
|
---|
4471 | { ac_try='test -s conftest.$ac_objext'
|
---|
4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4473 | (eval $ac_try) 2>&5
|
---|
4474 | ac_status=$?
|
---|
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4476 | (exit $ac_status); }; }; then
|
---|
4477 | :
|
---|
4478 | else
|
---|
4479 | echo "$as_me: failed program was:" >&5
|
---|
4480 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4481 |
|
---|
4482 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4483 | fi
|
---|
4484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4485 | fi
|
---|
4486 |
|
---|
4487 |
|
---|
4488 |
|
---|
4489 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
4490 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
4491 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
4492 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4493 | else
|
---|
4494 | ac_check_lib_save_LIBS=$LIBS
|
---|
4495 | LIBS="-lg $LIBS"
|
---|
4496 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4497 | /* confdefs.h. */
|
---|
4498 | _ACEOF
|
---|
4499 | cat confdefs.h >>conftest.$ac_ext
|
---|
4500 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4501 | /* end confdefs.h. */
|
---|
4502 |
|
---|
4503 |
|
---|
4504 | int
|
---|
4505 | main ()
|
---|
4506 | {
|
---|
4507 | main ();
|
---|
4508 | ;
|
---|
4509 | return 0;
|
---|
4510 | }
|
---|
4511 | _ACEOF
|
---|
4512 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4514 | (eval $ac_link) 2>conftest.er1
|
---|
4515 | ac_status=$?
|
---|
4516 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4517 | rm -f conftest.er1
|
---|
4518 | cat conftest.err >&5
|
---|
4519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4520 | (exit $ac_status); } &&
|
---|
4521 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4522 | || test ! -s conftest.err'
|
---|
4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4524 | (eval $ac_try) 2>&5
|
---|
4525 | ac_status=$?
|
---|
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4527 | (exit $ac_status); }; } &&
|
---|
4528 | { ac_try='test -s conftest$ac_exeext'
|
---|
4529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4530 | (eval $ac_try) 2>&5
|
---|
4531 | ac_status=$?
|
---|
4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4533 | (exit $ac_status); }; }; then
|
---|
4534 | ac_cv_lib_g_main=yes
|
---|
4535 | else
|
---|
4536 | echo "$as_me: failed program was:" >&5
|
---|
4537 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4538 |
|
---|
4539 | ac_cv_lib_g_main=no
|
---|
4540 | fi
|
---|
4541 | rm -f conftest.err conftest.$ac_objext \
|
---|
4542 | conftest$ac_exeext conftest.$ac_ext
|
---|
4543 | LIBS=$ac_check_lib_save_LIBS
|
---|
4544 | fi
|
---|
4545 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
4546 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
4547 | if test $ac_cv_lib_g_main = yes; then
|
---|
4548 | cat >>confdefs.h <<_ACEOF
|
---|
4549 | #define HAVE_LIBG 1
|
---|
4550 | _ACEOF
|
---|
4551 |
|
---|
4552 | LIBS="-lg $LIBS"
|
---|
4553 |
|
---|
4554 | fi
|
---|
4555 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
4556 |
|
---|
4557 |
|
---|
4558 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
4559 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
4560 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
4561 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4562 | else
|
---|
4563 | ac_check_lib_save_LIBS=$LIBS
|
---|
4564 | LIBS="-lm $LIBS"
|
---|
4565 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4566 | /* confdefs.h. */
|
---|
4567 | _ACEOF
|
---|
4568 | cat confdefs.h >>conftest.$ac_ext
|
---|
4569 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4570 | /* end confdefs.h. */
|
---|
4571 |
|
---|
4572 |
|
---|
4573 | int
|
---|
4574 | main ()
|
---|
4575 | {
|
---|
4576 | main ();
|
---|
4577 | ;
|
---|
4578 | return 0;
|
---|
4579 | }
|
---|
4580 | _ACEOF
|
---|
4581 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4583 | (eval $ac_link) 2>conftest.er1
|
---|
4584 | ac_status=$?
|
---|
4585 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4586 | rm -f conftest.er1
|
---|
4587 | cat conftest.err >&5
|
---|
4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4589 | (exit $ac_status); } &&
|
---|
4590 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4591 | || test ! -s conftest.err'
|
---|
4592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4593 | (eval $ac_try) 2>&5
|
---|
4594 | ac_status=$?
|
---|
4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4596 | (exit $ac_status); }; } &&
|
---|
4597 | { ac_try='test -s conftest$ac_exeext'
|
---|
4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4599 | (eval $ac_try) 2>&5
|
---|
4600 | ac_status=$?
|
---|
4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4602 | (exit $ac_status); }; }; then
|
---|
4603 | ac_cv_lib_m_main=yes
|
---|
4604 | else
|
---|
4605 | echo "$as_me: failed program was:" >&5
|
---|
4606 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4607 |
|
---|
4608 | ac_cv_lib_m_main=no
|
---|
4609 | fi
|
---|
4610 | rm -f conftest.err conftest.$ac_objext \
|
---|
4611 | conftest$ac_exeext conftest.$ac_ext
|
---|
4612 | LIBS=$ac_check_lib_save_LIBS
|
---|
4613 | fi
|
---|
4614 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
4615 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
4616 | if test $ac_cv_lib_m_main = yes; then
|
---|
4617 | cat >>confdefs.h <<_ACEOF
|
---|
4618 | #define HAVE_LIBM 1
|
---|
4619 | _ACEOF
|
---|
4620 |
|
---|
4621 | LIBS="-lm $LIBS"
|
---|
4622 |
|
---|
4623 | fi
|
---|
4624 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
4625 |
|
---|
4626 |
|
---|
4627 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
4628 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
4629 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
4630 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4631 | else
|
---|
4632 | ac_check_lib_save_LIBS=$LIBS
|
---|
4633 | LIBS="-lcrypt $LIBS"
|
---|
4634 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4635 | /* confdefs.h. */
|
---|
4636 | _ACEOF
|
---|
4637 | cat confdefs.h >>conftest.$ac_ext
|
---|
4638 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4639 | /* end confdefs.h. */
|
---|
4640 |
|
---|
4641 |
|
---|
4642 | int
|
---|
4643 | main ()
|
---|
4644 | {
|
---|
4645 | main ();
|
---|
4646 | ;
|
---|
4647 | return 0;
|
---|
4648 | }
|
---|
4649 | _ACEOF
|
---|
4650 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4652 | (eval $ac_link) 2>conftest.er1
|
---|
4653 | ac_status=$?
|
---|
4654 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4655 | rm -f conftest.er1
|
---|
4656 | cat conftest.err >&5
|
---|
4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4658 | (exit $ac_status); } &&
|
---|
4659 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4660 | || test ! -s conftest.err'
|
---|
4661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4662 | (eval $ac_try) 2>&5
|
---|
4663 | ac_status=$?
|
---|
4664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4665 | (exit $ac_status); }; } &&
|
---|
4666 | { ac_try='test -s conftest$ac_exeext'
|
---|
4667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4668 | (eval $ac_try) 2>&5
|
---|
4669 | ac_status=$?
|
---|
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4671 | (exit $ac_status); }; }; then
|
---|
4672 | ac_cv_lib_crypt_main=yes
|
---|
4673 | else
|
---|
4674 | echo "$as_me: failed program was:" >&5
|
---|
4675 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4676 |
|
---|
4677 | ac_cv_lib_crypt_main=no
|
---|
4678 | fi
|
---|
4679 | rm -f conftest.err conftest.$ac_objext \
|
---|
4680 | conftest$ac_exeext conftest.$ac_ext
|
---|
4681 | LIBS=$ac_check_lib_save_LIBS
|
---|
4682 | fi
|
---|
4683 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
4684 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
4685 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
4686 | cat >>confdefs.h <<_ACEOF
|
---|
4687 | #define HAVE_LIBCRYPT 1
|
---|
4688 | _ACEOF
|
---|
4689 |
|
---|
4690 | LIBS="-lcrypt $LIBS"
|
---|
4691 |
|
---|
4692 | fi
|
---|
4693 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
4694 |
|
---|
4695 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
4696 |
|
---|
4697 | echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
4698 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
|
---|
4699 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
4700 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4701 | else
|
---|
4702 | ac_check_lib_save_LIBS=$LIBS
|
---|
4703 | LIBS="-liconv $LIBS"
|
---|
4704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4705 | /* confdefs.h. */
|
---|
4706 | _ACEOF
|
---|
4707 | cat confdefs.h >>conftest.$ac_ext
|
---|
4708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4709 | /* end confdefs.h. */
|
---|
4710 |
|
---|
4711 |
|
---|
4712 | int
|
---|
4713 | main ()
|
---|
4714 | {
|
---|
4715 | main ();
|
---|
4716 | ;
|
---|
4717 | return 0;
|
---|
4718 | }
|
---|
4719 | _ACEOF
|
---|
4720 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4722 | (eval $ac_link) 2>conftest.er1
|
---|
4723 | ac_status=$?
|
---|
4724 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4725 | rm -f conftest.er1
|
---|
4726 | cat conftest.err >&5
|
---|
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4728 | (exit $ac_status); } &&
|
---|
4729 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4730 | || test ! -s conftest.err'
|
---|
4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4732 | (eval $ac_try) 2>&5
|
---|
4733 | ac_status=$?
|
---|
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4735 | (exit $ac_status); }; } &&
|
---|
4736 | { ac_try='test -s conftest$ac_exeext'
|
---|
4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4738 | (eval $ac_try) 2>&5
|
---|
4739 | ac_status=$?
|
---|
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4741 | (exit $ac_status); }; }; then
|
---|
4742 | ac_cv_lib_iconv_main=yes
|
---|
4743 | else
|
---|
4744 | echo "$as_me: failed program was:" >&5
|
---|
4745 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4746 |
|
---|
4747 | ac_cv_lib_iconv_main=no
|
---|
4748 | fi
|
---|
4749 | rm -f conftest.err conftest.$ac_objext \
|
---|
4750 | conftest$ac_exeext conftest.$ac_ext
|
---|
4751 | LIBS=$ac_check_lib_save_LIBS
|
---|
4752 | fi
|
---|
4753 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
4754 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
|
---|
4755 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
4756 | cat >>confdefs.h <<_ACEOF
|
---|
4757 | #define HAVE_LIBICONV 1
|
---|
4758 | _ACEOF
|
---|
4759 |
|
---|
4760 | LIBS="-liconv $LIBS"
|
---|
4761 |
|
---|
4762 | fi
|
---|
4763 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
4764 |
|
---|
4765 | fi
|
---|
4766 |
|
---|
4767 |
|
---|
4768 |
|
---|
4769 |
|
---|
4770 |
|
---|
4771 |
|
---|
4772 | ac_header_dirent=no
|
---|
4773 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
4774 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
4775 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
4776 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
4777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4778 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4779 | else
|
---|
4780 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4781 | /* confdefs.h. */
|
---|
4782 | _ACEOF
|
---|
4783 | cat confdefs.h >>conftest.$ac_ext
|
---|
4784 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4785 | /* end confdefs.h. */
|
---|
4786 | #include <sys/types.h>
|
---|
4787 | #include <$ac_hdr>
|
---|
4788 |
|
---|
4789 | int
|
---|
4790 | main ()
|
---|
4791 | {
|
---|
4792 | if ((DIR *) 0)
|
---|
4793 | return 0;
|
---|
4794 | ;
|
---|
4795 | return 0;
|
---|
4796 | }
|
---|
4797 | _ACEOF
|
---|
4798 | rm -f conftest.$ac_objext
|
---|
4799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4800 | (eval $ac_compile) 2>conftest.er1
|
---|
4801 | ac_status=$?
|
---|
4802 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4803 | rm -f conftest.er1
|
---|
4804 | cat conftest.err >&5
|
---|
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4806 | (exit $ac_status); } &&
|
---|
4807 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4808 | || test ! -s conftest.err'
|
---|
4809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4810 | (eval $ac_try) 2>&5
|
---|
4811 | ac_status=$?
|
---|
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4813 | (exit $ac_status); }; } &&
|
---|
4814 | { ac_try='test -s conftest.$ac_objext'
|
---|
4815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4816 | (eval $ac_try) 2>&5
|
---|
4817 | ac_status=$?
|
---|
4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4819 | (exit $ac_status); }; }; then
|
---|
4820 | eval "$as_ac_Header=yes"
|
---|
4821 | else
|
---|
4822 | echo "$as_me: failed program was:" >&5
|
---|
4823 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4824 |
|
---|
4825 | eval "$as_ac_Header=no"
|
---|
4826 | fi
|
---|
4827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4828 | fi
|
---|
4829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4832 | cat >>confdefs.h <<_ACEOF
|
---|
4833 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
4834 | _ACEOF
|
---|
4835 |
|
---|
4836 | ac_header_dirent=$ac_hdr; break
|
---|
4837 | fi
|
---|
4838 |
|
---|
4839 | done
|
---|
4840 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4841 | if test $ac_header_dirent = dirent.h; then
|
---|
4842 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4843 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4844 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4845 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4846 | else
|
---|
4847 | ac_func_search_save_LIBS=$LIBS
|
---|
4848 | ac_cv_search_opendir=no
|
---|
4849 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4850 | /* confdefs.h. */
|
---|
4851 | _ACEOF
|
---|
4852 | cat confdefs.h >>conftest.$ac_ext
|
---|
4853 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4854 | /* end confdefs.h. */
|
---|
4855 |
|
---|
4856 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4857 | #ifdef __cplusplus
|
---|
4858 | extern "C"
|
---|
4859 | #endif
|
---|
4860 | /* We use char because int might match the return type of a gcc2
|
---|
4861 | builtin and then its argument prototype would still apply. */
|
---|
4862 | char opendir ();
|
---|
4863 | int
|
---|
4864 | main ()
|
---|
4865 | {
|
---|
4866 | opendir ();
|
---|
4867 | ;
|
---|
4868 | return 0;
|
---|
4869 | }
|
---|
4870 | _ACEOF
|
---|
4871 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4873 | (eval $ac_link) 2>conftest.er1
|
---|
4874 | ac_status=$?
|
---|
4875 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4876 | rm -f conftest.er1
|
---|
4877 | cat conftest.err >&5
|
---|
4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4879 | (exit $ac_status); } &&
|
---|
4880 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4881 | || test ! -s conftest.err'
|
---|
4882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4883 | (eval $ac_try) 2>&5
|
---|
4884 | ac_status=$?
|
---|
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4886 | (exit $ac_status); }; } &&
|
---|
4887 | { ac_try='test -s conftest$ac_exeext'
|
---|
4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4889 | (eval $ac_try) 2>&5
|
---|
4890 | ac_status=$?
|
---|
4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4892 | (exit $ac_status); }; }; then
|
---|
4893 | ac_cv_search_opendir="none required"
|
---|
4894 | else
|
---|
4895 | echo "$as_me: failed program was:" >&5
|
---|
4896 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4897 |
|
---|
4898 | fi
|
---|
4899 | rm -f conftest.err conftest.$ac_objext \
|
---|
4900 | conftest$ac_exeext conftest.$ac_ext
|
---|
4901 | if test "$ac_cv_search_opendir" = no; then
|
---|
4902 | for ac_lib in dir; do
|
---|
4903 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4904 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4905 | /* confdefs.h. */
|
---|
4906 | _ACEOF
|
---|
4907 | cat confdefs.h >>conftest.$ac_ext
|
---|
4908 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4909 | /* end confdefs.h. */
|
---|
4910 |
|
---|
4911 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4912 | #ifdef __cplusplus
|
---|
4913 | extern "C"
|
---|
4914 | #endif
|
---|
4915 | /* We use char because int might match the return type of a gcc2
|
---|
4916 | builtin and then its argument prototype would still apply. */
|
---|
4917 | char opendir ();
|
---|
4918 | int
|
---|
4919 | main ()
|
---|
4920 | {
|
---|
4921 | opendir ();
|
---|
4922 | ;
|
---|
4923 | return 0;
|
---|
4924 | }
|
---|
4925 | _ACEOF
|
---|
4926 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4928 | (eval $ac_link) 2>conftest.er1
|
---|
4929 | ac_status=$?
|
---|
4930 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4931 | rm -f conftest.er1
|
---|
4932 | cat conftest.err >&5
|
---|
4933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4934 | (exit $ac_status); } &&
|
---|
4935 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4936 | || test ! -s conftest.err'
|
---|
4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4938 | (eval $ac_try) 2>&5
|
---|
4939 | ac_status=$?
|
---|
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4941 | (exit $ac_status); }; } &&
|
---|
4942 | { ac_try='test -s conftest$ac_exeext'
|
---|
4943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4944 | (eval $ac_try) 2>&5
|
---|
4945 | ac_status=$?
|
---|
4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4947 | (exit $ac_status); }; }; then
|
---|
4948 | ac_cv_search_opendir="-l$ac_lib"
|
---|
4949 | break
|
---|
4950 | else
|
---|
4951 | echo "$as_me: failed program was:" >&5
|
---|
4952 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4953 |
|
---|
4954 | fi
|
---|
4955 | rm -f conftest.err conftest.$ac_objext \
|
---|
4956 | conftest$ac_exeext conftest.$ac_ext
|
---|
4957 | done
|
---|
4958 | fi
|
---|
4959 | LIBS=$ac_func_search_save_LIBS
|
---|
4960 | fi
|
---|
4961 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
4962 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
4963 | if test "$ac_cv_search_opendir" != no; then
|
---|
4964 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
4965 |
|
---|
4966 | fi
|
---|
4967 |
|
---|
4968 | else
|
---|
4969 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4970 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4971 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4972 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4973 | else
|
---|
4974 | ac_func_search_save_LIBS=$LIBS
|
---|
4975 | ac_cv_search_opendir=no
|
---|
4976 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4977 | /* confdefs.h. */
|
---|
4978 | _ACEOF
|
---|
4979 | cat confdefs.h >>conftest.$ac_ext
|
---|
4980 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4981 | /* end confdefs.h. */
|
---|
4982 |
|
---|
4983 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4984 | #ifdef __cplusplus
|
---|
4985 | extern "C"
|
---|
4986 | #endif
|
---|
4987 | /* We use char because int might match the return type of a gcc2
|
---|
4988 | builtin and then its argument prototype would still apply. */
|
---|
4989 | char opendir ();
|
---|
4990 | int
|
---|
4991 | main ()
|
---|
4992 | {
|
---|
4993 | opendir ();
|
---|
4994 | ;
|
---|
4995 | return 0;
|
---|
4996 | }
|
---|
4997 | _ACEOF
|
---|
4998 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5000 | (eval $ac_link) 2>conftest.er1
|
---|
5001 | ac_status=$?
|
---|
5002 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5003 | rm -f conftest.er1
|
---|
5004 | cat conftest.err >&5
|
---|
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5006 | (exit $ac_status); } &&
|
---|
5007 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5008 | || test ! -s conftest.err'
|
---|
5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5010 | (eval $ac_try) 2>&5
|
---|
5011 | ac_status=$?
|
---|
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5013 | (exit $ac_status); }; } &&
|
---|
5014 | { ac_try='test -s conftest$ac_exeext'
|
---|
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5016 | (eval $ac_try) 2>&5
|
---|
5017 | ac_status=$?
|
---|
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5019 | (exit $ac_status); }; }; then
|
---|
5020 | ac_cv_search_opendir="none required"
|
---|
5021 | else
|
---|
5022 | echo "$as_me: failed program was:" >&5
|
---|
5023 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5024 |
|
---|
5025 | fi
|
---|
5026 | rm -f conftest.err conftest.$ac_objext \
|
---|
5027 | conftest$ac_exeext conftest.$ac_ext
|
---|
5028 | if test "$ac_cv_search_opendir" = no; then
|
---|
5029 | for ac_lib in x; do
|
---|
5030 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5031 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5032 | /* confdefs.h. */
|
---|
5033 | _ACEOF
|
---|
5034 | cat confdefs.h >>conftest.$ac_ext
|
---|
5035 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5036 | /* end confdefs.h. */
|
---|
5037 |
|
---|
5038 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5039 | #ifdef __cplusplus
|
---|
5040 | extern "C"
|
---|
5041 | #endif
|
---|
5042 | /* We use char because int might match the return type of a gcc2
|
---|
5043 | builtin and then its argument prototype would still apply. */
|
---|
5044 | char opendir ();
|
---|
5045 | int
|
---|
5046 | main ()
|
---|
5047 | {
|
---|
5048 | opendir ();
|
---|
5049 | ;
|
---|
5050 | return 0;
|
---|
5051 | }
|
---|
5052 | _ACEOF
|
---|
5053 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5055 | (eval $ac_link) 2>conftest.er1
|
---|
5056 | ac_status=$?
|
---|
5057 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5058 | rm -f conftest.er1
|
---|
5059 | cat conftest.err >&5
|
---|
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5061 | (exit $ac_status); } &&
|
---|
5062 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5063 | || test ! -s conftest.err'
|
---|
5064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5065 | (eval $ac_try) 2>&5
|
---|
5066 | ac_status=$?
|
---|
5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5068 | (exit $ac_status); }; } &&
|
---|
5069 | { ac_try='test -s conftest$ac_exeext'
|
---|
5070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5071 | (eval $ac_try) 2>&5
|
---|
5072 | ac_status=$?
|
---|
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5074 | (exit $ac_status); }; }; then
|
---|
5075 | ac_cv_search_opendir="-l$ac_lib"
|
---|
5076 | break
|
---|
5077 | else
|
---|
5078 | echo "$as_me: failed program was:" >&5
|
---|
5079 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5080 |
|
---|
5081 | fi
|
---|
5082 | rm -f conftest.err conftest.$ac_objext \
|
---|
5083 | conftest$ac_exeext conftest.$ac_ext
|
---|
5084 | done
|
---|
5085 | fi
|
---|
5086 | LIBS=$ac_func_search_save_LIBS
|
---|
5087 | fi
|
---|
5088 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5089 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
5090 | if test "$ac_cv_search_opendir" != no; then
|
---|
5091 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
5092 |
|
---|
5093 | fi
|
---|
5094 |
|
---|
5095 | fi
|
---|
5096 |
|
---|
5097 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
5098 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
5099 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
5100 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5101 | else
|
---|
5102 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5103 | /* confdefs.h. */
|
---|
5104 | _ACEOF
|
---|
5105 | cat confdefs.h >>conftest.$ac_ext
|
---|
5106 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5107 | /* end confdefs.h. */
|
---|
5108 | #include <stdlib.h>
|
---|
5109 | #include <stdarg.h>
|
---|
5110 | #include <string.h>
|
---|
5111 | #include <float.h>
|
---|
5112 |
|
---|
5113 | int
|
---|
5114 | main ()
|
---|
5115 | {
|
---|
5116 |
|
---|
5117 | ;
|
---|
5118 | return 0;
|
---|
5119 | }
|
---|
5120 | _ACEOF
|
---|
5121 | rm -f conftest.$ac_objext
|
---|
5122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5123 | (eval $ac_compile) 2>conftest.er1
|
---|
5124 | ac_status=$?
|
---|
5125 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5126 | rm -f conftest.er1
|
---|
5127 | cat conftest.err >&5
|
---|
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5129 | (exit $ac_status); } &&
|
---|
5130 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5131 | || test ! -s conftest.err'
|
---|
5132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5133 | (eval $ac_try) 2>&5
|
---|
5134 | ac_status=$?
|
---|
5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5136 | (exit $ac_status); }; } &&
|
---|
5137 | { ac_try='test -s conftest.$ac_objext'
|
---|
5138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5139 | (eval $ac_try) 2>&5
|
---|
5140 | ac_status=$?
|
---|
5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5142 | (exit $ac_status); }; }; then
|
---|
5143 | ac_cv_header_stdc=yes
|
---|
5144 | else
|
---|
5145 | echo "$as_me: failed program was:" >&5
|
---|
5146 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5147 |
|
---|
5148 | ac_cv_header_stdc=no
|
---|
5149 | fi
|
---|
5150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5151 |
|
---|
5152 | if test $ac_cv_header_stdc = yes; then
|
---|
5153 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5154 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5155 | /* confdefs.h. */
|
---|
5156 | _ACEOF
|
---|
5157 | cat confdefs.h >>conftest.$ac_ext
|
---|
5158 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5159 | /* end confdefs.h. */
|
---|
5160 | #include <string.h>
|
---|
5161 |
|
---|
5162 | _ACEOF
|
---|
5163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5164 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5165 | :
|
---|
5166 | else
|
---|
5167 | ac_cv_header_stdc=no
|
---|
5168 | fi
|
---|
5169 | rm -f conftest*
|
---|
5170 |
|
---|
5171 | fi
|
---|
5172 |
|
---|
5173 | if test $ac_cv_header_stdc = yes; then
|
---|
5174 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5175 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5176 | /* confdefs.h. */
|
---|
5177 | _ACEOF
|
---|
5178 | cat confdefs.h >>conftest.$ac_ext
|
---|
5179 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5180 | /* end confdefs.h. */
|
---|
5181 | #include <stdlib.h>
|
---|
5182 |
|
---|
5183 | _ACEOF
|
---|
5184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5185 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5186 | :
|
---|
5187 | else
|
---|
5188 | ac_cv_header_stdc=no
|
---|
5189 | fi
|
---|
5190 | rm -f conftest*
|
---|
5191 |
|
---|
5192 | fi
|
---|
5193 |
|
---|
5194 | if test $ac_cv_header_stdc = yes; then
|
---|
5195 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5196 | if test "$cross_compiling" = yes; then
|
---|
5197 | :
|
---|
5198 | else
|
---|
5199 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5200 | /* confdefs.h. */
|
---|
5201 | _ACEOF
|
---|
5202 | cat confdefs.h >>conftest.$ac_ext
|
---|
5203 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5204 | /* end confdefs.h. */
|
---|
5205 | #include <ctype.h>
|
---|
5206 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5207 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5208 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5209 | #else
|
---|
5210 | # define ISLOWER(c) \
|
---|
5211 | (('a' <= (c) && (c) <= 'i') \
|
---|
5212 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5213 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5214 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5215 | #endif
|
---|
5216 |
|
---|
5217 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5218 | int
|
---|
5219 | main ()
|
---|
5220 | {
|
---|
5221 | int i;
|
---|
5222 | for (i = 0; i < 256; i++)
|
---|
5223 | if (XOR (islower (i), ISLOWER (i))
|
---|
5224 | || toupper (i) != TOUPPER (i))
|
---|
5225 | exit(2);
|
---|
5226 | exit (0);
|
---|
5227 | }
|
---|
5228 | _ACEOF
|
---|
5229 | rm -f conftest$ac_exeext
|
---|
5230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5231 | (eval $ac_link) 2>&5
|
---|
5232 | ac_status=$?
|
---|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5236 | (eval $ac_try) 2>&5
|
---|
5237 | ac_status=$?
|
---|
5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5239 | (exit $ac_status); }; }; then
|
---|
5240 | :
|
---|
5241 | else
|
---|
5242 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5243 | echo "$as_me: failed program was:" >&5
|
---|
5244 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5245 |
|
---|
5246 | ( exit $ac_status )
|
---|
5247 | ac_cv_header_stdc=no
|
---|
5248 | fi
|
---|
5249 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5250 | fi
|
---|
5251 | fi
|
---|
5252 | fi
|
---|
5253 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5254 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
5255 | if test $ac_cv_header_stdc = yes; then
|
---|
5256 |
|
---|
5257 | cat >>confdefs.h <<\_ACEOF
|
---|
5258 | #define STDC_HEADERS 1
|
---|
5259 | _ACEOF
|
---|
5260 |
|
---|
5261 | fi
|
---|
5262 |
|
---|
5263 |
|
---|
5264 |
|
---|
5265 |
|
---|
5266 |
|
---|
5267 |
|
---|
5268 |
|
---|
5269 |
|
---|
5270 |
|
---|
5271 |
|
---|
5272 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
5273 | do
|
---|
5274 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5276 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5279 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5280 | fi
|
---|
5281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5283 | else
|
---|
5284 | # Is the header compilable?
|
---|
5285 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5286 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
5287 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5288 | /* confdefs.h. */
|
---|
5289 | _ACEOF
|
---|
5290 | cat confdefs.h >>conftest.$ac_ext
|
---|
5291 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5292 | /* end confdefs.h. */
|
---|
5293 | $ac_includes_default
|
---|
5294 | #include <$ac_header>
|
---|
5295 | _ACEOF
|
---|
5296 | rm -f conftest.$ac_objext
|
---|
5297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5298 | (eval $ac_compile) 2>conftest.er1
|
---|
5299 | ac_status=$?
|
---|
5300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5301 | rm -f conftest.er1
|
---|
5302 | cat conftest.err >&5
|
---|
5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5304 | (exit $ac_status); } &&
|
---|
5305 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5306 | || test ! -s conftest.err'
|
---|
5307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5308 | (eval $ac_try) 2>&5
|
---|
5309 | ac_status=$?
|
---|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5311 | (exit $ac_status); }; } &&
|
---|
5312 | { ac_try='test -s conftest.$ac_objext'
|
---|
5313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5314 | (eval $ac_try) 2>&5
|
---|
5315 | ac_status=$?
|
---|
5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5317 | (exit $ac_status); }; }; then
|
---|
5318 | ac_header_compiler=yes
|
---|
5319 | else
|
---|
5320 | echo "$as_me: failed program was:" >&5
|
---|
5321 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5322 |
|
---|
5323 | ac_header_compiler=no
|
---|
5324 | fi
|
---|
5325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5326 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5327 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5328 |
|
---|
5329 | # Is the header present?
|
---|
5330 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5331 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
5332 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5333 | /* confdefs.h. */
|
---|
5334 | _ACEOF
|
---|
5335 | cat confdefs.h >>conftest.$ac_ext
|
---|
5336 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5337 | /* end confdefs.h. */
|
---|
5338 | #include <$ac_header>
|
---|
5339 | _ACEOF
|
---|
5340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5342 | ac_status=$?
|
---|
5343 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5344 | rm -f conftest.er1
|
---|
5345 | cat conftest.err >&5
|
---|
5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5347 | (exit $ac_status); } >/dev/null; then
|
---|
5348 | if test -s conftest.err; then
|
---|
5349 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5351 | else
|
---|
5352 | ac_cpp_err=
|
---|
5353 | fi
|
---|
5354 | else
|
---|
5355 | ac_cpp_err=yes
|
---|
5356 | fi
|
---|
5357 | if test -z "$ac_cpp_err"; then
|
---|
5358 | ac_header_preproc=yes
|
---|
5359 | else
|
---|
5360 | echo "$as_me: failed program was:" >&5
|
---|
5361 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5362 |
|
---|
5363 | ac_header_preproc=no
|
---|
5364 | fi
|
---|
5365 | rm -f conftest.err conftest.$ac_ext
|
---|
5366 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5367 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5368 |
|
---|
5369 | # So? What about this header?
|
---|
5370 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5371 | yes:no: )
|
---|
5372 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5373 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5375 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5376 | ac_header_preproc=yes
|
---|
5377 | ;;
|
---|
5378 | no:yes:* )
|
---|
5379 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5380 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5381 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5382 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5383 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5384 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5385 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5386 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5388 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5389 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5390 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5391 | (
|
---|
5392 | cat <<\_ASBOX
|
---|
5393 | ## ------------------------------------------ ##
|
---|
5394 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
5395 | ## ------------------------------------------ ##
|
---|
5396 | _ASBOX
|
---|
5397 | ) |
|
---|
5398 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5399 | ;;
|
---|
5400 | esac
|
---|
5401 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5404 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5405 | else
|
---|
5406 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5407 | fi
|
---|
5408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5409 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5410 |
|
---|
5411 | fi
|
---|
5412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5413 | cat >>confdefs.h <<_ACEOF
|
---|
5414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5415 | _ACEOF
|
---|
5416 |
|
---|
5417 | fi
|
---|
5418 |
|
---|
5419 | done
|
---|
5420 |
|
---|
5421 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5422 | /* confdefs.h. */
|
---|
5423 | _ACEOF
|
---|
5424 | cat confdefs.h >>conftest.$ac_ext
|
---|
5425 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5426 | /* end confdefs.h. */
|
---|
5427 | #include <stdio.h>
|
---|
5428 |
|
---|
5429 | _ACEOF
|
---|
5430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5431 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
5432 | cat >>confdefs.h <<\_ACEOF
|
---|
5433 | #define HAVE_FREAD_DECL 1
|
---|
5434 | _ACEOF
|
---|
5435 |
|
---|
5436 | fi
|
---|
5437 | rm -f conftest*
|
---|
5438 |
|
---|
5439 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5440 | /* confdefs.h. */
|
---|
5441 | _ACEOF
|
---|
5442 | cat confdefs.h >>conftest.$ac_ext
|
---|
5443 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5444 | /* end confdefs.h. */
|
---|
5445 | #include <stdio.h>
|
---|
5446 |
|
---|
5447 | _ACEOF
|
---|
5448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5449 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
5450 | cat >>confdefs.h <<\_ACEOF
|
---|
5451 | #define HAVE_FGETC_DECL 1
|
---|
5452 | _ACEOF
|
---|
5453 |
|
---|
5454 | fi
|
---|
5455 | rm -f conftest*
|
---|
5456 |
|
---|
5457 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5458 | /* confdefs.h. */
|
---|
5459 | _ACEOF
|
---|
5460 | cat confdefs.h >>conftest.$ac_ext
|
---|
5461 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5462 | /* end confdefs.h. */
|
---|
5463 | #include <sys/procfs.h>
|
---|
5464 |
|
---|
5465 | _ACEOF
|
---|
5466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5467 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
5468 | cat >>confdefs.h <<\_ACEOF
|
---|
5469 | #define HAVE_PR_BRKSIZE 1
|
---|
5470 | _ACEOF
|
---|
5471 |
|
---|
5472 | fi
|
---|
5473 | rm -f conftest*
|
---|
5474 |
|
---|
5475 |
|
---|
5476 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5477 | # for constant arguments. Useless!
|
---|
5478 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
5479 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
5480 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
5481 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5482 | else
|
---|
5483 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5484 | /* confdefs.h. */
|
---|
5485 | _ACEOF
|
---|
5486 | cat confdefs.h >>conftest.$ac_ext
|
---|
5487 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5488 | /* end confdefs.h. */
|
---|
5489 | #include <alloca.h>
|
---|
5490 | int
|
---|
5491 | main ()
|
---|
5492 | {
|
---|
5493 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5494 | ;
|
---|
5495 | return 0;
|
---|
5496 | }
|
---|
5497 | _ACEOF
|
---|
5498 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5500 | (eval $ac_link) 2>conftest.er1
|
---|
5501 | ac_status=$?
|
---|
5502 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5503 | rm -f conftest.er1
|
---|
5504 | cat conftest.err >&5
|
---|
5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5506 | (exit $ac_status); } &&
|
---|
5507 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5508 | || test ! -s conftest.err'
|
---|
5509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5510 | (eval $ac_try) 2>&5
|
---|
5511 | ac_status=$?
|
---|
5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5513 | (exit $ac_status); }; } &&
|
---|
5514 | { ac_try='test -s conftest$ac_exeext'
|
---|
5515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5516 | (eval $ac_try) 2>&5
|
---|
5517 | ac_status=$?
|
---|
5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5519 | (exit $ac_status); }; }; then
|
---|
5520 | ac_cv_working_alloca_h=yes
|
---|
5521 | else
|
---|
5522 | echo "$as_me: failed program was:" >&5
|
---|
5523 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5524 |
|
---|
5525 | ac_cv_working_alloca_h=no
|
---|
5526 | fi
|
---|
5527 | rm -f conftest.err conftest.$ac_objext \
|
---|
5528 | conftest$ac_exeext conftest.$ac_ext
|
---|
5529 | fi
|
---|
5530 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
5531 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
5532 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5533 |
|
---|
5534 | cat >>confdefs.h <<\_ACEOF
|
---|
5535 | #define HAVE_ALLOCA_H 1
|
---|
5536 | _ACEOF
|
---|
5537 |
|
---|
5538 | fi
|
---|
5539 |
|
---|
5540 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
5541 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
5542 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
5543 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5544 | else
|
---|
5545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5546 | /* confdefs.h. */
|
---|
5547 | _ACEOF
|
---|
5548 | cat confdefs.h >>conftest.$ac_ext
|
---|
5549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5550 | /* end confdefs.h. */
|
---|
5551 | #ifdef __GNUC__
|
---|
5552 | # define alloca __builtin_alloca
|
---|
5553 | #else
|
---|
5554 | # ifdef _MSC_VER
|
---|
5555 | # include <malloc.h>
|
---|
5556 | # define alloca _alloca
|
---|
5557 | # else
|
---|
5558 | # if HAVE_ALLOCA_H
|
---|
5559 | # include <alloca.h>
|
---|
5560 | # else
|
---|
5561 | # ifdef _AIX
|
---|
5562 | #pragma alloca
|
---|
5563 | # else
|
---|
5564 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5565 | char *alloca ();
|
---|
5566 | # endif
|
---|
5567 | # endif
|
---|
5568 | # endif
|
---|
5569 | # endif
|
---|
5570 | #endif
|
---|
5571 |
|
---|
5572 | int
|
---|
5573 | main ()
|
---|
5574 | {
|
---|
5575 | char *p = (char *) alloca (1);
|
---|
5576 | ;
|
---|
5577 | return 0;
|
---|
5578 | }
|
---|
5579 | _ACEOF
|
---|
5580 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5582 | (eval $ac_link) 2>conftest.er1
|
---|
5583 | ac_status=$?
|
---|
5584 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5585 | rm -f conftest.er1
|
---|
5586 | cat conftest.err >&5
|
---|
5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5588 | (exit $ac_status); } &&
|
---|
5589 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5590 | || test ! -s conftest.err'
|
---|
5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5592 | (eval $ac_try) 2>&5
|
---|
5593 | ac_status=$?
|
---|
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5595 | (exit $ac_status); }; } &&
|
---|
5596 | { ac_try='test -s conftest$ac_exeext'
|
---|
5597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5598 | (eval $ac_try) 2>&5
|
---|
5599 | ac_status=$?
|
---|
5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5601 | (exit $ac_status); }; }; then
|
---|
5602 | ac_cv_func_alloca_works=yes
|
---|
5603 | else
|
---|
5604 | echo "$as_me: failed program was:" >&5
|
---|
5605 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5606 |
|
---|
5607 | ac_cv_func_alloca_works=no
|
---|
5608 | fi
|
---|
5609 | rm -f conftest.err conftest.$ac_objext \
|
---|
5610 | conftest$ac_exeext conftest.$ac_ext
|
---|
5611 | fi
|
---|
5612 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
5613 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
5614 |
|
---|
5615 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5616 |
|
---|
5617 | cat >>confdefs.h <<\_ACEOF
|
---|
5618 | #define HAVE_ALLOCA 1
|
---|
5619 | _ACEOF
|
---|
5620 |
|
---|
5621 | else
|
---|
5622 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5623 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5624 | # contain a buggy version. If you still want to use their alloca,
|
---|
5625 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5626 |
|
---|
5627 | ALLOCA=alloca.$ac_objext
|
---|
5628 |
|
---|
5629 | cat >>confdefs.h <<\_ACEOF
|
---|
5630 | #define C_ALLOCA 1
|
---|
5631 | _ACEOF
|
---|
5632 |
|
---|
5633 |
|
---|
5634 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5635 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
5636 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
5637 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
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 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
5646 | webecray
|
---|
5647 | #else
|
---|
5648 | wenotbecray
|
---|
5649 | #endif
|
---|
5650 |
|
---|
5651 | _ACEOF
|
---|
5652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5653 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
5654 | ac_cv_os_cray=yes
|
---|
5655 | else
|
---|
5656 | ac_cv_os_cray=no
|
---|
5657 | fi
|
---|
5658 | rm -f conftest*
|
---|
5659 |
|
---|
5660 | fi
|
---|
5661 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
5662 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
5663 | if test $ac_cv_os_cray = yes; then
|
---|
5664 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5666 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5668 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5669 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5670 | else
|
---|
5671 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5672 | /* confdefs.h. */
|
---|
5673 | _ACEOF
|
---|
5674 | cat confdefs.h >>conftest.$ac_ext
|
---|
5675 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5676 | /* end confdefs.h. */
|
---|
5677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5679 | #define $ac_func innocuous_$ac_func
|
---|
5680 |
|
---|
5681 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5682 | which can conflict with char $ac_func (); below.
|
---|
5683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5684 | <limits.h> exists even on freestanding compilers. */
|
---|
5685 |
|
---|
5686 | #ifdef __STDC__
|
---|
5687 | # include <limits.h>
|
---|
5688 | #else
|
---|
5689 | # include <assert.h>
|
---|
5690 | #endif
|
---|
5691 |
|
---|
5692 | #undef $ac_func
|
---|
5693 |
|
---|
5694 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5695 | #ifdef __cplusplus
|
---|
5696 | extern "C"
|
---|
5697 | {
|
---|
5698 | #endif
|
---|
5699 | /* We use char because int might match the return type of a gcc2
|
---|
5700 | builtin and then its argument prototype would still apply. */
|
---|
5701 | char $ac_func ();
|
---|
5702 | /* The GNU C library defines this for functions which it implements
|
---|
5703 | to always fail with ENOSYS. Some functions are actually named
|
---|
5704 | something starting with __ and the normal name is an alias. */
|
---|
5705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5706 | choke me
|
---|
5707 | #else
|
---|
5708 | char (*f) () = $ac_func;
|
---|
5709 | #endif
|
---|
5710 | #ifdef __cplusplus
|
---|
5711 | }
|
---|
5712 | #endif
|
---|
5713 |
|
---|
5714 | int
|
---|
5715 | main ()
|
---|
5716 | {
|
---|
5717 | return f != $ac_func;
|
---|
5718 | ;
|
---|
5719 | return 0;
|
---|
5720 | }
|
---|
5721 | _ACEOF
|
---|
5722 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5724 | (eval $ac_link) 2>conftest.er1
|
---|
5725 | ac_status=$?
|
---|
5726 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5727 | rm -f conftest.er1
|
---|
5728 | cat conftest.err >&5
|
---|
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5730 | (exit $ac_status); } &&
|
---|
5731 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5732 | || test ! -s conftest.err'
|
---|
5733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5734 | (eval $ac_try) 2>&5
|
---|
5735 | ac_status=$?
|
---|
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5737 | (exit $ac_status); }; } &&
|
---|
5738 | { ac_try='test -s conftest$ac_exeext'
|
---|
5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5740 | (eval $ac_try) 2>&5
|
---|
5741 | ac_status=$?
|
---|
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5743 | (exit $ac_status); }; }; then
|
---|
5744 | eval "$as_ac_var=yes"
|
---|
5745 | else
|
---|
5746 | echo "$as_me: failed program was:" >&5
|
---|
5747 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5748 |
|
---|
5749 | eval "$as_ac_var=no"
|
---|
5750 | fi
|
---|
5751 | rm -f conftest.err conftest.$ac_objext \
|
---|
5752 | conftest$ac_exeext conftest.$ac_ext
|
---|
5753 | fi
|
---|
5754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5756 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5757 |
|
---|
5758 | cat >>confdefs.h <<_ACEOF
|
---|
5759 | #define CRAY_STACKSEG_END $ac_func
|
---|
5760 | _ACEOF
|
---|
5761 |
|
---|
5762 | break
|
---|
5763 | fi
|
---|
5764 |
|
---|
5765 | done
|
---|
5766 | fi
|
---|
5767 |
|
---|
5768 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
5769 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
5770 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
5771 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5772 | else
|
---|
5773 | if test "$cross_compiling" = yes; then
|
---|
5774 | ac_cv_c_stack_direction=0
|
---|
5775 | else
|
---|
5776 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5777 | /* confdefs.h. */
|
---|
5778 | _ACEOF
|
---|
5779 | cat confdefs.h >>conftest.$ac_ext
|
---|
5780 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5781 | /* end confdefs.h. */
|
---|
5782 | int
|
---|
5783 | find_stack_direction ()
|
---|
5784 | {
|
---|
5785 | static char *addr = 0;
|
---|
5786 | auto char dummy;
|
---|
5787 | if (addr == 0)
|
---|
5788 | {
|
---|
5789 | addr = &dummy;
|
---|
5790 | return find_stack_direction ();
|
---|
5791 | }
|
---|
5792 | else
|
---|
5793 | return (&dummy > addr) ? 1 : -1;
|
---|
5794 | }
|
---|
5795 |
|
---|
5796 | int
|
---|
5797 | main ()
|
---|
5798 | {
|
---|
5799 | exit (find_stack_direction () < 0);
|
---|
5800 | }
|
---|
5801 | _ACEOF
|
---|
5802 | rm -f conftest$ac_exeext
|
---|
5803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5804 | (eval $ac_link) 2>&5
|
---|
5805 | ac_status=$?
|
---|
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5807 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5809 | (eval $ac_try) 2>&5
|
---|
5810 | ac_status=$?
|
---|
5811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5812 | (exit $ac_status); }; }; then
|
---|
5813 | ac_cv_c_stack_direction=1
|
---|
5814 | else
|
---|
5815 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5816 | echo "$as_me: failed program was:" >&5
|
---|
5817 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5818 |
|
---|
5819 | ( exit $ac_status )
|
---|
5820 | ac_cv_c_stack_direction=-1
|
---|
5821 | fi
|
---|
5822 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5823 | fi
|
---|
5824 | fi
|
---|
5825 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
5826 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
5827 |
|
---|
5828 | cat >>confdefs.h <<_ACEOF
|
---|
5829 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5830 | _ACEOF
|
---|
5831 |
|
---|
5832 |
|
---|
5833 | fi
|
---|
5834 |
|
---|
5835 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5836 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
5837 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
5838 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
5839 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5840 | else
|
---|
5841 | ac_pattern="Autoconf.*'x'"
|
---|
5842 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5843 | /* confdefs.h. */
|
---|
5844 | _ACEOF
|
---|
5845 | cat confdefs.h >>conftest.$ac_ext
|
---|
5846 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5847 | /* end confdefs.h. */
|
---|
5848 | #include <sgtty.h>
|
---|
5849 | Autoconf TIOCGETP
|
---|
5850 | _ACEOF
|
---|
5851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5852 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5853 | ac_cv_prog_gcc_traditional=yes
|
---|
5854 | else
|
---|
5855 | ac_cv_prog_gcc_traditional=no
|
---|
5856 | fi
|
---|
5857 | rm -f conftest*
|
---|
5858 |
|
---|
5859 |
|
---|
5860 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5861 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5862 | /* confdefs.h. */
|
---|
5863 | _ACEOF
|
---|
5864 | cat confdefs.h >>conftest.$ac_ext
|
---|
5865 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5866 | /* end confdefs.h. */
|
---|
5867 | #include <termio.h>
|
---|
5868 | Autoconf TCGETA
|
---|
5869 | _ACEOF
|
---|
5870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5871 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5872 | ac_cv_prog_gcc_traditional=yes
|
---|
5873 | fi
|
---|
5874 | rm -f conftest*
|
---|
5875 |
|
---|
5876 | fi
|
---|
5877 | fi
|
---|
5878 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5879 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
5880 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5881 | CC="$CC -traditional"
|
---|
5882 | fi
|
---|
5883 | fi
|
---|
5884 |
|
---|
5885 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
5886 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
5887 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
5888 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5889 | else
|
---|
5890 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5891 | /* confdefs.h. */
|
---|
5892 | _ACEOF
|
---|
5893 | cat confdefs.h >>conftest.$ac_ext
|
---|
5894 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5895 | /* end confdefs.h. */
|
---|
5896 | #include <sys/types.h>
|
---|
5897 | #include <signal.h>
|
---|
5898 | #ifdef signal
|
---|
5899 | # undef signal
|
---|
5900 | #endif
|
---|
5901 | #ifdef __cplusplus
|
---|
5902 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
5903 | #else
|
---|
5904 | void (*signal ()) ();
|
---|
5905 | #endif
|
---|
5906 |
|
---|
5907 | int
|
---|
5908 | main ()
|
---|
5909 | {
|
---|
5910 | int i;
|
---|
5911 | ;
|
---|
5912 | return 0;
|
---|
5913 | }
|
---|
5914 | _ACEOF
|
---|
5915 | rm -f conftest.$ac_objext
|
---|
5916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5917 | (eval $ac_compile) 2>conftest.er1
|
---|
5918 | ac_status=$?
|
---|
5919 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5920 | rm -f conftest.er1
|
---|
5921 | cat conftest.err >&5
|
---|
5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5923 | (exit $ac_status); } &&
|
---|
5924 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5925 | || test ! -s conftest.err'
|
---|
5926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5927 | (eval $ac_try) 2>&5
|
---|
5928 | ac_status=$?
|
---|
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5930 | (exit $ac_status); }; } &&
|
---|
5931 | { ac_try='test -s conftest.$ac_objext'
|
---|
5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5933 | (eval $ac_try) 2>&5
|
---|
5934 | ac_status=$?
|
---|
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5936 | (exit $ac_status); }; }; then
|
---|
5937 | ac_cv_type_signal=void
|
---|
5938 | else
|
---|
5939 | echo "$as_me: failed program was:" >&5
|
---|
5940 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5941 |
|
---|
5942 | ac_cv_type_signal=int
|
---|
5943 | fi
|
---|
5944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5945 | fi
|
---|
5946 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
5947 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
5948 |
|
---|
5949 | cat >>confdefs.h <<_ACEOF
|
---|
5950 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5951 | _ACEOF
|
---|
5952 |
|
---|
5953 |
|
---|
5954 |
|
---|
5955 | for ac_func in vprintf
|
---|
5956 | do
|
---|
5957 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5958 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5959 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5960 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5961 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5962 | else
|
---|
5963 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5964 | /* confdefs.h. */
|
---|
5965 | _ACEOF
|
---|
5966 | cat confdefs.h >>conftest.$ac_ext
|
---|
5967 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5968 | /* end confdefs.h. */
|
---|
5969 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5971 | #define $ac_func innocuous_$ac_func
|
---|
5972 |
|
---|
5973 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5974 | which can conflict with char $ac_func (); below.
|
---|
5975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5976 | <limits.h> exists even on freestanding compilers. */
|
---|
5977 |
|
---|
5978 | #ifdef __STDC__
|
---|
5979 | # include <limits.h>
|
---|
5980 | #else
|
---|
5981 | # include <assert.h>
|
---|
5982 | #endif
|
---|
5983 |
|
---|
5984 | #undef $ac_func
|
---|
5985 |
|
---|
5986 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5987 | #ifdef __cplusplus
|
---|
5988 | extern "C"
|
---|
5989 | {
|
---|
5990 | #endif
|
---|
5991 | /* We use char because int might match the return type of a gcc2
|
---|
5992 | builtin and then its argument prototype would still apply. */
|
---|
5993 | char $ac_func ();
|
---|
5994 | /* The GNU C library defines this for functions which it implements
|
---|
5995 | to always fail with ENOSYS. Some functions are actually named
|
---|
5996 | something starting with __ and the normal name is an alias. */
|
---|
5997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5998 | choke me
|
---|
5999 | #else
|
---|
6000 | char (*f) () = $ac_func;
|
---|
6001 | #endif
|
---|
6002 | #ifdef __cplusplus
|
---|
6003 | }
|
---|
6004 | #endif
|
---|
6005 |
|
---|
6006 | int
|
---|
6007 | main ()
|
---|
6008 | {
|
---|
6009 | return f != $ac_func;
|
---|
6010 | ;
|
---|
6011 | return 0;
|
---|
6012 | }
|
---|
6013 | _ACEOF
|
---|
6014 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6016 | (eval $ac_link) 2>conftest.er1
|
---|
6017 | ac_status=$?
|
---|
6018 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6019 | rm -f conftest.er1
|
---|
6020 | cat conftest.err >&5
|
---|
6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6022 | (exit $ac_status); } &&
|
---|
6023 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6024 | || test ! -s conftest.err'
|
---|
6025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6026 | (eval $ac_try) 2>&5
|
---|
6027 | ac_status=$?
|
---|
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6029 | (exit $ac_status); }; } &&
|
---|
6030 | { ac_try='test -s conftest$ac_exeext'
|
---|
6031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6032 | (eval $ac_try) 2>&5
|
---|
6033 | ac_status=$?
|
---|
6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6035 | (exit $ac_status); }; }; then
|
---|
6036 | eval "$as_ac_var=yes"
|
---|
6037 | else
|
---|
6038 | echo "$as_me: failed program was:" >&5
|
---|
6039 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6040 |
|
---|
6041 | eval "$as_ac_var=no"
|
---|
6042 | fi
|
---|
6043 | rm -f conftest.err conftest.$ac_objext \
|
---|
6044 | conftest$ac_exeext conftest.$ac_ext
|
---|
6045 | fi
|
---|
6046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6047 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6048 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6049 | cat >>confdefs.h <<_ACEOF
|
---|
6050 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6051 | _ACEOF
|
---|
6052 |
|
---|
6053 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
6054 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
6055 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
6056 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6057 | else
|
---|
6058 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6059 | /* confdefs.h. */
|
---|
6060 | _ACEOF
|
---|
6061 | cat confdefs.h >>conftest.$ac_ext
|
---|
6062 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6063 | /* end confdefs.h. */
|
---|
6064 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
6065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6066 | #define _doprnt innocuous__doprnt
|
---|
6067 |
|
---|
6068 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6069 | which can conflict with char _doprnt (); below.
|
---|
6070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6071 | <limits.h> exists even on freestanding compilers. */
|
---|
6072 |
|
---|
6073 | #ifdef __STDC__
|
---|
6074 | # include <limits.h>
|
---|
6075 | #else
|
---|
6076 | # include <assert.h>
|
---|
6077 | #endif
|
---|
6078 |
|
---|
6079 | #undef _doprnt
|
---|
6080 |
|
---|
6081 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6082 | #ifdef __cplusplus
|
---|
6083 | extern "C"
|
---|
6084 | {
|
---|
6085 | #endif
|
---|
6086 | /* We use char because int might match the return type of a gcc2
|
---|
6087 | builtin and then its argument prototype would still apply. */
|
---|
6088 | char _doprnt ();
|
---|
6089 | /* The GNU C library defines this for functions which it implements
|
---|
6090 | to always fail with ENOSYS. Some functions are actually named
|
---|
6091 | something starting with __ and the normal name is an alias. */
|
---|
6092 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
6093 | choke me
|
---|
6094 | #else
|
---|
6095 | char (*f) () = _doprnt;
|
---|
6096 | #endif
|
---|
6097 | #ifdef __cplusplus
|
---|
6098 | }
|
---|
6099 | #endif
|
---|
6100 |
|
---|
6101 | int
|
---|
6102 | main ()
|
---|
6103 | {
|
---|
6104 | return f != _doprnt;
|
---|
6105 | ;
|
---|
6106 | return 0;
|
---|
6107 | }
|
---|
6108 | _ACEOF
|
---|
6109 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6111 | (eval $ac_link) 2>conftest.er1
|
---|
6112 | ac_status=$?
|
---|
6113 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6114 | rm -f conftest.er1
|
---|
6115 | cat conftest.err >&5
|
---|
6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6117 | (exit $ac_status); } &&
|
---|
6118 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6119 | || test ! -s conftest.err'
|
---|
6120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6121 | (eval $ac_try) 2>&5
|
---|
6122 | ac_status=$?
|
---|
6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6124 | (exit $ac_status); }; } &&
|
---|
6125 | { ac_try='test -s conftest$ac_exeext'
|
---|
6126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6127 | (eval $ac_try) 2>&5
|
---|
6128 | ac_status=$?
|
---|
6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6130 | (exit $ac_status); }; }; then
|
---|
6131 | ac_cv_func__doprnt=yes
|
---|
6132 | else
|
---|
6133 | echo "$as_me: failed program was:" >&5
|
---|
6134 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6135 |
|
---|
6136 | ac_cv_func__doprnt=no
|
---|
6137 | fi
|
---|
6138 | rm -f conftest.err conftest.$ac_objext \
|
---|
6139 | conftest$ac_exeext conftest.$ac_ext
|
---|
6140 | fi
|
---|
6141 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6142 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
6143 | if test $ac_cv_func__doprnt = yes; then
|
---|
6144 |
|
---|
6145 | cat >>confdefs.h <<\_ACEOF
|
---|
6146 | #define HAVE_DOPRNT 1
|
---|
6147 | _ACEOF
|
---|
6148 |
|
---|
6149 | fi
|
---|
6150 |
|
---|
6151 | fi
|
---|
6152 | done
|
---|
6153 |
|
---|
6154 |
|
---|
6155 |
|
---|
6156 |
|
---|
6157 |
|
---|
6158 |
|
---|
6159 |
|
---|
6160 |
|
---|
6161 |
|
---|
6162 |
|
---|
6163 |
|
---|
6164 |
|
---|
6165 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6166 | do
|
---|
6167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6168 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6170 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6171 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6172 | else
|
---|
6173 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6174 | /* confdefs.h. */
|
---|
6175 | _ACEOF
|
---|
6176 | cat confdefs.h >>conftest.$ac_ext
|
---|
6177 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6178 | /* end confdefs.h. */
|
---|
6179 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6180 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6181 | #define $ac_func innocuous_$ac_func
|
---|
6182 |
|
---|
6183 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6184 | which can conflict with char $ac_func (); below.
|
---|
6185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6186 | <limits.h> exists even on freestanding compilers. */
|
---|
6187 |
|
---|
6188 | #ifdef __STDC__
|
---|
6189 | # include <limits.h>
|
---|
6190 | #else
|
---|
6191 | # include <assert.h>
|
---|
6192 | #endif
|
---|
6193 |
|
---|
6194 | #undef $ac_func
|
---|
6195 |
|
---|
6196 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6197 | #ifdef __cplusplus
|
---|
6198 | extern "C"
|
---|
6199 | {
|
---|
6200 | #endif
|
---|
6201 | /* We use char because int might match the return type of a gcc2
|
---|
6202 | builtin and then its argument prototype would still apply. */
|
---|
6203 | char $ac_func ();
|
---|
6204 | /* The GNU C library defines this for functions which it implements
|
---|
6205 | to always fail with ENOSYS. Some functions are actually named
|
---|
6206 | something starting with __ and the normal name is an alias. */
|
---|
6207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6208 | choke me
|
---|
6209 | #else
|
---|
6210 | char (*f) () = $ac_func;
|
---|
6211 | #endif
|
---|
6212 | #ifdef __cplusplus
|
---|
6213 | }
|
---|
6214 | #endif
|
---|
6215 |
|
---|
6216 | int
|
---|
6217 | main ()
|
---|
6218 | {
|
---|
6219 | return f != $ac_func;
|
---|
6220 | ;
|
---|
6221 | return 0;
|
---|
6222 | }
|
---|
6223 | _ACEOF
|
---|
6224 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6226 | (eval $ac_link) 2>conftest.er1
|
---|
6227 | ac_status=$?
|
---|
6228 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6229 | rm -f conftest.er1
|
---|
6230 | cat conftest.err >&5
|
---|
6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6232 | (exit $ac_status); } &&
|
---|
6233 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6234 | || test ! -s conftest.err'
|
---|
6235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6236 | (eval $ac_try) 2>&5
|
---|
6237 | ac_status=$?
|
---|
6238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6239 | (exit $ac_status); }; } &&
|
---|
6240 | { ac_try='test -s conftest$ac_exeext'
|
---|
6241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6242 | (eval $ac_try) 2>&5
|
---|
6243 | ac_status=$?
|
---|
6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6245 | (exit $ac_status); }; }; then
|
---|
6246 | eval "$as_ac_var=yes"
|
---|
6247 | else
|
---|
6248 | echo "$as_me: failed program was:" >&5
|
---|
6249 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6250 |
|
---|
6251 | eval "$as_ac_var=no"
|
---|
6252 | fi
|
---|
6253 | rm -f conftest.err conftest.$ac_objext \
|
---|
6254 | conftest$ac_exeext conftest.$ac_ext
|
---|
6255 | fi
|
---|
6256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6257 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6258 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6259 | cat >>confdefs.h <<_ACEOF
|
---|
6260 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6261 | _ACEOF
|
---|
6262 |
|
---|
6263 | fi
|
---|
6264 | done
|
---|
6265 |
|
---|
6266 |
|
---|
6267 |
|
---|
6268 |
|
---|
6269 | for ac_func in ftruncate strstr strcasecmp
|
---|
6270 | do
|
---|
6271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6272 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6274 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6275 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6276 | else
|
---|
6277 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6278 | /* confdefs.h. */
|
---|
6279 | _ACEOF
|
---|
6280 | cat confdefs.h >>conftest.$ac_ext
|
---|
6281 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6282 | /* end confdefs.h. */
|
---|
6283 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6284 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6285 | #define $ac_func innocuous_$ac_func
|
---|
6286 |
|
---|
6287 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6288 | which can conflict with char $ac_func (); below.
|
---|
6289 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6290 | <limits.h> exists even on freestanding compilers. */
|
---|
6291 |
|
---|
6292 | #ifdef __STDC__
|
---|
6293 | # include <limits.h>
|
---|
6294 | #else
|
---|
6295 | # include <assert.h>
|
---|
6296 | #endif
|
---|
6297 |
|
---|
6298 | #undef $ac_func
|
---|
6299 |
|
---|
6300 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6301 | #ifdef __cplusplus
|
---|
6302 | extern "C"
|
---|
6303 | {
|
---|
6304 | #endif
|
---|
6305 | /* We use char because int might match the return type of a gcc2
|
---|
6306 | builtin and then its argument prototype would still apply. */
|
---|
6307 | char $ac_func ();
|
---|
6308 | /* The GNU C library defines this for functions which it implements
|
---|
6309 | to always fail with ENOSYS. Some functions are actually named
|
---|
6310 | something starting with __ and the normal name is an alias. */
|
---|
6311 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6312 | choke me
|
---|
6313 | #else
|
---|
6314 | char (*f) () = $ac_func;
|
---|
6315 | #endif
|
---|
6316 | #ifdef __cplusplus
|
---|
6317 | }
|
---|
6318 | #endif
|
---|
6319 |
|
---|
6320 | int
|
---|
6321 | main ()
|
---|
6322 | {
|
---|
6323 | return f != $ac_func;
|
---|
6324 | ;
|
---|
6325 | return 0;
|
---|
6326 | }
|
---|
6327 | _ACEOF
|
---|
6328 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6330 | (eval $ac_link) 2>conftest.er1
|
---|
6331 | ac_status=$?
|
---|
6332 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6333 | rm -f conftest.er1
|
---|
6334 | cat conftest.err >&5
|
---|
6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6336 | (exit $ac_status); } &&
|
---|
6337 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6338 | || test ! -s conftest.err'
|
---|
6339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6340 | (eval $ac_try) 2>&5
|
---|
6341 | ac_status=$?
|
---|
6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6343 | (exit $ac_status); }; } &&
|
---|
6344 | { ac_try='test -s conftest$ac_exeext'
|
---|
6345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6346 | (eval $ac_try) 2>&5
|
---|
6347 | ac_status=$?
|
---|
6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6349 | (exit $ac_status); }; }; then
|
---|
6350 | eval "$as_ac_var=yes"
|
---|
6351 | else
|
---|
6352 | echo "$as_me: failed program was:" >&5
|
---|
6353 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6354 |
|
---|
6355 | eval "$as_ac_var=no"
|
---|
6356 | fi
|
---|
6357 | rm -f conftest.err conftest.$ac_objext \
|
---|
6358 | conftest$ac_exeext conftest.$ac_ext
|
---|
6359 | fi
|
---|
6360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6361 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6362 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6363 | cat >>confdefs.h <<_ACEOF
|
---|
6364 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6365 | _ACEOF
|
---|
6366 |
|
---|
6367 | else
|
---|
6368 | case $LIBOBJS in
|
---|
6369 | "$ac_func.$ac_objext" | \
|
---|
6370 | *" $ac_func.$ac_objext" | \
|
---|
6371 | "$ac_func.$ac_objext "* | \
|
---|
6372 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6373 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
6374 | esac
|
---|
6375 |
|
---|
6376 | fi
|
---|
6377 | done
|
---|
6378 |
|
---|
6379 |
|
---|
6380 |
|
---|
6381 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
6382 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
6383 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
6384 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6385 | else
|
---|
6386 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6387 | /* confdefs.h. */
|
---|
6388 | _ACEOF
|
---|
6389 | cat confdefs.h >>conftest.$ac_ext
|
---|
6390 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6391 | /* end confdefs.h. */
|
---|
6392 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
6393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6394 | #define textdomain innocuous_textdomain
|
---|
6395 |
|
---|
6396 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6397 | which can conflict with char textdomain (); below.
|
---|
6398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6399 | <limits.h> exists even on freestanding compilers. */
|
---|
6400 |
|
---|
6401 | #ifdef __STDC__
|
---|
6402 | # include <limits.h>
|
---|
6403 | #else
|
---|
6404 | # include <assert.h>
|
---|
6405 | #endif
|
---|
6406 |
|
---|
6407 | #undef textdomain
|
---|
6408 |
|
---|
6409 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6410 | #ifdef __cplusplus
|
---|
6411 | extern "C"
|
---|
6412 | {
|
---|
6413 | #endif
|
---|
6414 | /* We use char because int might match the return type of a gcc2
|
---|
6415 | builtin and then its argument prototype would still apply. */
|
---|
6416 | char textdomain ();
|
---|
6417 | /* The GNU C library defines this for functions which it implements
|
---|
6418 | to always fail with ENOSYS. Some functions are actually named
|
---|
6419 | something starting with __ and the normal name is an alias. */
|
---|
6420 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
6421 | choke me
|
---|
6422 | #else
|
---|
6423 | char (*f) () = textdomain;
|
---|
6424 | #endif
|
---|
6425 | #ifdef __cplusplus
|
---|
6426 | }
|
---|
6427 | #endif
|
---|
6428 |
|
---|
6429 | int
|
---|
6430 | main ()
|
---|
6431 | {
|
---|
6432 | return f != textdomain;
|
---|
6433 | ;
|
---|
6434 | return 0;
|
---|
6435 | }
|
---|
6436 | _ACEOF
|
---|
6437 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6439 | (eval $ac_link) 2>conftest.er1
|
---|
6440 | ac_status=$?
|
---|
6441 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6442 | rm -f conftest.er1
|
---|
6443 | cat conftest.err >&5
|
---|
6444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6445 | (exit $ac_status); } &&
|
---|
6446 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6447 | || test ! -s conftest.err'
|
---|
6448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6449 | (eval $ac_try) 2>&5
|
---|
6450 | ac_status=$?
|
---|
6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6452 | (exit $ac_status); }; } &&
|
---|
6453 | { ac_try='test -s conftest$ac_exeext'
|
---|
6454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6455 | (eval $ac_try) 2>&5
|
---|
6456 | ac_status=$?
|
---|
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6458 | (exit $ac_status); }; }; then
|
---|
6459 | ac_cv_func_textdomain=yes
|
---|
6460 | else
|
---|
6461 | echo "$as_me: failed program was:" >&5
|
---|
6462 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6463 |
|
---|
6464 | ac_cv_func_textdomain=no
|
---|
6465 | fi
|
---|
6466 | rm -f conftest.err conftest.$ac_objext \
|
---|
6467 | conftest$ac_exeext conftest.$ac_ext
|
---|
6468 | fi
|
---|
6469 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
6470 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
6471 | if test $ac_cv_func_textdomain = yes; then
|
---|
6472 | cat >>confdefs.h <<\_ACEOF
|
---|
6473 | #define ENABLE_NLS 1
|
---|
6474 | _ACEOF
|
---|
6475 |
|
---|
6476 | fi
|
---|
6477 |
|
---|
6478 |
|
---|
6479 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6480 | # ---------------------------------------------------------------------------
|
---|
6481 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
6482 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
6483 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6484 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6485 | echo "${ECHO_T}yes" >&6
|
---|
6486 | case $LIBOBJS in
|
---|
6487 | "gmalloc.$ac_objext" | \
|
---|
6488 | *" gmalloc.$ac_objext" | \
|
---|
6489 | "gmalloc.$ac_objext "* | \
|
---|
6490 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6491 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
6492 | esac
|
---|
6493 |
|
---|
6494 | cat >>confdefs.h <<\_ACEOF
|
---|
6495 | #define HAVE_VALLOC 1
|
---|
6496 | _ACEOF
|
---|
6497 |
|
---|
6498 | else
|
---|
6499 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6500 | echo "${ECHO_T}no" >&6
|
---|
6501 |
|
---|
6502 | for ac_func in valloc
|
---|
6503 | do
|
---|
6504 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6505 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6506 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6507 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6508 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6509 | else
|
---|
6510 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6511 | /* confdefs.h. */
|
---|
6512 | _ACEOF
|
---|
6513 | cat confdefs.h >>conftest.$ac_ext
|
---|
6514 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6515 | /* end confdefs.h. */
|
---|
6516 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6517 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6518 | #define $ac_func innocuous_$ac_func
|
---|
6519 |
|
---|
6520 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6521 | which can conflict with char $ac_func (); below.
|
---|
6522 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6523 | <limits.h> exists even on freestanding compilers. */
|
---|
6524 |
|
---|
6525 | #ifdef __STDC__
|
---|
6526 | # include <limits.h>
|
---|
6527 | #else
|
---|
6528 | # include <assert.h>
|
---|
6529 | #endif
|
---|
6530 |
|
---|
6531 | #undef $ac_func
|
---|
6532 |
|
---|
6533 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6534 | #ifdef __cplusplus
|
---|
6535 | extern "C"
|
---|
6536 | {
|
---|
6537 | #endif
|
---|
6538 | /* We use char because int might match the return type of a gcc2
|
---|
6539 | builtin and then its argument prototype would still apply. */
|
---|
6540 | char $ac_func ();
|
---|
6541 | /* The GNU C library defines this for functions which it implements
|
---|
6542 | to always fail with ENOSYS. Some functions are actually named
|
---|
6543 | something starting with __ and the normal name is an alias. */
|
---|
6544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6545 | choke me
|
---|
6546 | #else
|
---|
6547 | char (*f) () = $ac_func;
|
---|
6548 | #endif
|
---|
6549 | #ifdef __cplusplus
|
---|
6550 | }
|
---|
6551 | #endif
|
---|
6552 |
|
---|
6553 | int
|
---|
6554 | main ()
|
---|
6555 | {
|
---|
6556 | return f != $ac_func;
|
---|
6557 | ;
|
---|
6558 | return 0;
|
---|
6559 | }
|
---|
6560 | _ACEOF
|
---|
6561 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6563 | (eval $ac_link) 2>conftest.er1
|
---|
6564 | ac_status=$?
|
---|
6565 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6566 | rm -f conftest.er1
|
---|
6567 | cat conftest.err >&5
|
---|
6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6569 | (exit $ac_status); } &&
|
---|
6570 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6571 | || test ! -s conftest.err'
|
---|
6572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6573 | (eval $ac_try) 2>&5
|
---|
6574 | ac_status=$?
|
---|
6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6576 | (exit $ac_status); }; } &&
|
---|
6577 | { ac_try='test -s conftest$ac_exeext'
|
---|
6578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6579 | (eval $ac_try) 2>&5
|
---|
6580 | ac_status=$?
|
---|
6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6582 | (exit $ac_status); }; }; then
|
---|
6583 | eval "$as_ac_var=yes"
|
---|
6584 | else
|
---|
6585 | echo "$as_me: failed program was:" >&5
|
---|
6586 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6587 |
|
---|
6588 | eval "$as_ac_var=no"
|
---|
6589 | fi
|
---|
6590 | rm -f conftest.err conftest.$ac_objext \
|
---|
6591 | conftest$ac_exeext conftest.$ac_ext
|
---|
6592 | fi
|
---|
6593 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6594 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6595 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6596 | cat >>confdefs.h <<_ACEOF
|
---|
6597 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6598 | _ACEOF
|
---|
6599 |
|
---|
6600 | fi
|
---|
6601 | done
|
---|
6602 |
|
---|
6603 | fi
|
---|
6604 |
|
---|
6605 | # we cannot generate static libraries under Darwin
|
---|
6606 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
6607 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
6608 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6609 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6610 | echo "${ECHO_T}yes" >&6
|
---|
6611 | STATIC=""
|
---|
6612 | else
|
---|
6613 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6614 | echo "${ECHO_T}no" >&6
|
---|
6615 | STATIC="-static "
|
---|
6616 | fi
|
---|
6617 |
|
---|
6618 |
|
---|
6619 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
6620 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
6621 |
|
---|
6622 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
6623 | if test "${with_dmalloc+set}" = set; then
|
---|
6624 | withval="$with_dmalloc"
|
---|
6625 | if test "$withval" = yes; then
|
---|
6626 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6627 | echo "${ECHO_T}yes" >&6
|
---|
6628 | cat >>confdefs.h <<\_ACEOF
|
---|
6629 | #define WITH_DMALLOC 1
|
---|
6630 | _ACEOF
|
---|
6631 |
|
---|
6632 | LIBS="$LIBS -ldmalloc"
|
---|
6633 | LDFLAGS="$LDFLAGS -g"
|
---|
6634 | else
|
---|
6635 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6636 | echo "${ECHO_T}no" >&6
|
---|
6637 | fi
|
---|
6638 | else
|
---|
6639 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6640 | echo "${ECHO_T}no" >&6
|
---|
6641 | fi;
|
---|
6642 |
|
---|
6643 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
6644 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
6645 |
|
---|
6646 | # Check whether --with-regex or --without-regex was given.
|
---|
6647 | if test "${with_regex+set}" = set; then
|
---|
6648 | withval="$with_regex"
|
---|
6649 | if test "$withval" = yes; then
|
---|
6650 | ac_with_regex=1
|
---|
6651 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
6652 | echo "${ECHO_T}regex" >&6
|
---|
6653 | cat >>confdefs.h <<\_ACEOF
|
---|
6654 | #define WITH_REGEX 1
|
---|
6655 | _ACEOF
|
---|
6656 |
|
---|
6657 | case $LIBOBJS in
|
---|
6658 | "regex.$ac_objext" | \
|
---|
6659 | *" regex.$ac_objext" | \
|
---|
6660 | "regex.$ac_objext "* | \
|
---|
6661 | *" regex.$ac_objext "* ) ;;
|
---|
6662 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
6663 | esac
|
---|
6664 |
|
---|
6665 | fi
|
---|
6666 | fi;
|
---|
6667 | if test -z "$ac_with_regex"; then
|
---|
6668 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
6669 | echo "${ECHO_T}rx" >&6
|
---|
6670 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
6671 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
6672 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
6673 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6674 | else
|
---|
6675 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6676 | /* confdefs.h. */
|
---|
6677 | _ACEOF
|
---|
6678 | cat confdefs.h >>conftest.$ac_ext
|
---|
6679 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6680 | /* end confdefs.h. */
|
---|
6681 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
6682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6683 | #define re_rx_search innocuous_re_rx_search
|
---|
6684 |
|
---|
6685 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6686 | which can conflict with char re_rx_search (); below.
|
---|
6687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6688 | <limits.h> exists even on freestanding compilers. */
|
---|
6689 |
|
---|
6690 | #ifdef __STDC__
|
---|
6691 | # include <limits.h>
|
---|
6692 | #else
|
---|
6693 | # include <assert.h>
|
---|
6694 | #endif
|
---|
6695 |
|
---|
6696 | #undef re_rx_search
|
---|
6697 |
|
---|
6698 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6699 | #ifdef __cplusplus
|
---|
6700 | extern "C"
|
---|
6701 | {
|
---|
6702 | #endif
|
---|
6703 | /* We use char because int might match the return type of a gcc2
|
---|
6704 | builtin and then its argument prototype would still apply. */
|
---|
6705 | char re_rx_search ();
|
---|
6706 | /* The GNU C library defines this for functions which it implements
|
---|
6707 | to always fail with ENOSYS. Some functions are actually named
|
---|
6708 | something starting with __ and the normal name is an alias. */
|
---|
6709 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
6710 | choke me
|
---|
6711 | #else
|
---|
6712 | char (*f) () = re_rx_search;
|
---|
6713 | #endif
|
---|
6714 | #ifdef __cplusplus
|
---|
6715 | }
|
---|
6716 | #endif
|
---|
6717 |
|
---|
6718 | int
|
---|
6719 | main ()
|
---|
6720 | {
|
---|
6721 | return f != re_rx_search;
|
---|
6722 | ;
|
---|
6723 | return 0;
|
---|
6724 | }
|
---|
6725 | _ACEOF
|
---|
6726 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6728 | (eval $ac_link) 2>conftest.er1
|
---|
6729 | ac_status=$?
|
---|
6730 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6731 | rm -f conftest.er1
|
---|
6732 | cat conftest.err >&5
|
---|
6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6734 | (exit $ac_status); } &&
|
---|
6735 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6736 | || test ! -s conftest.err'
|
---|
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); }; } &&
|
---|
6742 | { ac_try='test -s conftest$ac_exeext'
|
---|
6743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6744 | (eval $ac_try) 2>&5
|
---|
6745 | ac_status=$?
|
---|
6746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6747 | (exit $ac_status); }; }; then
|
---|
6748 | ac_cv_func_re_rx_search=yes
|
---|
6749 | else
|
---|
6750 | echo "$as_me: failed program was:" >&5
|
---|
6751 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6752 |
|
---|
6753 | ac_cv_func_re_rx_search=no
|
---|
6754 | fi
|
---|
6755 | rm -f conftest.err conftest.$ac_objext \
|
---|
6756 | conftest$ac_exeext conftest.$ac_ext
|
---|
6757 | fi
|
---|
6758 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
6759 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
6760 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
6761 | :
|
---|
6762 | else
|
---|
6763 | case $LIBOBJS in
|
---|
6764 | "rx.$ac_objext" | \
|
---|
6765 | *" rx.$ac_objext" | \
|
---|
6766 | "rx.$ac_objext "* | \
|
---|
6767 | *" rx.$ac_objext "* ) ;;
|
---|
6768 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
6769 | esac
|
---|
6770 |
|
---|
6771 | fi
|
---|
6772 |
|
---|
6773 | fi
|
---|
6774 |
|
---|
6775 |
|
---|
6776 | # ---------------------------------------------------------------------------
|
---|
6777 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6778 | case $LIBOBJS in
|
---|
6779 | "xmalloc.$ac_objext" | \
|
---|
6780 | *" xmalloc.$ac_objext" | \
|
---|
6781 | "xmalloc.$ac_objext "* | \
|
---|
6782 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6783 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
6784 | esac
|
---|
6785 |
|
---|
6786 | case $LIBOBJS in
|
---|
6787 | "error.$ac_objext" | \
|
---|
6788 | *" error.$ac_objext" | \
|
---|
6789 | "error.$ac_objext "* | \
|
---|
6790 | *" error.$ac_objext "* ) ;;
|
---|
6791 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
6792 | esac
|
---|
6793 |
|
---|
6794 | fi
|
---|
6795 |
|
---|
6796 |
|
---|
6797 | # ---------------------------------------------------------------------------
|
---|
6798 |
|
---|
6799 | ac_ext=cc
|
---|
6800 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6804 |
|
---|
6805 |
|
---|
6806 | success=no
|
---|
6807 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
6808 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
6809 |
|
---|
6810 |
|
---|
6811 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6812 | /* confdefs.h. */
|
---|
6813 | _ACEOF
|
---|
6814 | cat confdefs.h >>conftest.$ac_ext
|
---|
6815 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6816 | /* end confdefs.h. */
|
---|
6817 | #include <vector>
|
---|
6818 |
|
---|
6819 | int
|
---|
6820 | main ()
|
---|
6821 | {
|
---|
6822 |
|
---|
6823 | ;
|
---|
6824 | return 0;
|
---|
6825 | }
|
---|
6826 | _ACEOF
|
---|
6827 | rm -f conftest.$ac_objext
|
---|
6828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6829 | (eval $ac_compile) 2>conftest.er1
|
---|
6830 | ac_status=$?
|
---|
6831 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6832 | rm -f conftest.er1
|
---|
6833 | cat conftest.err >&5
|
---|
6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6835 | (exit $ac_status); } &&
|
---|
6836 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6837 | || test ! -s conftest.err'
|
---|
6838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6839 | (eval $ac_try) 2>&5
|
---|
6840 | ac_status=$?
|
---|
6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6842 | (exit $ac_status); }; } &&
|
---|
6843 | { ac_try='test -s conftest.$ac_objext'
|
---|
6844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6845 | (eval $ac_try) 2>&5
|
---|
6846 | ac_status=$?
|
---|
6847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6848 | (exit $ac_status); }; }; then
|
---|
6849 | success=yes
|
---|
6850 | else
|
---|
6851 | echo "$as_me: failed program was:" >&5
|
---|
6852 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6853 |
|
---|
6854 | fi
|
---|
6855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6856 |
|
---|
6857 | if test $success = "no"; then
|
---|
6858 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6859 | /* confdefs.h. */
|
---|
6860 | _ACEOF
|
---|
6861 | cat confdefs.h >>conftest.$ac_ext
|
---|
6862 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6863 | /* end confdefs.h. */
|
---|
6864 | #include <vector.h>
|
---|
6865 |
|
---|
6866 | int
|
---|
6867 | main ()
|
---|
6868 | {
|
---|
6869 |
|
---|
6870 | ;
|
---|
6871 | return 0;
|
---|
6872 | }
|
---|
6873 | _ACEOF
|
---|
6874 | rm -f conftest.$ac_objext
|
---|
6875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6876 | (eval $ac_compile) 2>conftest.er1
|
---|
6877 | ac_status=$?
|
---|
6878 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6879 | rm -f conftest.er1
|
---|
6880 | cat conftest.err >&5
|
---|
6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6882 | (exit $ac_status); } &&
|
---|
6883 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6884 | || test ! -s conftest.err'
|
---|
6885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6886 | (eval $ac_try) 2>&5
|
---|
6887 | ac_status=$?
|
---|
6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6889 | (exit $ac_status); }; } &&
|
---|
6890 | { ac_try='test -s conftest.$ac_objext'
|
---|
6891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6892 | (eval $ac_try) 2>&5
|
---|
6893 | ac_status=$?
|
---|
6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6895 | (exit $ac_status); }; }; then
|
---|
6896 | success="yes"
|
---|
6897 | else
|
---|
6898 | echo "$as_me: failed program was:" >&5
|
---|
6899 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6900 |
|
---|
6901 | fi
|
---|
6902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6903 | fi
|
---|
6904 |
|
---|
6905 | if test $success = "no"; then
|
---|
6906 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6907 | /* confdefs.h. */
|
---|
6908 | _ACEOF
|
---|
6909 | cat confdefs.h >>conftest.$ac_ext
|
---|
6910 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6911 | /* end confdefs.h. */
|
---|
6912 | #include <ospace\\std\\vector>
|
---|
6913 |
|
---|
6914 | int
|
---|
6915 | main ()
|
---|
6916 | {
|
---|
6917 |
|
---|
6918 | ;
|
---|
6919 | return 0;
|
---|
6920 | }
|
---|
6921 | _ACEOF
|
---|
6922 | rm -f conftest.$ac_objext
|
---|
6923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6924 | (eval $ac_compile) 2>conftest.er1
|
---|
6925 | ac_status=$?
|
---|
6926 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6927 | rm -f conftest.er1
|
---|
6928 | cat conftest.err >&5
|
---|
6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6930 | (exit $ac_status); } &&
|
---|
6931 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6932 | || test ! -s conftest.err'
|
---|
6933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6934 | (eval $ac_try) 2>&5
|
---|
6935 | ac_status=$?
|
---|
6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6937 | (exit $ac_status); }; } &&
|
---|
6938 | { ac_try='test -s conftest.$ac_objext'
|
---|
6939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6940 | (eval $ac_try) 2>&5
|
---|
6941 | ac_status=$?
|
---|
6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6943 | (exit $ac_status); }; }; then
|
---|
6944 | success="yes"
|
---|
6945 | else
|
---|
6946 | echo "$as_me: failed program was:" >&5
|
---|
6947 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6948 |
|
---|
6949 | fi
|
---|
6950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6951 | fi
|
---|
6952 |
|
---|
6953 | if test $success = yes; then
|
---|
6954 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
6955 | echo "${ECHO_T}\"no\"" >&6
|
---|
6956 | else
|
---|
6957 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
6958 | echo "${ECHO_T}\"yes\"" >&6
|
---|
6959 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
6960 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
6961 | { (exit 1); exit 1; }; }
|
---|
6962 | fi
|
---|
6963 |
|
---|
6964 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
6965 | # check for running bash under cygwin
|
---|
6966 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
6967 | then
|
---|
6968 | gsdlos=windows
|
---|
6969 | fi
|
---|
6970 |
|
---|
6971 |
|
---|
6972 | # check for endianness
|
---|
6973 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
6974 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
6975 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
6976 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6977 | else
|
---|
6978 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6979 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6980 | /* confdefs.h. */
|
---|
6981 | _ACEOF
|
---|
6982 | cat confdefs.h >>conftest.$ac_ext
|
---|
6983 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6984 | /* end confdefs.h. */
|
---|
6985 | #include <sys/types.h>
|
---|
6986 | #include <sys/param.h>
|
---|
6987 |
|
---|
6988 | int
|
---|
6989 | main ()
|
---|
6990 | {
|
---|
6991 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
6992 | bogus endian macros
|
---|
6993 | #endif
|
---|
6994 |
|
---|
6995 | ;
|
---|
6996 | return 0;
|
---|
6997 | }
|
---|
6998 | _ACEOF
|
---|
6999 | rm -f conftest.$ac_objext
|
---|
7000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7001 | (eval $ac_compile) 2>conftest.er1
|
---|
7002 | ac_status=$?
|
---|
7003 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7004 | rm -f conftest.er1
|
---|
7005 | cat conftest.err >&5
|
---|
7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7007 | (exit $ac_status); } &&
|
---|
7008 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7009 | || test ! -s conftest.err'
|
---|
7010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7011 | (eval $ac_try) 2>&5
|
---|
7012 | ac_status=$?
|
---|
7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7014 | (exit $ac_status); }; } &&
|
---|
7015 | { ac_try='test -s conftest.$ac_objext'
|
---|
7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7017 | (eval $ac_try) 2>&5
|
---|
7018 | ac_status=$?
|
---|
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7020 | (exit $ac_status); }; }; then
|
---|
7021 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
7022 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7023 | /* confdefs.h. */
|
---|
7024 | _ACEOF
|
---|
7025 | cat confdefs.h >>conftest.$ac_ext
|
---|
7026 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7027 | /* end confdefs.h. */
|
---|
7028 | #include <sys/types.h>
|
---|
7029 | #include <sys/param.h>
|
---|
7030 |
|
---|
7031 | int
|
---|
7032 | main ()
|
---|
7033 | {
|
---|
7034 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
7035 | not big endian
|
---|
7036 | #endif
|
---|
7037 |
|
---|
7038 | ;
|
---|
7039 | return 0;
|
---|
7040 | }
|
---|
7041 | _ACEOF
|
---|
7042 | rm -f conftest.$ac_objext
|
---|
7043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7044 | (eval $ac_compile) 2>conftest.er1
|
---|
7045 | ac_status=$?
|
---|
7046 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7047 | rm -f conftest.er1
|
---|
7048 | cat conftest.err >&5
|
---|
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7050 | (exit $ac_status); } &&
|
---|
7051 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7052 | || test ! -s conftest.err'
|
---|
7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7054 | (eval $ac_try) 2>&5
|
---|
7055 | ac_status=$?
|
---|
7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7057 | (exit $ac_status); }; } &&
|
---|
7058 | { ac_try='test -s conftest.$ac_objext'
|
---|
7059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7060 | (eval $ac_try) 2>&5
|
---|
7061 | ac_status=$?
|
---|
7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7063 | (exit $ac_status); }; }; then
|
---|
7064 | ac_cv_c_bigendian=yes
|
---|
7065 | else
|
---|
7066 | echo "$as_me: failed program was:" >&5
|
---|
7067 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7068 |
|
---|
7069 | ac_cv_c_bigendian=no
|
---|
7070 | fi
|
---|
7071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7072 | else
|
---|
7073 | echo "$as_me: failed program was:" >&5
|
---|
7074 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7075 |
|
---|
7076 | # It does not; compile a test program.
|
---|
7077 | if test "$cross_compiling" = yes; then
|
---|
7078 | # try to guess the endianness by grepping values into an object file
|
---|
7079 | ac_cv_c_bigendian=unknown
|
---|
7080 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7081 | /* confdefs.h. */
|
---|
7082 | _ACEOF
|
---|
7083 | cat confdefs.h >>conftest.$ac_ext
|
---|
7084 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7085 | /* end confdefs.h. */
|
---|
7086 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7087 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7088 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7089 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7090 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7091 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7092 | int
|
---|
7093 | main ()
|
---|
7094 | {
|
---|
7095 | _ascii (); _ebcdic ();
|
---|
7096 | ;
|
---|
7097 | return 0;
|
---|
7098 | }
|
---|
7099 | _ACEOF
|
---|
7100 | rm -f conftest.$ac_objext
|
---|
7101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7102 | (eval $ac_compile) 2>conftest.er1
|
---|
7103 | ac_status=$?
|
---|
7104 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7105 | rm -f conftest.er1
|
---|
7106 | cat conftest.err >&5
|
---|
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7108 | (exit $ac_status); } &&
|
---|
7109 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7110 | || test ! -s conftest.err'
|
---|
7111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7112 | (eval $ac_try) 2>&5
|
---|
7113 | ac_status=$?
|
---|
7114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7115 | (exit $ac_status); }; } &&
|
---|
7116 | { ac_try='test -s conftest.$ac_objext'
|
---|
7117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7118 | (eval $ac_try) 2>&5
|
---|
7119 | ac_status=$?
|
---|
7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7121 | (exit $ac_status); }; }; then
|
---|
7122 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7123 | ac_cv_c_bigendian=yes
|
---|
7124 | fi
|
---|
7125 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7126 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7127 | ac_cv_c_bigendian=no
|
---|
7128 | else
|
---|
7129 | # finding both strings is unlikely to happen, but who knows?
|
---|
7130 | ac_cv_c_bigendian=unknown
|
---|
7131 | fi
|
---|
7132 | fi
|
---|
7133 | else
|
---|
7134 | echo "$as_me: failed program was:" >&5
|
---|
7135 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7136 |
|
---|
7137 | fi
|
---|
7138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7139 | else
|
---|
7140 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7141 | /* confdefs.h. */
|
---|
7142 | _ACEOF
|
---|
7143 | cat confdefs.h >>conftest.$ac_ext
|
---|
7144 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7145 | /* end confdefs.h. */
|
---|
7146 | int
|
---|
7147 | main ()
|
---|
7148 | {
|
---|
7149 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7150 | union
|
---|
7151 | {
|
---|
7152 | long l;
|
---|
7153 | char c[sizeof (long)];
|
---|
7154 | } u;
|
---|
7155 | u.l = 1;
|
---|
7156 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
7157 | }
|
---|
7158 | _ACEOF
|
---|
7159 | rm -f conftest$ac_exeext
|
---|
7160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7161 | (eval $ac_link) 2>&5
|
---|
7162 | ac_status=$?
|
---|
7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7164 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7166 | (eval $ac_try) 2>&5
|
---|
7167 | ac_status=$?
|
---|
7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7169 | (exit $ac_status); }; }; then
|
---|
7170 | ac_cv_c_bigendian=no
|
---|
7171 | else
|
---|
7172 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7173 | echo "$as_me: failed program was:" >&5
|
---|
7174 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7175 |
|
---|
7176 | ( exit $ac_status )
|
---|
7177 | ac_cv_c_bigendian=yes
|
---|
7178 | fi
|
---|
7179 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7180 | fi
|
---|
7181 | fi
|
---|
7182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7183 | fi
|
---|
7184 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
7185 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
7186 | case $ac_cv_c_bigendian in
|
---|
7187 | yes)
|
---|
7188 |
|
---|
7189 | cat >>confdefs.h <<\_ACEOF
|
---|
7190 | #define WORDS_BIGENDIAN 1
|
---|
7191 | _ACEOF
|
---|
7192 | ;;
|
---|
7193 | no)
|
---|
7194 | ;;
|
---|
7195 | *)
|
---|
7196 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
7197 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
7198 | echo "$as_me: error: unknown endianness
|
---|
7199 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
7200 | { (exit 1); exit 1; }; } ;;
|
---|
7201 | esac
|
---|
7202 |
|
---|
7203 | # ---------------------------------------------------------------------------
|
---|
7204 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7205 | case $LIBOBJS in
|
---|
7206 | "xmalloc.o.$ac_objext" | \
|
---|
7207 | *" xmalloc.o.$ac_objext" | \
|
---|
7208 | "xmalloc.o.$ac_objext "* | \
|
---|
7209 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
7210 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
7211 | esac
|
---|
7212 |
|
---|
7213 | case $LIBOBJS in
|
---|
7214 | "error.$ac_objext" | \
|
---|
7215 | *" error.$ac_objext" | \
|
---|
7216 | "error.$ac_objext "* | \
|
---|
7217 | *" error.$ac_objext "* ) ;;
|
---|
7218 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
7219 | esac
|
---|
7220 |
|
---|
7221 | fi
|
---|
7222 |
|
---|
7223 | # ---------------------------------------------------------------------------
|
---|
7224 |
|
---|
7225 | moduleDirs=""
|
---|
7226 | MODULEDIRS=""
|
---|
7227 | if test -d modules ; then
|
---|
7228 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
7229 | if test -d "$x"; then
|
---|
7230 | d="$x/Makefile.in"
|
---|
7231 | if test -e "$d"; then
|
---|
7232 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
7233 | MODULEDIRS="$MODULEDIRS $x"
|
---|
7234 | fi
|
---|
7235 | fi
|
---|
7236 | done
|
---|
7237 | echo "Making $moduleDirs in modules directory"
|
---|
7238 |
|
---|
7239 | fi
|
---|
7240 |
|
---|
7241 |
|
---|
7242 | # ---------------------------------------------------------------------------
|
---|
7243 |
|
---|
7244 | # indexers needs a bindir option to get the binaries into the right place
|
---|
7245 | gsdlprefix=`pwd`
|
---|
7246 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos "
|
---|
7247 |
|
---|
7248 |
|
---|
7249 | subdirs="$subdirs common-src build-src"
|
---|
7250 |
|
---|
7251 |
|
---|
7252 | # the list of folders in the src folder
|
---|
7253 | srclist="common-src/Makefile \
|
---|
7254 | build-src/Makefile"
|
---|
7255 |
|
---|
7256 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
7257 | cat >confcache <<\_ACEOF
|
---|
7258 | # This file is a shell script that caches the results of configure
|
---|
7259 | # tests run on this system so they can be shared between configure
|
---|
7260 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7261 | # It is not useful on other systems. If it contains results you don't
|
---|
7262 | # want to keep, you may remove or edit it.
|
---|
7263 | #
|
---|
7264 | # config.status only pays attention to the cache file if you give it
|
---|
7265 | # the --recheck option to rerun configure.
|
---|
7266 | #
|
---|
7267 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7268 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7269 | # following values.
|
---|
7270 |
|
---|
7271 | _ACEOF
|
---|
7272 |
|
---|
7273 | # The following way of writing the cache mishandles newlines in values,
|
---|
7274 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7275 | # So, don't put newlines in cache variables' values.
|
---|
7276 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7277 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7278 | {
|
---|
7279 | (set) 2>&1 |
|
---|
7280 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7281 | *ac_space=\ *)
|
---|
7282 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
7283 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
7284 | sed -n \
|
---|
7285 | "s/'/'\\\\''/g;
|
---|
7286 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7287 | ;;
|
---|
7288 | *)
|
---|
7289 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7290 | sed -n \
|
---|
7291 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
7292 | ;;
|
---|
7293 | esac;
|
---|
7294 | } |
|
---|
7295 | sed '
|
---|
7296 | t clear
|
---|
7297 | : clear
|
---|
7298 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7299 | t end
|
---|
7300 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7301 | : end' >>confcache
|
---|
7302 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
7303 | if test -w $cache_file; then
|
---|
7304 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
7305 | cat confcache >$cache_file
|
---|
7306 | else
|
---|
7307 | echo "not updating unwritable cache $cache_file"
|
---|
7308 | fi
|
---|
7309 | fi
|
---|
7310 | rm -f confcache
|
---|
7311 |
|
---|
7312 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7313 | # Let make expand exec_prefix.
|
---|
7314 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7315 |
|
---|
7316 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7317 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7318 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7319 | # (actually we leave an empty line to preserve line numbers).
|
---|
7320 | if test "x$srcdir" = x.; then
|
---|
7321 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7322 | s/:*\$(srcdir):*/:/;
|
---|
7323 | s/:*\${srcdir}:*/:/;
|
---|
7324 | s/:*@srcdir@:*/:/;
|
---|
7325 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
7326 | s/:*$//;
|
---|
7327 | s/^[^=]*=[ ]*$//;
|
---|
7328 | }'
|
---|
7329 | fi
|
---|
7330 |
|
---|
7331 | DEFS=-DHAVE_CONFIG_H
|
---|
7332 |
|
---|
7333 | ac_libobjs=
|
---|
7334 | ac_ltlibobjs=
|
---|
7335 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7336 | # 1. Remove the extension, and $U if already installed.
|
---|
7337 | ac_i=`echo "$ac_i" |
|
---|
7338 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
7339 | # 2. Add them.
|
---|
7340 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
7341 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
7342 | done
|
---|
7343 | LIBOBJS=$ac_libobjs
|
---|
7344 |
|
---|
7345 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7346 |
|
---|
7347 |
|
---|
7348 |
|
---|
7349 | : ${CONFIG_STATUS=./config.status}
|
---|
7350 | ac_clean_files_save=$ac_clean_files
|
---|
7351 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7352 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
7353 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7354 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
7355 | #! $SHELL
|
---|
7356 | # Generated by $as_me.
|
---|
7357 | # Run this file to recreate the current configuration.
|
---|
7358 | # Compiler output produced by configure, useful for debugging
|
---|
7359 | # configure, is in config.log if it exists.
|
---|
7360 |
|
---|
7361 | debug=false
|
---|
7362 | ac_cs_recheck=false
|
---|
7363 | ac_cs_silent=false
|
---|
7364 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7365 | _ACEOF
|
---|
7366 |
|
---|
7367 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7368 | ## --------------------- ##
|
---|
7369 | ## M4sh Initialization. ##
|
---|
7370 | ## --------------------- ##
|
---|
7371 |
|
---|
7372 | # Be Bourne compatible
|
---|
7373 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
7374 | emulate sh
|
---|
7375 | NULLCMD=:
|
---|
7376 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
7377 | # is contrary to our usage. Disable this feature.
|
---|
7378 | alias -g '${1+"$@"}'='"$@"'
|
---|
7379 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
7380 | set -o posix
|
---|
7381 | fi
|
---|
7382 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7383 |
|
---|
7384 | # Support unset when possible.
|
---|
7385 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
7386 | as_unset=unset
|
---|
7387 | else
|
---|
7388 | as_unset=false
|
---|
7389 | fi
|
---|
7390 |
|
---|
7391 |
|
---|
7392 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
7393 | $as_unset ENV MAIL MAILPATH
|
---|
7394 | PS1='$ '
|
---|
7395 | PS2='> '
|
---|
7396 | PS4='+ '
|
---|
7397 |
|
---|
7398 | # NLS nuisances.
|
---|
7399 | for as_var in \
|
---|
7400 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
7401 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
7402 | LC_TELEPHONE LC_TIME
|
---|
7403 | do
|
---|
7404 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
7405 | eval $as_var=C; export $as_var
|
---|
7406 | else
|
---|
7407 | $as_unset $as_var
|
---|
7408 | fi
|
---|
7409 | done
|
---|
7410 |
|
---|
7411 | # Required to use basename.
|
---|
7412 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7413 | as_expr=expr
|
---|
7414 | else
|
---|
7415 | as_expr=false
|
---|
7416 | fi
|
---|
7417 |
|
---|
7418 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
7419 | as_basename=basename
|
---|
7420 | else
|
---|
7421 | as_basename=false
|
---|
7422 | fi
|
---|
7423 |
|
---|
7424 |
|
---|
7425 | # Name of the executable.
|
---|
7426 | as_me=`$as_basename "$0" ||
|
---|
7427 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7428 | X"$0" : 'X\(//\)$' \| \
|
---|
7429 | X"$0" : 'X\(/\)$' \| \
|
---|
7430 | . : '\(.\)' 2>/dev/null ||
|
---|
7431 | echo X/"$0" |
|
---|
7432 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
7433 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
7434 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
7435 | s/.*/./; q'`
|
---|
7436 |
|
---|
7437 |
|
---|
7438 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
7439 | # Avoid depending upon Character Ranges.
|
---|
7440 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7441 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7442 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7443 | as_cr_digits='0123456789'
|
---|
7444 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7445 |
|
---|
7446 | # The user is always right.
|
---|
7447 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7448 | echo "#! /bin/sh" >conf$$.sh
|
---|
7449 | echo "exit 0" >>conf$$.sh
|
---|
7450 | chmod +x conf$$.sh
|
---|
7451 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
7452 | PATH_SEPARATOR=';'
|
---|
7453 | else
|
---|
7454 | PATH_SEPARATOR=:
|
---|
7455 | fi
|
---|
7456 | rm -f conf$$.sh
|
---|
7457 | fi
|
---|
7458 |
|
---|
7459 |
|
---|
7460 | as_lineno_1=$LINENO
|
---|
7461 | as_lineno_2=$LINENO
|
---|
7462 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7463 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7464 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
7465 | # Find who we are. Look in the path if we contain no path at all
|
---|
7466 | # relative or not.
|
---|
7467 | case $0 in
|
---|
7468 | *[\\/]* ) as_myself=$0 ;;
|
---|
7469 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7470 | for as_dir in $PATH
|
---|
7471 | do
|
---|
7472 | IFS=$as_save_IFS
|
---|
7473 | test -z "$as_dir" && as_dir=.
|
---|
7474 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7475 | done
|
---|
7476 |
|
---|
7477 | ;;
|
---|
7478 | esac
|
---|
7479 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7480 | # in which case we are not to be found in the path.
|
---|
7481 | if test "x$as_myself" = x; then
|
---|
7482 | as_myself=$0
|
---|
7483 | fi
|
---|
7484 | if test ! -f "$as_myself"; then
|
---|
7485 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
7486 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
7487 | { (exit 1); exit 1; }; }
|
---|
7488 | fi
|
---|
7489 | case $CONFIG_SHELL in
|
---|
7490 | '')
|
---|
7491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7492 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
7493 | do
|
---|
7494 | IFS=$as_save_IFS
|
---|
7495 | test -z "$as_dir" && as_dir=.
|
---|
7496 | for as_base in sh bash ksh sh5; do
|
---|
7497 | case $as_dir in
|
---|
7498 | /*)
|
---|
7499 | if ("$as_dir/$as_base" -c '
|
---|
7500 | as_lineno_1=$LINENO
|
---|
7501 | as_lineno_2=$LINENO
|
---|
7502 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7503 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7504 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
7505 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
7506 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
7507 | CONFIG_SHELL=$as_dir/$as_base
|
---|
7508 | export CONFIG_SHELL
|
---|
7509 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
7510 | fi;;
|
---|
7511 | esac
|
---|
7512 | done
|
---|
7513 | done
|
---|
7514 | ;;
|
---|
7515 | esac
|
---|
7516 |
|
---|
7517 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
7518 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
7519 | # line-number line before each line; the second 'sed' does the real
|
---|
7520 | # work. The second script uses 'N' to pair each line-number line
|
---|
7521 | # with the numbered line, and appends trailing '-' during
|
---|
7522 | # substitution so that $LINENO is not a special case at line end.
|
---|
7523 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
7524 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
7525 | sed '=' <$as_myself |
|
---|
7526 | sed '
|
---|
7527 | N
|
---|
7528 | s,$,-,
|
---|
7529 | : loop
|
---|
7530 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
7531 | t loop
|
---|
7532 | s,-$,,
|
---|
7533 | s,^['$as_cr_digits']*\n,,
|
---|
7534 | ' >$as_me.lineno &&
|
---|
7535 | chmod +x $as_me.lineno ||
|
---|
7536 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
7537 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
7538 | { (exit 1); exit 1; }; }
|
---|
7539 |
|
---|
7540 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
7541 | # (the dirname of $[0] is not the place where we might find the
|
---|
7542 | # original and so on. Autoconf is especially sensible to this).
|
---|
7543 | . ./$as_me.lineno
|
---|
7544 | # Exit status is that of the last command.
|
---|
7545 | exit
|
---|
7546 | }
|
---|
7547 |
|
---|
7548 |
|
---|
7549 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
7550 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
7551 | ' ECHO_T=' ' ;;
|
---|
7552 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
7553 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
7554 | esac
|
---|
7555 |
|
---|
7556 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7557 | as_expr=expr
|
---|
7558 | else
|
---|
7559 | as_expr=false
|
---|
7560 | fi
|
---|
7561 |
|
---|
7562 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7563 | echo >conf$$.file
|
---|
7564 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7565 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
7566 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
7567 | if test -f conf$$.exe; then
|
---|
7568 | # Don't use ln at all; we don't have any links
|
---|
7569 | as_ln_s='cp -p'
|
---|
7570 | else
|
---|
7571 | as_ln_s='ln -s'
|
---|
7572 | fi
|
---|
7573 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7574 | as_ln_s=ln
|
---|
7575 | else
|
---|
7576 | as_ln_s='cp -p'
|
---|
7577 | fi
|
---|
7578 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7579 |
|
---|
7580 | if mkdir -p . 2>/dev/null; then
|
---|
7581 | as_mkdir_p=:
|
---|
7582 | else
|
---|
7583 | test -d ./-p && rmdir ./-p
|
---|
7584 | as_mkdir_p=false
|
---|
7585 | fi
|
---|
7586 |
|
---|
7587 | as_executable_p="test -f"
|
---|
7588 |
|
---|
7589 | # Sed expression to map a string onto a valid CPP name.
|
---|
7590 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7591 |
|
---|
7592 | # Sed expression to map a string onto a valid variable name.
|
---|
7593 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7594 |
|
---|
7595 |
|
---|
7596 | # IFS
|
---|
7597 | # We need space, tab and new line, in precisely that order.
|
---|
7598 | as_nl='
|
---|
7599 | '
|
---|
7600 | IFS=" $as_nl"
|
---|
7601 |
|
---|
7602 | # CDPATH.
|
---|
7603 | $as_unset CDPATH
|
---|
7604 |
|
---|
7605 | exec 6>&1
|
---|
7606 |
|
---|
7607 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
7608 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7609 | # values after options handling. Logging --version etc. is OK.
|
---|
7610 | exec 5>>config.log
|
---|
7611 | {
|
---|
7612 | echo
|
---|
7613 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7614 | ## Running $as_me. ##
|
---|
7615 | _ASBOX
|
---|
7616 | } >&5
|
---|
7617 | cat >&5 <<_CSEOF
|
---|
7618 |
|
---|
7619 | This file was extended by $as_me, which was
|
---|
7620 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
7621 |
|
---|
7622 | CONFIG_FILES = $CONFIG_FILES
|
---|
7623 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7624 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7625 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7626 | $ $0 $@
|
---|
7627 |
|
---|
7628 | _CSEOF
|
---|
7629 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
7630 | echo >&5
|
---|
7631 | _ACEOF
|
---|
7632 |
|
---|
7633 | # Files that config.status was made for.
|
---|
7634 | if test -n "$ac_config_files"; then
|
---|
7635 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
7636 | fi
|
---|
7637 |
|
---|
7638 | if test -n "$ac_config_headers"; then
|
---|
7639 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
7640 | fi
|
---|
7641 |
|
---|
7642 | if test -n "$ac_config_links"; then
|
---|
7643 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
7644 | fi
|
---|
7645 |
|
---|
7646 | if test -n "$ac_config_commands"; then
|
---|
7647 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
7648 | fi
|
---|
7649 |
|
---|
7650 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7651 |
|
---|
7652 | ac_cs_usage="\
|
---|
7653 | \`$as_me' instantiates files from templates according to the
|
---|
7654 | current configuration.
|
---|
7655 |
|
---|
7656 | Usage: $0 [OPTIONS] [FILE]...
|
---|
7657 |
|
---|
7658 | -h, --help print this help, then exit
|
---|
7659 | -V, --version print version number, then exit
|
---|
7660 | -q, --quiet do not print progress messages
|
---|
7661 | -d, --debug don't remove temporary files
|
---|
7662 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7663 | --file=FILE[:TEMPLATE]
|
---|
7664 | instantiate the configuration file FILE
|
---|
7665 | --header=FILE[:TEMPLATE]
|
---|
7666 | instantiate the configuration header FILE
|
---|
7667 |
|
---|
7668 | Configuration files:
|
---|
7669 | $config_files
|
---|
7670 |
|
---|
7671 | Configuration headers:
|
---|
7672 | $config_headers
|
---|
7673 |
|
---|
7674 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
7675 | _ACEOF
|
---|
7676 |
|
---|
7677 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7678 | ac_cs_version="\\
|
---|
7679 | config.status
|
---|
7680 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
7681 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
7682 |
|
---|
7683 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
7684 | This config.status script is free software; the Free Software Foundation
|
---|
7685 | gives unlimited permission to copy, distribute and modify it."
|
---|
7686 | srcdir=$srcdir
|
---|
7687 | INSTALL="$INSTALL"
|
---|
7688 | _ACEOF
|
---|
7689 |
|
---|
7690 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7691 | # If no file are specified by the user, then we need to provide default
|
---|
7692 | # value. By we need to know if files were specified by the user.
|
---|
7693 | ac_need_defaults=:
|
---|
7694 | while test $# != 0
|
---|
7695 | do
|
---|
7696 | case $1 in
|
---|
7697 | --*=*)
|
---|
7698 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
7699 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
7700 | ac_shift=:
|
---|
7701 | ;;
|
---|
7702 | -*)
|
---|
7703 | ac_option=$1
|
---|
7704 | ac_optarg=$2
|
---|
7705 | ac_shift=shift
|
---|
7706 | ;;
|
---|
7707 | *) # This is not an option, so the user has probably given explicit
|
---|
7708 | # arguments.
|
---|
7709 | ac_option=$1
|
---|
7710 | ac_need_defaults=false;;
|
---|
7711 | esac
|
---|
7712 |
|
---|
7713 | case $ac_option in
|
---|
7714 | # Handling of the options.
|
---|
7715 | _ACEOF
|
---|
7716 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7717 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7718 | ac_cs_recheck=: ;;
|
---|
7719 | --version | --vers* | -V )
|
---|
7720 | echo "$ac_cs_version"; exit 0 ;;
|
---|
7721 | --he | --h)
|
---|
7722 | # Conflict between --help and --header
|
---|
7723 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
7724 | Try \`$0 --help' for more information." >&5
|
---|
7725 | echo "$as_me: error: ambiguous option: $1
|
---|
7726 | Try \`$0 --help' for more information." >&2;}
|
---|
7727 | { (exit 1); exit 1; }; };;
|
---|
7728 | --help | --hel | -h )
|
---|
7729 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
7730 | --debug | --d* | -d )
|
---|
7731 | debug=: ;;
|
---|
7732 | --file | --fil | --fi | --f )
|
---|
7733 | $ac_shift
|
---|
7734 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
7735 | ac_need_defaults=false;;
|
---|
7736 | --header | --heade | --head | --hea )
|
---|
7737 | $ac_shift
|
---|
7738 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
7739 | ac_need_defaults=false;;
|
---|
7740 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7741 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7742 | ac_cs_silent=: ;;
|
---|
7743 |
|
---|
7744 | # This is an error.
|
---|
7745 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
7746 | Try \`$0 --help' for more information." >&5
|
---|
7747 | echo "$as_me: error: unrecognized option: $1
|
---|
7748 | Try \`$0 --help' for more information." >&2;}
|
---|
7749 | { (exit 1); exit 1; }; } ;;
|
---|
7750 |
|
---|
7751 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
7752 |
|
---|
7753 | esac
|
---|
7754 | shift
|
---|
7755 | done
|
---|
7756 |
|
---|
7757 | ac_configure_extra_args=
|
---|
7758 |
|
---|
7759 | if $ac_cs_silent; then
|
---|
7760 | exec 6>/dev/null
|
---|
7761 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7762 | fi
|
---|
7763 |
|
---|
7764 | _ACEOF
|
---|
7765 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7766 | if \$ac_cs_recheck; then
|
---|
7767 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
7768 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7769 | fi
|
---|
7770 |
|
---|
7771 | _ACEOF
|
---|
7772 |
|
---|
7773 |
|
---|
7774 |
|
---|
7775 |
|
---|
7776 |
|
---|
7777 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7778 | for ac_config_target in $ac_config_targets
|
---|
7779 | do
|
---|
7780 | case "$ac_config_target" in
|
---|
7781 | # Handling of arguments.
|
---|
7782 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7783 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7784 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7785 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7786 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
7787 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
7788 | { (exit 1); exit 1; }; };;
|
---|
7789 | esac
|
---|
7790 | done
|
---|
7791 |
|
---|
7792 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7793 | # then the envvar interface is used. Set only those that are not.
|
---|
7794 | # We use the long form for the default assignment because of an extremely
|
---|
7795 | # bizarre bug on SunOS 4.1.3.
|
---|
7796 | if $ac_need_defaults; then
|
---|
7797 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7798 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7799 | fi
|
---|
7800 |
|
---|
7801 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7802 | # simply because there is no reason to put it here, and in addition,
|
---|
7803 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7804 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
7805 | $debug ||
|
---|
7806 | {
|
---|
7807 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
7808 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
7809 | }
|
---|
7810 |
|
---|
7811 | # Create a (secure) tmp directory for tmp files.
|
---|
7812 |
|
---|
7813 | {
|
---|
7814 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
7815 | test -n "$tmp" && test -d "$tmp"
|
---|
7816 | } ||
|
---|
7817 | {
|
---|
7818 | tmp=./confstat$$-$RANDOM
|
---|
7819 | (umask 077 && mkdir $tmp)
|
---|
7820 | } ||
|
---|
7821 | {
|
---|
7822 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
7823 | { (exit 1); exit 1; }
|
---|
7824 | }
|
---|
7825 |
|
---|
7826 | _ACEOF
|
---|
7827 |
|
---|
7828 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7829 |
|
---|
7830 | #
|
---|
7831 | # CONFIG_FILES section.
|
---|
7832 | #
|
---|
7833 |
|
---|
7834 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
7835 | # This happens for instance when ./config.status config.h
|
---|
7836 | if test -n "\$CONFIG_FILES"; then
|
---|
7837 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7838 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
7839 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
7840 | s,@SHELL@,$SHELL,;t t
|
---|
7841 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
7842 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
7843 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
7844 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
7845 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
7846 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
7847 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
7848 | s,@prefix@,$prefix,;t t
|
---|
7849 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
7850 | s,@bindir@,$bindir,;t t
|
---|
7851 | s,@sbindir@,$sbindir,;t t
|
---|
7852 | s,@libexecdir@,$libexecdir,;t t
|
---|
7853 | s,@datadir@,$datadir,;t t
|
---|
7854 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
7855 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
7856 | s,@localstatedir@,$localstatedir,;t t
|
---|
7857 | s,@libdir@,$libdir,;t t
|
---|
7858 | s,@includedir@,$includedir,;t t
|
---|
7859 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
7860 | s,@infodir@,$infodir,;t t
|
---|
7861 | s,@mandir@,$mandir,;t t
|
---|
7862 | s,@build_alias@,$build_alias,;t t
|
---|
7863 | s,@host_alias@,$host_alias,;t t
|
---|
7864 | s,@target_alias@,$target_alias,;t t
|
---|
7865 | s,@DEFS@,$DEFS,;t t
|
---|
7866 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
7867 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
7868 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
7869 | s,@LIBS@,$LIBS,;t t
|
---|
7870 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
7871 | s,@VERSION@,$VERSION,;t t
|
---|
7872 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
7873 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
7874 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
7875 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
7876 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
7877 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
7878 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
7879 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
7880 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
7881 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
7882 | s,@CC@,$CC,;t t
|
---|
7883 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
7884 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
7885 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
7886 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
7887 | s,@CXX@,$CXX,;t t
|
---|
7888 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
7889 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
7890 | s,@AWK@,$AWK,;t t
|
---|
7891 | s,@YACC@,$YACC,;t t
|
---|
7892 | s,@build@,$build,;t t
|
---|
7893 | s,@build_cpu@,$build_cpu,;t t
|
---|
7894 | s,@build_vendor@,$build_vendor,;t t
|
---|
7895 | s,@build_os@,$build_os,;t t
|
---|
7896 | s,@host@,$host,;t t
|
---|
7897 | s,@host_cpu@,$host_cpu,;t t
|
---|
7898 | s,@host_vendor@,$host_vendor,;t t
|
---|
7899 | s,@host_os@,$host_os,;t t
|
---|
7900 | s,@target@,$target,;t t
|
---|
7901 | s,@target_cpu@,$target_cpu,;t t
|
---|
7902 | s,@target_vendor@,$target_vendor,;t t
|
---|
7903 | s,@target_os@,$target_os,;t t
|
---|
7904 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
7905 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
7906 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
7907 | s,@LN_S@,$LN_S,;t t
|
---|
7908 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
7909 | s,@RANLIB@,$RANLIB,;t t
|
---|
7910 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
7911 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
7912 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
7913 | s,@CPP@,$CPP,;t t
|
---|
7914 | s,@EGREP@,$EGREP,;t t
|
---|
7915 | s,@U@,$U,;t t
|
---|
7916 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
7917 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
7918 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
7919 | s,@STATIC@,$STATIC,;t t
|
---|
7920 | s,@gsdlos@,$gsdlos,;t t
|
---|
7921 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
7922 | s,@subdirs@,$subdirs,;t t
|
---|
7923 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
7924 | CEOF
|
---|
7925 |
|
---|
7926 | _ACEOF
|
---|
7927 |
|
---|
7928 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7929 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7930 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7931 | ac_max_sed_lines=48
|
---|
7932 | ac_sed_frag=1 # Number of current file.
|
---|
7933 | ac_beg=1 # First line for current file.
|
---|
7934 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
7935 | ac_more_lines=:
|
---|
7936 | ac_sed_cmds=
|
---|
7937 | while $ac_more_lines; do
|
---|
7938 | if test $ac_beg -gt 1; then
|
---|
7939 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
7940 | else
|
---|
7941 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
7942 | fi
|
---|
7943 | if test ! -s $tmp/subs.frag; then
|
---|
7944 | ac_more_lines=false
|
---|
7945 | else
|
---|
7946 | # The purpose of the label and of the branching condition is to
|
---|
7947 | # speed up the sed processing (if there are no `@' at all, there
|
---|
7948 | # is no need to browse any of the substitutions).
|
---|
7949 | # These are the two extra sed commands mentioned above.
|
---|
7950 | (echo ':t
|
---|
7951 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
7952 | if test -z "$ac_sed_cmds"; then
|
---|
7953 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
7954 | else
|
---|
7955 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
7956 | fi
|
---|
7957 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
7958 | ac_beg=$ac_end
|
---|
7959 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
7960 | fi
|
---|
7961 | done
|
---|
7962 | if test -z "$ac_sed_cmds"; then
|
---|
7963 | ac_sed_cmds=cat
|
---|
7964 | fi
|
---|
7965 | fi # test -n "$CONFIG_FILES"
|
---|
7966 |
|
---|
7967 | _ACEOF
|
---|
7968 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7969 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
7970 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7971 | case $ac_file in
|
---|
7972 | - | *:- | *:-:* ) # input from stdin
|
---|
7973 | cat >$tmp/stdin
|
---|
7974 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
7975 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
7976 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
7977 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
7978 | * ) ac_file_in=$ac_file.in ;;
|
---|
7979 | esac
|
---|
7980 |
|
---|
7981 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
7982 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
7983 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7984 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7985 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7986 | X"$ac_file" : 'X\(/\)' \| \
|
---|
7987 | . : '\(.\)' 2>/dev/null ||
|
---|
7988 | echo X"$ac_file" |
|
---|
7989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
7990 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
7991 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
7992 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
7993 | s/.*/./; q'`
|
---|
7994 | { if $as_mkdir_p; then
|
---|
7995 | mkdir -p "$ac_dir"
|
---|
7996 | else
|
---|
7997 | as_dir="$ac_dir"
|
---|
7998 | as_dirs=
|
---|
7999 | while test ! -d "$as_dir"; do
|
---|
8000 | as_dirs="$as_dir $as_dirs"
|
---|
8001 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8002 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8003 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8004 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8005 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8006 | . : '\(.\)' 2>/dev/null ||
|
---|
8007 | echo X"$as_dir" |
|
---|
8008 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8009 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8010 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8011 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8012 | s/.*/./; q'`
|
---|
8013 | done
|
---|
8014 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8015 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8016 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8017 | { (exit 1); exit 1; }; }; }
|
---|
8018 |
|
---|
8019 | ac_builddir=.
|
---|
8020 |
|
---|
8021 | if test "$ac_dir" != .; then
|
---|
8022 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8023 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8024 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8025 | else
|
---|
8026 | ac_dir_suffix= ac_top_builddir=
|
---|
8027 | fi
|
---|
8028 |
|
---|
8029 | case $srcdir in
|
---|
8030 | .) # No --srcdir option. We are building in place.
|
---|
8031 | ac_srcdir=.
|
---|
8032 | if test -z "$ac_top_builddir"; then
|
---|
8033 | ac_top_srcdir=.
|
---|
8034 | else
|
---|
8035 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8036 | fi ;;
|
---|
8037 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8038 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8039 | ac_top_srcdir=$srcdir ;;
|
---|
8040 | *) # Relative path.
|
---|
8041 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8042 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8043 | esac
|
---|
8044 |
|
---|
8045 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8046 | # the directories may not exist.
|
---|
8047 | case `pwd` in
|
---|
8048 | .) ac_abs_builddir="$ac_dir";;
|
---|
8049 | *)
|
---|
8050 | case "$ac_dir" in
|
---|
8051 | .) ac_abs_builddir=`pwd`;;
|
---|
8052 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8053 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8054 | esac;;
|
---|
8055 | esac
|
---|
8056 | case $ac_abs_builddir in
|
---|
8057 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8058 | *)
|
---|
8059 | case ${ac_top_builddir}. in
|
---|
8060 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8061 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8062 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8063 | esac;;
|
---|
8064 | esac
|
---|
8065 | case $ac_abs_builddir in
|
---|
8066 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8067 | *)
|
---|
8068 | case $ac_srcdir in
|
---|
8069 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8070 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8071 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8072 | esac;;
|
---|
8073 | esac
|
---|
8074 | case $ac_abs_builddir in
|
---|
8075 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8076 | *)
|
---|
8077 | case $ac_top_srcdir in
|
---|
8078 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8079 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8080 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8081 | esac;;
|
---|
8082 | esac
|
---|
8083 |
|
---|
8084 |
|
---|
8085 | case $INSTALL in
|
---|
8086 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8087 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
8088 | esac
|
---|
8089 |
|
---|
8090 | if test x"$ac_file" != x-; then
|
---|
8091 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8092 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8093 | rm -f "$ac_file"
|
---|
8094 | fi
|
---|
8095 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8096 | # use $as_me), people would be surprised to read:
|
---|
8097 | # /* config.h. Generated by config.status. */
|
---|
8098 | if test x"$ac_file" = x-; then
|
---|
8099 | configure_input=
|
---|
8100 | else
|
---|
8101 | configure_input="$ac_file. "
|
---|
8102 | fi
|
---|
8103 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
8104 | sed 's,.*/,,'` by configure."
|
---|
8105 |
|
---|
8106 | # First look for the input files in the build tree, otherwise in the
|
---|
8107 | # src tree.
|
---|
8108 | ac_file_inputs=`IFS=:
|
---|
8109 | for f in $ac_file_in; do
|
---|
8110 | case $f in
|
---|
8111 | -) echo $tmp/stdin ;;
|
---|
8112 | [\\/$]*)
|
---|
8113 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8114 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8115 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8116 | { (exit 1); exit 1; }; }
|
---|
8117 | echo "$f";;
|
---|
8118 | *) # Relative
|
---|
8119 | if test -f "$f"; then
|
---|
8120 | # Build tree
|
---|
8121 | echo "$f"
|
---|
8122 | elif test -f "$srcdir/$f"; then
|
---|
8123 | # Source tree
|
---|
8124 | echo "$srcdir/$f"
|
---|
8125 | else
|
---|
8126 | # /dev/null tree
|
---|
8127 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8128 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8129 | { (exit 1); exit 1; }; }
|
---|
8130 | fi;;
|
---|
8131 | esac
|
---|
8132 | done` || { (exit 1); exit 1; }
|
---|
8133 | _ACEOF
|
---|
8134 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8135 | sed "$ac_vpsub
|
---|
8136 | $extrasub
|
---|
8137 | _ACEOF
|
---|
8138 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8139 | :t
|
---|
8140 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8141 | s,@configure_input@,$configure_input,;t t
|
---|
8142 | s,@srcdir@,$ac_srcdir,;t t
|
---|
8143 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
8144 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
8145 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
8146 | s,@builddir@,$ac_builddir,;t t
|
---|
8147 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
8148 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
8149 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
8150 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
8151 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
8152 | rm -f $tmp/stdin
|
---|
8153 | if test x"$ac_file" != x-; then
|
---|
8154 | mv $tmp/out $ac_file
|
---|
8155 | else
|
---|
8156 | cat $tmp/out
|
---|
8157 | rm -f $tmp/out
|
---|
8158 | fi
|
---|
8159 |
|
---|
8160 | done
|
---|
8161 | _ACEOF
|
---|
8162 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8163 |
|
---|
8164 | #
|
---|
8165 | # CONFIG_HEADER section.
|
---|
8166 | #
|
---|
8167 |
|
---|
8168 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
8169 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
8170 | #
|
---|
8171 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
8172 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
8173 | ac_dB='[ ].*$,\1#\2'
|
---|
8174 | ac_dC=' '
|
---|
8175 | ac_dD=',;t'
|
---|
8176 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
8177 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
8178 | ac_uB='$,\1#\2define\3'
|
---|
8179 | ac_uC=' '
|
---|
8180 | ac_uD=',;t'
|
---|
8181 |
|
---|
8182 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
8183 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8184 | case $ac_file in
|
---|
8185 | - | *:- | *:-:* ) # input from stdin
|
---|
8186 | cat >$tmp/stdin
|
---|
8187 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8188 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8189 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8190 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8191 | * ) ac_file_in=$ac_file.in ;;
|
---|
8192 | esac
|
---|
8193 |
|
---|
8194 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8195 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8196 |
|
---|
8197 | # First look for the input files in the build tree, otherwise in the
|
---|
8198 | # src tree.
|
---|
8199 | ac_file_inputs=`IFS=:
|
---|
8200 | for f in $ac_file_in; do
|
---|
8201 | case $f in
|
---|
8202 | -) echo $tmp/stdin ;;
|
---|
8203 | [\\/$]*)
|
---|
8204 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8205 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8206 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8207 | { (exit 1); exit 1; }; }
|
---|
8208 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
8209 | echo "$f";;
|
---|
8210 | *) # Relative
|
---|
8211 | if test -f "$f"; then
|
---|
8212 | # Build tree
|
---|
8213 | echo "$f"
|
---|
8214 | elif test -f "$srcdir/$f"; then
|
---|
8215 | # Source tree
|
---|
8216 | echo "$srcdir/$f"
|
---|
8217 | else
|
---|
8218 | # /dev/null tree
|
---|
8219 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8220 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8221 | { (exit 1); exit 1; }; }
|
---|
8222 | fi;;
|
---|
8223 | esac
|
---|
8224 | done` || { (exit 1); exit 1; }
|
---|
8225 | # Remove the trailing spaces.
|
---|
8226 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
8227 |
|
---|
8228 | _ACEOF
|
---|
8229 |
|
---|
8230 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
8231 | # `conftest.undefs', that substitutes the proper values into
|
---|
8232 | # config.h.in to produce config.h. The first handles `#define'
|
---|
8233 | # templates, and the second `#undef' templates.
|
---|
8234 | # And first: Protect against being on the right side of a sed subst in
|
---|
8235 | # config.status. Protect against being in an unquoted here document
|
---|
8236 | # in config.status.
|
---|
8237 | rm -f conftest.defines conftest.undefs
|
---|
8238 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
8239 | # Putting comments in sed scripts is not portable.
|
---|
8240 | #
|
---|
8241 | # `end' is used to avoid that the second main sed command (meant for
|
---|
8242 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
8243 | # See the Autoconf documentation for `clear'.
|
---|
8244 | cat >confdef2sed.sed <<\_ACEOF
|
---|
8245 | s/[\\&,]/\\&/g
|
---|
8246 | s,[\\$`],\\&,g
|
---|
8247 | t clear
|
---|
8248 | : clear
|
---|
8249 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
8250 | t end
|
---|
8251 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
8252 | : end
|
---|
8253 | _ACEOF
|
---|
8254 | # If some macros were called several times there might be several times
|
---|
8255 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
8256 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
8257 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
8258 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
8259 | rm -f confdef2sed.sed
|
---|
8260 |
|
---|
8261 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
8262 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
8263 | # on some systems where configure will not decide to define it.
|
---|
8264 | cat >>conftest.undefs <<\_ACEOF
|
---|
8265 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
8266 | _ACEOF
|
---|
8267 |
|
---|
8268 | # Break up conftest.defines because some shells have a limit on the size
|
---|
8269 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8270 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
8271 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
8272 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
8273 | echo ' :' >>$CONFIG_STATUS
|
---|
8274 | rm -f conftest.tail
|
---|
8275 | while grep . conftest.defines >/dev/null
|
---|
8276 | do
|
---|
8277 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
8278 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8279 | # Speed up: don't consider the non `#define' lines.
|
---|
8280 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
8281 | # Work around the forget-to-reset-the-flag bug.
|
---|
8282 | echo 't clr' >>$CONFIG_STATUS
|
---|
8283 | echo ': clr' >>$CONFIG_STATUS
|
---|
8284 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
8285 | echo 'CEOF
|
---|
8286 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
8287 | rm -f $tmp/in
|
---|
8288 | mv $tmp/out $tmp/in
|
---|
8289 | ' >>$CONFIG_STATUS
|
---|
8290 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
8291 | rm -f conftest.defines
|
---|
8292 | mv conftest.tail conftest.defines
|
---|
8293 | done
|
---|
8294 | rm -f conftest.defines
|
---|
8295 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
8296 | echo >>$CONFIG_STATUS
|
---|
8297 |
|
---|
8298 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
8299 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8300 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
8301 | rm -f conftest.tail
|
---|
8302 | while grep . conftest.undefs >/dev/null
|
---|
8303 | do
|
---|
8304 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
8305 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8306 | # Speed up: don't consider the non `#undef'
|
---|
8307 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
8308 | # Work around the forget-to-reset-the-flag bug.
|
---|
8309 | echo 't clr' >>$CONFIG_STATUS
|
---|
8310 | echo ': clr' >>$CONFIG_STATUS
|
---|
8311 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
8312 | echo 'CEOF
|
---|
8313 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
8314 | rm -f $tmp/in
|
---|
8315 | mv $tmp/out $tmp/in
|
---|
8316 | ' >>$CONFIG_STATUS
|
---|
8317 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
8318 | rm -f conftest.undefs
|
---|
8319 | mv conftest.tail conftest.undefs
|
---|
8320 | done
|
---|
8321 | rm -f conftest.undefs
|
---|
8322 |
|
---|
8323 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8324 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8325 | # use $as_me), people would be surprised to read:
|
---|
8326 | # /* config.h. Generated by config.status. */
|
---|
8327 | if test x"$ac_file" = x-; then
|
---|
8328 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
8329 | else
|
---|
8330 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
8331 | fi
|
---|
8332 | cat $tmp/in >>$tmp/config.h
|
---|
8333 | rm -f $tmp/in
|
---|
8334 | if test x"$ac_file" != x-; then
|
---|
8335 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
8336 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
8337 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
8338 | else
|
---|
8339 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8340 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8341 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8342 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8343 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8344 | . : '\(.\)' 2>/dev/null ||
|
---|
8345 | echo X"$ac_file" |
|
---|
8346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8347 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8348 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8349 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8350 | s/.*/./; q'`
|
---|
8351 | { if $as_mkdir_p; then
|
---|
8352 | mkdir -p "$ac_dir"
|
---|
8353 | else
|
---|
8354 | as_dir="$ac_dir"
|
---|
8355 | as_dirs=
|
---|
8356 | while test ! -d "$as_dir"; do
|
---|
8357 | as_dirs="$as_dir $as_dirs"
|
---|
8358 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8359 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8360 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8361 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8362 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8363 | . : '\(.\)' 2>/dev/null ||
|
---|
8364 | echo X"$as_dir" |
|
---|
8365 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8366 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8367 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8368 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8369 | s/.*/./; q'`
|
---|
8370 | done
|
---|
8371 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8372 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8373 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8374 | { (exit 1); exit 1; }; }; }
|
---|
8375 |
|
---|
8376 | rm -f $ac_file
|
---|
8377 | mv $tmp/config.h $ac_file
|
---|
8378 | fi
|
---|
8379 | else
|
---|
8380 | cat $tmp/config.h
|
---|
8381 | rm -f $tmp/config.h
|
---|
8382 | fi
|
---|
8383 | done
|
---|
8384 | _ACEOF
|
---|
8385 |
|
---|
8386 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8387 |
|
---|
8388 | { (exit 0); exit 0; }
|
---|
8389 | _ACEOF
|
---|
8390 | chmod +x $CONFIG_STATUS
|
---|
8391 | ac_clean_files=$ac_clean_files_save
|
---|
8392 |
|
---|
8393 |
|
---|
8394 | # configure is writing to config.log, and then calls config.status.
|
---|
8395 | # config.status does its own redirection, appending to config.log.
|
---|
8396 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8397 | # by configure, so config.status won't be able to write to it; its
|
---|
8398 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8399 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8400 | # appended to by config.status. When coming back to configure, we
|
---|
8401 | # need to make the FD available again.
|
---|
8402 | if test "$no_create" != yes; then
|
---|
8403 | ac_cs_success=:
|
---|
8404 | ac_config_status_args=
|
---|
8405 | test "$silent" = yes &&
|
---|
8406 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8407 | exec 5>/dev/null
|
---|
8408 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8409 | exec 5>>config.log
|
---|
8410 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8411 | # would make configure fail if this is the last instruction.
|
---|
8412 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
8413 | fi
|
---|
8414 |
|
---|
8415 | #
|
---|
8416 | # CONFIG_SUBDIRS section.
|
---|
8417 | #
|
---|
8418 | if test "$no_recursion" != yes; then
|
---|
8419 |
|
---|
8420 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
8421 | ac_sub_configure_args=
|
---|
8422 | ac_prev=
|
---|
8423 | for ac_arg in $ac_configure_args; do
|
---|
8424 | if test -n "$ac_prev"; then
|
---|
8425 | ac_prev=
|
---|
8426 | continue
|
---|
8427 | fi
|
---|
8428 | case $ac_arg in
|
---|
8429 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8430 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8431 | ac_prev=cache_file ;;
|
---|
8432 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8433 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
8434 | | --c=*)
|
---|
8435 | ;;
|
---|
8436 | --config-cache | -C)
|
---|
8437 | ;;
|
---|
8438 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8439 | ac_prev=srcdir ;;
|
---|
8440 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8441 | ;;
|
---|
8442 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
8443 | ac_prev=prefix ;;
|
---|
8444 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
8445 | ;;
|
---|
8446 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
8447 | esac
|
---|
8448 | done
|
---|
8449 |
|
---|
8450 | # Always prepend --prefix to ensure using the same prefix
|
---|
8451 | # in subdir configurations.
|
---|
8452 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
8453 |
|
---|
8454 | ac_popdir=`pwd`
|
---|
8455 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
8456 |
|
---|
8457 | # Do not complain, so a configure script can configure whichever
|
---|
8458 | # parts of a large source tree are present.
|
---|
8459 | test -d $srcdir/$ac_dir || continue
|
---|
8460 |
|
---|
8461 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
8462 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
8463 | { if $as_mkdir_p; then
|
---|
8464 | mkdir -p "$ac_dir"
|
---|
8465 | else
|
---|
8466 | as_dir="$ac_dir"
|
---|
8467 | as_dirs=
|
---|
8468 | while test ! -d "$as_dir"; do
|
---|
8469 | as_dirs="$as_dir $as_dirs"
|
---|
8470 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8471 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8472 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8473 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8474 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8475 | . : '\(.\)' 2>/dev/null ||
|
---|
8476 | echo X"$as_dir" |
|
---|
8477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8478 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8479 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8480 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8481 | s/.*/./; q'`
|
---|
8482 | done
|
---|
8483 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8484 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8485 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8486 | { (exit 1); exit 1; }; }; }
|
---|
8487 |
|
---|
8488 | ac_builddir=.
|
---|
8489 |
|
---|
8490 | if test "$ac_dir" != .; then
|
---|
8491 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8492 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8493 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8494 | else
|
---|
8495 | ac_dir_suffix= ac_top_builddir=
|
---|
8496 | fi
|
---|
8497 |
|
---|
8498 | case $srcdir in
|
---|
8499 | .) # No --srcdir option. We are building in place.
|
---|
8500 | ac_srcdir=.
|
---|
8501 | if test -z "$ac_top_builddir"; then
|
---|
8502 | ac_top_srcdir=.
|
---|
8503 | else
|
---|
8504 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8505 | fi ;;
|
---|
8506 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8507 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8508 | ac_top_srcdir=$srcdir ;;
|
---|
8509 | *) # Relative path.
|
---|
8510 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8511 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8512 | esac
|
---|
8513 |
|
---|
8514 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8515 | # the directories may not exist.
|
---|
8516 | case `pwd` in
|
---|
8517 | .) ac_abs_builddir="$ac_dir";;
|
---|
8518 | *)
|
---|
8519 | case "$ac_dir" in
|
---|
8520 | .) ac_abs_builddir=`pwd`;;
|
---|
8521 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8522 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8523 | esac;;
|
---|
8524 | esac
|
---|
8525 | case $ac_abs_builddir in
|
---|
8526 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8527 | *)
|
---|
8528 | case ${ac_top_builddir}. in
|
---|
8529 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8530 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8531 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8532 | esac;;
|
---|
8533 | esac
|
---|
8534 | case $ac_abs_builddir in
|
---|
8535 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8536 | *)
|
---|
8537 | case $ac_srcdir in
|
---|
8538 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8539 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8540 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8541 | esac;;
|
---|
8542 | esac
|
---|
8543 | case $ac_abs_builddir in
|
---|
8544 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8545 | *)
|
---|
8546 | case $ac_top_srcdir in
|
---|
8547 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8548 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8549 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8550 | esac;;
|
---|
8551 | esac
|
---|
8552 |
|
---|
8553 |
|
---|
8554 | cd $ac_dir
|
---|
8555 |
|
---|
8556 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8557 | if test -f $ac_srcdir/configure.gnu; then
|
---|
8558 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
8559 | elif test -f $ac_srcdir/configure; then
|
---|
8560 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
8561 | elif test -f $ac_srcdir/configure.in; then
|
---|
8562 | ac_sub_configure=$ac_configure
|
---|
8563 | else
|
---|
8564 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8565 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8566 | ac_sub_configure=
|
---|
8567 | fi
|
---|
8568 |
|
---|
8569 | # The recursion is here.
|
---|
8570 | if test -n "$ac_sub_configure"; then
|
---|
8571 | # Make the cache file name correct relative to the subdirectory.
|
---|
8572 | case $cache_file in
|
---|
8573 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8574 | *) # Relative path.
|
---|
8575 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
8576 | esac
|
---|
8577 |
|
---|
8578 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8579 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8580 | # The eval makes quoting arguments work.
|
---|
8581 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
8582 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
8583 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
8584 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
8585 | { (exit 1); exit 1; }; }
|
---|
8586 | fi
|
---|
8587 |
|
---|
8588 | cd $ac_popdir
|
---|
8589 | done
|
---|
8590 | fi
|
---|
8591 |
|
---|
8592 |
|
---|
8593 |
|
---|