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