1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.59 for FULL-PACKAGE-NAME VERSION.
|
---|
4 | #
|
---|
5 | # Report bugs to <BUG-REPORT-ADDRESS>.
|
---|
6 | #
|
---|
7 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
8 | # This configure script is free software; the Free Software Foundation
|
---|
9 | # gives unlimited permission to copy, distribute and modify it.
|
---|
10 | ## --------------------- ##
|
---|
11 | ## M4sh Initialization. ##
|
---|
12 | ## --------------------- ##
|
---|
13 |
|
---|
14 | # Be Bourne compatible
|
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
16 | emulate sh
|
---|
17 | NULLCMD=:
|
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
19 | # is contrary to our usage. Disable this feature.
|
---|
20 | alias -g '${1+"$@"}'='"$@"'
|
---|
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
22 | set -o posix
|
---|
23 | fi
|
---|
24 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
25 |
|
---|
26 | # Support unset when possible.
|
---|
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
28 | as_unset=unset
|
---|
29 | else
|
---|
30 | as_unset=false
|
---|
31 | fi
|
---|
32 |
|
---|
33 |
|
---|
34 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
35 | $as_unset ENV MAIL MAILPATH
|
---|
36 | PS1='$ '
|
---|
37 | PS2='> '
|
---|
38 | PS4='+ '
|
---|
39 |
|
---|
40 | # NLS nuisances.
|
---|
41 | for as_var in \
|
---|
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
44 | LC_TELEPHONE LC_TIME
|
---|
45 | do
|
---|
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
47 | eval $as_var=C; export $as_var
|
---|
48 | else
|
---|
49 | $as_unset $as_var
|
---|
50 | fi
|
---|
51 | done
|
---|
52 |
|
---|
53 | # Required to use basename.
|
---|
54 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
55 | as_expr=expr
|
---|
56 | else
|
---|
57 | as_expr=false
|
---|
58 | fi
|
---|
59 |
|
---|
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
61 | as_basename=basename
|
---|
62 | else
|
---|
63 | as_basename=false
|
---|
64 | fi
|
---|
65 |
|
---|
66 |
|
---|
67 | # Name of the executable.
|
---|
68 | as_me=`$as_basename "$0" ||
|
---|
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
70 | X"$0" : 'X\(//\)$' \| \
|
---|
71 | X"$0" : 'X\(/\)$' \| \
|
---|
72 | . : '\(.\)' 2>/dev/null ||
|
---|
73 | echo X/"$0" |
|
---|
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
75 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
76 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
77 | s/.*/./; q'`
|
---|
78 |
|
---|
79 |
|
---|
80 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
81 | # Avoid depending upon Character Ranges.
|
---|
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
85 | as_cr_digits='0123456789'
|
---|
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
87 |
|
---|
88 | # The user is always right.
|
---|
89 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
90 | echo "#! /bin/sh" >conf$$.sh
|
---|
91 | echo "exit 0" >>conf$$.sh
|
---|
92 | chmod +x conf$$.sh
|
---|
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
94 | PATH_SEPARATOR=';'
|
---|
95 | else
|
---|
96 | PATH_SEPARATOR=:
|
---|
97 | fi
|
---|
98 | rm -f conf$$.sh
|
---|
99 | fi
|
---|
100 |
|
---|
101 |
|
---|
102 | as_lineno_1=$LINENO
|
---|
103 | as_lineno_2=$LINENO
|
---|
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
105 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
106 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
107 | # Find who we are. Look in the path if we contain no path at all
|
---|
108 | # relative or not.
|
---|
109 | case $0 in
|
---|
110 | *[\\/]* ) as_myself=$0 ;;
|
---|
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
112 | for as_dir in $PATH
|
---|
113 | do
|
---|
114 | IFS=$as_save_IFS
|
---|
115 | test -z "$as_dir" && as_dir=.
|
---|
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
117 | done
|
---|
118 |
|
---|
119 | ;;
|
---|
120 | esac
|
---|
121 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
122 | # in which case we are not to be found in the path.
|
---|
123 | if test "x$as_myself" = x; then
|
---|
124 | as_myself=$0
|
---|
125 | fi
|
---|
126 | if test ! -f "$as_myself"; then
|
---|
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
128 | { (exit 1); exit 1; }; }
|
---|
129 | fi
|
---|
130 | case $CONFIG_SHELL in
|
---|
131 | '')
|
---|
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
134 | do
|
---|
135 | IFS=$as_save_IFS
|
---|
136 | test -z "$as_dir" && as_dir=.
|
---|
137 | for as_base in sh bash ksh sh5; do
|
---|
138 | case $as_dir in
|
---|
139 | /*)
|
---|
140 | if ("$as_dir/$as_base" -c '
|
---|
141 | as_lineno_1=$LINENO
|
---|
142 | as_lineno_2=$LINENO
|
---|
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
144 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
148 | CONFIG_SHELL=$as_dir/$as_base
|
---|
149 | export CONFIG_SHELL
|
---|
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
151 | fi;;
|
---|
152 | esac
|
---|
153 | done
|
---|
154 | done
|
---|
155 | ;;
|
---|
156 | esac
|
---|
157 |
|
---|
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
159 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
160 | # line-number line before each line; the second 'sed' does the real
|
---|
161 | # work. The second script uses 'N' to pair each line-number line
|
---|
162 | # with the numbered line, and appends trailing '-' during
|
---|
163 | # substitution so that $LINENO is not a special case at line end.
|
---|
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
166 | sed '=' <$as_myself |
|
---|
167 | sed '
|
---|
168 | N
|
---|
169 | s,$,-,
|
---|
170 | : loop
|
---|
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
172 | t loop
|
---|
173 | s,-$,,
|
---|
174 | s,^['$as_cr_digits']*\n,,
|
---|
175 | ' >$as_me.lineno &&
|
---|
176 | chmod +x $as_me.lineno ||
|
---|
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
178 | { (exit 1); exit 1; }; }
|
---|
179 |
|
---|
180 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
181 | # (the dirname of $[0] is not the place where we might find the
|
---|
182 | # original and so on. Autoconf is especially sensible to this).
|
---|
183 | . ./$as_me.lineno
|
---|
184 | # Exit status is that of the last command.
|
---|
185 | exit
|
---|
186 | }
|
---|
187 |
|
---|
188 |
|
---|
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
190 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
191 | ' ECHO_T=' ' ;;
|
---|
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
194 | esac
|
---|
195 |
|
---|
196 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
197 | as_expr=expr
|
---|
198 | else
|
---|
199 | as_expr=false
|
---|
200 | fi
|
---|
201 |
|
---|
202 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
203 | echo >conf$$.file
|
---|
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
205 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
207 | if test -f conf$$.exe; then
|
---|
208 | # Don't use ln at all; we don't have any links
|
---|
209 | as_ln_s='cp -p'
|
---|
210 | else
|
---|
211 | as_ln_s='ln -s'
|
---|
212 | fi
|
---|
213 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
214 | as_ln_s=ln
|
---|
215 | else
|
---|
216 | as_ln_s='cp -p'
|
---|
217 | fi
|
---|
218 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
219 |
|
---|
220 | if mkdir -p . 2>/dev/null; then
|
---|
221 | as_mkdir_p=:
|
---|
222 | else
|
---|
223 | test -d ./-p && rmdir ./-p
|
---|
224 | as_mkdir_p=false
|
---|
225 | fi
|
---|
226 |
|
---|
227 | as_executable_p="test -f"
|
---|
228 |
|
---|
229 | # Sed expression to map a string onto a valid CPP name.
|
---|
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
231 |
|
---|
232 | # Sed expression to map a string onto a valid variable name.
|
---|
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
234 |
|
---|
235 |
|
---|
236 | # IFS
|
---|
237 | # We need space, tab and new line, in precisely that order.
|
---|
238 | as_nl='
|
---|
239 | '
|
---|
240 | IFS=" $as_nl"
|
---|
241 |
|
---|
242 | # CDPATH.
|
---|
243 | $as_unset CDPATH
|
---|
244 |
|
---|
245 |
|
---|
246 | # Name of the host.
|
---|
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
248 | # so uname gets run too.
|
---|
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
250 |
|
---|
251 | exec 6>&1
|
---|
252 |
|
---|
253 | #
|
---|
254 | # Initializations.
|
---|
255 | #
|
---|
256 | ac_default_prefix=/usr/local
|
---|
257 | ac_config_libobj_dir=.
|
---|
258 | cross_compiling=no
|
---|
259 | subdirs=
|
---|
260 | MFLAGS=
|
---|
261 | MAKEFLAGS=
|
---|
262 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
263 |
|
---|
264 | # Maximum number of lines to put in a shell here document.
|
---|
265 | # This variable seems obsolete. It should probably be removed, and
|
---|
266 | # only ac_max_sed_lines should be used.
|
---|
267 | : ${ac_max_here_lines=38}
|
---|
268 |
|
---|
269 | # Identity of this package.
|
---|
270 | PACKAGE_NAME='FULL-PACKAGE-NAME'
|
---|
271 | PACKAGE_TARNAME='full-package-name'
|
---|
272 | PACKAGE_VERSION='VERSION'
|
---|
273 | PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
|
---|
274 | PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
|
---|
275 |
|
---|
276 | ac_unique_file="search4j.cpp"
|
---|
277 | # Factoring default headers for most tests.
|
---|
278 | ac_includes_default="\
|
---|
279 | #include <stdio.h>
|
---|
280 | #if HAVE_SYS_TYPES_H
|
---|
281 | # include <sys/types.h>
|
---|
282 | #endif
|
---|
283 | #if HAVE_SYS_STAT_H
|
---|
284 | # include <sys/stat.h>
|
---|
285 | #endif
|
---|
286 | #if STDC_HEADERS
|
---|
287 | # include <stdlib.h>
|
---|
288 | # include <stddef.h>
|
---|
289 | #else
|
---|
290 | # if HAVE_STDLIB_H
|
---|
291 | # include <stdlib.h>
|
---|
292 | # endif
|
---|
293 | #endif
|
---|
294 | #if HAVE_STRING_H
|
---|
295 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
296 | # include <memory.h>
|
---|
297 | # endif
|
---|
298 | # include <string.h>
|
---|
299 | #endif
|
---|
300 | #if HAVE_STRINGS_H
|
---|
301 | # include <strings.h>
|
---|
302 | #endif
|
---|
303 | #if HAVE_INTTYPES_H
|
---|
304 | # include <inttypes.h>
|
---|
305 | #else
|
---|
306 | # if HAVE_STDINT_H
|
---|
307 | # include <stdint.h>
|
---|
308 | # endif
|
---|
309 | #endif
|
---|
310 | #if HAVE_UNISTD_H
|
---|
311 | # include <unistd.h>
|
---|
312 | #endif"
|
---|
313 |
|
---|
314 | 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS LTLIBOBJS'
|
---|
315 | ac_subst_files=''
|
---|
316 |
|
---|
317 | # Initialize some variables set by options.
|
---|
318 | ac_init_help=
|
---|
319 | ac_init_version=false
|
---|
320 | # The variables have the same names as the options, with
|
---|
321 | # dashes changed to underlines.
|
---|
322 | cache_file=/dev/null
|
---|
323 | exec_prefix=NONE
|
---|
324 | no_create=
|
---|
325 | no_recursion=
|
---|
326 | prefix=NONE
|
---|
327 | program_prefix=NONE
|
---|
328 | program_suffix=NONE
|
---|
329 | program_transform_name=s,x,x,
|
---|
330 | silent=
|
---|
331 | site=
|
---|
332 | srcdir=
|
---|
333 | verbose=
|
---|
334 | x_includes=NONE
|
---|
335 | x_libraries=NONE
|
---|
336 |
|
---|
337 | # Installation directory options.
|
---|
338 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
339 | # and all the variables that are supposed to be based on exec_prefix
|
---|
340 | # by default will actually change.
|
---|
341 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
342 | bindir='${exec_prefix}/bin'
|
---|
343 | sbindir='${exec_prefix}/sbin'
|
---|
344 | libexecdir='${exec_prefix}/libexec'
|
---|
345 | datadir='${prefix}/share'
|
---|
346 | sysconfdir='${prefix}/etc'
|
---|
347 | sharedstatedir='${prefix}/com'
|
---|
348 | localstatedir='${prefix}/var'
|
---|
349 | libdir='${exec_prefix}/lib'
|
---|
350 | includedir='${prefix}/include'
|
---|
351 | oldincludedir='/usr/include'
|
---|
352 | infodir='${prefix}/info'
|
---|
353 | mandir='${prefix}/man'
|
---|
354 |
|
---|
355 | ac_prev=
|
---|
356 | for ac_option
|
---|
357 | do
|
---|
358 | # If the previous option needs an argument, assign it.
|
---|
359 | if test -n "$ac_prev"; then
|
---|
360 | eval "$ac_prev=\$ac_option"
|
---|
361 | ac_prev=
|
---|
362 | continue
|
---|
363 | fi
|
---|
364 |
|
---|
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
366 |
|
---|
367 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
368 |
|
---|
369 | case $ac_option in
|
---|
370 |
|
---|
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
372 | ac_prev=bindir ;;
|
---|
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
374 | bindir=$ac_optarg ;;
|
---|
375 |
|
---|
376 | -build | --build | --buil | --bui | --bu)
|
---|
377 | ac_prev=build_alias ;;
|
---|
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
379 | build_alias=$ac_optarg ;;
|
---|
380 |
|
---|
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
383 | ac_prev=cache_file ;;
|
---|
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
386 | cache_file=$ac_optarg ;;
|
---|
387 |
|
---|
388 | --config-cache | -C)
|
---|
389 | cache_file=config.cache ;;
|
---|
390 |
|
---|
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
392 | ac_prev=datadir ;;
|
---|
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
394 | | --da=*)
|
---|
395 | datadir=$ac_optarg ;;
|
---|
396 |
|
---|
397 | -disable-* | --disable-*)
|
---|
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
399 | # Reject names that are not valid shell variable names.
|
---|
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
402 | { (exit 1); exit 1; }; }
|
---|
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
404 | eval "enable_$ac_feature=no" ;;
|
---|
405 |
|
---|
406 | -enable-* | --enable-*)
|
---|
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
408 | # Reject names that are not valid shell variable names.
|
---|
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
411 | { (exit 1); exit 1; }; }
|
---|
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
413 | case $ac_option in
|
---|
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
415 | *) ac_optarg=yes ;;
|
---|
416 | esac
|
---|
417 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
418 |
|
---|
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
421 | | --exec | --exe | --ex)
|
---|
422 | ac_prev=exec_prefix ;;
|
---|
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
425 | | --exec=* | --exe=* | --ex=*)
|
---|
426 | exec_prefix=$ac_optarg ;;
|
---|
427 |
|
---|
428 | -gas | --gas | --ga | --g)
|
---|
429 | # Obsolete; use --with-gas.
|
---|
430 | with_gas=yes ;;
|
---|
431 |
|
---|
432 | -help | --help | --hel | --he | -h)
|
---|
433 | ac_init_help=long ;;
|
---|
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
435 | ac_init_help=recursive ;;
|
---|
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
437 | ac_init_help=short ;;
|
---|
438 |
|
---|
439 | -host | --host | --hos | --ho)
|
---|
440 | ac_prev=host_alias ;;
|
---|
441 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
442 | host_alias=$ac_optarg ;;
|
---|
443 |
|
---|
444 | -includedir | --includedir | --includedi | --included | --include \
|
---|
445 | | --includ | --inclu | --incl | --inc)
|
---|
446 | ac_prev=includedir ;;
|
---|
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
448 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
449 | includedir=$ac_optarg ;;
|
---|
450 |
|
---|
451 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
452 | ac_prev=infodir ;;
|
---|
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
454 | infodir=$ac_optarg ;;
|
---|
455 |
|
---|
456 | -libdir | --libdir | --libdi | --libd)
|
---|
457 | ac_prev=libdir ;;
|
---|
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
459 | libdir=$ac_optarg ;;
|
---|
460 |
|
---|
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
462 | | --libexe | --libex | --libe)
|
---|
463 | ac_prev=libexecdir ;;
|
---|
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
465 | | --libexe=* | --libex=* | --libe=*)
|
---|
466 | libexecdir=$ac_optarg ;;
|
---|
467 |
|
---|
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
469 | | --localstate | --localstat | --localsta | --localst \
|
---|
470 | | --locals | --local | --loca | --loc | --lo)
|
---|
471 | ac_prev=localstatedir ;;
|
---|
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
475 | localstatedir=$ac_optarg ;;
|
---|
476 |
|
---|
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
478 | ac_prev=mandir ;;
|
---|
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
480 | mandir=$ac_optarg ;;
|
---|
481 |
|
---|
482 | -nfp | --nfp | --nf)
|
---|
483 | # Obsolete; use --without-fp.
|
---|
484 | with_fp=no ;;
|
---|
485 |
|
---|
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
487 | | --no-cr | --no-c | -n)
|
---|
488 | no_create=yes ;;
|
---|
489 |
|
---|
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
492 | no_recursion=yes ;;
|
---|
493 |
|
---|
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
496 | | --oldin | --oldi | --old | --ol | --o)
|
---|
497 | ac_prev=oldincludedir ;;
|
---|
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
501 | oldincludedir=$ac_optarg ;;
|
---|
502 |
|
---|
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
504 | ac_prev=prefix ;;
|
---|
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
506 | prefix=$ac_optarg ;;
|
---|
507 |
|
---|
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
509 | | --program-pre | --program-pr | --program-p)
|
---|
510 | ac_prev=program_prefix ;;
|
---|
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
513 | program_prefix=$ac_optarg ;;
|
---|
514 |
|
---|
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
516 | | --program-suf | --program-su | --program-s)
|
---|
517 | ac_prev=program_suffix ;;
|
---|
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
520 | program_suffix=$ac_optarg ;;
|
---|
521 |
|
---|
522 | -program-transform-name | --program-transform-name \
|
---|
523 | | --program-transform-nam | --program-transform-na \
|
---|
524 | | --program-transform-n | --program-transform- \
|
---|
525 | | --program-transform | --program-transfor \
|
---|
526 | | --program-transfo | --program-transf \
|
---|
527 | | --program-trans | --program-tran \
|
---|
528 | | --progr-tra | --program-tr | --program-t)
|
---|
529 | ac_prev=program_transform_name ;;
|
---|
530 | -program-transform-name=* | --program-transform-name=* \
|
---|
531 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
532 | | --program-transform-n=* | --program-transform-=* \
|
---|
533 | | --program-transform=* | --program-transfor=* \
|
---|
534 | | --program-transfo=* | --program-transf=* \
|
---|
535 | | --program-trans=* | --program-tran=* \
|
---|
536 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
537 | program_transform_name=$ac_optarg ;;
|
---|
538 |
|
---|
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
540 | | -silent | --silent | --silen | --sile | --sil)
|
---|
541 | silent=yes ;;
|
---|
542 |
|
---|
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
544 | ac_prev=sbindir ;;
|
---|
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
546 | | --sbi=* | --sb=*)
|
---|
547 | sbindir=$ac_optarg ;;
|
---|
548 |
|
---|
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
551 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
552 | | --sha | --sh)
|
---|
553 | ac_prev=sharedstatedir ;;
|
---|
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
557 | | --sha=* | --sh=*)
|
---|
558 | sharedstatedir=$ac_optarg ;;
|
---|
559 |
|
---|
560 | -site | --site | --sit)
|
---|
561 | ac_prev=site ;;
|
---|
562 | -site=* | --site=* | --sit=*)
|
---|
563 | site=$ac_optarg ;;
|
---|
564 |
|
---|
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
566 | ac_prev=srcdir ;;
|
---|
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
568 | srcdir=$ac_optarg ;;
|
---|
569 |
|
---|
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
571 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
572 | ac_prev=sysconfdir ;;
|
---|
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
575 | sysconfdir=$ac_optarg ;;
|
---|
576 |
|
---|
577 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
578 | ac_prev=target_alias ;;
|
---|
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
580 | target_alias=$ac_optarg ;;
|
---|
581 |
|
---|
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
583 | verbose=yes ;;
|
---|
584 |
|
---|
585 | -version | --version | --versio | --versi | --vers | -V)
|
---|
586 | ac_init_version=: ;;
|
---|
587 |
|
---|
588 | -with-* | --with-*)
|
---|
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
590 | # Reject names that are not valid shell variable names.
|
---|
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
593 | { (exit 1); exit 1; }; }
|
---|
594 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
595 | case $ac_option in
|
---|
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
597 | *) ac_optarg=yes ;;
|
---|
598 | esac
|
---|
599 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
600 |
|
---|
601 | -without-* | --without-*)
|
---|
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
603 | # Reject names that are not valid shell variable names.
|
---|
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
606 | { (exit 1); exit 1; }; }
|
---|
607 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
608 | eval "with_$ac_package=no" ;;
|
---|
609 |
|
---|
610 | --x)
|
---|
611 | # Obsolete; use --with-x.
|
---|
612 | with_x=yes ;;
|
---|
613 |
|
---|
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
615 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
616 | ac_prev=x_includes ;;
|
---|
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
619 | x_includes=$ac_optarg ;;
|
---|
620 |
|
---|
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
623 | ac_prev=x_libraries ;;
|
---|
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
626 | x_libraries=$ac_optarg ;;
|
---|
627 |
|
---|
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
629 | Try \`$0 --help' for more information." >&2
|
---|
630 | { (exit 1); exit 1; }; }
|
---|
631 | ;;
|
---|
632 |
|
---|
633 | *=*)
|
---|
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
635 | # Reject names that are not valid shell variable names.
|
---|
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
638 | { (exit 1); exit 1; }; }
|
---|
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
640 | eval "$ac_envvar='$ac_optarg'"
|
---|
641 | export $ac_envvar ;;
|
---|
642 |
|
---|
643 | *)
|
---|
644 | # FIXME: should be removed in autoconf 3.0.
|
---|
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
649 | ;;
|
---|
650 |
|
---|
651 | esac
|
---|
652 | done
|
---|
653 |
|
---|
654 | if test -n "$ac_prev"; then
|
---|
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
656 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
657 | { (exit 1); exit 1; }; }
|
---|
658 | fi
|
---|
659 |
|
---|
660 | # Be sure to have absolute paths.
|
---|
661 | for ac_var in exec_prefix prefix
|
---|
662 | do
|
---|
663 | eval ac_val=$`echo $ac_var`
|
---|
664 | case $ac_val in
|
---|
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
667 | { (exit 1); exit 1; }; };;
|
---|
668 | esac
|
---|
669 | done
|
---|
670 |
|
---|
671 | # Be sure to have absolute paths.
|
---|
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
673 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
674 | do
|
---|
675 | eval ac_val=$`echo $ac_var`
|
---|
676 | case $ac_val in
|
---|
677 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
679 | { (exit 1); exit 1; }; };;
|
---|
680 | esac
|
---|
681 | done
|
---|
682 |
|
---|
683 | # There might be people who depend on the old broken behavior: `$host'
|
---|
684 | # used to hold the argument of --host etc.
|
---|
685 | # FIXME: To remove some day.
|
---|
686 | build=$build_alias
|
---|
687 | host=$host_alias
|
---|
688 | target=$target_alias
|
---|
689 |
|
---|
690 | # FIXME: To remove some day.
|
---|
691 | if test "x$host_alias" != x; then
|
---|
692 | if test "x$build_alias" = x; then
|
---|
693 | cross_compiling=maybe
|
---|
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
695 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
696 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
697 | cross_compiling=yes
|
---|
698 | fi
|
---|
699 | fi
|
---|
700 |
|
---|
701 | ac_tool_prefix=
|
---|
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
703 |
|
---|
704 | test "$silent" = yes && exec 6>/dev/null
|
---|
705 |
|
---|
706 |
|
---|
707 | # Find the source files, if location was not specified.
|
---|
708 | if test -z "$srcdir"; then
|
---|
709 | ac_srcdir_defaulted=yes
|
---|
710 | # Try the directory containing this script, then its parent.
|
---|
711 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
713 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
714 | X"$0" : 'X\(//\)$' \| \
|
---|
715 | X"$0" : 'X\(/\)' \| \
|
---|
716 | . : '\(.\)' 2>/dev/null ||
|
---|
717 | echo X"$0" |
|
---|
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
720 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
721 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
722 | s/.*/./; q'`
|
---|
723 | srcdir=$ac_confdir
|
---|
724 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
725 | srcdir=..
|
---|
726 | fi
|
---|
727 | else
|
---|
728 | ac_srcdir_defaulted=no
|
---|
729 | fi
|
---|
730 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
731 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
733 | { (exit 1); exit 1; }; }
|
---|
734 | else
|
---|
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
736 | { (exit 1); exit 1; }; }
|
---|
737 | fi
|
---|
738 | fi
|
---|
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
741 | { (exit 1); exit 1; }; }
|
---|
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
743 | ac_env_build_alias_set=${build_alias+set}
|
---|
744 | ac_env_build_alias_value=$build_alias
|
---|
745 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
746 | ac_cv_env_build_alias_value=$build_alias
|
---|
747 | ac_env_host_alias_set=${host_alias+set}
|
---|
748 | ac_env_host_alias_value=$host_alias
|
---|
749 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
750 | ac_cv_env_host_alias_value=$host_alias
|
---|
751 | ac_env_target_alias_set=${target_alias+set}
|
---|
752 | ac_env_target_alias_value=$target_alias
|
---|
753 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
754 | ac_cv_env_target_alias_value=$target_alias
|
---|
755 | ac_env_CXX_set=${CXX+set}
|
---|
756 | ac_env_CXX_value=$CXX
|
---|
757 | ac_cv_env_CXX_set=${CXX+set}
|
---|
758 | ac_cv_env_CXX_value=$CXX
|
---|
759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
760 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
763 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
764 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
768 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
771 | ac_env_CC_set=${CC+set}
|
---|
772 | ac_env_CC_value=$CC
|
---|
773 | ac_cv_env_CC_set=${CC+set}
|
---|
774 | ac_cv_env_CC_value=$CC
|
---|
775 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
776 | ac_env_CFLAGS_value=$CFLAGS
|
---|
777 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
778 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
779 | ac_env_CPP_set=${CPP+set}
|
---|
780 | ac_env_CPP_value=$CPP
|
---|
781 | ac_cv_env_CPP_set=${CPP+set}
|
---|
782 | ac_cv_env_CPP_value=$CPP
|
---|
783 |
|
---|
784 | #
|
---|
785 | # Report the --help message.
|
---|
786 | #
|
---|
787 | if test "$ac_init_help" = "long"; then
|
---|
788 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
789 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
790 | cat <<_ACEOF
|
---|
791 | \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
|
---|
792 |
|
---|
793 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
794 |
|
---|
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
796 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
797 |
|
---|
798 | Defaults for the options are specified in brackets.
|
---|
799 |
|
---|
800 | Configuration:
|
---|
801 | -h, --help display this help and exit
|
---|
802 | --help=short display options specific to this package
|
---|
803 | --help=recursive display the short help of all the included packages
|
---|
804 | -V, --version display version information and exit
|
---|
805 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
806 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
807 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
808 | -n, --no-create do not create output files
|
---|
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
810 |
|
---|
811 | _ACEOF
|
---|
812 |
|
---|
813 | cat <<_ACEOF
|
---|
814 | Installation directories:
|
---|
815 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
816 | [$ac_default_prefix]
|
---|
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
818 | [PREFIX]
|
---|
819 |
|
---|
820 | By default, \`make install' will install all the files in
|
---|
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
823 | for instance \`--prefix=\$HOME'.
|
---|
824 |
|
---|
825 | For better control, use the options below.
|
---|
826 |
|
---|
827 | Fine tuning of the installation directories:
|
---|
828 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
829 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
830 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
835 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
836 | --includedir=DIR C header files [PREFIX/include]
|
---|
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
838 | --infodir=DIR info documentation [PREFIX/info]
|
---|
839 | --mandir=DIR man documentation [PREFIX/man]
|
---|
840 | _ACEOF
|
---|
841 |
|
---|
842 | cat <<\_ACEOF
|
---|
843 | _ACEOF
|
---|
844 | fi
|
---|
845 |
|
---|
846 | if test -n "$ac_init_help"; then
|
---|
847 | case $ac_init_help in
|
---|
848 | short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
|
---|
849 | esac
|
---|
850 | cat <<\_ACEOF
|
---|
851 |
|
---|
852 | Some influential environment variables:
|
---|
853 | CXX C++ compiler command
|
---|
854 | CXXFLAGS C++ compiler flags
|
---|
855 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
856 | nonstandard directory <lib dir>
|
---|
857 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
858 | headers in a nonstandard directory <include dir>
|
---|
859 | CC C compiler command
|
---|
860 | CFLAGS C compiler flags
|
---|
861 | CPP C preprocessor
|
---|
862 |
|
---|
863 | Use these variables to override the choices made by `configure' or to help
|
---|
864 | it to find libraries and programs with nonstandard names/locations.
|
---|
865 |
|
---|
866 | Report bugs to <BUG-REPORT-ADDRESS>.
|
---|
867 | _ACEOF
|
---|
868 | fi
|
---|
869 |
|
---|
870 | if test "$ac_init_help" = "recursive"; then
|
---|
871 | # If there are subdirs, report their specific --help.
|
---|
872 | ac_popdir=`pwd`
|
---|
873 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
874 | test -d $ac_dir || continue
|
---|
875 | ac_builddir=.
|
---|
876 |
|
---|
877 | if test "$ac_dir" != .; then
|
---|
878 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
879 | # A "../" for each directory in $ac_dir_suffix.
|
---|
880 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
881 | else
|
---|
882 | ac_dir_suffix= ac_top_builddir=
|
---|
883 | fi
|
---|
884 |
|
---|
885 | case $srcdir in
|
---|
886 | .) # No --srcdir option. We are building in place.
|
---|
887 | ac_srcdir=.
|
---|
888 | if test -z "$ac_top_builddir"; then
|
---|
889 | ac_top_srcdir=.
|
---|
890 | else
|
---|
891 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
892 | fi ;;
|
---|
893 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
894 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
895 | ac_top_srcdir=$srcdir ;;
|
---|
896 | *) # Relative path.
|
---|
897 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
898 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
899 | esac
|
---|
900 |
|
---|
901 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
902 | # the directories may not exist.
|
---|
903 | case `pwd` in
|
---|
904 | .) ac_abs_builddir="$ac_dir";;
|
---|
905 | *)
|
---|
906 | case "$ac_dir" in
|
---|
907 | .) ac_abs_builddir=`pwd`;;
|
---|
908 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
909 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
910 | esac;;
|
---|
911 | esac
|
---|
912 | case $ac_abs_builddir in
|
---|
913 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
914 | *)
|
---|
915 | case ${ac_top_builddir}. in
|
---|
916 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
917 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
918 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
919 | esac;;
|
---|
920 | esac
|
---|
921 | case $ac_abs_builddir in
|
---|
922 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
923 | *)
|
---|
924 | case $ac_srcdir in
|
---|
925 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
926 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
927 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
928 | esac;;
|
---|
929 | esac
|
---|
930 | case $ac_abs_builddir in
|
---|
931 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
932 | *)
|
---|
933 | case $ac_top_srcdir in
|
---|
934 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
935 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
936 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
937 | esac;;
|
---|
938 | esac
|
---|
939 |
|
---|
940 | cd $ac_dir
|
---|
941 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
942 | if test -f $ac_srcdir/configure.gnu; then
|
---|
943 | echo
|
---|
944 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
945 | elif test -f $ac_srcdir/configure; then
|
---|
946 | echo
|
---|
947 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
948 | elif test -f $ac_srcdir/configure.ac ||
|
---|
949 | test -f $ac_srcdir/configure.in; then
|
---|
950 | echo
|
---|
951 | $ac_configure --help
|
---|
952 | else
|
---|
953 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
954 | fi
|
---|
955 | cd $ac_popdir
|
---|
956 | done
|
---|
957 | fi
|
---|
958 |
|
---|
959 | test -n "$ac_init_help" && exit 0
|
---|
960 | if $ac_init_version; then
|
---|
961 | cat <<\_ACEOF
|
---|
962 | FULL-PACKAGE-NAME configure VERSION
|
---|
963 | generated by GNU Autoconf 2.59
|
---|
964 |
|
---|
965 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
966 | This configure script is free software; the Free Software Foundation
|
---|
967 | gives unlimited permission to copy, distribute and modify it.
|
---|
968 | _ACEOF
|
---|
969 | exit 0
|
---|
970 | fi
|
---|
971 | exec 5>config.log
|
---|
972 | cat >&5 <<_ACEOF
|
---|
973 | This file contains any messages produced by compilers while
|
---|
974 | running configure, to aid debugging if configure makes a mistake.
|
---|
975 |
|
---|
976 | It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
|
---|
977 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
978 |
|
---|
979 | $ $0 $@
|
---|
980 |
|
---|
981 | _ACEOF
|
---|
982 | {
|
---|
983 | cat <<_ASUNAME
|
---|
984 | ## --------- ##
|
---|
985 | ## Platform. ##
|
---|
986 | ## --------- ##
|
---|
987 |
|
---|
988 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
989 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
990 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
991 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
992 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
993 |
|
---|
994 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
995 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
996 |
|
---|
997 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
998 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
999 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1000 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1001 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1002 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1003 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1004 |
|
---|
1005 | _ASUNAME
|
---|
1006 |
|
---|
1007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1008 | for as_dir in $PATH
|
---|
1009 | do
|
---|
1010 | IFS=$as_save_IFS
|
---|
1011 | test -z "$as_dir" && as_dir=.
|
---|
1012 | echo "PATH: $as_dir"
|
---|
1013 | done
|
---|
1014 |
|
---|
1015 | } >&5
|
---|
1016 |
|
---|
1017 | cat >&5 <<_ACEOF
|
---|
1018 |
|
---|
1019 |
|
---|
1020 | ## ----------- ##
|
---|
1021 | ## Core tests. ##
|
---|
1022 | ## ----------- ##
|
---|
1023 |
|
---|
1024 | _ACEOF
|
---|
1025 |
|
---|
1026 |
|
---|
1027 | # Keep a trace of the command line.
|
---|
1028 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1029 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1030 | # Also quote any args containing shell meta-characters.
|
---|
1031 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1032 | ac_configure_args=
|
---|
1033 | ac_configure_args0=
|
---|
1034 | ac_configure_args1=
|
---|
1035 | ac_sep=
|
---|
1036 | ac_must_keep_next=false
|
---|
1037 | for ac_pass in 1 2
|
---|
1038 | do
|
---|
1039 | for ac_arg
|
---|
1040 | do
|
---|
1041 | case $ac_arg in
|
---|
1042 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1043 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1044 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1045 | continue ;;
|
---|
1046 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1047 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1048 | esac
|
---|
1049 | case $ac_pass in
|
---|
1050 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1051 | 2)
|
---|
1052 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1053 | if test $ac_must_keep_next = true; then
|
---|
1054 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1055 | else
|
---|
1056 | case $ac_arg in
|
---|
1057 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1058 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1059 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1060 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1061 | case "$ac_configure_args0 " in
|
---|
1062 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1063 | esac
|
---|
1064 | ;;
|
---|
1065 | -* ) ac_must_keep_next=true ;;
|
---|
1066 | esac
|
---|
1067 | fi
|
---|
1068 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1069 | # Get rid of the leading space.
|
---|
1070 | ac_sep=" "
|
---|
1071 | ;;
|
---|
1072 | esac
|
---|
1073 | done
|
---|
1074 | done
|
---|
1075 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1076 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1077 |
|
---|
1078 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1079 | # config.log. We remove comments because anyway the quotes in there
|
---|
1080 | # would cause problems or look ugly.
|
---|
1081 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1082 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1083 | trap 'exit_status=$?
|
---|
1084 | # Save into config.log some information that might help in debugging.
|
---|
1085 | {
|
---|
1086 | echo
|
---|
1087 |
|
---|
1088 | cat <<\_ASBOX
|
---|
1089 | ## ---------------- ##
|
---|
1090 | ## Cache variables. ##
|
---|
1091 | ## ---------------- ##
|
---|
1092 | _ASBOX
|
---|
1093 | echo
|
---|
1094 | # The following way of writing the cache mishandles newlines in values,
|
---|
1095 | {
|
---|
1096 | (set) 2>&1 |
|
---|
1097 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1098 | *ac_space=\ *)
|
---|
1099 | sed -n \
|
---|
1100 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1101 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1102 | ;;
|
---|
1103 | *)
|
---|
1104 | sed -n \
|
---|
1105 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1106 | ;;
|
---|
1107 | esac;
|
---|
1108 | }
|
---|
1109 | echo
|
---|
1110 |
|
---|
1111 | cat <<\_ASBOX
|
---|
1112 | ## ----------------- ##
|
---|
1113 | ## Output variables. ##
|
---|
1114 | ## ----------------- ##
|
---|
1115 | _ASBOX
|
---|
1116 | echo
|
---|
1117 | for ac_var in $ac_subst_vars
|
---|
1118 | do
|
---|
1119 | eval ac_val=$`echo $ac_var`
|
---|
1120 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1121 | done | sort
|
---|
1122 | echo
|
---|
1123 |
|
---|
1124 | if test -n "$ac_subst_files"; then
|
---|
1125 | cat <<\_ASBOX
|
---|
1126 | ## ------------- ##
|
---|
1127 | ## Output files. ##
|
---|
1128 | ## ------------- ##
|
---|
1129 | _ASBOX
|
---|
1130 | echo
|
---|
1131 | for ac_var in $ac_subst_files
|
---|
1132 | do
|
---|
1133 | eval ac_val=$`echo $ac_var`
|
---|
1134 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1135 | done | sort
|
---|
1136 | echo
|
---|
1137 | fi
|
---|
1138 |
|
---|
1139 | if test -s confdefs.h; then
|
---|
1140 | cat <<\_ASBOX
|
---|
1141 | ## ----------- ##
|
---|
1142 | ## confdefs.h. ##
|
---|
1143 | ## ----------- ##
|
---|
1144 | _ASBOX
|
---|
1145 | echo
|
---|
1146 | sed "/^$/d" confdefs.h | sort
|
---|
1147 | echo
|
---|
1148 | fi
|
---|
1149 | test "$ac_signal" != 0 &&
|
---|
1150 | echo "$as_me: caught signal $ac_signal"
|
---|
1151 | echo "$as_me: exit $exit_status"
|
---|
1152 | } >&5
|
---|
1153 | rm -f core *.core &&
|
---|
1154 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1155 | exit $exit_status
|
---|
1156 | ' 0
|
---|
1157 | for ac_signal in 1 2 13 15; do
|
---|
1158 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1159 | done
|
---|
1160 | ac_signal=0
|
---|
1161 |
|
---|
1162 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1163 | rm -rf conftest* confdefs.h
|
---|
1164 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1165 | echo >confdefs.h
|
---|
1166 |
|
---|
1167 | # Predefined preprocessor variables.
|
---|
1168 |
|
---|
1169 | cat >>confdefs.h <<_ACEOF
|
---|
1170 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1171 | _ACEOF
|
---|
1172 |
|
---|
1173 |
|
---|
1174 | cat >>confdefs.h <<_ACEOF
|
---|
1175 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1176 | _ACEOF
|
---|
1177 |
|
---|
1178 |
|
---|
1179 | cat >>confdefs.h <<_ACEOF
|
---|
1180 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1181 | _ACEOF
|
---|
1182 |
|
---|
1183 |
|
---|
1184 | cat >>confdefs.h <<_ACEOF
|
---|
1185 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1186 | _ACEOF
|
---|
1187 |
|
---|
1188 |
|
---|
1189 | cat >>confdefs.h <<_ACEOF
|
---|
1190 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1191 | _ACEOF
|
---|
1192 |
|
---|
1193 |
|
---|
1194 | # Let the site file select an alternate cache file if it wants to.
|
---|
1195 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1196 | if test -z "$CONFIG_SITE"; then
|
---|
1197 | if test "x$prefix" != xNONE; then
|
---|
1198 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1199 | else
|
---|
1200 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1201 | fi
|
---|
1202 | fi
|
---|
1203 | for ac_site_file in $CONFIG_SITE; do
|
---|
1204 | if test -r "$ac_site_file"; then
|
---|
1205 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1206 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1207 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1208 | . "$ac_site_file"
|
---|
1209 | fi
|
---|
1210 | done
|
---|
1211 |
|
---|
1212 | if test -r "$cache_file"; then
|
---|
1213 | # Some versions of bash will fail to source /dev/null (special
|
---|
1214 | # files actually), so we avoid doing that.
|
---|
1215 | if test -f "$cache_file"; then
|
---|
1216 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1217 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1218 | case $cache_file in
|
---|
1219 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1220 | *) . ./$cache_file;;
|
---|
1221 | esac
|
---|
1222 | fi
|
---|
1223 | else
|
---|
1224 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1225 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1226 | >$cache_file
|
---|
1227 | fi
|
---|
1228 |
|
---|
1229 | # Check that the precious variables saved in the cache have kept the same
|
---|
1230 | # value.
|
---|
1231 | ac_cache_corrupted=false
|
---|
1232 | for ac_var in `(set) 2>&1 |
|
---|
1233 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1234 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1235 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1236 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1237 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1238 | case $ac_old_set,$ac_new_set in
|
---|
1239 | set,)
|
---|
1240 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1241 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1242 | ac_cache_corrupted=: ;;
|
---|
1243 | ,set)
|
---|
1244 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1245 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1246 | ac_cache_corrupted=: ;;
|
---|
1247 | ,);;
|
---|
1248 | *)
|
---|
1249 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1250 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1251 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1252 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1253 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1254 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1255 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1256 | ac_cache_corrupted=:
|
---|
1257 | fi;;
|
---|
1258 | esac
|
---|
1259 | # Pass precious variables to config.status.
|
---|
1260 | if test "$ac_new_set" = set; then
|
---|
1261 | case $ac_new_val in
|
---|
1262 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1263 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1264 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1265 | esac
|
---|
1266 | case " $ac_configure_args " in
|
---|
1267 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1268 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1269 | esac
|
---|
1270 | fi
|
---|
1271 | done
|
---|
1272 | if $ac_cache_corrupted; then
|
---|
1273 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1274 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1275 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1276 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1277 | { (exit 1); exit 1; }; }
|
---|
1278 | fi
|
---|
1279 |
|
---|
1280 | ac_ext=c
|
---|
1281 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1285 |
|
---|
1286 |
|
---|
1287 |
|
---|
1288 |
|
---|
1289 |
|
---|
1290 |
|
---|
1291 |
|
---|
1292 |
|
---|
1293 |
|
---|
1294 |
|
---|
1295 |
|
---|
1296 |
|
---|
1297 |
|
---|
1298 |
|
---|
1299 |
|
---|
1300 |
|
---|
1301 |
|
---|
1302 |
|
---|
1303 |
|
---|
1304 |
|
---|
1305 |
|
---|
1306 |
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 | ac_config_headers="$ac_config_headers config.h"
|
---|
1314 |
|
---|
1315 |
|
---|
1316 | # Checks for programs.
|
---|
1317 | ac_ext=cc
|
---|
1318 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
1319 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1320 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1321 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
1322 | if test -n "$ac_tool_prefix"; then
|
---|
1323 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
1324 | do
|
---|
1325 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1326 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1327 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1329 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
1330 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1331 | else
|
---|
1332 | if test -n "$CXX"; then
|
---|
1333 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1334 | else
|
---|
1335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1336 | for as_dir in $PATH
|
---|
1337 | do
|
---|
1338 | IFS=$as_save_IFS
|
---|
1339 | test -z "$as_dir" && as_dir=.
|
---|
1340 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1342 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
1343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1344 | break 2
|
---|
1345 | fi
|
---|
1346 | done
|
---|
1347 | done
|
---|
1348 |
|
---|
1349 | fi
|
---|
1350 | fi
|
---|
1351 | CXX=$ac_cv_prog_CXX
|
---|
1352 | if test -n "$CXX"; then
|
---|
1353 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
1354 | echo "${ECHO_T}$CXX" >&6
|
---|
1355 | else
|
---|
1356 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1357 | echo "${ECHO_T}no" >&6
|
---|
1358 | fi
|
---|
1359 |
|
---|
1360 | test -n "$CXX" && break
|
---|
1361 | done
|
---|
1362 | fi
|
---|
1363 | if test -z "$CXX"; then
|
---|
1364 | ac_ct_CXX=$CXX
|
---|
1365 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
1366 | do
|
---|
1367 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1368 | set dummy $ac_prog; ac_word=$2
|
---|
1369 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1371 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
1372 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1373 | else
|
---|
1374 | if test -n "$ac_ct_CXX"; then
|
---|
1375 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
1376 | else
|
---|
1377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1378 | for as_dir in $PATH
|
---|
1379 | do
|
---|
1380 | IFS=$as_save_IFS
|
---|
1381 | test -z "$as_dir" && as_dir=.
|
---|
1382 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1384 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
1385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1386 | break 2
|
---|
1387 | fi
|
---|
1388 | done
|
---|
1389 | done
|
---|
1390 |
|
---|
1391 | fi
|
---|
1392 | fi
|
---|
1393 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
1394 | if test -n "$ac_ct_CXX"; then
|
---|
1395 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
1396 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
1397 | else
|
---|
1398 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1399 | echo "${ECHO_T}no" >&6
|
---|
1400 | fi
|
---|
1401 |
|
---|
1402 | test -n "$ac_ct_CXX" && break
|
---|
1403 | done
|
---|
1404 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
1405 |
|
---|
1406 | CXX=$ac_ct_CXX
|
---|
1407 | fi
|
---|
1408 |
|
---|
1409 |
|
---|
1410 | # Provide some information about the compiler.
|
---|
1411 | echo "$as_me:$LINENO:" \
|
---|
1412 | "checking for C++ compiler version" >&5
|
---|
1413 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1414 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1415 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1416 | ac_status=$?
|
---|
1417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1418 | (exit $ac_status); }
|
---|
1419 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1420 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1421 | ac_status=$?
|
---|
1422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1423 | (exit $ac_status); }
|
---|
1424 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1425 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1426 | ac_status=$?
|
---|
1427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1428 | (exit $ac_status); }
|
---|
1429 |
|
---|
1430 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1431 | /* confdefs.h. */
|
---|
1432 | _ACEOF
|
---|
1433 | cat confdefs.h >>conftest.$ac_ext
|
---|
1434 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1435 | /* end confdefs.h. */
|
---|
1436 |
|
---|
1437 | int
|
---|
1438 | main ()
|
---|
1439 | {
|
---|
1440 |
|
---|
1441 | ;
|
---|
1442 | return 0;
|
---|
1443 | }
|
---|
1444 | _ACEOF
|
---|
1445 | ac_clean_files_save=$ac_clean_files
|
---|
1446 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1447 | # Try to create an executable without -o first, disregard a.out.
|
---|
1448 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1449 | # of exeext.
|
---|
1450 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
1451 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
|
---|
1452 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1453 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1454 | (eval $ac_link_default) 2>&5
|
---|
1455 | ac_status=$?
|
---|
1456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1457 | (exit $ac_status); }; then
|
---|
1458 | # Find the output, starting from the most likely. This scheme is
|
---|
1459 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1460 | # resort.
|
---|
1461 |
|
---|
1462 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1463 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1464 | ac_cv_exeext=
|
---|
1465 | # b.out is created by i960 compilers.
|
---|
1466 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1467 | do
|
---|
1468 | test -f "$ac_file" || continue
|
---|
1469 | case $ac_file in
|
---|
1470 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1471 | ;;
|
---|
1472 | conftest.$ac_ext )
|
---|
1473 | # This is the source file.
|
---|
1474 | ;;
|
---|
1475 | [ab].out )
|
---|
1476 | # We found the default executable, but exeext='' is most
|
---|
1477 | # certainly right.
|
---|
1478 | break;;
|
---|
1479 | *.* )
|
---|
1480 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1481 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1482 | # but it would be cool to find out if it's true. Does anybody
|
---|
1483 | # maintain Libtool? --akim.
|
---|
1484 | export ac_cv_exeext
|
---|
1485 | break;;
|
---|
1486 | * )
|
---|
1487 | break;;
|
---|
1488 | esac
|
---|
1489 | done
|
---|
1490 | else
|
---|
1491 | echo "$as_me: failed program was:" >&5
|
---|
1492 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1493 |
|
---|
1494 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
1495 | See \`config.log' for more details." >&5
|
---|
1496 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
1497 | See \`config.log' for more details." >&2;}
|
---|
1498 | { (exit 77); exit 77; }; }
|
---|
1499 | fi
|
---|
1500 |
|
---|
1501 | ac_exeext=$ac_cv_exeext
|
---|
1502 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1503 | echo "${ECHO_T}$ac_file" >&6
|
---|
1504 |
|
---|
1505 | # Check the compiler produces executables we can run. If not, either
|
---|
1506 | # the compiler is broken, or we cross compile.
|
---|
1507 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
1508 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
|
---|
1509 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1510 | # If not cross compiling, check that we can run a simple program.
|
---|
1511 | if test "$cross_compiling" != yes; then
|
---|
1512 | if { ac_try='./$ac_file'
|
---|
1513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1514 | (eval $ac_try) 2>&5
|
---|
1515 | ac_status=$?
|
---|
1516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1517 | (exit $ac_status); }; }; then
|
---|
1518 | cross_compiling=no
|
---|
1519 | else
|
---|
1520 | if test "$cross_compiling" = maybe; then
|
---|
1521 | cross_compiling=yes
|
---|
1522 | else
|
---|
1523 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
1524 | If you meant to cross compile, use \`--host'.
|
---|
1525 | See \`config.log' for more details." >&5
|
---|
1526 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
1527 | If you meant to cross compile, use \`--host'.
|
---|
1528 | See \`config.log' for more details." >&2;}
|
---|
1529 | { (exit 1); exit 1; }; }
|
---|
1530 | fi
|
---|
1531 | fi
|
---|
1532 | fi
|
---|
1533 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1534 | echo "${ECHO_T}yes" >&6
|
---|
1535 |
|
---|
1536 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1537 | ac_clean_files=$ac_clean_files_save
|
---|
1538 | # Check the compiler produces executables we can run. If not, either
|
---|
1539 | # the compiler is broken, or we cross compile.
|
---|
1540 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1541 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1542 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
1543 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1544 |
|
---|
1545 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
1546 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
1547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
1548 | (eval $ac_link) 2>&5
|
---|
1549 | ac_status=$?
|
---|
1550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1551 | (exit $ac_status); }; then
|
---|
1552 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1553 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1554 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1555 | # `rm'.
|
---|
1556 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
1557 | test -f "$ac_file" || continue
|
---|
1558 | case $ac_file in
|
---|
1559 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
1560 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1561 | export ac_cv_exeext
|
---|
1562 | break;;
|
---|
1563 | * ) break;;
|
---|
1564 | esac
|
---|
1565 | done
|
---|
1566 | else
|
---|
1567 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
1568 | See \`config.log' for more details." >&5
|
---|
1569 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
1570 | See \`config.log' for more details." >&2;}
|
---|
1571 | { (exit 1); exit 1; }; }
|
---|
1572 | fi
|
---|
1573 |
|
---|
1574 | rm -f conftest$ac_cv_exeext
|
---|
1575 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
1576 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1577 |
|
---|
1578 | rm -f conftest.$ac_ext
|
---|
1579 | EXEEXT=$ac_cv_exeext
|
---|
1580 | ac_exeext=$EXEEXT
|
---|
1581 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
1582 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
1583 | if test "${ac_cv_objext+set}" = set; then
|
---|
1584 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1585 | else
|
---|
1586 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1587 | /* confdefs.h. */
|
---|
1588 | _ACEOF
|
---|
1589 | cat confdefs.h >>conftest.$ac_ext
|
---|
1590 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1591 | /* end confdefs.h. */
|
---|
1592 |
|
---|
1593 | int
|
---|
1594 | main ()
|
---|
1595 | {
|
---|
1596 |
|
---|
1597 | ;
|
---|
1598 | return 0;
|
---|
1599 | }
|
---|
1600 | _ACEOF
|
---|
1601 | rm -f conftest.o conftest.obj
|
---|
1602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1603 | (eval $ac_compile) 2>&5
|
---|
1604 | ac_status=$?
|
---|
1605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1606 | (exit $ac_status); }; then
|
---|
1607 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1608 | case $ac_file in
|
---|
1609 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
1610 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1611 | break;;
|
---|
1612 | esac
|
---|
1613 | done
|
---|
1614 | else
|
---|
1615 | echo "$as_me: failed program was:" >&5
|
---|
1616 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1617 |
|
---|
1618 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
1619 | See \`config.log' for more details." >&5
|
---|
1620 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
1621 | See \`config.log' for more details." >&2;}
|
---|
1622 | { (exit 1); exit 1; }; }
|
---|
1623 | fi
|
---|
1624 |
|
---|
1625 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1626 | fi
|
---|
1627 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
1628 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1629 | OBJEXT=$ac_cv_objext
|
---|
1630 | ac_objext=$OBJEXT
|
---|
1631 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
1632 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
1633 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
1634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1635 | else
|
---|
1636 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1637 | /* confdefs.h. */
|
---|
1638 | _ACEOF
|
---|
1639 | cat confdefs.h >>conftest.$ac_ext
|
---|
1640 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1641 | /* end confdefs.h. */
|
---|
1642 |
|
---|
1643 | int
|
---|
1644 | main ()
|
---|
1645 | {
|
---|
1646 | #ifndef __GNUC__
|
---|
1647 | choke me
|
---|
1648 | #endif
|
---|
1649 |
|
---|
1650 | ;
|
---|
1651 | return 0;
|
---|
1652 | }
|
---|
1653 | _ACEOF
|
---|
1654 | rm -f conftest.$ac_objext
|
---|
1655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1656 | (eval $ac_compile) 2>conftest.er1
|
---|
1657 | ac_status=$?
|
---|
1658 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1659 | rm -f conftest.er1
|
---|
1660 | cat conftest.err >&5
|
---|
1661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1662 | (exit $ac_status); } &&
|
---|
1663 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
1664 | || test ! -s conftest.err'
|
---|
1665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1666 | (eval $ac_try) 2>&5
|
---|
1667 | ac_status=$?
|
---|
1668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1669 | (exit $ac_status); }; } &&
|
---|
1670 | { ac_try='test -s conftest.$ac_objext'
|
---|
1671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1672 | (eval $ac_try) 2>&5
|
---|
1673 | ac_status=$?
|
---|
1674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1675 | (exit $ac_status); }; }; then
|
---|
1676 | ac_compiler_gnu=yes
|
---|
1677 | else
|
---|
1678 | echo "$as_me: failed program was:" >&5
|
---|
1679 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1680 |
|
---|
1681 | ac_compiler_gnu=no
|
---|
1682 | fi
|
---|
1683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1684 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
1685 |
|
---|
1686 | fi
|
---|
1687 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
1688 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
1689 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
1690 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
1691 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
1692 | CXXFLAGS="-g"
|
---|
1693 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
1694 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
1695 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
1696 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1697 | else
|
---|
1698 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1699 | /* confdefs.h. */
|
---|
1700 | _ACEOF
|
---|
1701 | cat confdefs.h >>conftest.$ac_ext
|
---|
1702 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1703 | /* end confdefs.h. */
|
---|
1704 |
|
---|
1705 | int
|
---|
1706 | main ()
|
---|
1707 | {
|
---|
1708 |
|
---|
1709 | ;
|
---|
1710 | return 0;
|
---|
1711 | }
|
---|
1712 | _ACEOF
|
---|
1713 | rm -f conftest.$ac_objext
|
---|
1714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1715 | (eval $ac_compile) 2>conftest.er1
|
---|
1716 | ac_status=$?
|
---|
1717 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1718 | rm -f conftest.er1
|
---|
1719 | cat conftest.err >&5
|
---|
1720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1721 | (exit $ac_status); } &&
|
---|
1722 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
1723 | || test ! -s conftest.err'
|
---|
1724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1725 | (eval $ac_try) 2>&5
|
---|
1726 | ac_status=$?
|
---|
1727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1728 | (exit $ac_status); }; } &&
|
---|
1729 | { ac_try='test -s conftest.$ac_objext'
|
---|
1730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1731 | (eval $ac_try) 2>&5
|
---|
1732 | ac_status=$?
|
---|
1733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1734 | (exit $ac_status); }; }; then
|
---|
1735 | ac_cv_prog_cxx_g=yes
|
---|
1736 | else
|
---|
1737 | echo "$as_me: failed program was:" >&5
|
---|
1738 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1739 |
|
---|
1740 | ac_cv_prog_cxx_g=no
|
---|
1741 | fi
|
---|
1742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1743 | fi
|
---|
1744 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
1745 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
1746 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
1747 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
1748 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
1749 | if test "$GXX" = yes; then
|
---|
1750 | CXXFLAGS="-g -O2"
|
---|
1751 | else
|
---|
1752 | CXXFLAGS="-g"
|
---|
1753 | fi
|
---|
1754 | else
|
---|
1755 | if test "$GXX" = yes; then
|
---|
1756 | CXXFLAGS="-O2"
|
---|
1757 | else
|
---|
1758 | CXXFLAGS=
|
---|
1759 | fi
|
---|
1760 | fi
|
---|
1761 | for ac_declaration in \
|
---|
1762 | '' \
|
---|
1763 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
1764 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
1765 | 'extern "C" void exit (int) throw ();' \
|
---|
1766 | 'extern "C" void exit (int);' \
|
---|
1767 | 'void exit (int);'
|
---|
1768 | do
|
---|
1769 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1770 | /* confdefs.h. */
|
---|
1771 | _ACEOF
|
---|
1772 | cat confdefs.h >>conftest.$ac_ext
|
---|
1773 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1774 | /* end confdefs.h. */
|
---|
1775 | $ac_declaration
|
---|
1776 | #include <stdlib.h>
|
---|
1777 | int
|
---|
1778 | main ()
|
---|
1779 | {
|
---|
1780 | exit (42);
|
---|
1781 | ;
|
---|
1782 | return 0;
|
---|
1783 | }
|
---|
1784 | _ACEOF
|
---|
1785 | rm -f conftest.$ac_objext
|
---|
1786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1787 | (eval $ac_compile) 2>conftest.er1
|
---|
1788 | ac_status=$?
|
---|
1789 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1790 | rm -f conftest.er1
|
---|
1791 | cat conftest.err >&5
|
---|
1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1793 | (exit $ac_status); } &&
|
---|
1794 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
1795 | || test ! -s conftest.err'
|
---|
1796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1797 | (eval $ac_try) 2>&5
|
---|
1798 | ac_status=$?
|
---|
1799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1800 | (exit $ac_status); }; } &&
|
---|
1801 | { ac_try='test -s conftest.$ac_objext'
|
---|
1802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1803 | (eval $ac_try) 2>&5
|
---|
1804 | ac_status=$?
|
---|
1805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1806 | (exit $ac_status); }; }; then
|
---|
1807 | :
|
---|
1808 | else
|
---|
1809 | echo "$as_me: failed program was:" >&5
|
---|
1810 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1811 |
|
---|
1812 | continue
|
---|
1813 | fi
|
---|
1814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1815 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1816 | /* confdefs.h. */
|
---|
1817 | _ACEOF
|
---|
1818 | cat confdefs.h >>conftest.$ac_ext
|
---|
1819 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1820 | /* end confdefs.h. */
|
---|
1821 | $ac_declaration
|
---|
1822 | int
|
---|
1823 | main ()
|
---|
1824 | {
|
---|
1825 | exit (42);
|
---|
1826 | ;
|
---|
1827 | return 0;
|
---|
1828 | }
|
---|
1829 | _ACEOF
|
---|
1830 | rm -f conftest.$ac_objext
|
---|
1831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1832 | (eval $ac_compile) 2>conftest.er1
|
---|
1833 | ac_status=$?
|
---|
1834 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1835 | rm -f conftest.er1
|
---|
1836 | cat conftest.err >&5
|
---|
1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1838 | (exit $ac_status); } &&
|
---|
1839 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
1840 | || test ! -s conftest.err'
|
---|
1841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1842 | (eval $ac_try) 2>&5
|
---|
1843 | ac_status=$?
|
---|
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1845 | (exit $ac_status); }; } &&
|
---|
1846 | { ac_try='test -s conftest.$ac_objext'
|
---|
1847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1848 | (eval $ac_try) 2>&5
|
---|
1849 | ac_status=$?
|
---|
1850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1851 | (exit $ac_status); }; }; then
|
---|
1852 | break
|
---|
1853 | else
|
---|
1854 | echo "$as_me: failed program was:" >&5
|
---|
1855 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1856 |
|
---|
1857 | fi
|
---|
1858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1859 | done
|
---|
1860 | rm -f conftest*
|
---|
1861 | if test -n "$ac_declaration"; then
|
---|
1862 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
1863 | echo $ac_declaration >>confdefs.h
|
---|
1864 | echo '#endif' >>confdefs.h
|
---|
1865 | fi
|
---|
1866 |
|
---|
1867 | ac_ext=c
|
---|
1868 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1872 |
|
---|
1873 | ac_ext=c
|
---|
1874 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1878 | if test -n "$ac_tool_prefix"; then
|
---|
1879 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1880 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1881 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1883 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1884 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1885 | else
|
---|
1886 | if test -n "$CC"; then
|
---|
1887 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1888 | else
|
---|
1889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1890 | for as_dir in $PATH
|
---|
1891 | do
|
---|
1892 | IFS=$as_save_IFS
|
---|
1893 | test -z "$as_dir" && as_dir=.
|
---|
1894 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1896 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1898 | break 2
|
---|
1899 | fi
|
---|
1900 | done
|
---|
1901 | done
|
---|
1902 |
|
---|
1903 | fi
|
---|
1904 | fi
|
---|
1905 | CC=$ac_cv_prog_CC
|
---|
1906 | if test -n "$CC"; then
|
---|
1907 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1908 | echo "${ECHO_T}$CC" >&6
|
---|
1909 | else
|
---|
1910 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1911 | echo "${ECHO_T}no" >&6
|
---|
1912 | fi
|
---|
1913 |
|
---|
1914 | fi
|
---|
1915 | if test -z "$ac_cv_prog_CC"; then
|
---|
1916 | ac_ct_CC=$CC
|
---|
1917 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1918 | set dummy gcc; ac_word=$2
|
---|
1919 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1921 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1922 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1923 | else
|
---|
1924 | if test -n "$ac_ct_CC"; then
|
---|
1925 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1926 | else
|
---|
1927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1928 | for as_dir in $PATH
|
---|
1929 | do
|
---|
1930 | IFS=$as_save_IFS
|
---|
1931 | test -z "$as_dir" && as_dir=.
|
---|
1932 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1934 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1936 | break 2
|
---|
1937 | fi
|
---|
1938 | done
|
---|
1939 | done
|
---|
1940 |
|
---|
1941 | fi
|
---|
1942 | fi
|
---|
1943 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1944 | if test -n "$ac_ct_CC"; then
|
---|
1945 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1946 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1947 | else
|
---|
1948 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1949 | echo "${ECHO_T}no" >&6
|
---|
1950 | fi
|
---|
1951 |
|
---|
1952 | CC=$ac_ct_CC
|
---|
1953 | else
|
---|
1954 | CC="$ac_cv_prog_CC"
|
---|
1955 | fi
|
---|
1956 |
|
---|
1957 | if test -z "$CC"; then
|
---|
1958 | if test -n "$ac_tool_prefix"; then
|
---|
1959 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1960 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1961 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1963 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1964 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1965 | else
|
---|
1966 | if test -n "$CC"; then
|
---|
1967 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1968 | else
|
---|
1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1970 | for as_dir in $PATH
|
---|
1971 | do
|
---|
1972 | IFS=$as_save_IFS
|
---|
1973 | test -z "$as_dir" && as_dir=.
|
---|
1974 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1976 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1978 | break 2
|
---|
1979 | fi
|
---|
1980 | done
|
---|
1981 | done
|
---|
1982 |
|
---|
1983 | fi
|
---|
1984 | fi
|
---|
1985 | CC=$ac_cv_prog_CC
|
---|
1986 | if test -n "$CC"; then
|
---|
1987 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1988 | echo "${ECHO_T}$CC" >&6
|
---|
1989 | else
|
---|
1990 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1991 | echo "${ECHO_T}no" >&6
|
---|
1992 | fi
|
---|
1993 |
|
---|
1994 | fi
|
---|
1995 | if test -z "$ac_cv_prog_CC"; then
|
---|
1996 | ac_ct_CC=$CC
|
---|
1997 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1998 | set dummy cc; ac_word=$2
|
---|
1999 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2001 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2002 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2003 | else
|
---|
2004 | if test -n "$ac_ct_CC"; then
|
---|
2005 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2006 | else
|
---|
2007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2008 | for as_dir in $PATH
|
---|
2009 | do
|
---|
2010 | IFS=$as_save_IFS
|
---|
2011 | test -z "$as_dir" && as_dir=.
|
---|
2012 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2014 | ac_cv_prog_ac_ct_CC="cc"
|
---|
2015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2016 | break 2
|
---|
2017 | fi
|
---|
2018 | done
|
---|
2019 | done
|
---|
2020 |
|
---|
2021 | fi
|
---|
2022 | fi
|
---|
2023 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2024 | if test -n "$ac_ct_CC"; then
|
---|
2025 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2026 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
2027 | else
|
---|
2028 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2029 | echo "${ECHO_T}no" >&6
|
---|
2030 | fi
|
---|
2031 |
|
---|
2032 | CC=$ac_ct_CC
|
---|
2033 | else
|
---|
2034 | CC="$ac_cv_prog_CC"
|
---|
2035 | fi
|
---|
2036 |
|
---|
2037 | fi
|
---|
2038 | if test -z "$CC"; then
|
---|
2039 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2040 | set dummy cc; ac_word=$2
|
---|
2041 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2043 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2044 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2045 | else
|
---|
2046 | if test -n "$CC"; then
|
---|
2047 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2048 | else
|
---|
2049 | ac_prog_rejected=no
|
---|
2050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2051 | for as_dir in $PATH
|
---|
2052 | do
|
---|
2053 | IFS=$as_save_IFS
|
---|
2054 | test -z "$as_dir" && as_dir=.
|
---|
2055 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2056 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2057 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2058 | ac_prog_rejected=yes
|
---|
2059 | continue
|
---|
2060 | fi
|
---|
2061 | ac_cv_prog_CC="cc"
|
---|
2062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2063 | break 2
|
---|
2064 | fi
|
---|
2065 | done
|
---|
2066 | done
|
---|
2067 |
|
---|
2068 | if test $ac_prog_rejected = yes; then
|
---|
2069 | # We found a bogon in the path, so make sure we never use it.
|
---|
2070 | set dummy $ac_cv_prog_CC
|
---|
2071 | shift
|
---|
2072 | if test $# != 0; then
|
---|
2073 | # We chose a different compiler from the bogus one.
|
---|
2074 | # However, it has the same basename, so the bogon will be chosen
|
---|
2075 | # first if we set CC to just the basename; use the full file name.
|
---|
2076 | shift
|
---|
2077 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2078 | fi
|
---|
2079 | fi
|
---|
2080 | fi
|
---|
2081 | fi
|
---|
2082 | CC=$ac_cv_prog_CC
|
---|
2083 | if test -n "$CC"; then
|
---|
2084 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2085 | echo "${ECHO_T}$CC" >&6
|
---|
2086 | else
|
---|
2087 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2088 | echo "${ECHO_T}no" >&6
|
---|
2089 | fi
|
---|
2090 |
|
---|
2091 | fi
|
---|
2092 | if test -z "$CC"; then
|
---|
2093 | if test -n "$ac_tool_prefix"; then
|
---|
2094 | for ac_prog in cl
|
---|
2095 | do
|
---|
2096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2098 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2100 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
2101 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2102 | else
|
---|
2103 | if test -n "$CC"; then
|
---|
2104 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2105 | else
|
---|
2106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2107 | for as_dir in $PATH
|
---|
2108 | do
|
---|
2109 | IFS=$as_save_IFS
|
---|
2110 | test -z "$as_dir" && as_dir=.
|
---|
2111 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2113 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2115 | break 2
|
---|
2116 | fi
|
---|
2117 | done
|
---|
2118 | done
|
---|
2119 |
|
---|
2120 | fi
|
---|
2121 | fi
|
---|
2122 | CC=$ac_cv_prog_CC
|
---|
2123 | if test -n "$CC"; then
|
---|
2124 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2125 | echo "${ECHO_T}$CC" >&6
|
---|
2126 | else
|
---|
2127 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2128 | echo "${ECHO_T}no" >&6
|
---|
2129 | fi
|
---|
2130 |
|
---|
2131 | test -n "$CC" && break
|
---|
2132 | done
|
---|
2133 | fi
|
---|
2134 | if test -z "$CC"; then
|
---|
2135 | ac_ct_CC=$CC
|
---|
2136 | for ac_prog in cl
|
---|
2137 | do
|
---|
2138 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2139 | set dummy $ac_prog; ac_word=$2
|
---|
2140 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2142 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2143 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2144 | else
|
---|
2145 | if test -n "$ac_ct_CC"; then
|
---|
2146 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2147 | else
|
---|
2148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2149 | for as_dir in $PATH
|
---|
2150 | do
|
---|
2151 | IFS=$as_save_IFS
|
---|
2152 | test -z "$as_dir" && as_dir=.
|
---|
2153 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2154 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2155 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2157 | break 2
|
---|
2158 | fi
|
---|
2159 | done
|
---|
2160 | done
|
---|
2161 |
|
---|
2162 | fi
|
---|
2163 | fi
|
---|
2164 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2165 | if test -n "$ac_ct_CC"; then
|
---|
2166 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2167 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
2168 | else
|
---|
2169 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2170 | echo "${ECHO_T}no" >&6
|
---|
2171 | fi
|
---|
2172 |
|
---|
2173 | test -n "$ac_ct_CC" && break
|
---|
2174 | done
|
---|
2175 |
|
---|
2176 | CC=$ac_ct_CC
|
---|
2177 | fi
|
---|
2178 |
|
---|
2179 | fi
|
---|
2180 |
|
---|
2181 |
|
---|
2182 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2183 | See \`config.log' for more details." >&5
|
---|
2184 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2185 | See \`config.log' for more details." >&2;}
|
---|
2186 | { (exit 1); exit 1; }; }
|
---|
2187 |
|
---|
2188 | # Provide some information about the compiler.
|
---|
2189 | echo "$as_me:$LINENO:" \
|
---|
2190 | "checking for C compiler version" >&5
|
---|
2191 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2192 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2193 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2194 | ac_status=$?
|
---|
2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2196 | (exit $ac_status); }
|
---|
2197 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2198 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2199 | ac_status=$?
|
---|
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2201 | (exit $ac_status); }
|
---|
2202 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2203 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2204 | ac_status=$?
|
---|
2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2206 | (exit $ac_status); }
|
---|
2207 |
|
---|
2208 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2209 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
2210 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2211 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2212 | else
|
---|
2213 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2214 | /* confdefs.h. */
|
---|
2215 | _ACEOF
|
---|
2216 | cat confdefs.h >>conftest.$ac_ext
|
---|
2217 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2218 | /* end confdefs.h. */
|
---|
2219 |
|
---|
2220 | int
|
---|
2221 | main ()
|
---|
2222 | {
|
---|
2223 | #ifndef __GNUC__
|
---|
2224 | choke me
|
---|
2225 | #endif
|
---|
2226 |
|
---|
2227 | ;
|
---|
2228 | return 0;
|
---|
2229 | }
|
---|
2230 | _ACEOF
|
---|
2231 | rm -f conftest.$ac_objext
|
---|
2232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2233 | (eval $ac_compile) 2>conftest.er1
|
---|
2234 | ac_status=$?
|
---|
2235 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2236 | rm -f conftest.er1
|
---|
2237 | cat conftest.err >&5
|
---|
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2239 | (exit $ac_status); } &&
|
---|
2240 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2241 | || test ! -s conftest.err'
|
---|
2242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2243 | (eval $ac_try) 2>&5
|
---|
2244 | ac_status=$?
|
---|
2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2246 | (exit $ac_status); }; } &&
|
---|
2247 | { ac_try='test -s conftest.$ac_objext'
|
---|
2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2249 | (eval $ac_try) 2>&5
|
---|
2250 | ac_status=$?
|
---|
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2252 | (exit $ac_status); }; }; then
|
---|
2253 | ac_compiler_gnu=yes
|
---|
2254 | else
|
---|
2255 | echo "$as_me: failed program was:" >&5
|
---|
2256 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2257 |
|
---|
2258 | ac_compiler_gnu=no
|
---|
2259 | fi
|
---|
2260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2261 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2262 |
|
---|
2263 | fi
|
---|
2264 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2265 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2266 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2267 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2268 | ac_save_CFLAGS=$CFLAGS
|
---|
2269 | CFLAGS="-g"
|
---|
2270 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2271 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2272 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2273 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2274 | else
|
---|
2275 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2276 | /* confdefs.h. */
|
---|
2277 | _ACEOF
|
---|
2278 | cat confdefs.h >>conftest.$ac_ext
|
---|
2279 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2280 | /* end confdefs.h. */
|
---|
2281 |
|
---|
2282 | int
|
---|
2283 | main ()
|
---|
2284 | {
|
---|
2285 |
|
---|
2286 | ;
|
---|
2287 | return 0;
|
---|
2288 | }
|
---|
2289 | _ACEOF
|
---|
2290 | rm -f conftest.$ac_objext
|
---|
2291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2292 | (eval $ac_compile) 2>conftest.er1
|
---|
2293 | ac_status=$?
|
---|
2294 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2295 | rm -f conftest.er1
|
---|
2296 | cat conftest.err >&5
|
---|
2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2298 | (exit $ac_status); } &&
|
---|
2299 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2300 | || test ! -s conftest.err'
|
---|
2301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2302 | (eval $ac_try) 2>&5
|
---|
2303 | ac_status=$?
|
---|
2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2305 | (exit $ac_status); }; } &&
|
---|
2306 | { ac_try='test -s conftest.$ac_objext'
|
---|
2307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2308 | (eval $ac_try) 2>&5
|
---|
2309 | ac_status=$?
|
---|
2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2311 | (exit $ac_status); }; }; then
|
---|
2312 | ac_cv_prog_cc_g=yes
|
---|
2313 | else
|
---|
2314 | echo "$as_me: failed program was:" >&5
|
---|
2315 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2316 |
|
---|
2317 | ac_cv_prog_cc_g=no
|
---|
2318 | fi
|
---|
2319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2320 | fi
|
---|
2321 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2322 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2323 | if test "$ac_test_CFLAGS" = set; then
|
---|
2324 | CFLAGS=$ac_save_CFLAGS
|
---|
2325 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2326 | if test "$GCC" = yes; then
|
---|
2327 | CFLAGS="-g -O2"
|
---|
2328 | else
|
---|
2329 | CFLAGS="-g"
|
---|
2330 | fi
|
---|
2331 | else
|
---|
2332 | if test "$GCC" = yes; then
|
---|
2333 | CFLAGS="-O2"
|
---|
2334 | else
|
---|
2335 | CFLAGS=
|
---|
2336 | fi
|
---|
2337 | fi
|
---|
2338 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2339 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2340 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2341 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2342 | else
|
---|
2343 | ac_cv_prog_cc_stdc=no
|
---|
2344 | ac_save_CC=$CC
|
---|
2345 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2346 | /* confdefs.h. */
|
---|
2347 | _ACEOF
|
---|
2348 | cat confdefs.h >>conftest.$ac_ext
|
---|
2349 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2350 | /* end confdefs.h. */
|
---|
2351 | #include <stdarg.h>
|
---|
2352 | #include <stdio.h>
|
---|
2353 | #include <sys/types.h>
|
---|
2354 | #include <sys/stat.h>
|
---|
2355 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2356 | struct buf { int x; };
|
---|
2357 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2358 | static char *e (p, i)
|
---|
2359 | char **p;
|
---|
2360 | int i;
|
---|
2361 | {
|
---|
2362 | return p[i];
|
---|
2363 | }
|
---|
2364 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2365 | {
|
---|
2366 | char *s;
|
---|
2367 | va_list v;
|
---|
2368 | va_start (v,p);
|
---|
2369 | s = g (p, va_arg (v,int));
|
---|
2370 | va_end (v);
|
---|
2371 | return s;
|
---|
2372 | }
|
---|
2373 |
|
---|
2374 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2375 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2376 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2377 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2378 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2379 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2380 | that's true only with -std1. */
|
---|
2381 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2382 |
|
---|
2383 | int test (int i, double x);
|
---|
2384 | struct s1 {int (*f) (int a);};
|
---|
2385 | struct s2 {int (*f) (double a);};
|
---|
2386 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2387 | int argc;
|
---|
2388 | char **argv;
|
---|
2389 | int
|
---|
2390 | main ()
|
---|
2391 | {
|
---|
2392 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2393 | ;
|
---|
2394 | return 0;
|
---|
2395 | }
|
---|
2396 | _ACEOF
|
---|
2397 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2398 | # breaks some systems' header files.
|
---|
2399 | # AIX -qlanglvl=ansi
|
---|
2400 | # Ultrix and OSF/1 -std1
|
---|
2401 | # HP-UX 10.20 and later -Ae
|
---|
2402 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2403 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2404 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2405 | do
|
---|
2406 | CC="$ac_save_CC $ac_arg"
|
---|
2407 | rm -f conftest.$ac_objext
|
---|
2408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2409 | (eval $ac_compile) 2>conftest.er1
|
---|
2410 | ac_status=$?
|
---|
2411 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2412 | rm -f conftest.er1
|
---|
2413 | cat conftest.err >&5
|
---|
2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2415 | (exit $ac_status); } &&
|
---|
2416 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2417 | || test ! -s conftest.err'
|
---|
2418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2419 | (eval $ac_try) 2>&5
|
---|
2420 | ac_status=$?
|
---|
2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2422 | (exit $ac_status); }; } &&
|
---|
2423 | { ac_try='test -s conftest.$ac_objext'
|
---|
2424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2425 | (eval $ac_try) 2>&5
|
---|
2426 | ac_status=$?
|
---|
2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2428 | (exit $ac_status); }; }; then
|
---|
2429 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2430 | break
|
---|
2431 | else
|
---|
2432 | echo "$as_me: failed program was:" >&5
|
---|
2433 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2434 |
|
---|
2435 | fi
|
---|
2436 | rm -f conftest.err conftest.$ac_objext
|
---|
2437 | done
|
---|
2438 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2439 | CC=$ac_save_CC
|
---|
2440 |
|
---|
2441 | fi
|
---|
2442 |
|
---|
2443 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2444 | x|xno)
|
---|
2445 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2446 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2447 | *)
|
---|
2448 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2449 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2450 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2451 | esac
|
---|
2452 |
|
---|
2453 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2454 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2455 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2456 | # the declaration of exit, since it's the most demanding environment.
|
---|
2457 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2458 | #ifndef __cplusplus
|
---|
2459 | choke me
|
---|
2460 | #endif
|
---|
2461 | _ACEOF
|
---|
2462 | rm -f conftest.$ac_objext
|
---|
2463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2464 | (eval $ac_compile) 2>conftest.er1
|
---|
2465 | ac_status=$?
|
---|
2466 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2467 | rm -f conftest.er1
|
---|
2468 | cat conftest.err >&5
|
---|
2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2470 | (exit $ac_status); } &&
|
---|
2471 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2472 | || test ! -s conftest.err'
|
---|
2473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2474 | (eval $ac_try) 2>&5
|
---|
2475 | ac_status=$?
|
---|
2476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2477 | (exit $ac_status); }; } &&
|
---|
2478 | { ac_try='test -s conftest.$ac_objext'
|
---|
2479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2480 | (eval $ac_try) 2>&5
|
---|
2481 | ac_status=$?
|
---|
2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2483 | (exit $ac_status); }; }; then
|
---|
2484 | for ac_declaration in \
|
---|
2485 | '' \
|
---|
2486 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2487 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2488 | 'extern "C" void exit (int) throw ();' \
|
---|
2489 | 'extern "C" void exit (int);' \
|
---|
2490 | 'void exit (int);'
|
---|
2491 | do
|
---|
2492 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2493 | /* confdefs.h. */
|
---|
2494 | _ACEOF
|
---|
2495 | cat confdefs.h >>conftest.$ac_ext
|
---|
2496 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2497 | /* end confdefs.h. */
|
---|
2498 | $ac_declaration
|
---|
2499 | #include <stdlib.h>
|
---|
2500 | int
|
---|
2501 | main ()
|
---|
2502 | {
|
---|
2503 | exit (42);
|
---|
2504 | ;
|
---|
2505 | return 0;
|
---|
2506 | }
|
---|
2507 | _ACEOF
|
---|
2508 | rm -f conftest.$ac_objext
|
---|
2509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2510 | (eval $ac_compile) 2>conftest.er1
|
---|
2511 | ac_status=$?
|
---|
2512 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2513 | rm -f conftest.er1
|
---|
2514 | cat conftest.err >&5
|
---|
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2516 | (exit $ac_status); } &&
|
---|
2517 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2518 | || test ! -s conftest.err'
|
---|
2519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2520 | (eval $ac_try) 2>&5
|
---|
2521 | ac_status=$?
|
---|
2522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2523 | (exit $ac_status); }; } &&
|
---|
2524 | { ac_try='test -s conftest.$ac_objext'
|
---|
2525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2526 | (eval $ac_try) 2>&5
|
---|
2527 | ac_status=$?
|
---|
2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2529 | (exit $ac_status); }; }; then
|
---|
2530 | :
|
---|
2531 | else
|
---|
2532 | echo "$as_me: failed program was:" >&5
|
---|
2533 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2534 |
|
---|
2535 | continue
|
---|
2536 | fi
|
---|
2537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2538 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2539 | /* confdefs.h. */
|
---|
2540 | _ACEOF
|
---|
2541 | cat confdefs.h >>conftest.$ac_ext
|
---|
2542 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2543 | /* end confdefs.h. */
|
---|
2544 | $ac_declaration
|
---|
2545 | int
|
---|
2546 | main ()
|
---|
2547 | {
|
---|
2548 | exit (42);
|
---|
2549 | ;
|
---|
2550 | return 0;
|
---|
2551 | }
|
---|
2552 | _ACEOF
|
---|
2553 | rm -f conftest.$ac_objext
|
---|
2554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2555 | (eval $ac_compile) 2>conftest.er1
|
---|
2556 | ac_status=$?
|
---|
2557 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2558 | rm -f conftest.er1
|
---|
2559 | cat conftest.err >&5
|
---|
2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2561 | (exit $ac_status); } &&
|
---|
2562 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2563 | || test ! -s conftest.err'
|
---|
2564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2565 | (eval $ac_try) 2>&5
|
---|
2566 | ac_status=$?
|
---|
2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2568 | (exit $ac_status); }; } &&
|
---|
2569 | { ac_try='test -s conftest.$ac_objext'
|
---|
2570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2571 | (eval $ac_try) 2>&5
|
---|
2572 | ac_status=$?
|
---|
2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2574 | (exit $ac_status); }; }; then
|
---|
2575 | break
|
---|
2576 | else
|
---|
2577 | echo "$as_me: failed program was:" >&5
|
---|
2578 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2579 |
|
---|
2580 | fi
|
---|
2581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2582 | done
|
---|
2583 | rm -f conftest*
|
---|
2584 | if test -n "$ac_declaration"; then
|
---|
2585 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2586 | echo $ac_declaration >>confdefs.h
|
---|
2587 | echo '#endif' >>confdefs.h
|
---|
2588 | fi
|
---|
2589 |
|
---|
2590 | else
|
---|
2591 | echo "$as_me: failed program was:" >&5
|
---|
2592 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2593 |
|
---|
2594 | fi
|
---|
2595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2596 | ac_ext=c
|
---|
2597 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2601 |
|
---|
2602 | ac_ext=c
|
---|
2603 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2607 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
2608 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
2609 | # On Suns, sometimes $CPP names a directory.
|
---|
2610 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2611 | CPP=
|
---|
2612 | fi
|
---|
2613 | if test -z "$CPP"; then
|
---|
2614 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
2615 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2616 | else
|
---|
2617 | # Double quotes because CPP needs to be expanded
|
---|
2618 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
2619 | do
|
---|
2620 | ac_preproc_ok=false
|
---|
2621 | for ac_c_preproc_warn_flag in '' yes
|
---|
2622 | do
|
---|
2623 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2624 | # with a fresh cross-compiler works.
|
---|
2625 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2626 | # <limits.h> exists even on freestanding compilers.
|
---|
2627 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2628 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2629 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2630 | /* confdefs.h. */
|
---|
2631 | _ACEOF
|
---|
2632 | cat confdefs.h >>conftest.$ac_ext
|
---|
2633 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2634 | /* end confdefs.h. */
|
---|
2635 | #ifdef __STDC__
|
---|
2636 | # include <limits.h>
|
---|
2637 | #else
|
---|
2638 | # include <assert.h>
|
---|
2639 | #endif
|
---|
2640 | Syntax error
|
---|
2641 | _ACEOF
|
---|
2642 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2643 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2644 | ac_status=$?
|
---|
2645 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2646 | rm -f conftest.er1
|
---|
2647 | cat conftest.err >&5
|
---|
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2649 | (exit $ac_status); } >/dev/null; then
|
---|
2650 | if test -s conftest.err; then
|
---|
2651 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2652 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2653 | else
|
---|
2654 | ac_cpp_err=
|
---|
2655 | fi
|
---|
2656 | else
|
---|
2657 | ac_cpp_err=yes
|
---|
2658 | fi
|
---|
2659 | if test -z "$ac_cpp_err"; then
|
---|
2660 | :
|
---|
2661 | else
|
---|
2662 | echo "$as_me: failed program was:" >&5
|
---|
2663 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2664 |
|
---|
2665 | # Broken: fails on valid input.
|
---|
2666 | continue
|
---|
2667 | fi
|
---|
2668 | rm -f conftest.err conftest.$ac_ext
|
---|
2669 |
|
---|
2670 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2671 | # can be detected and how.
|
---|
2672 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2673 | /* confdefs.h. */
|
---|
2674 | _ACEOF
|
---|
2675 | cat confdefs.h >>conftest.$ac_ext
|
---|
2676 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2677 | /* end confdefs.h. */
|
---|
2678 | #include <ac_nonexistent.h>
|
---|
2679 | _ACEOF
|
---|
2680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2682 | ac_status=$?
|
---|
2683 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2684 | rm -f conftest.er1
|
---|
2685 | cat conftest.err >&5
|
---|
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2687 | (exit $ac_status); } >/dev/null; then
|
---|
2688 | if test -s conftest.err; then
|
---|
2689 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2691 | else
|
---|
2692 | ac_cpp_err=
|
---|
2693 | fi
|
---|
2694 | else
|
---|
2695 | ac_cpp_err=yes
|
---|
2696 | fi
|
---|
2697 | if test -z "$ac_cpp_err"; then
|
---|
2698 | # Broken: success on invalid input.
|
---|
2699 | continue
|
---|
2700 | else
|
---|
2701 | echo "$as_me: failed program was:" >&5
|
---|
2702 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2703 |
|
---|
2704 | # Passes both tests.
|
---|
2705 | ac_preproc_ok=:
|
---|
2706 | break
|
---|
2707 | fi
|
---|
2708 | rm -f conftest.err conftest.$ac_ext
|
---|
2709 |
|
---|
2710 | done
|
---|
2711 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2712 | rm -f conftest.err conftest.$ac_ext
|
---|
2713 | if $ac_preproc_ok; then
|
---|
2714 | break
|
---|
2715 | fi
|
---|
2716 |
|
---|
2717 | done
|
---|
2718 | ac_cv_prog_CPP=$CPP
|
---|
2719 |
|
---|
2720 | fi
|
---|
2721 | CPP=$ac_cv_prog_CPP
|
---|
2722 | else
|
---|
2723 | ac_cv_prog_CPP=$CPP
|
---|
2724 | fi
|
---|
2725 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
2726 | echo "${ECHO_T}$CPP" >&6
|
---|
2727 | ac_preproc_ok=false
|
---|
2728 | for ac_c_preproc_warn_flag in '' yes
|
---|
2729 | do
|
---|
2730 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2731 | # with a fresh cross-compiler works.
|
---|
2732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2733 | # <limits.h> exists even on freestanding compilers.
|
---|
2734 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2735 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2736 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2737 | /* confdefs.h. */
|
---|
2738 | _ACEOF
|
---|
2739 | cat confdefs.h >>conftest.$ac_ext
|
---|
2740 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2741 | /* end confdefs.h. */
|
---|
2742 | #ifdef __STDC__
|
---|
2743 | # include <limits.h>
|
---|
2744 | #else
|
---|
2745 | # include <assert.h>
|
---|
2746 | #endif
|
---|
2747 | Syntax error
|
---|
2748 | _ACEOF
|
---|
2749 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2750 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2751 | ac_status=$?
|
---|
2752 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2753 | rm -f conftest.er1
|
---|
2754 | cat conftest.err >&5
|
---|
2755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2756 | (exit $ac_status); } >/dev/null; then
|
---|
2757 | if test -s conftest.err; then
|
---|
2758 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2759 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2760 | else
|
---|
2761 | ac_cpp_err=
|
---|
2762 | fi
|
---|
2763 | else
|
---|
2764 | ac_cpp_err=yes
|
---|
2765 | fi
|
---|
2766 | if test -z "$ac_cpp_err"; then
|
---|
2767 | :
|
---|
2768 | else
|
---|
2769 | echo "$as_me: failed program was:" >&5
|
---|
2770 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2771 |
|
---|
2772 | # Broken: fails on valid input.
|
---|
2773 | continue
|
---|
2774 | fi
|
---|
2775 | rm -f conftest.err conftest.$ac_ext
|
---|
2776 |
|
---|
2777 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2778 | # can be detected and how.
|
---|
2779 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2780 | /* confdefs.h. */
|
---|
2781 | _ACEOF
|
---|
2782 | cat confdefs.h >>conftest.$ac_ext
|
---|
2783 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2784 | /* end confdefs.h. */
|
---|
2785 | #include <ac_nonexistent.h>
|
---|
2786 | _ACEOF
|
---|
2787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2789 | ac_status=$?
|
---|
2790 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2791 | rm -f conftest.er1
|
---|
2792 | cat conftest.err >&5
|
---|
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2794 | (exit $ac_status); } >/dev/null; then
|
---|
2795 | if test -s conftest.err; then
|
---|
2796 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2798 | else
|
---|
2799 | ac_cpp_err=
|
---|
2800 | fi
|
---|
2801 | else
|
---|
2802 | ac_cpp_err=yes
|
---|
2803 | fi
|
---|
2804 | if test -z "$ac_cpp_err"; then
|
---|
2805 | # Broken: success on invalid input.
|
---|
2806 | continue
|
---|
2807 | else
|
---|
2808 | echo "$as_me: failed program was:" >&5
|
---|
2809 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2810 |
|
---|
2811 | # Passes both tests.
|
---|
2812 | ac_preproc_ok=:
|
---|
2813 | break
|
---|
2814 | fi
|
---|
2815 | rm -f conftest.err conftest.$ac_ext
|
---|
2816 |
|
---|
2817 | done
|
---|
2818 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2819 | rm -f conftest.err conftest.$ac_ext
|
---|
2820 | if $ac_preproc_ok; then
|
---|
2821 | :
|
---|
2822 | else
|
---|
2823 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
2824 | See \`config.log' for more details." >&5
|
---|
2825 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
2826 | See \`config.log' for more details." >&2;}
|
---|
2827 | { (exit 1); exit 1; }; }
|
---|
2828 | fi
|
---|
2829 |
|
---|
2830 | ac_ext=c
|
---|
2831 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2835 |
|
---|
2836 | ac_aux_dir=
|
---|
2837 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2838 | if test -f $ac_dir/install-sh; then
|
---|
2839 | ac_aux_dir=$ac_dir
|
---|
2840 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2841 | break
|
---|
2842 | elif test -f $ac_dir/install.sh; then
|
---|
2843 | ac_aux_dir=$ac_dir
|
---|
2844 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2845 | break
|
---|
2846 | elif test -f $ac_dir/shtool; then
|
---|
2847 | ac_aux_dir=$ac_dir
|
---|
2848 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2849 | break
|
---|
2850 | fi
|
---|
2851 | done
|
---|
2852 | if test -z "$ac_aux_dir"; then
|
---|
2853 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2854 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2855 | { (exit 1); exit 1; }; }
|
---|
2856 | fi
|
---|
2857 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2858 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2859 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2860 |
|
---|
2861 | # Find a good install program. We prefer a C program (faster),
|
---|
2862 | # so one script is as good as another. But avoid the broken or
|
---|
2863 | # incompatible versions:
|
---|
2864 | # SysV /etc/install, /usr/sbin/install
|
---|
2865 | # SunOS /usr/etc/install
|
---|
2866 | # IRIX /sbin/install
|
---|
2867 | # AIX /bin/install
|
---|
2868 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2869 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2870 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2871 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2872 | # OS/2's system install, which has a completely different semantic
|
---|
2873 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2874 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2875 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2876 | if test -z "$INSTALL"; then
|
---|
2877 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2878 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2879 | else
|
---|
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2881 | for as_dir in $PATH
|
---|
2882 | do
|
---|
2883 | IFS=$as_save_IFS
|
---|
2884 | test -z "$as_dir" && as_dir=.
|
---|
2885 | # Account for people who put trailing slashes in PATH elements.
|
---|
2886 | case $as_dir/ in
|
---|
2887 | ./ | .// | /cC/* | \
|
---|
2888 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2889 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2890 | /usr/ucb/* ) ;;
|
---|
2891 | *)
|
---|
2892 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2893 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2894 | # by default.
|
---|
2895 | for ac_prog in ginstall scoinst install; do
|
---|
2896 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2897 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2898 | if test $ac_prog = install &&
|
---|
2899 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2900 | # AIX install. It has an incompatible calling convention.
|
---|
2901 | :
|
---|
2902 | elif test $ac_prog = install &&
|
---|
2903 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2904 | # program-specific install script used by HP pwplus--don't use.
|
---|
2905 | :
|
---|
2906 | else
|
---|
2907 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2908 | break 3
|
---|
2909 | fi
|
---|
2910 | fi
|
---|
2911 | done
|
---|
2912 | done
|
---|
2913 | ;;
|
---|
2914 | esac
|
---|
2915 | done
|
---|
2916 |
|
---|
2917 |
|
---|
2918 | fi
|
---|
2919 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2920 | INSTALL=$ac_cv_path_install
|
---|
2921 | else
|
---|
2922 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2923 | # path for INSTALL within a source directory, because that will
|
---|
2924 | # break other packages using the cache if that directory is
|
---|
2925 | # removed, or if the path is relative.
|
---|
2926 | INSTALL=$ac_install_sh
|
---|
2927 | fi
|
---|
2928 | fi
|
---|
2929 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2930 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2931 |
|
---|
2932 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2933 | # It thinks the first close brace ends the variable substitution.
|
---|
2934 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2935 |
|
---|
2936 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2937 |
|
---|
2938 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2939 |
|
---|
2940 |
|
---|
2941 | # Checks for libraries.
|
---|
2942 |
|
---|
2943 | # Checks for header files.
|
---|
2944 |
|
---|
2945 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
2946 |
|
---|
2947 |
|
---|
2948 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
2949 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
2950 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
2951 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2952 | else
|
---|
2953 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
2954 | then ac_cv_prog_egrep='grep -E'
|
---|
2955 | else ac_cv_prog_egrep='egrep'
|
---|
2956 | fi
|
---|
2957 | fi
|
---|
2958 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
2959 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
2960 | EGREP=$ac_cv_prog_egrep
|
---|
2961 |
|
---|
2962 |
|
---|
2963 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
2964 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
2965 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
2966 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2967 | else
|
---|
2968 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2969 | /* confdefs.h. */
|
---|
2970 | _ACEOF
|
---|
2971 | cat confdefs.h >>conftest.$ac_ext
|
---|
2972 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2973 | /* end confdefs.h. */
|
---|
2974 | #include <stdlib.h>
|
---|
2975 | #include <stdarg.h>
|
---|
2976 | #include <string.h>
|
---|
2977 | #include <float.h>
|
---|
2978 |
|
---|
2979 | int
|
---|
2980 | main ()
|
---|
2981 | {
|
---|
2982 |
|
---|
2983 | ;
|
---|
2984 | return 0;
|
---|
2985 | }
|
---|
2986 | _ACEOF
|
---|
2987 | rm -f conftest.$ac_objext
|
---|
2988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2989 | (eval $ac_compile) 2>conftest.er1
|
---|
2990 | ac_status=$?
|
---|
2991 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2992 | rm -f conftest.er1
|
---|
2993 | cat conftest.err >&5
|
---|
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2995 | (exit $ac_status); } &&
|
---|
2996 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2997 | || test ! -s conftest.err'
|
---|
2998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2999 | (eval $ac_try) 2>&5
|
---|
3000 | ac_status=$?
|
---|
3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3002 | (exit $ac_status); }; } &&
|
---|
3003 | { ac_try='test -s conftest.$ac_objext'
|
---|
3004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3005 | (eval $ac_try) 2>&5
|
---|
3006 | ac_status=$?
|
---|
3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3008 | (exit $ac_status); }; }; then
|
---|
3009 | ac_cv_header_stdc=yes
|
---|
3010 | else
|
---|
3011 | echo "$as_me: failed program was:" >&5
|
---|
3012 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3013 |
|
---|
3014 | ac_cv_header_stdc=no
|
---|
3015 | fi
|
---|
3016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3017 |
|
---|
3018 | if test $ac_cv_header_stdc = yes; then
|
---|
3019 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3020 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3021 | /* confdefs.h. */
|
---|
3022 | _ACEOF
|
---|
3023 | cat confdefs.h >>conftest.$ac_ext
|
---|
3024 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3025 | /* end confdefs.h. */
|
---|
3026 | #include <string.h>
|
---|
3027 |
|
---|
3028 | _ACEOF
|
---|
3029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3030 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3031 | :
|
---|
3032 | else
|
---|
3033 | ac_cv_header_stdc=no
|
---|
3034 | fi
|
---|
3035 | rm -f conftest*
|
---|
3036 |
|
---|
3037 | fi
|
---|
3038 |
|
---|
3039 | if test $ac_cv_header_stdc = yes; then
|
---|
3040 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3041 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3042 | /* confdefs.h. */
|
---|
3043 | _ACEOF
|
---|
3044 | cat confdefs.h >>conftest.$ac_ext
|
---|
3045 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3046 | /* end confdefs.h. */
|
---|
3047 | #include <stdlib.h>
|
---|
3048 |
|
---|
3049 | _ACEOF
|
---|
3050 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3051 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3052 | :
|
---|
3053 | else
|
---|
3054 | ac_cv_header_stdc=no
|
---|
3055 | fi
|
---|
3056 | rm -f conftest*
|
---|
3057 |
|
---|
3058 | fi
|
---|
3059 |
|
---|
3060 | if test $ac_cv_header_stdc = yes; then
|
---|
3061 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3062 | if test "$cross_compiling" = yes; then
|
---|
3063 | :
|
---|
3064 | else
|
---|
3065 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3066 | /* confdefs.h. */
|
---|
3067 | _ACEOF
|
---|
3068 | cat confdefs.h >>conftest.$ac_ext
|
---|
3069 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3070 | /* end confdefs.h. */
|
---|
3071 | #include <ctype.h>
|
---|
3072 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3073 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3074 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3075 | #else
|
---|
3076 | # define ISLOWER(c) \
|
---|
3077 | (('a' <= (c) && (c) <= 'i') \
|
---|
3078 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3079 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3080 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3081 | #endif
|
---|
3082 |
|
---|
3083 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3084 | int
|
---|
3085 | main ()
|
---|
3086 | {
|
---|
3087 | int i;
|
---|
3088 | for (i = 0; i < 256; i++)
|
---|
3089 | if (XOR (islower (i), ISLOWER (i))
|
---|
3090 | || toupper (i) != TOUPPER (i))
|
---|
3091 | exit(2);
|
---|
3092 | exit (0);
|
---|
3093 | }
|
---|
3094 | _ACEOF
|
---|
3095 | rm -f conftest$ac_exeext
|
---|
3096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3097 | (eval $ac_link) 2>&5
|
---|
3098 | ac_status=$?
|
---|
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3102 | (eval $ac_try) 2>&5
|
---|
3103 | ac_status=$?
|
---|
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3105 | (exit $ac_status); }; }; then
|
---|
3106 | :
|
---|
3107 | else
|
---|
3108 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3109 | echo "$as_me: failed program was:" >&5
|
---|
3110 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3111 |
|
---|
3112 | ( exit $ac_status )
|
---|
3113 | ac_cv_header_stdc=no
|
---|
3114 | fi
|
---|
3115 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3116 | fi
|
---|
3117 | fi
|
---|
3118 | fi
|
---|
3119 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3120 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3121 | if test $ac_cv_header_stdc = yes; then
|
---|
3122 |
|
---|
3123 | cat >>confdefs.h <<\_ACEOF
|
---|
3124 | #define STDC_HEADERS 1
|
---|
3125 | _ACEOF
|
---|
3126 |
|
---|
3127 | fi
|
---|
3128 |
|
---|
3129 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3130 |
|
---|
3131 |
|
---|
3132 |
|
---|
3133 |
|
---|
3134 |
|
---|
3135 |
|
---|
3136 |
|
---|
3137 |
|
---|
3138 |
|
---|
3139 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3140 | inttypes.h stdint.h unistd.h
|
---|
3141 | do
|
---|
3142 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3143 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3146 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3147 | else
|
---|
3148 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3149 | /* confdefs.h. */
|
---|
3150 | _ACEOF
|
---|
3151 | cat confdefs.h >>conftest.$ac_ext
|
---|
3152 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3153 | /* end confdefs.h. */
|
---|
3154 | $ac_includes_default
|
---|
3155 |
|
---|
3156 | #include <$ac_header>
|
---|
3157 | _ACEOF
|
---|
3158 | rm -f conftest.$ac_objext
|
---|
3159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3160 | (eval $ac_compile) 2>conftest.er1
|
---|
3161 | ac_status=$?
|
---|
3162 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3163 | rm -f conftest.er1
|
---|
3164 | cat conftest.err >&5
|
---|
3165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3166 | (exit $ac_status); } &&
|
---|
3167 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3168 | || test ! -s conftest.err'
|
---|
3169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3170 | (eval $ac_try) 2>&5
|
---|
3171 | ac_status=$?
|
---|
3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3173 | (exit $ac_status); }; } &&
|
---|
3174 | { ac_try='test -s conftest.$ac_objext'
|
---|
3175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3176 | (eval $ac_try) 2>&5
|
---|
3177 | ac_status=$?
|
---|
3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3179 | (exit $ac_status); }; }; then
|
---|
3180 | eval "$as_ac_Header=yes"
|
---|
3181 | else
|
---|
3182 | echo "$as_me: failed program was:" >&5
|
---|
3183 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3184 |
|
---|
3185 | eval "$as_ac_Header=no"
|
---|
3186 | fi
|
---|
3187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3188 | fi
|
---|
3189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3192 | cat >>confdefs.h <<_ACEOF
|
---|
3193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3194 | _ACEOF
|
---|
3195 |
|
---|
3196 | fi
|
---|
3197 |
|
---|
3198 | done
|
---|
3199 |
|
---|
3200 |
|
---|
3201 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
|
---|
3202 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
|
---|
3203 | if test "${ac_cv_header_stdbool_h+set}" = set; then
|
---|
3204 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3205 | else
|
---|
3206 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3207 | /* confdefs.h. */
|
---|
3208 | _ACEOF
|
---|
3209 | cat confdefs.h >>conftest.$ac_ext
|
---|
3210 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3211 | /* end confdefs.h. */
|
---|
3212 |
|
---|
3213 | #include <stdbool.h>
|
---|
3214 | #ifndef bool
|
---|
3215 | # error bool is not defined
|
---|
3216 | #endif
|
---|
3217 | #ifndef false
|
---|
3218 | # error false is not defined
|
---|
3219 | #endif
|
---|
3220 | #if false
|
---|
3221 | # error false is not 0
|
---|
3222 | #endif
|
---|
3223 | #ifndef true
|
---|
3224 | # error true is not defined
|
---|
3225 | #endif
|
---|
3226 | #if true != 1
|
---|
3227 | # error true is not 1
|
---|
3228 | #endif
|
---|
3229 | #ifndef __bool_true_false_are_defined
|
---|
3230 | # error __bool_true_false_are_defined is not defined
|
---|
3231 | #endif
|
---|
3232 |
|
---|
3233 | struct s { _Bool s: 1; _Bool t; } s;
|
---|
3234 |
|
---|
3235 | char a[true == 1 ? 1 : -1];
|
---|
3236 | char b[false == 0 ? 1 : -1];
|
---|
3237 | char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|
---|
3238 | char d[(bool) -0.5 == true ? 1 : -1];
|
---|
3239 | bool e = &s;
|
---|
3240 | char f[(_Bool) -0.0 == false ? 1 : -1];
|
---|
3241 | char g[true];
|
---|
3242 | char h[sizeof (_Bool)];
|
---|
3243 | char i[sizeof s.t];
|
---|
3244 |
|
---|
3245 | int
|
---|
3246 | main ()
|
---|
3247 | {
|
---|
3248 | return !a + !b + !c + !d + !e + !f + !g + !h + !i;
|
---|
3249 | ;
|
---|
3250 | return 0;
|
---|
3251 | }
|
---|
3252 | _ACEOF
|
---|
3253 | rm -f conftest.$ac_objext
|
---|
3254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3255 | (eval $ac_compile) 2>conftest.er1
|
---|
3256 | ac_status=$?
|
---|
3257 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3258 | rm -f conftest.er1
|
---|
3259 | cat conftest.err >&5
|
---|
3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3261 | (exit $ac_status); } &&
|
---|
3262 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3263 | || test ! -s conftest.err'
|
---|
3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3265 | (eval $ac_try) 2>&5
|
---|
3266 | ac_status=$?
|
---|
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3268 | (exit $ac_status); }; } &&
|
---|
3269 | { ac_try='test -s conftest.$ac_objext'
|
---|
3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3271 | (eval $ac_try) 2>&5
|
---|
3272 | ac_status=$?
|
---|
3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3274 | (exit $ac_status); }; }; then
|
---|
3275 | ac_cv_header_stdbool_h=yes
|
---|
3276 | else
|
---|
3277 | echo "$as_me: failed program was:" >&5
|
---|
3278 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3279 |
|
---|
3280 | ac_cv_header_stdbool_h=no
|
---|
3281 | fi
|
---|
3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3283 | fi
|
---|
3284 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
|
---|
3285 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
|
---|
3286 | echo "$as_me:$LINENO: checking for _Bool" >&5
|
---|
3287 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
|
---|
3288 | if test "${ac_cv_type__Bool+set}" = set; then
|
---|
3289 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3290 | else
|
---|
3291 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3292 | /* confdefs.h. */
|
---|
3293 | _ACEOF
|
---|
3294 | cat confdefs.h >>conftest.$ac_ext
|
---|
3295 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3296 | /* end confdefs.h. */
|
---|
3297 | $ac_includes_default
|
---|
3298 | int
|
---|
3299 | main ()
|
---|
3300 | {
|
---|
3301 | if ((_Bool *) 0)
|
---|
3302 | return 0;
|
---|
3303 | if (sizeof (_Bool))
|
---|
3304 | return 0;
|
---|
3305 | ;
|
---|
3306 | return 0;
|
---|
3307 | }
|
---|
3308 | _ACEOF
|
---|
3309 | rm -f conftest.$ac_objext
|
---|
3310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3311 | (eval $ac_compile) 2>conftest.er1
|
---|
3312 | ac_status=$?
|
---|
3313 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3314 | rm -f conftest.er1
|
---|
3315 | cat conftest.err >&5
|
---|
3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3317 | (exit $ac_status); } &&
|
---|
3318 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3319 | || test ! -s conftest.err'
|
---|
3320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3321 | (eval $ac_try) 2>&5
|
---|
3322 | ac_status=$?
|
---|
3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3324 | (exit $ac_status); }; } &&
|
---|
3325 | { ac_try='test -s conftest.$ac_objext'
|
---|
3326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3327 | (eval $ac_try) 2>&5
|
---|
3328 | ac_status=$?
|
---|
3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3330 | (exit $ac_status); }; }; then
|
---|
3331 | ac_cv_type__Bool=yes
|
---|
3332 | else
|
---|
3333 | echo "$as_me: failed program was:" >&5
|
---|
3334 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3335 |
|
---|
3336 | ac_cv_type__Bool=no
|
---|
3337 | fi
|
---|
3338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3339 | fi
|
---|
3340 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
|
---|
3341 | echo "${ECHO_T}$ac_cv_type__Bool" >&6
|
---|
3342 | if test $ac_cv_type__Bool = yes; then
|
---|
3343 |
|
---|
3344 | cat >>confdefs.h <<_ACEOF
|
---|
3345 | #define HAVE__BOOL 1
|
---|
3346 | _ACEOF
|
---|
3347 |
|
---|
3348 |
|
---|
3349 | fi
|
---|
3350 |
|
---|
3351 | if test $ac_cv_header_stdbool_h = yes; then
|
---|
3352 |
|
---|
3353 | cat >>confdefs.h <<\_ACEOF
|
---|
3354 | #define HAVE_STDBOOL_H 1
|
---|
3355 | _ACEOF
|
---|
3356 |
|
---|
3357 | fi
|
---|
3358 |
|
---|
3359 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
3360 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
3361 | if test "${ac_cv_c_const+set}" = set; then
|
---|
3362 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3363 | else
|
---|
3364 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3365 | /* confdefs.h. */
|
---|
3366 | _ACEOF
|
---|
3367 | cat confdefs.h >>conftest.$ac_ext
|
---|
3368 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3369 | /* end confdefs.h. */
|
---|
3370 |
|
---|
3371 | int
|
---|
3372 | main ()
|
---|
3373 | {
|
---|
3374 | /* FIXME: Include the comments suggested by Paul. */
|
---|
3375 | #ifndef __cplusplus
|
---|
3376 | /* Ultrix mips cc rejects this. */
|
---|
3377 | typedef int charset[2];
|
---|
3378 | const charset x;
|
---|
3379 | /* SunOS 4.1.1 cc rejects this. */
|
---|
3380 | char const *const *ccp;
|
---|
3381 | char **p;
|
---|
3382 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
3383 | struct point {int x, y;};
|
---|
3384 | static struct point const zero = {0,0};
|
---|
3385 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
3386 | It does not let you subtract one const X* pointer from another in
|
---|
3387 | an arm of an if-expression whose if-part is not a constant
|
---|
3388 | expression */
|
---|
3389 | const char *g = "string";
|
---|
3390 | ccp = &g + (g ? g-g : 0);
|
---|
3391 | /* HPUX 7.0 cc rejects these. */
|
---|
3392 | ++ccp;
|
---|
3393 | p = (char**) ccp;
|
---|
3394 | ccp = (char const *const *) p;
|
---|
3395 | { /* SCO 3.2v4 cc rejects this. */
|
---|
3396 | char *t;
|
---|
3397 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
3398 |
|
---|
3399 | *t++ = 0;
|
---|
3400 | }
|
---|
3401 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
3402 | int x[] = {25, 17};
|
---|
3403 | const int *foo = &x[0];
|
---|
3404 | ++foo;
|
---|
3405 | }
|
---|
3406 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
3407 | typedef const int *iptr;
|
---|
3408 | iptr p = 0;
|
---|
3409 | ++p;
|
---|
3410 | }
|
---|
3411 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
3412 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
3413 | struct s { int j; const int *ap[3]; };
|
---|
3414 | struct s *b; b->j = 5;
|
---|
3415 | }
|
---|
3416 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
3417 | const int foo = 10;
|
---|
3418 | }
|
---|
3419 | #endif
|
---|
3420 |
|
---|
3421 | ;
|
---|
3422 | return 0;
|
---|
3423 | }
|
---|
3424 | _ACEOF
|
---|
3425 | rm -f conftest.$ac_objext
|
---|
3426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3427 | (eval $ac_compile) 2>conftest.er1
|
---|
3428 | ac_status=$?
|
---|
3429 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3430 | rm -f conftest.er1
|
---|
3431 | cat conftest.err >&5
|
---|
3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3433 | (exit $ac_status); } &&
|
---|
3434 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3435 | || test ! -s conftest.err'
|
---|
3436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3437 | (eval $ac_try) 2>&5
|
---|
3438 | ac_status=$?
|
---|
3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3440 | (exit $ac_status); }; } &&
|
---|
3441 | { ac_try='test -s conftest.$ac_objext'
|
---|
3442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3443 | (eval $ac_try) 2>&5
|
---|
3444 | ac_status=$?
|
---|
3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3446 | (exit $ac_status); }; }; then
|
---|
3447 | ac_cv_c_const=yes
|
---|
3448 | else
|
---|
3449 | echo "$as_me: failed program was:" >&5
|
---|
3450 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3451 |
|
---|
3452 | ac_cv_c_const=no
|
---|
3453 | fi
|
---|
3454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3455 | fi
|
---|
3456 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
3457 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
3458 | if test $ac_cv_c_const = no; then
|
---|
3459 |
|
---|
3460 | cat >>confdefs.h <<\_ACEOF
|
---|
3461 | #define const
|
---|
3462 | _ACEOF
|
---|
3463 |
|
---|
3464 | fi
|
---|
3465 |
|
---|
3466 |
|
---|
3467 | # Checks for library functions.
|
---|
3468 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3469 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3470 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3471 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3472 | else
|
---|
3473 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3474 | /* confdefs.h. */
|
---|
3475 | _ACEOF
|
---|
3476 | cat confdefs.h >>conftest.$ac_ext
|
---|
3477 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3478 | /* end confdefs.h. */
|
---|
3479 | #include <stdlib.h>
|
---|
3480 | #include <stdarg.h>
|
---|
3481 | #include <string.h>
|
---|
3482 | #include <float.h>
|
---|
3483 |
|
---|
3484 | int
|
---|
3485 | main ()
|
---|
3486 | {
|
---|
3487 |
|
---|
3488 | ;
|
---|
3489 | return 0;
|
---|
3490 | }
|
---|
3491 | _ACEOF
|
---|
3492 | rm -f conftest.$ac_objext
|
---|
3493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3494 | (eval $ac_compile) 2>conftest.er1
|
---|
3495 | ac_status=$?
|
---|
3496 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3497 | rm -f conftest.er1
|
---|
3498 | cat conftest.err >&5
|
---|
3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3500 | (exit $ac_status); } &&
|
---|
3501 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3502 | || test ! -s conftest.err'
|
---|
3503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3504 | (eval $ac_try) 2>&5
|
---|
3505 | ac_status=$?
|
---|
3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3507 | (exit $ac_status); }; } &&
|
---|
3508 | { ac_try='test -s conftest.$ac_objext'
|
---|
3509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3510 | (eval $ac_try) 2>&5
|
---|
3511 | ac_status=$?
|
---|
3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3513 | (exit $ac_status); }; }; then
|
---|
3514 | ac_cv_header_stdc=yes
|
---|
3515 | else
|
---|
3516 | echo "$as_me: failed program was:" >&5
|
---|
3517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3518 |
|
---|
3519 | ac_cv_header_stdc=no
|
---|
3520 | fi
|
---|
3521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3522 |
|
---|
3523 | if test $ac_cv_header_stdc = yes; then
|
---|
3524 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3525 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3526 | /* confdefs.h. */
|
---|
3527 | _ACEOF
|
---|
3528 | cat confdefs.h >>conftest.$ac_ext
|
---|
3529 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3530 | /* end confdefs.h. */
|
---|
3531 | #include <string.h>
|
---|
3532 |
|
---|
3533 | _ACEOF
|
---|
3534 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3535 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3536 | :
|
---|
3537 | else
|
---|
3538 | ac_cv_header_stdc=no
|
---|
3539 | fi
|
---|
3540 | rm -f conftest*
|
---|
3541 |
|
---|
3542 | fi
|
---|
3543 |
|
---|
3544 | if test $ac_cv_header_stdc = yes; then
|
---|
3545 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3546 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3547 | /* confdefs.h. */
|
---|
3548 | _ACEOF
|
---|
3549 | cat confdefs.h >>conftest.$ac_ext
|
---|
3550 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3551 | /* end confdefs.h. */
|
---|
3552 | #include <stdlib.h>
|
---|
3553 |
|
---|
3554 | _ACEOF
|
---|
3555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3556 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3557 | :
|
---|
3558 | else
|
---|
3559 | ac_cv_header_stdc=no
|
---|
3560 | fi
|
---|
3561 | rm -f conftest*
|
---|
3562 |
|
---|
3563 | fi
|
---|
3564 |
|
---|
3565 | if test $ac_cv_header_stdc = yes; then
|
---|
3566 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3567 | if test "$cross_compiling" = yes; then
|
---|
3568 | :
|
---|
3569 | else
|
---|
3570 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3571 | /* confdefs.h. */
|
---|
3572 | _ACEOF
|
---|
3573 | cat confdefs.h >>conftest.$ac_ext
|
---|
3574 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3575 | /* end confdefs.h. */
|
---|
3576 | #include <ctype.h>
|
---|
3577 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3578 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3579 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3580 | #else
|
---|
3581 | # define ISLOWER(c) \
|
---|
3582 | (('a' <= (c) && (c) <= 'i') \
|
---|
3583 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3584 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3585 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3586 | #endif
|
---|
3587 |
|
---|
3588 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3589 | int
|
---|
3590 | main ()
|
---|
3591 | {
|
---|
3592 | int i;
|
---|
3593 | for (i = 0; i < 256; i++)
|
---|
3594 | if (XOR (islower (i), ISLOWER (i))
|
---|
3595 | || toupper (i) != TOUPPER (i))
|
---|
3596 | exit(2);
|
---|
3597 | exit (0);
|
---|
3598 | }
|
---|
3599 | _ACEOF
|
---|
3600 | rm -f conftest$ac_exeext
|
---|
3601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3602 | (eval $ac_link) 2>&5
|
---|
3603 | ac_status=$?
|
---|
3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3607 | (eval $ac_try) 2>&5
|
---|
3608 | ac_status=$?
|
---|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3610 | (exit $ac_status); }; }; then
|
---|
3611 | :
|
---|
3612 | else
|
---|
3613 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3614 | echo "$as_me: failed program was:" >&5
|
---|
3615 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3616 |
|
---|
3617 | ( exit $ac_status )
|
---|
3618 | ac_cv_header_stdc=no
|
---|
3619 | fi
|
---|
3620 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3621 | fi
|
---|
3622 | fi
|
---|
3623 | fi
|
---|
3624 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3625 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3626 | if test $ac_cv_header_stdc = yes; then
|
---|
3627 |
|
---|
3628 | cat >>confdefs.h <<\_ACEOF
|
---|
3629 | #define STDC_HEADERS 1
|
---|
3630 | _ACEOF
|
---|
3631 |
|
---|
3632 | fi
|
---|
3633 |
|
---|
3634 |
|
---|
3635 | for ac_func in memset
|
---|
3636 | do
|
---|
3637 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
3638 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
3639 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
3640 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
3641 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3642 | else
|
---|
3643 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3644 | /* confdefs.h. */
|
---|
3645 | _ACEOF
|
---|
3646 | cat confdefs.h >>conftest.$ac_ext
|
---|
3647 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3648 | /* end confdefs.h. */
|
---|
3649 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
3650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
3651 | #define $ac_func innocuous_$ac_func
|
---|
3652 |
|
---|
3653 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3654 | which can conflict with char $ac_func (); below.
|
---|
3655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3656 | <limits.h> exists even on freestanding compilers. */
|
---|
3657 |
|
---|
3658 | #ifdef __STDC__
|
---|
3659 | # include <limits.h>
|
---|
3660 | #else
|
---|
3661 | # include <assert.h>
|
---|
3662 | #endif
|
---|
3663 |
|
---|
3664 | #undef $ac_func
|
---|
3665 |
|
---|
3666 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3667 | #ifdef __cplusplus
|
---|
3668 | extern "C"
|
---|
3669 | {
|
---|
3670 | #endif
|
---|
3671 | /* We use char because int might match the return type of a gcc2
|
---|
3672 | builtin and then its argument prototype would still apply. */
|
---|
3673 | char $ac_func ();
|
---|
3674 | /* The GNU C library defines this for functions which it implements
|
---|
3675 | to always fail with ENOSYS. Some functions are actually named
|
---|
3676 | something starting with __ and the normal name is an alias. */
|
---|
3677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3678 | choke me
|
---|
3679 | #else
|
---|
3680 | char (*f) () = $ac_func;
|
---|
3681 | #endif
|
---|
3682 | #ifdef __cplusplus
|
---|
3683 | }
|
---|
3684 | #endif
|
---|
3685 |
|
---|
3686 | int
|
---|
3687 | main ()
|
---|
3688 | {
|
---|
3689 | return f != $ac_func;
|
---|
3690 | ;
|
---|
3691 | return 0;
|
---|
3692 | }
|
---|
3693 | _ACEOF
|
---|
3694 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3696 | (eval $ac_link) 2>conftest.er1
|
---|
3697 | ac_status=$?
|
---|
3698 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3699 | rm -f conftest.er1
|
---|
3700 | cat conftest.err >&5
|
---|
3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3702 | (exit $ac_status); } &&
|
---|
3703 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3704 | || test ! -s conftest.err'
|
---|
3705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3706 | (eval $ac_try) 2>&5
|
---|
3707 | ac_status=$?
|
---|
3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3709 | (exit $ac_status); }; } &&
|
---|
3710 | { ac_try='test -s conftest$ac_exeext'
|
---|
3711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3712 | (eval $ac_try) 2>&5
|
---|
3713 | ac_status=$?
|
---|
3714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3715 | (exit $ac_status); }; }; then
|
---|
3716 | eval "$as_ac_var=yes"
|
---|
3717 | else
|
---|
3718 | echo "$as_me: failed program was:" >&5
|
---|
3719 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3720 |
|
---|
3721 | eval "$as_ac_var=no"
|
---|
3722 | fi
|
---|
3723 | rm -f conftest.err conftest.$ac_objext \
|
---|
3724 | conftest$ac_exeext conftest.$ac_ext
|
---|
3725 | fi
|
---|
3726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
3727 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
3728 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
3729 | cat >>confdefs.h <<_ACEOF
|
---|
3730 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
3731 | _ACEOF
|
---|
3732 |
|
---|
3733 | fi
|
---|
3734 | done
|
---|
3735 |
|
---|
3736 |
|
---|
3737 | ac_config_files="$ac_config_files Makefile"
|
---|
3738 |
|
---|
3739 | cat >confcache <<\_ACEOF
|
---|
3740 | # This file is a shell script that caches the results of configure
|
---|
3741 | # tests run on this system so they can be shared between configure
|
---|
3742 | # scripts and configure runs, see configure's option --config-cache.
|
---|
3743 | # It is not useful on other systems. If it contains results you don't
|
---|
3744 | # want to keep, you may remove or edit it.
|
---|
3745 | #
|
---|
3746 | # config.status only pays attention to the cache file if you give it
|
---|
3747 | # the --recheck option to rerun configure.
|
---|
3748 | #
|
---|
3749 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
3750 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
3751 | # following values.
|
---|
3752 |
|
---|
3753 | _ACEOF
|
---|
3754 |
|
---|
3755 | # The following way of writing the cache mishandles newlines in values,
|
---|
3756 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
3757 | # So, don't put newlines in cache variables' values.
|
---|
3758 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
3759 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
3760 | {
|
---|
3761 | (set) 2>&1 |
|
---|
3762 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
3763 | *ac_space=\ *)
|
---|
3764 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
3765 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
3766 | sed -n \
|
---|
3767 | "s/'/'\\\\''/g;
|
---|
3768 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
3769 | ;;
|
---|
3770 | *)
|
---|
3771 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
3772 | sed -n \
|
---|
3773 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
3774 | ;;
|
---|
3775 | esac;
|
---|
3776 | } |
|
---|
3777 | sed '
|
---|
3778 | t clear
|
---|
3779 | : clear
|
---|
3780 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
3781 | t end
|
---|
3782 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
3783 | : end' >>confcache
|
---|
3784 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
3785 | if test -w $cache_file; then
|
---|
3786 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
3787 | cat confcache >$cache_file
|
---|
3788 | else
|
---|
3789 | echo "not updating unwritable cache $cache_file"
|
---|
3790 | fi
|
---|
3791 | fi
|
---|
3792 | rm -f confcache
|
---|
3793 |
|
---|
3794 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
3795 | # Let make expand exec_prefix.
|
---|
3796 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
3797 |
|
---|
3798 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
3799 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
3800 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
3801 | # (actually we leave an empty line to preserve line numbers).
|
---|
3802 | if test "x$srcdir" = x.; then
|
---|
3803 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
3804 | s/:*\$(srcdir):*/:/;
|
---|
3805 | s/:*\${srcdir}:*/:/;
|
---|
3806 | s/:*@srcdir@:*/:/;
|
---|
3807 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
3808 | s/:*$//;
|
---|
3809 | s/^[^=]*=[ ]*$//;
|
---|
3810 | }'
|
---|
3811 | fi
|
---|
3812 |
|
---|
3813 | DEFS=-DHAVE_CONFIG_H
|
---|
3814 |
|
---|
3815 | ac_libobjs=
|
---|
3816 | ac_ltlibobjs=
|
---|
3817 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
3818 | # 1. Remove the extension, and $U if already installed.
|
---|
3819 | ac_i=`echo "$ac_i" |
|
---|
3820 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
3821 | # 2. Add them.
|
---|
3822 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
3823 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
3824 | done
|
---|
3825 | LIBOBJS=$ac_libobjs
|
---|
3826 |
|
---|
3827 | LTLIBOBJS=$ac_ltlibobjs
|
---|
3828 |
|
---|
3829 |
|
---|
3830 |
|
---|
3831 | : ${CONFIG_STATUS=./config.status}
|
---|
3832 | ac_clean_files_save=$ac_clean_files
|
---|
3833 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
3834 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
3835 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
3836 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
3837 | #! $SHELL
|
---|
3838 | # Generated by $as_me.
|
---|
3839 | # Run this file to recreate the current configuration.
|
---|
3840 | # Compiler output produced by configure, useful for debugging
|
---|
3841 | # configure, is in config.log if it exists.
|
---|
3842 |
|
---|
3843 | debug=false
|
---|
3844 | ac_cs_recheck=false
|
---|
3845 | ac_cs_silent=false
|
---|
3846 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
3847 | _ACEOF
|
---|
3848 |
|
---|
3849 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
3850 | ## --------------------- ##
|
---|
3851 | ## M4sh Initialization. ##
|
---|
3852 | ## --------------------- ##
|
---|
3853 |
|
---|
3854 | # Be Bourne compatible
|
---|
3855 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
3856 | emulate sh
|
---|
3857 | NULLCMD=:
|
---|
3858 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
3859 | # is contrary to our usage. Disable this feature.
|
---|
3860 | alias -g '${1+"$@"}'='"$@"'
|
---|
3861 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
3862 | set -o posix
|
---|
3863 | fi
|
---|
3864 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
3865 |
|
---|
3866 | # Support unset when possible.
|
---|
3867 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
3868 | as_unset=unset
|
---|
3869 | else
|
---|
3870 | as_unset=false
|
---|
3871 | fi
|
---|
3872 |
|
---|
3873 |
|
---|
3874 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
3875 | $as_unset ENV MAIL MAILPATH
|
---|
3876 | PS1='$ '
|
---|
3877 | PS2='> '
|
---|
3878 | PS4='+ '
|
---|
3879 |
|
---|
3880 | # NLS nuisances.
|
---|
3881 | for as_var in \
|
---|
3882 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
3883 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
3884 | LC_TELEPHONE LC_TIME
|
---|
3885 | do
|
---|
3886 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
3887 | eval $as_var=C; export $as_var
|
---|
3888 | else
|
---|
3889 | $as_unset $as_var
|
---|
3890 | fi
|
---|
3891 | done
|
---|
3892 |
|
---|
3893 | # Required to use basename.
|
---|
3894 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
3895 | as_expr=expr
|
---|
3896 | else
|
---|
3897 | as_expr=false
|
---|
3898 | fi
|
---|
3899 |
|
---|
3900 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
3901 | as_basename=basename
|
---|
3902 | else
|
---|
3903 | as_basename=false
|
---|
3904 | fi
|
---|
3905 |
|
---|
3906 |
|
---|
3907 | # Name of the executable.
|
---|
3908 | as_me=`$as_basename "$0" ||
|
---|
3909 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
3910 | X"$0" : 'X\(//\)$' \| \
|
---|
3911 | X"$0" : 'X\(/\)$' \| \
|
---|
3912 | . : '\(.\)' 2>/dev/null ||
|
---|
3913 | echo X/"$0" |
|
---|
3914 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
3915 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
3916 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
3917 | s/.*/./; q'`
|
---|
3918 |
|
---|
3919 |
|
---|
3920 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
3921 | # Avoid depending upon Character Ranges.
|
---|
3922 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
3923 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
3924 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
3925 | as_cr_digits='0123456789'
|
---|
3926 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
3927 |
|
---|
3928 | # The user is always right.
|
---|
3929 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
3930 | echo "#! /bin/sh" >conf$$.sh
|
---|
3931 | echo "exit 0" >>conf$$.sh
|
---|
3932 | chmod +x conf$$.sh
|
---|
3933 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
3934 | PATH_SEPARATOR=';'
|
---|
3935 | else
|
---|
3936 | PATH_SEPARATOR=:
|
---|
3937 | fi
|
---|
3938 | rm -f conf$$.sh
|
---|
3939 | fi
|
---|
3940 |
|
---|
3941 |
|
---|
3942 | as_lineno_1=$LINENO
|
---|
3943 | as_lineno_2=$LINENO
|
---|
3944 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
3945 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
3946 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
3947 | # Find who we are. Look in the path if we contain no path at all
|
---|
3948 | # relative or not.
|
---|
3949 | case $0 in
|
---|
3950 | *[\\/]* ) as_myself=$0 ;;
|
---|
3951 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3952 | for as_dir in $PATH
|
---|
3953 | do
|
---|
3954 | IFS=$as_save_IFS
|
---|
3955 | test -z "$as_dir" && as_dir=.
|
---|
3956 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
3957 | done
|
---|
3958 |
|
---|
3959 | ;;
|
---|
3960 | esac
|
---|
3961 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
3962 | # in which case we are not to be found in the path.
|
---|
3963 | if test "x$as_myself" = x; then
|
---|
3964 | as_myself=$0
|
---|
3965 | fi
|
---|
3966 | if test ! -f "$as_myself"; then
|
---|
3967 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
3968 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
3969 | { (exit 1); exit 1; }; }
|
---|
3970 | fi
|
---|
3971 | case $CONFIG_SHELL in
|
---|
3972 | '')
|
---|
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3974 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
3975 | do
|
---|
3976 | IFS=$as_save_IFS
|
---|
3977 | test -z "$as_dir" && as_dir=.
|
---|
3978 | for as_base in sh bash ksh sh5; do
|
---|
3979 | case $as_dir in
|
---|
3980 | /*)
|
---|
3981 | if ("$as_dir/$as_base" -c '
|
---|
3982 | as_lineno_1=$LINENO
|
---|
3983 | as_lineno_2=$LINENO
|
---|
3984 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
3985 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
3986 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
3987 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
3988 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
3989 | CONFIG_SHELL=$as_dir/$as_base
|
---|
3990 | export CONFIG_SHELL
|
---|
3991 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
3992 | fi;;
|
---|
3993 | esac
|
---|
3994 | done
|
---|
3995 | done
|
---|
3996 | ;;
|
---|
3997 | esac
|
---|
3998 |
|
---|
3999 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
4000 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
4001 | # line-number line before each line; the second 'sed' does the real
|
---|
4002 | # work. The second script uses 'N' to pair each line-number line
|
---|
4003 | # with the numbered line, and appends trailing '-' during
|
---|
4004 | # substitution so that $LINENO is not a special case at line end.
|
---|
4005 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
4006 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
4007 | sed '=' <$as_myself |
|
---|
4008 | sed '
|
---|
4009 | N
|
---|
4010 | s,$,-,
|
---|
4011 | : loop
|
---|
4012 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
4013 | t loop
|
---|
4014 | s,-$,,
|
---|
4015 | s,^['$as_cr_digits']*\n,,
|
---|
4016 | ' >$as_me.lineno &&
|
---|
4017 | chmod +x $as_me.lineno ||
|
---|
4018 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
4019 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
4020 | { (exit 1); exit 1; }; }
|
---|
4021 |
|
---|
4022 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
4023 | # (the dirname of $[0] is not the place where we might find the
|
---|
4024 | # original and so on. Autoconf is especially sensible to this).
|
---|
4025 | . ./$as_me.lineno
|
---|
4026 | # Exit status is that of the last command.
|
---|
4027 | exit
|
---|
4028 | }
|
---|
4029 |
|
---|
4030 |
|
---|
4031 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
4032 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
4033 | ' ECHO_T=' ' ;;
|
---|
4034 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
4035 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
4036 | esac
|
---|
4037 |
|
---|
4038 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
4039 | as_expr=expr
|
---|
4040 | else
|
---|
4041 | as_expr=false
|
---|
4042 | fi
|
---|
4043 |
|
---|
4044 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
4045 | echo >conf$$.file
|
---|
4046 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
4047 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
4048 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
4049 | if test -f conf$$.exe; then
|
---|
4050 | # Don't use ln at all; we don't have any links
|
---|
4051 | as_ln_s='cp -p'
|
---|
4052 | else
|
---|
4053 | as_ln_s='ln -s'
|
---|
4054 | fi
|
---|
4055 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
4056 | as_ln_s=ln
|
---|
4057 | else
|
---|
4058 | as_ln_s='cp -p'
|
---|
4059 | fi
|
---|
4060 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
4061 |
|
---|
4062 | if mkdir -p . 2>/dev/null; then
|
---|
4063 | as_mkdir_p=:
|
---|
4064 | else
|
---|
4065 | test -d ./-p && rmdir ./-p
|
---|
4066 | as_mkdir_p=false
|
---|
4067 | fi
|
---|
4068 |
|
---|
4069 | as_executable_p="test -f"
|
---|
4070 |
|
---|
4071 | # Sed expression to map a string onto a valid CPP name.
|
---|
4072 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
4073 |
|
---|
4074 | # Sed expression to map a string onto a valid variable name.
|
---|
4075 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
4076 |
|
---|
4077 |
|
---|
4078 | # IFS
|
---|
4079 | # We need space, tab and new line, in precisely that order.
|
---|
4080 | as_nl='
|
---|
4081 | '
|
---|
4082 | IFS=" $as_nl"
|
---|
4083 |
|
---|
4084 | # CDPATH.
|
---|
4085 | $as_unset CDPATH
|
---|
4086 |
|
---|
4087 | exec 6>&1
|
---|
4088 |
|
---|
4089 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
4090 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
4091 | # values after options handling. Logging --version etc. is OK.
|
---|
4092 | exec 5>>config.log
|
---|
4093 | {
|
---|
4094 | echo
|
---|
4095 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
4096 | ## Running $as_me. ##
|
---|
4097 | _ASBOX
|
---|
4098 | } >&5
|
---|
4099 | cat >&5 <<_CSEOF
|
---|
4100 |
|
---|
4101 | This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
|
---|
4102 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
4103 |
|
---|
4104 | CONFIG_FILES = $CONFIG_FILES
|
---|
4105 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
4106 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
4107 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
4108 | $ $0 $@
|
---|
4109 |
|
---|
4110 | _CSEOF
|
---|
4111 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
4112 | echo >&5
|
---|
4113 | _ACEOF
|
---|
4114 |
|
---|
4115 | # Files that config.status was made for.
|
---|
4116 | if test -n "$ac_config_files"; then
|
---|
4117 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
4118 | fi
|
---|
4119 |
|
---|
4120 | if test -n "$ac_config_headers"; then
|
---|
4121 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
4122 | fi
|
---|
4123 |
|
---|
4124 | if test -n "$ac_config_links"; then
|
---|
4125 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
4126 | fi
|
---|
4127 |
|
---|
4128 | if test -n "$ac_config_commands"; then
|
---|
4129 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
4130 | fi
|
---|
4131 |
|
---|
4132 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4133 |
|
---|
4134 | ac_cs_usage="\
|
---|
4135 | \`$as_me' instantiates files from templates according to the
|
---|
4136 | current configuration.
|
---|
4137 |
|
---|
4138 | Usage: $0 [OPTIONS] [FILE]...
|
---|
4139 |
|
---|
4140 | -h, --help print this help, then exit
|
---|
4141 | -V, --version print version number, then exit
|
---|
4142 | -q, --quiet do not print progress messages
|
---|
4143 | -d, --debug don't remove temporary files
|
---|
4144 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
4145 | --file=FILE[:TEMPLATE]
|
---|
4146 | instantiate the configuration file FILE
|
---|
4147 | --header=FILE[:TEMPLATE]
|
---|
4148 | instantiate the configuration header FILE
|
---|
4149 |
|
---|
4150 | Configuration files:
|
---|
4151 | $config_files
|
---|
4152 |
|
---|
4153 | Configuration headers:
|
---|
4154 | $config_headers
|
---|
4155 |
|
---|
4156 | Report bugs to <[email protected]>."
|
---|
4157 | _ACEOF
|
---|
4158 |
|
---|
4159 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
4160 | ac_cs_version="\\
|
---|
4161 | FULL-PACKAGE-NAME config.status VERSION
|
---|
4162 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
4163 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
4164 |
|
---|
4165 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
4166 | This config.status script is free software; the Free Software Foundation
|
---|
4167 | gives unlimited permission to copy, distribute and modify it."
|
---|
4168 | srcdir=$srcdir
|
---|
4169 | INSTALL="$INSTALL"
|
---|
4170 | _ACEOF
|
---|
4171 |
|
---|
4172 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4173 | # If no file are specified by the user, then we need to provide default
|
---|
4174 | # value. By we need to know if files were specified by the user.
|
---|
4175 | ac_need_defaults=:
|
---|
4176 | while test $# != 0
|
---|
4177 | do
|
---|
4178 | case $1 in
|
---|
4179 | --*=*)
|
---|
4180 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
4181 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
4182 | ac_shift=:
|
---|
4183 | ;;
|
---|
4184 | -*)
|
---|
4185 | ac_option=$1
|
---|
4186 | ac_optarg=$2
|
---|
4187 | ac_shift=shift
|
---|
4188 | ;;
|
---|
4189 | *) # This is not an option, so the user has probably given explicit
|
---|
4190 | # arguments.
|
---|
4191 | ac_option=$1
|
---|
4192 | ac_need_defaults=false;;
|
---|
4193 | esac
|
---|
4194 |
|
---|
4195 | case $ac_option in
|
---|
4196 | # Handling of the options.
|
---|
4197 | _ACEOF
|
---|
4198 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4199 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
4200 | ac_cs_recheck=: ;;
|
---|
4201 | --version | --vers* | -V )
|
---|
4202 | echo "$ac_cs_version"; exit 0 ;;
|
---|
4203 | --he | --h)
|
---|
4204 | # Conflict between --help and --header
|
---|
4205 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
4206 | Try \`$0 --help' for more information." >&5
|
---|
4207 | echo "$as_me: error: ambiguous option: $1
|
---|
4208 | Try \`$0 --help' for more information." >&2;}
|
---|
4209 | { (exit 1); exit 1; }; };;
|
---|
4210 | --help | --hel | -h )
|
---|
4211 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
4212 | --debug | --d* | -d )
|
---|
4213 | debug=: ;;
|
---|
4214 | --file | --fil | --fi | --f )
|
---|
4215 | $ac_shift
|
---|
4216 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
4217 | ac_need_defaults=false;;
|
---|
4218 | --header | --heade | --head | --hea )
|
---|
4219 | $ac_shift
|
---|
4220 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
4221 | ac_need_defaults=false;;
|
---|
4222 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
4223 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
4224 | ac_cs_silent=: ;;
|
---|
4225 |
|
---|
4226 | # This is an error.
|
---|
4227 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
4228 | Try \`$0 --help' for more information." >&5
|
---|
4229 | echo "$as_me: error: unrecognized option: $1
|
---|
4230 | Try \`$0 --help' for more information." >&2;}
|
---|
4231 | { (exit 1); exit 1; }; } ;;
|
---|
4232 |
|
---|
4233 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
4234 |
|
---|
4235 | esac
|
---|
4236 | shift
|
---|
4237 | done
|
---|
4238 |
|
---|
4239 | ac_configure_extra_args=
|
---|
4240 |
|
---|
4241 | if $ac_cs_silent; then
|
---|
4242 | exec 6>/dev/null
|
---|
4243 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
4244 | fi
|
---|
4245 |
|
---|
4246 | _ACEOF
|
---|
4247 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
4248 | if \$ac_cs_recheck; then
|
---|
4249 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
4250 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
4251 | fi
|
---|
4252 |
|
---|
4253 | _ACEOF
|
---|
4254 |
|
---|
4255 |
|
---|
4256 |
|
---|
4257 |
|
---|
4258 |
|
---|
4259 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4260 | for ac_config_target in $ac_config_targets
|
---|
4261 | do
|
---|
4262 | case "$ac_config_target" in
|
---|
4263 | # Handling of arguments.
|
---|
4264 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
4265 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
4266 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
4267 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
4268 | { (exit 1); exit 1; }; };;
|
---|
4269 | esac
|
---|
4270 | done
|
---|
4271 |
|
---|
4272 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
4273 | # then the envvar interface is used. Set only those that are not.
|
---|
4274 | # We use the long form for the default assignment because of an extremely
|
---|
4275 | # bizarre bug on SunOS 4.1.3.
|
---|
4276 | if $ac_need_defaults; then
|
---|
4277 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
4278 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
4279 | fi
|
---|
4280 |
|
---|
4281 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
4282 | # simply because there is no reason to put it here, and in addition,
|
---|
4283 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
4284 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
4285 | $debug ||
|
---|
4286 | {
|
---|
4287 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
4288 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
4289 | }
|
---|
4290 |
|
---|
4291 | # Create a (secure) tmp directory for tmp files.
|
---|
4292 |
|
---|
4293 | {
|
---|
4294 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
4295 | test -n "$tmp" && test -d "$tmp"
|
---|
4296 | } ||
|
---|
4297 | {
|
---|
4298 | tmp=./confstat$$-$RANDOM
|
---|
4299 | (umask 077 && mkdir $tmp)
|
---|
4300 | } ||
|
---|
4301 | {
|
---|
4302 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
4303 | { (exit 1); exit 1; }
|
---|
4304 | }
|
---|
4305 |
|
---|
4306 | _ACEOF
|
---|
4307 |
|
---|
4308 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
4309 |
|
---|
4310 | #
|
---|
4311 | # CONFIG_FILES section.
|
---|
4312 | #
|
---|
4313 |
|
---|
4314 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
4315 | # This happens for instance when ./config.status config.h
|
---|
4316 | if test -n "\$CONFIG_FILES"; then
|
---|
4317 | # Protect against being on the right side of a sed subst in config.status.
|
---|
4318 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
4319 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
4320 | s,@SHELL@,$SHELL,;t t
|
---|
4321 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
4322 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
4323 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
4324 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
4325 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
4326 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
4327 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
4328 | s,@prefix@,$prefix,;t t
|
---|
4329 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
4330 | s,@bindir@,$bindir,;t t
|
---|
4331 | s,@sbindir@,$sbindir,;t t
|
---|
4332 | s,@libexecdir@,$libexecdir,;t t
|
---|
4333 | s,@datadir@,$datadir,;t t
|
---|
4334 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
4335 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
4336 | s,@localstatedir@,$localstatedir,;t t
|
---|
4337 | s,@libdir@,$libdir,;t t
|
---|
4338 | s,@includedir@,$includedir,;t t
|
---|
4339 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
4340 | s,@infodir@,$infodir,;t t
|
---|
4341 | s,@mandir@,$mandir,;t t
|
---|
4342 | s,@build_alias@,$build_alias,;t t
|
---|
4343 | s,@host_alias@,$host_alias,;t t
|
---|
4344 | s,@target_alias@,$target_alias,;t t
|
---|
4345 | s,@DEFS@,$DEFS,;t t
|
---|
4346 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
4347 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
4348 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
4349 | s,@LIBS@,$LIBS,;t t
|
---|
4350 | s,@CXX@,$CXX,;t t
|
---|
4351 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
4352 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
4353 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
4354 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
4355 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
4356 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
4357 | s,@CC@,$CC,;t t
|
---|
4358 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
4359 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
4360 | s,@CPP@,$CPP,;t t
|
---|
4361 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
4362 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
4363 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
4364 | s,@EGREP@,$EGREP,;t t
|
---|
4365 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
4366 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
4367 | CEOF
|
---|
4368 |
|
---|
4369 | _ACEOF
|
---|
4370 |
|
---|
4371 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4372 | # Split the substitutions into bite-sized pieces for seds with
|
---|
4373 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
4374 | ac_max_sed_lines=48
|
---|
4375 | ac_sed_frag=1 # Number of current file.
|
---|
4376 | ac_beg=1 # First line for current file.
|
---|
4377 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
4378 | ac_more_lines=:
|
---|
4379 | ac_sed_cmds=
|
---|
4380 | while $ac_more_lines; do
|
---|
4381 | if test $ac_beg -gt 1; then
|
---|
4382 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
4383 | else
|
---|
4384 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
4385 | fi
|
---|
4386 | if test ! -s $tmp/subs.frag; then
|
---|
4387 | ac_more_lines=false
|
---|
4388 | else
|
---|
4389 | # The purpose of the label and of the branching condition is to
|
---|
4390 | # speed up the sed processing (if there are no `@' at all, there
|
---|
4391 | # is no need to browse any of the substitutions).
|
---|
4392 | # These are the two extra sed commands mentioned above.
|
---|
4393 | (echo ':t
|
---|
4394 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
4395 | if test -z "$ac_sed_cmds"; then
|
---|
4396 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
4397 | else
|
---|
4398 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
4399 | fi
|
---|
4400 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
4401 | ac_beg=$ac_end
|
---|
4402 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
4403 | fi
|
---|
4404 | done
|
---|
4405 | if test -z "$ac_sed_cmds"; then
|
---|
4406 | ac_sed_cmds=cat
|
---|
4407 | fi
|
---|
4408 | fi # test -n "$CONFIG_FILES"
|
---|
4409 |
|
---|
4410 | _ACEOF
|
---|
4411 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4412 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
4413 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4414 | case $ac_file in
|
---|
4415 | - | *:- | *:-:* ) # input from stdin
|
---|
4416 | cat >$tmp/stdin
|
---|
4417 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
4418 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
4419 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
4420 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
4421 | * ) ac_file_in=$ac_file.in ;;
|
---|
4422 | esac
|
---|
4423 |
|
---|
4424 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
4425 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
4426 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4427 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
4428 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
4429 | X"$ac_file" : 'X\(/\)' \| \
|
---|
4430 | . : '\(.\)' 2>/dev/null ||
|
---|
4431 | echo X"$ac_file" |
|
---|
4432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4433 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4434 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4435 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4436 | s/.*/./; q'`
|
---|
4437 | { if $as_mkdir_p; then
|
---|
4438 | mkdir -p "$ac_dir"
|
---|
4439 | else
|
---|
4440 | as_dir="$ac_dir"
|
---|
4441 | as_dirs=
|
---|
4442 | while test ! -d "$as_dir"; do
|
---|
4443 | as_dirs="$as_dir $as_dirs"
|
---|
4444 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
4445 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4446 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
4447 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
4448 | X"$as_dir" : 'X\(/\)' \| \
|
---|
4449 | . : '\(.\)' 2>/dev/null ||
|
---|
4450 | echo X"$as_dir" |
|
---|
4451 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4452 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4453 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4454 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4455 | s/.*/./; q'`
|
---|
4456 | done
|
---|
4457 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
4458 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
4459 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
4460 | { (exit 1); exit 1; }; }; }
|
---|
4461 |
|
---|
4462 | ac_builddir=.
|
---|
4463 |
|
---|
4464 | if test "$ac_dir" != .; then
|
---|
4465 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
4466 | # A "../" for each directory in $ac_dir_suffix.
|
---|
4467 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
4468 | else
|
---|
4469 | ac_dir_suffix= ac_top_builddir=
|
---|
4470 | fi
|
---|
4471 |
|
---|
4472 | case $srcdir in
|
---|
4473 | .) # No --srcdir option. We are building in place.
|
---|
4474 | ac_srcdir=.
|
---|
4475 | if test -z "$ac_top_builddir"; then
|
---|
4476 | ac_top_srcdir=.
|
---|
4477 | else
|
---|
4478 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
4479 | fi ;;
|
---|
4480 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
4481 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
4482 | ac_top_srcdir=$srcdir ;;
|
---|
4483 | *) # Relative path.
|
---|
4484 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
4485 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
4486 | esac
|
---|
4487 |
|
---|
4488 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
4489 | # the directories may not exist.
|
---|
4490 | case `pwd` in
|
---|
4491 | .) ac_abs_builddir="$ac_dir";;
|
---|
4492 | *)
|
---|
4493 | case "$ac_dir" in
|
---|
4494 | .) ac_abs_builddir=`pwd`;;
|
---|
4495 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
4496 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
4497 | esac;;
|
---|
4498 | esac
|
---|
4499 | case $ac_abs_builddir in
|
---|
4500 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
4501 | *)
|
---|
4502 | case ${ac_top_builddir}. in
|
---|
4503 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
4504 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
4505 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
4506 | esac;;
|
---|
4507 | esac
|
---|
4508 | case $ac_abs_builddir in
|
---|
4509 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
4510 | *)
|
---|
4511 | case $ac_srcdir in
|
---|
4512 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
4513 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
4514 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
4515 | esac;;
|
---|
4516 | esac
|
---|
4517 | case $ac_abs_builddir in
|
---|
4518 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
4519 | *)
|
---|
4520 | case $ac_top_srcdir in
|
---|
4521 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
4522 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
4523 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
4524 | esac;;
|
---|
4525 | esac
|
---|
4526 |
|
---|
4527 |
|
---|
4528 | case $INSTALL in
|
---|
4529 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
4530 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
4531 | esac
|
---|
4532 |
|
---|
4533 | if test x"$ac_file" != x-; then
|
---|
4534 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
4535 | echo "$as_me: creating $ac_file" >&6;}
|
---|
4536 | rm -f "$ac_file"
|
---|
4537 | fi
|
---|
4538 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
4539 | # use $as_me), people would be surprised to read:
|
---|
4540 | # /* config.h. Generated by config.status. */
|
---|
4541 | if test x"$ac_file" = x-; then
|
---|
4542 | configure_input=
|
---|
4543 | else
|
---|
4544 | configure_input="$ac_file. "
|
---|
4545 | fi
|
---|
4546 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
4547 | sed 's,.*/,,'` by configure."
|
---|
4548 |
|
---|
4549 | # First look for the input files in the build tree, otherwise in the
|
---|
4550 | # src tree.
|
---|
4551 | ac_file_inputs=`IFS=:
|
---|
4552 | for f in $ac_file_in; do
|
---|
4553 | case $f in
|
---|
4554 | -) echo $tmp/stdin ;;
|
---|
4555 | [\\/$]*)
|
---|
4556 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
4557 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
4558 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
4559 | { (exit 1); exit 1; }; }
|
---|
4560 | echo "$f";;
|
---|
4561 | *) # Relative
|
---|
4562 | if test -f "$f"; then
|
---|
4563 | # Build tree
|
---|
4564 | echo "$f"
|
---|
4565 | elif test -f "$srcdir/$f"; then
|
---|
4566 | # Source tree
|
---|
4567 | echo "$srcdir/$f"
|
---|
4568 | else
|
---|
4569 | # /dev/null tree
|
---|
4570 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
4571 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
4572 | { (exit 1); exit 1; }; }
|
---|
4573 | fi;;
|
---|
4574 | esac
|
---|
4575 | done` || { (exit 1); exit 1; }
|
---|
4576 | _ACEOF
|
---|
4577 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
4578 | sed "$ac_vpsub
|
---|
4579 | $extrasub
|
---|
4580 | _ACEOF
|
---|
4581 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4582 | :t
|
---|
4583 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
4584 | s,@configure_input@,$configure_input,;t t
|
---|
4585 | s,@srcdir@,$ac_srcdir,;t t
|
---|
4586 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
4587 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
4588 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
4589 | s,@builddir@,$ac_builddir,;t t
|
---|
4590 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
4591 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
4592 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
4593 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
4594 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
4595 | rm -f $tmp/stdin
|
---|
4596 | if test x"$ac_file" != x-; then
|
---|
4597 | mv $tmp/out $ac_file
|
---|
4598 | else
|
---|
4599 | cat $tmp/out
|
---|
4600 | rm -f $tmp/out
|
---|
4601 | fi
|
---|
4602 |
|
---|
4603 | done
|
---|
4604 | _ACEOF
|
---|
4605 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4606 |
|
---|
4607 | #
|
---|
4608 | # CONFIG_HEADER section.
|
---|
4609 | #
|
---|
4610 |
|
---|
4611 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
4612 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
4613 | #
|
---|
4614 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
4615 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
4616 | ac_dB='[ ].*$,\1#\2'
|
---|
4617 | ac_dC=' '
|
---|
4618 | ac_dD=',;t'
|
---|
4619 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
4620 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
4621 | ac_uB='$,\1#\2define\3'
|
---|
4622 | ac_uC=' '
|
---|
4623 | ac_uD=',;t'
|
---|
4624 |
|
---|
4625 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
4626 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
4627 | case $ac_file in
|
---|
4628 | - | *:- | *:-:* ) # input from stdin
|
---|
4629 | cat >$tmp/stdin
|
---|
4630 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
4631 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
4632 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
4633 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
4634 | * ) ac_file_in=$ac_file.in ;;
|
---|
4635 | esac
|
---|
4636 |
|
---|
4637 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
4638 | echo "$as_me: creating $ac_file" >&6;}
|
---|
4639 |
|
---|
4640 | # First look for the input files in the build tree, otherwise in the
|
---|
4641 | # src tree.
|
---|
4642 | ac_file_inputs=`IFS=:
|
---|
4643 | for f in $ac_file_in; do
|
---|
4644 | case $f in
|
---|
4645 | -) echo $tmp/stdin ;;
|
---|
4646 | [\\/$]*)
|
---|
4647 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
4648 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
4649 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
4650 | { (exit 1); exit 1; }; }
|
---|
4651 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
4652 | echo "$f";;
|
---|
4653 | *) # Relative
|
---|
4654 | if test -f "$f"; then
|
---|
4655 | # Build tree
|
---|
4656 | echo "$f"
|
---|
4657 | elif test -f "$srcdir/$f"; then
|
---|
4658 | # Source tree
|
---|
4659 | echo "$srcdir/$f"
|
---|
4660 | else
|
---|
4661 | # /dev/null tree
|
---|
4662 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
4663 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
4664 | { (exit 1); exit 1; }; }
|
---|
4665 | fi;;
|
---|
4666 | esac
|
---|
4667 | done` || { (exit 1); exit 1; }
|
---|
4668 | # Remove the trailing spaces.
|
---|
4669 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
4670 |
|
---|
4671 | _ACEOF
|
---|
4672 |
|
---|
4673 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
4674 | # `conftest.undefs', that substitutes the proper values into
|
---|
4675 | # config.h.in to produce config.h. The first handles `#define'
|
---|
4676 | # templates, and the second `#undef' templates.
|
---|
4677 | # And first: Protect against being on the right side of a sed subst in
|
---|
4678 | # config.status. Protect against being in an unquoted here document
|
---|
4679 | # in config.status.
|
---|
4680 | rm -f conftest.defines conftest.undefs
|
---|
4681 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
4682 | # Putting comments in sed scripts is not portable.
|
---|
4683 | #
|
---|
4684 | # `end' is used to avoid that the second main sed command (meant for
|
---|
4685 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
4686 | # See the Autoconf documentation for `clear'.
|
---|
4687 | cat >confdef2sed.sed <<\_ACEOF
|
---|
4688 | s/[\\&,]/\\&/g
|
---|
4689 | s,[\\$`],\\&,g
|
---|
4690 | t clear
|
---|
4691 | : clear
|
---|
4692 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
4693 | t end
|
---|
4694 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
4695 | : end
|
---|
4696 | _ACEOF
|
---|
4697 | # If some macros were called several times there might be several times
|
---|
4698 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
4699 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
4700 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
4701 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
4702 | rm -f confdef2sed.sed
|
---|
4703 |
|
---|
4704 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
4705 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
4706 | # on some systems where configure will not decide to define it.
|
---|
4707 | cat >>conftest.undefs <<\_ACEOF
|
---|
4708 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
4709 | _ACEOF
|
---|
4710 |
|
---|
4711 | # Break up conftest.defines because some shells have a limit on the size
|
---|
4712 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
4713 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
4714 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
4715 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
4716 | echo ' :' >>$CONFIG_STATUS
|
---|
4717 | rm -f conftest.tail
|
---|
4718 | while grep . conftest.defines >/dev/null
|
---|
4719 | do
|
---|
4720 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
4721 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
4722 | # Speed up: don't consider the non `#define' lines.
|
---|
4723 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
4724 | # Work around the forget-to-reset-the-flag bug.
|
---|
4725 | echo 't clr' >>$CONFIG_STATUS
|
---|
4726 | echo ': clr' >>$CONFIG_STATUS
|
---|
4727 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
4728 | echo 'CEOF
|
---|
4729 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
4730 | rm -f $tmp/in
|
---|
4731 | mv $tmp/out $tmp/in
|
---|
4732 | ' >>$CONFIG_STATUS
|
---|
4733 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
4734 | rm -f conftest.defines
|
---|
4735 | mv conftest.tail conftest.defines
|
---|
4736 | done
|
---|
4737 | rm -f conftest.defines
|
---|
4738 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
4739 | echo >>$CONFIG_STATUS
|
---|
4740 |
|
---|
4741 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
4742 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
4743 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
4744 | rm -f conftest.tail
|
---|
4745 | while grep . conftest.undefs >/dev/null
|
---|
4746 | do
|
---|
4747 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
4748 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
4749 | # Speed up: don't consider the non `#undef'
|
---|
4750 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
4751 | # Work around the forget-to-reset-the-flag bug.
|
---|
4752 | echo 't clr' >>$CONFIG_STATUS
|
---|
4753 | echo ': clr' >>$CONFIG_STATUS
|
---|
4754 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
4755 | echo 'CEOF
|
---|
4756 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
4757 | rm -f $tmp/in
|
---|
4758 | mv $tmp/out $tmp/in
|
---|
4759 | ' >>$CONFIG_STATUS
|
---|
4760 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
4761 | rm -f conftest.undefs
|
---|
4762 | mv conftest.tail conftest.undefs
|
---|
4763 | done
|
---|
4764 | rm -f conftest.undefs
|
---|
4765 |
|
---|
4766 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4767 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
4768 | # use $as_me), people would be surprised to read:
|
---|
4769 | # /* config.h. Generated by config.status. */
|
---|
4770 | if test x"$ac_file" = x-; then
|
---|
4771 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
4772 | else
|
---|
4773 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
4774 | fi
|
---|
4775 | cat $tmp/in >>$tmp/config.h
|
---|
4776 | rm -f $tmp/in
|
---|
4777 | if test x"$ac_file" != x-; then
|
---|
4778 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
4779 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
4780 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
4781 | else
|
---|
4782 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
4783 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4784 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
4785 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
4786 | X"$ac_file" : 'X\(/\)' \| \
|
---|
4787 | . : '\(.\)' 2>/dev/null ||
|
---|
4788 | echo X"$ac_file" |
|
---|
4789 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4790 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4791 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4792 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4793 | s/.*/./; q'`
|
---|
4794 | { if $as_mkdir_p; then
|
---|
4795 | mkdir -p "$ac_dir"
|
---|
4796 | else
|
---|
4797 | as_dir="$ac_dir"
|
---|
4798 | as_dirs=
|
---|
4799 | while test ! -d "$as_dir"; do
|
---|
4800 | as_dirs="$as_dir $as_dirs"
|
---|
4801 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
4802 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4803 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
4804 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
4805 | X"$as_dir" : 'X\(/\)' \| \
|
---|
4806 | . : '\(.\)' 2>/dev/null ||
|
---|
4807 | echo X"$as_dir" |
|
---|
4808 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4809 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4810 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4811 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4812 | s/.*/./; q'`
|
---|
4813 | done
|
---|
4814 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
4815 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
4816 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
4817 | { (exit 1); exit 1; }; }; }
|
---|
4818 |
|
---|
4819 | rm -f $ac_file
|
---|
4820 | mv $tmp/config.h $ac_file
|
---|
4821 | fi
|
---|
4822 | else
|
---|
4823 | cat $tmp/config.h
|
---|
4824 | rm -f $tmp/config.h
|
---|
4825 | fi
|
---|
4826 | done
|
---|
4827 | _ACEOF
|
---|
4828 |
|
---|
4829 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
4830 |
|
---|
4831 | { (exit 0); exit 0; }
|
---|
4832 | _ACEOF
|
---|
4833 | chmod +x $CONFIG_STATUS
|
---|
4834 | ac_clean_files=$ac_clean_files_save
|
---|
4835 |
|
---|
4836 |
|
---|
4837 | # configure is writing to config.log, and then calls config.status.
|
---|
4838 | # config.status does its own redirection, appending to config.log.
|
---|
4839 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
4840 | # by configure, so config.status won't be able to write to it; its
|
---|
4841 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
4842 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
4843 | # appended to by config.status. When coming back to configure, we
|
---|
4844 | # need to make the FD available again.
|
---|
4845 | if test "$no_create" != yes; then
|
---|
4846 | ac_cs_success=:
|
---|
4847 | ac_config_status_args=
|
---|
4848 | test "$silent" = yes &&
|
---|
4849 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
4850 | exec 5>/dev/null
|
---|
4851 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
4852 | exec 5>>config.log
|
---|
4853 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
4854 | # would make configure fail if this is the last instruction.
|
---|
4855 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
4856 | fi
|
---|
4857 |
|
---|