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 packages"
|
---|
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 USE_APACHE_HTTPD 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 | --enable-apache-httpd Enable Apache httpd support
|
---|
862 |
|
---|
863 | Optional Packages:
|
---|
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
866 | --with-micodir Use installed MICO directory
|
---|
867 | --with-dmalloc use dmalloc, as in
|
---|
868 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
869 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
870 |
|
---|
871 | Some influential environment variables:
|
---|
872 | CC C compiler command
|
---|
873 | CFLAGS C compiler flags
|
---|
874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
875 | nonstandard directory <lib dir>
|
---|
876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
877 | headers in a nonstandard directory <include dir>
|
---|
878 | CXX C++ compiler command
|
---|
879 | CXXFLAGS C++ compiler flags
|
---|
880 | CPP C preprocessor
|
---|
881 |
|
---|
882 | Use these variables to override the choices made by `configure' or to help
|
---|
883 | it to find libraries and programs with nonstandard names/locations.
|
---|
884 |
|
---|
885 | _ACEOF
|
---|
886 | fi
|
---|
887 |
|
---|
888 | if test "$ac_init_help" = "recursive"; then
|
---|
889 | # If there are subdirs, report their specific --help.
|
---|
890 | ac_popdir=`pwd`
|
---|
891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
892 | test -d $ac_dir || continue
|
---|
893 | ac_builddir=.
|
---|
894 |
|
---|
895 | if test "$ac_dir" != .; then
|
---|
896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
897 | # A "../" for each directory in $ac_dir_suffix.
|
---|
898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
899 | else
|
---|
900 | ac_dir_suffix= ac_top_builddir=
|
---|
901 | fi
|
---|
902 |
|
---|
903 | case $srcdir in
|
---|
904 | .) # No --srcdir option. We are building in place.
|
---|
905 | ac_srcdir=.
|
---|
906 | if test -z "$ac_top_builddir"; then
|
---|
907 | ac_top_srcdir=.
|
---|
908 | else
|
---|
909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
910 | fi ;;
|
---|
911 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
912 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
913 | ac_top_srcdir=$srcdir ;;
|
---|
914 | *) # Relative path.
|
---|
915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
916 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
917 | esac
|
---|
918 |
|
---|
919 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
920 | # the directories may not exist.
|
---|
921 | case `pwd` in
|
---|
922 | .) ac_abs_builddir="$ac_dir";;
|
---|
923 | *)
|
---|
924 | case "$ac_dir" in
|
---|
925 | .) ac_abs_builddir=`pwd`;;
|
---|
926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
927 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
928 | esac;;
|
---|
929 | esac
|
---|
930 | case $ac_abs_builddir in
|
---|
931 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
932 | *)
|
---|
933 | case ${ac_top_builddir}. in
|
---|
934 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
937 | esac;;
|
---|
938 | esac
|
---|
939 | case $ac_abs_builddir in
|
---|
940 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
941 | *)
|
---|
942 | case $ac_srcdir in
|
---|
943 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
946 | esac;;
|
---|
947 | esac
|
---|
948 | case $ac_abs_builddir in
|
---|
949 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
950 | *)
|
---|
951 | case $ac_top_srcdir in
|
---|
952 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
955 | esac;;
|
---|
956 | esac
|
---|
957 |
|
---|
958 | cd $ac_dir
|
---|
959 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
960 | if test -f $ac_srcdir/configure.gnu; then
|
---|
961 | echo
|
---|
962 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
963 | elif test -f $ac_srcdir/configure; then
|
---|
964 | echo
|
---|
965 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
966 | elif test -f $ac_srcdir/configure.ac ||
|
---|
967 | test -f $ac_srcdir/configure.in; then
|
---|
968 | echo
|
---|
969 | $ac_configure --help
|
---|
970 | else
|
---|
971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
972 | fi
|
---|
973 | cd $ac_popdir
|
---|
974 | done
|
---|
975 | fi
|
---|
976 |
|
---|
977 | test -n "$ac_init_help" && exit 0
|
---|
978 | if $ac_init_version; then
|
---|
979 | cat <<\_ACEOF
|
---|
980 |
|
---|
981 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
982 | This configure script is free software; the Free Software Foundation
|
---|
983 | gives unlimited permission to copy, distribute and modify it.
|
---|
984 | _ACEOF
|
---|
985 | exit 0
|
---|
986 | fi
|
---|
987 | exec 5>config.log
|
---|
988 | cat >&5 <<_ACEOF
|
---|
989 | This file contains any messages produced by compilers while
|
---|
990 | running configure, to aid debugging if configure makes a mistake.
|
---|
991 |
|
---|
992 | It was created by $as_me, which was
|
---|
993 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
994 |
|
---|
995 | $ $0 $@
|
---|
996 |
|
---|
997 | _ACEOF
|
---|
998 | {
|
---|
999 | cat <<_ASUNAME
|
---|
1000 | ## --------- ##
|
---|
1001 | ## Platform. ##
|
---|
1002 | ## --------- ##
|
---|
1003 |
|
---|
1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1009 |
|
---|
1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1012 |
|
---|
1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1020 |
|
---|
1021 | _ASUNAME
|
---|
1022 |
|
---|
1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1024 | for as_dir in $PATH
|
---|
1025 | do
|
---|
1026 | IFS=$as_save_IFS
|
---|
1027 | test -z "$as_dir" && as_dir=.
|
---|
1028 | echo "PATH: $as_dir"
|
---|
1029 | done
|
---|
1030 |
|
---|
1031 | } >&5
|
---|
1032 |
|
---|
1033 | cat >&5 <<_ACEOF
|
---|
1034 |
|
---|
1035 |
|
---|
1036 | ## ----------- ##
|
---|
1037 | ## Core tests. ##
|
---|
1038 | ## ----------- ##
|
---|
1039 |
|
---|
1040 | _ACEOF
|
---|
1041 |
|
---|
1042 |
|
---|
1043 | # Keep a trace of the command line.
|
---|
1044 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1045 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1046 | # Also quote any args containing shell meta-characters.
|
---|
1047 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1048 | ac_configure_args=
|
---|
1049 | ac_configure_args0=
|
---|
1050 | ac_configure_args1=
|
---|
1051 | ac_sep=
|
---|
1052 | ac_must_keep_next=false
|
---|
1053 | for ac_pass in 1 2
|
---|
1054 | do
|
---|
1055 | for ac_arg
|
---|
1056 | do
|
---|
1057 | case $ac_arg in
|
---|
1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1060 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1061 | continue ;;
|
---|
1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1064 | esac
|
---|
1065 | case $ac_pass in
|
---|
1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1067 | 2)
|
---|
1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1069 | if test $ac_must_keep_next = true; then
|
---|
1070 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1071 | else
|
---|
1072 | case $ac_arg in
|
---|
1073 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1076 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1077 | case "$ac_configure_args0 " in
|
---|
1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1079 | esac
|
---|
1080 | ;;
|
---|
1081 | -* ) ac_must_keep_next=true ;;
|
---|
1082 | esac
|
---|
1083 | fi
|
---|
1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1085 | # Get rid of the leading space.
|
---|
1086 | ac_sep=" "
|
---|
1087 | ;;
|
---|
1088 | esac
|
---|
1089 | done
|
---|
1090 | done
|
---|
1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1093 |
|
---|
1094 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1095 | # config.log. We remove comments because anyway the quotes in there
|
---|
1096 | # would cause problems or look ugly.
|
---|
1097 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1098 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1099 | trap 'exit_status=$?
|
---|
1100 | # Save into config.log some information that might help in debugging.
|
---|
1101 | {
|
---|
1102 | echo
|
---|
1103 |
|
---|
1104 | cat <<\_ASBOX
|
---|
1105 | ## ---------------- ##
|
---|
1106 | ## Cache variables. ##
|
---|
1107 | ## ---------------- ##
|
---|
1108 | _ASBOX
|
---|
1109 | echo
|
---|
1110 | # The following way of writing the cache mishandles newlines in values,
|
---|
1111 | {
|
---|
1112 | (set) 2>&1 |
|
---|
1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1114 | *ac_space=\ *)
|
---|
1115 | sed -n \
|
---|
1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1118 | ;;
|
---|
1119 | *)
|
---|
1120 | sed -n \
|
---|
1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1122 | ;;
|
---|
1123 | esac;
|
---|
1124 | }
|
---|
1125 | echo
|
---|
1126 |
|
---|
1127 | cat <<\_ASBOX
|
---|
1128 | ## ----------------- ##
|
---|
1129 | ## Output variables. ##
|
---|
1130 | ## ----------------- ##
|
---|
1131 | _ASBOX
|
---|
1132 | echo
|
---|
1133 | for ac_var in $ac_subst_vars
|
---|
1134 | do
|
---|
1135 | eval ac_val=$`echo $ac_var`
|
---|
1136 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1137 | done | sort
|
---|
1138 | echo
|
---|
1139 |
|
---|
1140 | if test -n "$ac_subst_files"; then
|
---|
1141 | cat <<\_ASBOX
|
---|
1142 | ## ------------- ##
|
---|
1143 | ## Output files. ##
|
---|
1144 | ## ------------- ##
|
---|
1145 | _ASBOX
|
---|
1146 | echo
|
---|
1147 | for ac_var in $ac_subst_files
|
---|
1148 | do
|
---|
1149 | eval ac_val=$`echo $ac_var`
|
---|
1150 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1151 | done | sort
|
---|
1152 | echo
|
---|
1153 | fi
|
---|
1154 |
|
---|
1155 | if test -s confdefs.h; then
|
---|
1156 | cat <<\_ASBOX
|
---|
1157 | ## ----------- ##
|
---|
1158 | ## confdefs.h. ##
|
---|
1159 | ## ----------- ##
|
---|
1160 | _ASBOX
|
---|
1161 | echo
|
---|
1162 | sed "/^$/d" confdefs.h | sort
|
---|
1163 | echo
|
---|
1164 | fi
|
---|
1165 | test "$ac_signal" != 0 &&
|
---|
1166 | echo "$as_me: caught signal $ac_signal"
|
---|
1167 | echo "$as_me: exit $exit_status"
|
---|
1168 | } >&5
|
---|
1169 | rm -f core *.core &&
|
---|
1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1171 | exit $exit_status
|
---|
1172 | ' 0
|
---|
1173 | for ac_signal in 1 2 13 15; do
|
---|
1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1175 | done
|
---|
1176 | ac_signal=0
|
---|
1177 |
|
---|
1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1179 | rm -rf conftest* confdefs.h
|
---|
1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1181 | echo >confdefs.h
|
---|
1182 |
|
---|
1183 | # Predefined preprocessor variables.
|
---|
1184 |
|
---|
1185 | cat >>confdefs.h <<_ACEOF
|
---|
1186 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1187 | _ACEOF
|
---|
1188 |
|
---|
1189 |
|
---|
1190 | cat >>confdefs.h <<_ACEOF
|
---|
1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1192 | _ACEOF
|
---|
1193 |
|
---|
1194 |
|
---|
1195 | cat >>confdefs.h <<_ACEOF
|
---|
1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1197 | _ACEOF
|
---|
1198 |
|
---|
1199 |
|
---|
1200 | cat >>confdefs.h <<_ACEOF
|
---|
1201 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1202 | _ACEOF
|
---|
1203 |
|
---|
1204 |
|
---|
1205 | cat >>confdefs.h <<_ACEOF
|
---|
1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1207 | _ACEOF
|
---|
1208 |
|
---|
1209 |
|
---|
1210 | # Let the site file select an alternate cache file if it wants to.
|
---|
1211 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1212 | if test -z "$CONFIG_SITE"; then
|
---|
1213 | if test "x$prefix" != xNONE; then
|
---|
1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1215 | else
|
---|
1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1217 | fi
|
---|
1218 | fi
|
---|
1219 | for ac_site_file in $CONFIG_SITE; do
|
---|
1220 | if test -r "$ac_site_file"; then
|
---|
1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1222 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1223 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1224 | . "$ac_site_file"
|
---|
1225 | fi
|
---|
1226 | done
|
---|
1227 |
|
---|
1228 | if test -r "$cache_file"; then
|
---|
1229 | # Some versions of bash will fail to source /dev/null (special
|
---|
1230 | # files actually), so we avoid doing that.
|
---|
1231 | if test -f "$cache_file"; then
|
---|
1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1233 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1234 | case $cache_file in
|
---|
1235 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1236 | *) . ./$cache_file;;
|
---|
1237 | esac
|
---|
1238 | fi
|
---|
1239 | else
|
---|
1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1241 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1242 | >$cache_file
|
---|
1243 | fi
|
---|
1244 |
|
---|
1245 | # Check that the precious variables saved in the cache have kept the same
|
---|
1246 | # value.
|
---|
1247 | ac_cache_corrupted=false
|
---|
1248 | for ac_var in `(set) 2>&1 |
|
---|
1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1251 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1253 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1254 | case $ac_old_set,$ac_new_set in
|
---|
1255 | set,)
|
---|
1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1258 | ac_cache_corrupted=: ;;
|
---|
1259 | ,set)
|
---|
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1262 | ac_cache_corrupted=: ;;
|
---|
1263 | ,);;
|
---|
1264 | *)
|
---|
1265 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1269 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1271 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1272 | ac_cache_corrupted=:
|
---|
1273 | fi;;
|
---|
1274 | esac
|
---|
1275 | # Pass precious variables to config.status.
|
---|
1276 | if test "$ac_new_set" = set; then
|
---|
1277 | case $ac_new_val in
|
---|
1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1280 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1281 | esac
|
---|
1282 | case " $ac_configure_args " in
|
---|
1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1285 | esac
|
---|
1286 | fi
|
---|
1287 | done
|
---|
1288 | if $ac_cache_corrupted; then
|
---|
1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1293 | { (exit 1); exit 1; }; }
|
---|
1294 | fi
|
---|
1295 |
|
---|
1296 | ac_ext=c
|
---|
1297 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1301 |
|
---|
1302 |
|
---|
1303 |
|
---|
1304 |
|
---|
1305 |
|
---|
1306 |
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 |
|
---|
1314 |
|
---|
1315 |
|
---|
1316 |
|
---|
1317 |
|
---|
1318 |
|
---|
1319 |
|
---|
1320 | ac_config_headers="$ac_config_headers config.h"
|
---|
1321 |
|
---|
1322 |
|
---|
1323 |
|
---|
1324 |
|
---|
1325 | PACKAGE=gsdl
|
---|
1326 | VERSION=2.82-svn
|
---|
1327 | cat >>confdefs.h <<_ACEOF
|
---|
1328 | #define PACKAGE "$PACKAGE"
|
---|
1329 | _ACEOF
|
---|
1330 |
|
---|
1331 | cat >>confdefs.h <<_ACEOF
|
---|
1332 | #define VERSION "$VERSION"
|
---|
1333 | _ACEOF
|
---|
1334 |
|
---|
1335 |
|
---|
1336 |
|
---|
1337 |
|
---|
1338 | USE_FASTCGI=0
|
---|
1339 | if test USE_FASTCGI = 1; then
|
---|
1340 | cat >>confdefs.h <<\_ACEOF
|
---|
1341 | #define USE_FASTCGI 1
|
---|
1342 | _ACEOF
|
---|
1343 |
|
---|
1344 |
|
---|
1345 | fi
|
---|
1346 |
|
---|
1347 | if test USE_LANGACTION = 1; then
|
---|
1348 | cat >>confdefs.h <<\_ACEOF
|
---|
1349 | #define USE_LANGACTION 1
|
---|
1350 | _ACEOF
|
---|
1351 |
|
---|
1352 |
|
---|
1353 | fi
|
---|
1354 |
|
---|
1355 | # Check whether --enable-corba or --disable-corba was given.
|
---|
1356 | if test "${enable_corba+set}" = set; then
|
---|
1357 | enableval="$enable_corba"
|
---|
1358 | USE_CORBA=1
|
---|
1359 | else
|
---|
1360 | USE_CORBA=0
|
---|
1361 | fi;
|
---|
1362 | cat >>confdefs.h <<_ACEOF
|
---|
1363 | #define USE_CORBA $USE_CORBA
|
---|
1364 | _ACEOF
|
---|
1365 |
|
---|
1366 |
|
---|
1367 |
|
---|
1368 |
|
---|
1369 | # Check whether --with-micodir or --without-micodir was given.
|
---|
1370 | if test "${with_micodir+set}" = set; then
|
---|
1371 | withval="$with_micodir"
|
---|
1372 | MICO_DIR=$enableval
|
---|
1373 | else
|
---|
1374 | MICO_DIR="default"
|
---|
1375 | fi;
|
---|
1376 | cat >>confdefs.h <<_ACEOF
|
---|
1377 | #define MICO_DIR "$MICO_DIR"
|
---|
1378 | _ACEOF
|
---|
1379 |
|
---|
1380 |
|
---|
1381 |
|
---|
1382 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
1383 | if test "${enable_z3950+set}" = set; then
|
---|
1384 | enableval="$enable_z3950"
|
---|
1385 | USE_Z3950=1
|
---|
1386 | else
|
---|
1387 | USE_Z3950=0
|
---|
1388 | fi;
|
---|
1389 | if test USE_Z3950 = 1; then
|
---|
1390 | cat >>confdefs.h <<\_ACEOF
|
---|
1391 | #define USE_Z3950 $USE_Z3950
|
---|
1392 | _ACEOF
|
---|
1393 |
|
---|
1394 |
|
---|
1395 | fi
|
---|
1396 |
|
---|
1397 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
1398 | if test "${enable_yaz+set}" = set; then
|
---|
1399 | enableval="$enable_yaz"
|
---|
1400 | USE_YAZ=0
|
---|
1401 | else
|
---|
1402 | USE_YAZ=1
|
---|
1403 | fi;
|
---|
1404 | cat >>confdefs.h <<\_ACEOF
|
---|
1405 | #define USE_YAZ $USE_YAZ
|
---|
1406 | _ACEOF
|
---|
1407 |
|
---|
1408 |
|
---|
1409 |
|
---|
1410 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
1411 | if test "${enable_accentfold+set}" = set; then
|
---|
1412 | enableval="$enable_accentfold"
|
---|
1413 | ENABLE_ACCENTFOLD=0
|
---|
1414 | else
|
---|
1415 | ENABLE_ACCENTFOLD=1
|
---|
1416 | fi;
|
---|
1417 | cat >>confdefs.h <<\_ACEOF
|
---|
1418 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
1419 | _ACEOF
|
---|
1420 |
|
---|
1421 |
|
---|
1422 |
|
---|
1423 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
1424 | if test "${enable_sqlite+set}" = set; then
|
---|
1425 | enableval="$enable_sqlite"
|
---|
1426 | USE_SQLITE=0
|
---|
1427 | else
|
---|
1428 | USE_SQLITE=1
|
---|
1429 | fi;
|
---|
1430 | cat >>confdefs.h <<\_ACEOF
|
---|
1431 | #define USE_SQLITE $USE_SQLITE
|
---|
1432 | _ACEOF
|
---|
1433 |
|
---|
1434 |
|
---|
1435 |
|
---|
1436 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
1437 | if test "${enable_apache_httpd+set}" = set; then
|
---|
1438 | enableval="$enable_apache_httpd"
|
---|
1439 | USE_APACHE_HTTPD=1
|
---|
1440 | else
|
---|
1441 | USE_APACHE_HTTPD=0
|
---|
1442 | fi;
|
---|
1443 | cat >>confdefs.h <<\_ACEOF
|
---|
1444 | #define USE_APACHE_HTTPD $USE_APACHE_HTTPD
|
---|
1445 | _ACEOF
|
---|
1446 |
|
---|
1447 |
|
---|
1448 |
|
---|
1449 |
|
---|
1450 | LDFLAGS=$LDFLAGS
|
---|
1451 |
|
---|
1452 | if test -z "$CFLAGS"; then
|
---|
1453 | CFLAGS=-O2
|
---|
1454 | fi
|
---|
1455 |
|
---|
1456 |
|
---|
1457 |
|
---|
1458 | ac_ext=c
|
---|
1459 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1463 | if test -n "$ac_tool_prefix"; then
|
---|
1464 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1465 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1466 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1468 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1469 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1470 | else
|
---|
1471 | if test -n "$CC"; then
|
---|
1472 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1473 | else
|
---|
1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1475 | for as_dir in $PATH
|
---|
1476 | do
|
---|
1477 | IFS=$as_save_IFS
|
---|
1478 | test -z "$as_dir" && as_dir=.
|
---|
1479 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1481 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1483 | break 2
|
---|
1484 | fi
|
---|
1485 | done
|
---|
1486 | done
|
---|
1487 |
|
---|
1488 | fi
|
---|
1489 | fi
|
---|
1490 | CC=$ac_cv_prog_CC
|
---|
1491 | if test -n "$CC"; then
|
---|
1492 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1493 | echo "${ECHO_T}$CC" >&6
|
---|
1494 | else
|
---|
1495 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1496 | echo "${ECHO_T}no" >&6
|
---|
1497 | fi
|
---|
1498 |
|
---|
1499 | fi
|
---|
1500 | if test -z "$ac_cv_prog_CC"; then
|
---|
1501 | ac_ct_CC=$CC
|
---|
1502 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1503 | set dummy gcc; ac_word=$2
|
---|
1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1507 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1508 | else
|
---|
1509 | if test -n "$ac_ct_CC"; then
|
---|
1510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1511 | else
|
---|
1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1513 | for as_dir in $PATH
|
---|
1514 | do
|
---|
1515 | IFS=$as_save_IFS
|
---|
1516 | test -z "$as_dir" && as_dir=.
|
---|
1517 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1519 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1521 | break 2
|
---|
1522 | fi
|
---|
1523 | done
|
---|
1524 | done
|
---|
1525 |
|
---|
1526 | fi
|
---|
1527 | fi
|
---|
1528 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1529 | if test -n "$ac_ct_CC"; then
|
---|
1530 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1531 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1532 | else
|
---|
1533 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1534 | echo "${ECHO_T}no" >&6
|
---|
1535 | fi
|
---|
1536 |
|
---|
1537 | CC=$ac_ct_CC
|
---|
1538 | else
|
---|
1539 | CC="$ac_cv_prog_CC"
|
---|
1540 | fi
|
---|
1541 |
|
---|
1542 | if test -z "$CC"; then
|
---|
1543 | if test -n "$ac_tool_prefix"; then
|
---|
1544 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1545 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1546 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1548 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1549 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1550 | else
|
---|
1551 | if test -n "$CC"; then
|
---|
1552 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1553 | else
|
---|
1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1555 | for as_dir in $PATH
|
---|
1556 | do
|
---|
1557 | IFS=$as_save_IFS
|
---|
1558 | test -z "$as_dir" && as_dir=.
|
---|
1559 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1561 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1563 | break 2
|
---|
1564 | fi
|
---|
1565 | done
|
---|
1566 | done
|
---|
1567 |
|
---|
1568 | fi
|
---|
1569 | fi
|
---|
1570 | CC=$ac_cv_prog_CC
|
---|
1571 | if test -n "$CC"; then
|
---|
1572 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1573 | echo "${ECHO_T}$CC" >&6
|
---|
1574 | else
|
---|
1575 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1576 | echo "${ECHO_T}no" >&6
|
---|
1577 | fi
|
---|
1578 |
|
---|
1579 | fi
|
---|
1580 | if test -z "$ac_cv_prog_CC"; then
|
---|
1581 | ac_ct_CC=$CC
|
---|
1582 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1583 | set dummy cc; ac_word=$2
|
---|
1584 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1586 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1587 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1588 | else
|
---|
1589 | if test -n "$ac_ct_CC"; then
|
---|
1590 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1591 | else
|
---|
1592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1593 | for as_dir in $PATH
|
---|
1594 | do
|
---|
1595 | IFS=$as_save_IFS
|
---|
1596 | test -z "$as_dir" && as_dir=.
|
---|
1597 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1599 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1601 | break 2
|
---|
1602 | fi
|
---|
1603 | done
|
---|
1604 | done
|
---|
1605 |
|
---|
1606 | fi
|
---|
1607 | fi
|
---|
1608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1609 | if test -n "$ac_ct_CC"; then
|
---|
1610 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1611 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1612 | else
|
---|
1613 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1614 | echo "${ECHO_T}no" >&6
|
---|
1615 | fi
|
---|
1616 |
|
---|
1617 | CC=$ac_ct_CC
|
---|
1618 | else
|
---|
1619 | CC="$ac_cv_prog_CC"
|
---|
1620 | fi
|
---|
1621 |
|
---|
1622 | fi
|
---|
1623 | if test -z "$CC"; then
|
---|
1624 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1625 | set dummy cc; ac_word=$2
|
---|
1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1628 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1629 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1630 | else
|
---|
1631 | if test -n "$CC"; then
|
---|
1632 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1633 | else
|
---|
1634 | ac_prog_rejected=no
|
---|
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1636 | for as_dir in $PATH
|
---|
1637 | do
|
---|
1638 | IFS=$as_save_IFS
|
---|
1639 | test -z "$as_dir" && as_dir=.
|
---|
1640 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1642 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1643 | ac_prog_rejected=yes
|
---|
1644 | continue
|
---|
1645 | fi
|
---|
1646 | ac_cv_prog_CC="cc"
|
---|
1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1648 | break 2
|
---|
1649 | fi
|
---|
1650 | done
|
---|
1651 | done
|
---|
1652 |
|
---|
1653 | if test $ac_prog_rejected = yes; then
|
---|
1654 | # We found a bogon in the path, so make sure we never use it.
|
---|
1655 | set dummy $ac_cv_prog_CC
|
---|
1656 | shift
|
---|
1657 | if test $# != 0; then
|
---|
1658 | # We chose a different compiler from the bogus one.
|
---|
1659 | # However, it has the same basename, so the bogon will be chosen
|
---|
1660 | # first if we set CC to just the basename; use the full file name.
|
---|
1661 | shift
|
---|
1662 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1663 | fi
|
---|
1664 | fi
|
---|
1665 | fi
|
---|
1666 | fi
|
---|
1667 | CC=$ac_cv_prog_CC
|
---|
1668 | if test -n "$CC"; then
|
---|
1669 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1670 | echo "${ECHO_T}$CC" >&6
|
---|
1671 | else
|
---|
1672 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1673 | echo "${ECHO_T}no" >&6
|
---|
1674 | fi
|
---|
1675 |
|
---|
1676 | fi
|
---|
1677 | if test -z "$CC"; then
|
---|
1678 | if test -n "$ac_tool_prefix"; then
|
---|
1679 | for ac_prog in cl
|
---|
1680 | do
|
---|
1681 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1682 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1683 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1685 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1687 | else
|
---|
1688 | if test -n "$CC"; then
|
---|
1689 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1690 | else
|
---|
1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1692 | for as_dir in $PATH
|
---|
1693 | do
|
---|
1694 | IFS=$as_save_IFS
|
---|
1695 | test -z "$as_dir" && as_dir=.
|
---|
1696 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1698 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1700 | break 2
|
---|
1701 | fi
|
---|
1702 | done
|
---|
1703 | done
|
---|
1704 |
|
---|
1705 | fi
|
---|
1706 | fi
|
---|
1707 | CC=$ac_cv_prog_CC
|
---|
1708 | if test -n "$CC"; then
|
---|
1709 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1710 | echo "${ECHO_T}$CC" >&6
|
---|
1711 | else
|
---|
1712 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1713 | echo "${ECHO_T}no" >&6
|
---|
1714 | fi
|
---|
1715 |
|
---|
1716 | test -n "$CC" && break
|
---|
1717 | done
|
---|
1718 | fi
|
---|
1719 | if test -z "$CC"; then
|
---|
1720 | ac_ct_CC=$CC
|
---|
1721 | for ac_prog in cl
|
---|
1722 | do
|
---|
1723 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1724 | set dummy $ac_prog; ac_word=$2
|
---|
1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1727 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1728 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1729 | else
|
---|
1730 | if test -n "$ac_ct_CC"; then
|
---|
1731 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1732 | else
|
---|
1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1734 | for as_dir in $PATH
|
---|
1735 | do
|
---|
1736 | IFS=$as_save_IFS
|
---|
1737 | test -z "$as_dir" && as_dir=.
|
---|
1738 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1740 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1742 | break 2
|
---|
1743 | fi
|
---|
1744 | done
|
---|
1745 | done
|
---|
1746 |
|
---|
1747 | fi
|
---|
1748 | fi
|
---|
1749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1750 | if test -n "$ac_ct_CC"; then
|
---|
1751 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1752 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1753 | else
|
---|
1754 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1755 | echo "${ECHO_T}no" >&6
|
---|
1756 | fi
|
---|
1757 |
|
---|
1758 | test -n "$ac_ct_CC" && break
|
---|
1759 | done
|
---|
1760 |
|
---|
1761 | CC=$ac_ct_CC
|
---|
1762 | fi
|
---|
1763 |
|
---|
1764 | fi
|
---|
1765 |
|
---|
1766 |
|
---|
1767 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1768 | See \`config.log' for more details." >&5
|
---|
1769 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1770 | See \`config.log' for more details." >&2;}
|
---|
1771 | { (exit 1); exit 1; }; }
|
---|
1772 |
|
---|
1773 | # Provide some information about the compiler.
|
---|
1774 | echo "$as_me:$LINENO:" \
|
---|
1775 | "checking for C compiler version" >&5
|
---|
1776 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1777 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1778 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1779 | ac_status=$?
|
---|
1780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1781 | (exit $ac_status); }
|
---|
1782 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1783 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1784 | ac_status=$?
|
---|
1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1786 | (exit $ac_status); }
|
---|
1787 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1788 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1789 | ac_status=$?
|
---|
1790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1791 | (exit $ac_status); }
|
---|
1792 |
|
---|
1793 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1794 | /* confdefs.h. */
|
---|
1795 | _ACEOF
|
---|
1796 | cat confdefs.h >>conftest.$ac_ext
|
---|
1797 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1798 | /* end confdefs.h. */
|
---|
1799 |
|
---|
1800 | int
|
---|
1801 | main ()
|
---|
1802 | {
|
---|
1803 |
|
---|
1804 | ;
|
---|
1805 | return 0;
|
---|
1806 | }
|
---|
1807 | _ACEOF
|
---|
1808 | ac_clean_files_save=$ac_clean_files
|
---|
1809 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1810 | # Try to create an executable without -o first, disregard a.out.
|
---|
1811 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1812 | # of exeext.
|
---|
1813 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1814 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1815 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1816 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1817 | (eval $ac_link_default) 2>&5
|
---|
1818 | ac_status=$?
|
---|
1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1820 | (exit $ac_status); }; then
|
---|
1821 | # Find the output, starting from the most likely. This scheme is
|
---|
1822 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1823 | # resort.
|
---|
1824 |
|
---|
1825 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1826 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1827 | ac_cv_exeext=
|
---|
1828 | # b.out is created by i960 compilers.
|
---|
1829 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1830 | do
|
---|
1831 | test -f "$ac_file" || continue
|
---|
1832 | case $ac_file in
|
---|
1833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1834 | ;;
|
---|
1835 | conftest.$ac_ext )
|
---|
1836 | # This is the source file.
|
---|
1837 | ;;
|
---|
1838 | [ab].out )
|
---|
1839 | # We found the default executable, but exeext='' is most
|
---|
1840 | # certainly right.
|
---|
1841 | break;;
|
---|
1842 | *.* )
|
---|
1843 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1844 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1845 | # but it would be cool to find out if it's true. Does anybody
|
---|
1846 | # maintain Libtool? --akim.
|
---|
1847 | export ac_cv_exeext
|
---|
1848 | break;;
|
---|
1849 | * )
|
---|
1850 | break;;
|
---|
1851 | esac
|
---|
1852 | done
|
---|
1853 | else
|
---|
1854 | echo "$as_me: failed program was:" >&5
|
---|
1855 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1856 |
|
---|
1857 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1858 | See \`config.log' for more details." >&5
|
---|
1859 | echo "$as_me: error: C compiler cannot create executables
|
---|
1860 | See \`config.log' for more details." >&2;}
|
---|
1861 | { (exit 77); exit 77; }; }
|
---|
1862 | fi
|
---|
1863 |
|
---|
1864 | ac_exeext=$ac_cv_exeext
|
---|
1865 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1866 | echo "${ECHO_T}$ac_file" >&6
|
---|
1867 |
|
---|
1868 | # Check the compiler produces executables we can run. If not, either
|
---|
1869 | # the compiler is broken, or we cross compile.
|
---|
1870 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1871 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1872 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1873 | # If not cross compiling, check that we can run a simple program.
|
---|
1874 | if test "$cross_compiling" != yes; then
|
---|
1875 | if { ac_try='./$ac_file'
|
---|
1876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1877 | (eval $ac_try) 2>&5
|
---|
1878 | ac_status=$?
|
---|
1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1880 | (exit $ac_status); }; }; then
|
---|
1881 | cross_compiling=no
|
---|
1882 | else
|
---|
1883 | if test "$cross_compiling" = maybe; then
|
---|
1884 | cross_compiling=yes
|
---|
1885 | else
|
---|
1886 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1887 | If you meant to cross compile, use \`--host'.
|
---|
1888 | See \`config.log' for more details." >&5
|
---|
1889 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1890 | If you meant to cross compile, use \`--host'.
|
---|
1891 | See \`config.log' for more details." >&2;}
|
---|
1892 | { (exit 1); exit 1; }; }
|
---|
1893 | fi
|
---|
1894 | fi
|
---|
1895 | fi
|
---|
1896 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1897 | echo "${ECHO_T}yes" >&6
|
---|
1898 |
|
---|
1899 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1900 | ac_clean_files=$ac_clean_files_save
|
---|
1901 | # Check the compiler produces executables we can run. If not, either
|
---|
1902 | # the compiler is broken, or we cross compile.
|
---|
1903 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1904 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1905 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
1906 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1907 |
|
---|
1908 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
1909 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
1910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
1911 | (eval $ac_link) 2>&5
|
---|
1912 | ac_status=$?
|
---|
1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1914 | (exit $ac_status); }; then
|
---|
1915 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1916 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1917 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1918 | # `rm'.
|
---|
1919 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
1920 | test -f "$ac_file" || continue
|
---|
1921 | case $ac_file in
|
---|
1922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
1923 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1924 | export ac_cv_exeext
|
---|
1925 | break;;
|
---|
1926 | * ) break;;
|
---|
1927 | esac
|
---|
1928 | done
|
---|
1929 | else
|
---|
1930 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
1931 | See \`config.log' for more details." >&5
|
---|
1932 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
1933 | See \`config.log' for more details." >&2;}
|
---|
1934 | { (exit 1); exit 1; }; }
|
---|
1935 | fi
|
---|
1936 |
|
---|
1937 | rm -f conftest$ac_cv_exeext
|
---|
1938 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
1939 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1940 |
|
---|
1941 | rm -f conftest.$ac_ext
|
---|
1942 | EXEEXT=$ac_cv_exeext
|
---|
1943 | ac_exeext=$EXEEXT
|
---|
1944 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
1945 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
1946 | if test "${ac_cv_objext+set}" = set; then
|
---|
1947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1948 | else
|
---|
1949 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1950 | /* confdefs.h. */
|
---|
1951 | _ACEOF
|
---|
1952 | cat confdefs.h >>conftest.$ac_ext
|
---|
1953 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1954 | /* end confdefs.h. */
|
---|
1955 |
|
---|
1956 | int
|
---|
1957 | main ()
|
---|
1958 | {
|
---|
1959 |
|
---|
1960 | ;
|
---|
1961 | return 0;
|
---|
1962 | }
|
---|
1963 | _ACEOF
|
---|
1964 | rm -f conftest.o conftest.obj
|
---|
1965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1966 | (eval $ac_compile) 2>&5
|
---|
1967 | ac_status=$?
|
---|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1969 | (exit $ac_status); }; then
|
---|
1970 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1971 | case $ac_file in
|
---|
1972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
1973 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1974 | break;;
|
---|
1975 | esac
|
---|
1976 | done
|
---|
1977 | else
|
---|
1978 | echo "$as_me: failed program was:" >&5
|
---|
1979 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1980 |
|
---|
1981 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
1982 | See \`config.log' for more details." >&5
|
---|
1983 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
1984 | See \`config.log' for more details." >&2;}
|
---|
1985 | { (exit 1); exit 1; }; }
|
---|
1986 | fi
|
---|
1987 |
|
---|
1988 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1989 | fi
|
---|
1990 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
1991 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1992 | OBJEXT=$ac_cv_objext
|
---|
1993 | ac_objext=$OBJEXT
|
---|
1994 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
1995 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
1996 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1998 | else
|
---|
1999 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2000 | /* confdefs.h. */
|
---|
2001 | _ACEOF
|
---|
2002 | cat confdefs.h >>conftest.$ac_ext
|
---|
2003 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2004 | /* end confdefs.h. */
|
---|
2005 |
|
---|
2006 | int
|
---|
2007 | main ()
|
---|
2008 | {
|
---|
2009 | #ifndef __GNUC__
|
---|
2010 | choke me
|
---|
2011 | #endif
|
---|
2012 |
|
---|
2013 | ;
|
---|
2014 | return 0;
|
---|
2015 | }
|
---|
2016 | _ACEOF
|
---|
2017 | rm -f conftest.$ac_objext
|
---|
2018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2019 | (eval $ac_compile) 2>conftest.er1
|
---|
2020 | ac_status=$?
|
---|
2021 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2022 | rm -f conftest.er1
|
---|
2023 | cat conftest.err >&5
|
---|
2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2025 | (exit $ac_status); } &&
|
---|
2026 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2027 | || test ! -s conftest.err'
|
---|
2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2029 | (eval $ac_try) 2>&5
|
---|
2030 | ac_status=$?
|
---|
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2032 | (exit $ac_status); }; } &&
|
---|
2033 | { ac_try='test -s conftest.$ac_objext'
|
---|
2034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2035 | (eval $ac_try) 2>&5
|
---|
2036 | ac_status=$?
|
---|
2037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2038 | (exit $ac_status); }; }; then
|
---|
2039 | ac_compiler_gnu=yes
|
---|
2040 | else
|
---|
2041 | echo "$as_me: failed program was:" >&5
|
---|
2042 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2043 |
|
---|
2044 | ac_compiler_gnu=no
|
---|
2045 | fi
|
---|
2046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2047 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2048 |
|
---|
2049 | fi
|
---|
2050 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2051 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2052 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2053 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2054 | ac_save_CFLAGS=$CFLAGS
|
---|
2055 | CFLAGS="-g"
|
---|
2056 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2057 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2058 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2059 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2060 | else
|
---|
2061 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2062 | /* confdefs.h. */
|
---|
2063 | _ACEOF
|
---|
2064 | cat confdefs.h >>conftest.$ac_ext
|
---|
2065 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2066 | /* end confdefs.h. */
|
---|
2067 |
|
---|
2068 | int
|
---|
2069 | main ()
|
---|
2070 | {
|
---|
2071 |
|
---|
2072 | ;
|
---|
2073 | return 0;
|
---|
2074 | }
|
---|
2075 | _ACEOF
|
---|
2076 | rm -f conftest.$ac_objext
|
---|
2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2078 | (eval $ac_compile) 2>conftest.er1
|
---|
2079 | ac_status=$?
|
---|
2080 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2081 | rm -f conftest.er1
|
---|
2082 | cat conftest.err >&5
|
---|
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2084 | (exit $ac_status); } &&
|
---|
2085 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2086 | || test ! -s conftest.err'
|
---|
2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2088 | (eval $ac_try) 2>&5
|
---|
2089 | ac_status=$?
|
---|
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2091 | (exit $ac_status); }; } &&
|
---|
2092 | { ac_try='test -s conftest.$ac_objext'
|
---|
2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2094 | (eval $ac_try) 2>&5
|
---|
2095 | ac_status=$?
|
---|
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2097 | (exit $ac_status); }; }; then
|
---|
2098 | ac_cv_prog_cc_g=yes
|
---|
2099 | else
|
---|
2100 | echo "$as_me: failed program was:" >&5
|
---|
2101 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2102 |
|
---|
2103 | ac_cv_prog_cc_g=no
|
---|
2104 | fi
|
---|
2105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2106 | fi
|
---|
2107 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2108 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2109 | if test "$ac_test_CFLAGS" = set; then
|
---|
2110 | CFLAGS=$ac_save_CFLAGS
|
---|
2111 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2112 | if test "$GCC" = yes; then
|
---|
2113 | CFLAGS="-g -O2"
|
---|
2114 | else
|
---|
2115 | CFLAGS="-g"
|
---|
2116 | fi
|
---|
2117 | else
|
---|
2118 | if test "$GCC" = yes; then
|
---|
2119 | CFLAGS="-O2"
|
---|
2120 | else
|
---|
2121 | CFLAGS=
|
---|
2122 | fi
|
---|
2123 | fi
|
---|
2124 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2125 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2126 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2128 | else
|
---|
2129 | ac_cv_prog_cc_stdc=no
|
---|
2130 | ac_save_CC=$CC
|
---|
2131 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2132 | /* confdefs.h. */
|
---|
2133 | _ACEOF
|
---|
2134 | cat confdefs.h >>conftest.$ac_ext
|
---|
2135 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2136 | /* end confdefs.h. */
|
---|
2137 | #include <stdarg.h>
|
---|
2138 | #include <stdio.h>
|
---|
2139 | #include <sys/types.h>
|
---|
2140 | #include <sys/stat.h>
|
---|
2141 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2142 | struct buf { int x; };
|
---|
2143 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2144 | static char *e (p, i)
|
---|
2145 | char **p;
|
---|
2146 | int i;
|
---|
2147 | {
|
---|
2148 | return p[i];
|
---|
2149 | }
|
---|
2150 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2151 | {
|
---|
2152 | char *s;
|
---|
2153 | va_list v;
|
---|
2154 | va_start (v,p);
|
---|
2155 | s = g (p, va_arg (v,int));
|
---|
2156 | va_end (v);
|
---|
2157 | return s;
|
---|
2158 | }
|
---|
2159 |
|
---|
2160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2161 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2162 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2163 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2164 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2165 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2166 | that's true only with -std1. */
|
---|
2167 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2168 |
|
---|
2169 | int test (int i, double x);
|
---|
2170 | struct s1 {int (*f) (int a);};
|
---|
2171 | struct s2 {int (*f) (double a);};
|
---|
2172 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2173 | int argc;
|
---|
2174 | char **argv;
|
---|
2175 | int
|
---|
2176 | main ()
|
---|
2177 | {
|
---|
2178 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2179 | ;
|
---|
2180 | return 0;
|
---|
2181 | }
|
---|
2182 | _ACEOF
|
---|
2183 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2184 | # breaks some systems' header files.
|
---|
2185 | # AIX -qlanglvl=ansi
|
---|
2186 | # Ultrix and OSF/1 -std1
|
---|
2187 | # HP-UX 10.20 and later -Ae
|
---|
2188 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2189 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2190 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2191 | do
|
---|
2192 | CC="$ac_save_CC $ac_arg"
|
---|
2193 | rm -f conftest.$ac_objext
|
---|
2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2195 | (eval $ac_compile) 2>conftest.er1
|
---|
2196 | ac_status=$?
|
---|
2197 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2198 | rm -f conftest.er1
|
---|
2199 | cat conftest.err >&5
|
---|
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2201 | (exit $ac_status); } &&
|
---|
2202 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2203 | || test ! -s conftest.err'
|
---|
2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2205 | (eval $ac_try) 2>&5
|
---|
2206 | ac_status=$?
|
---|
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2208 | (exit $ac_status); }; } &&
|
---|
2209 | { ac_try='test -s conftest.$ac_objext'
|
---|
2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2211 | (eval $ac_try) 2>&5
|
---|
2212 | ac_status=$?
|
---|
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2214 | (exit $ac_status); }; }; then
|
---|
2215 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2216 | break
|
---|
2217 | else
|
---|
2218 | echo "$as_me: failed program was:" >&5
|
---|
2219 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2220 |
|
---|
2221 | fi
|
---|
2222 | rm -f conftest.err conftest.$ac_objext
|
---|
2223 | done
|
---|
2224 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2225 | CC=$ac_save_CC
|
---|
2226 |
|
---|
2227 | fi
|
---|
2228 |
|
---|
2229 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2230 | x|xno)
|
---|
2231 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2232 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2233 | *)
|
---|
2234 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2235 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2236 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2237 | esac
|
---|
2238 |
|
---|
2239 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2240 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2241 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2242 | # the declaration of exit, since it's the most demanding environment.
|
---|
2243 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2244 | #ifndef __cplusplus
|
---|
2245 | choke me
|
---|
2246 | #endif
|
---|
2247 | _ACEOF
|
---|
2248 | rm -f conftest.$ac_objext
|
---|
2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2250 | (eval $ac_compile) 2>conftest.er1
|
---|
2251 | ac_status=$?
|
---|
2252 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2253 | rm -f conftest.er1
|
---|
2254 | cat conftest.err >&5
|
---|
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2256 | (exit $ac_status); } &&
|
---|
2257 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2258 | || test ! -s conftest.err'
|
---|
2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2260 | (eval $ac_try) 2>&5
|
---|
2261 | ac_status=$?
|
---|
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2263 | (exit $ac_status); }; } &&
|
---|
2264 | { ac_try='test -s conftest.$ac_objext'
|
---|
2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2266 | (eval $ac_try) 2>&5
|
---|
2267 | ac_status=$?
|
---|
2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2269 | (exit $ac_status); }; }; then
|
---|
2270 | for ac_declaration in \
|
---|
2271 | '' \
|
---|
2272 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2273 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2274 | 'extern "C" void exit (int) throw ();' \
|
---|
2275 | 'extern "C" void exit (int);' \
|
---|
2276 | 'void exit (int);'
|
---|
2277 | do
|
---|
2278 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2279 | /* confdefs.h. */
|
---|
2280 | _ACEOF
|
---|
2281 | cat confdefs.h >>conftest.$ac_ext
|
---|
2282 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2283 | /* end confdefs.h. */
|
---|
2284 | $ac_declaration
|
---|
2285 | #include <stdlib.h>
|
---|
2286 | int
|
---|
2287 | main ()
|
---|
2288 | {
|
---|
2289 | exit (42);
|
---|
2290 | ;
|
---|
2291 | return 0;
|
---|
2292 | }
|
---|
2293 | _ACEOF
|
---|
2294 | rm -f conftest.$ac_objext
|
---|
2295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2296 | (eval $ac_compile) 2>conftest.er1
|
---|
2297 | ac_status=$?
|
---|
2298 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2299 | rm -f conftest.er1
|
---|
2300 | cat conftest.err >&5
|
---|
2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2302 | (exit $ac_status); } &&
|
---|
2303 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2304 | || test ! -s conftest.err'
|
---|
2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2306 | (eval $ac_try) 2>&5
|
---|
2307 | ac_status=$?
|
---|
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2309 | (exit $ac_status); }; } &&
|
---|
2310 | { ac_try='test -s conftest.$ac_objext'
|
---|
2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2312 | (eval $ac_try) 2>&5
|
---|
2313 | ac_status=$?
|
---|
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2315 | (exit $ac_status); }; }; then
|
---|
2316 | :
|
---|
2317 | else
|
---|
2318 | echo "$as_me: failed program was:" >&5
|
---|
2319 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2320 |
|
---|
2321 | continue
|
---|
2322 | fi
|
---|
2323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2324 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2325 | /* confdefs.h. */
|
---|
2326 | _ACEOF
|
---|
2327 | cat confdefs.h >>conftest.$ac_ext
|
---|
2328 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2329 | /* end confdefs.h. */
|
---|
2330 | $ac_declaration
|
---|
2331 | int
|
---|
2332 | main ()
|
---|
2333 | {
|
---|
2334 | exit (42);
|
---|
2335 | ;
|
---|
2336 | return 0;
|
---|
2337 | }
|
---|
2338 | _ACEOF
|
---|
2339 | rm -f conftest.$ac_objext
|
---|
2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2341 | (eval $ac_compile) 2>conftest.er1
|
---|
2342 | ac_status=$?
|
---|
2343 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2344 | rm -f conftest.er1
|
---|
2345 | cat conftest.err >&5
|
---|
2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2347 | (exit $ac_status); } &&
|
---|
2348 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2349 | || test ! -s conftest.err'
|
---|
2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2351 | (eval $ac_try) 2>&5
|
---|
2352 | ac_status=$?
|
---|
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2354 | (exit $ac_status); }; } &&
|
---|
2355 | { ac_try='test -s conftest.$ac_objext'
|
---|
2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2357 | (eval $ac_try) 2>&5
|
---|
2358 | ac_status=$?
|
---|
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2360 | (exit $ac_status); }; }; then
|
---|
2361 | break
|
---|
2362 | else
|
---|
2363 | echo "$as_me: failed program was:" >&5
|
---|
2364 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2365 |
|
---|
2366 | fi
|
---|
2367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2368 | done
|
---|
2369 | rm -f conftest*
|
---|
2370 | if test -n "$ac_declaration"; then
|
---|
2371 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2372 | echo $ac_declaration >>confdefs.h
|
---|
2373 | echo '#endif' >>confdefs.h
|
---|
2374 | fi
|
---|
2375 |
|
---|
2376 | else
|
---|
2377 | echo "$as_me: failed program was:" >&5
|
---|
2378 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2379 |
|
---|
2380 | fi
|
---|
2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2382 | ac_ext=c
|
---|
2383 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2387 |
|
---|
2388 | ac_ext=cc
|
---|
2389 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2393 | if test -n "$ac_tool_prefix"; then
|
---|
2394 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2395 | do
|
---|
2396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2398 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2400 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2401 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2402 | else
|
---|
2403 | if test -n "$CXX"; then
|
---|
2404 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2405 | else
|
---|
2406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2407 | for as_dir in $PATH
|
---|
2408 | do
|
---|
2409 | IFS=$as_save_IFS
|
---|
2410 | test -z "$as_dir" && as_dir=.
|
---|
2411 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2413 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2415 | break 2
|
---|
2416 | fi
|
---|
2417 | done
|
---|
2418 | done
|
---|
2419 |
|
---|
2420 | fi
|
---|
2421 | fi
|
---|
2422 | CXX=$ac_cv_prog_CXX
|
---|
2423 | if test -n "$CXX"; then
|
---|
2424 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2425 | echo "${ECHO_T}$CXX" >&6
|
---|
2426 | else
|
---|
2427 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2428 | echo "${ECHO_T}no" >&6
|
---|
2429 | fi
|
---|
2430 |
|
---|
2431 | test -n "$CXX" && break
|
---|
2432 | done
|
---|
2433 | fi
|
---|
2434 | if test -z "$CXX"; then
|
---|
2435 | ac_ct_CXX=$CXX
|
---|
2436 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2437 | do
|
---|
2438 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2439 | set dummy $ac_prog; ac_word=$2
|
---|
2440 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2442 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2443 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2444 | else
|
---|
2445 | if test -n "$ac_ct_CXX"; then
|
---|
2446 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2447 | else
|
---|
2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2449 | for as_dir in $PATH
|
---|
2450 | do
|
---|
2451 | IFS=$as_save_IFS
|
---|
2452 | test -z "$as_dir" && as_dir=.
|
---|
2453 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2455 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2457 | break 2
|
---|
2458 | fi
|
---|
2459 | done
|
---|
2460 | done
|
---|
2461 |
|
---|
2462 | fi
|
---|
2463 | fi
|
---|
2464 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2465 | if test -n "$ac_ct_CXX"; then
|
---|
2466 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
2467 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
2468 | else
|
---|
2469 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2470 | echo "${ECHO_T}no" >&6
|
---|
2471 | fi
|
---|
2472 |
|
---|
2473 | test -n "$ac_ct_CXX" && break
|
---|
2474 | done
|
---|
2475 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
2476 |
|
---|
2477 | CXX=$ac_ct_CXX
|
---|
2478 | fi
|
---|
2479 |
|
---|
2480 |
|
---|
2481 | # Provide some information about the compiler.
|
---|
2482 | echo "$as_me:$LINENO:" \
|
---|
2483 | "checking for C++ compiler version" >&5
|
---|
2484 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2485 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2486 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2487 | ac_status=$?
|
---|
2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2489 | (exit $ac_status); }
|
---|
2490 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2491 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2492 | ac_status=$?
|
---|
2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2494 | (exit $ac_status); }
|
---|
2495 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2496 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2497 | ac_status=$?
|
---|
2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2499 | (exit $ac_status); }
|
---|
2500 |
|
---|
2501 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
2502 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
2503 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
2504 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2505 | else
|
---|
2506 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2507 | /* confdefs.h. */
|
---|
2508 | _ACEOF
|
---|
2509 | cat confdefs.h >>conftest.$ac_ext
|
---|
2510 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2511 | /* end confdefs.h. */
|
---|
2512 |
|
---|
2513 | int
|
---|
2514 | main ()
|
---|
2515 | {
|
---|
2516 | #ifndef __GNUC__
|
---|
2517 | choke me
|
---|
2518 | #endif
|
---|
2519 |
|
---|
2520 | ;
|
---|
2521 | return 0;
|
---|
2522 | }
|
---|
2523 | _ACEOF
|
---|
2524 | rm -f conftest.$ac_objext
|
---|
2525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2526 | (eval $ac_compile) 2>conftest.er1
|
---|
2527 | ac_status=$?
|
---|
2528 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2529 | rm -f conftest.er1
|
---|
2530 | cat conftest.err >&5
|
---|
2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2532 | (exit $ac_status); } &&
|
---|
2533 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2534 | || test ! -s conftest.err'
|
---|
2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2536 | (eval $ac_try) 2>&5
|
---|
2537 | ac_status=$?
|
---|
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2539 | (exit $ac_status); }; } &&
|
---|
2540 | { ac_try='test -s conftest.$ac_objext'
|
---|
2541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2542 | (eval $ac_try) 2>&5
|
---|
2543 | ac_status=$?
|
---|
2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2545 | (exit $ac_status); }; }; then
|
---|
2546 | ac_compiler_gnu=yes
|
---|
2547 | else
|
---|
2548 | echo "$as_me: failed program was:" >&5
|
---|
2549 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2550 |
|
---|
2551 | ac_compiler_gnu=no
|
---|
2552 | fi
|
---|
2553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2554 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2555 |
|
---|
2556 | fi
|
---|
2557 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2558 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
2559 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2560 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2561 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2562 | CXXFLAGS="-g"
|
---|
2563 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
2564 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
2565 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
2566 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2567 | else
|
---|
2568 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2569 | /* confdefs.h. */
|
---|
2570 | _ACEOF
|
---|
2571 | cat confdefs.h >>conftest.$ac_ext
|
---|
2572 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2573 | /* end confdefs.h. */
|
---|
2574 |
|
---|
2575 | int
|
---|
2576 | main ()
|
---|
2577 | {
|
---|
2578 |
|
---|
2579 | ;
|
---|
2580 | return 0;
|
---|
2581 | }
|
---|
2582 | _ACEOF
|
---|
2583 | rm -f conftest.$ac_objext
|
---|
2584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2585 | (eval $ac_compile) 2>conftest.er1
|
---|
2586 | ac_status=$?
|
---|
2587 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2588 | rm -f conftest.er1
|
---|
2589 | cat conftest.err >&5
|
---|
2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2591 | (exit $ac_status); } &&
|
---|
2592 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2593 | || test ! -s conftest.err'
|
---|
2594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2595 | (eval $ac_try) 2>&5
|
---|
2596 | ac_status=$?
|
---|
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2598 | (exit $ac_status); }; } &&
|
---|
2599 | { ac_try='test -s conftest.$ac_objext'
|
---|
2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2601 | (eval $ac_try) 2>&5
|
---|
2602 | ac_status=$?
|
---|
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2604 | (exit $ac_status); }; }; then
|
---|
2605 | ac_cv_prog_cxx_g=yes
|
---|
2606 | else
|
---|
2607 | echo "$as_me: failed program was:" >&5
|
---|
2608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2609 |
|
---|
2610 | ac_cv_prog_cxx_g=no
|
---|
2611 | fi
|
---|
2612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2613 | fi
|
---|
2614 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
2615 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
2616 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2617 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2618 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2619 | if test "$GXX" = yes; then
|
---|
2620 | CXXFLAGS="-g -O2"
|
---|
2621 | else
|
---|
2622 | CXXFLAGS="-g"
|
---|
2623 | fi
|
---|
2624 | else
|
---|
2625 | if test "$GXX" = yes; then
|
---|
2626 | CXXFLAGS="-O2"
|
---|
2627 | else
|
---|
2628 | CXXFLAGS=
|
---|
2629 | fi
|
---|
2630 | fi
|
---|
2631 | for ac_declaration in \
|
---|
2632 | '' \
|
---|
2633 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2634 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2635 | 'extern "C" void exit (int) throw ();' \
|
---|
2636 | 'extern "C" void exit (int);' \
|
---|
2637 | 'void exit (int);'
|
---|
2638 | do
|
---|
2639 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2640 | /* confdefs.h. */
|
---|
2641 | _ACEOF
|
---|
2642 | cat confdefs.h >>conftest.$ac_ext
|
---|
2643 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2644 | /* end confdefs.h. */
|
---|
2645 | $ac_declaration
|
---|
2646 | #include <stdlib.h>
|
---|
2647 | int
|
---|
2648 | main ()
|
---|
2649 | {
|
---|
2650 | exit (42);
|
---|
2651 | ;
|
---|
2652 | return 0;
|
---|
2653 | }
|
---|
2654 | _ACEOF
|
---|
2655 | rm -f conftest.$ac_objext
|
---|
2656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2657 | (eval $ac_compile) 2>conftest.er1
|
---|
2658 | ac_status=$?
|
---|
2659 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2660 | rm -f conftest.er1
|
---|
2661 | cat conftest.err >&5
|
---|
2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2663 | (exit $ac_status); } &&
|
---|
2664 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2665 | || test ! -s conftest.err'
|
---|
2666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2667 | (eval $ac_try) 2>&5
|
---|
2668 | ac_status=$?
|
---|
2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2670 | (exit $ac_status); }; } &&
|
---|
2671 | { ac_try='test -s conftest.$ac_objext'
|
---|
2672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2673 | (eval $ac_try) 2>&5
|
---|
2674 | ac_status=$?
|
---|
2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2676 | (exit $ac_status); }; }; then
|
---|
2677 | :
|
---|
2678 | else
|
---|
2679 | echo "$as_me: failed program was:" >&5
|
---|
2680 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2681 |
|
---|
2682 | continue
|
---|
2683 | fi
|
---|
2684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2685 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2686 | /* confdefs.h. */
|
---|
2687 | _ACEOF
|
---|
2688 | cat confdefs.h >>conftest.$ac_ext
|
---|
2689 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2690 | /* end confdefs.h. */
|
---|
2691 | $ac_declaration
|
---|
2692 | int
|
---|
2693 | main ()
|
---|
2694 | {
|
---|
2695 | exit (42);
|
---|
2696 | ;
|
---|
2697 | return 0;
|
---|
2698 | }
|
---|
2699 | _ACEOF
|
---|
2700 | rm -f conftest.$ac_objext
|
---|
2701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2702 | (eval $ac_compile) 2>conftest.er1
|
---|
2703 | ac_status=$?
|
---|
2704 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2705 | rm -f conftest.er1
|
---|
2706 | cat conftest.err >&5
|
---|
2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2708 | (exit $ac_status); } &&
|
---|
2709 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
2710 | || test ! -s conftest.err'
|
---|
2711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2712 | (eval $ac_try) 2>&5
|
---|
2713 | ac_status=$?
|
---|
2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2715 | (exit $ac_status); }; } &&
|
---|
2716 | { ac_try='test -s conftest.$ac_objext'
|
---|
2717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2718 | (eval $ac_try) 2>&5
|
---|
2719 | ac_status=$?
|
---|
2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2721 | (exit $ac_status); }; }; then
|
---|
2722 | break
|
---|
2723 | else
|
---|
2724 | echo "$as_me: failed program was:" >&5
|
---|
2725 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2726 |
|
---|
2727 | fi
|
---|
2728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2729 | done
|
---|
2730 | rm -f conftest*
|
---|
2731 | if test -n "$ac_declaration"; then
|
---|
2732 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2733 | echo $ac_declaration >>confdefs.h
|
---|
2734 | echo '#endif' >>confdefs.h
|
---|
2735 | fi
|
---|
2736 |
|
---|
2737 | ac_ext=c
|
---|
2738 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2742 |
|
---|
2743 | for ac_prog in gawk mawk nawk awk
|
---|
2744 | do
|
---|
2745 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2746 | set dummy $ac_prog; ac_word=$2
|
---|
2747 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2749 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
2750 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2751 | else
|
---|
2752 | if test -n "$AWK"; then
|
---|
2753 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2754 | else
|
---|
2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2756 | for as_dir in $PATH
|
---|
2757 | do
|
---|
2758 | IFS=$as_save_IFS
|
---|
2759 | test -z "$as_dir" && as_dir=.
|
---|
2760 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2762 | ac_cv_prog_AWK="$ac_prog"
|
---|
2763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2764 | break 2
|
---|
2765 | fi
|
---|
2766 | done
|
---|
2767 | done
|
---|
2768 |
|
---|
2769 | fi
|
---|
2770 | fi
|
---|
2771 | AWK=$ac_cv_prog_AWK
|
---|
2772 | if test -n "$AWK"; then
|
---|
2773 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
2774 | echo "${ECHO_T}$AWK" >&6
|
---|
2775 | else
|
---|
2776 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2777 | echo "${ECHO_T}no" >&6
|
---|
2778 | fi
|
---|
2779 |
|
---|
2780 | test -n "$AWK" && break
|
---|
2781 | done
|
---|
2782 |
|
---|
2783 | for ac_prog in 'bison -y' byacc
|
---|
2784 | do
|
---|
2785 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2786 | set dummy $ac_prog; ac_word=$2
|
---|
2787 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2789 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
2790 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2791 | else
|
---|
2792 | if test -n "$YACC"; then
|
---|
2793 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
2794 | else
|
---|
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2796 | for as_dir in $PATH
|
---|
2797 | do
|
---|
2798 | IFS=$as_save_IFS
|
---|
2799 | test -z "$as_dir" && as_dir=.
|
---|
2800 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2802 | ac_cv_prog_YACC="$ac_prog"
|
---|
2803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2804 | break 2
|
---|
2805 | fi
|
---|
2806 | done
|
---|
2807 | done
|
---|
2808 |
|
---|
2809 | fi
|
---|
2810 | fi
|
---|
2811 | YACC=$ac_cv_prog_YACC
|
---|
2812 | if test -n "$YACC"; then
|
---|
2813 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
2814 | echo "${ECHO_T}$YACC" >&6
|
---|
2815 | else
|
---|
2816 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2817 | echo "${ECHO_T}no" >&6
|
---|
2818 | fi
|
---|
2819 |
|
---|
2820 | test -n "$YACC" && break
|
---|
2821 | done
|
---|
2822 | test -n "$YACC" || YACC="yacc"
|
---|
2823 |
|
---|
2824 | ac_aux_dir=
|
---|
2825 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2826 | if test -f $ac_dir/install-sh; then
|
---|
2827 | ac_aux_dir=$ac_dir
|
---|
2828 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2829 | break
|
---|
2830 | elif test -f $ac_dir/install.sh; then
|
---|
2831 | ac_aux_dir=$ac_dir
|
---|
2832 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2833 | break
|
---|
2834 | elif test -f $ac_dir/shtool; then
|
---|
2835 | ac_aux_dir=$ac_dir
|
---|
2836 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2837 | break
|
---|
2838 | fi
|
---|
2839 | done
|
---|
2840 | if test -z "$ac_aux_dir"; then
|
---|
2841 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2842 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2843 | { (exit 1); exit 1; }; }
|
---|
2844 | fi
|
---|
2845 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2846 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2847 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2848 |
|
---|
2849 | # Make sure we can run config.sub.
|
---|
2850 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
2851 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
2852 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
2853 | { (exit 1); exit 1; }; }
|
---|
2854 |
|
---|
2855 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
2856 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
2857 | if test "${ac_cv_build+set}" = set; then
|
---|
2858 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2859 | else
|
---|
2860 | ac_cv_build_alias=$build_alias
|
---|
2861 | test -z "$ac_cv_build_alias" &&
|
---|
2862 | ac_cv_build_alias=`$ac_config_guess`
|
---|
2863 | test -z "$ac_cv_build_alias" &&
|
---|
2864 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
2865 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
2866 | { (exit 1); exit 1; }; }
|
---|
2867 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
2868 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
2869 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
2870 | { (exit 1); exit 1; }; }
|
---|
2871 |
|
---|
2872 | fi
|
---|
2873 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
2874 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
2875 | build=$ac_cv_build
|
---|
2876 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2877 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2878 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2879 |
|
---|
2880 |
|
---|
2881 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
2882 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
2883 | if test "${ac_cv_host+set}" = set; then
|
---|
2884 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2885 | else
|
---|
2886 | ac_cv_host_alias=$host_alias
|
---|
2887 | test -z "$ac_cv_host_alias" &&
|
---|
2888 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
2889 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
2890 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
2891 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
2892 | { (exit 1); exit 1; }; }
|
---|
2893 |
|
---|
2894 | fi
|
---|
2895 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
2896 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
2897 | host=$ac_cv_host
|
---|
2898 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2899 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2900 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2901 |
|
---|
2902 |
|
---|
2903 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
2904 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
2905 | if test "${ac_cv_target+set}" = set; then
|
---|
2906 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2907 | else
|
---|
2908 | ac_cv_target_alias=$target_alias
|
---|
2909 | test "x$ac_cv_target_alias" = "x" &&
|
---|
2910 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
2911 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
2912 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
2913 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
2914 | { (exit 1); exit 1; }; }
|
---|
2915 |
|
---|
2916 | fi
|
---|
2917 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
2918 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
2919 | target=$ac_cv_target
|
---|
2920 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
2921 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
2922 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
2923 |
|
---|
2924 |
|
---|
2925 | # The aliases save the names the user supplied, while $host etc.
|
---|
2926 | # will get canonicalized.
|
---|
2927 | test -n "$target_alias" &&
|
---|
2928 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2929 | NONENONEs,x,x, &&
|
---|
2930 | program_prefix=${target_alias}-
|
---|
2931 | # Find a good install program. We prefer a C program (faster),
|
---|
2932 | # so one script is as good as another. But avoid the broken or
|
---|
2933 | # incompatible versions:
|
---|
2934 | # SysV /etc/install, /usr/sbin/install
|
---|
2935 | # SunOS /usr/etc/install
|
---|
2936 | # IRIX /sbin/install
|
---|
2937 | # AIX /bin/install
|
---|
2938 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2939 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2940 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2941 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2942 | # OS/2's system install, which has a completely different semantic
|
---|
2943 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2944 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2945 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2946 | if test -z "$INSTALL"; then
|
---|
2947 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2948 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2949 | else
|
---|
2950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2951 | for as_dir in $PATH
|
---|
2952 | do
|
---|
2953 | IFS=$as_save_IFS
|
---|
2954 | test -z "$as_dir" && as_dir=.
|
---|
2955 | # Account for people who put trailing slashes in PATH elements.
|
---|
2956 | case $as_dir/ in
|
---|
2957 | ./ | .// | /cC/* | \
|
---|
2958 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2959 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2960 | /usr/ucb/* ) ;;
|
---|
2961 | *)
|
---|
2962 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2963 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2964 | # by default.
|
---|
2965 | for ac_prog in ginstall scoinst install; do
|
---|
2966 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2967 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2968 | if test $ac_prog = install &&
|
---|
2969 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2970 | # AIX install. It has an incompatible calling convention.
|
---|
2971 | :
|
---|
2972 | elif test $ac_prog = install &&
|
---|
2973 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2974 | # program-specific install script used by HP pwplus--don't use.
|
---|
2975 | :
|
---|
2976 | else
|
---|
2977 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2978 | break 3
|
---|
2979 | fi
|
---|
2980 | fi
|
---|
2981 | done
|
---|
2982 | done
|
---|
2983 | ;;
|
---|
2984 | esac
|
---|
2985 | done
|
---|
2986 |
|
---|
2987 |
|
---|
2988 | fi
|
---|
2989 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2990 | INSTALL=$ac_cv_path_install
|
---|
2991 | else
|
---|
2992 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2993 | # path for INSTALL within a source directory, because that will
|
---|
2994 | # break other packages using the cache if that directory is
|
---|
2995 | # removed, or if the path is relative.
|
---|
2996 | INSTALL=$ac_install_sh
|
---|
2997 | fi
|
---|
2998 | fi
|
---|
2999 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
3000 | echo "${ECHO_T}$INSTALL" >&6
|
---|
3001 |
|
---|
3002 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3003 | # It thinks the first close brace ends the variable substitution.
|
---|
3004 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3005 |
|
---|
3006 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3007 |
|
---|
3008 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3009 |
|
---|
3010 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
3011 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
3012 | LN_S=$as_ln_s
|
---|
3013 | if test "$LN_S" = "ln -s"; then
|
---|
3014 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3015 | echo "${ECHO_T}yes" >&6
|
---|
3016 | else
|
---|
3017 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
3018 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
3019 | fi
|
---|
3020 |
|
---|
3021 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3022 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
3023 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
3024 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
3025 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3026 | else
|
---|
3027 | cat >conftest.make <<\_ACEOF
|
---|
3028 | all:
|
---|
3029 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
3030 | _ACEOF
|
---|
3031 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3032 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
3033 | if test -n "$ac_maketemp"; then
|
---|
3034 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
3035 | else
|
---|
3036 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
3037 | fi
|
---|
3038 | rm -f conftest.make
|
---|
3039 | fi
|
---|
3040 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
3041 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3042 | echo "${ECHO_T}yes" >&6
|
---|
3043 | SET_MAKE=
|
---|
3044 | else
|
---|
3045 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3046 | echo "${ECHO_T}no" >&6
|
---|
3047 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3048 | fi
|
---|
3049 |
|
---|
3050 | if test -n "$ac_tool_prefix"; then
|
---|
3051 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3052 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3053 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3055 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
3056 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3057 | else
|
---|
3058 | if test -n "$RANLIB"; then
|
---|
3059 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3060 | else
|
---|
3061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3062 | for as_dir in $PATH
|
---|
3063 | do
|
---|
3064 | IFS=$as_save_IFS
|
---|
3065 | test -z "$as_dir" && as_dir=.
|
---|
3066 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3067 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3068 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3070 | break 2
|
---|
3071 | fi
|
---|
3072 | done
|
---|
3073 | done
|
---|
3074 |
|
---|
3075 | fi
|
---|
3076 | fi
|
---|
3077 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3078 | if test -n "$RANLIB"; then
|
---|
3079 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
3080 | echo "${ECHO_T}$RANLIB" >&6
|
---|
3081 | else
|
---|
3082 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3083 | echo "${ECHO_T}no" >&6
|
---|
3084 | fi
|
---|
3085 |
|
---|
3086 | fi
|
---|
3087 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3088 | ac_ct_RANLIB=$RANLIB
|
---|
3089 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3090 | set dummy ranlib; ac_word=$2
|
---|
3091 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
3092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
3093 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
3094 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3095 | else
|
---|
3096 | if test -n "$ac_ct_RANLIB"; then
|
---|
3097 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3098 | else
|
---|
3099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3100 | for as_dir in $PATH
|
---|
3101 | do
|
---|
3102 | IFS=$as_save_IFS
|
---|
3103 | test -z "$as_dir" && as_dir=.
|
---|
3104 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3106 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3108 | break 2
|
---|
3109 | fi
|
---|
3110 | done
|
---|
3111 | done
|
---|
3112 |
|
---|
3113 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
3114 | fi
|
---|
3115 | fi
|
---|
3116 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3117 | if test -n "$ac_ct_RANLIB"; then
|
---|
3118 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
3119 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
3120 | else
|
---|
3121 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3122 | echo "${ECHO_T}no" >&6
|
---|
3123 | fi
|
---|
3124 |
|
---|
3125 | RANLIB=$ac_ct_RANLIB
|
---|
3126 | else
|
---|
3127 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3128 | fi
|
---|
3129 |
|
---|
3130 |
|
---|
3131 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
3132 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
3133 | arch_64bit=no
|
---|
3134 | case "$host_cpu" in
|
---|
3135 | x86_64) arch_64bit=yes ;;
|
---|
3136 | esac
|
---|
3137 |
|
---|
3138 | if test "$arch_64bit" = yes; then
|
---|
3139 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3140 | echo "${ECHO_T}yes" >&6
|
---|
3141 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3142 | COMPAT32BITFLAGS="-m32"
|
---|
3143 | fi
|
---|
3144 | else
|
---|
3145 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3146 | echo "${ECHO_T}no" >&6
|
---|
3147 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
3148 | COMPAT32BITFLAGS=
|
---|
3149 | fi
|
---|
3150 | fi
|
---|
3151 | export COMPAT32BITFLAGS
|
---|
3152 |
|
---|
3153 |
|
---|
3154 |
|
---|
3155 | #moved CORBA MICO directory test to get version of MICO
|
---|
3156 | if test $USE_CORBA = 1; then
|
---|
3157 |
|
---|
3158 | if test $MICO_DIR = "default"; then
|
---|
3159 | #do something
|
---|
3160 | MICO_INC="-I packages/mico/mico/include"
|
---|
3161 | else
|
---|
3162 | #build the micotest program
|
---|
3163 | MICO_INC= ""
|
---|
3164 | if test $MICO_DIR != yes; then
|
---|
3165 | MICO_INC="-I $MICO_DIR"
|
---|
3166 | fi
|
---|
3167 | fi
|
---|
3168 |
|
---|
3169 | #get MICO_VER value
|
---|
3170 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
3171 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
3172 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
3173 | sh -c "rm micotest"
|
---|
3174 | sh -c "rm micotest.o"
|
---|
3175 |
|
---|
3176 | #do test of MICO_VER
|
---|
3177 | if test MICO_VER != 0; then
|
---|
3178 | cat >>confdefs.h <<\_ACEOF
|
---|
3179 | #define MICO_VER 1
|
---|
3180 | _ACEOF
|
---|
3181 |
|
---|
3182 |
|
---|
3183 | fi
|
---|
3184 | #end USE_CORBA test
|
---|
3185 | fi
|
---|
3186 |
|
---|
3187 |
|
---|
3188 | ac_ext=c
|
---|
3189 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3193 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
3194 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
3195 | # On Suns, sometimes $CPP names a directory.
|
---|
3196 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3197 | CPP=
|
---|
3198 | fi
|
---|
3199 | if test -z "$CPP"; then
|
---|
3200 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3202 | else
|
---|
3203 | # Double quotes because CPP needs to be expanded
|
---|
3204 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3205 | do
|
---|
3206 | ac_preproc_ok=false
|
---|
3207 | for ac_c_preproc_warn_flag in '' yes
|
---|
3208 | do
|
---|
3209 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3210 | # with a fresh cross-compiler works.
|
---|
3211 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3212 | # <limits.h> exists even on freestanding compilers.
|
---|
3213 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3214 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3215 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3216 | /* confdefs.h. */
|
---|
3217 | _ACEOF
|
---|
3218 | cat confdefs.h >>conftest.$ac_ext
|
---|
3219 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3220 | /* end confdefs.h. */
|
---|
3221 | #ifdef __STDC__
|
---|
3222 | # include <limits.h>
|
---|
3223 | #else
|
---|
3224 | # include <assert.h>
|
---|
3225 | #endif
|
---|
3226 | Syntax error
|
---|
3227 | _ACEOF
|
---|
3228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3230 | ac_status=$?
|
---|
3231 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3232 | rm -f conftest.er1
|
---|
3233 | cat conftest.err >&5
|
---|
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3235 | (exit $ac_status); } >/dev/null; then
|
---|
3236 | if test -s conftest.err; then
|
---|
3237 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3238 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3239 | else
|
---|
3240 | ac_cpp_err=
|
---|
3241 | fi
|
---|
3242 | else
|
---|
3243 | ac_cpp_err=yes
|
---|
3244 | fi
|
---|
3245 | if test -z "$ac_cpp_err"; then
|
---|
3246 | :
|
---|
3247 | else
|
---|
3248 | echo "$as_me: failed program was:" >&5
|
---|
3249 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3250 |
|
---|
3251 | # Broken: fails on valid input.
|
---|
3252 | continue
|
---|
3253 | fi
|
---|
3254 | rm -f conftest.err conftest.$ac_ext
|
---|
3255 |
|
---|
3256 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3257 | # can be detected and how.
|
---|
3258 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3259 | /* confdefs.h. */
|
---|
3260 | _ACEOF
|
---|
3261 | cat confdefs.h >>conftest.$ac_ext
|
---|
3262 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3263 | /* end confdefs.h. */
|
---|
3264 | #include <ac_nonexistent.h>
|
---|
3265 | _ACEOF
|
---|
3266 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3267 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3268 | ac_status=$?
|
---|
3269 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3270 | rm -f conftest.er1
|
---|
3271 | cat conftest.err >&5
|
---|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3273 | (exit $ac_status); } >/dev/null; then
|
---|
3274 | if test -s conftest.err; then
|
---|
3275 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3276 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3277 | else
|
---|
3278 | ac_cpp_err=
|
---|
3279 | fi
|
---|
3280 | else
|
---|
3281 | ac_cpp_err=yes
|
---|
3282 | fi
|
---|
3283 | if test -z "$ac_cpp_err"; then
|
---|
3284 | # Broken: success on invalid input.
|
---|
3285 | continue
|
---|
3286 | else
|
---|
3287 | echo "$as_me: failed program was:" >&5
|
---|
3288 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3289 |
|
---|
3290 | # Passes both tests.
|
---|
3291 | ac_preproc_ok=:
|
---|
3292 | break
|
---|
3293 | fi
|
---|
3294 | rm -f conftest.err conftest.$ac_ext
|
---|
3295 |
|
---|
3296 | done
|
---|
3297 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3298 | rm -f conftest.err conftest.$ac_ext
|
---|
3299 | if $ac_preproc_ok; then
|
---|
3300 | break
|
---|
3301 | fi
|
---|
3302 |
|
---|
3303 | done
|
---|
3304 | ac_cv_prog_CPP=$CPP
|
---|
3305 |
|
---|
3306 | fi
|
---|
3307 | CPP=$ac_cv_prog_CPP
|
---|
3308 | else
|
---|
3309 | ac_cv_prog_CPP=$CPP
|
---|
3310 | fi
|
---|
3311 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
3312 | echo "${ECHO_T}$CPP" >&6
|
---|
3313 | ac_preproc_ok=false
|
---|
3314 | for ac_c_preproc_warn_flag in '' yes
|
---|
3315 | do
|
---|
3316 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3317 | # with a fresh cross-compiler works.
|
---|
3318 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3319 | # <limits.h> exists even on freestanding compilers.
|
---|
3320 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3321 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3322 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3323 | /* confdefs.h. */
|
---|
3324 | _ACEOF
|
---|
3325 | cat confdefs.h >>conftest.$ac_ext
|
---|
3326 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3327 | /* end confdefs.h. */
|
---|
3328 | #ifdef __STDC__
|
---|
3329 | # include <limits.h>
|
---|
3330 | #else
|
---|
3331 | # include <assert.h>
|
---|
3332 | #endif
|
---|
3333 | Syntax error
|
---|
3334 | _ACEOF
|
---|
3335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3337 | ac_status=$?
|
---|
3338 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3339 | rm -f conftest.er1
|
---|
3340 | cat conftest.err >&5
|
---|
3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3342 | (exit $ac_status); } >/dev/null; then
|
---|
3343 | if test -s conftest.err; then
|
---|
3344 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3345 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3346 | else
|
---|
3347 | ac_cpp_err=
|
---|
3348 | fi
|
---|
3349 | else
|
---|
3350 | ac_cpp_err=yes
|
---|
3351 | fi
|
---|
3352 | if test -z "$ac_cpp_err"; then
|
---|
3353 | :
|
---|
3354 | else
|
---|
3355 | echo "$as_me: failed program was:" >&5
|
---|
3356 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3357 |
|
---|
3358 | # Broken: fails on valid input.
|
---|
3359 | continue
|
---|
3360 | fi
|
---|
3361 | rm -f conftest.err conftest.$ac_ext
|
---|
3362 |
|
---|
3363 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
3364 | # can be detected and how.
|
---|
3365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3366 | /* confdefs.h. */
|
---|
3367 | _ACEOF
|
---|
3368 | cat confdefs.h >>conftest.$ac_ext
|
---|
3369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3370 | /* end confdefs.h. */
|
---|
3371 | #include <ac_nonexistent.h>
|
---|
3372 | _ACEOF
|
---|
3373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3375 | ac_status=$?
|
---|
3376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3377 | rm -f conftest.er1
|
---|
3378 | cat conftest.err >&5
|
---|
3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3380 | (exit $ac_status); } >/dev/null; then
|
---|
3381 | if test -s conftest.err; then
|
---|
3382 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3384 | else
|
---|
3385 | ac_cpp_err=
|
---|
3386 | fi
|
---|
3387 | else
|
---|
3388 | ac_cpp_err=yes
|
---|
3389 | fi
|
---|
3390 | if test -z "$ac_cpp_err"; then
|
---|
3391 | # Broken: success on invalid input.
|
---|
3392 | continue
|
---|
3393 | else
|
---|
3394 | echo "$as_me: failed program was:" >&5
|
---|
3395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3396 |
|
---|
3397 | # Passes both tests.
|
---|
3398 | ac_preproc_ok=:
|
---|
3399 | break
|
---|
3400 | fi
|
---|
3401 | rm -f conftest.err conftest.$ac_ext
|
---|
3402 |
|
---|
3403 | done
|
---|
3404 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3405 | rm -f conftest.err conftest.$ac_ext
|
---|
3406 | if $ac_preproc_ok; then
|
---|
3407 | :
|
---|
3408 | else
|
---|
3409 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3410 | See \`config.log' for more details." >&5
|
---|
3411 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3412 | See \`config.log' for more details." >&2;}
|
---|
3413 | { (exit 1); exit 1; }; }
|
---|
3414 | fi
|
---|
3415 |
|
---|
3416 | ac_ext=c
|
---|
3417 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3421 |
|
---|
3422 |
|
---|
3423 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3424 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3425 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3426 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3427 | else
|
---|
3428 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3429 | then ac_cv_prog_egrep='grep -E'
|
---|
3430 | else ac_cv_prog_egrep='egrep'
|
---|
3431 | fi
|
---|
3432 | fi
|
---|
3433 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3434 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3435 | EGREP=$ac_cv_prog_egrep
|
---|
3436 |
|
---|
3437 |
|
---|
3438 |
|
---|
3439 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
3440 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
3441 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3442 | /* confdefs.h. */
|
---|
3443 | _ACEOF
|
---|
3444 | cat confdefs.h >>conftest.$ac_ext
|
---|
3445 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3446 | /* end confdefs.h. */
|
---|
3447 | #ifdef _AIX
|
---|
3448 | yes
|
---|
3449 | #endif
|
---|
3450 |
|
---|
3451 | _ACEOF
|
---|
3452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3453 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
3454 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3455 | echo "${ECHO_T}yes" >&6
|
---|
3456 | cat >>confdefs.h <<\_ACEOF
|
---|
3457 | #define _ALL_SOURCE 1
|
---|
3458 | _ACEOF
|
---|
3459 |
|
---|
3460 | else
|
---|
3461 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3462 | echo "${ECHO_T}no" >&6
|
---|
3463 | fi
|
---|
3464 | rm -f conftest*
|
---|
3465 |
|
---|
3466 |
|
---|
3467 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
3468 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
3469 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
3470 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3471 | else
|
---|
3472 | ac_func_search_save_LIBS=$LIBS
|
---|
3473 | ac_cv_search_strerror=no
|
---|
3474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3475 | /* confdefs.h. */
|
---|
3476 | _ACEOF
|
---|
3477 | cat confdefs.h >>conftest.$ac_ext
|
---|
3478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3479 | /* end confdefs.h. */
|
---|
3480 |
|
---|
3481 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3482 | #ifdef __cplusplus
|
---|
3483 | extern "C"
|
---|
3484 | #endif
|
---|
3485 | /* We use char because int might match the return type of a gcc2
|
---|
3486 | builtin and then its argument prototype would still apply. */
|
---|
3487 | char strerror ();
|
---|
3488 | int
|
---|
3489 | main ()
|
---|
3490 | {
|
---|
3491 | strerror ();
|
---|
3492 | ;
|
---|
3493 | return 0;
|
---|
3494 | }
|
---|
3495 | _ACEOF
|
---|
3496 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3498 | (eval $ac_link) 2>conftest.er1
|
---|
3499 | ac_status=$?
|
---|
3500 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3501 | rm -f conftest.er1
|
---|
3502 | cat conftest.err >&5
|
---|
3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3504 | (exit $ac_status); } &&
|
---|
3505 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3506 | || test ! -s conftest.err'
|
---|
3507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3508 | (eval $ac_try) 2>&5
|
---|
3509 | ac_status=$?
|
---|
3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3511 | (exit $ac_status); }; } &&
|
---|
3512 | { ac_try='test -s conftest$ac_exeext'
|
---|
3513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3514 | (eval $ac_try) 2>&5
|
---|
3515 | ac_status=$?
|
---|
3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3517 | (exit $ac_status); }; }; then
|
---|
3518 | ac_cv_search_strerror="none required"
|
---|
3519 | else
|
---|
3520 | echo "$as_me: failed program was:" >&5
|
---|
3521 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3522 |
|
---|
3523 | fi
|
---|
3524 | rm -f conftest.err conftest.$ac_objext \
|
---|
3525 | conftest$ac_exeext conftest.$ac_ext
|
---|
3526 | if test "$ac_cv_search_strerror" = no; then
|
---|
3527 | for ac_lib in cposix; do
|
---|
3528 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
3529 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3530 | /* confdefs.h. */
|
---|
3531 | _ACEOF
|
---|
3532 | cat confdefs.h >>conftest.$ac_ext
|
---|
3533 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3534 | /* end confdefs.h. */
|
---|
3535 |
|
---|
3536 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3537 | #ifdef __cplusplus
|
---|
3538 | extern "C"
|
---|
3539 | #endif
|
---|
3540 | /* We use char because int might match the return type of a gcc2
|
---|
3541 | builtin and then its argument prototype would still apply. */
|
---|
3542 | char strerror ();
|
---|
3543 | int
|
---|
3544 | main ()
|
---|
3545 | {
|
---|
3546 | strerror ();
|
---|
3547 | ;
|
---|
3548 | return 0;
|
---|
3549 | }
|
---|
3550 | _ACEOF
|
---|
3551 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3553 | (eval $ac_link) 2>conftest.er1
|
---|
3554 | ac_status=$?
|
---|
3555 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3556 | rm -f conftest.er1
|
---|
3557 | cat conftest.err >&5
|
---|
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3559 | (exit $ac_status); } &&
|
---|
3560 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3561 | || test ! -s conftest.err'
|
---|
3562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3563 | (eval $ac_try) 2>&5
|
---|
3564 | ac_status=$?
|
---|
3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3566 | (exit $ac_status); }; } &&
|
---|
3567 | { ac_try='test -s conftest$ac_exeext'
|
---|
3568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3569 | (eval $ac_try) 2>&5
|
---|
3570 | ac_status=$?
|
---|
3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3572 | (exit $ac_status); }; }; then
|
---|
3573 | ac_cv_search_strerror="-l$ac_lib"
|
---|
3574 | break
|
---|
3575 | else
|
---|
3576 | echo "$as_me: failed program was:" >&5
|
---|
3577 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3578 |
|
---|
3579 | fi
|
---|
3580 | rm -f conftest.err conftest.$ac_objext \
|
---|
3581 | conftest$ac_exeext conftest.$ac_ext
|
---|
3582 | done
|
---|
3583 | fi
|
---|
3584 | LIBS=$ac_func_search_save_LIBS
|
---|
3585 | fi
|
---|
3586 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
3587 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
3588 | if test "$ac_cv_search_strerror" != no; then
|
---|
3589 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
3590 |
|
---|
3591 | fi
|
---|
3592 |
|
---|
3593 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3594 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3595 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3596 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3597 | else
|
---|
3598 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3599 | /* confdefs.h. */
|
---|
3600 | _ACEOF
|
---|
3601 | cat confdefs.h >>conftest.$ac_ext
|
---|
3602 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3603 | /* end confdefs.h. */
|
---|
3604 | #include <stdlib.h>
|
---|
3605 | #include <stdarg.h>
|
---|
3606 | #include <string.h>
|
---|
3607 | #include <float.h>
|
---|
3608 |
|
---|
3609 | int
|
---|
3610 | main ()
|
---|
3611 | {
|
---|
3612 |
|
---|
3613 | ;
|
---|
3614 | return 0;
|
---|
3615 | }
|
---|
3616 | _ACEOF
|
---|
3617 | rm -f conftest.$ac_objext
|
---|
3618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3619 | (eval $ac_compile) 2>conftest.er1
|
---|
3620 | ac_status=$?
|
---|
3621 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3622 | rm -f conftest.er1
|
---|
3623 | cat conftest.err >&5
|
---|
3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3625 | (exit $ac_status); } &&
|
---|
3626 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3627 | || test ! -s conftest.err'
|
---|
3628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3629 | (eval $ac_try) 2>&5
|
---|
3630 | ac_status=$?
|
---|
3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3632 | (exit $ac_status); }; } &&
|
---|
3633 | { ac_try='test -s conftest.$ac_objext'
|
---|
3634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3635 | (eval $ac_try) 2>&5
|
---|
3636 | ac_status=$?
|
---|
3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3638 | (exit $ac_status); }; }; then
|
---|
3639 | ac_cv_header_stdc=yes
|
---|
3640 | else
|
---|
3641 | echo "$as_me: failed program was:" >&5
|
---|
3642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3643 |
|
---|
3644 | ac_cv_header_stdc=no
|
---|
3645 | fi
|
---|
3646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3647 |
|
---|
3648 | if test $ac_cv_header_stdc = yes; then
|
---|
3649 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3651 | /* confdefs.h. */
|
---|
3652 | _ACEOF
|
---|
3653 | cat confdefs.h >>conftest.$ac_ext
|
---|
3654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3655 | /* end confdefs.h. */
|
---|
3656 | #include <string.h>
|
---|
3657 |
|
---|
3658 | _ACEOF
|
---|
3659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3660 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3661 | :
|
---|
3662 | else
|
---|
3663 | ac_cv_header_stdc=no
|
---|
3664 | fi
|
---|
3665 | rm -f conftest*
|
---|
3666 |
|
---|
3667 | fi
|
---|
3668 |
|
---|
3669 | if test $ac_cv_header_stdc = yes; then
|
---|
3670 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3671 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3672 | /* confdefs.h. */
|
---|
3673 | _ACEOF
|
---|
3674 | cat confdefs.h >>conftest.$ac_ext
|
---|
3675 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3676 | /* end confdefs.h. */
|
---|
3677 | #include <stdlib.h>
|
---|
3678 |
|
---|
3679 | _ACEOF
|
---|
3680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3681 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3682 | :
|
---|
3683 | else
|
---|
3684 | ac_cv_header_stdc=no
|
---|
3685 | fi
|
---|
3686 | rm -f conftest*
|
---|
3687 |
|
---|
3688 | fi
|
---|
3689 |
|
---|
3690 | if test $ac_cv_header_stdc = yes; then
|
---|
3691 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3692 | if test "$cross_compiling" = yes; then
|
---|
3693 | :
|
---|
3694 | else
|
---|
3695 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3696 | /* confdefs.h. */
|
---|
3697 | _ACEOF
|
---|
3698 | cat confdefs.h >>conftest.$ac_ext
|
---|
3699 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3700 | /* end confdefs.h. */
|
---|
3701 | #include <ctype.h>
|
---|
3702 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3703 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3704 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3705 | #else
|
---|
3706 | # define ISLOWER(c) \
|
---|
3707 | (('a' <= (c) && (c) <= 'i') \
|
---|
3708 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3709 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3710 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3711 | #endif
|
---|
3712 |
|
---|
3713 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3714 | int
|
---|
3715 | main ()
|
---|
3716 | {
|
---|
3717 | int i;
|
---|
3718 | for (i = 0; i < 256; i++)
|
---|
3719 | if (XOR (islower (i), ISLOWER (i))
|
---|
3720 | || toupper (i) != TOUPPER (i))
|
---|
3721 | exit(2);
|
---|
3722 | exit (0);
|
---|
3723 | }
|
---|
3724 | _ACEOF
|
---|
3725 | rm -f conftest$ac_exeext
|
---|
3726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3727 | (eval $ac_link) 2>&5
|
---|
3728 | ac_status=$?
|
---|
3729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3732 | (eval $ac_try) 2>&5
|
---|
3733 | ac_status=$?
|
---|
3734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3735 | (exit $ac_status); }; }; then
|
---|
3736 | :
|
---|
3737 | else
|
---|
3738 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3739 | echo "$as_me: failed program was:" >&5
|
---|
3740 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3741 |
|
---|
3742 | ( exit $ac_status )
|
---|
3743 | ac_cv_header_stdc=no
|
---|
3744 | fi
|
---|
3745 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3746 | fi
|
---|
3747 | fi
|
---|
3748 | fi
|
---|
3749 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3750 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3751 | if test $ac_cv_header_stdc = yes; then
|
---|
3752 |
|
---|
3753 | cat >>confdefs.h <<\_ACEOF
|
---|
3754 | #define STDC_HEADERS 1
|
---|
3755 | _ACEOF
|
---|
3756 |
|
---|
3757 | fi
|
---|
3758 |
|
---|
3759 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3760 |
|
---|
3761 |
|
---|
3762 |
|
---|
3763 |
|
---|
3764 |
|
---|
3765 |
|
---|
3766 |
|
---|
3767 |
|
---|
3768 |
|
---|
3769 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3770 | inttypes.h stdint.h unistd.h
|
---|
3771 | do
|
---|
3772 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3773 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3776 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3777 | else
|
---|
3778 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3779 | /* confdefs.h. */
|
---|
3780 | _ACEOF
|
---|
3781 | cat confdefs.h >>conftest.$ac_ext
|
---|
3782 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3783 | /* end confdefs.h. */
|
---|
3784 | $ac_includes_default
|
---|
3785 |
|
---|
3786 | #include <$ac_header>
|
---|
3787 | _ACEOF
|
---|
3788 | rm -f conftest.$ac_objext
|
---|
3789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3790 | (eval $ac_compile) 2>conftest.er1
|
---|
3791 | ac_status=$?
|
---|
3792 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3793 | rm -f conftest.er1
|
---|
3794 | cat conftest.err >&5
|
---|
3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3796 | (exit $ac_status); } &&
|
---|
3797 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3798 | || test ! -s conftest.err'
|
---|
3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3800 | (eval $ac_try) 2>&5
|
---|
3801 | ac_status=$?
|
---|
3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3803 | (exit $ac_status); }; } &&
|
---|
3804 | { ac_try='test -s conftest.$ac_objext'
|
---|
3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3806 | (eval $ac_try) 2>&5
|
---|
3807 | ac_status=$?
|
---|
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3809 | (exit $ac_status); }; }; then
|
---|
3810 | eval "$as_ac_Header=yes"
|
---|
3811 | else
|
---|
3812 | echo "$as_me: failed program was:" >&5
|
---|
3813 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3814 |
|
---|
3815 | eval "$as_ac_Header=no"
|
---|
3816 | fi
|
---|
3817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3818 | fi
|
---|
3819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3822 | cat >>confdefs.h <<_ACEOF
|
---|
3823 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3824 | _ACEOF
|
---|
3825 |
|
---|
3826 | fi
|
---|
3827 |
|
---|
3828 | done
|
---|
3829 |
|
---|
3830 |
|
---|
3831 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3832 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3833 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3834 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3835 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3836 | fi
|
---|
3837 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3838 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3839 | else
|
---|
3840 | # Is the header compilable?
|
---|
3841 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
3842 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
3843 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3844 | /* confdefs.h. */
|
---|
3845 | _ACEOF
|
---|
3846 | cat confdefs.h >>conftest.$ac_ext
|
---|
3847 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3848 | /* end confdefs.h. */
|
---|
3849 | $ac_includes_default
|
---|
3850 | #include <minix/config.h>
|
---|
3851 | _ACEOF
|
---|
3852 | rm -f conftest.$ac_objext
|
---|
3853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3854 | (eval $ac_compile) 2>conftest.er1
|
---|
3855 | ac_status=$?
|
---|
3856 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3857 | rm -f conftest.er1
|
---|
3858 | cat conftest.err >&5
|
---|
3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3860 | (exit $ac_status); } &&
|
---|
3861 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3862 | || test ! -s conftest.err'
|
---|
3863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3864 | (eval $ac_try) 2>&5
|
---|
3865 | ac_status=$?
|
---|
3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3867 | (exit $ac_status); }; } &&
|
---|
3868 | { ac_try='test -s conftest.$ac_objext'
|
---|
3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3870 | (eval $ac_try) 2>&5
|
---|
3871 | ac_status=$?
|
---|
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3873 | (exit $ac_status); }; }; then
|
---|
3874 | ac_header_compiler=yes
|
---|
3875 | else
|
---|
3876 | echo "$as_me: failed program was:" >&5
|
---|
3877 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3878 |
|
---|
3879 | ac_header_compiler=no
|
---|
3880 | fi
|
---|
3881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3882 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3883 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3884 |
|
---|
3885 | # Is the header present?
|
---|
3886 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
3887 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
3888 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3889 | /* confdefs.h. */
|
---|
3890 | _ACEOF
|
---|
3891 | cat confdefs.h >>conftest.$ac_ext
|
---|
3892 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3893 | /* end confdefs.h. */
|
---|
3894 | #include <minix/config.h>
|
---|
3895 | _ACEOF
|
---|
3896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3898 | ac_status=$?
|
---|
3899 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3900 | rm -f conftest.er1
|
---|
3901 | cat conftest.err >&5
|
---|
3902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3903 | (exit $ac_status); } >/dev/null; then
|
---|
3904 | if test -s conftest.err; then
|
---|
3905 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3907 | else
|
---|
3908 | ac_cpp_err=
|
---|
3909 | fi
|
---|
3910 | else
|
---|
3911 | ac_cpp_err=yes
|
---|
3912 | fi
|
---|
3913 | if test -z "$ac_cpp_err"; then
|
---|
3914 | ac_header_preproc=yes
|
---|
3915 | else
|
---|
3916 | echo "$as_me: failed program was:" >&5
|
---|
3917 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3918 |
|
---|
3919 | ac_header_preproc=no
|
---|
3920 | fi
|
---|
3921 | rm -f conftest.err conftest.$ac_ext
|
---|
3922 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
3923 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
3924 |
|
---|
3925 | # So? What about this header?
|
---|
3926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
3927 | yes:no: )
|
---|
3928 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
3929 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
3930 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
3931 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
3932 | ac_header_preproc=yes
|
---|
3933 | ;;
|
---|
3934 | no:yes:* )
|
---|
3935 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
3936 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
3937 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
3938 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
3939 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
3940 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
3941 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
3942 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
3943 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
3944 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
3945 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
3946 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
3947 | (
|
---|
3948 | cat <<\_ASBOX
|
---|
3949 | ## ------------------------------------------ ##
|
---|
3950 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
3951 | ## ------------------------------------------ ##
|
---|
3952 | _ASBOX
|
---|
3953 | ) |
|
---|
3954 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
3955 | ;;
|
---|
3956 | esac
|
---|
3957 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
3958 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
3959 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
3960 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3961 | else
|
---|
3962 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
3963 | fi
|
---|
3964 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
3965 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
3966 |
|
---|
3967 | fi
|
---|
3968 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
3969 | MINIX=yes
|
---|
3970 | else
|
---|
3971 | MINIX=
|
---|
3972 | fi
|
---|
3973 |
|
---|
3974 |
|
---|
3975 | if test "$MINIX" = yes; then
|
---|
3976 |
|
---|
3977 | cat >>confdefs.h <<\_ACEOF
|
---|
3978 | #define _POSIX_SOURCE 1
|
---|
3979 | _ACEOF
|
---|
3980 |
|
---|
3981 |
|
---|
3982 | cat >>confdefs.h <<\_ACEOF
|
---|
3983 | #define _POSIX_1_SOURCE 2
|
---|
3984 | _ACEOF
|
---|
3985 |
|
---|
3986 |
|
---|
3987 | cat >>confdefs.h <<\_ACEOF
|
---|
3988 | #define _MINIX 1
|
---|
3989 | _ACEOF
|
---|
3990 |
|
---|
3991 | fi
|
---|
3992 |
|
---|
3993 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
3994 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
3995 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
3996 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3997 | else
|
---|
3998 | ac_cv_prog_cc_stdc=no
|
---|
3999 | ac_save_CFLAGS="$CFLAGS"
|
---|
4000 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4001 | # breaks some systems' header files.
|
---|
4002 | # AIX -qlanglvl=ansi
|
---|
4003 | # Ultrix and OSF/1 -std1
|
---|
4004 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4005 | # SVR4 -Xc
|
---|
4006 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4007 | do
|
---|
4008 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4009 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4010 | /* confdefs.h. */
|
---|
4011 | _ACEOF
|
---|
4012 | cat confdefs.h >>conftest.$ac_ext
|
---|
4013 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4014 | /* end confdefs.h. */
|
---|
4015 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4016 | choke me
|
---|
4017 | #endif
|
---|
4018 |
|
---|
4019 | int
|
---|
4020 | main ()
|
---|
4021 | {
|
---|
4022 | int test (int i, double x);
|
---|
4023 | struct s1 {int (*f) (int a);};
|
---|
4024 | struct s2 {int (*f) (double a);};
|
---|
4025 | ;
|
---|
4026 | return 0;
|
---|
4027 | }
|
---|
4028 | _ACEOF
|
---|
4029 | rm -f conftest.$ac_objext
|
---|
4030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4031 | (eval $ac_compile) 2>conftest.er1
|
---|
4032 | ac_status=$?
|
---|
4033 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4034 | rm -f conftest.er1
|
---|
4035 | cat conftest.err >&5
|
---|
4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4037 | (exit $ac_status); } &&
|
---|
4038 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4039 | || test ! -s conftest.err'
|
---|
4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4041 | (eval $ac_try) 2>&5
|
---|
4042 | ac_status=$?
|
---|
4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4044 | (exit $ac_status); }; } &&
|
---|
4045 | { ac_try='test -s conftest.$ac_objext'
|
---|
4046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4047 | (eval $ac_try) 2>&5
|
---|
4048 | ac_status=$?
|
---|
4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4050 | (exit $ac_status); }; }; then
|
---|
4051 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4052 | else
|
---|
4053 | echo "$as_me: failed program was:" >&5
|
---|
4054 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4055 |
|
---|
4056 | fi
|
---|
4057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4058 | done
|
---|
4059 | CFLAGS="$ac_save_CFLAGS"
|
---|
4060 |
|
---|
4061 | fi
|
---|
4062 |
|
---|
4063 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4064 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
4065 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4066 | x|xno) ;;
|
---|
4067 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4068 | esac
|
---|
4069 |
|
---|
4070 |
|
---|
4071 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
4072 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
4073 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4074 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
4075 | echo "${ECHO_T}yes" >&6
|
---|
4076 | cat >>confdefs.h <<\_ACEOF
|
---|
4077 | #define PROTOTYPES 1
|
---|
4078 | _ACEOF
|
---|
4079 |
|
---|
4080 | U= ANSI2KNR=
|
---|
4081 | else
|
---|
4082 | echo "$as_me:$LINENO: result: no" >&5
|
---|
4083 | echo "${ECHO_T}no" >&6
|
---|
4084 | U=_ ANSI2KNR=ansi2knr
|
---|
4085 | fi
|
---|
4086 |
|
---|
4087 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
4088 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
4089 | if test "${ac_cv_c_const+set}" = set; then
|
---|
4090 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4091 | else
|
---|
4092 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4093 | /* confdefs.h. */
|
---|
4094 | _ACEOF
|
---|
4095 | cat confdefs.h >>conftest.$ac_ext
|
---|
4096 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4097 | /* end confdefs.h. */
|
---|
4098 |
|
---|
4099 | int
|
---|
4100 | main ()
|
---|
4101 | {
|
---|
4102 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4103 | #ifndef __cplusplus
|
---|
4104 | /* Ultrix mips cc rejects this. */
|
---|
4105 | typedef int charset[2];
|
---|
4106 | const charset x;
|
---|
4107 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4108 | char const *const *ccp;
|
---|
4109 | char **p;
|
---|
4110 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4111 | struct point {int x, y;};
|
---|
4112 | static struct point const zero = {0,0};
|
---|
4113 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4114 | It does not let you subtract one const X* pointer from another in
|
---|
4115 | an arm of an if-expression whose if-part is not a constant
|
---|
4116 | expression */
|
---|
4117 | const char *g = "string";
|
---|
4118 | ccp = &g + (g ? g-g : 0);
|
---|
4119 | /* HPUX 7.0 cc rejects these. */
|
---|
4120 | ++ccp;
|
---|
4121 | p = (char**) ccp;
|
---|
4122 | ccp = (char const *const *) p;
|
---|
4123 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4124 | char *t;
|
---|
4125 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4126 |
|
---|
4127 | *t++ = 0;
|
---|
4128 | }
|
---|
4129 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4130 | int x[] = {25, 17};
|
---|
4131 | const int *foo = &x[0];
|
---|
4132 | ++foo;
|
---|
4133 | }
|
---|
4134 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4135 | typedef const int *iptr;
|
---|
4136 | iptr p = 0;
|
---|
4137 | ++p;
|
---|
4138 | }
|
---|
4139 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4140 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4141 | struct s { int j; const int *ap[3]; };
|
---|
4142 | struct s *b; b->j = 5;
|
---|
4143 | }
|
---|
4144 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4145 | const int foo = 10;
|
---|
4146 | }
|
---|
4147 | #endif
|
---|
4148 |
|
---|
4149 | ;
|
---|
4150 | return 0;
|
---|
4151 | }
|
---|
4152 | _ACEOF
|
---|
4153 | rm -f conftest.$ac_objext
|
---|
4154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4155 | (eval $ac_compile) 2>conftest.er1
|
---|
4156 | ac_status=$?
|
---|
4157 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4158 | rm -f conftest.er1
|
---|
4159 | cat conftest.err >&5
|
---|
4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4161 | (exit $ac_status); } &&
|
---|
4162 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4163 | || test ! -s conftest.err'
|
---|
4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4165 | (eval $ac_try) 2>&5
|
---|
4166 | ac_status=$?
|
---|
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4168 | (exit $ac_status); }; } &&
|
---|
4169 | { ac_try='test -s conftest.$ac_objext'
|
---|
4170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4171 | (eval $ac_try) 2>&5
|
---|
4172 | ac_status=$?
|
---|
4173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4174 | (exit $ac_status); }; }; then
|
---|
4175 | ac_cv_c_const=yes
|
---|
4176 | else
|
---|
4177 | echo "$as_me: failed program was:" >&5
|
---|
4178 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4179 |
|
---|
4180 | ac_cv_c_const=no
|
---|
4181 | fi
|
---|
4182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4183 | fi
|
---|
4184 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
4185 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
4186 | if test $ac_cv_c_const = no; then
|
---|
4187 |
|
---|
4188 | cat >>confdefs.h <<\_ACEOF
|
---|
4189 | #define const
|
---|
4190 | _ACEOF
|
---|
4191 |
|
---|
4192 | fi
|
---|
4193 |
|
---|
4194 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
4195 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
4196 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
4197 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4198 | else
|
---|
4199 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4200 | /* confdefs.h. */
|
---|
4201 | _ACEOF
|
---|
4202 | cat confdefs.h >>conftest.$ac_ext
|
---|
4203 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4204 | /* end confdefs.h. */
|
---|
4205 | $ac_includes_default
|
---|
4206 | int
|
---|
4207 | main ()
|
---|
4208 | {
|
---|
4209 | if ((off_t *) 0)
|
---|
4210 | return 0;
|
---|
4211 | if (sizeof (off_t))
|
---|
4212 | return 0;
|
---|
4213 | ;
|
---|
4214 | return 0;
|
---|
4215 | }
|
---|
4216 | _ACEOF
|
---|
4217 | rm -f conftest.$ac_objext
|
---|
4218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4219 | (eval $ac_compile) 2>conftest.er1
|
---|
4220 | ac_status=$?
|
---|
4221 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4222 | rm -f conftest.er1
|
---|
4223 | cat conftest.err >&5
|
---|
4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4225 | (exit $ac_status); } &&
|
---|
4226 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4227 | || test ! -s conftest.err'
|
---|
4228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4229 | (eval $ac_try) 2>&5
|
---|
4230 | ac_status=$?
|
---|
4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4232 | (exit $ac_status); }; } &&
|
---|
4233 | { ac_try='test -s conftest.$ac_objext'
|
---|
4234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4235 | (eval $ac_try) 2>&5
|
---|
4236 | ac_status=$?
|
---|
4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4238 | (exit $ac_status); }; }; then
|
---|
4239 | ac_cv_type_off_t=yes
|
---|
4240 | else
|
---|
4241 | echo "$as_me: failed program was:" >&5
|
---|
4242 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4243 |
|
---|
4244 | ac_cv_type_off_t=no
|
---|
4245 | fi
|
---|
4246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4247 | fi
|
---|
4248 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
4249 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
4250 | if test $ac_cv_type_off_t = yes; then
|
---|
4251 | :
|
---|
4252 | else
|
---|
4253 |
|
---|
4254 | cat >>confdefs.h <<_ACEOF
|
---|
4255 | #define off_t long
|
---|
4256 | _ACEOF
|
---|
4257 |
|
---|
4258 | fi
|
---|
4259 |
|
---|
4260 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
4261 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
4262 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
4263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4264 | else
|
---|
4265 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4266 | /* confdefs.h. */
|
---|
4267 | _ACEOF
|
---|
4268 | cat confdefs.h >>conftest.$ac_ext
|
---|
4269 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4270 | /* end confdefs.h. */
|
---|
4271 | $ac_includes_default
|
---|
4272 | int
|
---|
4273 | main ()
|
---|
4274 | {
|
---|
4275 | if ((size_t *) 0)
|
---|
4276 | return 0;
|
---|
4277 | if (sizeof (size_t))
|
---|
4278 | return 0;
|
---|
4279 | ;
|
---|
4280 | return 0;
|
---|
4281 | }
|
---|
4282 | _ACEOF
|
---|
4283 | rm -f conftest.$ac_objext
|
---|
4284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4285 | (eval $ac_compile) 2>conftest.er1
|
---|
4286 | ac_status=$?
|
---|
4287 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4288 | rm -f conftest.er1
|
---|
4289 | cat conftest.err >&5
|
---|
4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4291 | (exit $ac_status); } &&
|
---|
4292 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4293 | || test ! -s conftest.err'
|
---|
4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4295 | (eval $ac_try) 2>&5
|
---|
4296 | ac_status=$?
|
---|
4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4298 | (exit $ac_status); }; } &&
|
---|
4299 | { ac_try='test -s conftest.$ac_objext'
|
---|
4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4301 | (eval $ac_try) 2>&5
|
---|
4302 | ac_status=$?
|
---|
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4304 | (exit $ac_status); }; }; then
|
---|
4305 | ac_cv_type_size_t=yes
|
---|
4306 | else
|
---|
4307 | echo "$as_me: failed program was:" >&5
|
---|
4308 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4309 |
|
---|
4310 | ac_cv_type_size_t=no
|
---|
4311 | fi
|
---|
4312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4313 | fi
|
---|
4314 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
4315 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
4316 | if test $ac_cv_type_size_t = yes; then
|
---|
4317 | :
|
---|
4318 | else
|
---|
4319 |
|
---|
4320 | cat >>confdefs.h <<_ACEOF
|
---|
4321 | #define size_t unsigned
|
---|
4322 | _ACEOF
|
---|
4323 |
|
---|
4324 | fi
|
---|
4325 |
|
---|
4326 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4327 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
4328 | if test "${ac_cv_header_time+set}" = set; then
|
---|
4329 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4330 | else
|
---|
4331 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4332 | /* confdefs.h. */
|
---|
4333 | _ACEOF
|
---|
4334 | cat confdefs.h >>conftest.$ac_ext
|
---|
4335 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4336 | /* end confdefs.h. */
|
---|
4337 | #include <sys/types.h>
|
---|
4338 | #include <sys/time.h>
|
---|
4339 | #include <time.h>
|
---|
4340 |
|
---|
4341 | int
|
---|
4342 | main ()
|
---|
4343 | {
|
---|
4344 | if ((struct tm *) 0)
|
---|
4345 | return 0;
|
---|
4346 | ;
|
---|
4347 | return 0;
|
---|
4348 | }
|
---|
4349 | _ACEOF
|
---|
4350 | rm -f conftest.$ac_objext
|
---|
4351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4352 | (eval $ac_compile) 2>conftest.er1
|
---|
4353 | ac_status=$?
|
---|
4354 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4355 | rm -f conftest.er1
|
---|
4356 | cat conftest.err >&5
|
---|
4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4358 | (exit $ac_status); } &&
|
---|
4359 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4360 | || test ! -s conftest.err'
|
---|
4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4362 | (eval $ac_try) 2>&5
|
---|
4363 | ac_status=$?
|
---|
4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4365 | (exit $ac_status); }; } &&
|
---|
4366 | { ac_try='test -s conftest.$ac_objext'
|
---|
4367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4368 | (eval $ac_try) 2>&5
|
---|
4369 | ac_status=$?
|
---|
4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4371 | (exit $ac_status); }; }; then
|
---|
4372 | ac_cv_header_time=yes
|
---|
4373 | else
|
---|
4374 | echo "$as_me: failed program was:" >&5
|
---|
4375 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4376 |
|
---|
4377 | ac_cv_header_time=no
|
---|
4378 | fi
|
---|
4379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4380 | fi
|
---|
4381 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
4382 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
4383 | if test $ac_cv_header_time = yes; then
|
---|
4384 |
|
---|
4385 | cat >>confdefs.h <<\_ACEOF
|
---|
4386 | #define TIME_WITH_SYS_TIME 1
|
---|
4387 | _ACEOF
|
---|
4388 |
|
---|
4389 | fi
|
---|
4390 |
|
---|
4391 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4392 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
4393 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
4394 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4395 | else
|
---|
4396 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4397 | /* confdefs.h. */
|
---|
4398 | _ACEOF
|
---|
4399 | cat confdefs.h >>conftest.$ac_ext
|
---|
4400 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4401 | /* end confdefs.h. */
|
---|
4402 | #include <sys/types.h>
|
---|
4403 | #include <time.h>
|
---|
4404 |
|
---|
4405 | int
|
---|
4406 | main ()
|
---|
4407 | {
|
---|
4408 | struct tm *tp; tp->tm_sec;
|
---|
4409 | ;
|
---|
4410 | return 0;
|
---|
4411 | }
|
---|
4412 | _ACEOF
|
---|
4413 | rm -f conftest.$ac_objext
|
---|
4414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4415 | (eval $ac_compile) 2>conftest.er1
|
---|
4416 | ac_status=$?
|
---|
4417 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4418 | rm -f conftest.er1
|
---|
4419 | cat conftest.err >&5
|
---|
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4421 | (exit $ac_status); } &&
|
---|
4422 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4423 | || test ! -s conftest.err'
|
---|
4424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4425 | (eval $ac_try) 2>&5
|
---|
4426 | ac_status=$?
|
---|
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4428 | (exit $ac_status); }; } &&
|
---|
4429 | { ac_try='test -s conftest.$ac_objext'
|
---|
4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4431 | (eval $ac_try) 2>&5
|
---|
4432 | ac_status=$?
|
---|
4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4434 | (exit $ac_status); }; }; then
|
---|
4435 | ac_cv_struct_tm=time.h
|
---|
4436 | else
|
---|
4437 | echo "$as_me: failed program was:" >&5
|
---|
4438 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4439 |
|
---|
4440 | ac_cv_struct_tm=sys/time.h
|
---|
4441 | fi
|
---|
4442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4443 | fi
|
---|
4444 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
4445 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
4446 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4447 |
|
---|
4448 | cat >>confdefs.h <<\_ACEOF
|
---|
4449 | #define TM_IN_SYS_TIME 1
|
---|
4450 | _ACEOF
|
---|
4451 |
|
---|
4452 | fi
|
---|
4453 |
|
---|
4454 |
|
---|
4455 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4456 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4457 | /* confdefs.h. */
|
---|
4458 | _ACEOF
|
---|
4459 | cat confdefs.h >>conftest.$ac_ext
|
---|
4460 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4461 | /* end confdefs.h. */
|
---|
4462 | #include <stdio.h>
|
---|
4463 |
|
---|
4464 | int
|
---|
4465 | main ()
|
---|
4466 | {
|
---|
4467 | FILE *rubbish = popen("yes", "r");
|
---|
4468 | ;
|
---|
4469 | return 0;
|
---|
4470 | }
|
---|
4471 | _ACEOF
|
---|
4472 | rm -f conftest.$ac_objext
|
---|
4473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4474 | (eval $ac_compile) 2>conftest.er1
|
---|
4475 | ac_status=$?
|
---|
4476 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4477 | rm -f conftest.er1
|
---|
4478 | cat conftest.err >&5
|
---|
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4480 | (exit $ac_status); } &&
|
---|
4481 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4482 | || test ! -s conftest.err'
|
---|
4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4484 | (eval $ac_try) 2>&5
|
---|
4485 | ac_status=$?
|
---|
4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4487 | (exit $ac_status); }; } &&
|
---|
4488 | { ac_try='test -s conftest.$ac_objext'
|
---|
4489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4490 | (eval $ac_try) 2>&5
|
---|
4491 | ac_status=$?
|
---|
4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4493 | (exit $ac_status); }; }; then
|
---|
4494 | :
|
---|
4495 | else
|
---|
4496 | echo "$as_me: failed program was:" >&5
|
---|
4497 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4498 |
|
---|
4499 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4500 | fi
|
---|
4501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4502 | fi
|
---|
4503 |
|
---|
4504 |
|
---|
4505 |
|
---|
4506 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
4507 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
4508 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
4509 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4510 | else
|
---|
4511 | ac_check_lib_save_LIBS=$LIBS
|
---|
4512 | LIBS="-lg $LIBS"
|
---|
4513 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4514 | /* confdefs.h. */
|
---|
4515 | _ACEOF
|
---|
4516 | cat confdefs.h >>conftest.$ac_ext
|
---|
4517 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4518 | /* end confdefs.h. */
|
---|
4519 |
|
---|
4520 |
|
---|
4521 | int
|
---|
4522 | main ()
|
---|
4523 | {
|
---|
4524 | main ();
|
---|
4525 | ;
|
---|
4526 | return 0;
|
---|
4527 | }
|
---|
4528 | _ACEOF
|
---|
4529 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4531 | (eval $ac_link) 2>conftest.er1
|
---|
4532 | ac_status=$?
|
---|
4533 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4534 | rm -f conftest.er1
|
---|
4535 | cat conftest.err >&5
|
---|
4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4537 | (exit $ac_status); } &&
|
---|
4538 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4539 | || test ! -s conftest.err'
|
---|
4540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4541 | (eval $ac_try) 2>&5
|
---|
4542 | ac_status=$?
|
---|
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4544 | (exit $ac_status); }; } &&
|
---|
4545 | { ac_try='test -s conftest$ac_exeext'
|
---|
4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4547 | (eval $ac_try) 2>&5
|
---|
4548 | ac_status=$?
|
---|
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4550 | (exit $ac_status); }; }; then
|
---|
4551 | ac_cv_lib_g_main=yes
|
---|
4552 | else
|
---|
4553 | echo "$as_me: failed program was:" >&5
|
---|
4554 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4555 |
|
---|
4556 | ac_cv_lib_g_main=no
|
---|
4557 | fi
|
---|
4558 | rm -f conftest.err conftest.$ac_objext \
|
---|
4559 | conftest$ac_exeext conftest.$ac_ext
|
---|
4560 | LIBS=$ac_check_lib_save_LIBS
|
---|
4561 | fi
|
---|
4562 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
4563 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
4564 | if test $ac_cv_lib_g_main = yes; then
|
---|
4565 | cat >>confdefs.h <<_ACEOF
|
---|
4566 | #define HAVE_LIBG 1
|
---|
4567 | _ACEOF
|
---|
4568 |
|
---|
4569 | LIBS="-lg $LIBS"
|
---|
4570 |
|
---|
4571 | fi
|
---|
4572 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
4573 |
|
---|
4574 |
|
---|
4575 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
4576 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
4577 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4579 | else
|
---|
4580 | ac_check_lib_save_LIBS=$LIBS
|
---|
4581 | LIBS="-lm $LIBS"
|
---|
4582 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4583 | /* confdefs.h. */
|
---|
4584 | _ACEOF
|
---|
4585 | cat confdefs.h >>conftest.$ac_ext
|
---|
4586 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4587 | /* end confdefs.h. */
|
---|
4588 |
|
---|
4589 |
|
---|
4590 | int
|
---|
4591 | main ()
|
---|
4592 | {
|
---|
4593 | main ();
|
---|
4594 | ;
|
---|
4595 | return 0;
|
---|
4596 | }
|
---|
4597 | _ACEOF
|
---|
4598 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4600 | (eval $ac_link) 2>conftest.er1
|
---|
4601 | ac_status=$?
|
---|
4602 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4603 | rm -f conftest.er1
|
---|
4604 | cat conftest.err >&5
|
---|
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4606 | (exit $ac_status); } &&
|
---|
4607 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4608 | || test ! -s conftest.err'
|
---|
4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4610 | (eval $ac_try) 2>&5
|
---|
4611 | ac_status=$?
|
---|
4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4613 | (exit $ac_status); }; } &&
|
---|
4614 | { ac_try='test -s conftest$ac_exeext'
|
---|
4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4616 | (eval $ac_try) 2>&5
|
---|
4617 | ac_status=$?
|
---|
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4619 | (exit $ac_status); }; }; then
|
---|
4620 | ac_cv_lib_m_main=yes
|
---|
4621 | else
|
---|
4622 | echo "$as_me: failed program was:" >&5
|
---|
4623 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4624 |
|
---|
4625 | ac_cv_lib_m_main=no
|
---|
4626 | fi
|
---|
4627 | rm -f conftest.err conftest.$ac_objext \
|
---|
4628 | conftest$ac_exeext conftest.$ac_ext
|
---|
4629 | LIBS=$ac_check_lib_save_LIBS
|
---|
4630 | fi
|
---|
4631 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
4632 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
4633 | if test $ac_cv_lib_m_main = yes; then
|
---|
4634 | cat >>confdefs.h <<_ACEOF
|
---|
4635 | #define HAVE_LIBM 1
|
---|
4636 | _ACEOF
|
---|
4637 |
|
---|
4638 | LIBS="-lm $LIBS"
|
---|
4639 |
|
---|
4640 | fi
|
---|
4641 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
4642 |
|
---|
4643 |
|
---|
4644 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
4645 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
4646 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
4647 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4648 | else
|
---|
4649 | ac_check_lib_save_LIBS=$LIBS
|
---|
4650 | LIBS="-lcrypt $LIBS"
|
---|
4651 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4652 | /* confdefs.h. */
|
---|
4653 | _ACEOF
|
---|
4654 | cat confdefs.h >>conftest.$ac_ext
|
---|
4655 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4656 | /* end confdefs.h. */
|
---|
4657 |
|
---|
4658 |
|
---|
4659 | int
|
---|
4660 | main ()
|
---|
4661 | {
|
---|
4662 | main ();
|
---|
4663 | ;
|
---|
4664 | return 0;
|
---|
4665 | }
|
---|
4666 | _ACEOF
|
---|
4667 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4669 | (eval $ac_link) 2>conftest.er1
|
---|
4670 | ac_status=$?
|
---|
4671 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4672 | rm -f conftest.er1
|
---|
4673 | cat conftest.err >&5
|
---|
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4675 | (exit $ac_status); } &&
|
---|
4676 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4677 | || test ! -s conftest.err'
|
---|
4678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4679 | (eval $ac_try) 2>&5
|
---|
4680 | ac_status=$?
|
---|
4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4682 | (exit $ac_status); }; } &&
|
---|
4683 | { ac_try='test -s conftest$ac_exeext'
|
---|
4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4685 | (eval $ac_try) 2>&5
|
---|
4686 | ac_status=$?
|
---|
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4688 | (exit $ac_status); }; }; then
|
---|
4689 | ac_cv_lib_crypt_main=yes
|
---|
4690 | else
|
---|
4691 | echo "$as_me: failed program was:" >&5
|
---|
4692 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4693 |
|
---|
4694 | ac_cv_lib_crypt_main=no
|
---|
4695 | fi
|
---|
4696 | rm -f conftest.err conftest.$ac_objext \
|
---|
4697 | conftest$ac_exeext conftest.$ac_ext
|
---|
4698 | LIBS=$ac_check_lib_save_LIBS
|
---|
4699 | fi
|
---|
4700 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
4701 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
4702 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
4703 | cat >>confdefs.h <<_ACEOF
|
---|
4704 | #define HAVE_LIBCRYPT 1
|
---|
4705 | _ACEOF
|
---|
4706 |
|
---|
4707 | LIBS="-lcrypt $LIBS"
|
---|
4708 |
|
---|
4709 | fi
|
---|
4710 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
4711 |
|
---|
4712 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
4713 | #AC_HAVE_LIBRARY(iconv)
|
---|
4714 | #fi
|
---|
4715 |
|
---|
4716 |
|
---|
4717 |
|
---|
4718 |
|
---|
4719 |
|
---|
4720 |
|
---|
4721 | ac_header_dirent=no
|
---|
4722 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
4723 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
4724 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
4725 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
4726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4727 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4728 | else
|
---|
4729 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4730 | /* confdefs.h. */
|
---|
4731 | _ACEOF
|
---|
4732 | cat confdefs.h >>conftest.$ac_ext
|
---|
4733 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4734 | /* end confdefs.h. */
|
---|
4735 | #include <sys/types.h>
|
---|
4736 | #include <$ac_hdr>
|
---|
4737 |
|
---|
4738 | int
|
---|
4739 | main ()
|
---|
4740 | {
|
---|
4741 | if ((DIR *) 0)
|
---|
4742 | return 0;
|
---|
4743 | ;
|
---|
4744 | return 0;
|
---|
4745 | }
|
---|
4746 | _ACEOF
|
---|
4747 | rm -f conftest.$ac_objext
|
---|
4748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4749 | (eval $ac_compile) 2>conftest.er1
|
---|
4750 | ac_status=$?
|
---|
4751 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4752 | rm -f conftest.er1
|
---|
4753 | cat conftest.err >&5
|
---|
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4755 | (exit $ac_status); } &&
|
---|
4756 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4757 | || test ! -s conftest.err'
|
---|
4758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4759 | (eval $ac_try) 2>&5
|
---|
4760 | ac_status=$?
|
---|
4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4762 | (exit $ac_status); }; } &&
|
---|
4763 | { ac_try='test -s conftest.$ac_objext'
|
---|
4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4765 | (eval $ac_try) 2>&5
|
---|
4766 | ac_status=$?
|
---|
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4768 | (exit $ac_status); }; }; then
|
---|
4769 | eval "$as_ac_Header=yes"
|
---|
4770 | else
|
---|
4771 | echo "$as_me: failed program was:" >&5
|
---|
4772 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4773 |
|
---|
4774 | eval "$as_ac_Header=no"
|
---|
4775 | fi
|
---|
4776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4777 | fi
|
---|
4778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4779 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4781 | cat >>confdefs.h <<_ACEOF
|
---|
4782 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
4783 | _ACEOF
|
---|
4784 |
|
---|
4785 | ac_header_dirent=$ac_hdr; break
|
---|
4786 | fi
|
---|
4787 |
|
---|
4788 | done
|
---|
4789 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
4790 | if test $ac_header_dirent = dirent.h; then
|
---|
4791 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4792 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4793 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4794 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4795 | else
|
---|
4796 | ac_func_search_save_LIBS=$LIBS
|
---|
4797 | ac_cv_search_opendir=no
|
---|
4798 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4799 | /* confdefs.h. */
|
---|
4800 | _ACEOF
|
---|
4801 | cat confdefs.h >>conftest.$ac_ext
|
---|
4802 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4803 | /* end confdefs.h. */
|
---|
4804 |
|
---|
4805 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4806 | #ifdef __cplusplus
|
---|
4807 | extern "C"
|
---|
4808 | #endif
|
---|
4809 | /* We use char because int might match the return type of a gcc2
|
---|
4810 | builtin and then its argument prototype would still apply. */
|
---|
4811 | char opendir ();
|
---|
4812 | int
|
---|
4813 | main ()
|
---|
4814 | {
|
---|
4815 | opendir ();
|
---|
4816 | ;
|
---|
4817 | return 0;
|
---|
4818 | }
|
---|
4819 | _ACEOF
|
---|
4820 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4822 | (eval $ac_link) 2>conftest.er1
|
---|
4823 | ac_status=$?
|
---|
4824 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4825 | rm -f conftest.er1
|
---|
4826 | cat conftest.err >&5
|
---|
4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4828 | (exit $ac_status); } &&
|
---|
4829 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4830 | || test ! -s conftest.err'
|
---|
4831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4832 | (eval $ac_try) 2>&5
|
---|
4833 | ac_status=$?
|
---|
4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4835 | (exit $ac_status); }; } &&
|
---|
4836 | { ac_try='test -s conftest$ac_exeext'
|
---|
4837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4838 | (eval $ac_try) 2>&5
|
---|
4839 | ac_status=$?
|
---|
4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4841 | (exit $ac_status); }; }; then
|
---|
4842 | ac_cv_search_opendir="none required"
|
---|
4843 | else
|
---|
4844 | echo "$as_me: failed program was:" >&5
|
---|
4845 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4846 |
|
---|
4847 | fi
|
---|
4848 | rm -f conftest.err conftest.$ac_objext \
|
---|
4849 | conftest$ac_exeext conftest.$ac_ext
|
---|
4850 | if test "$ac_cv_search_opendir" = no; then
|
---|
4851 | for ac_lib in dir; do
|
---|
4852 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4853 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4854 | /* confdefs.h. */
|
---|
4855 | _ACEOF
|
---|
4856 | cat confdefs.h >>conftest.$ac_ext
|
---|
4857 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4858 | /* end confdefs.h. */
|
---|
4859 |
|
---|
4860 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4861 | #ifdef __cplusplus
|
---|
4862 | extern "C"
|
---|
4863 | #endif
|
---|
4864 | /* We use char because int might match the return type of a gcc2
|
---|
4865 | builtin and then its argument prototype would still apply. */
|
---|
4866 | char opendir ();
|
---|
4867 | int
|
---|
4868 | main ()
|
---|
4869 | {
|
---|
4870 | opendir ();
|
---|
4871 | ;
|
---|
4872 | return 0;
|
---|
4873 | }
|
---|
4874 | _ACEOF
|
---|
4875 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4877 | (eval $ac_link) 2>conftest.er1
|
---|
4878 | ac_status=$?
|
---|
4879 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4880 | rm -f conftest.er1
|
---|
4881 | cat conftest.err >&5
|
---|
4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4883 | (exit $ac_status); } &&
|
---|
4884 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4885 | || test ! -s conftest.err'
|
---|
4886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4887 | (eval $ac_try) 2>&5
|
---|
4888 | ac_status=$?
|
---|
4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4890 | (exit $ac_status); }; } &&
|
---|
4891 | { ac_try='test -s conftest$ac_exeext'
|
---|
4892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4893 | (eval $ac_try) 2>&5
|
---|
4894 | ac_status=$?
|
---|
4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4896 | (exit $ac_status); }; }; then
|
---|
4897 | ac_cv_search_opendir="-l$ac_lib"
|
---|
4898 | break
|
---|
4899 | else
|
---|
4900 | echo "$as_me: failed program was:" >&5
|
---|
4901 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4902 |
|
---|
4903 | fi
|
---|
4904 | rm -f conftest.err conftest.$ac_objext \
|
---|
4905 | conftest$ac_exeext conftest.$ac_ext
|
---|
4906 | done
|
---|
4907 | fi
|
---|
4908 | LIBS=$ac_func_search_save_LIBS
|
---|
4909 | fi
|
---|
4910 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
4911 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
4912 | if test "$ac_cv_search_opendir" != no; then
|
---|
4913 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
4914 |
|
---|
4915 | fi
|
---|
4916 |
|
---|
4917 | else
|
---|
4918 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
4919 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
4920 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
4921 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4922 | else
|
---|
4923 | ac_func_search_save_LIBS=$LIBS
|
---|
4924 | ac_cv_search_opendir=no
|
---|
4925 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4926 | /* confdefs.h. */
|
---|
4927 | _ACEOF
|
---|
4928 | cat confdefs.h >>conftest.$ac_ext
|
---|
4929 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4930 | /* end confdefs.h. */
|
---|
4931 |
|
---|
4932 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4933 | #ifdef __cplusplus
|
---|
4934 | extern "C"
|
---|
4935 | #endif
|
---|
4936 | /* We use char because int might match the return type of a gcc2
|
---|
4937 | builtin and then its argument prototype would still apply. */
|
---|
4938 | char opendir ();
|
---|
4939 | int
|
---|
4940 | main ()
|
---|
4941 | {
|
---|
4942 | opendir ();
|
---|
4943 | ;
|
---|
4944 | return 0;
|
---|
4945 | }
|
---|
4946 | _ACEOF
|
---|
4947 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4949 | (eval $ac_link) 2>conftest.er1
|
---|
4950 | ac_status=$?
|
---|
4951 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4952 | rm -f conftest.er1
|
---|
4953 | cat conftest.err >&5
|
---|
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4955 | (exit $ac_status); } &&
|
---|
4956 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4957 | || test ! -s conftest.err'
|
---|
4958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4959 | (eval $ac_try) 2>&5
|
---|
4960 | ac_status=$?
|
---|
4961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4962 | (exit $ac_status); }; } &&
|
---|
4963 | { ac_try='test -s conftest$ac_exeext'
|
---|
4964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4965 | (eval $ac_try) 2>&5
|
---|
4966 | ac_status=$?
|
---|
4967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4968 | (exit $ac_status); }; }; then
|
---|
4969 | ac_cv_search_opendir="none required"
|
---|
4970 | else
|
---|
4971 | echo "$as_me: failed program was:" >&5
|
---|
4972 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4973 |
|
---|
4974 | fi
|
---|
4975 | rm -f conftest.err conftest.$ac_objext \
|
---|
4976 | conftest$ac_exeext conftest.$ac_ext
|
---|
4977 | if test "$ac_cv_search_opendir" = no; then
|
---|
4978 | for ac_lib in x; do
|
---|
4979 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4980 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4981 | /* confdefs.h. */
|
---|
4982 | _ACEOF
|
---|
4983 | cat confdefs.h >>conftest.$ac_ext
|
---|
4984 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4985 | /* end confdefs.h. */
|
---|
4986 |
|
---|
4987 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4988 | #ifdef __cplusplus
|
---|
4989 | extern "C"
|
---|
4990 | #endif
|
---|
4991 | /* We use char because int might match the return type of a gcc2
|
---|
4992 | builtin and then its argument prototype would still apply. */
|
---|
4993 | char opendir ();
|
---|
4994 | int
|
---|
4995 | main ()
|
---|
4996 | {
|
---|
4997 | opendir ();
|
---|
4998 | ;
|
---|
4999 | return 0;
|
---|
5000 | }
|
---|
5001 | _ACEOF
|
---|
5002 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5004 | (eval $ac_link) 2>conftest.er1
|
---|
5005 | ac_status=$?
|
---|
5006 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5007 | rm -f conftest.er1
|
---|
5008 | cat conftest.err >&5
|
---|
5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5010 | (exit $ac_status); } &&
|
---|
5011 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5012 | || test ! -s conftest.err'
|
---|
5013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5014 | (eval $ac_try) 2>&5
|
---|
5015 | ac_status=$?
|
---|
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5017 | (exit $ac_status); }; } &&
|
---|
5018 | { ac_try='test -s conftest$ac_exeext'
|
---|
5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5020 | (eval $ac_try) 2>&5
|
---|
5021 | ac_status=$?
|
---|
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5023 | (exit $ac_status); }; }; then
|
---|
5024 | ac_cv_search_opendir="-l$ac_lib"
|
---|
5025 | break
|
---|
5026 | else
|
---|
5027 | echo "$as_me: failed program was:" >&5
|
---|
5028 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5029 |
|
---|
5030 | fi
|
---|
5031 | rm -f conftest.err conftest.$ac_objext \
|
---|
5032 | conftest$ac_exeext conftest.$ac_ext
|
---|
5033 | done
|
---|
5034 | fi
|
---|
5035 | LIBS=$ac_func_search_save_LIBS
|
---|
5036 | fi
|
---|
5037 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
5038 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
5039 | if test "$ac_cv_search_opendir" != no; then
|
---|
5040 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
5041 |
|
---|
5042 | fi
|
---|
5043 |
|
---|
5044 | fi
|
---|
5045 |
|
---|
5046 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
5047 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
5048 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
5049 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5050 | else
|
---|
5051 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5052 | /* confdefs.h. */
|
---|
5053 | _ACEOF
|
---|
5054 | cat confdefs.h >>conftest.$ac_ext
|
---|
5055 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5056 | /* end confdefs.h. */
|
---|
5057 | #include <stdlib.h>
|
---|
5058 | #include <stdarg.h>
|
---|
5059 | #include <string.h>
|
---|
5060 | #include <float.h>
|
---|
5061 |
|
---|
5062 | int
|
---|
5063 | main ()
|
---|
5064 | {
|
---|
5065 |
|
---|
5066 | ;
|
---|
5067 | return 0;
|
---|
5068 | }
|
---|
5069 | _ACEOF
|
---|
5070 | rm -f conftest.$ac_objext
|
---|
5071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5072 | (eval $ac_compile) 2>conftest.er1
|
---|
5073 | ac_status=$?
|
---|
5074 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5075 | rm -f conftest.er1
|
---|
5076 | cat conftest.err >&5
|
---|
5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5078 | (exit $ac_status); } &&
|
---|
5079 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5080 | || test ! -s conftest.err'
|
---|
5081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5082 | (eval $ac_try) 2>&5
|
---|
5083 | ac_status=$?
|
---|
5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5085 | (exit $ac_status); }; } &&
|
---|
5086 | { ac_try='test -s conftest.$ac_objext'
|
---|
5087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5088 | (eval $ac_try) 2>&5
|
---|
5089 | ac_status=$?
|
---|
5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5091 | (exit $ac_status); }; }; then
|
---|
5092 | ac_cv_header_stdc=yes
|
---|
5093 | else
|
---|
5094 | echo "$as_me: failed program was:" >&5
|
---|
5095 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5096 |
|
---|
5097 | ac_cv_header_stdc=no
|
---|
5098 | fi
|
---|
5099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5100 |
|
---|
5101 | if test $ac_cv_header_stdc = yes; then
|
---|
5102 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5103 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5104 | /* confdefs.h. */
|
---|
5105 | _ACEOF
|
---|
5106 | cat confdefs.h >>conftest.$ac_ext
|
---|
5107 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5108 | /* end confdefs.h. */
|
---|
5109 | #include <string.h>
|
---|
5110 |
|
---|
5111 | _ACEOF
|
---|
5112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5113 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
5114 | :
|
---|
5115 | else
|
---|
5116 | ac_cv_header_stdc=no
|
---|
5117 | fi
|
---|
5118 | rm -f conftest*
|
---|
5119 |
|
---|
5120 | fi
|
---|
5121 |
|
---|
5122 | if test $ac_cv_header_stdc = yes; then
|
---|
5123 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5124 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5125 | /* confdefs.h. */
|
---|
5126 | _ACEOF
|
---|
5127 | cat confdefs.h >>conftest.$ac_ext
|
---|
5128 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5129 | /* end confdefs.h. */
|
---|
5130 | #include <stdlib.h>
|
---|
5131 |
|
---|
5132 | _ACEOF
|
---|
5133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5134 | $EGREP "free" >/dev/null 2>&1; then
|
---|
5135 | :
|
---|
5136 | else
|
---|
5137 | ac_cv_header_stdc=no
|
---|
5138 | fi
|
---|
5139 | rm -f conftest*
|
---|
5140 |
|
---|
5141 | fi
|
---|
5142 |
|
---|
5143 | if test $ac_cv_header_stdc = yes; then
|
---|
5144 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5145 | if test "$cross_compiling" = yes; then
|
---|
5146 | :
|
---|
5147 | else
|
---|
5148 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5149 | /* confdefs.h. */
|
---|
5150 | _ACEOF
|
---|
5151 | cat confdefs.h >>conftest.$ac_ext
|
---|
5152 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5153 | /* end confdefs.h. */
|
---|
5154 | #include <ctype.h>
|
---|
5155 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5156 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5157 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5158 | #else
|
---|
5159 | # define ISLOWER(c) \
|
---|
5160 | (('a' <= (c) && (c) <= 'i') \
|
---|
5161 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5162 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5163 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5164 | #endif
|
---|
5165 |
|
---|
5166 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5167 | int
|
---|
5168 | main ()
|
---|
5169 | {
|
---|
5170 | int i;
|
---|
5171 | for (i = 0; i < 256; i++)
|
---|
5172 | if (XOR (islower (i), ISLOWER (i))
|
---|
5173 | || toupper (i) != TOUPPER (i))
|
---|
5174 | exit(2);
|
---|
5175 | exit (0);
|
---|
5176 | }
|
---|
5177 | _ACEOF
|
---|
5178 | rm -f conftest$ac_exeext
|
---|
5179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5180 | (eval $ac_link) 2>&5
|
---|
5181 | ac_status=$?
|
---|
5182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5183 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5185 | (eval $ac_try) 2>&5
|
---|
5186 | ac_status=$?
|
---|
5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5188 | (exit $ac_status); }; }; then
|
---|
5189 | :
|
---|
5190 | else
|
---|
5191 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5192 | echo "$as_me: failed program was:" >&5
|
---|
5193 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5194 |
|
---|
5195 | ( exit $ac_status )
|
---|
5196 | ac_cv_header_stdc=no
|
---|
5197 | fi
|
---|
5198 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5199 | fi
|
---|
5200 | fi
|
---|
5201 | fi
|
---|
5202 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
5203 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
5204 | if test $ac_cv_header_stdc = yes; then
|
---|
5205 |
|
---|
5206 | cat >>confdefs.h <<\_ACEOF
|
---|
5207 | #define STDC_HEADERS 1
|
---|
5208 | _ACEOF
|
---|
5209 |
|
---|
5210 | fi
|
---|
5211 |
|
---|
5212 |
|
---|
5213 |
|
---|
5214 |
|
---|
5215 |
|
---|
5216 |
|
---|
5217 |
|
---|
5218 |
|
---|
5219 |
|
---|
5220 |
|
---|
5221 | 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
|
---|
5222 | do
|
---|
5223 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5225 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5226 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5228 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5229 | fi
|
---|
5230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5231 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5232 | else
|
---|
5233 | # Is the header compilable?
|
---|
5234 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
5235 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
5236 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5237 | /* confdefs.h. */
|
---|
5238 | _ACEOF
|
---|
5239 | cat confdefs.h >>conftest.$ac_ext
|
---|
5240 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5241 | /* end confdefs.h. */
|
---|
5242 | $ac_includes_default
|
---|
5243 | #include <$ac_header>
|
---|
5244 | _ACEOF
|
---|
5245 | rm -f conftest.$ac_objext
|
---|
5246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5247 | (eval $ac_compile) 2>conftest.er1
|
---|
5248 | ac_status=$?
|
---|
5249 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5250 | rm -f conftest.er1
|
---|
5251 | cat conftest.err >&5
|
---|
5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5253 | (exit $ac_status); } &&
|
---|
5254 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5255 | || test ! -s conftest.err'
|
---|
5256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5257 | (eval $ac_try) 2>&5
|
---|
5258 | ac_status=$?
|
---|
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5260 | (exit $ac_status); }; } &&
|
---|
5261 | { ac_try='test -s conftest.$ac_objext'
|
---|
5262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5263 | (eval $ac_try) 2>&5
|
---|
5264 | ac_status=$?
|
---|
5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5266 | (exit $ac_status); }; }; then
|
---|
5267 | ac_header_compiler=yes
|
---|
5268 | else
|
---|
5269 | echo "$as_me: failed program was:" >&5
|
---|
5270 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5271 |
|
---|
5272 | ac_header_compiler=no
|
---|
5273 | fi
|
---|
5274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5275 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5276 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5277 |
|
---|
5278 | # Is the header present?
|
---|
5279 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
5280 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
5281 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5282 | /* confdefs.h. */
|
---|
5283 | _ACEOF
|
---|
5284 | cat confdefs.h >>conftest.$ac_ext
|
---|
5285 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5286 | /* end confdefs.h. */
|
---|
5287 | #include <$ac_header>
|
---|
5288 | _ACEOF
|
---|
5289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5291 | ac_status=$?
|
---|
5292 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5293 | rm -f conftest.er1
|
---|
5294 | cat conftest.err >&5
|
---|
5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5296 | (exit $ac_status); } >/dev/null; then
|
---|
5297 | if test -s conftest.err; then
|
---|
5298 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5300 | else
|
---|
5301 | ac_cpp_err=
|
---|
5302 | fi
|
---|
5303 | else
|
---|
5304 | ac_cpp_err=yes
|
---|
5305 | fi
|
---|
5306 | if test -z "$ac_cpp_err"; then
|
---|
5307 | ac_header_preproc=yes
|
---|
5308 | else
|
---|
5309 | echo "$as_me: failed program was:" >&5
|
---|
5310 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5311 |
|
---|
5312 | ac_header_preproc=no
|
---|
5313 | fi
|
---|
5314 | rm -f conftest.err conftest.$ac_ext
|
---|
5315 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5316 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5317 |
|
---|
5318 | # So? What about this header?
|
---|
5319 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5320 | yes:no: )
|
---|
5321 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5322 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
5324 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
5325 | ac_header_preproc=yes
|
---|
5326 | ;;
|
---|
5327 | no:yes:* )
|
---|
5328 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
5329 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
5330 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
5331 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
5332 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
5333 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
5334 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5335 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
5337 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
5338 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
5339 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
5340 | (
|
---|
5341 | cat <<\_ASBOX
|
---|
5342 | ## ------------------------------------------ ##
|
---|
5343 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
5344 | ## ------------------------------------------ ##
|
---|
5345 | _ASBOX
|
---|
5346 | ) |
|
---|
5347 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5348 | ;;
|
---|
5349 | esac
|
---|
5350 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
5351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
5352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5354 | else
|
---|
5355 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
5356 | fi
|
---|
5357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
5358 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
5359 |
|
---|
5360 | fi
|
---|
5361 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
5362 | cat >>confdefs.h <<_ACEOF
|
---|
5363 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5364 | _ACEOF
|
---|
5365 |
|
---|
5366 | fi
|
---|
5367 |
|
---|
5368 | done
|
---|
5369 |
|
---|
5370 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5371 | /* confdefs.h. */
|
---|
5372 | _ACEOF
|
---|
5373 | cat confdefs.h >>conftest.$ac_ext
|
---|
5374 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5375 | /* end confdefs.h. */
|
---|
5376 | #include <stdio.h>
|
---|
5377 |
|
---|
5378 | _ACEOF
|
---|
5379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5380 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
5381 | cat >>confdefs.h <<\_ACEOF
|
---|
5382 | #define HAVE_FREAD_DECL 1
|
---|
5383 | _ACEOF
|
---|
5384 |
|
---|
5385 | fi
|
---|
5386 | rm -f conftest*
|
---|
5387 |
|
---|
5388 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5389 | /* confdefs.h. */
|
---|
5390 | _ACEOF
|
---|
5391 | cat confdefs.h >>conftest.$ac_ext
|
---|
5392 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5393 | /* end confdefs.h. */
|
---|
5394 | #include <stdio.h>
|
---|
5395 |
|
---|
5396 | _ACEOF
|
---|
5397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5398 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
5399 | cat >>confdefs.h <<\_ACEOF
|
---|
5400 | #define HAVE_FGETC_DECL 1
|
---|
5401 | _ACEOF
|
---|
5402 |
|
---|
5403 | fi
|
---|
5404 | rm -f conftest*
|
---|
5405 |
|
---|
5406 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5407 | /* confdefs.h. */
|
---|
5408 | _ACEOF
|
---|
5409 | cat confdefs.h >>conftest.$ac_ext
|
---|
5410 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5411 | /* end confdefs.h. */
|
---|
5412 | #include <sys/procfs.h>
|
---|
5413 |
|
---|
5414 | _ACEOF
|
---|
5415 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5416 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
5417 | cat >>confdefs.h <<\_ACEOF
|
---|
5418 | #define HAVE_PR_BRKSIZE 1
|
---|
5419 | _ACEOF
|
---|
5420 |
|
---|
5421 | fi
|
---|
5422 | rm -f conftest*
|
---|
5423 |
|
---|
5424 |
|
---|
5425 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5426 | # for constant arguments. Useless!
|
---|
5427 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
5428 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
5429 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
5430 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5431 | else
|
---|
5432 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5433 | /* confdefs.h. */
|
---|
5434 | _ACEOF
|
---|
5435 | cat confdefs.h >>conftest.$ac_ext
|
---|
5436 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5437 | /* end confdefs.h. */
|
---|
5438 | #include <alloca.h>
|
---|
5439 | int
|
---|
5440 | main ()
|
---|
5441 | {
|
---|
5442 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5443 | ;
|
---|
5444 | return 0;
|
---|
5445 | }
|
---|
5446 | _ACEOF
|
---|
5447 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5449 | (eval $ac_link) 2>conftest.er1
|
---|
5450 | ac_status=$?
|
---|
5451 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5452 | rm -f conftest.er1
|
---|
5453 | cat conftest.err >&5
|
---|
5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5455 | (exit $ac_status); } &&
|
---|
5456 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5457 | || test ! -s conftest.err'
|
---|
5458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5459 | (eval $ac_try) 2>&5
|
---|
5460 | ac_status=$?
|
---|
5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5462 | (exit $ac_status); }; } &&
|
---|
5463 | { ac_try='test -s conftest$ac_exeext'
|
---|
5464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5465 | (eval $ac_try) 2>&5
|
---|
5466 | ac_status=$?
|
---|
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5468 | (exit $ac_status); }; }; then
|
---|
5469 | ac_cv_working_alloca_h=yes
|
---|
5470 | else
|
---|
5471 | echo "$as_me: failed program was:" >&5
|
---|
5472 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5473 |
|
---|
5474 | ac_cv_working_alloca_h=no
|
---|
5475 | fi
|
---|
5476 | rm -f conftest.err conftest.$ac_objext \
|
---|
5477 | conftest$ac_exeext conftest.$ac_ext
|
---|
5478 | fi
|
---|
5479 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
5480 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
5481 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5482 |
|
---|
5483 | cat >>confdefs.h <<\_ACEOF
|
---|
5484 | #define HAVE_ALLOCA_H 1
|
---|
5485 | _ACEOF
|
---|
5486 |
|
---|
5487 | fi
|
---|
5488 |
|
---|
5489 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
5490 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
5491 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
5492 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5493 | else
|
---|
5494 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5495 | /* confdefs.h. */
|
---|
5496 | _ACEOF
|
---|
5497 | cat confdefs.h >>conftest.$ac_ext
|
---|
5498 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5499 | /* end confdefs.h. */
|
---|
5500 | #ifdef __GNUC__
|
---|
5501 | # define alloca __builtin_alloca
|
---|
5502 | #else
|
---|
5503 | # ifdef _MSC_VER
|
---|
5504 | # include <malloc.h>
|
---|
5505 | # define alloca _alloca
|
---|
5506 | # else
|
---|
5507 | # if HAVE_ALLOCA_H
|
---|
5508 | # include <alloca.h>
|
---|
5509 | # else
|
---|
5510 | # ifdef _AIX
|
---|
5511 | #pragma alloca
|
---|
5512 | # else
|
---|
5513 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5514 | char *alloca ();
|
---|
5515 | # endif
|
---|
5516 | # endif
|
---|
5517 | # endif
|
---|
5518 | # endif
|
---|
5519 | #endif
|
---|
5520 |
|
---|
5521 | int
|
---|
5522 | main ()
|
---|
5523 | {
|
---|
5524 | char *p = (char *) alloca (1);
|
---|
5525 | ;
|
---|
5526 | return 0;
|
---|
5527 | }
|
---|
5528 | _ACEOF
|
---|
5529 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5531 | (eval $ac_link) 2>conftest.er1
|
---|
5532 | ac_status=$?
|
---|
5533 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5534 | rm -f conftest.er1
|
---|
5535 | cat conftest.err >&5
|
---|
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5537 | (exit $ac_status); } &&
|
---|
5538 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5539 | || test ! -s conftest.err'
|
---|
5540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5541 | (eval $ac_try) 2>&5
|
---|
5542 | ac_status=$?
|
---|
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5544 | (exit $ac_status); }; } &&
|
---|
5545 | { ac_try='test -s conftest$ac_exeext'
|
---|
5546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5547 | (eval $ac_try) 2>&5
|
---|
5548 | ac_status=$?
|
---|
5549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5550 | (exit $ac_status); }; }; then
|
---|
5551 | ac_cv_func_alloca_works=yes
|
---|
5552 | else
|
---|
5553 | echo "$as_me: failed program was:" >&5
|
---|
5554 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5555 |
|
---|
5556 | ac_cv_func_alloca_works=no
|
---|
5557 | fi
|
---|
5558 | rm -f conftest.err conftest.$ac_objext \
|
---|
5559 | conftest$ac_exeext conftest.$ac_ext
|
---|
5560 | fi
|
---|
5561 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
5562 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
5563 |
|
---|
5564 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5565 |
|
---|
5566 | cat >>confdefs.h <<\_ACEOF
|
---|
5567 | #define HAVE_ALLOCA 1
|
---|
5568 | _ACEOF
|
---|
5569 |
|
---|
5570 | else
|
---|
5571 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5572 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5573 | # contain a buggy version. If you still want to use their alloca,
|
---|
5574 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5575 |
|
---|
5576 | ALLOCA=alloca.$ac_objext
|
---|
5577 |
|
---|
5578 | cat >>confdefs.h <<\_ACEOF
|
---|
5579 | #define C_ALLOCA 1
|
---|
5580 | _ACEOF
|
---|
5581 |
|
---|
5582 |
|
---|
5583 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5584 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
5585 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
5586 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5587 | else
|
---|
5588 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5589 | /* confdefs.h. */
|
---|
5590 | _ACEOF
|
---|
5591 | cat confdefs.h >>conftest.$ac_ext
|
---|
5592 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5593 | /* end confdefs.h. */
|
---|
5594 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
5595 | webecray
|
---|
5596 | #else
|
---|
5597 | wenotbecray
|
---|
5598 | #endif
|
---|
5599 |
|
---|
5600 | _ACEOF
|
---|
5601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5602 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
5603 | ac_cv_os_cray=yes
|
---|
5604 | else
|
---|
5605 | ac_cv_os_cray=no
|
---|
5606 | fi
|
---|
5607 | rm -f conftest*
|
---|
5608 |
|
---|
5609 | fi
|
---|
5610 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
5611 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
5612 | if test $ac_cv_os_cray = yes; then
|
---|
5613 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5614 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5615 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5616 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5617 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5618 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5619 | else
|
---|
5620 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5621 | /* confdefs.h. */
|
---|
5622 | _ACEOF
|
---|
5623 | cat confdefs.h >>conftest.$ac_ext
|
---|
5624 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5625 | /* end confdefs.h. */
|
---|
5626 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5627 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5628 | #define $ac_func innocuous_$ac_func
|
---|
5629 |
|
---|
5630 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5631 | which can conflict with char $ac_func (); below.
|
---|
5632 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5633 | <limits.h> exists even on freestanding compilers. */
|
---|
5634 |
|
---|
5635 | #ifdef __STDC__
|
---|
5636 | # include <limits.h>
|
---|
5637 | #else
|
---|
5638 | # include <assert.h>
|
---|
5639 | #endif
|
---|
5640 |
|
---|
5641 | #undef $ac_func
|
---|
5642 |
|
---|
5643 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5644 | #ifdef __cplusplus
|
---|
5645 | extern "C"
|
---|
5646 | {
|
---|
5647 | #endif
|
---|
5648 | /* We use char because int might match the return type of a gcc2
|
---|
5649 | builtin and then its argument prototype would still apply. */
|
---|
5650 | char $ac_func ();
|
---|
5651 | /* The GNU C library defines this for functions which it implements
|
---|
5652 | to always fail with ENOSYS. Some functions are actually named
|
---|
5653 | something starting with __ and the normal name is an alias. */
|
---|
5654 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5655 | choke me
|
---|
5656 | #else
|
---|
5657 | char (*f) () = $ac_func;
|
---|
5658 | #endif
|
---|
5659 | #ifdef __cplusplus
|
---|
5660 | }
|
---|
5661 | #endif
|
---|
5662 |
|
---|
5663 | int
|
---|
5664 | main ()
|
---|
5665 | {
|
---|
5666 | return f != $ac_func;
|
---|
5667 | ;
|
---|
5668 | return 0;
|
---|
5669 | }
|
---|
5670 | _ACEOF
|
---|
5671 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5673 | (eval $ac_link) 2>conftest.er1
|
---|
5674 | ac_status=$?
|
---|
5675 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5676 | rm -f conftest.er1
|
---|
5677 | cat conftest.err >&5
|
---|
5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5679 | (exit $ac_status); } &&
|
---|
5680 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5681 | || test ! -s conftest.err'
|
---|
5682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5683 | (eval $ac_try) 2>&5
|
---|
5684 | ac_status=$?
|
---|
5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5686 | (exit $ac_status); }; } &&
|
---|
5687 | { ac_try='test -s conftest$ac_exeext'
|
---|
5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5689 | (eval $ac_try) 2>&5
|
---|
5690 | ac_status=$?
|
---|
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5692 | (exit $ac_status); }; }; then
|
---|
5693 | eval "$as_ac_var=yes"
|
---|
5694 | else
|
---|
5695 | echo "$as_me: failed program was:" >&5
|
---|
5696 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5697 |
|
---|
5698 | eval "$as_ac_var=no"
|
---|
5699 | fi
|
---|
5700 | rm -f conftest.err conftest.$ac_objext \
|
---|
5701 | conftest$ac_exeext conftest.$ac_ext
|
---|
5702 | fi
|
---|
5703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5704 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5705 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5706 |
|
---|
5707 | cat >>confdefs.h <<_ACEOF
|
---|
5708 | #define CRAY_STACKSEG_END $ac_func
|
---|
5709 | _ACEOF
|
---|
5710 |
|
---|
5711 | break
|
---|
5712 | fi
|
---|
5713 |
|
---|
5714 | done
|
---|
5715 | fi
|
---|
5716 |
|
---|
5717 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
5718 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
5719 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
5720 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5721 | else
|
---|
5722 | if test "$cross_compiling" = yes; then
|
---|
5723 | ac_cv_c_stack_direction=0
|
---|
5724 | else
|
---|
5725 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5726 | /* confdefs.h. */
|
---|
5727 | _ACEOF
|
---|
5728 | cat confdefs.h >>conftest.$ac_ext
|
---|
5729 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5730 | /* end confdefs.h. */
|
---|
5731 | int
|
---|
5732 | find_stack_direction ()
|
---|
5733 | {
|
---|
5734 | static char *addr = 0;
|
---|
5735 | auto char dummy;
|
---|
5736 | if (addr == 0)
|
---|
5737 | {
|
---|
5738 | addr = &dummy;
|
---|
5739 | return find_stack_direction ();
|
---|
5740 | }
|
---|
5741 | else
|
---|
5742 | return (&dummy > addr) ? 1 : -1;
|
---|
5743 | }
|
---|
5744 |
|
---|
5745 | int
|
---|
5746 | main ()
|
---|
5747 | {
|
---|
5748 | exit (find_stack_direction () < 0);
|
---|
5749 | }
|
---|
5750 | _ACEOF
|
---|
5751 | rm -f conftest$ac_exeext
|
---|
5752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5753 | (eval $ac_link) 2>&5
|
---|
5754 | ac_status=$?
|
---|
5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5756 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5758 | (eval $ac_try) 2>&5
|
---|
5759 | ac_status=$?
|
---|
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5761 | (exit $ac_status); }; }; then
|
---|
5762 | ac_cv_c_stack_direction=1
|
---|
5763 | else
|
---|
5764 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5765 | echo "$as_me: failed program was:" >&5
|
---|
5766 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5767 |
|
---|
5768 | ( exit $ac_status )
|
---|
5769 | ac_cv_c_stack_direction=-1
|
---|
5770 | fi
|
---|
5771 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5772 | fi
|
---|
5773 | fi
|
---|
5774 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
5775 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
5776 |
|
---|
5777 | cat >>confdefs.h <<_ACEOF
|
---|
5778 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5779 | _ACEOF
|
---|
5780 |
|
---|
5781 |
|
---|
5782 | fi
|
---|
5783 |
|
---|
5784 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5785 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
5786 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
5787 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
5788 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5789 | else
|
---|
5790 | ac_pattern="Autoconf.*'x'"
|
---|
5791 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5792 | /* confdefs.h. */
|
---|
5793 | _ACEOF
|
---|
5794 | cat confdefs.h >>conftest.$ac_ext
|
---|
5795 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5796 | /* end confdefs.h. */
|
---|
5797 | #include <sgtty.h>
|
---|
5798 | Autoconf TIOCGETP
|
---|
5799 | _ACEOF
|
---|
5800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5801 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5802 | ac_cv_prog_gcc_traditional=yes
|
---|
5803 | else
|
---|
5804 | ac_cv_prog_gcc_traditional=no
|
---|
5805 | fi
|
---|
5806 | rm -f conftest*
|
---|
5807 |
|
---|
5808 |
|
---|
5809 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5810 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5811 | /* confdefs.h. */
|
---|
5812 | _ACEOF
|
---|
5813 | cat confdefs.h >>conftest.$ac_ext
|
---|
5814 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5815 | /* end confdefs.h. */
|
---|
5816 | #include <termio.h>
|
---|
5817 | Autoconf TCGETA
|
---|
5818 | _ACEOF
|
---|
5819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5820 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
5821 | ac_cv_prog_gcc_traditional=yes
|
---|
5822 | fi
|
---|
5823 | rm -f conftest*
|
---|
5824 |
|
---|
5825 | fi
|
---|
5826 | fi
|
---|
5827 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5828 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
5829 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5830 | CC="$CC -traditional"
|
---|
5831 | fi
|
---|
5832 | fi
|
---|
5833 |
|
---|
5834 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
5835 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
5836 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
5837 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5838 | else
|
---|
5839 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5840 | /* confdefs.h. */
|
---|
5841 | _ACEOF
|
---|
5842 | cat confdefs.h >>conftest.$ac_ext
|
---|
5843 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5844 | /* end confdefs.h. */
|
---|
5845 | #include <sys/types.h>
|
---|
5846 | #include <signal.h>
|
---|
5847 | #ifdef signal
|
---|
5848 | # undef signal
|
---|
5849 | #endif
|
---|
5850 | #ifdef __cplusplus
|
---|
5851 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
5852 | #else
|
---|
5853 | void (*signal ()) ();
|
---|
5854 | #endif
|
---|
5855 |
|
---|
5856 | int
|
---|
5857 | main ()
|
---|
5858 | {
|
---|
5859 | int i;
|
---|
5860 | ;
|
---|
5861 | return 0;
|
---|
5862 | }
|
---|
5863 | _ACEOF
|
---|
5864 | rm -f conftest.$ac_objext
|
---|
5865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5866 | (eval $ac_compile) 2>conftest.er1
|
---|
5867 | ac_status=$?
|
---|
5868 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5869 | rm -f conftest.er1
|
---|
5870 | cat conftest.err >&5
|
---|
5871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5872 | (exit $ac_status); } &&
|
---|
5873 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5874 | || test ! -s conftest.err'
|
---|
5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5876 | (eval $ac_try) 2>&5
|
---|
5877 | ac_status=$?
|
---|
5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5879 | (exit $ac_status); }; } &&
|
---|
5880 | { ac_try='test -s conftest.$ac_objext'
|
---|
5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5882 | (eval $ac_try) 2>&5
|
---|
5883 | ac_status=$?
|
---|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5885 | (exit $ac_status); }; }; then
|
---|
5886 | ac_cv_type_signal=void
|
---|
5887 | else
|
---|
5888 | echo "$as_me: failed program was:" >&5
|
---|
5889 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5890 |
|
---|
5891 | ac_cv_type_signal=int
|
---|
5892 | fi
|
---|
5893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5894 | fi
|
---|
5895 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
5896 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
5897 |
|
---|
5898 | cat >>confdefs.h <<_ACEOF
|
---|
5899 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5900 | _ACEOF
|
---|
5901 |
|
---|
5902 |
|
---|
5903 |
|
---|
5904 | for ac_func in vprintf
|
---|
5905 | do
|
---|
5906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5907 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
5908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
5909 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
5910 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5911 | else
|
---|
5912 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5913 | /* confdefs.h. */
|
---|
5914 | _ACEOF
|
---|
5915 | cat confdefs.h >>conftest.$ac_ext
|
---|
5916 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5917 | /* end confdefs.h. */
|
---|
5918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
5919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
5920 | #define $ac_func innocuous_$ac_func
|
---|
5921 |
|
---|
5922 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
5923 | which can conflict with char $ac_func (); below.
|
---|
5924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
5925 | <limits.h> exists even on freestanding compilers. */
|
---|
5926 |
|
---|
5927 | #ifdef __STDC__
|
---|
5928 | # include <limits.h>
|
---|
5929 | #else
|
---|
5930 | # include <assert.h>
|
---|
5931 | #endif
|
---|
5932 |
|
---|
5933 | #undef $ac_func
|
---|
5934 |
|
---|
5935 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5936 | #ifdef __cplusplus
|
---|
5937 | extern "C"
|
---|
5938 | {
|
---|
5939 | #endif
|
---|
5940 | /* We use char because int might match the return type of a gcc2
|
---|
5941 | builtin and then its argument prototype would still apply. */
|
---|
5942 | char $ac_func ();
|
---|
5943 | /* The GNU C library defines this for functions which it implements
|
---|
5944 | to always fail with ENOSYS. Some functions are actually named
|
---|
5945 | something starting with __ and the normal name is an alias. */
|
---|
5946 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
5947 | choke me
|
---|
5948 | #else
|
---|
5949 | char (*f) () = $ac_func;
|
---|
5950 | #endif
|
---|
5951 | #ifdef __cplusplus
|
---|
5952 | }
|
---|
5953 | #endif
|
---|
5954 |
|
---|
5955 | int
|
---|
5956 | main ()
|
---|
5957 | {
|
---|
5958 | return f != $ac_func;
|
---|
5959 | ;
|
---|
5960 | return 0;
|
---|
5961 | }
|
---|
5962 | _ACEOF
|
---|
5963 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5965 | (eval $ac_link) 2>conftest.er1
|
---|
5966 | ac_status=$?
|
---|
5967 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5968 | rm -f conftest.er1
|
---|
5969 | cat conftest.err >&5
|
---|
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5971 | (exit $ac_status); } &&
|
---|
5972 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5973 | || test ! -s conftest.err'
|
---|
5974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5975 | (eval $ac_try) 2>&5
|
---|
5976 | ac_status=$?
|
---|
5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5978 | (exit $ac_status); }; } &&
|
---|
5979 | { ac_try='test -s conftest$ac_exeext'
|
---|
5980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5981 | (eval $ac_try) 2>&5
|
---|
5982 | ac_status=$?
|
---|
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5984 | (exit $ac_status); }; }; then
|
---|
5985 | eval "$as_ac_var=yes"
|
---|
5986 | else
|
---|
5987 | echo "$as_me: failed program was:" >&5
|
---|
5988 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5989 |
|
---|
5990 | eval "$as_ac_var=no"
|
---|
5991 | fi
|
---|
5992 | rm -f conftest.err conftest.$ac_objext \
|
---|
5993 | conftest$ac_exeext conftest.$ac_ext
|
---|
5994 | fi
|
---|
5995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
5996 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
5997 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
5998 | cat >>confdefs.h <<_ACEOF
|
---|
5999 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6000 | _ACEOF
|
---|
6001 |
|
---|
6002 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
6003 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
6004 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
6005 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6006 | else
|
---|
6007 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6008 | /* confdefs.h. */
|
---|
6009 | _ACEOF
|
---|
6010 | cat confdefs.h >>conftest.$ac_ext
|
---|
6011 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6012 | /* end confdefs.h. */
|
---|
6013 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
6014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6015 | #define _doprnt innocuous__doprnt
|
---|
6016 |
|
---|
6017 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6018 | which can conflict with char _doprnt (); below.
|
---|
6019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6020 | <limits.h> exists even on freestanding compilers. */
|
---|
6021 |
|
---|
6022 | #ifdef __STDC__
|
---|
6023 | # include <limits.h>
|
---|
6024 | #else
|
---|
6025 | # include <assert.h>
|
---|
6026 | #endif
|
---|
6027 |
|
---|
6028 | #undef _doprnt
|
---|
6029 |
|
---|
6030 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6031 | #ifdef __cplusplus
|
---|
6032 | extern "C"
|
---|
6033 | {
|
---|
6034 | #endif
|
---|
6035 | /* We use char because int might match the return type of a gcc2
|
---|
6036 | builtin and then its argument prototype would still apply. */
|
---|
6037 | char _doprnt ();
|
---|
6038 | /* The GNU C library defines this for functions which it implements
|
---|
6039 | to always fail with ENOSYS. Some functions are actually named
|
---|
6040 | something starting with __ and the normal name is an alias. */
|
---|
6041 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
6042 | choke me
|
---|
6043 | #else
|
---|
6044 | char (*f) () = _doprnt;
|
---|
6045 | #endif
|
---|
6046 | #ifdef __cplusplus
|
---|
6047 | }
|
---|
6048 | #endif
|
---|
6049 |
|
---|
6050 | int
|
---|
6051 | main ()
|
---|
6052 | {
|
---|
6053 | return f != _doprnt;
|
---|
6054 | ;
|
---|
6055 | return 0;
|
---|
6056 | }
|
---|
6057 | _ACEOF
|
---|
6058 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6060 | (eval $ac_link) 2>conftest.er1
|
---|
6061 | ac_status=$?
|
---|
6062 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6063 | rm -f conftest.er1
|
---|
6064 | cat conftest.err >&5
|
---|
6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6066 | (exit $ac_status); } &&
|
---|
6067 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6068 | || test ! -s conftest.err'
|
---|
6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6070 | (eval $ac_try) 2>&5
|
---|
6071 | ac_status=$?
|
---|
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6073 | (exit $ac_status); }; } &&
|
---|
6074 | { ac_try='test -s conftest$ac_exeext'
|
---|
6075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6076 | (eval $ac_try) 2>&5
|
---|
6077 | ac_status=$?
|
---|
6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6079 | (exit $ac_status); }; }; then
|
---|
6080 | ac_cv_func__doprnt=yes
|
---|
6081 | else
|
---|
6082 | echo "$as_me: failed program was:" >&5
|
---|
6083 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6084 |
|
---|
6085 | ac_cv_func__doprnt=no
|
---|
6086 | fi
|
---|
6087 | rm -f conftest.err conftest.$ac_objext \
|
---|
6088 | conftest$ac_exeext conftest.$ac_ext
|
---|
6089 | fi
|
---|
6090 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
6091 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
6092 | if test $ac_cv_func__doprnt = yes; then
|
---|
6093 |
|
---|
6094 | cat >>confdefs.h <<\_ACEOF
|
---|
6095 | #define HAVE_DOPRNT 1
|
---|
6096 | _ACEOF
|
---|
6097 |
|
---|
6098 | fi
|
---|
6099 |
|
---|
6100 | fi
|
---|
6101 | done
|
---|
6102 |
|
---|
6103 |
|
---|
6104 |
|
---|
6105 |
|
---|
6106 |
|
---|
6107 |
|
---|
6108 |
|
---|
6109 |
|
---|
6110 |
|
---|
6111 |
|
---|
6112 |
|
---|
6113 |
|
---|
6114 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6115 | do
|
---|
6116 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6117 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6118 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6119 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6120 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6121 | else
|
---|
6122 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6123 | /* confdefs.h. */
|
---|
6124 | _ACEOF
|
---|
6125 | cat confdefs.h >>conftest.$ac_ext
|
---|
6126 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6127 | /* end confdefs.h. */
|
---|
6128 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6130 | #define $ac_func innocuous_$ac_func
|
---|
6131 |
|
---|
6132 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6133 | which can conflict with char $ac_func (); below.
|
---|
6134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6135 | <limits.h> exists even on freestanding compilers. */
|
---|
6136 |
|
---|
6137 | #ifdef __STDC__
|
---|
6138 | # include <limits.h>
|
---|
6139 | #else
|
---|
6140 | # include <assert.h>
|
---|
6141 | #endif
|
---|
6142 |
|
---|
6143 | #undef $ac_func
|
---|
6144 |
|
---|
6145 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6146 | #ifdef __cplusplus
|
---|
6147 | extern "C"
|
---|
6148 | {
|
---|
6149 | #endif
|
---|
6150 | /* We use char because int might match the return type of a gcc2
|
---|
6151 | builtin and then its argument prototype would still apply. */
|
---|
6152 | char $ac_func ();
|
---|
6153 | /* The GNU C library defines this for functions which it implements
|
---|
6154 | to always fail with ENOSYS. Some functions are actually named
|
---|
6155 | something starting with __ and the normal name is an alias. */
|
---|
6156 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6157 | choke me
|
---|
6158 | #else
|
---|
6159 | char (*f) () = $ac_func;
|
---|
6160 | #endif
|
---|
6161 | #ifdef __cplusplus
|
---|
6162 | }
|
---|
6163 | #endif
|
---|
6164 |
|
---|
6165 | int
|
---|
6166 | main ()
|
---|
6167 | {
|
---|
6168 | return f != $ac_func;
|
---|
6169 | ;
|
---|
6170 | return 0;
|
---|
6171 | }
|
---|
6172 | _ACEOF
|
---|
6173 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6175 | (eval $ac_link) 2>conftest.er1
|
---|
6176 | ac_status=$?
|
---|
6177 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6178 | rm -f conftest.er1
|
---|
6179 | cat conftest.err >&5
|
---|
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6181 | (exit $ac_status); } &&
|
---|
6182 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6183 | || test ! -s conftest.err'
|
---|
6184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6185 | (eval $ac_try) 2>&5
|
---|
6186 | ac_status=$?
|
---|
6187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6188 | (exit $ac_status); }; } &&
|
---|
6189 | { ac_try='test -s conftest$ac_exeext'
|
---|
6190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6191 | (eval $ac_try) 2>&5
|
---|
6192 | ac_status=$?
|
---|
6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6194 | (exit $ac_status); }; }; then
|
---|
6195 | eval "$as_ac_var=yes"
|
---|
6196 | else
|
---|
6197 | echo "$as_me: failed program was:" >&5
|
---|
6198 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6199 |
|
---|
6200 | eval "$as_ac_var=no"
|
---|
6201 | fi
|
---|
6202 | rm -f conftest.err conftest.$ac_objext \
|
---|
6203 | conftest$ac_exeext conftest.$ac_ext
|
---|
6204 | fi
|
---|
6205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6206 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6207 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6208 | cat >>confdefs.h <<_ACEOF
|
---|
6209 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6210 | _ACEOF
|
---|
6211 |
|
---|
6212 | fi
|
---|
6213 | done
|
---|
6214 |
|
---|
6215 |
|
---|
6216 |
|
---|
6217 |
|
---|
6218 | for ac_func in ftruncate strstr strcasecmp
|
---|
6219 | do
|
---|
6220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6221 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6223 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6224 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6225 | else
|
---|
6226 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6227 | /* confdefs.h. */
|
---|
6228 | _ACEOF
|
---|
6229 | cat confdefs.h >>conftest.$ac_ext
|
---|
6230 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6231 | /* end confdefs.h. */
|
---|
6232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6234 | #define $ac_func innocuous_$ac_func
|
---|
6235 |
|
---|
6236 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6237 | which can conflict with char $ac_func (); below.
|
---|
6238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6239 | <limits.h> exists even on freestanding compilers. */
|
---|
6240 |
|
---|
6241 | #ifdef __STDC__
|
---|
6242 | # include <limits.h>
|
---|
6243 | #else
|
---|
6244 | # include <assert.h>
|
---|
6245 | #endif
|
---|
6246 |
|
---|
6247 | #undef $ac_func
|
---|
6248 |
|
---|
6249 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6250 | #ifdef __cplusplus
|
---|
6251 | extern "C"
|
---|
6252 | {
|
---|
6253 | #endif
|
---|
6254 | /* We use char because int might match the return type of a gcc2
|
---|
6255 | builtin and then its argument prototype would still apply. */
|
---|
6256 | char $ac_func ();
|
---|
6257 | /* The GNU C library defines this for functions which it implements
|
---|
6258 | to always fail with ENOSYS. Some functions are actually named
|
---|
6259 | something starting with __ and the normal name is an alias. */
|
---|
6260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6261 | choke me
|
---|
6262 | #else
|
---|
6263 | char (*f) () = $ac_func;
|
---|
6264 | #endif
|
---|
6265 | #ifdef __cplusplus
|
---|
6266 | }
|
---|
6267 | #endif
|
---|
6268 |
|
---|
6269 | int
|
---|
6270 | main ()
|
---|
6271 | {
|
---|
6272 | return f != $ac_func;
|
---|
6273 | ;
|
---|
6274 | return 0;
|
---|
6275 | }
|
---|
6276 | _ACEOF
|
---|
6277 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6279 | (eval $ac_link) 2>conftest.er1
|
---|
6280 | ac_status=$?
|
---|
6281 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6282 | rm -f conftest.er1
|
---|
6283 | cat conftest.err >&5
|
---|
6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6285 | (exit $ac_status); } &&
|
---|
6286 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6287 | || test ! -s conftest.err'
|
---|
6288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6289 | (eval $ac_try) 2>&5
|
---|
6290 | ac_status=$?
|
---|
6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6292 | (exit $ac_status); }; } &&
|
---|
6293 | { ac_try='test -s conftest$ac_exeext'
|
---|
6294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6295 | (eval $ac_try) 2>&5
|
---|
6296 | ac_status=$?
|
---|
6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6298 | (exit $ac_status); }; }; then
|
---|
6299 | eval "$as_ac_var=yes"
|
---|
6300 | else
|
---|
6301 | echo "$as_me: failed program was:" >&5
|
---|
6302 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6303 |
|
---|
6304 | eval "$as_ac_var=no"
|
---|
6305 | fi
|
---|
6306 | rm -f conftest.err conftest.$ac_objext \
|
---|
6307 | conftest$ac_exeext conftest.$ac_ext
|
---|
6308 | fi
|
---|
6309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6311 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6312 | cat >>confdefs.h <<_ACEOF
|
---|
6313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6314 | _ACEOF
|
---|
6315 |
|
---|
6316 | else
|
---|
6317 | case $LIBOBJS in
|
---|
6318 | "$ac_func.$ac_objext" | \
|
---|
6319 | *" $ac_func.$ac_objext" | \
|
---|
6320 | "$ac_func.$ac_objext "* | \
|
---|
6321 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6322 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
6323 | esac
|
---|
6324 |
|
---|
6325 | fi
|
---|
6326 | done
|
---|
6327 |
|
---|
6328 |
|
---|
6329 |
|
---|
6330 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
6331 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
6332 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
6333 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6334 | else
|
---|
6335 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6336 | /* confdefs.h. */
|
---|
6337 | _ACEOF
|
---|
6338 | cat confdefs.h >>conftest.$ac_ext
|
---|
6339 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6340 | /* end confdefs.h. */
|
---|
6341 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
6342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6343 | #define textdomain innocuous_textdomain
|
---|
6344 |
|
---|
6345 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6346 | which can conflict with char textdomain (); below.
|
---|
6347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6348 | <limits.h> exists even on freestanding compilers. */
|
---|
6349 |
|
---|
6350 | #ifdef __STDC__
|
---|
6351 | # include <limits.h>
|
---|
6352 | #else
|
---|
6353 | # include <assert.h>
|
---|
6354 | #endif
|
---|
6355 |
|
---|
6356 | #undef textdomain
|
---|
6357 |
|
---|
6358 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6359 | #ifdef __cplusplus
|
---|
6360 | extern "C"
|
---|
6361 | {
|
---|
6362 | #endif
|
---|
6363 | /* We use char because int might match the return type of a gcc2
|
---|
6364 | builtin and then its argument prototype would still apply. */
|
---|
6365 | char textdomain ();
|
---|
6366 | /* The GNU C library defines this for functions which it implements
|
---|
6367 | to always fail with ENOSYS. Some functions are actually named
|
---|
6368 | something starting with __ and the normal name is an alias. */
|
---|
6369 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
6370 | choke me
|
---|
6371 | #else
|
---|
6372 | char (*f) () = textdomain;
|
---|
6373 | #endif
|
---|
6374 | #ifdef __cplusplus
|
---|
6375 | }
|
---|
6376 | #endif
|
---|
6377 |
|
---|
6378 | int
|
---|
6379 | main ()
|
---|
6380 | {
|
---|
6381 | return f != textdomain;
|
---|
6382 | ;
|
---|
6383 | return 0;
|
---|
6384 | }
|
---|
6385 | _ACEOF
|
---|
6386 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6388 | (eval $ac_link) 2>conftest.er1
|
---|
6389 | ac_status=$?
|
---|
6390 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6391 | rm -f conftest.er1
|
---|
6392 | cat conftest.err >&5
|
---|
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6394 | (exit $ac_status); } &&
|
---|
6395 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6396 | || test ! -s conftest.err'
|
---|
6397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6398 | (eval $ac_try) 2>&5
|
---|
6399 | ac_status=$?
|
---|
6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6401 | (exit $ac_status); }; } &&
|
---|
6402 | { ac_try='test -s conftest$ac_exeext'
|
---|
6403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6404 | (eval $ac_try) 2>&5
|
---|
6405 | ac_status=$?
|
---|
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6407 | (exit $ac_status); }; }; then
|
---|
6408 | ac_cv_func_textdomain=yes
|
---|
6409 | else
|
---|
6410 | echo "$as_me: failed program was:" >&5
|
---|
6411 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6412 |
|
---|
6413 | ac_cv_func_textdomain=no
|
---|
6414 | fi
|
---|
6415 | rm -f conftest.err conftest.$ac_objext \
|
---|
6416 | conftest$ac_exeext conftest.$ac_ext
|
---|
6417 | fi
|
---|
6418 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
6419 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
6420 | if test $ac_cv_func_textdomain = yes; then
|
---|
6421 | cat >>confdefs.h <<\_ACEOF
|
---|
6422 | #define ENABLE_NLS 1
|
---|
6423 | _ACEOF
|
---|
6424 |
|
---|
6425 | fi
|
---|
6426 |
|
---|
6427 |
|
---|
6428 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6429 | # ---------------------------------------------------------------------------
|
---|
6430 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
6431 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
6432 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6433 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6434 | echo "${ECHO_T}yes" >&6
|
---|
6435 | case $LIBOBJS in
|
---|
6436 | "gmalloc.$ac_objext" | \
|
---|
6437 | *" gmalloc.$ac_objext" | \
|
---|
6438 | "gmalloc.$ac_objext "* | \
|
---|
6439 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6440 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
6441 | esac
|
---|
6442 |
|
---|
6443 | cat >>confdefs.h <<\_ACEOF
|
---|
6444 | #define HAVE_VALLOC 1
|
---|
6445 | _ACEOF
|
---|
6446 |
|
---|
6447 | else
|
---|
6448 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6449 | echo "${ECHO_T}no" >&6
|
---|
6450 |
|
---|
6451 | for ac_func in valloc
|
---|
6452 | do
|
---|
6453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6454 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6456 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6457 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6458 | else
|
---|
6459 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6460 | /* confdefs.h. */
|
---|
6461 | _ACEOF
|
---|
6462 | cat confdefs.h >>conftest.$ac_ext
|
---|
6463 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6464 | /* end confdefs.h. */
|
---|
6465 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6466 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6467 | #define $ac_func innocuous_$ac_func
|
---|
6468 |
|
---|
6469 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6470 | which can conflict with char $ac_func (); below.
|
---|
6471 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6472 | <limits.h> exists even on freestanding compilers. */
|
---|
6473 |
|
---|
6474 | #ifdef __STDC__
|
---|
6475 | # include <limits.h>
|
---|
6476 | #else
|
---|
6477 | # include <assert.h>
|
---|
6478 | #endif
|
---|
6479 |
|
---|
6480 | #undef $ac_func
|
---|
6481 |
|
---|
6482 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6483 | #ifdef __cplusplus
|
---|
6484 | extern "C"
|
---|
6485 | {
|
---|
6486 | #endif
|
---|
6487 | /* We use char because int might match the return type of a gcc2
|
---|
6488 | builtin and then its argument prototype would still apply. */
|
---|
6489 | char $ac_func ();
|
---|
6490 | /* The GNU C library defines this for functions which it implements
|
---|
6491 | to always fail with ENOSYS. Some functions are actually named
|
---|
6492 | something starting with __ and the normal name is an alias. */
|
---|
6493 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6494 | choke me
|
---|
6495 | #else
|
---|
6496 | char (*f) () = $ac_func;
|
---|
6497 | #endif
|
---|
6498 | #ifdef __cplusplus
|
---|
6499 | }
|
---|
6500 | #endif
|
---|
6501 |
|
---|
6502 | int
|
---|
6503 | main ()
|
---|
6504 | {
|
---|
6505 | return f != $ac_func;
|
---|
6506 | ;
|
---|
6507 | return 0;
|
---|
6508 | }
|
---|
6509 | _ACEOF
|
---|
6510 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6512 | (eval $ac_link) 2>conftest.er1
|
---|
6513 | ac_status=$?
|
---|
6514 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6515 | rm -f conftest.er1
|
---|
6516 | cat conftest.err >&5
|
---|
6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6518 | (exit $ac_status); } &&
|
---|
6519 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6520 | || test ! -s conftest.err'
|
---|
6521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6522 | (eval $ac_try) 2>&5
|
---|
6523 | ac_status=$?
|
---|
6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6525 | (exit $ac_status); }; } &&
|
---|
6526 | { ac_try='test -s conftest$ac_exeext'
|
---|
6527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6528 | (eval $ac_try) 2>&5
|
---|
6529 | ac_status=$?
|
---|
6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6531 | (exit $ac_status); }; }; then
|
---|
6532 | eval "$as_ac_var=yes"
|
---|
6533 | else
|
---|
6534 | echo "$as_me: failed program was:" >&5
|
---|
6535 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6536 |
|
---|
6537 | eval "$as_ac_var=no"
|
---|
6538 | fi
|
---|
6539 | rm -f conftest.err conftest.$ac_objext \
|
---|
6540 | conftest$ac_exeext conftest.$ac_ext
|
---|
6541 | fi
|
---|
6542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
6543 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
6544 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
6545 | cat >>confdefs.h <<_ACEOF
|
---|
6546 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6547 | _ACEOF
|
---|
6548 |
|
---|
6549 | fi
|
---|
6550 | done
|
---|
6551 |
|
---|
6552 | fi
|
---|
6553 |
|
---|
6554 | # we cannot generate static libraries under Darwin
|
---|
6555 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
6556 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
6557 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6558 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6559 | echo "${ECHO_T}yes" >&6
|
---|
6560 | STATIC=""
|
---|
6561 | else
|
---|
6562 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6563 | echo "${ECHO_T}no" >&6
|
---|
6564 | STATIC="-static "
|
---|
6565 | fi
|
---|
6566 |
|
---|
6567 |
|
---|
6568 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
6569 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
6570 |
|
---|
6571 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
6572 | if test "${with_dmalloc+set}" = set; then
|
---|
6573 | withval="$with_dmalloc"
|
---|
6574 | if test "$withval" = yes; then
|
---|
6575 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6576 | echo "${ECHO_T}yes" >&6
|
---|
6577 | cat >>confdefs.h <<\_ACEOF
|
---|
6578 | #define WITH_DMALLOC 1
|
---|
6579 | _ACEOF
|
---|
6580 |
|
---|
6581 | LIBS="$LIBS -ldmalloc"
|
---|
6582 | LDFLAGS="$LDFLAGS -g"
|
---|
6583 | else
|
---|
6584 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6585 | echo "${ECHO_T}no" >&6
|
---|
6586 | fi
|
---|
6587 | else
|
---|
6588 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6589 | echo "${ECHO_T}no" >&6
|
---|
6590 | fi;
|
---|
6591 |
|
---|
6592 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
6593 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
6594 |
|
---|
6595 | # Check whether --with-regex or --without-regex was given.
|
---|
6596 | if test "${with_regex+set}" = set; then
|
---|
6597 | withval="$with_regex"
|
---|
6598 | if test "$withval" = yes; then
|
---|
6599 | ac_with_regex=1
|
---|
6600 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
6601 | echo "${ECHO_T}regex" >&6
|
---|
6602 | cat >>confdefs.h <<\_ACEOF
|
---|
6603 | #define WITH_REGEX 1
|
---|
6604 | _ACEOF
|
---|
6605 |
|
---|
6606 | case $LIBOBJS in
|
---|
6607 | "regex.$ac_objext" | \
|
---|
6608 | *" regex.$ac_objext" | \
|
---|
6609 | "regex.$ac_objext "* | \
|
---|
6610 | *" regex.$ac_objext "* ) ;;
|
---|
6611 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
6612 | esac
|
---|
6613 |
|
---|
6614 | fi
|
---|
6615 | fi;
|
---|
6616 | if test -z "$ac_with_regex"; then
|
---|
6617 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
6618 | echo "${ECHO_T}rx" >&6
|
---|
6619 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
6620 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
6621 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
6622 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6623 | else
|
---|
6624 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6625 | /* confdefs.h. */
|
---|
6626 | _ACEOF
|
---|
6627 | cat confdefs.h >>conftest.$ac_ext
|
---|
6628 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6629 | /* end confdefs.h. */
|
---|
6630 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
6631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6632 | #define re_rx_search innocuous_re_rx_search
|
---|
6633 |
|
---|
6634 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6635 | which can conflict with char re_rx_search (); below.
|
---|
6636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6637 | <limits.h> exists even on freestanding compilers. */
|
---|
6638 |
|
---|
6639 | #ifdef __STDC__
|
---|
6640 | # include <limits.h>
|
---|
6641 | #else
|
---|
6642 | # include <assert.h>
|
---|
6643 | #endif
|
---|
6644 |
|
---|
6645 | #undef re_rx_search
|
---|
6646 |
|
---|
6647 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6648 | #ifdef __cplusplus
|
---|
6649 | extern "C"
|
---|
6650 | {
|
---|
6651 | #endif
|
---|
6652 | /* We use char because int might match the return type of a gcc2
|
---|
6653 | builtin and then its argument prototype would still apply. */
|
---|
6654 | char re_rx_search ();
|
---|
6655 | /* The GNU C library defines this for functions which it implements
|
---|
6656 | to always fail with ENOSYS. Some functions are actually named
|
---|
6657 | something starting with __ and the normal name is an alias. */
|
---|
6658 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
6659 | choke me
|
---|
6660 | #else
|
---|
6661 | char (*f) () = re_rx_search;
|
---|
6662 | #endif
|
---|
6663 | #ifdef __cplusplus
|
---|
6664 | }
|
---|
6665 | #endif
|
---|
6666 |
|
---|
6667 | int
|
---|
6668 | main ()
|
---|
6669 | {
|
---|
6670 | return f != re_rx_search;
|
---|
6671 | ;
|
---|
6672 | return 0;
|
---|
6673 | }
|
---|
6674 | _ACEOF
|
---|
6675 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6677 | (eval $ac_link) 2>conftest.er1
|
---|
6678 | ac_status=$?
|
---|
6679 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6680 | rm -f conftest.er1
|
---|
6681 | cat conftest.err >&5
|
---|
6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6683 | (exit $ac_status); } &&
|
---|
6684 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6685 | || test ! -s conftest.err'
|
---|
6686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6687 | (eval $ac_try) 2>&5
|
---|
6688 | ac_status=$?
|
---|
6689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6690 | (exit $ac_status); }; } &&
|
---|
6691 | { ac_try='test -s conftest$ac_exeext'
|
---|
6692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6693 | (eval $ac_try) 2>&5
|
---|
6694 | ac_status=$?
|
---|
6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6696 | (exit $ac_status); }; }; then
|
---|
6697 | ac_cv_func_re_rx_search=yes
|
---|
6698 | else
|
---|
6699 | echo "$as_me: failed program was:" >&5
|
---|
6700 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6701 |
|
---|
6702 | ac_cv_func_re_rx_search=no
|
---|
6703 | fi
|
---|
6704 | rm -f conftest.err conftest.$ac_objext \
|
---|
6705 | conftest$ac_exeext conftest.$ac_ext
|
---|
6706 | fi
|
---|
6707 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
6708 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
6709 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
6710 | :
|
---|
6711 | else
|
---|
6712 | case $LIBOBJS in
|
---|
6713 | "rx.$ac_objext" | \
|
---|
6714 | *" rx.$ac_objext" | \
|
---|
6715 | "rx.$ac_objext "* | \
|
---|
6716 | *" rx.$ac_objext "* ) ;;
|
---|
6717 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
6718 | esac
|
---|
6719 |
|
---|
6720 | fi
|
---|
6721 |
|
---|
6722 | fi
|
---|
6723 |
|
---|
6724 |
|
---|
6725 | # ---------------------------------------------------------------------------
|
---|
6726 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6727 | case $LIBOBJS in
|
---|
6728 | "xmalloc.$ac_objext" | \
|
---|
6729 | *" xmalloc.$ac_objext" | \
|
---|
6730 | "xmalloc.$ac_objext "* | \
|
---|
6731 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6732 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
6733 | esac
|
---|
6734 |
|
---|
6735 | case $LIBOBJS in
|
---|
6736 | "error.$ac_objext" | \
|
---|
6737 | *" error.$ac_objext" | \
|
---|
6738 | "error.$ac_objext "* | \
|
---|
6739 | *" error.$ac_objext "* ) ;;
|
---|
6740 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
6741 | esac
|
---|
6742 |
|
---|
6743 | fi
|
---|
6744 |
|
---|
6745 |
|
---|
6746 | # ---------------------------------------------------------------------------
|
---|
6747 |
|
---|
6748 | ac_ext=cc
|
---|
6749 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6753 |
|
---|
6754 |
|
---|
6755 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
6756 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
6757 | success="no"
|
---|
6758 | pl_path="$PATH"
|
---|
6759 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
6760 | for pl_dir in $pl_path; do
|
---|
6761 | test -z "$pl_dir" && pl_dir=.
|
---|
6762 | if test -x $pl_dir/perl; then
|
---|
6763 | success="yes"
|
---|
6764 | break
|
---|
6765 | fi
|
---|
6766 | done
|
---|
6767 | IFS="$pl_save_ifs"
|
---|
6768 |
|
---|
6769 | success=no
|
---|
6770 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
6771 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
6772 |
|
---|
6773 |
|
---|
6774 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6775 | /* confdefs.h. */
|
---|
6776 | _ACEOF
|
---|
6777 | cat confdefs.h >>conftest.$ac_ext
|
---|
6778 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6779 | /* end confdefs.h. */
|
---|
6780 | #include <vector>
|
---|
6781 |
|
---|
6782 | int
|
---|
6783 | main ()
|
---|
6784 | {
|
---|
6785 |
|
---|
6786 | ;
|
---|
6787 | return 0;
|
---|
6788 | }
|
---|
6789 | _ACEOF
|
---|
6790 | rm -f conftest.$ac_objext
|
---|
6791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6792 | (eval $ac_compile) 2>conftest.er1
|
---|
6793 | ac_status=$?
|
---|
6794 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6795 | rm -f conftest.er1
|
---|
6796 | cat conftest.err >&5
|
---|
6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6798 | (exit $ac_status); } &&
|
---|
6799 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6800 | || test ! -s conftest.err'
|
---|
6801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6802 | (eval $ac_try) 2>&5
|
---|
6803 | ac_status=$?
|
---|
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6805 | (exit $ac_status); }; } &&
|
---|
6806 | { ac_try='test -s conftest.$ac_objext'
|
---|
6807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6808 | (eval $ac_try) 2>&5
|
---|
6809 | ac_status=$?
|
---|
6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6811 | (exit $ac_status); }; }; then
|
---|
6812 | success=yes
|
---|
6813 | else
|
---|
6814 | echo "$as_me: failed program was:" >&5
|
---|
6815 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6816 |
|
---|
6817 | fi
|
---|
6818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6819 |
|
---|
6820 | if test $success = "no"; then
|
---|
6821 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6822 | /* confdefs.h. */
|
---|
6823 | _ACEOF
|
---|
6824 | cat confdefs.h >>conftest.$ac_ext
|
---|
6825 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6826 | /* end confdefs.h. */
|
---|
6827 | #include <vector.h>
|
---|
6828 |
|
---|
6829 | int
|
---|
6830 | main ()
|
---|
6831 | {
|
---|
6832 |
|
---|
6833 | ;
|
---|
6834 | return 0;
|
---|
6835 | }
|
---|
6836 | _ACEOF
|
---|
6837 | rm -f conftest.$ac_objext
|
---|
6838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6839 | (eval $ac_compile) 2>conftest.er1
|
---|
6840 | ac_status=$?
|
---|
6841 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6842 | rm -f conftest.er1
|
---|
6843 | cat conftest.err >&5
|
---|
6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6845 | (exit $ac_status); } &&
|
---|
6846 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6847 | || test ! -s conftest.err'
|
---|
6848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6849 | (eval $ac_try) 2>&5
|
---|
6850 | ac_status=$?
|
---|
6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6852 | (exit $ac_status); }; } &&
|
---|
6853 | { ac_try='test -s conftest.$ac_objext'
|
---|
6854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6855 | (eval $ac_try) 2>&5
|
---|
6856 | ac_status=$?
|
---|
6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6858 | (exit $ac_status); }; }; then
|
---|
6859 | success="yes"
|
---|
6860 | else
|
---|
6861 | echo "$as_me: failed program was:" >&5
|
---|
6862 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6863 |
|
---|
6864 | fi
|
---|
6865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6866 | fi
|
---|
6867 |
|
---|
6868 | if test $success = "no"; then
|
---|
6869 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6870 | /* confdefs.h. */
|
---|
6871 | _ACEOF
|
---|
6872 | cat confdefs.h >>conftest.$ac_ext
|
---|
6873 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6874 | /* end confdefs.h. */
|
---|
6875 | #include <ospace\\std\\vector>
|
---|
6876 |
|
---|
6877 | int
|
---|
6878 | main ()
|
---|
6879 | {
|
---|
6880 |
|
---|
6881 | ;
|
---|
6882 | return 0;
|
---|
6883 | }
|
---|
6884 | _ACEOF
|
---|
6885 | rm -f conftest.$ac_objext
|
---|
6886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6887 | (eval $ac_compile) 2>conftest.er1
|
---|
6888 | ac_status=$?
|
---|
6889 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6890 | rm -f conftest.er1
|
---|
6891 | cat conftest.err >&5
|
---|
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6893 | (exit $ac_status); } &&
|
---|
6894 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6895 | || test ! -s conftest.err'
|
---|
6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6897 | (eval $ac_try) 2>&5
|
---|
6898 | ac_status=$?
|
---|
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6900 | (exit $ac_status); }; } &&
|
---|
6901 | { ac_try='test -s conftest.$ac_objext'
|
---|
6902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6903 | (eval $ac_try) 2>&5
|
---|
6904 | ac_status=$?
|
---|
6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6906 | (exit $ac_status); }; }; then
|
---|
6907 | success="yes"
|
---|
6908 | else
|
---|
6909 | echo "$as_me: failed program was:" >&5
|
---|
6910 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6911 |
|
---|
6912 | fi
|
---|
6913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6914 | fi
|
---|
6915 |
|
---|
6916 | if test $success = yes; then
|
---|
6917 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
6918 | echo "${ECHO_T}\"no\"" >&6
|
---|
6919 | else
|
---|
6920 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
6921 | echo "${ECHO_T}\"yes\"" >&6
|
---|
6922 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
6923 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
6924 | { (exit 1); exit 1; }; }
|
---|
6925 | fi
|
---|
6926 |
|
---|
6927 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
6928 | # check for running bash under cygwin
|
---|
6929 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
6930 | then
|
---|
6931 | gsdlos=windows
|
---|
6932 | fi
|
---|
6933 |
|
---|
6934 |
|
---|
6935 | # check for endianness
|
---|
6936 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
6937 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
6938 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
6939 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6940 | else
|
---|
6941 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6942 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6943 | /* confdefs.h. */
|
---|
6944 | _ACEOF
|
---|
6945 | cat confdefs.h >>conftest.$ac_ext
|
---|
6946 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6947 | /* end confdefs.h. */
|
---|
6948 | #include <sys/types.h>
|
---|
6949 | #include <sys/param.h>
|
---|
6950 |
|
---|
6951 | int
|
---|
6952 | main ()
|
---|
6953 | {
|
---|
6954 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
6955 | bogus endian macros
|
---|
6956 | #endif
|
---|
6957 |
|
---|
6958 | ;
|
---|
6959 | return 0;
|
---|
6960 | }
|
---|
6961 | _ACEOF
|
---|
6962 | rm -f conftest.$ac_objext
|
---|
6963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6964 | (eval $ac_compile) 2>conftest.er1
|
---|
6965 | ac_status=$?
|
---|
6966 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6967 | rm -f conftest.er1
|
---|
6968 | cat conftest.err >&5
|
---|
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6970 | (exit $ac_status); } &&
|
---|
6971 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
6972 | || test ! -s conftest.err'
|
---|
6973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6974 | (eval $ac_try) 2>&5
|
---|
6975 | ac_status=$?
|
---|
6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6977 | (exit $ac_status); }; } &&
|
---|
6978 | { ac_try='test -s conftest.$ac_objext'
|
---|
6979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6980 | (eval $ac_try) 2>&5
|
---|
6981 | ac_status=$?
|
---|
6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6983 | (exit $ac_status); }; }; then
|
---|
6984 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
6985 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6986 | /* confdefs.h. */
|
---|
6987 | _ACEOF
|
---|
6988 | cat confdefs.h >>conftest.$ac_ext
|
---|
6989 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6990 | /* end confdefs.h. */
|
---|
6991 | #include <sys/types.h>
|
---|
6992 | #include <sys/param.h>
|
---|
6993 |
|
---|
6994 | int
|
---|
6995 | main ()
|
---|
6996 | {
|
---|
6997 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
6998 | not big endian
|
---|
6999 | #endif
|
---|
7000 |
|
---|
7001 | ;
|
---|
7002 | return 0;
|
---|
7003 | }
|
---|
7004 | _ACEOF
|
---|
7005 | rm -f conftest.$ac_objext
|
---|
7006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7007 | (eval $ac_compile) 2>conftest.er1
|
---|
7008 | ac_status=$?
|
---|
7009 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7010 | rm -f conftest.er1
|
---|
7011 | cat conftest.err >&5
|
---|
7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7013 | (exit $ac_status); } &&
|
---|
7014 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7015 | || test ! -s conftest.err'
|
---|
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); }; } &&
|
---|
7021 | { ac_try='test -s conftest.$ac_objext'
|
---|
7022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7023 | (eval $ac_try) 2>&5
|
---|
7024 | ac_status=$?
|
---|
7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7026 | (exit $ac_status); }; }; then
|
---|
7027 | ac_cv_c_bigendian=yes
|
---|
7028 | else
|
---|
7029 | echo "$as_me: failed program was:" >&5
|
---|
7030 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7031 |
|
---|
7032 | ac_cv_c_bigendian=no
|
---|
7033 | fi
|
---|
7034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7035 | else
|
---|
7036 | echo "$as_me: failed program was:" >&5
|
---|
7037 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7038 |
|
---|
7039 | # It does not; compile a test program.
|
---|
7040 | if test "$cross_compiling" = yes; then
|
---|
7041 | # try to guess the endianness by grepping values into an object file
|
---|
7042 | ac_cv_c_bigendian=unknown
|
---|
7043 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7044 | /* confdefs.h. */
|
---|
7045 | _ACEOF
|
---|
7046 | cat confdefs.h >>conftest.$ac_ext
|
---|
7047 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7048 | /* end confdefs.h. */
|
---|
7049 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
7050 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
7051 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
7052 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
7053 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
7054 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
7055 | int
|
---|
7056 | main ()
|
---|
7057 | {
|
---|
7058 | _ascii (); _ebcdic ();
|
---|
7059 | ;
|
---|
7060 | return 0;
|
---|
7061 | }
|
---|
7062 | _ACEOF
|
---|
7063 | rm -f conftest.$ac_objext
|
---|
7064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7065 | (eval $ac_compile) 2>conftest.er1
|
---|
7066 | ac_status=$?
|
---|
7067 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7068 | rm -f conftest.er1
|
---|
7069 | cat conftest.err >&5
|
---|
7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7071 | (exit $ac_status); } &&
|
---|
7072 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
7073 | || test ! -s conftest.err'
|
---|
7074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7075 | (eval $ac_try) 2>&5
|
---|
7076 | ac_status=$?
|
---|
7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7078 | (exit $ac_status); }; } &&
|
---|
7079 | { ac_try='test -s conftest.$ac_objext'
|
---|
7080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7081 | (eval $ac_try) 2>&5
|
---|
7082 | ac_status=$?
|
---|
7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7084 | (exit $ac_status); }; }; then
|
---|
7085 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
7086 | ac_cv_c_bigendian=yes
|
---|
7087 | fi
|
---|
7088 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
7089 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
7090 | ac_cv_c_bigendian=no
|
---|
7091 | else
|
---|
7092 | # finding both strings is unlikely to happen, but who knows?
|
---|
7093 | ac_cv_c_bigendian=unknown
|
---|
7094 | fi
|
---|
7095 | fi
|
---|
7096 | else
|
---|
7097 | echo "$as_me: failed program was:" >&5
|
---|
7098 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7099 |
|
---|
7100 | fi
|
---|
7101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7102 | else
|
---|
7103 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7104 | /* confdefs.h. */
|
---|
7105 | _ACEOF
|
---|
7106 | cat confdefs.h >>conftest.$ac_ext
|
---|
7107 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7108 | /* end confdefs.h. */
|
---|
7109 | int
|
---|
7110 | main ()
|
---|
7111 | {
|
---|
7112 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
7113 | union
|
---|
7114 | {
|
---|
7115 | long l;
|
---|
7116 | char c[sizeof (long)];
|
---|
7117 | } u;
|
---|
7118 | u.l = 1;
|
---|
7119 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
7120 | }
|
---|
7121 | _ACEOF
|
---|
7122 | rm -f conftest$ac_exeext
|
---|
7123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7124 | (eval $ac_link) 2>&5
|
---|
7125 | ac_status=$?
|
---|
7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7127 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
7128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7129 | (eval $ac_try) 2>&5
|
---|
7130 | ac_status=$?
|
---|
7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7132 | (exit $ac_status); }; }; then
|
---|
7133 | ac_cv_c_bigendian=no
|
---|
7134 | else
|
---|
7135 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
7136 | echo "$as_me: failed program was:" >&5
|
---|
7137 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7138 |
|
---|
7139 | ( exit $ac_status )
|
---|
7140 | ac_cv_c_bigendian=yes
|
---|
7141 | fi
|
---|
7142 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
7143 | fi
|
---|
7144 | fi
|
---|
7145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7146 | fi
|
---|
7147 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
7148 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
7149 | case $ac_cv_c_bigendian in
|
---|
7150 | yes)
|
---|
7151 |
|
---|
7152 | cat >>confdefs.h <<\_ACEOF
|
---|
7153 | #define WORDS_BIGENDIAN 1
|
---|
7154 | _ACEOF
|
---|
7155 | ;;
|
---|
7156 | no)
|
---|
7157 | ;;
|
---|
7158 | *)
|
---|
7159 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
7160 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
7161 | echo "$as_me: error: unknown endianness
|
---|
7162 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
7163 | { (exit 1); exit 1; }; } ;;
|
---|
7164 | esac
|
---|
7165 |
|
---|
7166 | # ---------------------------------------------------------------------------
|
---|
7167 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
7168 | case $LIBOBJS in
|
---|
7169 | "xmalloc.o.$ac_objext" | \
|
---|
7170 | *" xmalloc.o.$ac_objext" | \
|
---|
7171 | "xmalloc.o.$ac_objext "* | \
|
---|
7172 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
7173 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
7174 | esac
|
---|
7175 |
|
---|
7176 | case $LIBOBJS in
|
---|
7177 | "error.$ac_objext" | \
|
---|
7178 | *" error.$ac_objext" | \
|
---|
7179 | "error.$ac_objext "* | \
|
---|
7180 | *" error.$ac_objext "* ) ;;
|
---|
7181 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
7182 | esac
|
---|
7183 |
|
---|
7184 | fi
|
---|
7185 |
|
---|
7186 | # ---------------------------------------------------------------------------
|
---|
7187 |
|
---|
7188 |
|
---|
7189 | moduleDirs=""
|
---|
7190 | MODULEDIRS=""
|
---|
7191 | if test -d modules ; then
|
---|
7192 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
7193 | if test -d "$x"; then
|
---|
7194 | d="$x/Makefile.in"
|
---|
7195 | if test -e "$d"; then
|
---|
7196 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
7197 | MODULEDIRS="$MODULEDIRS $x"
|
---|
7198 | fi
|
---|
7199 | fi
|
---|
7200 | done
|
---|
7201 | echo "Making $moduleDirs in modules directory"
|
---|
7202 |
|
---|
7203 | fi
|
---|
7204 |
|
---|
7205 |
|
---|
7206 |
|
---|
7207 |
|
---|
7208 | subdirs="$subdirs packages"
|
---|
7209 |
|
---|
7210 |
|
---|
7211 | # the list of folders in the src folder
|
---|
7212 | srclist="src/colservr/Makefile \
|
---|
7213 | src/corba/Makefile \
|
---|
7214 | src/protocol/Makefile \
|
---|
7215 | src/recpt/Makefile \
|
---|
7216 | src/oaiservr/Makefile \
|
---|
7217 | src/z3950/Makefile"
|
---|
7218 |
|
---|
7219 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
7220 | cat >confcache <<\_ACEOF
|
---|
7221 | # This file is a shell script that caches the results of configure
|
---|
7222 | # tests run on this system so they can be shared between configure
|
---|
7223 | # scripts and configure runs, see configure's option --config-cache.
|
---|
7224 | # It is not useful on other systems. If it contains results you don't
|
---|
7225 | # want to keep, you may remove or edit it.
|
---|
7226 | #
|
---|
7227 | # config.status only pays attention to the cache file if you give it
|
---|
7228 | # the --recheck option to rerun configure.
|
---|
7229 | #
|
---|
7230 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
7231 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
7232 | # following values.
|
---|
7233 |
|
---|
7234 | _ACEOF
|
---|
7235 |
|
---|
7236 | # The following way of writing the cache mishandles newlines in values,
|
---|
7237 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7238 | # So, don't put newlines in cache variables' values.
|
---|
7239 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7240 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7241 | {
|
---|
7242 | (set) 2>&1 |
|
---|
7243 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7244 | *ac_space=\ *)
|
---|
7245 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
7246 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
7247 | sed -n \
|
---|
7248 | "s/'/'\\\\''/g;
|
---|
7249 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
7250 | ;;
|
---|
7251 | *)
|
---|
7252 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7253 | sed -n \
|
---|
7254 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
7255 | ;;
|
---|
7256 | esac;
|
---|
7257 | } |
|
---|
7258 | sed '
|
---|
7259 | t clear
|
---|
7260 | : clear
|
---|
7261 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
7262 | t end
|
---|
7263 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
7264 | : end' >>confcache
|
---|
7265 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
7266 | if test -w $cache_file; then
|
---|
7267 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
7268 | cat confcache >$cache_file
|
---|
7269 | else
|
---|
7270 | echo "not updating unwritable cache $cache_file"
|
---|
7271 | fi
|
---|
7272 | fi
|
---|
7273 | rm -f confcache
|
---|
7274 |
|
---|
7275 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7276 | # Let make expand exec_prefix.
|
---|
7277 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7278 |
|
---|
7279 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7280 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7281 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7282 | # (actually we leave an empty line to preserve line numbers).
|
---|
7283 | if test "x$srcdir" = x.; then
|
---|
7284 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7285 | s/:*\$(srcdir):*/:/;
|
---|
7286 | s/:*\${srcdir}:*/:/;
|
---|
7287 | s/:*@srcdir@:*/:/;
|
---|
7288 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
7289 | s/:*$//;
|
---|
7290 | s/^[^=]*=[ ]*$//;
|
---|
7291 | }'
|
---|
7292 | fi
|
---|
7293 |
|
---|
7294 | DEFS=-DHAVE_CONFIG_H
|
---|
7295 |
|
---|
7296 | ac_libobjs=
|
---|
7297 | ac_ltlibobjs=
|
---|
7298 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
7299 | # 1. Remove the extension, and $U if already installed.
|
---|
7300 | ac_i=`echo "$ac_i" |
|
---|
7301 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
7302 | # 2. Add them.
|
---|
7303 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
7304 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
7305 | done
|
---|
7306 | LIBOBJS=$ac_libobjs
|
---|
7307 |
|
---|
7308 | LTLIBOBJS=$ac_ltlibobjs
|
---|
7309 |
|
---|
7310 |
|
---|
7311 |
|
---|
7312 | : ${CONFIG_STATUS=./config.status}
|
---|
7313 | ac_clean_files_save=$ac_clean_files
|
---|
7314 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
7315 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
7316 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
7317 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
7318 | #! $SHELL
|
---|
7319 | # Generated by $as_me.
|
---|
7320 | # Run this file to recreate the current configuration.
|
---|
7321 | # Compiler output produced by configure, useful for debugging
|
---|
7322 | # configure, is in config.log if it exists.
|
---|
7323 |
|
---|
7324 | debug=false
|
---|
7325 | ac_cs_recheck=false
|
---|
7326 | ac_cs_silent=false
|
---|
7327 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
7328 | _ACEOF
|
---|
7329 |
|
---|
7330 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7331 | ## --------------------- ##
|
---|
7332 | ## M4sh Initialization. ##
|
---|
7333 | ## --------------------- ##
|
---|
7334 |
|
---|
7335 | # Be Bourne compatible
|
---|
7336 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
7337 | emulate sh
|
---|
7338 | NULLCMD=:
|
---|
7339 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
7340 | # is contrary to our usage. Disable this feature.
|
---|
7341 | alias -g '${1+"$@"}'='"$@"'
|
---|
7342 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
7343 | set -o posix
|
---|
7344 | fi
|
---|
7345 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
7346 |
|
---|
7347 | # Support unset when possible.
|
---|
7348 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
7349 | as_unset=unset
|
---|
7350 | else
|
---|
7351 | as_unset=false
|
---|
7352 | fi
|
---|
7353 |
|
---|
7354 |
|
---|
7355 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
7356 | $as_unset ENV MAIL MAILPATH
|
---|
7357 | PS1='$ '
|
---|
7358 | PS2='> '
|
---|
7359 | PS4='+ '
|
---|
7360 |
|
---|
7361 | # NLS nuisances.
|
---|
7362 | for as_var in \
|
---|
7363 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
7364 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
7365 | LC_TELEPHONE LC_TIME
|
---|
7366 | do
|
---|
7367 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
7368 | eval $as_var=C; export $as_var
|
---|
7369 | else
|
---|
7370 | $as_unset $as_var
|
---|
7371 | fi
|
---|
7372 | done
|
---|
7373 |
|
---|
7374 | # Required to use basename.
|
---|
7375 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7376 | as_expr=expr
|
---|
7377 | else
|
---|
7378 | as_expr=false
|
---|
7379 | fi
|
---|
7380 |
|
---|
7381 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
7382 | as_basename=basename
|
---|
7383 | else
|
---|
7384 | as_basename=false
|
---|
7385 | fi
|
---|
7386 |
|
---|
7387 |
|
---|
7388 | # Name of the executable.
|
---|
7389 | as_me=`$as_basename "$0" ||
|
---|
7390 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7391 | X"$0" : 'X\(//\)$' \| \
|
---|
7392 | X"$0" : 'X\(/\)$' \| \
|
---|
7393 | . : '\(.\)' 2>/dev/null ||
|
---|
7394 | echo X/"$0" |
|
---|
7395 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
7396 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
7397 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
7398 | s/.*/./; q'`
|
---|
7399 |
|
---|
7400 |
|
---|
7401 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
7402 | # Avoid depending upon Character Ranges.
|
---|
7403 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7404 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7405 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7406 | as_cr_digits='0123456789'
|
---|
7407 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7408 |
|
---|
7409 | # The user is always right.
|
---|
7410 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7411 | echo "#! /bin/sh" >conf$$.sh
|
---|
7412 | echo "exit 0" >>conf$$.sh
|
---|
7413 | chmod +x conf$$.sh
|
---|
7414 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
7415 | PATH_SEPARATOR=';'
|
---|
7416 | else
|
---|
7417 | PATH_SEPARATOR=:
|
---|
7418 | fi
|
---|
7419 | rm -f conf$$.sh
|
---|
7420 | fi
|
---|
7421 |
|
---|
7422 |
|
---|
7423 | as_lineno_1=$LINENO
|
---|
7424 | as_lineno_2=$LINENO
|
---|
7425 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7426 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7427 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
7428 | # Find who we are. Look in the path if we contain no path at all
|
---|
7429 | # relative or not.
|
---|
7430 | case $0 in
|
---|
7431 | *[\\/]* ) as_myself=$0 ;;
|
---|
7432 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7433 | for as_dir in $PATH
|
---|
7434 | do
|
---|
7435 | IFS=$as_save_IFS
|
---|
7436 | test -z "$as_dir" && as_dir=.
|
---|
7437 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7438 | done
|
---|
7439 |
|
---|
7440 | ;;
|
---|
7441 | esac
|
---|
7442 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7443 | # in which case we are not to be found in the path.
|
---|
7444 | if test "x$as_myself" = x; then
|
---|
7445 | as_myself=$0
|
---|
7446 | fi
|
---|
7447 | if test ! -f "$as_myself"; then
|
---|
7448 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
7449 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
7450 | { (exit 1); exit 1; }; }
|
---|
7451 | fi
|
---|
7452 | case $CONFIG_SHELL in
|
---|
7453 | '')
|
---|
7454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7455 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
7456 | do
|
---|
7457 | IFS=$as_save_IFS
|
---|
7458 | test -z "$as_dir" && as_dir=.
|
---|
7459 | for as_base in sh bash ksh sh5; do
|
---|
7460 | case $as_dir in
|
---|
7461 | /*)
|
---|
7462 | if ("$as_dir/$as_base" -c '
|
---|
7463 | as_lineno_1=$LINENO
|
---|
7464 | as_lineno_2=$LINENO
|
---|
7465 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
7466 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
7467 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
7468 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
7469 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
7470 | CONFIG_SHELL=$as_dir/$as_base
|
---|
7471 | export CONFIG_SHELL
|
---|
7472 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
7473 | fi;;
|
---|
7474 | esac
|
---|
7475 | done
|
---|
7476 | done
|
---|
7477 | ;;
|
---|
7478 | esac
|
---|
7479 |
|
---|
7480 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
7481 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
7482 | # line-number line before each line; the second 'sed' does the real
|
---|
7483 | # work. The second script uses 'N' to pair each line-number line
|
---|
7484 | # with the numbered line, and appends trailing '-' during
|
---|
7485 | # substitution so that $LINENO is not a special case at line end.
|
---|
7486 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
7487 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
7488 | sed '=' <$as_myself |
|
---|
7489 | sed '
|
---|
7490 | N
|
---|
7491 | s,$,-,
|
---|
7492 | : loop
|
---|
7493 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
7494 | t loop
|
---|
7495 | s,-$,,
|
---|
7496 | s,^['$as_cr_digits']*\n,,
|
---|
7497 | ' >$as_me.lineno &&
|
---|
7498 | chmod +x $as_me.lineno ||
|
---|
7499 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
7500 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
7501 | { (exit 1); exit 1; }; }
|
---|
7502 |
|
---|
7503 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
7504 | # (the dirname of $[0] is not the place where we might find the
|
---|
7505 | # original and so on. Autoconf is especially sensible to this).
|
---|
7506 | . ./$as_me.lineno
|
---|
7507 | # Exit status is that of the last command.
|
---|
7508 | exit
|
---|
7509 | }
|
---|
7510 |
|
---|
7511 |
|
---|
7512 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
7513 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
7514 | ' ECHO_T=' ' ;;
|
---|
7515 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
7516 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
7517 | esac
|
---|
7518 |
|
---|
7519 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
7520 | as_expr=expr
|
---|
7521 | else
|
---|
7522 | as_expr=false
|
---|
7523 | fi
|
---|
7524 |
|
---|
7525 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7526 | echo >conf$$.file
|
---|
7527 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7528 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
7529 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
7530 | if test -f conf$$.exe; then
|
---|
7531 | # Don't use ln at all; we don't have any links
|
---|
7532 | as_ln_s='cp -p'
|
---|
7533 | else
|
---|
7534 | as_ln_s='ln -s'
|
---|
7535 | fi
|
---|
7536 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7537 | as_ln_s=ln
|
---|
7538 | else
|
---|
7539 | as_ln_s='cp -p'
|
---|
7540 | fi
|
---|
7541 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7542 |
|
---|
7543 | if mkdir -p . 2>/dev/null; then
|
---|
7544 | as_mkdir_p=:
|
---|
7545 | else
|
---|
7546 | test -d ./-p && rmdir ./-p
|
---|
7547 | as_mkdir_p=false
|
---|
7548 | fi
|
---|
7549 |
|
---|
7550 | as_executable_p="test -f"
|
---|
7551 |
|
---|
7552 | # Sed expression to map a string onto a valid CPP name.
|
---|
7553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7554 |
|
---|
7555 | # Sed expression to map a string onto a valid variable name.
|
---|
7556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7557 |
|
---|
7558 |
|
---|
7559 | # IFS
|
---|
7560 | # We need space, tab and new line, in precisely that order.
|
---|
7561 | as_nl='
|
---|
7562 | '
|
---|
7563 | IFS=" $as_nl"
|
---|
7564 |
|
---|
7565 | # CDPATH.
|
---|
7566 | $as_unset CDPATH
|
---|
7567 |
|
---|
7568 | exec 6>&1
|
---|
7569 |
|
---|
7570 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
7571 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7572 | # values after options handling. Logging --version etc. is OK.
|
---|
7573 | exec 5>>config.log
|
---|
7574 | {
|
---|
7575 | echo
|
---|
7576 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7577 | ## Running $as_me. ##
|
---|
7578 | _ASBOX
|
---|
7579 | } >&5
|
---|
7580 | cat >&5 <<_CSEOF
|
---|
7581 |
|
---|
7582 | This file was extended by $as_me, which was
|
---|
7583 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
7584 |
|
---|
7585 | CONFIG_FILES = $CONFIG_FILES
|
---|
7586 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7587 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7588 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7589 | $ $0 $@
|
---|
7590 |
|
---|
7591 | _CSEOF
|
---|
7592 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
7593 | echo >&5
|
---|
7594 | _ACEOF
|
---|
7595 |
|
---|
7596 | # Files that config.status was made for.
|
---|
7597 | if test -n "$ac_config_files"; then
|
---|
7598 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
7599 | fi
|
---|
7600 |
|
---|
7601 | if test -n "$ac_config_headers"; then
|
---|
7602 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
7603 | fi
|
---|
7604 |
|
---|
7605 | if test -n "$ac_config_links"; then
|
---|
7606 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
7607 | fi
|
---|
7608 |
|
---|
7609 | if test -n "$ac_config_commands"; then
|
---|
7610 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
7611 | fi
|
---|
7612 |
|
---|
7613 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7614 |
|
---|
7615 | ac_cs_usage="\
|
---|
7616 | \`$as_me' instantiates files from templates according to the
|
---|
7617 | current configuration.
|
---|
7618 |
|
---|
7619 | Usage: $0 [OPTIONS] [FILE]...
|
---|
7620 |
|
---|
7621 | -h, --help print this help, then exit
|
---|
7622 | -V, --version print version number, then exit
|
---|
7623 | -q, --quiet do not print progress messages
|
---|
7624 | -d, --debug don't remove temporary files
|
---|
7625 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7626 | --file=FILE[:TEMPLATE]
|
---|
7627 | instantiate the configuration file FILE
|
---|
7628 | --header=FILE[:TEMPLATE]
|
---|
7629 | instantiate the configuration header FILE
|
---|
7630 |
|
---|
7631 | Configuration files:
|
---|
7632 | $config_files
|
---|
7633 |
|
---|
7634 | Configuration headers:
|
---|
7635 | $config_headers
|
---|
7636 |
|
---|
7637 | Report bugs to <[email protected]>."
|
---|
7638 | _ACEOF
|
---|
7639 |
|
---|
7640 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7641 | ac_cs_version="\\
|
---|
7642 | config.status
|
---|
7643 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
7644 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
7645 |
|
---|
7646 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
7647 | This config.status script is free software; the Free Software Foundation
|
---|
7648 | gives unlimited permission to copy, distribute and modify it."
|
---|
7649 | srcdir=$srcdir
|
---|
7650 | INSTALL="$INSTALL"
|
---|
7651 | _ACEOF
|
---|
7652 |
|
---|
7653 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7654 | # If no file are specified by the user, then we need to provide default
|
---|
7655 | # value. By we need to know if files were specified by the user.
|
---|
7656 | ac_need_defaults=:
|
---|
7657 | while test $# != 0
|
---|
7658 | do
|
---|
7659 | case $1 in
|
---|
7660 | --*=*)
|
---|
7661 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
7662 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
7663 | ac_shift=:
|
---|
7664 | ;;
|
---|
7665 | -*)
|
---|
7666 | ac_option=$1
|
---|
7667 | ac_optarg=$2
|
---|
7668 | ac_shift=shift
|
---|
7669 | ;;
|
---|
7670 | *) # This is not an option, so the user has probably given explicit
|
---|
7671 | # arguments.
|
---|
7672 | ac_option=$1
|
---|
7673 | ac_need_defaults=false;;
|
---|
7674 | esac
|
---|
7675 |
|
---|
7676 | case $ac_option in
|
---|
7677 | # Handling of the options.
|
---|
7678 | _ACEOF
|
---|
7679 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7680 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7681 | ac_cs_recheck=: ;;
|
---|
7682 | --version | --vers* | -V )
|
---|
7683 | echo "$ac_cs_version"; exit 0 ;;
|
---|
7684 | --he | --h)
|
---|
7685 | # Conflict between --help and --header
|
---|
7686 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
7687 | Try \`$0 --help' for more information." >&5
|
---|
7688 | echo "$as_me: error: ambiguous option: $1
|
---|
7689 | Try \`$0 --help' for more information." >&2;}
|
---|
7690 | { (exit 1); exit 1; }; };;
|
---|
7691 | --help | --hel | -h )
|
---|
7692 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
7693 | --debug | --d* | -d )
|
---|
7694 | debug=: ;;
|
---|
7695 | --file | --fil | --fi | --f )
|
---|
7696 | $ac_shift
|
---|
7697 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
7698 | ac_need_defaults=false;;
|
---|
7699 | --header | --heade | --head | --hea )
|
---|
7700 | $ac_shift
|
---|
7701 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
7702 | ac_need_defaults=false;;
|
---|
7703 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7704 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7705 | ac_cs_silent=: ;;
|
---|
7706 |
|
---|
7707 | # This is an error.
|
---|
7708 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
7709 | Try \`$0 --help' for more information." >&5
|
---|
7710 | echo "$as_me: error: unrecognized option: $1
|
---|
7711 | Try \`$0 --help' for more information." >&2;}
|
---|
7712 | { (exit 1); exit 1; }; } ;;
|
---|
7713 |
|
---|
7714 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
7715 |
|
---|
7716 | esac
|
---|
7717 | shift
|
---|
7718 | done
|
---|
7719 |
|
---|
7720 | ac_configure_extra_args=
|
---|
7721 |
|
---|
7722 | if $ac_cs_silent; then
|
---|
7723 | exec 6>/dev/null
|
---|
7724 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7725 | fi
|
---|
7726 |
|
---|
7727 | _ACEOF
|
---|
7728 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7729 | if \$ac_cs_recheck; then
|
---|
7730 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
7731 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7732 | fi
|
---|
7733 |
|
---|
7734 | _ACEOF
|
---|
7735 |
|
---|
7736 |
|
---|
7737 |
|
---|
7738 |
|
---|
7739 |
|
---|
7740 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7741 | for ac_config_target in $ac_config_targets
|
---|
7742 | do
|
---|
7743 | case "$ac_config_target" in
|
---|
7744 | # Handling of arguments.
|
---|
7745 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
7746 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7747 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7748 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7749 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7750 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
7751 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
7752 | { (exit 1); exit 1; }; };;
|
---|
7753 | esac
|
---|
7754 | done
|
---|
7755 |
|
---|
7756 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7757 | # then the envvar interface is used. Set only those that are not.
|
---|
7758 | # We use the long form for the default assignment because of an extremely
|
---|
7759 | # bizarre bug on SunOS 4.1.3.
|
---|
7760 | if $ac_need_defaults; then
|
---|
7761 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7762 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7763 | fi
|
---|
7764 |
|
---|
7765 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7766 | # simply because there is no reason to put it here, and in addition,
|
---|
7767 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7768 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
7769 | $debug ||
|
---|
7770 | {
|
---|
7771 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
7772 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
7773 | }
|
---|
7774 |
|
---|
7775 | # Create a (secure) tmp directory for tmp files.
|
---|
7776 |
|
---|
7777 | {
|
---|
7778 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
7779 | test -n "$tmp" && test -d "$tmp"
|
---|
7780 | } ||
|
---|
7781 | {
|
---|
7782 | tmp=./confstat$$-$RANDOM
|
---|
7783 | (umask 077 && mkdir $tmp)
|
---|
7784 | } ||
|
---|
7785 | {
|
---|
7786 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
7787 | { (exit 1); exit 1; }
|
---|
7788 | }
|
---|
7789 |
|
---|
7790 | _ACEOF
|
---|
7791 |
|
---|
7792 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
7793 |
|
---|
7794 | #
|
---|
7795 | # CONFIG_FILES section.
|
---|
7796 | #
|
---|
7797 |
|
---|
7798 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
7799 | # This happens for instance when ./config.status config.h
|
---|
7800 | if test -n "\$CONFIG_FILES"; then
|
---|
7801 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7802 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
7803 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
7804 | s,@SHELL@,$SHELL,;t t
|
---|
7805 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
7806 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
7807 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
7808 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
7809 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
7810 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
7811 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
7812 | s,@prefix@,$prefix,;t t
|
---|
7813 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
7814 | s,@bindir@,$bindir,;t t
|
---|
7815 | s,@sbindir@,$sbindir,;t t
|
---|
7816 | s,@libexecdir@,$libexecdir,;t t
|
---|
7817 | s,@datadir@,$datadir,;t t
|
---|
7818 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
7819 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
7820 | s,@localstatedir@,$localstatedir,;t t
|
---|
7821 | s,@libdir@,$libdir,;t t
|
---|
7822 | s,@includedir@,$includedir,;t t
|
---|
7823 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
7824 | s,@infodir@,$infodir,;t t
|
---|
7825 | s,@mandir@,$mandir,;t t
|
---|
7826 | s,@build_alias@,$build_alias,;t t
|
---|
7827 | s,@host_alias@,$host_alias,;t t
|
---|
7828 | s,@target_alias@,$target_alias,;t t
|
---|
7829 | s,@DEFS@,$DEFS,;t t
|
---|
7830 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
7831 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
7832 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
7833 | s,@LIBS@,$LIBS,;t t
|
---|
7834 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
7835 | s,@VERSION@,$VERSION,;t t
|
---|
7836 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
7837 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
7838 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
7839 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
7840 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
7841 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
7842 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
7843 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
7844 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
7845 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
7846 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
7847 | s,@CC@,$CC,;t t
|
---|
7848 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
7849 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
7850 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
7851 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
7852 | s,@CXX@,$CXX,;t t
|
---|
7853 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
7854 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
7855 | s,@AWK@,$AWK,;t t
|
---|
7856 | s,@YACC@,$YACC,;t t
|
---|
7857 | s,@build@,$build,;t t
|
---|
7858 | s,@build_cpu@,$build_cpu,;t t
|
---|
7859 | s,@build_vendor@,$build_vendor,;t t
|
---|
7860 | s,@build_os@,$build_os,;t t
|
---|
7861 | s,@host@,$host,;t t
|
---|
7862 | s,@host_cpu@,$host_cpu,;t t
|
---|
7863 | s,@host_vendor@,$host_vendor,;t t
|
---|
7864 | s,@host_os@,$host_os,;t t
|
---|
7865 | s,@target@,$target,;t t
|
---|
7866 | s,@target_cpu@,$target_cpu,;t t
|
---|
7867 | s,@target_vendor@,$target_vendor,;t t
|
---|
7868 | s,@target_os@,$target_os,;t t
|
---|
7869 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
7870 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
7871 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
7872 | s,@LN_S@,$LN_S,;t t
|
---|
7873 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
7874 | s,@RANLIB@,$RANLIB,;t t
|
---|
7875 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
7876 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
7877 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
7878 | s,@CPP@,$CPP,;t t
|
---|
7879 | s,@EGREP@,$EGREP,;t t
|
---|
7880 | s,@U@,$U,;t t
|
---|
7881 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
7882 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
7883 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
7884 | s,@STATIC@,$STATIC,;t t
|
---|
7885 | s,@gsdlos@,$gsdlos,;t t
|
---|
7886 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
7887 | s,@subdirs@,$subdirs,;t t
|
---|
7888 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
7889 | CEOF
|
---|
7890 |
|
---|
7891 | _ACEOF
|
---|
7892 |
|
---|
7893 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7894 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7895 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7896 | ac_max_sed_lines=48
|
---|
7897 | ac_sed_frag=1 # Number of current file.
|
---|
7898 | ac_beg=1 # First line for current file.
|
---|
7899 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
7900 | ac_more_lines=:
|
---|
7901 | ac_sed_cmds=
|
---|
7902 | while $ac_more_lines; do
|
---|
7903 | if test $ac_beg -gt 1; then
|
---|
7904 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
7905 | else
|
---|
7906 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
7907 | fi
|
---|
7908 | if test ! -s $tmp/subs.frag; then
|
---|
7909 | ac_more_lines=false
|
---|
7910 | else
|
---|
7911 | # The purpose of the label and of the branching condition is to
|
---|
7912 | # speed up the sed processing (if there are no `@' at all, there
|
---|
7913 | # is no need to browse any of the substitutions).
|
---|
7914 | # These are the two extra sed commands mentioned above.
|
---|
7915 | (echo ':t
|
---|
7916 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
7917 | if test -z "$ac_sed_cmds"; then
|
---|
7918 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
7919 | else
|
---|
7920 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
7921 | fi
|
---|
7922 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
7923 | ac_beg=$ac_end
|
---|
7924 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
7925 | fi
|
---|
7926 | done
|
---|
7927 | if test -z "$ac_sed_cmds"; then
|
---|
7928 | ac_sed_cmds=cat
|
---|
7929 | fi
|
---|
7930 | fi # test -n "$CONFIG_FILES"
|
---|
7931 |
|
---|
7932 | _ACEOF
|
---|
7933 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
7934 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
7935 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7936 | case $ac_file in
|
---|
7937 | - | *:- | *:-:* ) # input from stdin
|
---|
7938 | cat >$tmp/stdin
|
---|
7939 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
7940 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
7941 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
7942 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
7943 | * ) ac_file_in=$ac_file.in ;;
|
---|
7944 | esac
|
---|
7945 |
|
---|
7946 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
7947 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
7948 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7949 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7950 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7951 | X"$ac_file" : 'X\(/\)' \| \
|
---|
7952 | . : '\(.\)' 2>/dev/null ||
|
---|
7953 | echo X"$ac_file" |
|
---|
7954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
7955 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
7956 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
7957 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
7958 | s/.*/./; q'`
|
---|
7959 | { if $as_mkdir_p; then
|
---|
7960 | mkdir -p "$ac_dir"
|
---|
7961 | else
|
---|
7962 | as_dir="$ac_dir"
|
---|
7963 | as_dirs=
|
---|
7964 | while test ! -d "$as_dir"; do
|
---|
7965 | as_dirs="$as_dir $as_dirs"
|
---|
7966 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
7967 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7968 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7969 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7970 | X"$as_dir" : 'X\(/\)' \| \
|
---|
7971 | . : '\(.\)' 2>/dev/null ||
|
---|
7972 | echo X"$as_dir" |
|
---|
7973 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
7974 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
7975 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
7976 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
7977 | s/.*/./; q'`
|
---|
7978 | done
|
---|
7979 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
7980 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
7981 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
7982 | { (exit 1); exit 1; }; }; }
|
---|
7983 |
|
---|
7984 | ac_builddir=.
|
---|
7985 |
|
---|
7986 | if test "$ac_dir" != .; then
|
---|
7987 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
7988 | # A "../" for each directory in $ac_dir_suffix.
|
---|
7989 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
7990 | else
|
---|
7991 | ac_dir_suffix= ac_top_builddir=
|
---|
7992 | fi
|
---|
7993 |
|
---|
7994 | case $srcdir in
|
---|
7995 | .) # No --srcdir option. We are building in place.
|
---|
7996 | ac_srcdir=.
|
---|
7997 | if test -z "$ac_top_builddir"; then
|
---|
7998 | ac_top_srcdir=.
|
---|
7999 | else
|
---|
8000 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8001 | fi ;;
|
---|
8002 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8003 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8004 | ac_top_srcdir=$srcdir ;;
|
---|
8005 | *) # Relative path.
|
---|
8006 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8007 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8008 | esac
|
---|
8009 |
|
---|
8010 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8011 | # the directories may not exist.
|
---|
8012 | case `pwd` in
|
---|
8013 | .) ac_abs_builddir="$ac_dir";;
|
---|
8014 | *)
|
---|
8015 | case "$ac_dir" in
|
---|
8016 | .) ac_abs_builddir=`pwd`;;
|
---|
8017 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8018 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8019 | esac;;
|
---|
8020 | esac
|
---|
8021 | case $ac_abs_builddir in
|
---|
8022 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8023 | *)
|
---|
8024 | case ${ac_top_builddir}. in
|
---|
8025 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8026 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8027 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8028 | esac;;
|
---|
8029 | esac
|
---|
8030 | case $ac_abs_builddir in
|
---|
8031 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8032 | *)
|
---|
8033 | case $ac_srcdir in
|
---|
8034 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8035 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8036 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8037 | esac;;
|
---|
8038 | esac
|
---|
8039 | case $ac_abs_builddir in
|
---|
8040 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8041 | *)
|
---|
8042 | case $ac_top_srcdir in
|
---|
8043 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8044 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8045 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8046 | esac;;
|
---|
8047 | esac
|
---|
8048 |
|
---|
8049 |
|
---|
8050 | case $INSTALL in
|
---|
8051 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
8052 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
8053 | esac
|
---|
8054 |
|
---|
8055 | if test x"$ac_file" != x-; then
|
---|
8056 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8057 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8058 | rm -f "$ac_file"
|
---|
8059 | fi
|
---|
8060 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8061 | # use $as_me), people would be surprised to read:
|
---|
8062 | # /* config.h. Generated by config.status. */
|
---|
8063 | if test x"$ac_file" = x-; then
|
---|
8064 | configure_input=
|
---|
8065 | else
|
---|
8066 | configure_input="$ac_file. "
|
---|
8067 | fi
|
---|
8068 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
8069 | sed 's,.*/,,'` by configure."
|
---|
8070 |
|
---|
8071 | # First look for the input files in the build tree, otherwise in the
|
---|
8072 | # src tree.
|
---|
8073 | ac_file_inputs=`IFS=:
|
---|
8074 | for f in $ac_file_in; do
|
---|
8075 | case $f in
|
---|
8076 | -) echo $tmp/stdin ;;
|
---|
8077 | [\\/$]*)
|
---|
8078 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8079 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8080 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8081 | { (exit 1); exit 1; }; }
|
---|
8082 | echo "$f";;
|
---|
8083 | *) # Relative
|
---|
8084 | if test -f "$f"; then
|
---|
8085 | # Build tree
|
---|
8086 | echo "$f"
|
---|
8087 | elif test -f "$srcdir/$f"; then
|
---|
8088 | # Source tree
|
---|
8089 | echo "$srcdir/$f"
|
---|
8090 | else
|
---|
8091 | # /dev/null tree
|
---|
8092 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8093 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8094 | { (exit 1); exit 1; }; }
|
---|
8095 | fi;;
|
---|
8096 | esac
|
---|
8097 | done` || { (exit 1); exit 1; }
|
---|
8098 | _ACEOF
|
---|
8099 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
8100 | sed "$ac_vpsub
|
---|
8101 | $extrasub
|
---|
8102 | _ACEOF
|
---|
8103 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8104 | :t
|
---|
8105 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8106 | s,@configure_input@,$configure_input,;t t
|
---|
8107 | s,@srcdir@,$ac_srcdir,;t t
|
---|
8108 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
8109 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
8110 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
8111 | s,@builddir@,$ac_builddir,;t t
|
---|
8112 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
8113 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
8114 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
8115 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
8116 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
8117 | rm -f $tmp/stdin
|
---|
8118 | if test x"$ac_file" != x-; then
|
---|
8119 | mv $tmp/out $ac_file
|
---|
8120 | else
|
---|
8121 | cat $tmp/out
|
---|
8122 | rm -f $tmp/out
|
---|
8123 | fi
|
---|
8124 |
|
---|
8125 | done
|
---|
8126 | _ACEOF
|
---|
8127 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8128 |
|
---|
8129 | #
|
---|
8130 | # CONFIG_HEADER section.
|
---|
8131 | #
|
---|
8132 |
|
---|
8133 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
8134 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
8135 | #
|
---|
8136 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
8137 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
8138 | ac_dB='[ ].*$,\1#\2'
|
---|
8139 | ac_dC=' '
|
---|
8140 | ac_dD=',;t'
|
---|
8141 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
8142 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
8143 | ac_uB='$,\1#\2define\3'
|
---|
8144 | ac_uC=' '
|
---|
8145 | ac_uD=',;t'
|
---|
8146 |
|
---|
8147 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
8148 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
8149 | case $ac_file in
|
---|
8150 | - | *:- | *:-:* ) # input from stdin
|
---|
8151 | cat >$tmp/stdin
|
---|
8152 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8153 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8154 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
8155 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
8156 | * ) ac_file_in=$ac_file.in ;;
|
---|
8157 | esac
|
---|
8158 |
|
---|
8159 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
8160 | echo "$as_me: creating $ac_file" >&6;}
|
---|
8161 |
|
---|
8162 | # First look for the input files in the build tree, otherwise in the
|
---|
8163 | # src tree.
|
---|
8164 | ac_file_inputs=`IFS=:
|
---|
8165 | for f in $ac_file_in; do
|
---|
8166 | case $f in
|
---|
8167 | -) echo $tmp/stdin ;;
|
---|
8168 | [\\/$]*)
|
---|
8169 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
8170 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8171 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8172 | { (exit 1); exit 1; }; }
|
---|
8173 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
8174 | echo "$f";;
|
---|
8175 | *) # Relative
|
---|
8176 | if test -f "$f"; then
|
---|
8177 | # Build tree
|
---|
8178 | echo "$f"
|
---|
8179 | elif test -f "$srcdir/$f"; then
|
---|
8180 | # Source tree
|
---|
8181 | echo "$srcdir/$f"
|
---|
8182 | else
|
---|
8183 | # /dev/null tree
|
---|
8184 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
8185 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
8186 | { (exit 1); exit 1; }; }
|
---|
8187 | fi;;
|
---|
8188 | esac
|
---|
8189 | done` || { (exit 1); exit 1; }
|
---|
8190 | # Remove the trailing spaces.
|
---|
8191 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
8192 |
|
---|
8193 | _ACEOF
|
---|
8194 |
|
---|
8195 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
8196 | # `conftest.undefs', that substitutes the proper values into
|
---|
8197 | # config.h.in to produce config.h. The first handles `#define'
|
---|
8198 | # templates, and the second `#undef' templates.
|
---|
8199 | # And first: Protect against being on the right side of a sed subst in
|
---|
8200 | # config.status. Protect against being in an unquoted here document
|
---|
8201 | # in config.status.
|
---|
8202 | rm -f conftest.defines conftest.undefs
|
---|
8203 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
8204 | # Putting comments in sed scripts is not portable.
|
---|
8205 | #
|
---|
8206 | # `end' is used to avoid that the second main sed command (meant for
|
---|
8207 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
8208 | # See the Autoconf documentation for `clear'.
|
---|
8209 | cat >confdef2sed.sed <<\_ACEOF
|
---|
8210 | s/[\\&,]/\\&/g
|
---|
8211 | s,[\\$`],\\&,g
|
---|
8212 | t clear
|
---|
8213 | : clear
|
---|
8214 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
8215 | t end
|
---|
8216 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
8217 | : end
|
---|
8218 | _ACEOF
|
---|
8219 | # If some macros were called several times there might be several times
|
---|
8220 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
8221 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
8222 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
8223 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
8224 | rm -f confdef2sed.sed
|
---|
8225 |
|
---|
8226 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
8227 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
8228 | # on some systems where configure will not decide to define it.
|
---|
8229 | cat >>conftest.undefs <<\_ACEOF
|
---|
8230 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
8231 | _ACEOF
|
---|
8232 |
|
---|
8233 | # Break up conftest.defines because some shells have a limit on the size
|
---|
8234 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8235 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
8236 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
8237 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
8238 | echo ' :' >>$CONFIG_STATUS
|
---|
8239 | rm -f conftest.tail
|
---|
8240 | while grep . conftest.defines >/dev/null
|
---|
8241 | do
|
---|
8242 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
8243 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8244 | # Speed up: don't consider the non `#define' lines.
|
---|
8245 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
8246 | # Work around the forget-to-reset-the-flag bug.
|
---|
8247 | echo 't clr' >>$CONFIG_STATUS
|
---|
8248 | echo ': clr' >>$CONFIG_STATUS
|
---|
8249 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
8250 | echo 'CEOF
|
---|
8251 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
8252 | rm -f $tmp/in
|
---|
8253 | mv $tmp/out $tmp/in
|
---|
8254 | ' >>$CONFIG_STATUS
|
---|
8255 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
8256 | rm -f conftest.defines
|
---|
8257 | mv conftest.tail conftest.defines
|
---|
8258 | done
|
---|
8259 | rm -f conftest.defines
|
---|
8260 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
8261 | echo >>$CONFIG_STATUS
|
---|
8262 |
|
---|
8263 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
8264 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
8265 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
8266 | rm -f conftest.tail
|
---|
8267 | while grep . conftest.undefs >/dev/null
|
---|
8268 | do
|
---|
8269 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
8270 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
8271 | # Speed up: don't consider the non `#undef'
|
---|
8272 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
8273 | # Work around the forget-to-reset-the-flag bug.
|
---|
8274 | echo 't clr' >>$CONFIG_STATUS
|
---|
8275 | echo ': clr' >>$CONFIG_STATUS
|
---|
8276 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
8277 | echo 'CEOF
|
---|
8278 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
8279 | rm -f $tmp/in
|
---|
8280 | mv $tmp/out $tmp/in
|
---|
8281 | ' >>$CONFIG_STATUS
|
---|
8282 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
8283 | rm -f conftest.undefs
|
---|
8284 | mv conftest.tail conftest.undefs
|
---|
8285 | done
|
---|
8286 | rm -f conftest.undefs
|
---|
8287 |
|
---|
8288 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8289 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
8290 | # use $as_me), people would be surprised to read:
|
---|
8291 | # /* config.h. Generated by config.status. */
|
---|
8292 | if test x"$ac_file" = x-; then
|
---|
8293 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
8294 | else
|
---|
8295 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
8296 | fi
|
---|
8297 | cat $tmp/in >>$tmp/config.h
|
---|
8298 | rm -f $tmp/in
|
---|
8299 | if test x"$ac_file" != x-; then
|
---|
8300 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
8301 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
8302 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
8303 | else
|
---|
8304 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
8305 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8306 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
8307 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
8308 | X"$ac_file" : 'X\(/\)' \| \
|
---|
8309 | . : '\(.\)' 2>/dev/null ||
|
---|
8310 | echo X"$ac_file" |
|
---|
8311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8312 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8313 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8314 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8315 | s/.*/./; q'`
|
---|
8316 | { if $as_mkdir_p; then
|
---|
8317 | mkdir -p "$ac_dir"
|
---|
8318 | else
|
---|
8319 | as_dir="$ac_dir"
|
---|
8320 | as_dirs=
|
---|
8321 | while test ! -d "$as_dir"; do
|
---|
8322 | as_dirs="$as_dir $as_dirs"
|
---|
8323 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8324 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8325 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8326 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8327 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8328 | . : '\(.\)' 2>/dev/null ||
|
---|
8329 | echo X"$as_dir" |
|
---|
8330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8331 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8332 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8333 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8334 | s/.*/./; q'`
|
---|
8335 | done
|
---|
8336 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8337 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8338 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8339 | { (exit 1); exit 1; }; }; }
|
---|
8340 |
|
---|
8341 | rm -f $ac_file
|
---|
8342 | mv $tmp/config.h $ac_file
|
---|
8343 | fi
|
---|
8344 | else
|
---|
8345 | cat $tmp/config.h
|
---|
8346 | rm -f $tmp/config.h
|
---|
8347 | fi
|
---|
8348 | done
|
---|
8349 | _ACEOF
|
---|
8350 |
|
---|
8351 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
8352 |
|
---|
8353 | { (exit 0); exit 0; }
|
---|
8354 | _ACEOF
|
---|
8355 | chmod +x $CONFIG_STATUS
|
---|
8356 | ac_clean_files=$ac_clean_files_save
|
---|
8357 |
|
---|
8358 |
|
---|
8359 | # configure is writing to config.log, and then calls config.status.
|
---|
8360 | # config.status does its own redirection, appending to config.log.
|
---|
8361 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8362 | # by configure, so config.status won't be able to write to it; its
|
---|
8363 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8364 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8365 | # appended to by config.status. When coming back to configure, we
|
---|
8366 | # need to make the FD available again.
|
---|
8367 | if test "$no_create" != yes; then
|
---|
8368 | ac_cs_success=:
|
---|
8369 | ac_config_status_args=
|
---|
8370 | test "$silent" = yes &&
|
---|
8371 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8372 | exec 5>/dev/null
|
---|
8373 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8374 | exec 5>>config.log
|
---|
8375 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8376 | # would make configure fail if this is the last instruction.
|
---|
8377 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
8378 | fi
|
---|
8379 |
|
---|
8380 | #
|
---|
8381 | # CONFIG_SUBDIRS section.
|
---|
8382 | #
|
---|
8383 | if test "$no_recursion" != yes; then
|
---|
8384 |
|
---|
8385 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
8386 | ac_sub_configure_args=
|
---|
8387 | ac_prev=
|
---|
8388 | for ac_arg in $ac_configure_args; do
|
---|
8389 | if test -n "$ac_prev"; then
|
---|
8390 | ac_prev=
|
---|
8391 | continue
|
---|
8392 | fi
|
---|
8393 | case $ac_arg in
|
---|
8394 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8395 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8396 | ac_prev=cache_file ;;
|
---|
8397 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8398 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
8399 | | --c=*)
|
---|
8400 | ;;
|
---|
8401 | --config-cache | -C)
|
---|
8402 | ;;
|
---|
8403 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8404 | ac_prev=srcdir ;;
|
---|
8405 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8406 | ;;
|
---|
8407 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
8408 | ac_prev=prefix ;;
|
---|
8409 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
8410 | ;;
|
---|
8411 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
8412 | esac
|
---|
8413 | done
|
---|
8414 |
|
---|
8415 | # Always prepend --prefix to ensure using the same prefix
|
---|
8416 | # in subdir configurations.
|
---|
8417 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
8418 |
|
---|
8419 | ac_popdir=`pwd`
|
---|
8420 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
8421 |
|
---|
8422 | # Do not complain, so a configure script can configure whichever
|
---|
8423 | # parts of a large source tree are present.
|
---|
8424 | test -d $srcdir/$ac_dir || continue
|
---|
8425 |
|
---|
8426 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
8427 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
8428 | { if $as_mkdir_p; then
|
---|
8429 | mkdir -p "$ac_dir"
|
---|
8430 | else
|
---|
8431 | as_dir="$ac_dir"
|
---|
8432 | as_dirs=
|
---|
8433 | while test ! -d "$as_dir"; do
|
---|
8434 | as_dirs="$as_dir $as_dirs"
|
---|
8435 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
8436 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
8437 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
8438 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
8439 | X"$as_dir" : 'X\(/\)' \| \
|
---|
8440 | . : '\(.\)' 2>/dev/null ||
|
---|
8441 | echo X"$as_dir" |
|
---|
8442 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
8443 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
8444 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
8445 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
8446 | s/.*/./; q'`
|
---|
8447 | done
|
---|
8448 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
8449 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
8450 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
8451 | { (exit 1); exit 1; }; }; }
|
---|
8452 |
|
---|
8453 | ac_builddir=.
|
---|
8454 |
|
---|
8455 | if test "$ac_dir" != .; then
|
---|
8456 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
8457 | # A "../" for each directory in $ac_dir_suffix.
|
---|
8458 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
8459 | else
|
---|
8460 | ac_dir_suffix= ac_top_builddir=
|
---|
8461 | fi
|
---|
8462 |
|
---|
8463 | case $srcdir in
|
---|
8464 | .) # No --srcdir option. We are building in place.
|
---|
8465 | ac_srcdir=.
|
---|
8466 | if test -z "$ac_top_builddir"; then
|
---|
8467 | ac_top_srcdir=.
|
---|
8468 | else
|
---|
8469 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
8470 | fi ;;
|
---|
8471 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
8472 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8473 | ac_top_srcdir=$srcdir ;;
|
---|
8474 | *) # Relative path.
|
---|
8475 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
8476 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
8477 | esac
|
---|
8478 |
|
---|
8479 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
8480 | # the directories may not exist.
|
---|
8481 | case `pwd` in
|
---|
8482 | .) ac_abs_builddir="$ac_dir";;
|
---|
8483 | *)
|
---|
8484 | case "$ac_dir" in
|
---|
8485 | .) ac_abs_builddir=`pwd`;;
|
---|
8486 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
8487 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
8488 | esac;;
|
---|
8489 | esac
|
---|
8490 | case $ac_abs_builddir in
|
---|
8491 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8492 | *)
|
---|
8493 | case ${ac_top_builddir}. in
|
---|
8494 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
8495 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
8496 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
8497 | esac;;
|
---|
8498 | esac
|
---|
8499 | case $ac_abs_builddir in
|
---|
8500 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
8501 | *)
|
---|
8502 | case $ac_srcdir in
|
---|
8503 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
8504 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
8505 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
8506 | esac;;
|
---|
8507 | esac
|
---|
8508 | case $ac_abs_builddir in
|
---|
8509 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8510 | *)
|
---|
8511 | case $ac_top_srcdir in
|
---|
8512 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
8513 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
8514 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
8515 | esac;;
|
---|
8516 | esac
|
---|
8517 |
|
---|
8518 |
|
---|
8519 | cd $ac_dir
|
---|
8520 |
|
---|
8521 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8522 | if test -f $ac_srcdir/configure.gnu; then
|
---|
8523 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
8524 | elif test -f $ac_srcdir/configure; then
|
---|
8525 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
8526 | elif test -f $ac_srcdir/configure.in; then
|
---|
8527 | ac_sub_configure=$ac_configure
|
---|
8528 | else
|
---|
8529 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8530 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8531 | ac_sub_configure=
|
---|
8532 | fi
|
---|
8533 |
|
---|
8534 | # The recursion is here.
|
---|
8535 | if test -n "$ac_sub_configure"; then
|
---|
8536 | # Make the cache file name correct relative to the subdirectory.
|
---|
8537 | case $cache_file in
|
---|
8538 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8539 | *) # Relative path.
|
---|
8540 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
8541 | esac
|
---|
8542 |
|
---|
8543 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8544 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8545 | # The eval makes quoting arguments work.
|
---|
8546 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
8547 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
8548 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
8549 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
8550 | { (exit 1); exit 1; }; }
|
---|
8551 | fi
|
---|
8552 |
|
---|
8553 | cd $ac_popdir
|
---|
8554 | done
|
---|
8555 | fi
|
---|
8556 |
|
---|
8557 |
|
---|
8558 |
|
---|