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