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="pxeconfig.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 pyexecdir PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pkgpyexecdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP DEBUG pxeconfig_conf SYSTEM_PXECONFIG_CONF 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_CPP_set=${CPP+set} |
---|
733 | ac_env_CPP_value=$CPP |
---|
734 | ac_cv_env_CPP_set=${CPP+set} |
---|
735 | ac_cv_env_CPP_value=$CPP |
---|
736 | |
---|
737 | # |
---|
738 | # Report the --help message. |
---|
739 | # |
---|
740 | if test "$ac_init_help" = "long"; then |
---|
741 | # Omit some internal or obsolete options to make the list less imposing. |
---|
742 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
743 | cat <<_ACEOF |
---|
744 | \`configure' configures this package to adapt to many kinds of systems. |
---|
745 | |
---|
746 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
747 | |
---|
748 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
749 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
750 | |
---|
751 | Defaults for the options are specified in brackets. |
---|
752 | |
---|
753 | Configuration: |
---|
754 | -h, --help display this help and exit |
---|
755 | --help=short display options specific to this package |
---|
756 | --help=recursive display the short help of all the included packages |
---|
757 | -V, --version display version information and exit |
---|
758 | -q, --quiet, --silent do not print \`checking...' messages |
---|
759 | --cache-file=FILE cache test results in FILE [disabled] |
---|
760 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
761 | -n, --no-create do not create output files |
---|
762 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
763 | |
---|
764 | _ACEOF |
---|
765 | |
---|
766 | cat <<_ACEOF |
---|
767 | Installation directories: |
---|
768 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
769 | [$ac_default_prefix] |
---|
770 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
771 | [PREFIX] |
---|
772 | |
---|
773 | By default, \`make install' will install all the files in |
---|
774 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
775 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
776 | for instance \`--prefix=\$HOME'. |
---|
777 | |
---|
778 | For better control, use the options below. |
---|
779 | |
---|
780 | Fine tuning of the installation directories: |
---|
781 | --bindir=DIR user executables [EPREFIX/bin] |
---|
782 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
783 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
784 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
785 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
786 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
787 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
788 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
789 | --includedir=DIR C header files [PREFIX/include] |
---|
790 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
791 | --infodir=DIR info documentation [PREFIX/info] |
---|
792 | --mandir=DIR man documentation [PREFIX/man] |
---|
793 | _ACEOF |
---|
794 | |
---|
795 | cat <<\_ACEOF |
---|
796 | _ACEOF |
---|
797 | fi |
---|
798 | |
---|
799 | if test -n "$ac_init_help"; then |
---|
800 | |
---|
801 | cat <<\_ACEOF |
---|
802 | |
---|
803 | Some influential environment variables: |
---|
804 | CC C compiler command |
---|
805 | CFLAGS C compiler flags |
---|
806 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
807 | nonstandard directory <lib dir> |
---|
808 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
809 | headers in a nonstandard directory <include dir> |
---|
810 | CPP C preprocessor |
---|
811 | |
---|
812 | Use these variables to override the choices made by `configure' or to help |
---|
813 | it to find libraries and programs with nonstandard names/locations. |
---|
814 | |
---|
815 | _ACEOF |
---|
816 | fi |
---|
817 | |
---|
818 | if test "$ac_init_help" = "recursive"; then |
---|
819 | # If there are subdirs, report their specific --help. |
---|
820 | ac_popdir=`pwd` |
---|
821 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
822 | test -d $ac_dir || continue |
---|
823 | ac_builddir=. |
---|
824 | |
---|
825 | if test "$ac_dir" != .; then |
---|
826 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
827 | # A "../" for each directory in $ac_dir_suffix. |
---|
828 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
829 | else |
---|
830 | ac_dir_suffix= ac_top_builddir= |
---|
831 | fi |
---|
832 | |
---|
833 | case $srcdir in |
---|
834 | .) # No --srcdir option. We are building in place. |
---|
835 | ac_srcdir=. |
---|
836 | if test -z "$ac_top_builddir"; then |
---|
837 | ac_top_srcdir=. |
---|
838 | else |
---|
839 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
840 | fi ;; |
---|
841 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
842 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
843 | ac_top_srcdir=$srcdir ;; |
---|
844 | *) # Relative path. |
---|
845 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
846 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
847 | esac |
---|
848 | |
---|
849 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
850 | # the directories may not exist. |
---|
851 | case `pwd` in |
---|
852 | .) ac_abs_builddir="$ac_dir";; |
---|
853 | *) |
---|
854 | case "$ac_dir" in |
---|
855 | .) ac_abs_builddir=`pwd`;; |
---|
856 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
857 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
858 | esac;; |
---|
859 | esac |
---|
860 | case $ac_abs_builddir in |
---|
861 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
862 | *) |
---|
863 | case ${ac_top_builddir}. in |
---|
864 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
865 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
866 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
867 | esac;; |
---|
868 | esac |
---|
869 | case $ac_abs_builddir in |
---|
870 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
871 | *) |
---|
872 | case $ac_srcdir in |
---|
873 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
874 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
875 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
876 | esac;; |
---|
877 | esac |
---|
878 | case $ac_abs_builddir in |
---|
879 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
880 | *) |
---|
881 | case $ac_top_srcdir in |
---|
882 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
883 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
884 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
885 | esac;; |
---|
886 | esac |
---|
887 | |
---|
888 | cd $ac_dir |
---|
889 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
890 | if test -f $ac_srcdir/configure.gnu; then |
---|
891 | echo |
---|
892 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
893 | elif test -f $ac_srcdir/configure; then |
---|
894 | echo |
---|
895 | $SHELL $ac_srcdir/configure --help=recursive |
---|
896 | elif test -f $ac_srcdir/configure.ac || |
---|
897 | test -f $ac_srcdir/configure.in; then |
---|
898 | echo |
---|
899 | $ac_configure --help |
---|
900 | else |
---|
901 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
902 | fi |
---|
903 | cd "$ac_popdir" |
---|
904 | done |
---|
905 | fi |
---|
906 | |
---|
907 | test -n "$ac_init_help" && exit 0 |
---|
908 | if $ac_init_version; then |
---|
909 | cat <<\_ACEOF |
---|
910 | |
---|
911 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
912 | This configure script is free software; the Free Software Foundation |
---|
913 | gives unlimited permission to copy, distribute and modify it. |
---|
914 | _ACEOF |
---|
915 | exit 0 |
---|
916 | fi |
---|
917 | exec 5>config.log |
---|
918 | cat >&5 <<_ACEOF |
---|
919 | This file contains any messages produced by compilers while |
---|
920 | running configure, to aid debugging if configure makes a mistake. |
---|
921 | |
---|
922 | It was created by $as_me, which was |
---|
923 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
924 | |
---|
925 | $ $0 $@ |
---|
926 | |
---|
927 | _ACEOF |
---|
928 | { |
---|
929 | cat <<_ASUNAME |
---|
930 | ## --------- ## |
---|
931 | ## Platform. ## |
---|
932 | ## --------- ## |
---|
933 | |
---|
934 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
935 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
936 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
937 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
938 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
939 | |
---|
940 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
941 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
942 | |
---|
943 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
944 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
945 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
946 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
947 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
948 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
949 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
950 | |
---|
951 | _ASUNAME |
---|
952 | |
---|
953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
954 | for as_dir in $PATH |
---|
955 | do |
---|
956 | IFS=$as_save_IFS |
---|
957 | test -z "$as_dir" && as_dir=. |
---|
958 | echo "PATH: $as_dir" |
---|
959 | done |
---|
960 | |
---|
961 | } >&5 |
---|
962 | |
---|
963 | cat >&5 <<_ACEOF |
---|
964 | |
---|
965 | |
---|
966 | ## ----------- ## |
---|
967 | ## Core tests. ## |
---|
968 | ## ----------- ## |
---|
969 | |
---|
970 | _ACEOF |
---|
971 | |
---|
972 | |
---|
973 | # Keep a trace of the command line. |
---|
974 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
975 | # Strip out --silent because we don't want to record it for future runs. |
---|
976 | # Also quote any args containing shell meta-characters. |
---|
977 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
978 | ac_configure_args= |
---|
979 | ac_configure_args0= |
---|
980 | ac_configure_args1= |
---|
981 | ac_sep= |
---|
982 | ac_must_keep_next=false |
---|
983 | for ac_pass in 1 2 |
---|
984 | do |
---|
985 | for ac_arg |
---|
986 | do |
---|
987 | case $ac_arg in |
---|
988 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
990 | | -silent | --silent | --silen | --sile | --sil) |
---|
991 | continue ;; |
---|
992 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
993 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
994 | esac |
---|
995 | case $ac_pass in |
---|
996 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
997 | 2) |
---|
998 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
999 | if test $ac_must_keep_next = true; then |
---|
1000 | ac_must_keep_next=false # Got value, back to normal. |
---|
1001 | else |
---|
1002 | case $ac_arg in |
---|
1003 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1004 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1005 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1006 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1007 | case "$ac_configure_args0 " in |
---|
1008 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1009 | esac |
---|
1010 | ;; |
---|
1011 | -* ) ac_must_keep_next=true ;; |
---|
1012 | esac |
---|
1013 | fi |
---|
1014 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1015 | # Get rid of the leading space. |
---|
1016 | ac_sep=" " |
---|
1017 | ;; |
---|
1018 | esac |
---|
1019 | done |
---|
1020 | done |
---|
1021 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1022 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1023 | |
---|
1024 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1025 | # config.log. We remove comments because anyway the quotes in there |
---|
1026 | # would cause problems or look ugly. |
---|
1027 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1028 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1029 | trap 'exit_status=$? |
---|
1030 | # Save into config.log some information that might help in debugging. |
---|
1031 | { |
---|
1032 | echo |
---|
1033 | |
---|
1034 | cat <<\_ASBOX |
---|
1035 | ## ---------------- ## |
---|
1036 | ## Cache variables. ## |
---|
1037 | ## ---------------- ## |
---|
1038 | _ASBOX |
---|
1039 | echo |
---|
1040 | # The following way of writing the cache mishandles newlines in values, |
---|
1041 | { |
---|
1042 | (set) 2>&1 | |
---|
1043 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1044 | *ac_space=\ *) |
---|
1045 | sed -n \ |
---|
1046 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1047 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1048 | ;; |
---|
1049 | *) |
---|
1050 | sed -n \ |
---|
1051 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1052 | ;; |
---|
1053 | esac; |
---|
1054 | } |
---|
1055 | echo |
---|
1056 | |
---|
1057 | cat <<\_ASBOX |
---|
1058 | ## ----------------- ## |
---|
1059 | ## Output variables. ## |
---|
1060 | ## ----------------- ## |
---|
1061 | _ASBOX |
---|
1062 | echo |
---|
1063 | for ac_var in $ac_subst_vars |
---|
1064 | do |
---|
1065 | eval ac_val=$`echo $ac_var` |
---|
1066 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1067 | done | sort |
---|
1068 | echo |
---|
1069 | |
---|
1070 | if test -n "$ac_subst_files"; then |
---|
1071 | cat <<\_ASBOX |
---|
1072 | ## ------------- ## |
---|
1073 | ## Output files. ## |
---|
1074 | ## ------------- ## |
---|
1075 | _ASBOX |
---|
1076 | echo |
---|
1077 | for ac_var in $ac_subst_files |
---|
1078 | do |
---|
1079 | eval ac_val=$`echo $ac_var` |
---|
1080 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1081 | done | sort |
---|
1082 | echo |
---|
1083 | fi |
---|
1084 | |
---|
1085 | if test -s confdefs.h; then |
---|
1086 | cat <<\_ASBOX |
---|
1087 | ## ----------- ## |
---|
1088 | ## confdefs.h. ## |
---|
1089 | ## ----------- ## |
---|
1090 | _ASBOX |
---|
1091 | echo |
---|
1092 | sed "/^$/d" confdefs.h | sort |
---|
1093 | echo |
---|
1094 | fi |
---|
1095 | test "$ac_signal" != 0 && |
---|
1096 | echo "$as_me: caught signal $ac_signal" |
---|
1097 | echo "$as_me: exit $exit_status" |
---|
1098 | } >&5 |
---|
1099 | rm -f core *.core && |
---|
1100 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1101 | exit $exit_status |
---|
1102 | ' 0 |
---|
1103 | for ac_signal in 1 2 13 15; do |
---|
1104 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1105 | done |
---|
1106 | ac_signal=0 |
---|
1107 | |
---|
1108 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1109 | rm -rf conftest* confdefs.h |
---|
1110 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1111 | echo >confdefs.h |
---|
1112 | |
---|
1113 | # Predefined preprocessor variables. |
---|
1114 | |
---|
1115 | cat >>confdefs.h <<_ACEOF |
---|
1116 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1117 | _ACEOF |
---|
1118 | |
---|
1119 | |
---|
1120 | cat >>confdefs.h <<_ACEOF |
---|
1121 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1122 | _ACEOF |
---|
1123 | |
---|
1124 | |
---|
1125 | cat >>confdefs.h <<_ACEOF |
---|
1126 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1127 | _ACEOF |
---|
1128 | |
---|
1129 | |
---|
1130 | cat >>confdefs.h <<_ACEOF |
---|
1131 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1132 | _ACEOF |
---|
1133 | |
---|
1134 | |
---|
1135 | cat >>confdefs.h <<_ACEOF |
---|
1136 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1137 | _ACEOF |
---|
1138 | |
---|
1139 | |
---|
1140 | # Let the site file select an alternate cache file if it wants to. |
---|
1141 | # Prefer explicitly selected file to automatically selected ones. |
---|
1142 | if test -z "$CONFIG_SITE"; then |
---|
1143 | if test "x$prefix" != xNONE; then |
---|
1144 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1145 | else |
---|
1146 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1147 | fi |
---|
1148 | fi |
---|
1149 | for ac_site_file in $CONFIG_SITE; do |
---|
1150 | if test -r "$ac_site_file"; then |
---|
1151 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1152 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1153 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1154 | . "$ac_site_file" |
---|
1155 | fi |
---|
1156 | done |
---|
1157 | |
---|
1158 | if test -r "$cache_file"; then |
---|
1159 | # Some versions of bash will fail to source /dev/null (special |
---|
1160 | # files actually), so we avoid doing that. |
---|
1161 | if test -f "$cache_file"; then |
---|
1162 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1163 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1164 | case $cache_file in |
---|
1165 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1166 | *) . ./$cache_file;; |
---|
1167 | esac |
---|
1168 | fi |
---|
1169 | else |
---|
1170 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1171 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1172 | >$cache_file |
---|
1173 | fi |
---|
1174 | |
---|
1175 | # Check that the precious variables saved in the cache have kept the same |
---|
1176 | # value. |
---|
1177 | ac_cache_corrupted=false |
---|
1178 | for ac_var in `(set) 2>&1 | |
---|
1179 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1180 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1181 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1182 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1183 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1184 | case $ac_old_set,$ac_new_set in |
---|
1185 | set,) |
---|
1186 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1187 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1188 | ac_cache_corrupted=: ;; |
---|
1189 | ,set) |
---|
1190 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1191 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1192 | ac_cache_corrupted=: ;; |
---|
1193 | ,);; |
---|
1194 | *) |
---|
1195 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1196 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1197 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1198 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1199 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1200 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1201 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1202 | ac_cache_corrupted=: |
---|
1203 | fi;; |
---|
1204 | esac |
---|
1205 | # Pass precious variables to config.status. |
---|
1206 | if test "$ac_new_set" = set; then |
---|
1207 | case $ac_new_val in |
---|
1208 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1209 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1210 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1211 | esac |
---|
1212 | case " $ac_configure_args " in |
---|
1213 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1214 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1215 | esac |
---|
1216 | fi |
---|
1217 | done |
---|
1218 | if $ac_cache_corrupted; then |
---|
1219 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1220 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1221 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1222 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1223 | { (exit 1); exit 1; }; } |
---|
1224 | fi |
---|
1225 | |
---|
1226 | ac_ext=c |
---|
1227 | ac_cpp='$CPP $CPPFLAGS' |
---|
1228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1231 | |
---|
1232 | |
---|
1233 | |
---|
1234 | |
---|
1235 | |
---|
1236 | |
---|
1237 | |
---|
1238 | |
---|
1239 | |
---|
1240 | |
---|
1241 | |
---|
1242 | |
---|
1243 | |
---|
1244 | |
---|
1245 | |
---|
1246 | |
---|
1247 | |
---|
1248 | |
---|
1249 | |
---|
1250 | |
---|
1251 | |
---|
1252 | |
---|
1253 | |
---|
1254 | |
---|
1255 | #DEBUG=0 |
---|
1256 | |
---|
1257 | |
---|
1258 | |
---|
1259 | |
---|
1260 | |
---|
1261 | # Find any Python interpreter. |
---|
1262 | if test -z "$PYTHON"; then |
---|
1263 | for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 |
---|
1264 | do |
---|
1265 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1266 | set dummy $ac_prog; ac_word=$2 |
---|
1267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1269 | if test "${ac_cv_path_PYTHON+set}" = set; then |
---|
1270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1271 | else |
---|
1272 | case $PYTHON in |
---|
1273 | [\\/]* | ?:[\\/]*) |
---|
1274 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
---|
1275 | ;; |
---|
1276 | *) |
---|
1277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1278 | for as_dir in $PATH |
---|
1279 | do |
---|
1280 | IFS=$as_save_IFS |
---|
1281 | test -z "$as_dir" && as_dir=. |
---|
1282 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1284 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
---|
1285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1286 | break 2 |
---|
1287 | fi |
---|
1288 | done |
---|
1289 | done |
---|
1290 | |
---|
1291 | ;; |
---|
1292 | esac |
---|
1293 | fi |
---|
1294 | PYTHON=$ac_cv_path_PYTHON |
---|
1295 | |
---|
1296 | if test -n "$PYTHON"; then |
---|
1297 | echo "$as_me:$LINENO: result: $PYTHON" >&5 |
---|
1298 | echo "${ECHO_T}$PYTHON" >&6 |
---|
1299 | else |
---|
1300 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1301 | echo "${ECHO_T}no" >&6 |
---|
1302 | fi |
---|
1303 | |
---|
1304 | test -n "$PYTHON" && break |
---|
1305 | done |
---|
1306 | test -n "$PYTHON" || PYTHON=":" |
---|
1307 | |
---|
1308 | fi |
---|
1309 | am_display_PYTHON=python |
---|
1310 | |
---|
1311 | |
---|
1312 | if test "$PYTHON" = :; then |
---|
1313 | { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5 |
---|
1314 | echo "$as_me: error: no suitable Python interpreter found" >&2;} |
---|
1315 | { (exit 1); exit 1; }; } |
---|
1316 | else |
---|
1317 | |
---|
1318 | |
---|
1319 | echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5 |
---|
1320 | echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6 |
---|
1321 | if test "${am_cv_python_version+set}" = set; then |
---|
1322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1323 | else |
---|
1324 | am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"` |
---|
1325 | fi |
---|
1326 | echo "$as_me:$LINENO: result: $am_cv_python_version" >&5 |
---|
1327 | echo "${ECHO_T}$am_cv_python_version" >&6 |
---|
1328 | PYTHON_VERSION=$am_cv_python_version |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | PYTHON_PREFIX='${prefix}' |
---|
1333 | |
---|
1334 | PYTHON_EXEC_PREFIX='${exec_prefix}' |
---|
1335 | |
---|
1336 | |
---|
1337 | |
---|
1338 | echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5 |
---|
1339 | echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6 |
---|
1340 | if test "${am_cv_python_platform+set}" = set; then |
---|
1341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1342 | else |
---|
1343 | am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"` |
---|
1344 | fi |
---|
1345 | echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5 |
---|
1346 | echo "${ECHO_T}$am_cv_python_platform" >&6 |
---|
1347 | PYTHON_PLATFORM=$am_cv_python_platform |
---|
1348 | |
---|
1349 | |
---|
1350 | |
---|
1351 | |
---|
1352 | echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5 |
---|
1353 | echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6 |
---|
1354 | if test "${am_cv_python_pythondir+set}" = set; then |
---|
1355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1356 | else |
---|
1357 | am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || |
---|
1358 | echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` |
---|
1359 | fi |
---|
1360 | echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5 |
---|
1361 | echo "${ECHO_T}$am_cv_python_pythondir" >&6 |
---|
1362 | pythondir=$am_cv_python_pythondir |
---|
1363 | |
---|
1364 | |
---|
1365 | |
---|
1366 | pkgpythondir=\${pythondir}/$PACKAGE |
---|
1367 | |
---|
1368 | |
---|
1369 | echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5 |
---|
1370 | echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6 |
---|
1371 | if test "${am_cv_python_pyexecdir+set}" = set; then |
---|
1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1373 | else |
---|
1374 | am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || |
---|
1375 | echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"` |
---|
1376 | fi |
---|
1377 | echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5 |
---|
1378 | echo "${ECHO_T}$am_cv_python_pyexecdir" >&6 |
---|
1379 | pyexecdir=$am_cv_python_pyexecdir |
---|
1380 | |
---|
1381 | |
---|
1382 | |
---|
1383 | pkgpyexecdir=\${pyexecdir}/$PACKAGE |
---|
1384 | |
---|
1385 | |
---|
1386 | |
---|
1387 | fi |
---|
1388 | |
---|
1389 | |
---|
1390 | ac_ext=c |
---|
1391 | ac_cpp='$CPP $CPPFLAGS' |
---|
1392 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1393 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1394 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1395 | if test -n "$ac_tool_prefix"; then |
---|
1396 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1397 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1398 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1400 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1402 | else |
---|
1403 | if test -n "$CC"; then |
---|
1404 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1405 | else |
---|
1406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1407 | for as_dir in $PATH |
---|
1408 | do |
---|
1409 | IFS=$as_save_IFS |
---|
1410 | test -z "$as_dir" && as_dir=. |
---|
1411 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1413 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1415 | break 2 |
---|
1416 | fi |
---|
1417 | done |
---|
1418 | done |
---|
1419 | |
---|
1420 | fi |
---|
1421 | fi |
---|
1422 | CC=$ac_cv_prog_CC |
---|
1423 | if test -n "$CC"; then |
---|
1424 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1425 | echo "${ECHO_T}$CC" >&6 |
---|
1426 | else |
---|
1427 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1428 | echo "${ECHO_T}no" >&6 |
---|
1429 | fi |
---|
1430 | |
---|
1431 | fi |
---|
1432 | if test -z "$ac_cv_prog_CC"; then |
---|
1433 | ac_ct_CC=$CC |
---|
1434 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1435 | set dummy gcc; ac_word=$2 |
---|
1436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1438 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1440 | else |
---|
1441 | if test -n "$ac_ct_CC"; then |
---|
1442 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1443 | else |
---|
1444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1445 | for as_dir in $PATH |
---|
1446 | do |
---|
1447 | IFS=$as_save_IFS |
---|
1448 | test -z "$as_dir" && as_dir=. |
---|
1449 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1451 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1453 | break 2 |
---|
1454 | fi |
---|
1455 | done |
---|
1456 | done |
---|
1457 | |
---|
1458 | fi |
---|
1459 | fi |
---|
1460 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1461 | if test -n "$ac_ct_CC"; then |
---|
1462 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1463 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1464 | else |
---|
1465 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1466 | echo "${ECHO_T}no" >&6 |
---|
1467 | fi |
---|
1468 | |
---|
1469 | CC=$ac_ct_CC |
---|
1470 | else |
---|
1471 | CC="$ac_cv_prog_CC" |
---|
1472 | fi |
---|
1473 | |
---|
1474 | if test -z "$CC"; then |
---|
1475 | if test -n "$ac_tool_prefix"; then |
---|
1476 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1477 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1480 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1482 | else |
---|
1483 | if test -n "$CC"; then |
---|
1484 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1485 | else |
---|
1486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1487 | for as_dir in $PATH |
---|
1488 | do |
---|
1489 | IFS=$as_save_IFS |
---|
1490 | test -z "$as_dir" && as_dir=. |
---|
1491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1493 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1495 | break 2 |
---|
1496 | fi |
---|
1497 | done |
---|
1498 | done |
---|
1499 | |
---|
1500 | fi |
---|
1501 | fi |
---|
1502 | CC=$ac_cv_prog_CC |
---|
1503 | if test -n "$CC"; then |
---|
1504 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1505 | echo "${ECHO_T}$CC" >&6 |
---|
1506 | else |
---|
1507 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1508 | echo "${ECHO_T}no" >&6 |
---|
1509 | fi |
---|
1510 | |
---|
1511 | fi |
---|
1512 | if test -z "$ac_cv_prog_CC"; then |
---|
1513 | ac_ct_CC=$CC |
---|
1514 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1515 | set dummy cc; ac_word=$2 |
---|
1516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1518 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1520 | else |
---|
1521 | if test -n "$ac_ct_CC"; then |
---|
1522 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1523 | else |
---|
1524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1525 | for as_dir in $PATH |
---|
1526 | do |
---|
1527 | IFS=$as_save_IFS |
---|
1528 | test -z "$as_dir" && as_dir=. |
---|
1529 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1531 | ac_cv_prog_ac_ct_CC="cc" |
---|
1532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1533 | break 2 |
---|
1534 | fi |
---|
1535 | done |
---|
1536 | done |
---|
1537 | |
---|
1538 | fi |
---|
1539 | fi |
---|
1540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1541 | if test -n "$ac_ct_CC"; then |
---|
1542 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1543 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1544 | else |
---|
1545 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1546 | echo "${ECHO_T}no" >&6 |
---|
1547 | fi |
---|
1548 | |
---|
1549 | CC=$ac_ct_CC |
---|
1550 | else |
---|
1551 | CC="$ac_cv_prog_CC" |
---|
1552 | fi |
---|
1553 | |
---|
1554 | fi |
---|
1555 | if test -z "$CC"; then |
---|
1556 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1557 | set dummy cc; ac_word=$2 |
---|
1558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1560 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1562 | else |
---|
1563 | if test -n "$CC"; then |
---|
1564 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1565 | else |
---|
1566 | ac_prog_rejected=no |
---|
1567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1568 | for as_dir in $PATH |
---|
1569 | do |
---|
1570 | IFS=$as_save_IFS |
---|
1571 | test -z "$as_dir" && as_dir=. |
---|
1572 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1574 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1575 | ac_prog_rejected=yes |
---|
1576 | continue |
---|
1577 | fi |
---|
1578 | ac_cv_prog_CC="cc" |
---|
1579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1580 | break 2 |
---|
1581 | fi |
---|
1582 | done |
---|
1583 | done |
---|
1584 | |
---|
1585 | if test $ac_prog_rejected = yes; then |
---|
1586 | # We found a bogon in the path, so make sure we never use it. |
---|
1587 | set dummy $ac_cv_prog_CC |
---|
1588 | shift |
---|
1589 | if test $# != 0; then |
---|
1590 | # We chose a different compiler from the bogus one. |
---|
1591 | # However, it has the same basename, so the bogon will be chosen |
---|
1592 | # first if we set CC to just the basename; use the full file name. |
---|
1593 | shift |
---|
1594 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
1595 | fi |
---|
1596 | fi |
---|
1597 | fi |
---|
1598 | fi |
---|
1599 | CC=$ac_cv_prog_CC |
---|
1600 | if test -n "$CC"; then |
---|
1601 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1602 | echo "${ECHO_T}$CC" >&6 |
---|
1603 | else |
---|
1604 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1605 | echo "${ECHO_T}no" >&6 |
---|
1606 | fi |
---|
1607 | |
---|
1608 | fi |
---|
1609 | if test -z "$CC"; then |
---|
1610 | if test -n "$ac_tool_prefix"; then |
---|
1611 | for ac_prog in cl |
---|
1612 | do |
---|
1613 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1614 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1617 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1619 | else |
---|
1620 | if test -n "$CC"; then |
---|
1621 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1622 | else |
---|
1623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1624 | for as_dir in $PATH |
---|
1625 | do |
---|
1626 | IFS=$as_save_IFS |
---|
1627 | test -z "$as_dir" && as_dir=. |
---|
1628 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1629 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1630 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1632 | break 2 |
---|
1633 | fi |
---|
1634 | done |
---|
1635 | done |
---|
1636 | |
---|
1637 | fi |
---|
1638 | fi |
---|
1639 | CC=$ac_cv_prog_CC |
---|
1640 | if test -n "$CC"; then |
---|
1641 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1642 | echo "${ECHO_T}$CC" >&6 |
---|
1643 | else |
---|
1644 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1645 | echo "${ECHO_T}no" >&6 |
---|
1646 | fi |
---|
1647 | |
---|
1648 | test -n "$CC" && break |
---|
1649 | done |
---|
1650 | fi |
---|
1651 | if test -z "$CC"; then |
---|
1652 | ac_ct_CC=$CC |
---|
1653 | for ac_prog in cl |
---|
1654 | do |
---|
1655 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1656 | set dummy $ac_prog; ac_word=$2 |
---|
1657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1659 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1661 | else |
---|
1662 | if test -n "$ac_ct_CC"; then |
---|
1663 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1664 | else |
---|
1665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1666 | for as_dir in $PATH |
---|
1667 | do |
---|
1668 | IFS=$as_save_IFS |
---|
1669 | test -z "$as_dir" && as_dir=. |
---|
1670 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1672 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1674 | break 2 |
---|
1675 | fi |
---|
1676 | done |
---|
1677 | done |
---|
1678 | |
---|
1679 | fi |
---|
1680 | fi |
---|
1681 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1682 | if test -n "$ac_ct_CC"; then |
---|
1683 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1684 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1685 | else |
---|
1686 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1687 | echo "${ECHO_T}no" >&6 |
---|
1688 | fi |
---|
1689 | |
---|
1690 | test -n "$ac_ct_CC" && break |
---|
1691 | done |
---|
1692 | |
---|
1693 | CC=$ac_ct_CC |
---|
1694 | fi |
---|
1695 | |
---|
1696 | fi |
---|
1697 | |
---|
1698 | |
---|
1699 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1700 | See \`config.log' for more details." >&5 |
---|
1701 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1702 | See \`config.log' for more details." >&2;} |
---|
1703 | { (exit 1); exit 1; }; } |
---|
1704 | |
---|
1705 | # Provide some information about the compiler. |
---|
1706 | echo "$as_me:$LINENO:" \ |
---|
1707 | "checking for C compiler version" >&5 |
---|
1708 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1709 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1710 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1711 | ac_status=$? |
---|
1712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1713 | (exit $ac_status); } |
---|
1714 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1715 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1716 | ac_status=$? |
---|
1717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1718 | (exit $ac_status); } |
---|
1719 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1720 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1721 | ac_status=$? |
---|
1722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1723 | (exit $ac_status); } |
---|
1724 | |
---|
1725 | cat >conftest.$ac_ext <<_ACEOF |
---|
1726 | /* confdefs.h. */ |
---|
1727 | _ACEOF |
---|
1728 | cat confdefs.h >>conftest.$ac_ext |
---|
1729 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1730 | /* end confdefs.h. */ |
---|
1731 | |
---|
1732 | int |
---|
1733 | main () |
---|
1734 | { |
---|
1735 | |
---|
1736 | ; |
---|
1737 | return 0; |
---|
1738 | } |
---|
1739 | _ACEOF |
---|
1740 | ac_clean_files_save=$ac_clean_files |
---|
1741 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1742 | # Try to create an executable without -o first, disregard a.out. |
---|
1743 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1744 | # of exeext. |
---|
1745 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
1746 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
1747 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1748 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1749 | (eval $ac_link_default) 2>&5 |
---|
1750 | ac_status=$? |
---|
1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1752 | (exit $ac_status); }; then |
---|
1753 | # Find the output, starting from the most likely. This scheme is |
---|
1754 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1755 | # resort. |
---|
1756 | |
---|
1757 | # Be careful to initialize this variable, since it used to be cached. |
---|
1758 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1759 | ac_cv_exeext= |
---|
1760 | # b.out is created by i960 compilers. |
---|
1761 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1762 | do |
---|
1763 | test -f "$ac_file" || continue |
---|
1764 | case $ac_file in |
---|
1765 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1766 | ;; |
---|
1767 | conftest.$ac_ext ) |
---|
1768 | # This is the source file. |
---|
1769 | ;; |
---|
1770 | [ab].out ) |
---|
1771 | # We found the default executable, but exeext='' is most |
---|
1772 | # certainly right. |
---|
1773 | break;; |
---|
1774 | *.* ) |
---|
1775 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1776 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1777 | # but it would be cool to find out if it's true. Does anybody |
---|
1778 | # maintain Libtool? --akim. |
---|
1779 | export ac_cv_exeext |
---|
1780 | break;; |
---|
1781 | * ) |
---|
1782 | break;; |
---|
1783 | esac |
---|
1784 | done |
---|
1785 | else |
---|
1786 | echo "$as_me: failed program was:" >&5 |
---|
1787 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1788 | |
---|
1789 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
1790 | See \`config.log' for more details." >&5 |
---|
1791 | echo "$as_me: error: C compiler cannot create executables |
---|
1792 | See \`config.log' for more details." >&2;} |
---|
1793 | { (exit 77); exit 77; }; } |
---|
1794 | fi |
---|
1795 | |
---|
1796 | ac_exeext=$ac_cv_exeext |
---|
1797 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1798 | echo "${ECHO_T}$ac_file" >&6 |
---|
1799 | |
---|
1800 | # Check the compiler produces executables we can run. If not, either |
---|
1801 | # the compiler is broken, or we cross compile. |
---|
1802 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
1803 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
1804 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1805 | # If not cross compiling, check that we can run a simple program. |
---|
1806 | if test "$cross_compiling" != yes; then |
---|
1807 | if { ac_try='./$ac_file' |
---|
1808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1809 | (eval $ac_try) 2>&5 |
---|
1810 | ac_status=$? |
---|
1811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1812 | (exit $ac_status); }; }; then |
---|
1813 | cross_compiling=no |
---|
1814 | else |
---|
1815 | if test "$cross_compiling" = maybe; then |
---|
1816 | cross_compiling=yes |
---|
1817 | else |
---|
1818 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
1819 | If you meant to cross compile, use \`--host'. |
---|
1820 | See \`config.log' for more details." >&5 |
---|
1821 | echo "$as_me: error: cannot run C compiled programs. |
---|
1822 | If you meant to cross compile, use \`--host'. |
---|
1823 | See \`config.log' for more details." >&2;} |
---|
1824 | { (exit 1); exit 1; }; } |
---|
1825 | fi |
---|
1826 | fi |
---|
1827 | fi |
---|
1828 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1829 | echo "${ECHO_T}yes" >&6 |
---|
1830 | |
---|
1831 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
1832 | ac_clean_files=$ac_clean_files_save |
---|
1833 | # Check the compiler produces executables we can run. If not, either |
---|
1834 | # the compiler is broken, or we cross compile. |
---|
1835 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
1836 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
1837 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
1838 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
1839 | |
---|
1840 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
1841 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
1842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
1843 | (eval $ac_link) 2>&5 |
---|
1844 | ac_status=$? |
---|
1845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1846 | (exit $ac_status); }; then |
---|
1847 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
1848 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
1849 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
1850 | # `rm'. |
---|
1851 | for ac_file in conftest.exe conftest conftest.*; do |
---|
1852 | test -f "$ac_file" || continue |
---|
1853 | case $ac_file in |
---|
1854 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
1855 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1856 | export ac_cv_exeext |
---|
1857 | break;; |
---|
1858 | * ) break;; |
---|
1859 | esac |
---|
1860 | done |
---|
1861 | else |
---|
1862 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
1863 | See \`config.log' for more details." >&5 |
---|
1864 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
1865 | See \`config.log' for more details." >&2;} |
---|
1866 | { (exit 1); exit 1; }; } |
---|
1867 | fi |
---|
1868 | |
---|
1869 | rm -f conftest$ac_cv_exeext |
---|
1870 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
1871 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
1872 | |
---|
1873 | rm -f conftest.$ac_ext |
---|
1874 | EXEEXT=$ac_cv_exeext |
---|
1875 | ac_exeext=$EXEEXT |
---|
1876 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
1877 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
1878 | if test "${ac_cv_objext+set}" = set; then |
---|
1879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1880 | else |
---|
1881 | cat >conftest.$ac_ext <<_ACEOF |
---|
1882 | /* confdefs.h. */ |
---|
1883 | _ACEOF |
---|
1884 | cat confdefs.h >>conftest.$ac_ext |
---|
1885 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1886 | /* end confdefs.h. */ |
---|
1887 | |
---|
1888 | int |
---|
1889 | main () |
---|
1890 | { |
---|
1891 | |
---|
1892 | ; |
---|
1893 | return 0; |
---|
1894 | } |
---|
1895 | _ACEOF |
---|
1896 | rm -f conftest.o conftest.obj |
---|
1897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1898 | (eval $ac_compile) 2>&5 |
---|
1899 | ac_status=$? |
---|
1900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1901 | (exit $ac_status); }; then |
---|
1902 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
1903 | case $ac_file in |
---|
1904 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
1905 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
1906 | break;; |
---|
1907 | esac |
---|
1908 | done |
---|
1909 | else |
---|
1910 | echo "$as_me: failed program was:" >&5 |
---|
1911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1912 | |
---|
1913 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
1914 | See \`config.log' for more details." >&5 |
---|
1915 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
1916 | See \`config.log' for more details." >&2;} |
---|
1917 | { (exit 1); exit 1; }; } |
---|
1918 | fi |
---|
1919 | |
---|
1920 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
1921 | fi |
---|
1922 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
1923 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
1924 | OBJEXT=$ac_cv_objext |
---|
1925 | ac_objext=$OBJEXT |
---|
1926 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
1927 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
1928 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1930 | else |
---|
1931 | cat >conftest.$ac_ext <<_ACEOF |
---|
1932 | /* confdefs.h. */ |
---|
1933 | _ACEOF |
---|
1934 | cat confdefs.h >>conftest.$ac_ext |
---|
1935 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1936 | /* end confdefs.h. */ |
---|
1937 | |
---|
1938 | int |
---|
1939 | main () |
---|
1940 | { |
---|
1941 | #ifndef __GNUC__ |
---|
1942 | choke me |
---|
1943 | #endif |
---|
1944 | |
---|
1945 | ; |
---|
1946 | return 0; |
---|
1947 | } |
---|
1948 | _ACEOF |
---|
1949 | rm -f conftest.$ac_objext |
---|
1950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
1951 | (eval $ac_compile) 2>conftest.er1 |
---|
1952 | ac_status=$? |
---|
1953 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
1954 | rm -f conftest.er1 |
---|
1955 | cat conftest.err >&5 |
---|
1956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1957 | (exit $ac_status); } && |
---|
1958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
1959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1960 | (eval $ac_try) 2>&5 |
---|
1961 | ac_status=$? |
---|
1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1963 | (exit $ac_status); }; } && |
---|
1964 | { ac_try='test -s conftest.$ac_objext' |
---|
1965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1966 | (eval $ac_try) 2>&5 |
---|
1967 | ac_status=$? |
---|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1969 | (exit $ac_status); }; }; then |
---|
1970 | ac_compiler_gnu=yes |
---|
1971 | else |
---|
1972 | echo "$as_me: failed program was:" >&5 |
---|
1973 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1974 | |
---|
1975 | ac_compiler_gnu=no |
---|
1976 | fi |
---|
1977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1978 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
1979 | |
---|
1980 | fi |
---|
1981 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
1982 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
1983 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
1984 | ac_test_CFLAGS=${CFLAGS+set} |
---|
1985 | ac_save_CFLAGS=$CFLAGS |
---|
1986 | CFLAGS="-g" |
---|
1987 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
1988 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
1989 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1991 | else |
---|
1992 | cat >conftest.$ac_ext <<_ACEOF |
---|
1993 | /* confdefs.h. */ |
---|
1994 | _ACEOF |
---|
1995 | cat confdefs.h >>conftest.$ac_ext |
---|
1996 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1997 | /* end confdefs.h. */ |
---|
1998 | |
---|
1999 | int |
---|
2000 | main () |
---|
2001 | { |
---|
2002 | |
---|
2003 | ; |
---|
2004 | return 0; |
---|
2005 | } |
---|
2006 | _ACEOF |
---|
2007 | rm -f conftest.$ac_objext |
---|
2008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2009 | (eval $ac_compile) 2>conftest.er1 |
---|
2010 | ac_status=$? |
---|
2011 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2012 | rm -f conftest.er1 |
---|
2013 | cat conftest.err >&5 |
---|
2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2015 | (exit $ac_status); } && |
---|
2016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
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); }; } && |
---|
2022 | { ac_try='test -s conftest.$ac_objext' |
---|
2023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2024 | (eval $ac_try) 2>&5 |
---|
2025 | ac_status=$? |
---|
2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2027 | (exit $ac_status); }; }; then |
---|
2028 | ac_cv_prog_cc_g=yes |
---|
2029 | else |
---|
2030 | echo "$as_me: failed program was:" >&5 |
---|
2031 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2032 | |
---|
2033 | ac_cv_prog_cc_g=no |
---|
2034 | fi |
---|
2035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2036 | fi |
---|
2037 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2038 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2039 | if test "$ac_test_CFLAGS" = set; then |
---|
2040 | CFLAGS=$ac_save_CFLAGS |
---|
2041 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2042 | if test "$GCC" = yes; then |
---|
2043 | CFLAGS="-g -O2" |
---|
2044 | else |
---|
2045 | CFLAGS="-g" |
---|
2046 | fi |
---|
2047 | else |
---|
2048 | if test "$GCC" = yes; then |
---|
2049 | CFLAGS="-O2" |
---|
2050 | else |
---|
2051 | CFLAGS= |
---|
2052 | fi |
---|
2053 | fi |
---|
2054 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2055 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2056 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2058 | else |
---|
2059 | ac_cv_prog_cc_stdc=no |
---|
2060 | ac_save_CC=$CC |
---|
2061 | cat >conftest.$ac_ext <<_ACEOF |
---|
2062 | /* confdefs.h. */ |
---|
2063 | _ACEOF |
---|
2064 | cat confdefs.h >>conftest.$ac_ext |
---|
2065 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2066 | /* end confdefs.h. */ |
---|
2067 | #include <stdarg.h> |
---|
2068 | #include <stdio.h> |
---|
2069 | #include <sys/types.h> |
---|
2070 | #include <sys/stat.h> |
---|
2071 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2072 | struct buf { int x; }; |
---|
2073 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2074 | static char *e (p, i) |
---|
2075 | char **p; |
---|
2076 | int i; |
---|
2077 | { |
---|
2078 | return p[i]; |
---|
2079 | } |
---|
2080 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2081 | { |
---|
2082 | char *s; |
---|
2083 | va_list v; |
---|
2084 | va_start (v,p); |
---|
2085 | s = g (p, va_arg (v,int)); |
---|
2086 | va_end (v); |
---|
2087 | return s; |
---|
2088 | } |
---|
2089 | |
---|
2090 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2091 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2092 | These don't provoke an error unfortunately, instead are silently treated |
---|
2093 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2094 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2095 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2096 | that's true only with -std1. */ |
---|
2097 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2098 | |
---|
2099 | int test (int i, double x); |
---|
2100 | struct s1 {int (*f) (int a);}; |
---|
2101 | struct s2 {int (*f) (double a);}; |
---|
2102 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2103 | int argc; |
---|
2104 | char **argv; |
---|
2105 | int |
---|
2106 | main () |
---|
2107 | { |
---|
2108 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2109 | ; |
---|
2110 | return 0; |
---|
2111 | } |
---|
2112 | _ACEOF |
---|
2113 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2114 | # breaks some systems' header files. |
---|
2115 | # AIX -qlanglvl=ansi |
---|
2116 | # Ultrix and OSF/1 -std1 |
---|
2117 | # HP-UX 10.20 and later -Ae |
---|
2118 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2119 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2120 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2121 | do |
---|
2122 | CC="$ac_save_CC $ac_arg" |
---|
2123 | rm -f conftest.$ac_objext |
---|
2124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2125 | (eval $ac_compile) 2>conftest.er1 |
---|
2126 | ac_status=$? |
---|
2127 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2128 | rm -f conftest.er1 |
---|
2129 | cat conftest.err >&5 |
---|
2130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2131 | (exit $ac_status); } && |
---|
2132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2134 | (eval $ac_try) 2>&5 |
---|
2135 | ac_status=$? |
---|
2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2137 | (exit $ac_status); }; } && |
---|
2138 | { ac_try='test -s conftest.$ac_objext' |
---|
2139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2140 | (eval $ac_try) 2>&5 |
---|
2141 | ac_status=$? |
---|
2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2143 | (exit $ac_status); }; }; then |
---|
2144 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2145 | break |
---|
2146 | else |
---|
2147 | echo "$as_me: failed program was:" >&5 |
---|
2148 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2149 | |
---|
2150 | fi |
---|
2151 | rm -f conftest.err conftest.$ac_objext |
---|
2152 | done |
---|
2153 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2154 | CC=$ac_save_CC |
---|
2155 | |
---|
2156 | fi |
---|
2157 | |
---|
2158 | case "x$ac_cv_prog_cc_stdc" in |
---|
2159 | x|xno) |
---|
2160 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2161 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2162 | *) |
---|
2163 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2164 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2165 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2166 | esac |
---|
2167 | |
---|
2168 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2169 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2170 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2171 | # the declaration of exit, since it's the most demanding environment. |
---|
2172 | cat >conftest.$ac_ext <<_ACEOF |
---|
2173 | #ifndef __cplusplus |
---|
2174 | choke me |
---|
2175 | #endif |
---|
2176 | _ACEOF |
---|
2177 | rm -f conftest.$ac_objext |
---|
2178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2179 | (eval $ac_compile) 2>conftest.er1 |
---|
2180 | ac_status=$? |
---|
2181 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2182 | rm -f conftest.er1 |
---|
2183 | cat conftest.err >&5 |
---|
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2185 | (exit $ac_status); } && |
---|
2186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2188 | (eval $ac_try) 2>&5 |
---|
2189 | ac_status=$? |
---|
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2191 | (exit $ac_status); }; } && |
---|
2192 | { ac_try='test -s conftest.$ac_objext' |
---|
2193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2194 | (eval $ac_try) 2>&5 |
---|
2195 | ac_status=$? |
---|
2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2197 | (exit $ac_status); }; }; then |
---|
2198 | for ac_declaration in \ |
---|
2199 | '' \ |
---|
2200 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2201 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2202 | 'extern "C" void exit (int) throw ();' \ |
---|
2203 | 'extern "C" void exit (int);' \ |
---|
2204 | 'void exit (int);' |
---|
2205 | do |
---|
2206 | cat >conftest.$ac_ext <<_ACEOF |
---|
2207 | /* confdefs.h. */ |
---|
2208 | _ACEOF |
---|
2209 | cat confdefs.h >>conftest.$ac_ext |
---|
2210 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2211 | /* end confdefs.h. */ |
---|
2212 | $ac_declaration |
---|
2213 | #include <stdlib.h> |
---|
2214 | int |
---|
2215 | main () |
---|
2216 | { |
---|
2217 | exit (42); |
---|
2218 | ; |
---|
2219 | return 0; |
---|
2220 | } |
---|
2221 | _ACEOF |
---|
2222 | rm -f conftest.$ac_objext |
---|
2223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2224 | (eval $ac_compile) 2>conftest.er1 |
---|
2225 | ac_status=$? |
---|
2226 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2227 | rm -f conftest.er1 |
---|
2228 | cat conftest.err >&5 |
---|
2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2230 | (exit $ac_status); } && |
---|
2231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2233 | (eval $ac_try) 2>&5 |
---|
2234 | ac_status=$? |
---|
2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2236 | (exit $ac_status); }; } && |
---|
2237 | { ac_try='test -s conftest.$ac_objext' |
---|
2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2239 | (eval $ac_try) 2>&5 |
---|
2240 | ac_status=$? |
---|
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2242 | (exit $ac_status); }; }; then |
---|
2243 | : |
---|
2244 | else |
---|
2245 | echo "$as_me: failed program was:" >&5 |
---|
2246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2247 | |
---|
2248 | continue |
---|
2249 | fi |
---|
2250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2251 | cat >conftest.$ac_ext <<_ACEOF |
---|
2252 | /* confdefs.h. */ |
---|
2253 | _ACEOF |
---|
2254 | cat confdefs.h >>conftest.$ac_ext |
---|
2255 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2256 | /* end confdefs.h. */ |
---|
2257 | $ac_declaration |
---|
2258 | int |
---|
2259 | main () |
---|
2260 | { |
---|
2261 | exit (42); |
---|
2262 | ; |
---|
2263 | return 0; |
---|
2264 | } |
---|
2265 | _ACEOF |
---|
2266 | rm -f conftest.$ac_objext |
---|
2267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2268 | (eval $ac_compile) 2>conftest.er1 |
---|
2269 | ac_status=$? |
---|
2270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2271 | rm -f conftest.er1 |
---|
2272 | cat conftest.err >&5 |
---|
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2274 | (exit $ac_status); } && |
---|
2275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2277 | (eval $ac_try) 2>&5 |
---|
2278 | ac_status=$? |
---|
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2280 | (exit $ac_status); }; } && |
---|
2281 | { ac_try='test -s conftest.$ac_objext' |
---|
2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2283 | (eval $ac_try) 2>&5 |
---|
2284 | ac_status=$? |
---|
2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2286 | (exit $ac_status); }; }; then |
---|
2287 | break |
---|
2288 | else |
---|
2289 | echo "$as_me: failed program was:" >&5 |
---|
2290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2291 | |
---|
2292 | fi |
---|
2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2294 | done |
---|
2295 | rm -f conftest* |
---|
2296 | if test -n "$ac_declaration"; then |
---|
2297 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2298 | echo $ac_declaration >>confdefs.h |
---|
2299 | echo '#endif' >>confdefs.h |
---|
2300 | fi |
---|
2301 | |
---|
2302 | else |
---|
2303 | echo "$as_me: failed program was:" >&5 |
---|
2304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2305 | |
---|
2306 | fi |
---|
2307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2308 | ac_ext=c |
---|
2309 | ac_cpp='$CPP $CPPFLAGS' |
---|
2310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2313 | |
---|
2314 | |
---|
2315 | ac_ext=c |
---|
2316 | ac_cpp='$CPP $CPPFLAGS' |
---|
2317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2320 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
2321 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
2322 | # On Suns, sometimes $CPP names a directory. |
---|
2323 | if test -n "$CPP" && test -d "$CPP"; then |
---|
2324 | CPP= |
---|
2325 | fi |
---|
2326 | if test -z "$CPP"; then |
---|
2327 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
2328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2329 | else |
---|
2330 | # Double quotes because CPP needs to be expanded |
---|
2331 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
2332 | do |
---|
2333 | ac_preproc_ok=false |
---|
2334 | for ac_c_preproc_warn_flag in '' yes |
---|
2335 | do |
---|
2336 | # Use a header file that comes with gcc, so configuring glibc |
---|
2337 | # with a fresh cross-compiler works. |
---|
2338 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2339 | # <limits.h> exists even on freestanding compilers. |
---|
2340 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2341 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2342 | cat >conftest.$ac_ext <<_ACEOF |
---|
2343 | /* confdefs.h. */ |
---|
2344 | _ACEOF |
---|
2345 | cat confdefs.h >>conftest.$ac_ext |
---|
2346 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2347 | /* end confdefs.h. */ |
---|
2348 | #ifdef __STDC__ |
---|
2349 | # include <limits.h> |
---|
2350 | #else |
---|
2351 | # include <assert.h> |
---|
2352 | #endif |
---|
2353 | Syntax error |
---|
2354 | _ACEOF |
---|
2355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2357 | ac_status=$? |
---|
2358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2359 | rm -f conftest.er1 |
---|
2360 | cat conftest.err >&5 |
---|
2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2362 | (exit $ac_status); } >/dev/null; then |
---|
2363 | if test -s conftest.err; then |
---|
2364 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2366 | else |
---|
2367 | ac_cpp_err= |
---|
2368 | fi |
---|
2369 | else |
---|
2370 | ac_cpp_err=yes |
---|
2371 | fi |
---|
2372 | if test -z "$ac_cpp_err"; then |
---|
2373 | : |
---|
2374 | else |
---|
2375 | echo "$as_me: failed program was:" >&5 |
---|
2376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2377 | |
---|
2378 | # Broken: fails on valid input. |
---|
2379 | continue |
---|
2380 | fi |
---|
2381 | rm -f conftest.err conftest.$ac_ext |
---|
2382 | |
---|
2383 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2384 | # can be detected and how. |
---|
2385 | cat >conftest.$ac_ext <<_ACEOF |
---|
2386 | /* confdefs.h. */ |
---|
2387 | _ACEOF |
---|
2388 | cat confdefs.h >>conftest.$ac_ext |
---|
2389 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2390 | /* end confdefs.h. */ |
---|
2391 | #include <ac_nonexistent.h> |
---|
2392 | _ACEOF |
---|
2393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2395 | ac_status=$? |
---|
2396 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2397 | rm -f conftest.er1 |
---|
2398 | cat conftest.err >&5 |
---|
2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2400 | (exit $ac_status); } >/dev/null; then |
---|
2401 | if test -s conftest.err; then |
---|
2402 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2404 | else |
---|
2405 | ac_cpp_err= |
---|
2406 | fi |
---|
2407 | else |
---|
2408 | ac_cpp_err=yes |
---|
2409 | fi |
---|
2410 | if test -z "$ac_cpp_err"; then |
---|
2411 | # Broken: success on invalid input. |
---|
2412 | continue |
---|
2413 | else |
---|
2414 | echo "$as_me: failed program was:" >&5 |
---|
2415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2416 | |
---|
2417 | # Passes both tests. |
---|
2418 | ac_preproc_ok=: |
---|
2419 | break |
---|
2420 | fi |
---|
2421 | rm -f conftest.err conftest.$ac_ext |
---|
2422 | |
---|
2423 | done |
---|
2424 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2425 | rm -f conftest.err conftest.$ac_ext |
---|
2426 | if $ac_preproc_ok; then |
---|
2427 | break |
---|
2428 | fi |
---|
2429 | |
---|
2430 | done |
---|
2431 | ac_cv_prog_CPP=$CPP |
---|
2432 | |
---|
2433 | fi |
---|
2434 | CPP=$ac_cv_prog_CPP |
---|
2435 | else |
---|
2436 | ac_cv_prog_CPP=$CPP |
---|
2437 | fi |
---|
2438 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
2439 | echo "${ECHO_T}$CPP" >&6 |
---|
2440 | ac_preproc_ok=false |
---|
2441 | for ac_c_preproc_warn_flag in '' yes |
---|
2442 | do |
---|
2443 | # Use a header file that comes with gcc, so configuring glibc |
---|
2444 | # with a fresh cross-compiler works. |
---|
2445 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2446 | # <limits.h> exists even on freestanding compilers. |
---|
2447 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2448 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2449 | cat >conftest.$ac_ext <<_ACEOF |
---|
2450 | /* confdefs.h. */ |
---|
2451 | _ACEOF |
---|
2452 | cat confdefs.h >>conftest.$ac_ext |
---|
2453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2454 | /* end confdefs.h. */ |
---|
2455 | #ifdef __STDC__ |
---|
2456 | # include <limits.h> |
---|
2457 | #else |
---|
2458 | # include <assert.h> |
---|
2459 | #endif |
---|
2460 | Syntax error |
---|
2461 | _ACEOF |
---|
2462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2464 | ac_status=$? |
---|
2465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2466 | rm -f conftest.er1 |
---|
2467 | cat conftest.err >&5 |
---|
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2469 | (exit $ac_status); } >/dev/null; then |
---|
2470 | if test -s conftest.err; then |
---|
2471 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2473 | else |
---|
2474 | ac_cpp_err= |
---|
2475 | fi |
---|
2476 | else |
---|
2477 | ac_cpp_err=yes |
---|
2478 | fi |
---|
2479 | if test -z "$ac_cpp_err"; then |
---|
2480 | : |
---|
2481 | else |
---|
2482 | echo "$as_me: failed program was:" >&5 |
---|
2483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2484 | |
---|
2485 | # Broken: fails on valid input. |
---|
2486 | continue |
---|
2487 | fi |
---|
2488 | rm -f conftest.err conftest.$ac_ext |
---|
2489 | |
---|
2490 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2491 | # can be detected and how. |
---|
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 | #include <ac_nonexistent.h> |
---|
2499 | _ACEOF |
---|
2500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2502 | ac_status=$? |
---|
2503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2504 | rm -f conftest.er1 |
---|
2505 | cat conftest.err >&5 |
---|
2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2507 | (exit $ac_status); } >/dev/null; then |
---|
2508 | if test -s conftest.err; then |
---|
2509 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2511 | else |
---|
2512 | ac_cpp_err= |
---|
2513 | fi |
---|
2514 | else |
---|
2515 | ac_cpp_err=yes |
---|
2516 | fi |
---|
2517 | if test -z "$ac_cpp_err"; then |
---|
2518 | # Broken: success on invalid input. |
---|
2519 | continue |
---|
2520 | else |
---|
2521 | echo "$as_me: failed program was:" >&5 |
---|
2522 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2523 | |
---|
2524 | # Passes both tests. |
---|
2525 | ac_preproc_ok=: |
---|
2526 | break |
---|
2527 | fi |
---|
2528 | rm -f conftest.err conftest.$ac_ext |
---|
2529 | |
---|
2530 | done |
---|
2531 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2532 | rm -f conftest.err conftest.$ac_ext |
---|
2533 | if $ac_preproc_ok; then |
---|
2534 | : |
---|
2535 | else |
---|
2536 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
2537 | See \`config.log' for more details." >&5 |
---|
2538 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
2539 | See \`config.log' for more details." >&2;} |
---|
2540 | { (exit 1); exit 1; }; } |
---|
2541 | fi |
---|
2542 | |
---|
2543 | ac_ext=c |
---|
2544 | ac_cpp='$CPP $CPPFLAGS' |
---|
2545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2548 | |
---|
2549 | |
---|
2550 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
2551 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
2552 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
2553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2554 | else |
---|
2555 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
2556 | then ac_cv_prog_egrep='grep -E' |
---|
2557 | else ac_cv_prog_egrep='egrep' |
---|
2558 | fi |
---|
2559 | fi |
---|
2560 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
2561 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
2562 | EGREP=$ac_cv_prog_egrep |
---|
2563 | |
---|
2564 | |
---|
2565 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
2566 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
2567 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
---|
2568 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2570 | else |
---|
2571 | ac_pattern="Autoconf.*'x'" |
---|
2572 | cat >conftest.$ac_ext <<_ACEOF |
---|
2573 | /* confdefs.h. */ |
---|
2574 | _ACEOF |
---|
2575 | cat confdefs.h >>conftest.$ac_ext |
---|
2576 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2577 | /* end confdefs.h. */ |
---|
2578 | #include <sgtty.h> |
---|
2579 | Autoconf TIOCGETP |
---|
2580 | _ACEOF |
---|
2581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2582 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
2583 | ac_cv_prog_gcc_traditional=yes |
---|
2584 | else |
---|
2585 | ac_cv_prog_gcc_traditional=no |
---|
2586 | fi |
---|
2587 | rm -f conftest* |
---|
2588 | |
---|
2589 | |
---|
2590 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
2591 | cat >conftest.$ac_ext <<_ACEOF |
---|
2592 | /* confdefs.h. */ |
---|
2593 | _ACEOF |
---|
2594 | cat confdefs.h >>conftest.$ac_ext |
---|
2595 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2596 | /* end confdefs.h. */ |
---|
2597 | #include <termio.h> |
---|
2598 | Autoconf TCGETA |
---|
2599 | _ACEOF |
---|
2600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2601 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
2602 | ac_cv_prog_gcc_traditional=yes |
---|
2603 | fi |
---|
2604 | rm -f conftest* |
---|
2605 | |
---|
2606 | fi |
---|
2607 | fi |
---|
2608 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
2609 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
---|
2610 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
2611 | CC="$CC -traditional" |
---|
2612 | fi |
---|
2613 | fi |
---|
2614 | |
---|
2615 | |
---|
2616 | if test "x$DEBUG" = "x";then |
---|
2617 | DEBUG=0 |
---|
2618 | fi |
---|
2619 | |
---|
2620 | |
---|
2621 | # Now a user can specify the TRAC user |
---|
2622 | # |
---|
2623 | #AC_ARG_WITH(trac_user, |
---|
2624 | #[ |
---|
2625 | # --with-trac_user=USER Specify the name of the user that trac use, |
---|
2626 | # default=www-data], |
---|
2627 | # |
---|
2628 | # [case "${withval}" in |
---|
2629 | # *) trac_user="${withval}" ;; |
---|
2630 | # esac], |
---|
2631 | # |
---|
2632 | # [trac_user="www-data"] |
---|
2633 | ##)dnl |
---|
2634 | |
---|
2635 | |
---|
2636 | if test "$sysconfdir" = '${prefix}/etc'; then |
---|
2637 | if test "x$prefix" = xNONE; then |
---|
2638 | pxeconfig_conf="$ac_default_prefix/etc/pxeconfig.conf" |
---|
2639 | else |
---|
2640 | pxeconfig_conf="$prefix/etc/pxeconfig.conf" |
---|
2641 | fi |
---|
2642 | else |
---|
2643 | pxeconfig_conf="$sysconfdir/pxeconfig.conf" |
---|
2644 | fi |
---|
2645 | |
---|
2646 | cat >>confdefs.h <<_ACEOF |
---|
2647 | #define SYSTEM_PXECONFIG_CONF "$pxeconfig_conf" |
---|
2648 | _ACEOF |
---|
2649 | |
---|
2650 | |
---|
2651 | |
---|
2652 | |
---|
2653 | |
---|
2654 | |
---|
2655 | ac_config_files="$ac_config_files Makefile pxeconfig pxeconfigd hexls" |
---|
2656 | cat >confcache <<\_ACEOF |
---|
2657 | # This file is a shell script that caches the results of configure |
---|
2658 | # tests run on this system so they can be shared between configure |
---|
2659 | # scripts and configure runs, see configure's option --config-cache. |
---|
2660 | # It is not useful on other systems. If it contains results you don't |
---|
2661 | # want to keep, you may remove or edit it. |
---|
2662 | # |
---|
2663 | # config.status only pays attention to the cache file if you give it |
---|
2664 | # the --recheck option to rerun configure. |
---|
2665 | # |
---|
2666 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
2667 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
2668 | # following values. |
---|
2669 | |
---|
2670 | _ACEOF |
---|
2671 | |
---|
2672 | # The following way of writing the cache mishandles newlines in values, |
---|
2673 | # but we know of no workaround that is simple, portable, and efficient. |
---|
2674 | # So, don't put newlines in cache variables' values. |
---|
2675 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
2676 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
2677 | { |
---|
2678 | (set) 2>&1 | |
---|
2679 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
2680 | *ac_space=\ *) |
---|
2681 | # `set' does not quote correctly, so add quotes (double-quote |
---|
2682 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
2683 | sed -n \ |
---|
2684 | "s/'/'\\\\''/g; |
---|
2685 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
2686 | ;; |
---|
2687 | *) |
---|
2688 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
2689 | sed -n \ |
---|
2690 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
2691 | ;; |
---|
2692 | esac; |
---|
2693 | } | |
---|
2694 | sed ' |
---|
2695 | t clear |
---|
2696 | : clear |
---|
2697 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
2698 | t end |
---|
2699 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
2700 | : end' >>confcache |
---|
2701 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
2702 | if test -w $cache_file; then |
---|
2703 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
2704 | cat confcache >$cache_file |
---|
2705 | else |
---|
2706 | echo "not updating unwritable cache $cache_file" |
---|
2707 | fi |
---|
2708 | fi |
---|
2709 | rm -f confcache |
---|
2710 | |
---|
2711 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
2712 | # Let make expand exec_prefix. |
---|
2713 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
2714 | |
---|
2715 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
2716 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
2717 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
2718 | # (actually we leave an empty line to preserve line numbers). |
---|
2719 | if test "x$srcdir" = x.; then |
---|
2720 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
2721 | s/:*\$(srcdir):*/:/; |
---|
2722 | s/:*\${srcdir}:*/:/; |
---|
2723 | s/:*@srcdir@:*/:/; |
---|
2724 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
2725 | s/:*$//; |
---|
2726 | s/^[^=]*=[ ]*$//; |
---|
2727 | }' |
---|
2728 | fi |
---|
2729 | |
---|
2730 | # Transform confdefs.h into DEFS. |
---|
2731 | # Protect against shell expansion while executing Makefile rules. |
---|
2732 | # Protect against Makefile macro expansion. |
---|
2733 | # |
---|
2734 | # If the first sed substitution is executed (which looks for macros that |
---|
2735 | # take arguments), then we branch to the quote section. Otherwise, |
---|
2736 | # look for a macro that doesn't take arguments. |
---|
2737 | cat >confdef2opt.sed <<\_ACEOF |
---|
2738 | t clear |
---|
2739 | : clear |
---|
2740 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
2741 | t quote |
---|
2742 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
2743 | t quote |
---|
2744 | d |
---|
2745 | : quote |
---|
2746 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
2747 | s,\[,\\&,g |
---|
2748 | s,\],\\&,g |
---|
2749 | s,\$,$$,g |
---|
2750 | p |
---|
2751 | _ACEOF |
---|
2752 | # We use echo to avoid assuming a particular line-breaking character. |
---|
2753 | # The extra dot is to prevent the shell from consuming trailing |
---|
2754 | # line-breaks from the sub-command output. A line-break within |
---|
2755 | # single-quotes doesn't work because, if this script is created in a |
---|
2756 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
2757 | # would break. |
---|
2758 | ac_LF_and_DOT=`echo; echo .` |
---|
2759 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
2760 | rm -f confdef2opt.sed |
---|
2761 | |
---|
2762 | |
---|
2763 | ac_libobjs= |
---|
2764 | ac_ltlibobjs= |
---|
2765 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
2766 | # 1. Remove the extension, and $U if already installed. |
---|
2767 | ac_i=`echo "$ac_i" | |
---|
2768 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
2769 | # 2. Add them. |
---|
2770 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
2771 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
2772 | done |
---|
2773 | LIBOBJS=$ac_libobjs |
---|
2774 | |
---|
2775 | LTLIBOBJS=$ac_ltlibobjs |
---|
2776 | |
---|
2777 | |
---|
2778 | |
---|
2779 | : ${CONFIG_STATUS=./config.status} |
---|
2780 | ac_clean_files_save=$ac_clean_files |
---|
2781 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
2782 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
2783 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
2784 | cat >$CONFIG_STATUS <<_ACEOF |
---|
2785 | #! $SHELL |
---|
2786 | # Generated by $as_me. |
---|
2787 | # Run this file to recreate the current configuration. |
---|
2788 | # Compiler output produced by configure, useful for debugging |
---|
2789 | # configure, is in config.log if it exists. |
---|
2790 | |
---|
2791 | debug=false |
---|
2792 | ac_cs_recheck=false |
---|
2793 | ac_cs_silent=false |
---|
2794 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
2795 | _ACEOF |
---|
2796 | |
---|
2797 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
2798 | ## --------------------- ## |
---|
2799 | ## M4sh Initialization. ## |
---|
2800 | ## --------------------- ## |
---|
2801 | |
---|
2802 | # Be Bourne compatible |
---|
2803 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
2804 | emulate sh |
---|
2805 | NULLCMD=: |
---|
2806 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
2807 | # is contrary to our usage. Disable this feature. |
---|
2808 | alias -g '${1+"$@"}'='"$@"' |
---|
2809 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
2810 | set -o posix |
---|
2811 | fi |
---|
2812 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
2813 | |
---|
2814 | # Support unset when possible. |
---|
2815 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
2816 | as_unset=unset |
---|
2817 | else |
---|
2818 | as_unset=false |
---|
2819 | fi |
---|
2820 | |
---|
2821 | |
---|
2822 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
2823 | $as_unset ENV MAIL MAILPATH |
---|
2824 | PS1='$ ' |
---|
2825 | PS2='> ' |
---|
2826 | PS4='+ ' |
---|
2827 | |
---|
2828 | # NLS nuisances. |
---|
2829 | for as_var in \ |
---|
2830 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
2831 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
2832 | LC_TELEPHONE LC_TIME |
---|
2833 | do |
---|
2834 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
2835 | eval $as_var=C; export $as_var |
---|
2836 | else |
---|
2837 | $as_unset $as_var |
---|
2838 | fi |
---|
2839 | done |
---|
2840 | |
---|
2841 | # Required to use basename. |
---|
2842 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
2843 | as_expr=expr |
---|
2844 | else |
---|
2845 | as_expr=false |
---|
2846 | fi |
---|
2847 | |
---|
2848 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
2849 | as_basename=basename |
---|
2850 | else |
---|
2851 | as_basename=false |
---|
2852 | fi |
---|
2853 | |
---|
2854 | |
---|
2855 | # Name of the executable. |
---|
2856 | as_me=`$as_basename "$0" || |
---|
2857 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
2858 | X"$0" : 'X\(//\)$' \| \ |
---|
2859 | X"$0" : 'X\(/\)$' \| \ |
---|
2860 | . : '\(.\)' 2>/dev/null || |
---|
2861 | echo X/"$0" | |
---|
2862 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
2863 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
2864 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
2865 | s/.*/./; q'` |
---|
2866 | |
---|
2867 | |
---|
2868 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
2869 | # Avoid depending upon Character Ranges. |
---|
2870 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
2871 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
2872 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
2873 | as_cr_digits='0123456789' |
---|
2874 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
2875 | |
---|
2876 | # The user is always right. |
---|
2877 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
2878 | echo "#! /bin/sh" >conf$$.sh |
---|
2879 | echo "exit 0" >>conf$$.sh |
---|
2880 | chmod +x conf$$.sh |
---|
2881 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
2882 | PATH_SEPARATOR=';' |
---|
2883 | else |
---|
2884 | PATH_SEPARATOR=: |
---|
2885 | fi |
---|
2886 | rm -f conf$$.sh |
---|
2887 | fi |
---|
2888 | |
---|
2889 | |
---|
2890 | as_lineno_1=$LINENO |
---|
2891 | as_lineno_2=$LINENO |
---|
2892 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
2893 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
2894 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
2895 | # Find who we are. Look in the path if we contain no path at all |
---|
2896 | # relative or not. |
---|
2897 | case $0 in |
---|
2898 | *[\\/]* ) as_myself=$0 ;; |
---|
2899 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2900 | for as_dir in $PATH |
---|
2901 | do |
---|
2902 | IFS=$as_save_IFS |
---|
2903 | test -z "$as_dir" && as_dir=. |
---|
2904 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
2905 | done |
---|
2906 | |
---|
2907 | ;; |
---|
2908 | esac |
---|
2909 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
2910 | # in which case we are not to be found in the path. |
---|
2911 | if test "x$as_myself" = x; then |
---|
2912 | as_myself=$0 |
---|
2913 | fi |
---|
2914 | if test ! -f "$as_myself"; then |
---|
2915 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
2916 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
2917 | { (exit 1); exit 1; }; } |
---|
2918 | fi |
---|
2919 | case $CONFIG_SHELL in |
---|
2920 | '') |
---|
2921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2922 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
2923 | do |
---|
2924 | IFS=$as_save_IFS |
---|
2925 | test -z "$as_dir" && as_dir=. |
---|
2926 | for as_base in sh bash ksh sh5; do |
---|
2927 | case $as_dir in |
---|
2928 | /*) |
---|
2929 | if ("$as_dir/$as_base" -c ' |
---|
2930 | as_lineno_1=$LINENO |
---|
2931 | as_lineno_2=$LINENO |
---|
2932 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
2933 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
2934 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
2935 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
2936 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
2937 | CONFIG_SHELL=$as_dir/$as_base |
---|
2938 | export CONFIG_SHELL |
---|
2939 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
2940 | fi;; |
---|
2941 | esac |
---|
2942 | done |
---|
2943 | done |
---|
2944 | ;; |
---|
2945 | esac |
---|
2946 | |
---|
2947 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
2948 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
2949 | # line-number line before each line; the second 'sed' does the real |
---|
2950 | # work. The second script uses 'N' to pair each line-number line |
---|
2951 | # with the numbered line, and appends trailing '-' during |
---|
2952 | # substitution so that $LINENO is not a special case at line end. |
---|
2953 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
2954 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
2955 | sed '=' <$as_myself | |
---|
2956 | sed ' |
---|
2957 | N |
---|
2958 | s,$,-, |
---|
2959 | : loop |
---|
2960 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
2961 | t loop |
---|
2962 | s,-$,, |
---|
2963 | s,^['$as_cr_digits']*\n,, |
---|
2964 | ' >$as_me.lineno && |
---|
2965 | chmod +x $as_me.lineno || |
---|
2966 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
2967 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
2968 | { (exit 1); exit 1; }; } |
---|
2969 | |
---|
2970 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
2971 | # (the dirname of $[0] is not the place where we might find the |
---|
2972 | # original and so on. Autoconf is especially sensible to this). |
---|
2973 | . ./$as_me.lineno |
---|
2974 | # Exit status is that of the last command. |
---|
2975 | exit |
---|
2976 | } |
---|
2977 | |
---|
2978 | |
---|
2979 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
2980 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
2981 | ' ECHO_T=' ' ;; |
---|
2982 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
2983 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
2984 | esac |
---|
2985 | |
---|
2986 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
2987 | as_expr=expr |
---|
2988 | else |
---|
2989 | as_expr=false |
---|
2990 | fi |
---|
2991 | |
---|
2992 | rm -f conf$$ conf$$.exe conf$$.file |
---|
2993 | echo >conf$$.file |
---|
2994 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
2995 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
2996 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
2997 | if test -f conf$$.exe; then |
---|
2998 | # Don't use ln at all; we don't have any links |
---|
2999 | as_ln_s='cp -p' |
---|
3000 | else |
---|
3001 | as_ln_s='ln -s' |
---|
3002 | fi |
---|
3003 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
3004 | as_ln_s=ln |
---|
3005 | else |
---|
3006 | as_ln_s='cp -p' |
---|
3007 | fi |
---|
3008 | rm -f conf$$ conf$$.exe conf$$.file |
---|
3009 | |
---|
3010 | if mkdir -p . 2>/dev/null; then |
---|
3011 | as_mkdir_p=: |
---|
3012 | else |
---|
3013 | test -d ./-p && rmdir ./-p |
---|
3014 | as_mkdir_p=false |
---|
3015 | fi |
---|
3016 | |
---|
3017 | as_executable_p="test -f" |
---|
3018 | |
---|
3019 | # Sed expression to map a string onto a valid CPP name. |
---|
3020 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
3021 | |
---|
3022 | # Sed expression to map a string onto a valid variable name. |
---|
3023 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
3024 | |
---|
3025 | |
---|
3026 | # IFS |
---|
3027 | # We need space, tab and new line, in precisely that order. |
---|
3028 | as_nl=' |
---|
3029 | ' |
---|
3030 | IFS=" $as_nl" |
---|
3031 | |
---|
3032 | # CDPATH. |
---|
3033 | $as_unset CDPATH |
---|
3034 | |
---|
3035 | exec 6>&1 |
---|
3036 | |
---|
3037 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
3038 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
3039 | # values after options handling. Logging --version etc. is OK. |
---|
3040 | exec 5>>config.log |
---|
3041 | { |
---|
3042 | echo |
---|
3043 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
3044 | ## Running $as_me. ## |
---|
3045 | _ASBOX |
---|
3046 | } >&5 |
---|
3047 | cat >&5 <<_CSEOF |
---|
3048 | |
---|
3049 | This file was extended by $as_me, which was |
---|
3050 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
3051 | |
---|
3052 | CONFIG_FILES = $CONFIG_FILES |
---|
3053 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
3054 | CONFIG_LINKS = $CONFIG_LINKS |
---|
3055 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
3056 | $ $0 $@ |
---|
3057 | |
---|
3058 | _CSEOF |
---|
3059 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
3060 | echo >&5 |
---|
3061 | _ACEOF |
---|
3062 | |
---|
3063 | # Files that config.status was made for. |
---|
3064 | if test -n "$ac_config_files"; then |
---|
3065 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
3066 | fi |
---|
3067 | |
---|
3068 | if test -n "$ac_config_headers"; then |
---|
3069 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
3070 | fi |
---|
3071 | |
---|
3072 | if test -n "$ac_config_links"; then |
---|
3073 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
3074 | fi |
---|
3075 | |
---|
3076 | if test -n "$ac_config_commands"; then |
---|
3077 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
3078 | fi |
---|
3079 | |
---|
3080 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3081 | |
---|
3082 | ac_cs_usage="\ |
---|
3083 | \`$as_me' instantiates files from templates according to the |
---|
3084 | current configuration. |
---|
3085 | |
---|
3086 | Usage: $0 [OPTIONS] [FILE]... |
---|
3087 | |
---|
3088 | -h, --help print this help, then exit |
---|
3089 | -V, --version print version number, then exit |
---|
3090 | -q, --quiet do not print progress messages |
---|
3091 | -d, --debug don't remove temporary files |
---|
3092 | --recheck update $as_me by reconfiguring in the same conditions |
---|
3093 | --file=FILE[:TEMPLATE] |
---|
3094 | instantiate the configuration file FILE |
---|
3095 | |
---|
3096 | Configuration files: |
---|
3097 | $config_files |
---|
3098 | |
---|
3099 | Report bugs to <bug-autoconf@gnu.org>." |
---|
3100 | _ACEOF |
---|
3101 | |
---|
3102 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
3103 | ac_cs_version="\\ |
---|
3104 | config.status |
---|
3105 | configured by $0, generated by GNU Autoconf 2.59, |
---|
3106 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
3107 | |
---|
3108 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
3109 | This config.status script is free software; the Free Software Foundation |
---|
3110 | gives unlimited permission to copy, distribute and modify it." |
---|
3111 | srcdir=$srcdir |
---|
3112 | _ACEOF |
---|
3113 | |
---|
3114 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3115 | # If no file are specified by the user, then we need to provide default |
---|
3116 | # value. By we need to know if files were specified by the user. |
---|
3117 | ac_need_defaults=: |
---|
3118 | while test $# != 0 |
---|
3119 | do |
---|
3120 | case $1 in |
---|
3121 | --*=*) |
---|
3122 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
3123 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
3124 | ac_shift=: |
---|
3125 | ;; |
---|
3126 | -*) |
---|
3127 | ac_option=$1 |
---|
3128 | ac_optarg=$2 |
---|
3129 | ac_shift=shift |
---|
3130 | ;; |
---|
3131 | *) # This is not an option, so the user has probably given explicit |
---|
3132 | # arguments. |
---|
3133 | ac_option=$1 |
---|
3134 | ac_need_defaults=false;; |
---|
3135 | esac |
---|
3136 | |
---|
3137 | case $ac_option in |
---|
3138 | # Handling of the options. |
---|
3139 | _ACEOF |
---|
3140 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3141 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
3142 | ac_cs_recheck=: ;; |
---|
3143 | --version | --vers* | -V ) |
---|
3144 | echo "$ac_cs_version"; exit 0 ;; |
---|
3145 | --he | --h) |
---|
3146 | # Conflict between --help and --header |
---|
3147 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
3148 | Try \`$0 --help' for more information." >&5 |
---|
3149 | echo "$as_me: error: ambiguous option: $1 |
---|
3150 | Try \`$0 --help' for more information." >&2;} |
---|
3151 | { (exit 1); exit 1; }; };; |
---|
3152 | --help | --hel | -h ) |
---|
3153 | echo "$ac_cs_usage"; exit 0 ;; |
---|
3154 | --debug | --d* | -d ) |
---|
3155 | debug=: ;; |
---|
3156 | --file | --fil | --fi | --f ) |
---|
3157 | $ac_shift |
---|
3158 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
3159 | ac_need_defaults=false;; |
---|
3160 | --header | --heade | --head | --hea ) |
---|
3161 | $ac_shift |
---|
3162 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
3163 | ac_need_defaults=false;; |
---|
3164 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
3165 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
3166 | ac_cs_silent=: ;; |
---|
3167 | |
---|
3168 | # This is an error. |
---|
3169 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
3170 | Try \`$0 --help' for more information." >&5 |
---|
3171 | echo "$as_me: error: unrecognized option: $1 |
---|
3172 | Try \`$0 --help' for more information." >&2;} |
---|
3173 | { (exit 1); exit 1; }; } ;; |
---|
3174 | |
---|
3175 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
3176 | |
---|
3177 | esac |
---|
3178 | shift |
---|
3179 | done |
---|
3180 | |
---|
3181 | ac_configure_extra_args= |
---|
3182 | |
---|
3183 | if $ac_cs_silent; then |
---|
3184 | exec 6>/dev/null |
---|
3185 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
3186 | fi |
---|
3187 | |
---|
3188 | _ACEOF |
---|
3189 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
3190 | if \$ac_cs_recheck; then |
---|
3191 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
3192 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
3193 | fi |
---|
3194 | |
---|
3195 | _ACEOF |
---|
3196 | |
---|
3197 | |
---|
3198 | |
---|
3199 | |
---|
3200 | |
---|
3201 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3202 | for ac_config_target in $ac_config_targets |
---|
3203 | do |
---|
3204 | case "$ac_config_target" in |
---|
3205 | # Handling of arguments. |
---|
3206 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
3207 | "pxeconfig" ) CONFIG_FILES="$CONFIG_FILES pxeconfig" ;; |
---|
3208 | "pxeconfigd" ) CONFIG_FILES="$CONFIG_FILES pxeconfigd" ;; |
---|
3209 | "hexls" ) CONFIG_FILES="$CONFIG_FILES hexls" ;; |
---|
3210 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
3211 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
3212 | { (exit 1); exit 1; }; };; |
---|
3213 | esac |
---|
3214 | done |
---|
3215 | |
---|
3216 | # If the user did not use the arguments to specify the items to instantiate, |
---|
3217 | # then the envvar interface is used. Set only those that are not. |
---|
3218 | # We use the long form for the default assignment because of an extremely |
---|
3219 | # bizarre bug on SunOS 4.1.3. |
---|
3220 | if $ac_need_defaults; then |
---|
3221 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
3222 | fi |
---|
3223 | |
---|
3224 | # Have a temporary directory for convenience. Make it in the build tree |
---|
3225 | # simply because there is no reason to put it here, and in addition, |
---|
3226 | # creating and moving files from /tmp can sometimes cause problems. |
---|
3227 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
3228 | $debug || |
---|
3229 | { |
---|
3230 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
3231 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
3232 | } |
---|
3233 | |
---|
3234 | # Create a (secure) tmp directory for tmp files. |
---|
3235 | |
---|
3236 | { |
---|
3237 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
3238 | test -n "$tmp" && test -d "$tmp" |
---|
3239 | } || |
---|
3240 | { |
---|
3241 | tmp=./confstat$$-$RANDOM |
---|
3242 | (umask 077 && mkdir $tmp) |
---|
3243 | } || |
---|
3244 | { |
---|
3245 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
3246 | { (exit 1); exit 1; } |
---|
3247 | } |
---|
3248 | |
---|
3249 | _ACEOF |
---|
3250 | |
---|
3251 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
3252 | |
---|
3253 | # |
---|
3254 | # CONFIG_FILES section. |
---|
3255 | # |
---|
3256 | |
---|
3257 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
3258 | # This happens for instance when ./config.status config.h |
---|
3259 | if test -n "\$CONFIG_FILES"; then |
---|
3260 | # Protect against being on the right side of a sed subst in config.status. |
---|
3261 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
3262 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
3263 | s,@SHELL@,$SHELL,;t t |
---|
3264 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
3265 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
3266 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
3267 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
3268 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
3269 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
3270 | s,@exec_prefix@,$exec_prefix,;t t |
---|
3271 | s,@prefix@,$prefix,;t t |
---|
3272 | s,@program_transform_name@,$program_transform_name,;t t |
---|
3273 | s,@bindir@,$bindir,;t t |
---|
3274 | s,@sbindir@,$sbindir,;t t |
---|
3275 | s,@libexecdir@,$libexecdir,;t t |
---|
3276 | s,@datadir@,$datadir,;t t |
---|
3277 | s,@sysconfdir@,$sysconfdir,;t t |
---|
3278 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
3279 | s,@localstatedir@,$localstatedir,;t t |
---|
3280 | s,@libdir@,$libdir,;t t |
---|
3281 | s,@includedir@,$includedir,;t t |
---|
3282 | s,@oldincludedir@,$oldincludedir,;t t |
---|
3283 | s,@infodir@,$infodir,;t t |
---|
3284 | s,@mandir@,$mandir,;t t |
---|
3285 | s,@build_alias@,$build_alias,;t t |
---|
3286 | s,@host_alias@,$host_alias,;t t |
---|
3287 | s,@target_alias@,$target_alias,;t t |
---|
3288 | s,@DEFS@,$DEFS,;t t |
---|
3289 | s,@ECHO_C@,$ECHO_C,;t t |
---|
3290 | s,@ECHO_N@,$ECHO_N,;t t |
---|
3291 | s,@ECHO_T@,$ECHO_T,;t t |
---|
3292 | s,@LIBS@,$LIBS,;t t |
---|
3293 | s,@pyexecdir@,$pyexecdir,;t t |
---|
3294 | s,@PYTHON@,$PYTHON,;t t |
---|
3295 | s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t |
---|
3296 | s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t |
---|
3297 | s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t |
---|
3298 | s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t |
---|
3299 | s,@pythondir@,$pythondir,;t t |
---|
3300 | s,@pkgpythondir@,$pkgpythondir,;t t |
---|
3301 | s,@pkgpyexecdir@,$pkgpyexecdir,;t t |
---|
3302 | s,@CC@,$CC,;t t |
---|
3303 | s,@CFLAGS@,$CFLAGS,;t t |
---|
3304 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
3305 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
3306 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
3307 | s,@EXEEXT@,$EXEEXT,;t t |
---|
3308 | s,@OBJEXT@,$OBJEXT,;t t |
---|
3309 | s,@CPP@,$CPP,;t t |
---|
3310 | s,@EGREP@,$EGREP,;t t |
---|
3311 | s,@DEBUG@,$DEBUG,;t t |
---|
3312 | s,@pxeconfig_conf@,$pxeconfig_conf,;t t |
---|
3313 | s,@SYSTEM_PXECONFIG_CONF@,$SYSTEM_PXECONFIG_CONF,;t t |
---|
3314 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
3315 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
3316 | CEOF |
---|
3317 | |
---|
3318 | _ACEOF |
---|
3319 | |
---|
3320 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3321 | # Split the substitutions into bite-sized pieces for seds with |
---|
3322 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
3323 | ac_max_sed_lines=48 |
---|
3324 | ac_sed_frag=1 # Number of current file. |
---|
3325 | ac_beg=1 # First line for current file. |
---|
3326 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
3327 | ac_more_lines=: |
---|
3328 | ac_sed_cmds= |
---|
3329 | while $ac_more_lines; do |
---|
3330 | if test $ac_beg -gt 1; then |
---|
3331 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
3332 | else |
---|
3333 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
3334 | fi |
---|
3335 | if test ! -s $tmp/subs.frag; then |
---|
3336 | ac_more_lines=false |
---|
3337 | else |
---|
3338 | # The purpose of the label and of the branching condition is to |
---|
3339 | # speed up the sed processing (if there are no `@' at all, there |
---|
3340 | # is no need to browse any of the substitutions). |
---|
3341 | # These are the two extra sed commands mentioned above. |
---|
3342 | (echo ':t |
---|
3343 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
3344 | if test -z "$ac_sed_cmds"; then |
---|
3345 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
3346 | else |
---|
3347 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
3348 | fi |
---|
3349 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
3350 | ac_beg=$ac_end |
---|
3351 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
3352 | fi |
---|
3353 | done |
---|
3354 | if test -z "$ac_sed_cmds"; then |
---|
3355 | ac_sed_cmds=cat |
---|
3356 | fi |
---|
3357 | fi # test -n "$CONFIG_FILES" |
---|
3358 | |
---|
3359 | _ACEOF |
---|
3360 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3361 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
3362 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
3363 | case $ac_file in |
---|
3364 | - | *:- | *:-:* ) # input from stdin |
---|
3365 | cat >$tmp/stdin |
---|
3366 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
3367 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
3368 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
3369 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
3370 | * ) ac_file_in=$ac_file.in ;; |
---|
3371 | esac |
---|
3372 | |
---|
3373 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
3374 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
3375 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
3376 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
3377 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
3378 | X"$ac_file" : 'X\(/\)' \| \ |
---|
3379 | . : '\(.\)' 2>/dev/null || |
---|
3380 | echo X"$ac_file" | |
---|
3381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
3382 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
3383 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
3384 | /^X\(\/\).*/{ s//\1/; q; } |
---|
3385 | s/.*/./; q'` |
---|
3386 | { if $as_mkdir_p; then |
---|
3387 | mkdir -p "$ac_dir" |
---|
3388 | else |
---|
3389 | as_dir="$ac_dir" |
---|
3390 | as_dirs= |
---|
3391 | while test ! -d "$as_dir"; do |
---|
3392 | as_dirs="$as_dir $as_dirs" |
---|
3393 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
3394 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
3395 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
3396 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
3397 | X"$as_dir" : 'X\(/\)' \| \ |
---|
3398 | . : '\(.\)' 2>/dev/null || |
---|
3399 | echo X"$as_dir" | |
---|
3400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
3401 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
3402 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
3403 | /^X\(\/\).*/{ s//\1/; q; } |
---|
3404 | s/.*/./; q'` |
---|
3405 | done |
---|
3406 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
3407 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
3408 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
3409 | { (exit 1); exit 1; }; }; } |
---|
3410 | |
---|
3411 | ac_builddir=. |
---|
3412 | |
---|
3413 | if test "$ac_dir" != .; then |
---|
3414 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
3415 | # A "../" for each directory in $ac_dir_suffix. |
---|
3416 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
3417 | else |
---|
3418 | ac_dir_suffix= ac_top_builddir= |
---|
3419 | fi |
---|
3420 | |
---|
3421 | case $srcdir in |
---|
3422 | .) # No --srcdir option. We are building in place. |
---|
3423 | ac_srcdir=. |
---|
3424 | if test -z "$ac_top_builddir"; then |
---|
3425 | ac_top_srcdir=. |
---|
3426 | else |
---|
3427 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
3428 | fi ;; |
---|
3429 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
3430 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
3431 | ac_top_srcdir=$srcdir ;; |
---|
3432 | *) # Relative path. |
---|
3433 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
3434 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
3435 | esac |
---|
3436 | |
---|
3437 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
3438 | # the directories may not exist. |
---|
3439 | case `pwd` in |
---|
3440 | .) ac_abs_builddir="$ac_dir";; |
---|
3441 | *) |
---|
3442 | case "$ac_dir" in |
---|
3443 | .) ac_abs_builddir=`pwd`;; |
---|
3444 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
3445 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
3446 | esac;; |
---|
3447 | esac |
---|
3448 | case $ac_abs_builddir in |
---|
3449 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
3450 | *) |
---|
3451 | case ${ac_top_builddir}. in |
---|
3452 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
3453 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
3454 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
3455 | esac;; |
---|
3456 | esac |
---|
3457 | case $ac_abs_builddir in |
---|
3458 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
3459 | *) |
---|
3460 | case $ac_srcdir in |
---|
3461 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
3462 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
3463 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
3464 | esac;; |
---|
3465 | esac |
---|
3466 | case $ac_abs_builddir in |
---|
3467 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
3468 | *) |
---|
3469 | case $ac_top_srcdir in |
---|
3470 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
3471 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
3472 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
3473 | esac;; |
---|
3474 | esac |
---|
3475 | |
---|
3476 | |
---|
3477 | |
---|
3478 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
3479 | # use $as_me), people would be surprised to read: |
---|
3480 | # /* config.h. Generated by config.status. */ |
---|
3481 | if test x"$ac_file" = x-; then |
---|
3482 | configure_input= |
---|
3483 | else |
---|
3484 | configure_input="$ac_file. " |
---|
3485 | fi |
---|
3486 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
3487 | sed 's,.*/,,'` by configure." |
---|
3488 | |
---|
3489 | # First look for the input files in the build tree, otherwise in the |
---|
3490 | # src tree. |
---|
3491 | ac_file_inputs=`IFS=: |
---|
3492 | for f in $ac_file_in; do |
---|
3493 | case $f in |
---|
3494 | -) echo $tmp/stdin ;; |
---|
3495 | [\\/$]*) |
---|
3496 | # Absolute (can't be DOS-style, as IFS=:) |
---|
3497 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
3498 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
3499 | { (exit 1); exit 1; }; } |
---|
3500 | echo "$f";; |
---|
3501 | *) # Relative |
---|
3502 | if test -f "$f"; then |
---|
3503 | # Build tree |
---|
3504 | echo "$f" |
---|
3505 | elif test -f "$srcdir/$f"; then |
---|
3506 | # Source tree |
---|
3507 | echo "$srcdir/$f" |
---|
3508 | else |
---|
3509 | # /dev/null tree |
---|
3510 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
3511 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
3512 | { (exit 1); exit 1; }; } |
---|
3513 | fi;; |
---|
3514 | esac |
---|
3515 | done` || { (exit 1); exit 1; } |
---|
3516 | |
---|
3517 | if test x"$ac_file" != x-; then |
---|
3518 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
3519 | echo "$as_me: creating $ac_file" >&6;} |
---|
3520 | rm -f "$ac_file" |
---|
3521 | fi |
---|
3522 | _ACEOF |
---|
3523 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
3524 | sed "$ac_vpsub |
---|
3525 | $extrasub |
---|
3526 | _ACEOF |
---|
3527 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3528 | :t |
---|
3529 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
3530 | s,@configure_input@,$configure_input,;t t |
---|
3531 | s,@srcdir@,$ac_srcdir,;t t |
---|
3532 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
3533 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
3534 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
3535 | s,@builddir@,$ac_builddir,;t t |
---|
3536 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
3537 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
3538 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
3539 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
3540 | rm -f $tmp/stdin |
---|
3541 | if test x"$ac_file" != x-; then |
---|
3542 | mv $tmp/out $ac_file |
---|
3543 | else |
---|
3544 | cat $tmp/out |
---|
3545 | rm -f $tmp/out |
---|
3546 | fi |
---|
3547 | |
---|
3548 | done |
---|
3549 | _ACEOF |
---|
3550 | |
---|
3551 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
3552 | |
---|
3553 | { (exit 0); exit 0; } |
---|
3554 | _ACEOF |
---|
3555 | chmod +x $CONFIG_STATUS |
---|
3556 | ac_clean_files=$ac_clean_files_save |
---|
3557 | |
---|
3558 | |
---|
3559 | # configure is writing to config.log, and then calls config.status. |
---|
3560 | # config.status does its own redirection, appending to config.log. |
---|
3561 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
3562 | # by configure, so config.status won't be able to write to it; its |
---|
3563 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
3564 | # effectively closing config.log, so it can be properly (re)opened and |
---|
3565 | # appended to by config.status. When coming back to configure, we |
---|
3566 | # need to make the FD available again. |
---|
3567 | if test "$no_create" != yes; then |
---|
3568 | ac_cs_success=: |
---|
3569 | ac_config_status_args= |
---|
3570 | test "$silent" = yes && |
---|
3571 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
3572 | exec 5>/dev/null |
---|
3573 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
3574 | exec 5>>config.log |
---|
3575 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
3576 | # would make configure fail if this is the last instruction. |
---|
3577 | $ac_cs_success || { (exit 1); exit 1; } |
---|
3578 | fi |
---|
3579 | |
---|