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