1 | @%:@! /bin/sh |
---|
2 | @%:@ Guess values for system-dependent variables and create Makefiles. |
---|
3 | @%:@ Generated by GNU Autoconf 2.58. |
---|
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="orxonox.cc" |
---|
275 | # Factoring default headers for most tests. |
---|
276 | ac_includes_default="\ |
---|
277 | #include <stdio.h> |
---|
278 | #if HAVE_SYS_TYPES_H |
---|
279 | # include <sys/types.h> |
---|
280 | #endif |
---|
281 | #if HAVE_SYS_STAT_H |
---|
282 | # include <sys/stat.h> |
---|
283 | #endif |
---|
284 | #if STDC_HEADERS |
---|
285 | # include <stdlib.h> |
---|
286 | # include <stddef.h> |
---|
287 | #else |
---|
288 | # if HAVE_STDLIB_H |
---|
289 | # include <stdlib.h> |
---|
290 | # endif |
---|
291 | #endif |
---|
292 | #if HAVE_STRING_H |
---|
293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
294 | # include <memory.h> |
---|
295 | # endif |
---|
296 | # include <string.h> |
---|
297 | #endif |
---|
298 | #if HAVE_STRINGS_H |
---|
299 | # include <strings.h> |
---|
300 | #endif |
---|
301 | #if HAVE_INTTYPES_H |
---|
302 | # include <inttypes.h> |
---|
303 | #else |
---|
304 | # if HAVE_STDINT_H |
---|
305 | # include <stdint.h> |
---|
306 | # endif |
---|
307 | #endif |
---|
308 | #if HAVE_UNISTD_H |
---|
309 | # include <unistd.h> |
---|
310 | #endif" |
---|
311 | |
---|
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot ISODATE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP ALLOCA LIB@&t@OBJS LTLIBOBJS' |
---|
313 | ac_subst_files='' |
---|
314 | |
---|
315 | # Initialize some variables set by options. |
---|
316 | ac_init_help= |
---|
317 | ac_init_version=false |
---|
318 | # The variables have the same names as the options, with |
---|
319 | # dashes changed to underlines. |
---|
320 | cache_file=/dev/null |
---|
321 | exec_prefix=NONE |
---|
322 | no_create= |
---|
323 | no_recursion= |
---|
324 | prefix=NONE |
---|
325 | program_prefix=NONE |
---|
326 | program_suffix=NONE |
---|
327 | program_transform_name=s,x,x, |
---|
328 | silent= |
---|
329 | site= |
---|
330 | srcdir= |
---|
331 | verbose= |
---|
332 | x_includes=NONE |
---|
333 | x_libraries=NONE |
---|
334 | |
---|
335 | # Installation directory options. |
---|
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
337 | # and all the variables that are supposed to be based on exec_prefix |
---|
338 | # by default will actually change. |
---|
339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
340 | bindir='${exec_prefix}/bin' |
---|
341 | sbindir='${exec_prefix}/sbin' |
---|
342 | libexecdir='${exec_prefix}/libexec' |
---|
343 | datadir='${prefix}/share' |
---|
344 | sysconfdir='${prefix}/etc' |
---|
345 | sharedstatedir='${prefix}/com' |
---|
346 | localstatedir='${prefix}/var' |
---|
347 | libdir='${exec_prefix}/lib' |
---|
348 | includedir='${prefix}/include' |
---|
349 | oldincludedir='/usr/include' |
---|
350 | infodir='${prefix}/info' |
---|
351 | mandir='${prefix}/man' |
---|
352 | |
---|
353 | ac_prev= |
---|
354 | for ac_option |
---|
355 | do |
---|
356 | # If the previous option needs an argument, assign it. |
---|
357 | if test -n "$ac_prev"; then |
---|
358 | eval "$ac_prev=\$ac_option" |
---|
359 | ac_prev= |
---|
360 | continue |
---|
361 | fi |
---|
362 | |
---|
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
364 | |
---|
365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
366 | |
---|
367 | case $ac_option in |
---|
368 | |
---|
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
370 | ac_prev=bindir ;; |
---|
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
372 | bindir=$ac_optarg ;; |
---|
373 | |
---|
374 | -build | --build | --buil | --bui | --bu) |
---|
375 | ac_prev=build_alias ;; |
---|
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
377 | build_alias=$ac_optarg ;; |
---|
378 | |
---|
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
381 | ac_prev=cache_file ;; |
---|
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
384 | cache_file=$ac_optarg ;; |
---|
385 | |
---|
386 | --config-cache | -C) |
---|
387 | cache_file=config.cache ;; |
---|
388 | |
---|
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
390 | ac_prev=datadir ;; |
---|
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
392 | | --da=*) |
---|
393 | datadir=$ac_optarg ;; |
---|
394 | |
---|
395 | -disable-* | --disable-*) |
---|
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
397 | # Reject names that are not valid shell variable names. |
---|
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
400 | { (exit 1); exit 1; }; } |
---|
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
402 | eval "enable_$ac_feature=no" ;; |
---|
403 | |
---|
404 | -enable-* | --enable-*) |
---|
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
406 | # Reject names that are not valid shell variable names. |
---|
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
409 | { (exit 1); exit 1; }; } |
---|
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
411 | case $ac_option in |
---|
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
413 | *) ac_optarg=yes ;; |
---|
414 | esac |
---|
415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
416 | |
---|
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
419 | | --exec | --exe | --ex) |
---|
420 | ac_prev=exec_prefix ;; |
---|
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
423 | | --exec=* | --exe=* | --ex=*) |
---|
424 | exec_prefix=$ac_optarg ;; |
---|
425 | |
---|
426 | -gas | --gas | --ga | --g) |
---|
427 | # Obsolete; use --with-gas. |
---|
428 | with_gas=yes ;; |
---|
429 | |
---|
430 | -help | --help | --hel | --he | -h) |
---|
431 | ac_init_help=long ;; |
---|
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
433 | ac_init_help=recursive ;; |
---|
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
435 | ac_init_help=short ;; |
---|
436 | |
---|
437 | -host | --host | --hos | --ho) |
---|
438 | ac_prev=host_alias ;; |
---|
439 | -host=* | --host=* | --hos=* | --ho=*) |
---|
440 | host_alias=$ac_optarg ;; |
---|
441 | |
---|
442 | -includedir | --includedir | --includedi | --included | --include \ |
---|
443 | | --includ | --inclu | --incl | --inc) |
---|
444 | ac_prev=includedir ;; |
---|
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
447 | includedir=$ac_optarg ;; |
---|
448 | |
---|
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
450 | ac_prev=infodir ;; |
---|
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
452 | infodir=$ac_optarg ;; |
---|
453 | |
---|
454 | -libdir | --libdir | --libdi | --libd) |
---|
455 | ac_prev=libdir ;; |
---|
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
457 | libdir=$ac_optarg ;; |
---|
458 | |
---|
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
460 | | --libexe | --libex | --libe) |
---|
461 | ac_prev=libexecdir ;; |
---|
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
463 | | --libexe=* | --libex=* | --libe=*) |
---|
464 | libexecdir=$ac_optarg ;; |
---|
465 | |
---|
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
467 | | --localstate | --localstat | --localsta | --localst \ |
---|
468 | | --locals | --local | --loca | --loc | --lo) |
---|
469 | ac_prev=localstatedir ;; |
---|
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
473 | localstatedir=$ac_optarg ;; |
---|
474 | |
---|
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
476 | ac_prev=mandir ;; |
---|
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
478 | mandir=$ac_optarg ;; |
---|
479 | |
---|
480 | -nfp | --nfp | --nf) |
---|
481 | # Obsolete; use --without-fp. |
---|
482 | with_fp=no ;; |
---|
483 | |
---|
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
485 | | --no-cr | --no-c | -n) |
---|
486 | no_create=yes ;; |
---|
487 | |
---|
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
490 | no_recursion=yes ;; |
---|
491 | |
---|
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
494 | | --oldin | --oldi | --old | --ol | --o) |
---|
495 | ac_prev=oldincludedir ;; |
---|
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
499 | oldincludedir=$ac_optarg ;; |
---|
500 | |
---|
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
502 | ac_prev=prefix ;; |
---|
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
504 | prefix=$ac_optarg ;; |
---|
505 | |
---|
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
507 | | --program-pre | --program-pr | --program-p) |
---|
508 | ac_prev=program_prefix ;; |
---|
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
511 | program_prefix=$ac_optarg ;; |
---|
512 | |
---|
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
514 | | --program-suf | --program-su | --program-s) |
---|
515 | ac_prev=program_suffix ;; |
---|
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
518 | program_suffix=$ac_optarg ;; |
---|
519 | |
---|
520 | -program-transform-name | --program-transform-name \ |
---|
521 | | --program-transform-nam | --program-transform-na \ |
---|
522 | | --program-transform-n | --program-transform- \ |
---|
523 | | --program-transform | --program-transfor \ |
---|
524 | | --program-transfo | --program-transf \ |
---|
525 | | --program-trans | --program-tran \ |
---|
526 | | --progr-tra | --program-tr | --program-t) |
---|
527 | ac_prev=program_transform_name ;; |
---|
528 | -program-transform-name=* | --program-transform-name=* \ |
---|
529 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
530 | | --program-transform-n=* | --program-transform-=* \ |
---|
531 | | --program-transform=* | --program-transfor=* \ |
---|
532 | | --program-transfo=* | --program-transf=* \ |
---|
533 | | --program-trans=* | --program-tran=* \ |
---|
534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
535 | program_transform_name=$ac_optarg ;; |
---|
536 | |
---|
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
538 | | -silent | --silent | --silen | --sile | --sil) |
---|
539 | silent=yes ;; |
---|
540 | |
---|
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
542 | ac_prev=sbindir ;; |
---|
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
544 | | --sbi=* | --sb=*) |
---|
545 | sbindir=$ac_optarg ;; |
---|
546 | |
---|
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
549 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
550 | | --sha | --sh) |
---|
551 | ac_prev=sharedstatedir ;; |
---|
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
555 | | --sha=* | --sh=*) |
---|
556 | sharedstatedir=$ac_optarg ;; |
---|
557 | |
---|
558 | -site | --site | --sit) |
---|
559 | ac_prev=site ;; |
---|
560 | -site=* | --site=* | --sit=*) |
---|
561 | site=$ac_optarg ;; |
---|
562 | |
---|
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
564 | ac_prev=srcdir ;; |
---|
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
566 | srcdir=$ac_optarg ;; |
---|
567 | |
---|
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
569 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
570 | ac_prev=sysconfdir ;; |
---|
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
573 | sysconfdir=$ac_optarg ;; |
---|
574 | |
---|
575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
576 | ac_prev=target_alias ;; |
---|
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
578 | target_alias=$ac_optarg ;; |
---|
579 | |
---|
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
581 | verbose=yes ;; |
---|
582 | |
---|
583 | -version | --version | --versio | --versi | --vers | -V) |
---|
584 | ac_init_version=: ;; |
---|
585 | |
---|
586 | -with-* | --with-*) |
---|
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
588 | # Reject names that are not valid shell variable names. |
---|
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
591 | { (exit 1); exit 1; }; } |
---|
592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
593 | case $ac_option in |
---|
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
595 | *) ac_optarg=yes ;; |
---|
596 | esac |
---|
597 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
598 | |
---|
599 | -without-* | --without-*) |
---|
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
601 | # Reject names that are not valid shell variable names. |
---|
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
604 | { (exit 1); exit 1; }; } |
---|
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
606 | eval "with_$ac_package=no" ;; |
---|
607 | |
---|
608 | --x) |
---|
609 | # Obsolete; use --with-x. |
---|
610 | with_x=yes ;; |
---|
611 | |
---|
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
613 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
614 | ac_prev=x_includes ;; |
---|
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
617 | x_includes=$ac_optarg ;; |
---|
618 | |
---|
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
621 | ac_prev=x_libraries ;; |
---|
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
624 | x_libraries=$ac_optarg ;; |
---|
625 | |
---|
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
627 | Try \`$0 --help' for more information." >&2 |
---|
628 | { (exit 1); exit 1; }; } |
---|
629 | ;; |
---|
630 | |
---|
631 | *=*) |
---|
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
633 | # Reject names that are not valid shell variable names. |
---|
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
636 | { (exit 1); exit 1; }; } |
---|
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
638 | eval "$ac_envvar='$ac_optarg'" |
---|
639 | export $ac_envvar ;; |
---|
640 | |
---|
641 | *) |
---|
642 | # FIXME: should be removed in autoconf 3.0. |
---|
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
647 | ;; |
---|
648 | |
---|
649 | esac |
---|
650 | done |
---|
651 | |
---|
652 | if test -n "$ac_prev"; then |
---|
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
655 | { (exit 1); exit 1; }; } |
---|
656 | fi |
---|
657 | |
---|
658 | # Be sure to have absolute paths. |
---|
659 | for ac_var in exec_prefix prefix |
---|
660 | do |
---|
661 | eval ac_val=$`echo $ac_var` |
---|
662 | case $ac_val in |
---|
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
665 | { (exit 1); exit 1; }; };; |
---|
666 | esac |
---|
667 | done |
---|
668 | |
---|
669 | # Be sure to have absolute paths. |
---|
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
671 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
672 | do |
---|
673 | eval ac_val=$`echo $ac_var` |
---|
674 | case $ac_val in |
---|
675 | [\\/$]* | ?:[\\/]* ) ;; |
---|
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
677 | { (exit 1); exit 1; }; };; |
---|
678 | esac |
---|
679 | done |
---|
680 | |
---|
681 | # There might be people who depend on the old broken behavior: `$host' |
---|
682 | # used to hold the argument of --host etc. |
---|
683 | # FIXME: To remove some day. |
---|
684 | build=$build_alias |
---|
685 | host=$host_alias |
---|
686 | target=$target_alias |
---|
687 | |
---|
688 | # FIXME: To remove some day. |
---|
689 | if test "x$host_alias" != x; then |
---|
690 | if test "x$build_alias" = x; then |
---|
691 | cross_compiling=maybe |
---|
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
694 | elif test "x$build_alias" != "x$host_alias"; then |
---|
695 | cross_compiling=yes |
---|
696 | fi |
---|
697 | fi |
---|
698 | |
---|
699 | ac_tool_prefix= |
---|
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
701 | |
---|
702 | test "$silent" = yes && exec 6>/dev/null |
---|
703 | |
---|
704 | |
---|
705 | # Find the source files, if location was not specified. |
---|
706 | if test -z "$srcdir"; then |
---|
707 | ac_srcdir_defaulted=yes |
---|
708 | # Try the directory containing this script, then its parent. |
---|
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
711 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
712 | X"$0" : 'X\(//\)$' \| \ |
---|
713 | X"$0" : 'X\(/\)' \| \ |
---|
714 | . : '\(.\)' 2>/dev/null || |
---|
715 | echo X"$0" | |
---|
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
718 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
719 | /^X\(\/\).*/{ s//\1/; q; } |
---|
720 | s/.*/./; q'` |
---|
721 | srcdir=$ac_confdir |
---|
722 | if test ! -r $srcdir/$ac_unique_file; then |
---|
723 | srcdir=.. |
---|
724 | fi |
---|
725 | else |
---|
726 | ac_srcdir_defaulted=no |
---|
727 | fi |
---|
728 | if test ! -r $srcdir/$ac_unique_file; then |
---|
729 | if test "$ac_srcdir_defaulted" = yes; then |
---|
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
731 | { (exit 1); exit 1; }; } |
---|
732 | else |
---|
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
734 | { (exit 1); exit 1; }; } |
---|
735 | fi |
---|
736 | fi |
---|
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
739 | { (exit 1); exit 1; }; } |
---|
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
741 | ac_env_build_alias_set=${build_alias+set} |
---|
742 | ac_env_build_alias_value=$build_alias |
---|
743 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
744 | ac_cv_env_build_alias_value=$build_alias |
---|
745 | ac_env_host_alias_set=${host_alias+set} |
---|
746 | ac_env_host_alias_value=$host_alias |
---|
747 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
748 | ac_cv_env_host_alias_value=$host_alias |
---|
749 | ac_env_target_alias_set=${target_alias+set} |
---|
750 | ac_env_target_alias_value=$target_alias |
---|
751 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
752 | ac_cv_env_target_alias_value=$target_alias |
---|
753 | ac_env_CC_set=${CC+set} |
---|
754 | ac_env_CC_value=$CC |
---|
755 | ac_cv_env_CC_set=${CC+set} |
---|
756 | ac_cv_env_CC_value=$CC |
---|
757 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
758 | ac_env_CFLAGS_value=$CFLAGS |
---|
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
760 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
762 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_env_CXX_set=${CXX+set} |
---|
770 | ac_env_CXX_value=$CXX |
---|
771 | ac_cv_env_CXX_set=${CXX+set} |
---|
772 | ac_cv_env_CXX_value=$CXX |
---|
773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
774 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
777 | ac_env_CPP_set=${CPP+set} |
---|
778 | ac_env_CPP_value=$CPP |
---|
779 | ac_cv_env_CPP_set=${CPP+set} |
---|
780 | ac_cv_env_CPP_value=$CPP |
---|
781 | |
---|
782 | # |
---|
783 | # Report the --help message. |
---|
784 | # |
---|
785 | if test "$ac_init_help" = "long"; then |
---|
786 | # Omit some internal or obsolete options to make the list less imposing. |
---|
787 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
788 | cat <<_ACEOF |
---|
789 | \`configure' configures this package to adapt to many kinds of systems. |
---|
790 | |
---|
791 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
792 | |
---|
793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
794 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
795 | |
---|
796 | Defaults for the options are specified in brackets. |
---|
797 | |
---|
798 | Configuration: |
---|
799 | -h, --help display this help and exit |
---|
800 | --help=short display options specific to this package |
---|
801 | --help=recursive display the short help of all the included packages |
---|
802 | -V, --version display version information and exit |
---|
803 | -q, --quiet, --silent do not print \`checking...' messages |
---|
804 | --cache-file=FILE cache test results in FILE [disabled] |
---|
805 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
806 | -n, --no-create do not create output files |
---|
807 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
808 | |
---|
809 | _ACEOF |
---|
810 | |
---|
811 | cat <<_ACEOF |
---|
812 | Installation directories: |
---|
813 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
814 | [$ac_default_prefix] |
---|
815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
816 | [PREFIX] |
---|
817 | |
---|
818 | By default, \`make install' will install all the files in |
---|
819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
821 | for instance \`--prefix=\$HOME'. |
---|
822 | |
---|
823 | For better control, use the options below. |
---|
824 | |
---|
825 | Fine tuning of the installation directories: |
---|
826 | --bindir=DIR user executables [EPREFIX/bin] |
---|
827 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
828 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
829 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
833 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
834 | --includedir=DIR C header files [PREFIX/include] |
---|
835 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
836 | --infodir=DIR info documentation [PREFIX/info] |
---|
837 | --mandir=DIR man documentation [PREFIX/man] |
---|
838 | _ACEOF |
---|
839 | |
---|
840 | cat <<\_ACEOF |
---|
841 | |
---|
842 | Program names: |
---|
843 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
844 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
845 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
846 | |
---|
847 | System types: |
---|
848 | --build=BUILD configure for building on BUILD [guessed] |
---|
849 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
850 | _ACEOF |
---|
851 | fi |
---|
852 | |
---|
853 | if test -n "$ac_init_help"; then |
---|
854 | |
---|
855 | cat <<\_ACEOF |
---|
856 | |
---|
857 | Optional Features: |
---|
858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
860 | --disable-dependency-tracking speeds up one-time build |
---|
861 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
862 | |
---|
863 | Some influential environment variables: |
---|
864 | CC C compiler command |
---|
865 | CFLAGS C compiler flags |
---|
866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
867 | nonstandard directory <lib dir> |
---|
868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
869 | headers in a nonstandard directory <include dir> |
---|
870 | CXX C++ compiler command |
---|
871 | CXXFLAGS C++ compiler flags |
---|
872 | CPP C preprocessor |
---|
873 | |
---|
874 | Use these variables to override the choices made by `configure' or to help |
---|
875 | it to find libraries and programs with nonstandard names/locations. |
---|
876 | |
---|
877 | _ACEOF |
---|
878 | fi |
---|
879 | |
---|
880 | if test "$ac_init_help" = "recursive"; then |
---|
881 | # If there are subdirs, report their specific --help. |
---|
882 | ac_popdir=`pwd` |
---|
883 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
884 | test -d $ac_dir || continue |
---|
885 | ac_builddir=. |
---|
886 | |
---|
887 | if test "$ac_dir" != .; then |
---|
888 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
889 | # A "../" for each directory in $ac_dir_suffix. |
---|
890 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
891 | else |
---|
892 | ac_dir_suffix= ac_top_builddir= |
---|
893 | fi |
---|
894 | |
---|
895 | case $srcdir in |
---|
896 | .) # No --srcdir option. We are building in place. |
---|
897 | ac_srcdir=. |
---|
898 | if test -z "$ac_top_builddir"; then |
---|
899 | ac_top_srcdir=. |
---|
900 | else |
---|
901 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
902 | fi ;; |
---|
903 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
904 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
905 | ac_top_srcdir=$srcdir ;; |
---|
906 | *) # Relative path. |
---|
907 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
908 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
909 | esac |
---|
910 | case "$ac_dir" in |
---|
911 | .) ac_abs_builddir=$ac_builddir;; |
---|
912 | *) |
---|
913 | case $ac_builddir in |
---|
914 | .) ac_abs_builddir="$ac_dir";; |
---|
915 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; |
---|
916 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; |
---|
917 | esac;; |
---|
918 | esac |
---|
919 | case "$ac_dir" in |
---|
920 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
921 | *) |
---|
922 | case ${ac_top_builddir}. in |
---|
923 | .) ac_abs_top_builddir="$ac_dir";; |
---|
924 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
925 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; |
---|
926 | esac;; |
---|
927 | esac |
---|
928 | case "$ac_dir" in |
---|
929 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
930 | *) |
---|
931 | case $ac_srcdir in |
---|
932 | .) ac_abs_srcdir="$ac_dir";; |
---|
933 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
934 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; |
---|
935 | esac;; |
---|
936 | esac |
---|
937 | case "$ac_dir" in |
---|
938 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
939 | *) |
---|
940 | case $ac_top_srcdir in |
---|
941 | .) ac_abs_top_srcdir="$ac_dir";; |
---|
942 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
943 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; |
---|
944 | esac;; |
---|
945 | esac |
---|
946 | |
---|
947 | cd $ac_dir |
---|
948 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
949 | if test -f $ac_srcdir/configure.gnu; then |
---|
950 | echo |
---|
951 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
952 | elif test -f $ac_srcdir/configure; then |
---|
953 | echo |
---|
954 | $SHELL $ac_srcdir/configure --help=recursive |
---|
955 | elif test -f $ac_srcdir/configure.ac || |
---|
956 | test -f $ac_srcdir/configure.in; then |
---|
957 | echo |
---|
958 | $ac_configure --help |
---|
959 | else |
---|
960 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
961 | fi |
---|
962 | cd $ac_popdir |
---|
963 | done |
---|
964 | fi |
---|
965 | |
---|
966 | test -n "$ac_init_help" && exit 0 |
---|
967 | if $ac_init_version; then |
---|
968 | cat <<\_ACEOF |
---|
969 | |
---|
970 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
971 | This configure script is free software; the Free Software Foundation |
---|
972 | gives unlimited permission to copy, distribute and modify it. |
---|
973 | _ACEOF |
---|
974 | exit 0 |
---|
975 | fi |
---|
976 | exec 5>config.log |
---|
977 | cat >&5 <<_ACEOF |
---|
978 | This file contains any messages produced by compilers while |
---|
979 | running configure, to aid debugging if configure makes a mistake. |
---|
980 | |
---|
981 | It was created by $as_me, which was |
---|
982 | generated by GNU Autoconf 2.58. Invocation command line was |
---|
983 | |
---|
984 | $ $0 $@ |
---|
985 | |
---|
986 | _ACEOF |
---|
987 | { |
---|
988 | cat <<_ASUNAME |
---|
989 | @%:@@%:@ --------- @%:@@%:@ |
---|
990 | @%:@@%:@ Platform. @%:@@%:@ |
---|
991 | @%:@@%:@ --------- @%:@@%:@ |
---|
992 | |
---|
993 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
994 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
995 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
996 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
997 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
998 | |
---|
999 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1000 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1001 | |
---|
1002 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1003 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1004 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1005 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1006 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1007 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1008 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1009 | |
---|
1010 | _ASUNAME |
---|
1011 | |
---|
1012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1013 | for as_dir in $PATH |
---|
1014 | do |
---|
1015 | IFS=$as_save_IFS |
---|
1016 | test -z "$as_dir" && as_dir=. |
---|
1017 | echo "PATH: $as_dir" |
---|
1018 | done |
---|
1019 | |
---|
1020 | } >&5 |
---|
1021 | |
---|
1022 | cat >&5 <<_ACEOF |
---|
1023 | |
---|
1024 | |
---|
1025 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1026 | @%:@@%:@ Core tests. @%:@@%:@ |
---|
1027 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1028 | |
---|
1029 | _ACEOF |
---|
1030 | |
---|
1031 | |
---|
1032 | # Keep a trace of the command line. |
---|
1033 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1034 | # Strip out --silent because we don't want to record it for future runs. |
---|
1035 | # Also quote any args containing shell meta-characters. |
---|
1036 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1037 | ac_configure_args= |
---|
1038 | ac_configure_args0= |
---|
1039 | ac_configure_args1= |
---|
1040 | ac_sep= |
---|
1041 | ac_must_keep_next=false |
---|
1042 | for ac_pass in 1 2 |
---|
1043 | do |
---|
1044 | for ac_arg |
---|
1045 | do |
---|
1046 | case $ac_arg in |
---|
1047 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1049 | | -silent | --silent | --silen | --sile | --sil) |
---|
1050 | continue ;; |
---|
1051 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1052 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1053 | esac |
---|
1054 | case $ac_pass in |
---|
1055 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1056 | 2) |
---|
1057 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1058 | if test $ac_must_keep_next = true; then |
---|
1059 | ac_must_keep_next=false # Got value, back to normal. |
---|
1060 | else |
---|
1061 | case $ac_arg in |
---|
1062 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1063 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1064 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1065 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1066 | case "$ac_configure_args0 " in |
---|
1067 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1068 | esac |
---|
1069 | ;; |
---|
1070 | -* ) ac_must_keep_next=true ;; |
---|
1071 | esac |
---|
1072 | fi |
---|
1073 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1074 | # Get rid of the leading space. |
---|
1075 | ac_sep=" " |
---|
1076 | ;; |
---|
1077 | esac |
---|
1078 | done |
---|
1079 | done |
---|
1080 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1081 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1082 | |
---|
1083 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1084 | # config.log. We remove comments because anyway the quotes in there |
---|
1085 | # would cause problems or look ugly. |
---|
1086 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1087 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1088 | trap 'exit_status=$? |
---|
1089 | # Save into config.log some information that might help in debugging. |
---|
1090 | { |
---|
1091 | echo |
---|
1092 | |
---|
1093 | cat <<\_ASBOX |
---|
1094 | @%:@@%:@ ---------------- @%:@@%:@ |
---|
1095 | @%:@@%:@ Cache variables. @%:@@%:@ |
---|
1096 | @%:@@%:@ ---------------- @%:@@%:@ |
---|
1097 | _ASBOX |
---|
1098 | echo |
---|
1099 | # The following way of writing the cache mishandles newlines in values, |
---|
1100 | { |
---|
1101 | (set) 2>&1 | |
---|
1102 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1103 | *ac_space=\ *) |
---|
1104 | sed -n \ |
---|
1105 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1107 | ;; |
---|
1108 | *) |
---|
1109 | sed -n \ |
---|
1110 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1111 | ;; |
---|
1112 | esac; |
---|
1113 | } |
---|
1114 | echo |
---|
1115 | |
---|
1116 | cat <<\_ASBOX |
---|
1117 | @%:@@%:@ ----------------- @%:@@%:@ |
---|
1118 | @%:@@%:@ Output variables. @%:@@%:@ |
---|
1119 | @%:@@%:@ ----------------- @%:@@%:@ |
---|
1120 | _ASBOX |
---|
1121 | echo |
---|
1122 | for ac_var in $ac_subst_vars |
---|
1123 | do |
---|
1124 | eval ac_val=$`echo $ac_var` |
---|
1125 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1126 | done | sort |
---|
1127 | echo |
---|
1128 | |
---|
1129 | if test -n "$ac_subst_files"; then |
---|
1130 | cat <<\_ASBOX |
---|
1131 | @%:@@%:@ ------------- @%:@@%:@ |
---|
1132 | @%:@@%:@ Output files. @%:@@%:@ |
---|
1133 | @%:@@%:@ ------------- @%:@@%:@ |
---|
1134 | _ASBOX |
---|
1135 | echo |
---|
1136 | for ac_var in $ac_subst_files |
---|
1137 | do |
---|
1138 | eval ac_val=$`echo $ac_var` |
---|
1139 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1140 | done | sort |
---|
1141 | echo |
---|
1142 | fi |
---|
1143 | |
---|
1144 | if test -s confdefs.h; then |
---|
1145 | cat <<\_ASBOX |
---|
1146 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1147 | @%:@@%:@ confdefs.h. @%:@@%:@ |
---|
1148 | @%:@@%:@ ----------- @%:@@%:@ |
---|
1149 | _ASBOX |
---|
1150 | echo |
---|
1151 | sed "/^$/d" confdefs.h | sort |
---|
1152 | echo |
---|
1153 | fi |
---|
1154 | test "$ac_signal" != 0 && |
---|
1155 | echo "$as_me: caught signal $ac_signal" |
---|
1156 | echo "$as_me: exit $exit_status" |
---|
1157 | } >&5 |
---|
1158 | rm -f core *.core && |
---|
1159 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1160 | exit $exit_status |
---|
1161 | ' 0 |
---|
1162 | for ac_signal in 1 2 13 15; do |
---|
1163 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1164 | done |
---|
1165 | ac_signal=0 |
---|
1166 | |
---|
1167 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1168 | rm -rf conftest* confdefs.h |
---|
1169 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1170 | echo >confdefs.h |
---|
1171 | |
---|
1172 | # Predefined preprocessor variables. |
---|
1173 | |
---|
1174 | cat >>confdefs.h <<_ACEOF |
---|
1175 | @%:@define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1176 | _ACEOF |
---|
1177 | |
---|
1178 | |
---|
1179 | cat >>confdefs.h <<_ACEOF |
---|
1180 | @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1181 | _ACEOF |
---|
1182 | |
---|
1183 | |
---|
1184 | cat >>confdefs.h <<_ACEOF |
---|
1185 | @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1186 | _ACEOF |
---|
1187 | |
---|
1188 | |
---|
1189 | cat >>confdefs.h <<_ACEOF |
---|
1190 | @%:@define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1191 | _ACEOF |
---|
1192 | |
---|
1193 | |
---|
1194 | cat >>confdefs.h <<_ACEOF |
---|
1195 | @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1196 | _ACEOF |
---|
1197 | |
---|
1198 | |
---|
1199 | # Let the site file select an alternate cache file if it wants to. |
---|
1200 | # Prefer explicitly selected file to automatically selected ones. |
---|
1201 | if test -z "$CONFIG_SITE"; then |
---|
1202 | if test "x$prefix" != xNONE; then |
---|
1203 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1204 | else |
---|
1205 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1206 | fi |
---|
1207 | fi |
---|
1208 | for ac_site_file in $CONFIG_SITE; do |
---|
1209 | if test -r "$ac_site_file"; then |
---|
1210 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1211 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1212 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1213 | . "$ac_site_file" |
---|
1214 | fi |
---|
1215 | done |
---|
1216 | |
---|
1217 | if test -r "$cache_file"; then |
---|
1218 | # Some versions of bash will fail to source /dev/null (special |
---|
1219 | # files actually), so we avoid doing that. |
---|
1220 | if test -f "$cache_file"; then |
---|
1221 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1222 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1223 | case $cache_file in |
---|
1224 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1225 | *) . ./$cache_file;; |
---|
1226 | esac |
---|
1227 | fi |
---|
1228 | else |
---|
1229 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1230 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1231 | >$cache_file |
---|
1232 | fi |
---|
1233 | |
---|
1234 | # Check that the precious variables saved in the cache have kept the same |
---|
1235 | # value. |
---|
1236 | ac_cache_corrupted=false |
---|
1237 | for ac_var in `(set) 2>&1 | |
---|
1238 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1239 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1240 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1241 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1242 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1243 | case $ac_old_set,$ac_new_set in |
---|
1244 | set,) |
---|
1245 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1246 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1247 | ac_cache_corrupted=: ;; |
---|
1248 | ,set) |
---|
1249 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1250 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1251 | ac_cache_corrupted=: ;; |
---|
1252 | ,);; |
---|
1253 | *) |
---|
1254 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1255 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1256 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1257 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1258 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1259 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1260 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1261 | ac_cache_corrupted=: |
---|
1262 | fi;; |
---|
1263 | esac |
---|
1264 | # Pass precious variables to config.status. |
---|
1265 | if test "$ac_new_set" = set; then |
---|
1266 | case $ac_new_val in |
---|
1267 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1268 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1269 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1270 | esac |
---|
1271 | case " $ac_configure_args " in |
---|
1272 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1273 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1274 | esac |
---|
1275 | fi |
---|
1276 | done |
---|
1277 | if $ac_cache_corrupted; then |
---|
1278 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1279 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1280 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1281 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1282 | { (exit 1); exit 1; }; } |
---|
1283 | fi |
---|
1284 | |
---|
1285 | ac_ext=c |
---|
1286 | ac_cpp='$CPP $CPPFLAGS' |
---|
1287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1290 | |
---|
1291 | |
---|
1292 | |
---|
1293 | |
---|
1294 | |
---|
1295 | |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | |
---|
1303 | |
---|
1304 | |
---|
1305 | |
---|
1306 | |
---|
1307 | |
---|
1308 | |
---|
1309 | am__api_version="1.8" |
---|
1310 | ac_aux_dir= |
---|
1311 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1312 | if test -f $ac_dir/install-sh; then |
---|
1313 | ac_aux_dir=$ac_dir |
---|
1314 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1315 | break |
---|
1316 | elif test -f $ac_dir/install.sh; then |
---|
1317 | ac_aux_dir=$ac_dir |
---|
1318 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1319 | break |
---|
1320 | elif test -f $ac_dir/shtool; then |
---|
1321 | ac_aux_dir=$ac_dir |
---|
1322 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1323 | break |
---|
1324 | fi |
---|
1325 | done |
---|
1326 | if test -z "$ac_aux_dir"; then |
---|
1327 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1328 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1329 | { (exit 1); exit 1; }; } |
---|
1330 | fi |
---|
1331 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1332 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1333 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1334 | |
---|
1335 | # Find a good install program. We prefer a C program (faster), |
---|
1336 | # so one script is as good as another. But avoid the broken or |
---|
1337 | # incompatible versions: |
---|
1338 | # SysV /etc/install, /usr/sbin/install |
---|
1339 | # SunOS /usr/etc/install |
---|
1340 | # IRIX /sbin/install |
---|
1341 | # AIX /bin/install |
---|
1342 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1343 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1344 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1345 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1346 | # OS/2's system install, which has a completely different semantic |
---|
1347 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1348 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1349 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1350 | if test -z "$INSTALL"; then |
---|
1351 | if test "${ac_cv_path_install+set}" = set; then |
---|
1352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1353 | else |
---|
1354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1355 | for as_dir in $PATH |
---|
1356 | do |
---|
1357 | IFS=$as_save_IFS |
---|
1358 | test -z "$as_dir" && as_dir=. |
---|
1359 | # Account for people who put trailing slashes in PATH elements. |
---|
1360 | case $as_dir/ in |
---|
1361 | ./ | .// | /cC/* | \ |
---|
1362 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1363 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1364 | /usr/ucb/* ) ;; |
---|
1365 | *) |
---|
1366 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1367 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1368 | # by default. |
---|
1369 | for ac_prog in ginstall scoinst install; do |
---|
1370 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1371 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1372 | if test $ac_prog = install && |
---|
1373 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1374 | # AIX install. It has an incompatible calling convention. |
---|
1375 | : |
---|
1376 | elif test $ac_prog = install && |
---|
1377 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1378 | # program-specific install script used by HP pwplus--don't use. |
---|
1379 | : |
---|
1380 | else |
---|
1381 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1382 | break 3 |
---|
1383 | fi |
---|
1384 | fi |
---|
1385 | done |
---|
1386 | done |
---|
1387 | ;; |
---|
1388 | esac |
---|
1389 | done |
---|
1390 | |
---|
1391 | |
---|
1392 | fi |
---|
1393 | if test "${ac_cv_path_install+set}" = set; then |
---|
1394 | INSTALL=$ac_cv_path_install |
---|
1395 | else |
---|
1396 | # As a last resort, use the slow shell script. We don't cache a |
---|
1397 | # path for INSTALL within a source directory, because that will |
---|
1398 | # break other packages using the cache if that directory is |
---|
1399 | # removed, or if the path is relative. |
---|
1400 | INSTALL=$ac_install_sh |
---|
1401 | fi |
---|
1402 | fi |
---|
1403 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1404 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1405 | |
---|
1406 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1407 | # It thinks the first close brace ends the variable substitution. |
---|
1408 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1409 | |
---|
1410 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1411 | |
---|
1412 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1413 | |
---|
1414 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1415 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1416 | # Just in case |
---|
1417 | sleep 1 |
---|
1418 | echo timestamp > conftest.file |
---|
1419 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1420 | # arguments. Must try -L first in case configure is actually a |
---|
1421 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1422 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1423 | # directory). |
---|
1424 | if ( |
---|
1425 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1426 | if test "$*" = "X"; then |
---|
1427 | # -L didn't work. |
---|
1428 | set X `ls -t $srcdir/configure conftest.file` |
---|
1429 | fi |
---|
1430 | rm -f conftest.file |
---|
1431 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1432 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1433 | |
---|
1434 | # If neither matched, then we have a broken ls. This can happen |
---|
1435 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1436 | # broken ls alias from the environment. This has actually |
---|
1437 | # happened. Such a system could not be considered "sane". |
---|
1438 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1439 | alias in your environment" >&5 |
---|
1440 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1441 | alias in your environment" >&2;} |
---|
1442 | { (exit 1); exit 1; }; } |
---|
1443 | fi |
---|
1444 | |
---|
1445 | test "$2" = conftest.file |
---|
1446 | ) |
---|
1447 | then |
---|
1448 | # Ok. |
---|
1449 | : |
---|
1450 | else |
---|
1451 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1452 | Check your system clock" >&5 |
---|
1453 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1454 | Check your system clock" >&2;} |
---|
1455 | { (exit 1); exit 1; }; } |
---|
1456 | fi |
---|
1457 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1458 | echo "${ECHO_T}yes" >&6 |
---|
1459 | test "$program_prefix" != NONE && |
---|
1460 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1461 | # Use a double $ so make ignores it. |
---|
1462 | test "$program_suffix" != NONE && |
---|
1463 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1464 | # Double any \ or $. echo might interpret backslashes. |
---|
1465 | # By default was `s,x,x', remove it if useless. |
---|
1466 | cat <<\_ACEOF >conftest.sed |
---|
1467 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1468 | _ACEOF |
---|
1469 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1470 | rm conftest.sed |
---|
1471 | |
---|
1472 | # expand $ac_aux_dir to an absolute path |
---|
1473 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1474 | |
---|
1475 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1476 | # Use eval to expand $SHELL |
---|
1477 | if eval "$MISSING --run true"; then |
---|
1478 | am_missing_run="$MISSING --run " |
---|
1479 | else |
---|
1480 | am_missing_run= |
---|
1481 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1482 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1483 | fi |
---|
1484 | |
---|
1485 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1486 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1487 | # argument. Indeed, we sometimes output rules like |
---|
1488 | # $(mkdir_p) $(somedir) |
---|
1489 | # where $(somedir) is conditionally defined. |
---|
1490 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1491 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1492 | mkdir_p='mkdir -p -- .' |
---|
1493 | else |
---|
1494 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1495 | # recognize any option. It will interpret all options as |
---|
1496 | # directories to create, and then abort because `.' already |
---|
1497 | # exists. |
---|
1498 | for d in ./-p ./--version; |
---|
1499 | do |
---|
1500 | test -d $d && rmdir $d |
---|
1501 | done |
---|
1502 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1503 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1504 | mkdir_p='$(mkinstalldirs)' |
---|
1505 | else |
---|
1506 | mkdir_p='$(install_sh) -d' |
---|
1507 | fi |
---|
1508 | fi |
---|
1509 | |
---|
1510 | for ac_prog in gawk mawk nawk awk |
---|
1511 | do |
---|
1512 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1513 | set dummy $ac_prog; ac_word=$2 |
---|
1514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1516 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1518 | else |
---|
1519 | if test -n "$AWK"; then |
---|
1520 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1521 | else |
---|
1522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1523 | for as_dir in $PATH |
---|
1524 | do |
---|
1525 | IFS=$as_save_IFS |
---|
1526 | test -z "$as_dir" && as_dir=. |
---|
1527 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1529 | ac_cv_prog_AWK="$ac_prog" |
---|
1530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1531 | break 2 |
---|
1532 | fi |
---|
1533 | done |
---|
1534 | done |
---|
1535 | |
---|
1536 | fi |
---|
1537 | fi |
---|
1538 | AWK=$ac_cv_prog_AWK |
---|
1539 | if test -n "$AWK"; then |
---|
1540 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1541 | echo "${ECHO_T}$AWK" >&6 |
---|
1542 | else |
---|
1543 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1544 | echo "${ECHO_T}no" >&6 |
---|
1545 | fi |
---|
1546 | |
---|
1547 | test -n "$AWK" && break |
---|
1548 | done |
---|
1549 | |
---|
1550 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1551 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1552 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1553 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1555 | else |
---|
1556 | cat >conftest.make <<\_ACEOF |
---|
1557 | all: |
---|
1558 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1559 | _ACEOF |
---|
1560 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1561 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1562 | if test -n "$ac_maketemp"; then |
---|
1563 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1564 | else |
---|
1565 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1566 | fi |
---|
1567 | rm -f conftest.make |
---|
1568 | fi |
---|
1569 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1570 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1571 | echo "${ECHO_T}yes" >&6 |
---|
1572 | SET_MAKE= |
---|
1573 | else |
---|
1574 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1575 | echo "${ECHO_T}no" >&6 |
---|
1576 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1577 | fi |
---|
1578 | |
---|
1579 | rm -rf .tst 2>/dev/null |
---|
1580 | mkdir .tst 2>/dev/null |
---|
1581 | if test -d .tst; then |
---|
1582 | am__leading_dot=. |
---|
1583 | else |
---|
1584 | am__leading_dot=_ |
---|
1585 | fi |
---|
1586 | rmdir .tst 2>/dev/null |
---|
1587 | |
---|
1588 | # test to see if srcdir already configured |
---|
1589 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1590 | test -f $srcdir/config.status; then |
---|
1591 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1592 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1593 | { (exit 1); exit 1; }; } |
---|
1594 | fi |
---|
1595 | |
---|
1596 | # test whether we have cygpath |
---|
1597 | if test -z "$CYGPATH_W"; then |
---|
1598 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1599 | CYGPATH_W='cygpath -w' |
---|
1600 | else |
---|
1601 | CYGPATH_W=echo |
---|
1602 | fi |
---|
1603 | fi |
---|
1604 | |
---|
1605 | |
---|
1606 | # Define the identity of the package. |
---|
1607 | PACKAGE=orxonox |
---|
1608 | VERSION=0.1.0 |
---|
1609 | |
---|
1610 | |
---|
1611 | cat >>confdefs.h <<_ACEOF |
---|
1612 | @%:@define PACKAGE "$PACKAGE" |
---|
1613 | _ACEOF |
---|
1614 | |
---|
1615 | |
---|
1616 | cat >>confdefs.h <<_ACEOF |
---|
1617 | @%:@define VERSION "$VERSION" |
---|
1618 | _ACEOF |
---|
1619 | |
---|
1620 | # Some tools Automake needs. |
---|
1621 | |
---|
1622 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1623 | |
---|
1624 | |
---|
1625 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1626 | |
---|
1627 | |
---|
1628 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1629 | |
---|
1630 | |
---|
1631 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1632 | |
---|
1633 | |
---|
1634 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1635 | |
---|
1636 | |
---|
1637 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1638 | |
---|
1639 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1640 | |
---|
1641 | # Installed binaries are usually stripped using `strip' when the user |
---|
1642 | # run `make install-strip'. However `strip' might not be the right |
---|
1643 | # tool to use in cross-compilation environments, therefore Automake |
---|
1644 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1645 | if test "$cross_compiling" != no; then |
---|
1646 | if test -n "$ac_tool_prefix"; then |
---|
1647 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1648 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1651 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1653 | else |
---|
1654 | if test -n "$STRIP"; then |
---|
1655 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1656 | else |
---|
1657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1658 | for as_dir in $PATH |
---|
1659 | do |
---|
1660 | IFS=$as_save_IFS |
---|
1661 | test -z "$as_dir" && as_dir=. |
---|
1662 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1664 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1666 | break 2 |
---|
1667 | fi |
---|
1668 | done |
---|
1669 | done |
---|
1670 | |
---|
1671 | fi |
---|
1672 | fi |
---|
1673 | STRIP=$ac_cv_prog_STRIP |
---|
1674 | if test -n "$STRIP"; then |
---|
1675 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1676 | echo "${ECHO_T}$STRIP" >&6 |
---|
1677 | else |
---|
1678 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1679 | echo "${ECHO_T}no" >&6 |
---|
1680 | fi |
---|
1681 | |
---|
1682 | fi |
---|
1683 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1684 | ac_ct_STRIP=$STRIP |
---|
1685 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1686 | set dummy strip; ac_word=$2 |
---|
1687 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1689 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1691 | else |
---|
1692 | if test -n "$ac_ct_STRIP"; then |
---|
1693 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1694 | else |
---|
1695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1696 | for as_dir in $PATH |
---|
1697 | do |
---|
1698 | IFS=$as_save_IFS |
---|
1699 | test -z "$as_dir" && as_dir=. |
---|
1700 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1702 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1704 | break 2 |
---|
1705 | fi |
---|
1706 | done |
---|
1707 | done |
---|
1708 | |
---|
1709 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1710 | fi |
---|
1711 | fi |
---|
1712 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1713 | if test -n "$ac_ct_STRIP"; then |
---|
1714 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1715 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1716 | else |
---|
1717 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1718 | echo "${ECHO_T}no" >&6 |
---|
1719 | fi |
---|
1720 | |
---|
1721 | STRIP=$ac_ct_STRIP |
---|
1722 | else |
---|
1723 | STRIP="$ac_cv_prog_STRIP" |
---|
1724 | fi |
---|
1725 | |
---|
1726 | fi |
---|
1727 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1728 | |
---|
1729 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1730 | # some platforms. |
---|
1731 | |
---|
1732 | |
---|
1733 | |
---|
1734 | |
---|
1735 | ac_config_headers="$ac_config_headers config.h" |
---|
1736 | |
---|
1737 | |
---|
1738 | |
---|
1739 | |
---|
1740 | ISODATE=`date +%Y-%m-%d` |
---|
1741 | |
---|
1742 | |
---|
1743 | # Make sure we can run config.sub. |
---|
1744 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1745 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1746 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1747 | { (exit 1); exit 1; }; } |
---|
1748 | |
---|
1749 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1750 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1751 | if test "${ac_cv_build+set}" = set; then |
---|
1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1753 | else |
---|
1754 | ac_cv_build_alias=$build_alias |
---|
1755 | test -z "$ac_cv_build_alias" && |
---|
1756 | ac_cv_build_alias=`$ac_config_guess` |
---|
1757 | test -z "$ac_cv_build_alias" && |
---|
1758 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1759 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1760 | { (exit 1); exit 1; }; } |
---|
1761 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1762 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1763 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1764 | { (exit 1); exit 1; }; } |
---|
1765 | |
---|
1766 | fi |
---|
1767 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1768 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1769 | build=$ac_cv_build |
---|
1770 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1771 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1772 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1773 | |
---|
1774 | |
---|
1775 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1776 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1777 | if test "${ac_cv_host+set}" = set; then |
---|
1778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1779 | else |
---|
1780 | ac_cv_host_alias=$host_alias |
---|
1781 | test -z "$ac_cv_host_alias" && |
---|
1782 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1783 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1784 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1785 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1786 | { (exit 1); exit 1; }; } |
---|
1787 | |
---|
1788 | fi |
---|
1789 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1790 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1791 | host=$ac_cv_host |
---|
1792 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1793 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1794 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1795 | |
---|
1796 | |
---|
1797 | |
---|
1798 | # Find a good install program. We prefer a C program (faster), |
---|
1799 | # so one script is as good as another. But avoid the broken or |
---|
1800 | # incompatible versions: |
---|
1801 | # SysV /etc/install, /usr/sbin/install |
---|
1802 | # SunOS /usr/etc/install |
---|
1803 | # IRIX /sbin/install |
---|
1804 | # AIX /bin/install |
---|
1805 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1806 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1807 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1808 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1809 | # OS/2's system install, which has a completely different semantic |
---|
1810 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1811 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1812 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1813 | if test -z "$INSTALL"; then |
---|
1814 | if test "${ac_cv_path_install+set}" = set; then |
---|
1815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1816 | else |
---|
1817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1818 | for as_dir in $PATH |
---|
1819 | do |
---|
1820 | IFS=$as_save_IFS |
---|
1821 | test -z "$as_dir" && as_dir=. |
---|
1822 | # Account for people who put trailing slashes in PATH elements. |
---|
1823 | case $as_dir/ in |
---|
1824 | ./ | .// | /cC/* | \ |
---|
1825 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1826 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1827 | /usr/ucb/* ) ;; |
---|
1828 | *) |
---|
1829 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1830 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1831 | # by default. |
---|
1832 | for ac_prog in ginstall scoinst install; do |
---|
1833 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1834 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1835 | if test $ac_prog = install && |
---|
1836 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1837 | # AIX install. It has an incompatible calling convention. |
---|
1838 | : |
---|
1839 | elif test $ac_prog = install && |
---|
1840 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1841 | # program-specific install script used by HP pwplus--don't use. |
---|
1842 | : |
---|
1843 | else |
---|
1844 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1845 | break 3 |
---|
1846 | fi |
---|
1847 | fi |
---|
1848 | done |
---|
1849 | done |
---|
1850 | ;; |
---|
1851 | esac |
---|
1852 | done |
---|
1853 | |
---|
1854 | |
---|
1855 | fi |
---|
1856 | if test "${ac_cv_path_install+set}" = set; then |
---|
1857 | INSTALL=$ac_cv_path_install |
---|
1858 | else |
---|
1859 | # As a last resort, use the slow shell script. We don't cache a |
---|
1860 | # path for INSTALL within a source directory, because that will |
---|
1861 | # break other packages using the cache if that directory is |
---|
1862 | # removed, or if the path is relative. |
---|
1863 | INSTALL=$ac_install_sh |
---|
1864 | fi |
---|
1865 | fi |
---|
1866 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1867 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1868 | |
---|
1869 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1870 | # It thinks the first close brace ends the variable substitution. |
---|
1871 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1872 | |
---|
1873 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1874 | |
---|
1875 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1876 | |
---|
1877 | ac_ext=c |
---|
1878 | ac_cpp='$CPP $CPPFLAGS' |
---|
1879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1882 | if test -n "$ac_tool_prefix"; then |
---|
1883 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1884 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1887 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1889 | else |
---|
1890 | if test -n "$CC"; then |
---|
1891 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1892 | else |
---|
1893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1894 | for as_dir in $PATH |
---|
1895 | do |
---|
1896 | IFS=$as_save_IFS |
---|
1897 | test -z "$as_dir" && as_dir=. |
---|
1898 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1900 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1902 | break 2 |
---|
1903 | fi |
---|
1904 | done |
---|
1905 | done |
---|
1906 | |
---|
1907 | fi |
---|
1908 | fi |
---|
1909 | CC=$ac_cv_prog_CC |
---|
1910 | if test -n "$CC"; then |
---|
1911 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1912 | echo "${ECHO_T}$CC" >&6 |
---|
1913 | else |
---|
1914 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1915 | echo "${ECHO_T}no" >&6 |
---|
1916 | fi |
---|
1917 | |
---|
1918 | fi |
---|
1919 | if test -z "$ac_cv_prog_CC"; then |
---|
1920 | ac_ct_CC=$CC |
---|
1921 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1922 | set dummy gcc; ac_word=$2 |
---|
1923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1925 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1927 | else |
---|
1928 | if test -n "$ac_ct_CC"; then |
---|
1929 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1930 | else |
---|
1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1932 | for as_dir in $PATH |
---|
1933 | do |
---|
1934 | IFS=$as_save_IFS |
---|
1935 | test -z "$as_dir" && as_dir=. |
---|
1936 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1938 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1940 | break 2 |
---|
1941 | fi |
---|
1942 | done |
---|
1943 | done |
---|
1944 | |
---|
1945 | fi |
---|
1946 | fi |
---|
1947 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1948 | if test -n "$ac_ct_CC"; then |
---|
1949 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1950 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1951 | else |
---|
1952 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1953 | echo "${ECHO_T}no" >&6 |
---|
1954 | fi |
---|
1955 | |
---|
1956 | CC=$ac_ct_CC |
---|
1957 | else |
---|
1958 | CC="$ac_cv_prog_CC" |
---|
1959 | fi |
---|
1960 | |
---|
1961 | if test -z "$CC"; then |
---|
1962 | if test -n "$ac_tool_prefix"; then |
---|
1963 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1964 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1967 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1969 | else |
---|
1970 | if test -n "$CC"; then |
---|
1971 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1972 | else |
---|
1973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1974 | for as_dir in $PATH |
---|
1975 | do |
---|
1976 | IFS=$as_save_IFS |
---|
1977 | test -z "$as_dir" && as_dir=. |
---|
1978 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1980 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1982 | break 2 |
---|
1983 | fi |
---|
1984 | done |
---|
1985 | done |
---|
1986 | |
---|
1987 | fi |
---|
1988 | fi |
---|
1989 | CC=$ac_cv_prog_CC |
---|
1990 | if test -n "$CC"; then |
---|
1991 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1992 | echo "${ECHO_T}$CC" >&6 |
---|
1993 | else |
---|
1994 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1995 | echo "${ECHO_T}no" >&6 |
---|
1996 | fi |
---|
1997 | |
---|
1998 | fi |
---|
1999 | if test -z "$ac_cv_prog_CC"; then |
---|
2000 | ac_ct_CC=$CC |
---|
2001 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2002 | set dummy cc; ac_word=$2 |
---|
2003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2005 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2007 | else |
---|
2008 | if test -n "$ac_ct_CC"; then |
---|
2009 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2010 | else |
---|
2011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2012 | for as_dir in $PATH |
---|
2013 | do |
---|
2014 | IFS=$as_save_IFS |
---|
2015 | test -z "$as_dir" && as_dir=. |
---|
2016 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2018 | ac_cv_prog_ac_ct_CC="cc" |
---|
2019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2020 | break 2 |
---|
2021 | fi |
---|
2022 | done |
---|
2023 | done |
---|
2024 | |
---|
2025 | fi |
---|
2026 | fi |
---|
2027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2028 | if test -n "$ac_ct_CC"; then |
---|
2029 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2030 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2031 | else |
---|
2032 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2033 | echo "${ECHO_T}no" >&6 |
---|
2034 | fi |
---|
2035 | |
---|
2036 | CC=$ac_ct_CC |
---|
2037 | else |
---|
2038 | CC="$ac_cv_prog_CC" |
---|
2039 | fi |
---|
2040 | |
---|
2041 | fi |
---|
2042 | if test -z "$CC"; then |
---|
2043 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2044 | set dummy cc; ac_word=$2 |
---|
2045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2047 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2049 | else |
---|
2050 | if test -n "$CC"; then |
---|
2051 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2052 | else |
---|
2053 | ac_prog_rejected=no |
---|
2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2055 | for as_dir in $PATH |
---|
2056 | do |
---|
2057 | IFS=$as_save_IFS |
---|
2058 | test -z "$as_dir" && as_dir=. |
---|
2059 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2061 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2062 | ac_prog_rejected=yes |
---|
2063 | continue |
---|
2064 | fi |
---|
2065 | ac_cv_prog_CC="cc" |
---|
2066 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2067 | break 2 |
---|
2068 | fi |
---|
2069 | done |
---|
2070 | done |
---|
2071 | |
---|
2072 | if test $ac_prog_rejected = yes; then |
---|
2073 | # We found a bogon in the path, so make sure we never use it. |
---|
2074 | set dummy $ac_cv_prog_CC |
---|
2075 | shift |
---|
2076 | if test $@%:@ != 0; then |
---|
2077 | # We chose a different compiler from the bogus one. |
---|
2078 | # However, it has the same basename, so the bogon will be chosen |
---|
2079 | # first if we set CC to just the basename; use the full file name. |
---|
2080 | shift |
---|
2081 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2082 | fi |
---|
2083 | fi |
---|
2084 | fi |
---|
2085 | fi |
---|
2086 | CC=$ac_cv_prog_CC |
---|
2087 | if test -n "$CC"; then |
---|
2088 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2089 | echo "${ECHO_T}$CC" >&6 |
---|
2090 | else |
---|
2091 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2092 | echo "${ECHO_T}no" >&6 |
---|
2093 | fi |
---|
2094 | |
---|
2095 | fi |
---|
2096 | if test -z "$CC"; then |
---|
2097 | if test -n "$ac_tool_prefix"; then |
---|
2098 | for ac_prog in cl |
---|
2099 | do |
---|
2100 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2101 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2104 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2106 | else |
---|
2107 | if test -n "$CC"; then |
---|
2108 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2109 | else |
---|
2110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2111 | for as_dir in $PATH |
---|
2112 | do |
---|
2113 | IFS=$as_save_IFS |
---|
2114 | test -z "$as_dir" && as_dir=. |
---|
2115 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2117 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2119 | break 2 |
---|
2120 | fi |
---|
2121 | done |
---|
2122 | done |
---|
2123 | |
---|
2124 | fi |
---|
2125 | fi |
---|
2126 | CC=$ac_cv_prog_CC |
---|
2127 | if test -n "$CC"; then |
---|
2128 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2129 | echo "${ECHO_T}$CC" >&6 |
---|
2130 | else |
---|
2131 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2132 | echo "${ECHO_T}no" >&6 |
---|
2133 | fi |
---|
2134 | |
---|
2135 | test -n "$CC" && break |
---|
2136 | done |
---|
2137 | fi |
---|
2138 | if test -z "$CC"; then |
---|
2139 | ac_ct_CC=$CC |
---|
2140 | for ac_prog in cl |
---|
2141 | do |
---|
2142 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2143 | set dummy $ac_prog; ac_word=$2 |
---|
2144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2146 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2148 | else |
---|
2149 | if test -n "$ac_ct_CC"; then |
---|
2150 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2151 | else |
---|
2152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2153 | for as_dir in $PATH |
---|
2154 | do |
---|
2155 | IFS=$as_save_IFS |
---|
2156 | test -z "$as_dir" && as_dir=. |
---|
2157 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2159 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2161 | break 2 |
---|
2162 | fi |
---|
2163 | done |
---|
2164 | done |
---|
2165 | |
---|
2166 | fi |
---|
2167 | fi |
---|
2168 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2169 | if test -n "$ac_ct_CC"; then |
---|
2170 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2171 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2172 | else |
---|
2173 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2174 | echo "${ECHO_T}no" >&6 |
---|
2175 | fi |
---|
2176 | |
---|
2177 | test -n "$ac_ct_CC" && break |
---|
2178 | done |
---|
2179 | |
---|
2180 | CC=$ac_ct_CC |
---|
2181 | fi |
---|
2182 | |
---|
2183 | fi |
---|
2184 | |
---|
2185 | |
---|
2186 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2187 | See \`config.log' for more details." >&5 |
---|
2188 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2189 | See \`config.log' for more details." >&2;} |
---|
2190 | { (exit 1); exit 1; }; } |
---|
2191 | |
---|
2192 | # Provide some information about the compiler. |
---|
2193 | echo "$as_me:$LINENO:" \ |
---|
2194 | "checking for C compiler version" >&5 |
---|
2195 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2196 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2197 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2198 | ac_status=$? |
---|
2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2200 | (exit $ac_status); } |
---|
2201 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2202 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2203 | ac_status=$? |
---|
2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2205 | (exit $ac_status); } |
---|
2206 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2207 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2208 | ac_status=$? |
---|
2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2210 | (exit $ac_status); } |
---|
2211 | |
---|
2212 | cat >conftest.$ac_ext <<_ACEOF |
---|
2213 | /* confdefs.h. */ |
---|
2214 | _ACEOF |
---|
2215 | cat confdefs.h >>conftest.$ac_ext |
---|
2216 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2217 | /* end confdefs.h. */ |
---|
2218 | |
---|
2219 | int |
---|
2220 | main () |
---|
2221 | { |
---|
2222 | |
---|
2223 | ; |
---|
2224 | return 0; |
---|
2225 | } |
---|
2226 | _ACEOF |
---|
2227 | ac_clean_files_save=$ac_clean_files |
---|
2228 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2229 | # Try to create an executable without -o first, disregard a.out. |
---|
2230 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2231 | # of exeext. |
---|
2232 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2233 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
2234 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2235 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2236 | (eval $ac_link_default) 2>&5 |
---|
2237 | ac_status=$? |
---|
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2239 | (exit $ac_status); }; then |
---|
2240 | # Find the output, starting from the most likely. This scheme is |
---|
2241 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2242 | # resort. |
---|
2243 | |
---|
2244 | # Be careful to initialize this variable, since it used to be cached. |
---|
2245 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2246 | ac_cv_exeext= |
---|
2247 | # b.out is created by i960 compilers. |
---|
2248 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2249 | do |
---|
2250 | test -f "$ac_file" || continue |
---|
2251 | case $ac_file in |
---|
2252 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2253 | ;; |
---|
2254 | conftest.$ac_ext ) |
---|
2255 | # This is the source file. |
---|
2256 | ;; |
---|
2257 | [ab].out ) |
---|
2258 | # We found the default executable, but exeext='' is most |
---|
2259 | # certainly right. |
---|
2260 | break;; |
---|
2261 | *.* ) |
---|
2262 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2263 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2264 | # but it would be cool to find out if it's true. Does anybody |
---|
2265 | # maintain Libtool? --akim. |
---|
2266 | export ac_cv_exeext |
---|
2267 | break;; |
---|
2268 | * ) |
---|
2269 | break;; |
---|
2270 | esac |
---|
2271 | done |
---|
2272 | else |
---|
2273 | echo "$as_me: failed program was:" >&5 |
---|
2274 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2275 | |
---|
2276 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2277 | See \`config.log' for more details." >&5 |
---|
2278 | echo "$as_me: error: C compiler cannot create executables |
---|
2279 | See \`config.log' for more details." >&2;} |
---|
2280 | { (exit 77); exit 77; }; } |
---|
2281 | fi |
---|
2282 | |
---|
2283 | ac_exeext=$ac_cv_exeext |
---|
2284 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2285 | echo "${ECHO_T}$ac_file" >&6 |
---|
2286 | |
---|
2287 | # Check the compiler produces executables we can run. If not, either |
---|
2288 | # the compiler is broken, or we cross compile. |
---|
2289 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2290 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2291 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2292 | # If not cross compiling, check that we can run a simple program. |
---|
2293 | if test "$cross_compiling" != yes; then |
---|
2294 | if { ac_try='./$ac_file' |
---|
2295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2296 | (eval $ac_try) 2>&5 |
---|
2297 | ac_status=$? |
---|
2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2299 | (exit $ac_status); }; }; then |
---|
2300 | cross_compiling=no |
---|
2301 | else |
---|
2302 | if test "$cross_compiling" = maybe; then |
---|
2303 | cross_compiling=yes |
---|
2304 | else |
---|
2305 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2306 | If you meant to cross compile, use \`--host'. |
---|
2307 | See \`config.log' for more details." >&5 |
---|
2308 | echo "$as_me: error: cannot run C compiled programs. |
---|
2309 | If you meant to cross compile, use \`--host'. |
---|
2310 | See \`config.log' for more details." >&2;} |
---|
2311 | { (exit 1); exit 1; }; } |
---|
2312 | fi |
---|
2313 | fi |
---|
2314 | fi |
---|
2315 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2316 | echo "${ECHO_T}yes" >&6 |
---|
2317 | |
---|
2318 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2319 | ac_clean_files=$ac_clean_files_save |
---|
2320 | # Check the compiler produces executables we can run. If not, either |
---|
2321 | # the compiler is broken, or we cross compile. |
---|
2322 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2323 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2324 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2325 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2326 | |
---|
2327 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2328 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2330 | (eval $ac_link) 2>&5 |
---|
2331 | ac_status=$? |
---|
2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2333 | (exit $ac_status); }; then |
---|
2334 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2335 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2336 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2337 | # `rm'. |
---|
2338 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2339 | test -f "$ac_file" || continue |
---|
2340 | case $ac_file in |
---|
2341 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2342 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2343 | export ac_cv_exeext |
---|
2344 | break;; |
---|
2345 | * ) break;; |
---|
2346 | esac |
---|
2347 | done |
---|
2348 | else |
---|
2349 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2350 | See \`config.log' for more details." >&5 |
---|
2351 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2352 | See \`config.log' for more details." >&2;} |
---|
2353 | { (exit 1); exit 1; }; } |
---|
2354 | fi |
---|
2355 | |
---|
2356 | rm -f conftest$ac_cv_exeext |
---|
2357 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2358 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2359 | |
---|
2360 | rm -f conftest.$ac_ext |
---|
2361 | EXEEXT=$ac_cv_exeext |
---|
2362 | ac_exeext=$EXEEXT |
---|
2363 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2364 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2365 | if test "${ac_cv_objext+set}" = set; then |
---|
2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2367 | else |
---|
2368 | cat >conftest.$ac_ext <<_ACEOF |
---|
2369 | /* confdefs.h. */ |
---|
2370 | _ACEOF |
---|
2371 | cat confdefs.h >>conftest.$ac_ext |
---|
2372 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2373 | /* end confdefs.h. */ |
---|
2374 | |
---|
2375 | int |
---|
2376 | main () |
---|
2377 | { |
---|
2378 | |
---|
2379 | ; |
---|
2380 | return 0; |
---|
2381 | } |
---|
2382 | _ACEOF |
---|
2383 | rm -f conftest.o conftest.obj |
---|
2384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2385 | (eval $ac_compile) 2>&5 |
---|
2386 | ac_status=$? |
---|
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2388 | (exit $ac_status); }; then |
---|
2389 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2390 | case $ac_file in |
---|
2391 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2392 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2393 | break;; |
---|
2394 | esac |
---|
2395 | done |
---|
2396 | else |
---|
2397 | echo "$as_me: failed program was:" >&5 |
---|
2398 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2399 | |
---|
2400 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2401 | See \`config.log' for more details." >&5 |
---|
2402 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2403 | See \`config.log' for more details." >&2;} |
---|
2404 | { (exit 1); exit 1; }; } |
---|
2405 | fi |
---|
2406 | |
---|
2407 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2408 | fi |
---|
2409 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2410 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2411 | OBJEXT=$ac_cv_objext |
---|
2412 | ac_objext=$OBJEXT |
---|
2413 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2414 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2415 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2417 | else |
---|
2418 | cat >conftest.$ac_ext <<_ACEOF |
---|
2419 | /* confdefs.h. */ |
---|
2420 | _ACEOF |
---|
2421 | cat confdefs.h >>conftest.$ac_ext |
---|
2422 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2423 | /* end confdefs.h. */ |
---|
2424 | |
---|
2425 | int |
---|
2426 | main () |
---|
2427 | { |
---|
2428 | #ifndef __GNUC__ |
---|
2429 | choke me |
---|
2430 | #endif |
---|
2431 | |
---|
2432 | ; |
---|
2433 | return 0; |
---|
2434 | } |
---|
2435 | _ACEOF |
---|
2436 | rm -f conftest.$ac_objext |
---|
2437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2438 | (eval $ac_compile) 2>conftest.er1 |
---|
2439 | ac_status=$? |
---|
2440 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2441 | rm -f conftest.er1 |
---|
2442 | cat conftest.err >&5 |
---|
2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2444 | (exit $ac_status); } && |
---|
2445 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2446 | || test ! -s conftest.err' |
---|
2447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2448 | (eval $ac_try) 2>&5 |
---|
2449 | ac_status=$? |
---|
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2451 | (exit $ac_status); }; } && |
---|
2452 | { ac_try='test -s conftest.$ac_objext' |
---|
2453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2454 | (eval $ac_try) 2>&5 |
---|
2455 | ac_status=$? |
---|
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2457 | (exit $ac_status); }; }; then |
---|
2458 | ac_compiler_gnu=yes |
---|
2459 | else |
---|
2460 | echo "$as_me: failed program was:" >&5 |
---|
2461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2462 | |
---|
2463 | ac_compiler_gnu=no |
---|
2464 | fi |
---|
2465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2466 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2467 | |
---|
2468 | fi |
---|
2469 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2470 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2471 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2472 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2473 | ac_save_CFLAGS=$CFLAGS |
---|
2474 | CFLAGS="-g" |
---|
2475 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2476 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2477 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2479 | else |
---|
2480 | cat >conftest.$ac_ext <<_ACEOF |
---|
2481 | /* confdefs.h. */ |
---|
2482 | _ACEOF |
---|
2483 | cat confdefs.h >>conftest.$ac_ext |
---|
2484 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2485 | /* end confdefs.h. */ |
---|
2486 | |
---|
2487 | int |
---|
2488 | main () |
---|
2489 | { |
---|
2490 | |
---|
2491 | ; |
---|
2492 | return 0; |
---|
2493 | } |
---|
2494 | _ACEOF |
---|
2495 | rm -f conftest.$ac_objext |
---|
2496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2497 | (eval $ac_compile) 2>conftest.er1 |
---|
2498 | ac_status=$? |
---|
2499 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2500 | rm -f conftest.er1 |
---|
2501 | cat conftest.err >&5 |
---|
2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2503 | (exit $ac_status); } && |
---|
2504 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2505 | || test ! -s conftest.err' |
---|
2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2507 | (eval $ac_try) 2>&5 |
---|
2508 | ac_status=$? |
---|
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2510 | (exit $ac_status); }; } && |
---|
2511 | { ac_try='test -s conftest.$ac_objext' |
---|
2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2513 | (eval $ac_try) 2>&5 |
---|
2514 | ac_status=$? |
---|
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2516 | (exit $ac_status); }; }; then |
---|
2517 | ac_cv_prog_cc_g=yes |
---|
2518 | else |
---|
2519 | echo "$as_me: failed program was:" >&5 |
---|
2520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2521 | |
---|
2522 | ac_cv_prog_cc_g=no |
---|
2523 | fi |
---|
2524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2525 | fi |
---|
2526 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2527 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2528 | if test "$ac_test_CFLAGS" = set; then |
---|
2529 | CFLAGS=$ac_save_CFLAGS |
---|
2530 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2531 | if test "$GCC" = yes; then |
---|
2532 | CFLAGS="-g -O2" |
---|
2533 | else |
---|
2534 | CFLAGS="-g" |
---|
2535 | fi |
---|
2536 | else |
---|
2537 | if test "$GCC" = yes; then |
---|
2538 | CFLAGS="-O2" |
---|
2539 | else |
---|
2540 | CFLAGS= |
---|
2541 | fi |
---|
2542 | fi |
---|
2543 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2544 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2545 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2547 | else |
---|
2548 | ac_cv_prog_cc_stdc=no |
---|
2549 | ac_save_CC=$CC |
---|
2550 | cat >conftest.$ac_ext <<_ACEOF |
---|
2551 | /* confdefs.h. */ |
---|
2552 | _ACEOF |
---|
2553 | cat confdefs.h >>conftest.$ac_ext |
---|
2554 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2555 | /* end confdefs.h. */ |
---|
2556 | #include <stdarg.h> |
---|
2557 | #include <stdio.h> |
---|
2558 | #include <sys/types.h> |
---|
2559 | #include <sys/stat.h> |
---|
2560 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2561 | struct buf { int x; }; |
---|
2562 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2563 | static char *e (p, i) |
---|
2564 | char **p; |
---|
2565 | int i; |
---|
2566 | { |
---|
2567 | return p[i]; |
---|
2568 | } |
---|
2569 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2570 | { |
---|
2571 | char *s; |
---|
2572 | va_list v; |
---|
2573 | va_start (v,p); |
---|
2574 | s = g (p, va_arg (v,int)); |
---|
2575 | va_end (v); |
---|
2576 | return s; |
---|
2577 | } |
---|
2578 | |
---|
2579 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2580 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2581 | These don't provoke an error unfortunately, instead are silently treated |
---|
2582 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2583 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2584 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2585 | that's true only with -std1. */ |
---|
2586 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2587 | |
---|
2588 | int test (int i, double x); |
---|
2589 | struct s1 {int (*f) (int a);}; |
---|
2590 | struct s2 {int (*f) (double a);}; |
---|
2591 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2592 | int argc; |
---|
2593 | char **argv; |
---|
2594 | int |
---|
2595 | main () |
---|
2596 | { |
---|
2597 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2598 | ; |
---|
2599 | return 0; |
---|
2600 | } |
---|
2601 | _ACEOF |
---|
2602 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2603 | # breaks some systems' header files. |
---|
2604 | # AIX -qlanglvl=ansi |
---|
2605 | # Ultrix and OSF/1 -std1 |
---|
2606 | # HP-UX 10.20 and later -Ae |
---|
2607 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2608 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2609 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2610 | do |
---|
2611 | CC="$ac_save_CC $ac_arg" |
---|
2612 | rm -f conftest.$ac_objext |
---|
2613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2614 | (eval $ac_compile) 2>conftest.er1 |
---|
2615 | ac_status=$? |
---|
2616 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2617 | rm -f conftest.er1 |
---|
2618 | cat conftest.err >&5 |
---|
2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2620 | (exit $ac_status); } && |
---|
2621 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2622 | || test ! -s conftest.err' |
---|
2623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2624 | (eval $ac_try) 2>&5 |
---|
2625 | ac_status=$? |
---|
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2627 | (exit $ac_status); }; } && |
---|
2628 | { ac_try='test -s conftest.$ac_objext' |
---|
2629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2630 | (eval $ac_try) 2>&5 |
---|
2631 | ac_status=$? |
---|
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2633 | (exit $ac_status); }; }; then |
---|
2634 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2635 | break |
---|
2636 | else |
---|
2637 | echo "$as_me: failed program was:" >&5 |
---|
2638 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2639 | |
---|
2640 | fi |
---|
2641 | rm -f conftest.err conftest.$ac_objext |
---|
2642 | done |
---|
2643 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2644 | CC=$ac_save_CC |
---|
2645 | |
---|
2646 | fi |
---|
2647 | |
---|
2648 | case "x$ac_cv_prog_cc_stdc" in |
---|
2649 | x|xno) |
---|
2650 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2651 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2652 | *) |
---|
2653 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2654 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2655 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2656 | esac |
---|
2657 | |
---|
2658 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2659 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2660 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2661 | # the declaration of exit, since it's the most demanding environment. |
---|
2662 | cat >conftest.$ac_ext <<_ACEOF |
---|
2663 | @%:@ifndef __cplusplus |
---|
2664 | choke me |
---|
2665 | @%:@endif |
---|
2666 | _ACEOF |
---|
2667 | rm -f conftest.$ac_objext |
---|
2668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2669 | (eval $ac_compile) 2>conftest.er1 |
---|
2670 | ac_status=$? |
---|
2671 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2672 | rm -f conftest.er1 |
---|
2673 | cat conftest.err >&5 |
---|
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2675 | (exit $ac_status); } && |
---|
2676 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2677 | || test ! -s conftest.err' |
---|
2678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2679 | (eval $ac_try) 2>&5 |
---|
2680 | ac_status=$? |
---|
2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2682 | (exit $ac_status); }; } && |
---|
2683 | { ac_try='test -s conftest.$ac_objext' |
---|
2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2685 | (eval $ac_try) 2>&5 |
---|
2686 | ac_status=$? |
---|
2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2688 | (exit $ac_status); }; }; then |
---|
2689 | for ac_declaration in \ |
---|
2690 | '' \ |
---|
2691 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2692 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2693 | 'extern "C" void exit (int) throw ();' \ |
---|
2694 | 'extern "C" void exit (int);' \ |
---|
2695 | 'void exit (int);' |
---|
2696 | do |
---|
2697 | cat >conftest.$ac_ext <<_ACEOF |
---|
2698 | /* confdefs.h. */ |
---|
2699 | _ACEOF |
---|
2700 | cat confdefs.h >>conftest.$ac_ext |
---|
2701 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2702 | /* end confdefs.h. */ |
---|
2703 | $ac_declaration |
---|
2704 | @%:@include <stdlib.h> |
---|
2705 | int |
---|
2706 | main () |
---|
2707 | { |
---|
2708 | exit (42); |
---|
2709 | ; |
---|
2710 | return 0; |
---|
2711 | } |
---|
2712 | _ACEOF |
---|
2713 | rm -f conftest.$ac_objext |
---|
2714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2715 | (eval $ac_compile) 2>conftest.er1 |
---|
2716 | ac_status=$? |
---|
2717 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2718 | rm -f conftest.er1 |
---|
2719 | cat conftest.err >&5 |
---|
2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2721 | (exit $ac_status); } && |
---|
2722 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2723 | || test ! -s conftest.err' |
---|
2724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2725 | (eval $ac_try) 2>&5 |
---|
2726 | ac_status=$? |
---|
2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2728 | (exit $ac_status); }; } && |
---|
2729 | { ac_try='test -s conftest.$ac_objext' |
---|
2730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2731 | (eval $ac_try) 2>&5 |
---|
2732 | ac_status=$? |
---|
2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2734 | (exit $ac_status); }; }; then |
---|
2735 | : |
---|
2736 | else |
---|
2737 | echo "$as_me: failed program was:" >&5 |
---|
2738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2739 | |
---|
2740 | continue |
---|
2741 | fi |
---|
2742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2743 | cat >conftest.$ac_ext <<_ACEOF |
---|
2744 | /* confdefs.h. */ |
---|
2745 | _ACEOF |
---|
2746 | cat confdefs.h >>conftest.$ac_ext |
---|
2747 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2748 | /* end confdefs.h. */ |
---|
2749 | $ac_declaration |
---|
2750 | int |
---|
2751 | main () |
---|
2752 | { |
---|
2753 | exit (42); |
---|
2754 | ; |
---|
2755 | return 0; |
---|
2756 | } |
---|
2757 | _ACEOF |
---|
2758 | rm -f conftest.$ac_objext |
---|
2759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2760 | (eval $ac_compile) 2>conftest.er1 |
---|
2761 | ac_status=$? |
---|
2762 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2763 | rm -f conftest.er1 |
---|
2764 | cat conftest.err >&5 |
---|
2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2766 | (exit $ac_status); } && |
---|
2767 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2768 | || test ! -s conftest.err' |
---|
2769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2770 | (eval $ac_try) 2>&5 |
---|
2771 | ac_status=$? |
---|
2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2773 | (exit $ac_status); }; } && |
---|
2774 | { ac_try='test -s conftest.$ac_objext' |
---|
2775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2776 | (eval $ac_try) 2>&5 |
---|
2777 | ac_status=$? |
---|
2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2779 | (exit $ac_status); }; }; then |
---|
2780 | break |
---|
2781 | else |
---|
2782 | echo "$as_me: failed program was:" >&5 |
---|
2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2784 | |
---|
2785 | fi |
---|
2786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2787 | done |
---|
2788 | rm -f conftest* |
---|
2789 | if test -n "$ac_declaration"; then |
---|
2790 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2791 | echo $ac_declaration >>confdefs.h |
---|
2792 | echo '#endif' >>confdefs.h |
---|
2793 | fi |
---|
2794 | |
---|
2795 | else |
---|
2796 | echo "$as_me: failed program was:" >&5 |
---|
2797 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2798 | |
---|
2799 | fi |
---|
2800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2801 | ac_ext=c |
---|
2802 | ac_cpp='$CPP $CPPFLAGS' |
---|
2803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2806 | DEPDIR="${am__leading_dot}deps" |
---|
2807 | |
---|
2808 | ac_config_commands="$ac_config_commands depfiles" |
---|
2809 | |
---|
2810 | |
---|
2811 | am_make=${MAKE-make} |
---|
2812 | cat > confinc << 'END' |
---|
2813 | am__doit: |
---|
2814 | @echo done |
---|
2815 | .PHONY: am__doit |
---|
2816 | END |
---|
2817 | # If we don't find an include directive, just comment out the code. |
---|
2818 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2819 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2820 | am__include="#" |
---|
2821 | am__quote= |
---|
2822 | _am_result=none |
---|
2823 | # First try GNU make style include. |
---|
2824 | echo "include confinc" > confmf |
---|
2825 | # We grep out `Entering directory' and `Leaving directory' |
---|
2826 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2827 | # In particular we don't look at `^make:' because GNU make might |
---|
2828 | # be invoked under some other name (usually "gmake"), in which |
---|
2829 | # case it prints its new name instead of `make'. |
---|
2830 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2831 | am__include=include |
---|
2832 | am__quote= |
---|
2833 | _am_result=GNU |
---|
2834 | fi |
---|
2835 | # Now try BSD make style include. |
---|
2836 | if test "$am__include" = "#"; then |
---|
2837 | echo '.include "confinc"' > confmf |
---|
2838 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2839 | am__include=.include |
---|
2840 | am__quote="\"" |
---|
2841 | _am_result=BSD |
---|
2842 | fi |
---|
2843 | fi |
---|
2844 | |
---|
2845 | |
---|
2846 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2847 | echo "${ECHO_T}$_am_result" >&6 |
---|
2848 | rm -f confinc confmf |
---|
2849 | |
---|
2850 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2851 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2852 | enableval="$enable_dependency_tracking" |
---|
2853 | |
---|
2854 | fi; |
---|
2855 | if test "x$enable_dependency_tracking" != xno; then |
---|
2856 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2857 | AMDEPBACKSLASH='\' |
---|
2858 | fi |
---|
2859 | |
---|
2860 | |
---|
2861 | if test "x$enable_dependency_tracking" != xno; then |
---|
2862 | AMDEP_TRUE= |
---|
2863 | AMDEP_FALSE='#' |
---|
2864 | else |
---|
2865 | AMDEP_TRUE='#' |
---|
2866 | AMDEP_FALSE= |
---|
2867 | fi |
---|
2868 | |
---|
2869 | |
---|
2870 | |
---|
2871 | |
---|
2872 | depcc="$CC" am_compiler_list= |
---|
2873 | |
---|
2874 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2875 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2876 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
2877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2878 | else |
---|
2879 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2880 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2881 | # making bogus files that we don't know about and never remove. For |
---|
2882 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2883 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2884 | # in D'. |
---|
2885 | mkdir conftest.dir |
---|
2886 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2887 | # using a relative directory. |
---|
2888 | cp "$am_depcomp" conftest.dir |
---|
2889 | cd conftest.dir |
---|
2890 | # We will build objects and dependencies in a subdirectory because |
---|
2891 | # it helps to detect inapplicable dependency modes. For instance |
---|
2892 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2893 | # side effect of compilation, but ICC will put the dependencies in |
---|
2894 | # the current directory while Tru64 will put them in the object |
---|
2895 | # directory. |
---|
2896 | mkdir sub |
---|
2897 | |
---|
2898 | am_cv_CC_dependencies_compiler_type=none |
---|
2899 | if test "$am_compiler_list" = ""; then |
---|
2900 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2901 | fi |
---|
2902 | for depmode in $am_compiler_list; do |
---|
2903 | # Setup a source with many dependencies, because some compilers |
---|
2904 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2905 | # we should not choose a depcomp mode which is confused by this. |
---|
2906 | # |
---|
2907 | # We need to recreate these files for each test, as the compiler may |
---|
2908 | # overwrite some of them when testing with obscure command lines. |
---|
2909 | # This happens at least with the AIX C compiler. |
---|
2910 | : > sub/conftest.c |
---|
2911 | for i in 1 2 3 4 5 6; do |
---|
2912 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2913 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2914 | # Solaris 8's {/usr,}/bin/sh. |
---|
2915 | touch sub/conftst$i.h |
---|
2916 | done |
---|
2917 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2918 | |
---|
2919 | case $depmode in |
---|
2920 | nosideeffect) |
---|
2921 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2922 | # only be used when explicitly requested |
---|
2923 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2924 | continue |
---|
2925 | else |
---|
2926 | break |
---|
2927 | fi |
---|
2928 | ;; |
---|
2929 | none) break ;; |
---|
2930 | esac |
---|
2931 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2932 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2933 | # handle `-M -o', and we need to detect this. |
---|
2934 | if depmode=$depmode \ |
---|
2935 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2936 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2937 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2938 | >/dev/null 2>conftest.err && |
---|
2939 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2940 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2941 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2942 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2943 | # (even with -Werror). So we grep stderr for any message |
---|
2944 | # that says an option was ignored. |
---|
2945 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2946 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
2947 | break |
---|
2948 | fi |
---|
2949 | fi |
---|
2950 | done |
---|
2951 | |
---|
2952 | cd .. |
---|
2953 | rm -rf conftest.dir |
---|
2954 | else |
---|
2955 | am_cv_CC_dependencies_compiler_type=none |
---|
2956 | fi |
---|
2957 | |
---|
2958 | fi |
---|
2959 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
2960 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
2961 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
2962 | |
---|
2963 | |
---|
2964 | |
---|
2965 | if |
---|
2966 | test "x$enable_dependency_tracking" != xno \ |
---|
2967 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
2968 | am__fastdepCC_TRUE= |
---|
2969 | am__fastdepCC_FALSE='#' |
---|
2970 | else |
---|
2971 | am__fastdepCC_TRUE='#' |
---|
2972 | am__fastdepCC_FALSE= |
---|
2973 | fi |
---|
2974 | |
---|
2975 | |
---|
2976 | ac_ext=cc |
---|
2977 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2978 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2979 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2980 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2981 | if test -n "$ac_tool_prefix"; then |
---|
2982 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
2983 | do |
---|
2984 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2985 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2988 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
2989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2990 | else |
---|
2991 | if test -n "$CXX"; then |
---|
2992 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
2993 | else |
---|
2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2995 | for as_dir in $PATH |
---|
2996 | do |
---|
2997 | IFS=$as_save_IFS |
---|
2998 | test -z "$as_dir" && as_dir=. |
---|
2999 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3001 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3003 | break 2 |
---|
3004 | fi |
---|
3005 | done |
---|
3006 | done |
---|
3007 | |
---|
3008 | fi |
---|
3009 | fi |
---|
3010 | CXX=$ac_cv_prog_CXX |
---|
3011 | if test -n "$CXX"; then |
---|
3012 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3013 | echo "${ECHO_T}$CXX" >&6 |
---|
3014 | else |
---|
3015 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3016 | echo "${ECHO_T}no" >&6 |
---|
3017 | fi |
---|
3018 | |
---|
3019 | test -n "$CXX" && break |
---|
3020 | done |
---|
3021 | fi |
---|
3022 | if test -z "$CXX"; then |
---|
3023 | ac_ct_CXX=$CXX |
---|
3024 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
3025 | do |
---|
3026 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3027 | set dummy $ac_prog; ac_word=$2 |
---|
3028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3030 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3032 | else |
---|
3033 | if test -n "$ac_ct_CXX"; then |
---|
3034 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3035 | else |
---|
3036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3037 | for as_dir in $PATH |
---|
3038 | do |
---|
3039 | IFS=$as_save_IFS |
---|
3040 | test -z "$as_dir" && as_dir=. |
---|
3041 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3043 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3045 | break 2 |
---|
3046 | fi |
---|
3047 | done |
---|
3048 | done |
---|
3049 | |
---|
3050 | fi |
---|
3051 | fi |
---|
3052 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3053 | if test -n "$ac_ct_CXX"; then |
---|
3054 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3055 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
3056 | else |
---|
3057 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3058 | echo "${ECHO_T}no" >&6 |
---|
3059 | fi |
---|
3060 | |
---|
3061 | test -n "$ac_ct_CXX" && break |
---|
3062 | done |
---|
3063 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
3064 | |
---|
3065 | CXX=$ac_ct_CXX |
---|
3066 | fi |
---|
3067 | |
---|
3068 | |
---|
3069 | # Provide some information about the compiler. |
---|
3070 | echo "$as_me:$LINENO:" \ |
---|
3071 | "checking for C++ compiler version" >&5 |
---|
3072 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3073 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
3074 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
3075 | ac_status=$? |
---|
3076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3077 | (exit $ac_status); } |
---|
3078 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
3079 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
3080 | ac_status=$? |
---|
3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3082 | (exit $ac_status); } |
---|
3083 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3084 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3085 | ac_status=$? |
---|
3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3087 | (exit $ac_status); } |
---|
3088 | |
---|
3089 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3090 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
3091 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3093 | else |
---|
3094 | cat >conftest.$ac_ext <<_ACEOF |
---|
3095 | /* confdefs.h. */ |
---|
3096 | _ACEOF |
---|
3097 | cat confdefs.h >>conftest.$ac_ext |
---|
3098 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3099 | /* end confdefs.h. */ |
---|
3100 | |
---|
3101 | int |
---|
3102 | main () |
---|
3103 | { |
---|
3104 | #ifndef __GNUC__ |
---|
3105 | choke me |
---|
3106 | #endif |
---|
3107 | |
---|
3108 | ; |
---|
3109 | return 0; |
---|
3110 | } |
---|
3111 | _ACEOF |
---|
3112 | rm -f conftest.$ac_objext |
---|
3113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3114 | (eval $ac_compile) 2>conftest.er1 |
---|
3115 | ac_status=$? |
---|
3116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3117 | rm -f conftest.er1 |
---|
3118 | cat conftest.err >&5 |
---|
3119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3120 | (exit $ac_status); } && |
---|
3121 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3122 | || test ! -s conftest.err' |
---|
3123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3124 | (eval $ac_try) 2>&5 |
---|
3125 | ac_status=$? |
---|
3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3127 | (exit $ac_status); }; } && |
---|
3128 | { ac_try='test -s conftest.$ac_objext' |
---|
3129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3130 | (eval $ac_try) 2>&5 |
---|
3131 | ac_status=$? |
---|
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3133 | (exit $ac_status); }; }; then |
---|
3134 | ac_compiler_gnu=yes |
---|
3135 | else |
---|
3136 | echo "$as_me: failed program was:" >&5 |
---|
3137 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3138 | |
---|
3139 | ac_compiler_gnu=no |
---|
3140 | fi |
---|
3141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3142 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3143 | |
---|
3144 | fi |
---|
3145 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3146 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
3147 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3148 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3149 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3150 | CXXFLAGS="-g" |
---|
3151 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3152 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
3153 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3155 | else |
---|
3156 | cat >conftest.$ac_ext <<_ACEOF |
---|
3157 | /* confdefs.h. */ |
---|
3158 | _ACEOF |
---|
3159 | cat confdefs.h >>conftest.$ac_ext |
---|
3160 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3161 | /* end confdefs.h. */ |
---|
3162 | |
---|
3163 | int |
---|
3164 | main () |
---|
3165 | { |
---|
3166 | |
---|
3167 | ; |
---|
3168 | return 0; |
---|
3169 | } |
---|
3170 | _ACEOF |
---|
3171 | rm -f conftest.$ac_objext |
---|
3172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3173 | (eval $ac_compile) 2>conftest.er1 |
---|
3174 | ac_status=$? |
---|
3175 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3176 | rm -f conftest.er1 |
---|
3177 | cat conftest.err >&5 |
---|
3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3179 | (exit $ac_status); } && |
---|
3180 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3181 | || test ! -s conftest.err' |
---|
3182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3183 | (eval $ac_try) 2>&5 |
---|
3184 | ac_status=$? |
---|
3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3186 | (exit $ac_status); }; } && |
---|
3187 | { ac_try='test -s conftest.$ac_objext' |
---|
3188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3189 | (eval $ac_try) 2>&5 |
---|
3190 | ac_status=$? |
---|
3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3192 | (exit $ac_status); }; }; then |
---|
3193 | ac_cv_prog_cxx_g=yes |
---|
3194 | else |
---|
3195 | echo "$as_me: failed program was:" >&5 |
---|
3196 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3197 | |
---|
3198 | ac_cv_prog_cxx_g=no |
---|
3199 | fi |
---|
3200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3201 | fi |
---|
3202 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
3203 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
3204 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3205 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3206 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3207 | if test "$GXX" = yes; then |
---|
3208 | CXXFLAGS="-g -O2" |
---|
3209 | else |
---|
3210 | CXXFLAGS="-g" |
---|
3211 | fi |
---|
3212 | else |
---|
3213 | if test "$GXX" = yes; then |
---|
3214 | CXXFLAGS="-O2" |
---|
3215 | else |
---|
3216 | CXXFLAGS= |
---|
3217 | fi |
---|
3218 | fi |
---|
3219 | for ac_declaration in \ |
---|
3220 | '' \ |
---|
3221 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3222 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3223 | 'extern "C" void exit (int) throw ();' \ |
---|
3224 | 'extern "C" void exit (int);' \ |
---|
3225 | 'void exit (int);' |
---|
3226 | do |
---|
3227 | cat >conftest.$ac_ext <<_ACEOF |
---|
3228 | /* confdefs.h. */ |
---|
3229 | _ACEOF |
---|
3230 | cat confdefs.h >>conftest.$ac_ext |
---|
3231 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3232 | /* end confdefs.h. */ |
---|
3233 | $ac_declaration |
---|
3234 | @%:@include <stdlib.h> |
---|
3235 | int |
---|
3236 | main () |
---|
3237 | { |
---|
3238 | exit (42); |
---|
3239 | ; |
---|
3240 | return 0; |
---|
3241 | } |
---|
3242 | _ACEOF |
---|
3243 | rm -f conftest.$ac_objext |
---|
3244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3245 | (eval $ac_compile) 2>conftest.er1 |
---|
3246 | ac_status=$? |
---|
3247 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3248 | rm -f conftest.er1 |
---|
3249 | cat conftest.err >&5 |
---|
3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3251 | (exit $ac_status); } && |
---|
3252 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3253 | || test ! -s conftest.err' |
---|
3254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3255 | (eval $ac_try) 2>&5 |
---|
3256 | ac_status=$? |
---|
3257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3258 | (exit $ac_status); }; } && |
---|
3259 | { ac_try='test -s conftest.$ac_objext' |
---|
3260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3261 | (eval $ac_try) 2>&5 |
---|
3262 | ac_status=$? |
---|
3263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3264 | (exit $ac_status); }; }; then |
---|
3265 | : |
---|
3266 | else |
---|
3267 | echo "$as_me: failed program was:" >&5 |
---|
3268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3269 | |
---|
3270 | continue |
---|
3271 | fi |
---|
3272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3273 | cat >conftest.$ac_ext <<_ACEOF |
---|
3274 | /* confdefs.h. */ |
---|
3275 | _ACEOF |
---|
3276 | cat confdefs.h >>conftest.$ac_ext |
---|
3277 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3278 | /* end confdefs.h. */ |
---|
3279 | $ac_declaration |
---|
3280 | int |
---|
3281 | main () |
---|
3282 | { |
---|
3283 | exit (42); |
---|
3284 | ; |
---|
3285 | return 0; |
---|
3286 | } |
---|
3287 | _ACEOF |
---|
3288 | rm -f conftest.$ac_objext |
---|
3289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3290 | (eval $ac_compile) 2>conftest.er1 |
---|
3291 | ac_status=$? |
---|
3292 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3293 | rm -f conftest.er1 |
---|
3294 | cat conftest.err >&5 |
---|
3295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3296 | (exit $ac_status); } && |
---|
3297 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
3298 | || test ! -s conftest.err' |
---|
3299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3300 | (eval $ac_try) 2>&5 |
---|
3301 | ac_status=$? |
---|
3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3303 | (exit $ac_status); }; } && |
---|
3304 | { ac_try='test -s conftest.$ac_objext' |
---|
3305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3306 | (eval $ac_try) 2>&5 |
---|
3307 | ac_status=$? |
---|
3308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3309 | (exit $ac_status); }; }; then |
---|
3310 | break |
---|
3311 | else |
---|
3312 | echo "$as_me: failed program was:" >&5 |
---|
3313 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3314 | |
---|
3315 | fi |
---|
3316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3317 | done |
---|
3318 | rm -f conftest* |
---|
3319 | if test -n "$ac_declaration"; then |
---|
3320 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3321 | echo $ac_declaration >>confdefs.h |
---|
3322 | echo '#endif' >>confdefs.h |
---|
3323 | fi |
---|
3324 | |
---|
3325 | ac_ext=c |
---|
3326 | ac_cpp='$CPP $CPPFLAGS' |
---|
3327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3330 | |
---|
3331 | depcc="$CXX" am_compiler_list= |
---|
3332 | |
---|
3333 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3334 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3335 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
3336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3337 | else |
---|
3338 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3339 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3340 | # making bogus files that we don't know about and never remove. For |
---|
3341 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3342 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3343 | # in D'. |
---|
3344 | mkdir conftest.dir |
---|
3345 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3346 | # using a relative directory. |
---|
3347 | cp "$am_depcomp" conftest.dir |
---|
3348 | cd conftest.dir |
---|
3349 | # We will build objects and dependencies in a subdirectory because |
---|
3350 | # it helps to detect inapplicable dependency modes. For instance |
---|
3351 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3352 | # side effect of compilation, but ICC will put the dependencies in |
---|
3353 | # the current directory while Tru64 will put them in the object |
---|
3354 | # directory. |
---|
3355 | mkdir sub |
---|
3356 | |
---|
3357 | am_cv_CXX_dependencies_compiler_type=none |
---|
3358 | if test "$am_compiler_list" = ""; then |
---|
3359 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3360 | fi |
---|
3361 | for depmode in $am_compiler_list; do |
---|
3362 | # Setup a source with many dependencies, because some compilers |
---|
3363 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3364 | # we should not choose a depcomp mode which is confused by this. |
---|
3365 | # |
---|
3366 | # We need to recreate these files for each test, as the compiler may |
---|
3367 | # overwrite some of them when testing with obscure command lines. |
---|
3368 | # This happens at least with the AIX C compiler. |
---|
3369 | : > sub/conftest.c |
---|
3370 | for i in 1 2 3 4 5 6; do |
---|
3371 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3372 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3373 | # Solaris 8's {/usr,}/bin/sh. |
---|
3374 | touch sub/conftst$i.h |
---|
3375 | done |
---|
3376 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3377 | |
---|
3378 | case $depmode in |
---|
3379 | nosideeffect) |
---|
3380 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3381 | # only be used when explicitly requested |
---|
3382 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3383 | continue |
---|
3384 | else |
---|
3385 | break |
---|
3386 | fi |
---|
3387 | ;; |
---|
3388 | none) break ;; |
---|
3389 | esac |
---|
3390 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3391 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3392 | # handle `-M -o', and we need to detect this. |
---|
3393 | if depmode=$depmode \ |
---|
3394 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3395 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3396 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3397 | >/dev/null 2>conftest.err && |
---|
3398 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3399 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3400 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3401 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3402 | # (even with -Werror). So we grep stderr for any message |
---|
3403 | # that says an option was ignored. |
---|
3404 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3405 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3406 | break |
---|
3407 | fi |
---|
3408 | fi |
---|
3409 | done |
---|
3410 | |
---|
3411 | cd .. |
---|
3412 | rm -rf conftest.dir |
---|
3413 | else |
---|
3414 | am_cv_CXX_dependencies_compiler_type=none |
---|
3415 | fi |
---|
3416 | |
---|
3417 | fi |
---|
3418 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3419 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
3420 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3421 | |
---|
3422 | |
---|
3423 | |
---|
3424 | if |
---|
3425 | test "x$enable_dependency_tracking" != xno \ |
---|
3426 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3427 | am__fastdepCXX_TRUE= |
---|
3428 | am__fastdepCXX_FALSE='#' |
---|
3429 | else |
---|
3430 | am__fastdepCXX_TRUE='#' |
---|
3431 | am__fastdepCXX_FALSE= |
---|
3432 | fi |
---|
3433 | |
---|
3434 | |
---|
3435 | |
---|
3436 | |
---|
3437 | |
---|
3438 | ac_ext=c |
---|
3439 | ac_cpp='$CPP $CPPFLAGS' |
---|
3440 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3441 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3442 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3443 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3444 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3445 | # On Suns, sometimes $CPP names a directory. |
---|
3446 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3447 | CPP= |
---|
3448 | fi |
---|
3449 | if test -z "$CPP"; then |
---|
3450 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3452 | else |
---|
3453 | # Double quotes because CPP needs to be expanded |
---|
3454 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3455 | do |
---|
3456 | ac_preproc_ok=false |
---|
3457 | for ac_c_preproc_warn_flag in '' yes |
---|
3458 | do |
---|
3459 | # Use a header file that comes with gcc, so configuring glibc |
---|
3460 | # with a fresh cross-compiler works. |
---|
3461 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3462 | # <limits.h> exists even on freestanding compilers. |
---|
3463 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3464 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3465 | cat >conftest.$ac_ext <<_ACEOF |
---|
3466 | /* confdefs.h. */ |
---|
3467 | _ACEOF |
---|
3468 | cat confdefs.h >>conftest.$ac_ext |
---|
3469 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3470 | /* end confdefs.h. */ |
---|
3471 | @%:@ifdef __STDC__ |
---|
3472 | @%:@ include <limits.h> |
---|
3473 | @%:@else |
---|
3474 | @%:@ include <assert.h> |
---|
3475 | @%:@endif |
---|
3476 | Syntax error |
---|
3477 | _ACEOF |
---|
3478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3480 | ac_status=$? |
---|
3481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3482 | rm -f conftest.er1 |
---|
3483 | cat conftest.err >&5 |
---|
3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3485 | (exit $ac_status); } >/dev/null; then |
---|
3486 | if test -s conftest.err; then |
---|
3487 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3489 | else |
---|
3490 | ac_cpp_err= |
---|
3491 | fi |
---|
3492 | else |
---|
3493 | ac_cpp_err=yes |
---|
3494 | fi |
---|
3495 | if test -z "$ac_cpp_err"; then |
---|
3496 | : |
---|
3497 | else |
---|
3498 | echo "$as_me: failed program was:" >&5 |
---|
3499 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3500 | |
---|
3501 | # Broken: fails on valid input. |
---|
3502 | continue |
---|
3503 | fi |
---|
3504 | rm -f conftest.err conftest.$ac_ext |
---|
3505 | |
---|
3506 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3507 | # can be detected and how. |
---|
3508 | cat >conftest.$ac_ext <<_ACEOF |
---|
3509 | /* confdefs.h. */ |
---|
3510 | _ACEOF |
---|
3511 | cat confdefs.h >>conftest.$ac_ext |
---|
3512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3513 | /* end confdefs.h. */ |
---|
3514 | @%:@include <ac_nonexistent.h> |
---|
3515 | _ACEOF |
---|
3516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3518 | ac_status=$? |
---|
3519 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3520 | rm -f conftest.er1 |
---|
3521 | cat conftest.err >&5 |
---|
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3523 | (exit $ac_status); } >/dev/null; then |
---|
3524 | if test -s conftest.err; then |
---|
3525 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3526 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3527 | else |
---|
3528 | ac_cpp_err= |
---|
3529 | fi |
---|
3530 | else |
---|
3531 | ac_cpp_err=yes |
---|
3532 | fi |
---|
3533 | if test -z "$ac_cpp_err"; then |
---|
3534 | # Broken: success on invalid input. |
---|
3535 | continue |
---|
3536 | else |
---|
3537 | echo "$as_me: failed program was:" >&5 |
---|
3538 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3539 | |
---|
3540 | # Passes both tests. |
---|
3541 | ac_preproc_ok=: |
---|
3542 | break |
---|
3543 | fi |
---|
3544 | rm -f conftest.err conftest.$ac_ext |
---|
3545 | |
---|
3546 | done |
---|
3547 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3548 | rm -f conftest.err conftest.$ac_ext |
---|
3549 | if $ac_preproc_ok; then |
---|
3550 | break |
---|
3551 | fi |
---|
3552 | |
---|
3553 | done |
---|
3554 | ac_cv_prog_CPP=$CPP |
---|
3555 | |
---|
3556 | fi |
---|
3557 | CPP=$ac_cv_prog_CPP |
---|
3558 | else |
---|
3559 | ac_cv_prog_CPP=$CPP |
---|
3560 | fi |
---|
3561 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3562 | echo "${ECHO_T}$CPP" >&6 |
---|
3563 | ac_preproc_ok=false |
---|
3564 | for ac_c_preproc_warn_flag in '' yes |
---|
3565 | do |
---|
3566 | # Use a header file that comes with gcc, so configuring glibc |
---|
3567 | # with a fresh cross-compiler works. |
---|
3568 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3569 | # <limits.h> exists even on freestanding compilers. |
---|
3570 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3571 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3572 | cat >conftest.$ac_ext <<_ACEOF |
---|
3573 | /* confdefs.h. */ |
---|
3574 | _ACEOF |
---|
3575 | cat confdefs.h >>conftest.$ac_ext |
---|
3576 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3577 | /* end confdefs.h. */ |
---|
3578 | @%:@ifdef __STDC__ |
---|
3579 | @%:@ include <limits.h> |
---|
3580 | @%:@else |
---|
3581 | @%:@ include <assert.h> |
---|
3582 | @%:@endif |
---|
3583 | Syntax error |
---|
3584 | _ACEOF |
---|
3585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3587 | ac_status=$? |
---|
3588 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3589 | rm -f conftest.er1 |
---|
3590 | cat conftest.err >&5 |
---|
3591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3592 | (exit $ac_status); } >/dev/null; then |
---|
3593 | if test -s conftest.err; then |
---|
3594 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3595 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3596 | else |
---|
3597 | ac_cpp_err= |
---|
3598 | fi |
---|
3599 | else |
---|
3600 | ac_cpp_err=yes |
---|
3601 | fi |
---|
3602 | if test -z "$ac_cpp_err"; then |
---|
3603 | : |
---|
3604 | else |
---|
3605 | echo "$as_me: failed program was:" >&5 |
---|
3606 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3607 | |
---|
3608 | # Broken: fails on valid input. |
---|
3609 | continue |
---|
3610 | fi |
---|
3611 | rm -f conftest.err conftest.$ac_ext |
---|
3612 | |
---|
3613 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3614 | # can be detected and how. |
---|
3615 | cat >conftest.$ac_ext <<_ACEOF |
---|
3616 | /* confdefs.h. */ |
---|
3617 | _ACEOF |
---|
3618 | cat confdefs.h >>conftest.$ac_ext |
---|
3619 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3620 | /* end confdefs.h. */ |
---|
3621 | @%:@include <ac_nonexistent.h> |
---|
3622 | _ACEOF |
---|
3623 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3624 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3625 | ac_status=$? |
---|
3626 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3627 | rm -f conftest.er1 |
---|
3628 | cat conftest.err >&5 |
---|
3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3630 | (exit $ac_status); } >/dev/null; then |
---|
3631 | if test -s conftest.err; then |
---|
3632 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3633 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3634 | else |
---|
3635 | ac_cpp_err= |
---|
3636 | fi |
---|
3637 | else |
---|
3638 | ac_cpp_err=yes |
---|
3639 | fi |
---|
3640 | if test -z "$ac_cpp_err"; then |
---|
3641 | # Broken: success on invalid input. |
---|
3642 | continue |
---|
3643 | else |
---|
3644 | echo "$as_me: failed program was:" >&5 |
---|
3645 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3646 | |
---|
3647 | # Passes both tests. |
---|
3648 | ac_preproc_ok=: |
---|
3649 | break |
---|
3650 | fi |
---|
3651 | rm -f conftest.err conftest.$ac_ext |
---|
3652 | |
---|
3653 | done |
---|
3654 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3655 | rm -f conftest.err conftest.$ac_ext |
---|
3656 | if $ac_preproc_ok; then |
---|
3657 | : |
---|
3658 | else |
---|
3659 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3660 | See \`config.log' for more details." >&5 |
---|
3661 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3662 | See \`config.log' for more details." >&2;} |
---|
3663 | { (exit 1); exit 1; }; } |
---|
3664 | fi |
---|
3665 | |
---|
3666 | ac_ext=c |
---|
3667 | ac_cpp='$CPP $CPPFLAGS' |
---|
3668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3671 | |
---|
3672 | |
---|
3673 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3674 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3675 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3677 | else |
---|
3678 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3679 | then ac_cv_prog_egrep='grep -E' |
---|
3680 | else ac_cv_prog_egrep='egrep' |
---|
3681 | fi |
---|
3682 | fi |
---|
3683 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3684 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3685 | EGREP=$ac_cv_prog_egrep |
---|
3686 | |
---|
3687 | |
---|
3688 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3689 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3690 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3692 | else |
---|
3693 | cat >conftest.$ac_ext <<_ACEOF |
---|
3694 | /* confdefs.h. */ |
---|
3695 | _ACEOF |
---|
3696 | cat confdefs.h >>conftest.$ac_ext |
---|
3697 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3698 | /* end confdefs.h. */ |
---|
3699 | #include <stdlib.h> |
---|
3700 | #include <stdarg.h> |
---|
3701 | #include <string.h> |
---|
3702 | #include <float.h> |
---|
3703 | |
---|
3704 | int |
---|
3705 | main () |
---|
3706 | { |
---|
3707 | |
---|
3708 | ; |
---|
3709 | return 0; |
---|
3710 | } |
---|
3711 | _ACEOF |
---|
3712 | rm -f conftest.$ac_objext |
---|
3713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3714 | (eval $ac_compile) 2>conftest.er1 |
---|
3715 | ac_status=$? |
---|
3716 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3717 | rm -f conftest.er1 |
---|
3718 | cat conftest.err >&5 |
---|
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3720 | (exit $ac_status); } && |
---|
3721 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3722 | || test ! -s conftest.err' |
---|
3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3724 | (eval $ac_try) 2>&5 |
---|
3725 | ac_status=$? |
---|
3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3727 | (exit $ac_status); }; } && |
---|
3728 | { ac_try='test -s conftest.$ac_objext' |
---|
3729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3730 | (eval $ac_try) 2>&5 |
---|
3731 | ac_status=$? |
---|
3732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3733 | (exit $ac_status); }; }; then |
---|
3734 | ac_cv_header_stdc=yes |
---|
3735 | else |
---|
3736 | echo "$as_me: failed program was:" >&5 |
---|
3737 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3738 | |
---|
3739 | ac_cv_header_stdc=no |
---|
3740 | fi |
---|
3741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3742 | |
---|
3743 | if test $ac_cv_header_stdc = yes; then |
---|
3744 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3745 | cat >conftest.$ac_ext <<_ACEOF |
---|
3746 | /* confdefs.h. */ |
---|
3747 | _ACEOF |
---|
3748 | cat confdefs.h >>conftest.$ac_ext |
---|
3749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3750 | /* end confdefs.h. */ |
---|
3751 | #include <string.h> |
---|
3752 | |
---|
3753 | _ACEOF |
---|
3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3755 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3756 | : |
---|
3757 | else |
---|
3758 | ac_cv_header_stdc=no |
---|
3759 | fi |
---|
3760 | rm -f conftest* |
---|
3761 | |
---|
3762 | fi |
---|
3763 | |
---|
3764 | if test $ac_cv_header_stdc = yes; then |
---|
3765 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3766 | cat >conftest.$ac_ext <<_ACEOF |
---|
3767 | /* confdefs.h. */ |
---|
3768 | _ACEOF |
---|
3769 | cat confdefs.h >>conftest.$ac_ext |
---|
3770 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3771 | /* end confdefs.h. */ |
---|
3772 | #include <stdlib.h> |
---|
3773 | |
---|
3774 | _ACEOF |
---|
3775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3776 | $EGREP "free" >/dev/null 2>&1; then |
---|
3777 | : |
---|
3778 | else |
---|
3779 | ac_cv_header_stdc=no |
---|
3780 | fi |
---|
3781 | rm -f conftest* |
---|
3782 | |
---|
3783 | fi |
---|
3784 | |
---|
3785 | if test $ac_cv_header_stdc = yes; then |
---|
3786 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3787 | if test "$cross_compiling" = yes; then |
---|
3788 | : |
---|
3789 | else |
---|
3790 | cat >conftest.$ac_ext <<_ACEOF |
---|
3791 | /* confdefs.h. */ |
---|
3792 | _ACEOF |
---|
3793 | cat confdefs.h >>conftest.$ac_ext |
---|
3794 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3795 | /* end confdefs.h. */ |
---|
3796 | #include <ctype.h> |
---|
3797 | #if ((' ' & 0x0FF) == 0x020) |
---|
3798 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3799 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3800 | #else |
---|
3801 | # define ISLOWER(c) \ |
---|
3802 | (('a' <= (c) && (c) <= 'i') \ |
---|
3803 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3804 | || ('s' <= (c) && (c) <= 'z')) |
---|
3805 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3806 | #endif |
---|
3807 | |
---|
3808 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3809 | int |
---|
3810 | main () |
---|
3811 | { |
---|
3812 | int i; |
---|
3813 | for (i = 0; i < 256; i++) |
---|
3814 | if (XOR (islower (i), ISLOWER (i)) |
---|
3815 | || toupper (i) != TOUPPER (i)) |
---|
3816 | exit(2); |
---|
3817 | exit (0); |
---|
3818 | } |
---|
3819 | _ACEOF |
---|
3820 | rm -f conftest$ac_exeext |
---|
3821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3822 | (eval $ac_link) 2>&5 |
---|
3823 | ac_status=$? |
---|
3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3827 | (eval $ac_try) 2>&5 |
---|
3828 | ac_status=$? |
---|
3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3830 | (exit $ac_status); }; }; then |
---|
3831 | : |
---|
3832 | else |
---|
3833 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3834 | echo "$as_me: failed program was:" >&5 |
---|
3835 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3836 | |
---|
3837 | ( exit $ac_status ) |
---|
3838 | ac_cv_header_stdc=no |
---|
3839 | fi |
---|
3840 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3841 | fi |
---|
3842 | fi |
---|
3843 | fi |
---|
3844 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3845 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3846 | if test $ac_cv_header_stdc = yes; then |
---|
3847 | |
---|
3848 | cat >>confdefs.h <<\_ACEOF |
---|
3849 | @%:@define STDC_HEADERS 1 |
---|
3850 | _ACEOF |
---|
3851 | |
---|
3852 | fi |
---|
3853 | |
---|
3854 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3855 | |
---|
3856 | |
---|
3857 | |
---|
3858 | |
---|
3859 | |
---|
3860 | |
---|
3861 | |
---|
3862 | |
---|
3863 | |
---|
3864 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3865 | inttypes.h stdint.h unistd.h |
---|
3866 | do |
---|
3867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3868 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3869 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3872 | else |
---|
3873 | cat >conftest.$ac_ext <<_ACEOF |
---|
3874 | /* confdefs.h. */ |
---|
3875 | _ACEOF |
---|
3876 | cat confdefs.h >>conftest.$ac_ext |
---|
3877 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3878 | /* end confdefs.h. */ |
---|
3879 | $ac_includes_default |
---|
3880 | |
---|
3881 | @%:@include <$ac_header> |
---|
3882 | _ACEOF |
---|
3883 | rm -f conftest.$ac_objext |
---|
3884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3885 | (eval $ac_compile) 2>conftest.er1 |
---|
3886 | ac_status=$? |
---|
3887 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3888 | rm -f conftest.er1 |
---|
3889 | cat conftest.err >&5 |
---|
3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3891 | (exit $ac_status); } && |
---|
3892 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3893 | || test ! -s conftest.err' |
---|
3894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3895 | (eval $ac_try) 2>&5 |
---|
3896 | ac_status=$? |
---|
3897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3898 | (exit $ac_status); }; } && |
---|
3899 | { ac_try='test -s conftest.$ac_objext' |
---|
3900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3901 | (eval $ac_try) 2>&5 |
---|
3902 | ac_status=$? |
---|
3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3904 | (exit $ac_status); }; }; then |
---|
3905 | eval "$as_ac_Header=yes" |
---|
3906 | else |
---|
3907 | echo "$as_me: failed program was:" >&5 |
---|
3908 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3909 | |
---|
3910 | eval "$as_ac_Header=no" |
---|
3911 | fi |
---|
3912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3913 | fi |
---|
3914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3916 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3917 | cat >>confdefs.h <<_ACEOF |
---|
3918 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3919 | _ACEOF |
---|
3920 | |
---|
3921 | fi |
---|
3922 | |
---|
3923 | done |
---|
3924 | |
---|
3925 | |
---|
3926 | |
---|
3927 | |
---|
3928 | |
---|
3929 | |
---|
3930 | |
---|
3931 | |
---|
3932 | |
---|
3933 | |
---|
3934 | |
---|
3935 | |
---|
3936 | |
---|
3937 | |
---|
3938 | |
---|
3939 | |
---|
3940 | for ac_header in unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h |
---|
3941 | do |
---|
3942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3948 | fi |
---|
3949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3951 | else |
---|
3952 | # Is the header compilable? |
---|
3953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3955 | cat >conftest.$ac_ext <<_ACEOF |
---|
3956 | /* confdefs.h. */ |
---|
3957 | _ACEOF |
---|
3958 | cat confdefs.h >>conftest.$ac_ext |
---|
3959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3960 | /* end confdefs.h. */ |
---|
3961 | $ac_includes_default |
---|
3962 | @%:@include <$ac_header> |
---|
3963 | _ACEOF |
---|
3964 | rm -f conftest.$ac_objext |
---|
3965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3966 | (eval $ac_compile) 2>conftest.er1 |
---|
3967 | ac_status=$? |
---|
3968 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3969 | rm -f conftest.er1 |
---|
3970 | cat conftest.err >&5 |
---|
3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3972 | (exit $ac_status); } && |
---|
3973 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3974 | || test ! -s conftest.err' |
---|
3975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3976 | (eval $ac_try) 2>&5 |
---|
3977 | ac_status=$? |
---|
3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3979 | (exit $ac_status); }; } && |
---|
3980 | { ac_try='test -s conftest.$ac_objext' |
---|
3981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3982 | (eval $ac_try) 2>&5 |
---|
3983 | ac_status=$? |
---|
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3985 | (exit $ac_status); }; }; then |
---|
3986 | ac_header_compiler=yes |
---|
3987 | else |
---|
3988 | echo "$as_me: failed program was:" >&5 |
---|
3989 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3990 | |
---|
3991 | ac_header_compiler=no |
---|
3992 | fi |
---|
3993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3995 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3996 | |
---|
3997 | # Is the header present? |
---|
3998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4000 | cat >conftest.$ac_ext <<_ACEOF |
---|
4001 | /* confdefs.h. */ |
---|
4002 | _ACEOF |
---|
4003 | cat confdefs.h >>conftest.$ac_ext |
---|
4004 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4005 | /* end confdefs.h. */ |
---|
4006 | @%:@include <$ac_header> |
---|
4007 | _ACEOF |
---|
4008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4010 | ac_status=$? |
---|
4011 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4012 | rm -f conftest.er1 |
---|
4013 | cat conftest.err >&5 |
---|
4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4015 | (exit $ac_status); } >/dev/null; then |
---|
4016 | if test -s conftest.err; then |
---|
4017 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4019 | else |
---|
4020 | ac_cpp_err= |
---|
4021 | fi |
---|
4022 | else |
---|
4023 | ac_cpp_err=yes |
---|
4024 | fi |
---|
4025 | if test -z "$ac_cpp_err"; then |
---|
4026 | ac_header_preproc=yes |
---|
4027 | else |
---|
4028 | echo "$as_me: failed program was:" >&5 |
---|
4029 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4030 | |
---|
4031 | ac_header_preproc=no |
---|
4032 | fi |
---|
4033 | rm -f conftest.err conftest.$ac_ext |
---|
4034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4035 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4036 | |
---|
4037 | # So? What about this header? |
---|
4038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4039 | yes:no: ) |
---|
4040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4044 | ac_header_preproc=yes |
---|
4045 | ;; |
---|
4046 | no:yes:* ) |
---|
4047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4059 | ( |
---|
4060 | cat <<\_ASBOX |
---|
4061 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4062 | @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ |
---|
4063 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4064 | _ASBOX |
---|
4065 | ) | |
---|
4066 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4067 | ;; |
---|
4068 | esac |
---|
4069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4073 | else |
---|
4074 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4075 | fi |
---|
4076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4078 | |
---|
4079 | fi |
---|
4080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4081 | cat >>confdefs.h <<_ACEOF |
---|
4082 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4083 | _ACEOF |
---|
4084 | |
---|
4085 | fi |
---|
4086 | |
---|
4087 | done |
---|
4088 | |
---|
4089 | |
---|
4090 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
4091 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
---|
4092 | if test "${ac_cv_header_time+set}" = set; then |
---|
4093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4094 | else |
---|
4095 | cat >conftest.$ac_ext <<_ACEOF |
---|
4096 | /* confdefs.h. */ |
---|
4097 | _ACEOF |
---|
4098 | cat confdefs.h >>conftest.$ac_ext |
---|
4099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4100 | /* end confdefs.h. */ |
---|
4101 | #include <sys/types.h> |
---|
4102 | #include <sys/time.h> |
---|
4103 | #include <time.h> |
---|
4104 | |
---|
4105 | int |
---|
4106 | main () |
---|
4107 | { |
---|
4108 | if ((struct tm *) 0) |
---|
4109 | return 0; |
---|
4110 | ; |
---|
4111 | return 0; |
---|
4112 | } |
---|
4113 | _ACEOF |
---|
4114 | rm -f conftest.$ac_objext |
---|
4115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4116 | (eval $ac_compile) 2>conftest.er1 |
---|
4117 | ac_status=$? |
---|
4118 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4119 | rm -f conftest.er1 |
---|
4120 | cat conftest.err >&5 |
---|
4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4122 | (exit $ac_status); } && |
---|
4123 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4124 | || test ! -s conftest.err' |
---|
4125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4126 | (eval $ac_try) 2>&5 |
---|
4127 | ac_status=$? |
---|
4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4129 | (exit $ac_status); }; } && |
---|
4130 | { ac_try='test -s conftest.$ac_objext' |
---|
4131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4132 | (eval $ac_try) 2>&5 |
---|
4133 | ac_status=$? |
---|
4134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4135 | (exit $ac_status); }; }; then |
---|
4136 | ac_cv_header_time=yes |
---|
4137 | else |
---|
4138 | echo "$as_me: failed program was:" >&5 |
---|
4139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4140 | |
---|
4141 | ac_cv_header_time=no |
---|
4142 | fi |
---|
4143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4144 | fi |
---|
4145 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
4146 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
---|
4147 | if test $ac_cv_header_time = yes; then |
---|
4148 | |
---|
4149 | cat >>confdefs.h <<\_ACEOF |
---|
4150 | @%:@define TIME_WITH_SYS_TIME 1 |
---|
4151 | _ACEOF |
---|
4152 | |
---|
4153 | fi |
---|
4154 | |
---|
4155 | |
---|
4156 | |
---|
4157 | for ac_header in utime.h |
---|
4158 | do |
---|
4159 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4165 | fi |
---|
4166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4167 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4168 | else |
---|
4169 | # Is the header compilable? |
---|
4170 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4171 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4172 | cat >conftest.$ac_ext <<_ACEOF |
---|
4173 | /* confdefs.h. */ |
---|
4174 | _ACEOF |
---|
4175 | cat confdefs.h >>conftest.$ac_ext |
---|
4176 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4177 | /* end confdefs.h. */ |
---|
4178 | $ac_includes_default |
---|
4179 | @%:@include <$ac_header> |
---|
4180 | _ACEOF |
---|
4181 | rm -f conftest.$ac_objext |
---|
4182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4183 | (eval $ac_compile) 2>conftest.er1 |
---|
4184 | ac_status=$? |
---|
4185 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4186 | rm -f conftest.er1 |
---|
4187 | cat conftest.err >&5 |
---|
4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4189 | (exit $ac_status); } && |
---|
4190 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4191 | || test ! -s conftest.err' |
---|
4192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4193 | (eval $ac_try) 2>&5 |
---|
4194 | ac_status=$? |
---|
4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4196 | (exit $ac_status); }; } && |
---|
4197 | { ac_try='test -s conftest.$ac_objext' |
---|
4198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4199 | (eval $ac_try) 2>&5 |
---|
4200 | ac_status=$? |
---|
4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4202 | (exit $ac_status); }; }; then |
---|
4203 | ac_header_compiler=yes |
---|
4204 | else |
---|
4205 | echo "$as_me: failed program was:" >&5 |
---|
4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4207 | |
---|
4208 | ac_header_compiler=no |
---|
4209 | fi |
---|
4210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4212 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4213 | |
---|
4214 | # Is the header present? |
---|
4215 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4217 | cat >conftest.$ac_ext <<_ACEOF |
---|
4218 | /* confdefs.h. */ |
---|
4219 | _ACEOF |
---|
4220 | cat confdefs.h >>conftest.$ac_ext |
---|
4221 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4222 | /* end confdefs.h. */ |
---|
4223 | @%:@include <$ac_header> |
---|
4224 | _ACEOF |
---|
4225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4227 | ac_status=$? |
---|
4228 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4229 | rm -f conftest.er1 |
---|
4230 | cat conftest.err >&5 |
---|
4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4232 | (exit $ac_status); } >/dev/null; then |
---|
4233 | if test -s conftest.err; then |
---|
4234 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4235 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4236 | else |
---|
4237 | ac_cpp_err= |
---|
4238 | fi |
---|
4239 | else |
---|
4240 | ac_cpp_err=yes |
---|
4241 | fi |
---|
4242 | if test -z "$ac_cpp_err"; then |
---|
4243 | ac_header_preproc=yes |
---|
4244 | else |
---|
4245 | echo "$as_me: failed program was:" >&5 |
---|
4246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4247 | |
---|
4248 | ac_header_preproc=no |
---|
4249 | fi |
---|
4250 | rm -f conftest.err conftest.$ac_ext |
---|
4251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4252 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4253 | |
---|
4254 | # So? What about this header? |
---|
4255 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4256 | yes:no: ) |
---|
4257 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4258 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4260 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4261 | ac_header_preproc=yes |
---|
4262 | ;; |
---|
4263 | no:yes:* ) |
---|
4264 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4265 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4266 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4267 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4268 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4269 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4270 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4271 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4273 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4274 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4275 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4276 | ( |
---|
4277 | cat <<\_ASBOX |
---|
4278 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4279 | @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ |
---|
4280 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4281 | _ASBOX |
---|
4282 | ) | |
---|
4283 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4284 | ;; |
---|
4285 | esac |
---|
4286 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4290 | else |
---|
4291 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4292 | fi |
---|
4293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4294 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4295 | |
---|
4296 | fi |
---|
4297 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4298 | cat >>confdefs.h <<_ACEOF |
---|
4299 | @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4300 | _ACEOF |
---|
4301 | |
---|
4302 | fi |
---|
4303 | |
---|
4304 | done |
---|
4305 | |
---|
4306 | |
---|
4307 | echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
---|
4308 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
---|
4309 | if test "${fu_cv_sys_struct_utimbuf+set}" = set; then |
---|
4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4311 | else |
---|
4312 | cat >conftest.$ac_ext <<_ACEOF |
---|
4313 | /* confdefs.h. */ |
---|
4314 | _ACEOF |
---|
4315 | cat confdefs.h >>conftest.$ac_ext |
---|
4316 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4317 | /* end confdefs.h. */ |
---|
4318 | |
---|
4319 | #ifdef TIME_WITH_SYS_TIME |
---|
4320 | # include <sys/time.h> |
---|
4321 | # include <time.h> |
---|
4322 | #else |
---|
4323 | # ifdef HAVE_SYS_TIME_H |
---|
4324 | # include <sys/time.h> |
---|
4325 | # else |
---|
4326 | # include <time.h> |
---|
4327 | # endif |
---|
4328 | #endif |
---|
4329 | #ifdef HAVE_UTIME_H |
---|
4330 | # include <utime.h> |
---|
4331 | #endif |
---|
4332 | |
---|
4333 | int |
---|
4334 | main () |
---|
4335 | { |
---|
4336 | static struct utimbuf x; x.actime = x.modtime; |
---|
4337 | ; |
---|
4338 | return 0; |
---|
4339 | } |
---|
4340 | _ACEOF |
---|
4341 | rm -f conftest.$ac_objext |
---|
4342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4343 | (eval $ac_compile) 2>conftest.er1 |
---|
4344 | ac_status=$? |
---|
4345 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4346 | rm -f conftest.er1 |
---|
4347 | cat conftest.err >&5 |
---|
4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4349 | (exit $ac_status); } && |
---|
4350 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4351 | || test ! -s conftest.err' |
---|
4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4353 | (eval $ac_try) 2>&5 |
---|
4354 | ac_status=$? |
---|
4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4356 | (exit $ac_status); }; } && |
---|
4357 | { ac_try='test -s conftest.$ac_objext' |
---|
4358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4359 | (eval $ac_try) 2>&5 |
---|
4360 | ac_status=$? |
---|
4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4362 | (exit $ac_status); }; }; then |
---|
4363 | fu_cv_sys_struct_utimbuf=yes |
---|
4364 | else |
---|
4365 | echo "$as_me: failed program was:" >&5 |
---|
4366 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4367 | |
---|
4368 | fu_cv_sys_struct_utimbuf=no |
---|
4369 | fi |
---|
4370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4371 | |
---|
4372 | fi |
---|
4373 | echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5 |
---|
4374 | echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6 |
---|
4375 | |
---|
4376 | if test $fu_cv_sys_struct_utimbuf = yes; then |
---|
4377 | |
---|
4378 | cat >>confdefs.h <<_ACEOF |
---|
4379 | @%:@define HAVE_STRUCT_UTIMBUF 1 |
---|
4380 | _ACEOF |
---|
4381 | |
---|
4382 | fi |
---|
4383 | |
---|
4384 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
---|
4385 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
---|
4386 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
---|
4387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4388 | else |
---|
4389 | cat >conftest.$ac_ext <<_ACEOF |
---|
4390 | /* confdefs.h. */ |
---|
4391 | _ACEOF |
---|
4392 | cat confdefs.h >>conftest.$ac_ext |
---|
4393 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4394 | /* end confdefs.h. */ |
---|
4395 | @%:@include <sys/types.h> |
---|
4396 | int |
---|
4397 | main () |
---|
4398 | { |
---|
4399 | return makedev(0, 0); |
---|
4400 | ; |
---|
4401 | return 0; |
---|
4402 | } |
---|
4403 | _ACEOF |
---|
4404 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4406 | (eval $ac_link) 2>conftest.er1 |
---|
4407 | ac_status=$? |
---|
4408 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4409 | rm -f conftest.er1 |
---|
4410 | cat conftest.err >&5 |
---|
4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4412 | (exit $ac_status); } && |
---|
4413 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4414 | || test ! -s conftest.err' |
---|
4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4416 | (eval $ac_try) 2>&5 |
---|
4417 | ac_status=$? |
---|
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4419 | (exit $ac_status); }; } && |
---|
4420 | { ac_try='test -s conftest$ac_exeext' |
---|
4421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4422 | (eval $ac_try) 2>&5 |
---|
4423 | ac_status=$? |
---|
4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4425 | (exit $ac_status); }; }; then |
---|
4426 | ac_cv_header_sys_types_h_makedev=yes |
---|
4427 | else |
---|
4428 | echo "$as_me: failed program was:" >&5 |
---|
4429 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4430 | |
---|
4431 | ac_cv_header_sys_types_h_makedev=no |
---|
4432 | fi |
---|
4433 | rm -f conftest.err conftest.$ac_objext \ |
---|
4434 | conftest$ac_exeext conftest.$ac_ext |
---|
4435 | |
---|
4436 | fi |
---|
4437 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
---|
4438 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
---|
4439 | |
---|
4440 | if test $ac_cv_header_sys_types_h_makedev = no; then |
---|
4441 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
---|
4442 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
---|
4443 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
---|
4444 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
---|
4445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4446 | fi |
---|
4447 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
---|
4448 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
---|
4449 | else |
---|
4450 | # Is the header compilable? |
---|
4451 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
---|
4452 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
---|
4453 | cat >conftest.$ac_ext <<_ACEOF |
---|
4454 | /* confdefs.h. */ |
---|
4455 | _ACEOF |
---|
4456 | cat confdefs.h >>conftest.$ac_ext |
---|
4457 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4458 | /* end confdefs.h. */ |
---|
4459 | $ac_includes_default |
---|
4460 | @%:@include <sys/mkdev.h> |
---|
4461 | _ACEOF |
---|
4462 | rm -f conftest.$ac_objext |
---|
4463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4464 | (eval $ac_compile) 2>conftest.er1 |
---|
4465 | ac_status=$? |
---|
4466 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4467 | rm -f conftest.er1 |
---|
4468 | cat conftest.err >&5 |
---|
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4470 | (exit $ac_status); } && |
---|
4471 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4472 | || test ! -s conftest.err' |
---|
4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4474 | (eval $ac_try) 2>&5 |
---|
4475 | ac_status=$? |
---|
4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4477 | (exit $ac_status); }; } && |
---|
4478 | { ac_try='test -s conftest.$ac_objext' |
---|
4479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4480 | (eval $ac_try) 2>&5 |
---|
4481 | ac_status=$? |
---|
4482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4483 | (exit $ac_status); }; }; then |
---|
4484 | ac_header_compiler=yes |
---|
4485 | else |
---|
4486 | echo "$as_me: failed program was:" >&5 |
---|
4487 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4488 | |
---|
4489 | ac_header_compiler=no |
---|
4490 | fi |
---|
4491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4492 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4493 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4494 | |
---|
4495 | # Is the header present? |
---|
4496 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
---|
4497 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
---|
4498 | cat >conftest.$ac_ext <<_ACEOF |
---|
4499 | /* confdefs.h. */ |
---|
4500 | _ACEOF |
---|
4501 | cat confdefs.h >>conftest.$ac_ext |
---|
4502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4503 | /* end confdefs.h. */ |
---|
4504 | @%:@include <sys/mkdev.h> |
---|
4505 | _ACEOF |
---|
4506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4508 | ac_status=$? |
---|
4509 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4510 | rm -f conftest.er1 |
---|
4511 | cat conftest.err >&5 |
---|
4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4513 | (exit $ac_status); } >/dev/null; then |
---|
4514 | if test -s conftest.err; then |
---|
4515 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4516 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4517 | else |
---|
4518 | ac_cpp_err= |
---|
4519 | fi |
---|
4520 | else |
---|
4521 | ac_cpp_err=yes |
---|
4522 | fi |
---|
4523 | if test -z "$ac_cpp_err"; then |
---|
4524 | ac_header_preproc=yes |
---|
4525 | else |
---|
4526 | echo "$as_me: failed program was:" >&5 |
---|
4527 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4528 | |
---|
4529 | ac_header_preproc=no |
---|
4530 | fi |
---|
4531 | rm -f conftest.err conftest.$ac_ext |
---|
4532 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4533 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4534 | |
---|
4535 | # So? What about this header? |
---|
4536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4537 | yes:no: ) |
---|
4538 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4539 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4540 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
---|
4541 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
---|
4542 | ac_header_preproc=yes |
---|
4543 | ;; |
---|
4544 | no:yes:* ) |
---|
4545 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
---|
4546 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
---|
4547 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
---|
4548 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
---|
4549 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
---|
4550 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
---|
4551 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4552 | echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4553 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
---|
4554 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} |
---|
4555 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
---|
4556 | echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} |
---|
4557 | ( |
---|
4558 | cat <<\_ASBOX |
---|
4559 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4560 | @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ |
---|
4561 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4562 | _ASBOX |
---|
4563 | ) | |
---|
4564 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4565 | ;; |
---|
4566 | esac |
---|
4567 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
---|
4568 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
---|
4569 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
---|
4570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4571 | else |
---|
4572 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
---|
4573 | fi |
---|
4574 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
---|
4575 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
---|
4576 | |
---|
4577 | fi |
---|
4578 | if test $ac_cv_header_sys_mkdev_h = yes; then |
---|
4579 | |
---|
4580 | cat >>confdefs.h <<\_ACEOF |
---|
4581 | @%:@define MAJOR_IN_MKDEV 1 |
---|
4582 | _ACEOF |
---|
4583 | |
---|
4584 | fi |
---|
4585 | |
---|
4586 | |
---|
4587 | |
---|
4588 | if test $ac_cv_header_sys_mkdev_h = no; then |
---|
4589 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
---|
4590 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
---|
4591 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
---|
4592 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
---|
4593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4594 | fi |
---|
4595 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
---|
4596 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
---|
4597 | else |
---|
4598 | # Is the header compilable? |
---|
4599 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
---|
4600 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
---|
4601 | cat >conftest.$ac_ext <<_ACEOF |
---|
4602 | /* confdefs.h. */ |
---|
4603 | _ACEOF |
---|
4604 | cat confdefs.h >>conftest.$ac_ext |
---|
4605 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4606 | /* end confdefs.h. */ |
---|
4607 | $ac_includes_default |
---|
4608 | @%:@include <sys/sysmacros.h> |
---|
4609 | _ACEOF |
---|
4610 | rm -f conftest.$ac_objext |
---|
4611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4612 | (eval $ac_compile) 2>conftest.er1 |
---|
4613 | ac_status=$? |
---|
4614 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4615 | rm -f conftest.er1 |
---|
4616 | cat conftest.err >&5 |
---|
4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4618 | (exit $ac_status); } && |
---|
4619 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4620 | || test ! -s conftest.err' |
---|
4621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4622 | (eval $ac_try) 2>&5 |
---|
4623 | ac_status=$? |
---|
4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4625 | (exit $ac_status); }; } && |
---|
4626 | { ac_try='test -s conftest.$ac_objext' |
---|
4627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4628 | (eval $ac_try) 2>&5 |
---|
4629 | ac_status=$? |
---|
4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4631 | (exit $ac_status); }; }; then |
---|
4632 | ac_header_compiler=yes |
---|
4633 | else |
---|
4634 | echo "$as_me: failed program was:" >&5 |
---|
4635 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4636 | |
---|
4637 | ac_header_compiler=no |
---|
4638 | fi |
---|
4639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4640 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4641 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4642 | |
---|
4643 | # Is the header present? |
---|
4644 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
---|
4645 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
---|
4646 | cat >conftest.$ac_ext <<_ACEOF |
---|
4647 | /* confdefs.h. */ |
---|
4648 | _ACEOF |
---|
4649 | cat confdefs.h >>conftest.$ac_ext |
---|
4650 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4651 | /* end confdefs.h. */ |
---|
4652 | @%:@include <sys/sysmacros.h> |
---|
4653 | _ACEOF |
---|
4654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4656 | ac_status=$? |
---|
4657 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4658 | rm -f conftest.er1 |
---|
4659 | cat conftest.err >&5 |
---|
4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4661 | (exit $ac_status); } >/dev/null; then |
---|
4662 | if test -s conftest.err; then |
---|
4663 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4664 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4665 | else |
---|
4666 | ac_cpp_err= |
---|
4667 | fi |
---|
4668 | else |
---|
4669 | ac_cpp_err=yes |
---|
4670 | fi |
---|
4671 | if test -z "$ac_cpp_err"; then |
---|
4672 | ac_header_preproc=yes |
---|
4673 | else |
---|
4674 | echo "$as_me: failed program was:" >&5 |
---|
4675 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4676 | |
---|
4677 | ac_header_preproc=no |
---|
4678 | fi |
---|
4679 | rm -f conftest.err conftest.$ac_ext |
---|
4680 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4681 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4682 | |
---|
4683 | # So? What about this header? |
---|
4684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4685 | yes:no: ) |
---|
4686 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4687 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4688 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
---|
4689 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
---|
4690 | ac_header_preproc=yes |
---|
4691 | ;; |
---|
4692 | no:yes:* ) |
---|
4693 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
---|
4694 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
---|
4695 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
---|
4696 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
---|
4697 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
---|
4698 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
---|
4699 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4700 | echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4701 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
---|
4702 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} |
---|
4703 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
---|
4704 | echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} |
---|
4705 | ( |
---|
4706 | cat <<\_ASBOX |
---|
4707 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4708 | @%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ |
---|
4709 | @%:@@%:@ ------------------------------------------ @%:@@%:@ |
---|
4710 | _ASBOX |
---|
4711 | ) | |
---|
4712 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4713 | ;; |
---|
4714 | esac |
---|
4715 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
---|
4716 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
---|
4717 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
---|
4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4719 | else |
---|
4720 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
---|
4721 | fi |
---|
4722 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
---|
4723 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
---|
4724 | |
---|
4725 | fi |
---|
4726 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
---|
4727 | |
---|
4728 | cat >>confdefs.h <<\_ACEOF |
---|
4729 | @%:@define MAJOR_IN_SYSMACROS 1 |
---|
4730 | _ACEOF |
---|
4731 | |
---|
4732 | fi |
---|
4733 | |
---|
4734 | |
---|
4735 | fi |
---|
4736 | fi |
---|
4737 | |
---|
4738 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
4739 | # for constant arguments. Useless! |
---|
4740 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
---|
4741 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
---|
4742 | if test "${ac_cv_working_alloca_h+set}" = set; then |
---|
4743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4744 | else |
---|
4745 | cat >conftest.$ac_ext <<_ACEOF |
---|
4746 | /* confdefs.h. */ |
---|
4747 | _ACEOF |
---|
4748 | cat confdefs.h >>conftest.$ac_ext |
---|
4749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4750 | /* end confdefs.h. */ |
---|
4751 | @%:@include <alloca.h> |
---|
4752 | int |
---|
4753 | main () |
---|
4754 | { |
---|
4755 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
4756 | ; |
---|
4757 | return 0; |
---|
4758 | } |
---|
4759 | _ACEOF |
---|
4760 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4762 | (eval $ac_link) 2>conftest.er1 |
---|
4763 | ac_status=$? |
---|
4764 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4765 | rm -f conftest.er1 |
---|
4766 | cat conftest.err >&5 |
---|
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4768 | (exit $ac_status); } && |
---|
4769 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4770 | || test ! -s conftest.err' |
---|
4771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4772 | (eval $ac_try) 2>&5 |
---|
4773 | ac_status=$? |
---|
4774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4775 | (exit $ac_status); }; } && |
---|
4776 | { ac_try='test -s conftest$ac_exeext' |
---|
4777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4778 | (eval $ac_try) 2>&5 |
---|
4779 | ac_status=$? |
---|
4780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4781 | (exit $ac_status); }; }; then |
---|
4782 | ac_cv_working_alloca_h=yes |
---|
4783 | else |
---|
4784 | echo "$as_me: failed program was:" >&5 |
---|
4785 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4786 | |
---|
4787 | ac_cv_working_alloca_h=no |
---|
4788 | fi |
---|
4789 | rm -f conftest.err conftest.$ac_objext \ |
---|
4790 | conftest$ac_exeext conftest.$ac_ext |
---|
4791 | fi |
---|
4792 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
---|
4793 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
---|
4794 | if test $ac_cv_working_alloca_h = yes; then |
---|
4795 | |
---|
4796 | cat >>confdefs.h <<\_ACEOF |
---|
4797 | @%:@define HAVE_ALLOCA_H 1 |
---|
4798 | _ACEOF |
---|
4799 | |
---|
4800 | fi |
---|
4801 | |
---|
4802 | echo "$as_me:$LINENO: checking for alloca" >&5 |
---|
4803 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
---|
4804 | if test "${ac_cv_func_alloca_works+set}" = set; then |
---|
4805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4806 | else |
---|
4807 | cat >conftest.$ac_ext <<_ACEOF |
---|
4808 | /* confdefs.h. */ |
---|
4809 | _ACEOF |
---|
4810 | cat confdefs.h >>conftest.$ac_ext |
---|
4811 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4812 | /* end confdefs.h. */ |
---|
4813 | #ifdef __GNUC__ |
---|
4814 | # define alloca __builtin_alloca |
---|
4815 | #else |
---|
4816 | # ifdef _MSC_VER |
---|
4817 | # include <malloc.h> |
---|
4818 | # define alloca _alloca |
---|
4819 | # else |
---|
4820 | # if HAVE_ALLOCA_H |
---|
4821 | # include <alloca.h> |
---|
4822 | # else |
---|
4823 | # ifdef _AIX |
---|
4824 | #pragma alloca |
---|
4825 | # else |
---|
4826 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
4827 | char *alloca (); |
---|
4828 | # endif |
---|
4829 | # endif |
---|
4830 | # endif |
---|
4831 | # endif |
---|
4832 | #endif |
---|
4833 | |
---|
4834 | int |
---|
4835 | main () |
---|
4836 | { |
---|
4837 | char *p = (char *) alloca (1); |
---|
4838 | ; |
---|
4839 | return 0; |
---|
4840 | } |
---|
4841 | _ACEOF |
---|
4842 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4844 | (eval $ac_link) 2>conftest.er1 |
---|
4845 | ac_status=$? |
---|
4846 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4847 | rm -f conftest.er1 |
---|
4848 | cat conftest.err >&5 |
---|
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4850 | (exit $ac_status); } && |
---|
4851 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4852 | || test ! -s conftest.err' |
---|
4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4854 | (eval $ac_try) 2>&5 |
---|
4855 | ac_status=$? |
---|
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4857 | (exit $ac_status); }; } && |
---|
4858 | { ac_try='test -s conftest$ac_exeext' |
---|
4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4860 | (eval $ac_try) 2>&5 |
---|
4861 | ac_status=$? |
---|
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4863 | (exit $ac_status); }; }; then |
---|
4864 | ac_cv_func_alloca_works=yes |
---|
4865 | else |
---|
4866 | echo "$as_me: failed program was:" >&5 |
---|
4867 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4868 | |
---|
4869 | ac_cv_func_alloca_works=no |
---|
4870 | fi |
---|
4871 | rm -f conftest.err conftest.$ac_objext \ |
---|
4872 | conftest$ac_exeext conftest.$ac_ext |
---|
4873 | fi |
---|
4874 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
---|
4875 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
---|
4876 | |
---|
4877 | if test $ac_cv_func_alloca_works = yes; then |
---|
4878 | |
---|
4879 | cat >>confdefs.h <<\_ACEOF |
---|
4880 | @%:@define HAVE_ALLOCA 1 |
---|
4881 | _ACEOF |
---|
4882 | |
---|
4883 | else |
---|
4884 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4885 | # that cause trouble. Some versions do not even contain alloca or |
---|
4886 | # contain a buggy version. If you still want to use their alloca, |
---|
4887 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4888 | |
---|
4889 | ALLOCA=alloca.$ac_objext |
---|
4890 | |
---|
4891 | cat >>confdefs.h <<\_ACEOF |
---|
4892 | @%:@define C_ALLOCA 1 |
---|
4893 | _ACEOF |
---|
4894 | |
---|
4895 | |
---|
4896 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
4897 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
---|
4898 | if test "${ac_cv_os_cray+set}" = set; then |
---|
4899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4900 | else |
---|
4901 | cat >conftest.$ac_ext <<_ACEOF |
---|
4902 | /* confdefs.h. */ |
---|
4903 | _ACEOF |
---|
4904 | cat confdefs.h >>conftest.$ac_ext |
---|
4905 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4906 | /* end confdefs.h. */ |
---|
4907 | #if defined(CRAY) && ! defined(CRAY2) |
---|
4908 | webecray |
---|
4909 | #else |
---|
4910 | wenotbecray |
---|
4911 | #endif |
---|
4912 | |
---|
4913 | _ACEOF |
---|
4914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4915 | $EGREP "webecray" >/dev/null 2>&1; then |
---|
4916 | ac_cv_os_cray=yes |
---|
4917 | else |
---|
4918 | ac_cv_os_cray=no |
---|
4919 | fi |
---|
4920 | rm -f conftest* |
---|
4921 | |
---|
4922 | fi |
---|
4923 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
---|
4924 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
---|
4925 | if test $ac_cv_os_cray = yes; then |
---|
4926 | for ac_func in _getb67 GETB67 getb67; do |
---|
4927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
4929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
4930 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
4931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4932 | else |
---|
4933 | cat >conftest.$ac_ext <<_ACEOF |
---|
4934 | /* confdefs.h. */ |
---|
4935 | _ACEOF |
---|
4936 | cat confdefs.h >>conftest.$ac_ext |
---|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4938 | /* end confdefs.h. */ |
---|
4939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
4940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
4941 | #define $ac_func innocuous_$ac_func |
---|
4942 | |
---|
4943 | /* System header to define __stub macros and hopefully few prototypes, |
---|
4944 | which can conflict with char $ac_func (); below. |
---|
4945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4946 | <limits.h> exists even on freestanding compilers. */ |
---|
4947 | |
---|
4948 | #ifdef __STDC__ |
---|
4949 | # include <limits.h> |
---|
4950 | #else |
---|
4951 | # include <assert.h> |
---|
4952 | #endif |
---|
4953 | |
---|
4954 | #undef $ac_func |
---|
4955 | |
---|
4956 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4957 | #ifdef __cplusplus |
---|
4958 | extern "C" |
---|
4959 | { |
---|
4960 | #endif |
---|
4961 | /* We use char because int might match the return type of a gcc2 |
---|
4962 | builtin and then its argument prototype would still apply. */ |
---|
4963 | char $ac_func (); |
---|
4964 | /* The GNU C library defines this for functions which it implements |
---|
4965 | to always fail with ENOSYS. Some functions are actually named |
---|
4966 | something starting with __ and the normal name is an alias. */ |
---|
4967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
4968 | choke me |
---|
4969 | #else |
---|
4970 | char (*f) () = $ac_func; |
---|
4971 | #endif |
---|
4972 | #ifdef __cplusplus |
---|
4973 | } |
---|
4974 | #endif |
---|
4975 | |
---|
4976 | int |
---|
4977 | main () |
---|
4978 | { |
---|
4979 | return f != $ac_func; |
---|
4980 | ; |
---|
4981 | return 0; |
---|
4982 | } |
---|
4983 | _ACEOF |
---|
4984 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4986 | (eval $ac_link) 2>conftest.er1 |
---|
4987 | ac_status=$? |
---|
4988 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4989 | rm -f conftest.er1 |
---|
4990 | cat conftest.err >&5 |
---|
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4992 | (exit $ac_status); } && |
---|
4993 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4994 | || test ! -s conftest.err' |
---|
4995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4996 | (eval $ac_try) 2>&5 |
---|
4997 | ac_status=$? |
---|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4999 | (exit $ac_status); }; } && |
---|
5000 | { ac_try='test -s conftest$ac_exeext' |
---|
5001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5002 | (eval $ac_try) 2>&5 |
---|
5003 | ac_status=$? |
---|
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5005 | (exit $ac_status); }; }; then |
---|
5006 | eval "$as_ac_var=yes" |
---|
5007 | else |
---|
5008 | echo "$as_me: failed program was:" >&5 |
---|
5009 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5010 | |
---|
5011 | eval "$as_ac_var=no" |
---|
5012 | fi |
---|
5013 | rm -f conftest.err conftest.$ac_objext \ |
---|
5014 | conftest$ac_exeext conftest.$ac_ext |
---|
5015 | fi |
---|
5016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5017 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5019 | |
---|
5020 | cat >>confdefs.h <<_ACEOF |
---|
5021 | @%:@define CRAY_STACKSEG_END $ac_func |
---|
5022 | _ACEOF |
---|
5023 | |
---|
5024 | break |
---|
5025 | fi |
---|
5026 | |
---|
5027 | done |
---|
5028 | fi |
---|
5029 | |
---|
5030 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
---|
5031 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
---|
5032 | if test "${ac_cv_c_stack_direction+set}" = set; then |
---|
5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5034 | else |
---|
5035 | if test "$cross_compiling" = yes; then |
---|
5036 | ac_cv_c_stack_direction=0 |
---|
5037 | else |
---|
5038 | cat >conftest.$ac_ext <<_ACEOF |
---|
5039 | /* confdefs.h. */ |
---|
5040 | _ACEOF |
---|
5041 | cat confdefs.h >>conftest.$ac_ext |
---|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5043 | /* end confdefs.h. */ |
---|
5044 | int |
---|
5045 | find_stack_direction () |
---|
5046 | { |
---|
5047 | static char *addr = 0; |
---|
5048 | auto char dummy; |
---|
5049 | if (addr == 0) |
---|
5050 | { |
---|
5051 | addr = &dummy; |
---|
5052 | return find_stack_direction (); |
---|
5053 | } |
---|
5054 | else |
---|
5055 | return (&dummy > addr) ? 1 : -1; |
---|
5056 | } |
---|
5057 | |
---|
5058 | int |
---|
5059 | main () |
---|
5060 | { |
---|
5061 | exit (find_stack_direction () < 0); |
---|
5062 | } |
---|
5063 | _ACEOF |
---|
5064 | rm -f conftest$ac_exeext |
---|
5065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5066 | (eval $ac_link) 2>&5 |
---|
5067 | ac_status=$? |
---|
5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5071 | (eval $ac_try) 2>&5 |
---|
5072 | ac_status=$? |
---|
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5074 | (exit $ac_status); }; }; then |
---|
5075 | ac_cv_c_stack_direction=1 |
---|
5076 | else |
---|
5077 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5078 | echo "$as_me: failed program was:" >&5 |
---|
5079 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5080 | |
---|
5081 | ( exit $ac_status ) |
---|
5082 | ac_cv_c_stack_direction=-1 |
---|
5083 | fi |
---|
5084 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5085 | fi |
---|
5086 | fi |
---|
5087 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
---|
5088 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
---|
5089 | |
---|
5090 | cat >>confdefs.h <<_ACEOF |
---|
5091 | @%:@define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5092 | _ACEOF |
---|
5093 | |
---|
5094 | |
---|
5095 | fi |
---|
5096 | |
---|
5097 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
5098 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
---|
5099 | if test "${ac_cv_struct_tm+set}" = set; then |
---|
5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5101 | else |
---|
5102 | cat >conftest.$ac_ext <<_ACEOF |
---|
5103 | /* confdefs.h. */ |
---|
5104 | _ACEOF |
---|
5105 | cat confdefs.h >>conftest.$ac_ext |
---|
5106 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5107 | /* end confdefs.h. */ |
---|
5108 | #include <sys/types.h> |
---|
5109 | #include <time.h> |
---|
5110 | |
---|
5111 | int |
---|
5112 | main () |
---|
5113 | { |
---|
5114 | struct tm *tp; tp->tm_sec; |
---|
5115 | ; |
---|
5116 | return 0; |
---|
5117 | } |
---|
5118 | _ACEOF |
---|
5119 | rm -f conftest.$ac_objext |
---|
5120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5121 | (eval $ac_compile) 2>conftest.er1 |
---|
5122 | ac_status=$? |
---|
5123 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5124 | rm -f conftest.er1 |
---|
5125 | cat conftest.err >&5 |
---|
5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5127 | (exit $ac_status); } && |
---|
5128 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5129 | || test ! -s conftest.err' |
---|
5130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5131 | (eval $ac_try) 2>&5 |
---|
5132 | ac_status=$? |
---|
5133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5134 | (exit $ac_status); }; } && |
---|
5135 | { ac_try='test -s conftest.$ac_objext' |
---|
5136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5137 | (eval $ac_try) 2>&5 |
---|
5138 | ac_status=$? |
---|
5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5140 | (exit $ac_status); }; }; then |
---|
5141 | ac_cv_struct_tm=time.h |
---|
5142 | else |
---|
5143 | echo "$as_me: failed program was:" >&5 |
---|
5144 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5145 | |
---|
5146 | ac_cv_struct_tm=sys/time.h |
---|
5147 | fi |
---|
5148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5149 | fi |
---|
5150 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
---|
5151 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
---|
5152 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
5153 | |
---|
5154 | cat >>confdefs.h <<\_ACEOF |
---|
5155 | @%:@define TM_IN_SYS_TIME 1 |
---|
5156 | _ACEOF |
---|
5157 | |
---|
5158 | fi |
---|
5159 | |
---|
5160 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
---|
5161 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
---|
5162 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
---|
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5164 | else |
---|
5165 | cat >conftest.$ac_ext <<_ACEOF |
---|
5166 | /* confdefs.h. */ |
---|
5167 | _ACEOF |
---|
5168 | cat confdefs.h >>conftest.$ac_ext |
---|
5169 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5170 | /* end confdefs.h. */ |
---|
5171 | $ac_includes_default |
---|
5172 | int |
---|
5173 | main () |
---|
5174 | { |
---|
5175 | static struct stat ac_aggr; |
---|
5176 | if (ac_aggr.st_blocks) |
---|
5177 | return 0; |
---|
5178 | ; |
---|
5179 | return 0; |
---|
5180 | } |
---|
5181 | _ACEOF |
---|
5182 | rm -f conftest.$ac_objext |
---|
5183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5184 | (eval $ac_compile) 2>conftest.er1 |
---|
5185 | ac_status=$? |
---|
5186 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5187 | rm -f conftest.er1 |
---|
5188 | cat conftest.err >&5 |
---|
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5190 | (exit $ac_status); } && |
---|
5191 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5192 | || test ! -s conftest.err' |
---|
5193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5194 | (eval $ac_try) 2>&5 |
---|
5195 | ac_status=$? |
---|
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5197 | (exit $ac_status); }; } && |
---|
5198 | { ac_try='test -s conftest.$ac_objext' |
---|
5199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5200 | (eval $ac_try) 2>&5 |
---|
5201 | ac_status=$? |
---|
5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5203 | (exit $ac_status); }; }; then |
---|
5204 | ac_cv_member_struct_stat_st_blocks=yes |
---|
5205 | else |
---|
5206 | echo "$as_me: failed program was:" >&5 |
---|
5207 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5208 | |
---|
5209 | cat >conftest.$ac_ext <<_ACEOF |
---|
5210 | /* confdefs.h. */ |
---|
5211 | _ACEOF |
---|
5212 | cat confdefs.h >>conftest.$ac_ext |
---|
5213 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5214 | /* end confdefs.h. */ |
---|
5215 | $ac_includes_default |
---|
5216 | int |
---|
5217 | main () |
---|
5218 | { |
---|
5219 | static struct stat ac_aggr; |
---|
5220 | if (sizeof ac_aggr.st_blocks) |
---|
5221 | return 0; |
---|
5222 | ; |
---|
5223 | return 0; |
---|
5224 | } |
---|
5225 | _ACEOF |
---|
5226 | rm -f conftest.$ac_objext |
---|
5227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5228 | (eval $ac_compile) 2>conftest.er1 |
---|
5229 | ac_status=$? |
---|
5230 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5231 | rm -f conftest.er1 |
---|
5232 | cat conftest.err >&5 |
---|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5234 | (exit $ac_status); } && |
---|
5235 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5236 | || test ! -s conftest.err' |
---|
5237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5238 | (eval $ac_try) 2>&5 |
---|
5239 | ac_status=$? |
---|
5240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5241 | (exit $ac_status); }; } && |
---|
5242 | { ac_try='test -s conftest.$ac_objext' |
---|
5243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5244 | (eval $ac_try) 2>&5 |
---|
5245 | ac_status=$? |
---|
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5247 | (exit $ac_status); }; }; then |
---|
5248 | ac_cv_member_struct_stat_st_blocks=yes |
---|
5249 | else |
---|
5250 | echo "$as_me: failed program was:" >&5 |
---|
5251 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5252 | |
---|
5253 | ac_cv_member_struct_stat_st_blocks=no |
---|
5254 | fi |
---|
5255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5256 | fi |
---|
5257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5258 | fi |
---|
5259 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
---|
5260 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
---|
5261 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
---|
5262 | |
---|
5263 | cat >>confdefs.h <<_ACEOF |
---|
5264 | @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
---|
5265 | _ACEOF |
---|
5266 | |
---|
5267 | |
---|
5268 | cat >>confdefs.h <<\_ACEOF |
---|
5269 | @%:@define HAVE_ST_BLOCKS 1 |
---|
5270 | _ACEOF |
---|
5271 | |
---|
5272 | else |
---|
5273 | case $LIB@&t@OBJS in |
---|
5274 | "fileblocks.$ac_objext" | \ |
---|
5275 | *" fileblocks.$ac_objext" | \ |
---|
5276 | "fileblocks.$ac_objext "* | \ |
---|
5277 | *" fileblocks.$ac_objext "* ) ;; |
---|
5278 | *) LIB@&t@OBJS="$LIB@&t@OBJS fileblocks.$ac_objext" ;; |
---|
5279 | esac |
---|
5280 | |
---|
5281 | fi |
---|
5282 | |
---|
5283 | |
---|
5284 | |
---|
5285 | |
---|
5286 | |
---|
5287 | |
---|
5288 | |
---|
5289 | ac_header_dirent=no |
---|
5290 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
5291 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
5292 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
5293 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
---|
5294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5296 | else |
---|
5297 | cat >conftest.$ac_ext <<_ACEOF |
---|
5298 | /* confdefs.h. */ |
---|
5299 | _ACEOF |
---|
5300 | cat confdefs.h >>conftest.$ac_ext |
---|
5301 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5302 | /* end confdefs.h. */ |
---|
5303 | #include <sys/types.h> |
---|
5304 | #include <$ac_hdr> |
---|
5305 | |
---|
5306 | int |
---|
5307 | main () |
---|
5308 | { |
---|
5309 | if ((DIR *) 0) |
---|
5310 | return 0; |
---|
5311 | ; |
---|
5312 | return 0; |
---|
5313 | } |
---|
5314 | _ACEOF |
---|
5315 | rm -f conftest.$ac_objext |
---|
5316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5317 | (eval $ac_compile) 2>conftest.er1 |
---|
5318 | ac_status=$? |
---|
5319 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5320 | rm -f conftest.er1 |
---|
5321 | cat conftest.err >&5 |
---|
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5323 | (exit $ac_status); } && |
---|
5324 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5325 | || test ! -s conftest.err' |
---|
5326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5327 | (eval $ac_try) 2>&5 |
---|
5328 | ac_status=$? |
---|
5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5330 | (exit $ac_status); }; } && |
---|
5331 | { ac_try='test -s conftest.$ac_objext' |
---|
5332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5333 | (eval $ac_try) 2>&5 |
---|
5334 | ac_status=$? |
---|
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5336 | (exit $ac_status); }; }; then |
---|
5337 | eval "$as_ac_Header=yes" |
---|
5338 | else |
---|
5339 | echo "$as_me: failed program was:" >&5 |
---|
5340 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5341 | |
---|
5342 | eval "$as_ac_Header=no" |
---|
5343 | fi |
---|
5344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5345 | fi |
---|
5346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5349 | cat >>confdefs.h <<_ACEOF |
---|
5350 | @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
5351 | _ACEOF |
---|
5352 | |
---|
5353 | ac_header_dirent=$ac_hdr; break |
---|
5354 | fi |
---|
5355 | |
---|
5356 | done |
---|
5357 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
5358 | if test $ac_header_dirent = dirent.h; then |
---|
5359 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5360 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
5361 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5363 | else |
---|
5364 | ac_func_search_save_LIBS=$LIBS |
---|
5365 | ac_cv_search_opendir=no |
---|
5366 | cat >conftest.$ac_ext <<_ACEOF |
---|
5367 | /* confdefs.h. */ |
---|
5368 | _ACEOF |
---|
5369 | cat confdefs.h >>conftest.$ac_ext |
---|
5370 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5371 | /* end confdefs.h. */ |
---|
5372 | |
---|
5373 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5374 | #ifdef __cplusplus |
---|
5375 | extern "C" |
---|
5376 | #endif |
---|
5377 | /* We use char because int might match the return type of a gcc2 |
---|
5378 | builtin and then its argument prototype would still apply. */ |
---|
5379 | char opendir (); |
---|
5380 | int |
---|
5381 | main () |
---|
5382 | { |
---|
5383 | opendir (); |
---|
5384 | ; |
---|
5385 | return 0; |
---|
5386 | } |
---|
5387 | _ACEOF |
---|
5388 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5390 | (eval $ac_link) 2>conftest.er1 |
---|
5391 | ac_status=$? |
---|
5392 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5393 | rm -f conftest.er1 |
---|
5394 | cat conftest.err >&5 |
---|
5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5396 | (exit $ac_status); } && |
---|
5397 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5398 | || test ! -s conftest.err' |
---|
5399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5400 | (eval $ac_try) 2>&5 |
---|
5401 | ac_status=$? |
---|
5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5403 | (exit $ac_status); }; } && |
---|
5404 | { ac_try='test -s conftest$ac_exeext' |
---|
5405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5406 | (eval $ac_try) 2>&5 |
---|
5407 | ac_status=$? |
---|
5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5409 | (exit $ac_status); }; }; then |
---|
5410 | ac_cv_search_opendir="none required" |
---|
5411 | else |
---|
5412 | echo "$as_me: failed program was:" >&5 |
---|
5413 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5414 | |
---|
5415 | fi |
---|
5416 | rm -f conftest.err conftest.$ac_objext \ |
---|
5417 | conftest$ac_exeext conftest.$ac_ext |
---|
5418 | if test "$ac_cv_search_opendir" = no; then |
---|
5419 | for ac_lib in dir; do |
---|
5420 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5421 | cat >conftest.$ac_ext <<_ACEOF |
---|
5422 | /* confdefs.h. */ |
---|
5423 | _ACEOF |
---|
5424 | cat confdefs.h >>conftest.$ac_ext |
---|
5425 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5426 | /* end confdefs.h. */ |
---|
5427 | |
---|
5428 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5429 | #ifdef __cplusplus |
---|
5430 | extern "C" |
---|
5431 | #endif |
---|
5432 | /* We use char because int might match the return type of a gcc2 |
---|
5433 | builtin and then its argument prototype would still apply. */ |
---|
5434 | char opendir (); |
---|
5435 | int |
---|
5436 | main () |
---|
5437 | { |
---|
5438 | opendir (); |
---|
5439 | ; |
---|
5440 | return 0; |
---|
5441 | } |
---|
5442 | _ACEOF |
---|
5443 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5445 | (eval $ac_link) 2>conftest.er1 |
---|
5446 | ac_status=$? |
---|
5447 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5448 | rm -f conftest.er1 |
---|
5449 | cat conftest.err >&5 |
---|
5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5451 | (exit $ac_status); } && |
---|
5452 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5453 | || test ! -s conftest.err' |
---|
5454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5455 | (eval $ac_try) 2>&5 |
---|
5456 | ac_status=$? |
---|
5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5458 | (exit $ac_status); }; } && |
---|
5459 | { ac_try='test -s conftest$ac_exeext' |
---|
5460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5461 | (eval $ac_try) 2>&5 |
---|
5462 | ac_status=$? |
---|
5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5464 | (exit $ac_status); }; }; then |
---|
5465 | ac_cv_search_opendir="-l$ac_lib" |
---|
5466 | break |
---|
5467 | else |
---|
5468 | echo "$as_me: failed program was:" >&5 |
---|
5469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5470 | |
---|
5471 | fi |
---|
5472 | rm -f conftest.err conftest.$ac_objext \ |
---|
5473 | conftest$ac_exeext conftest.$ac_ext |
---|
5474 | done |
---|
5475 | fi |
---|
5476 | LIBS=$ac_func_search_save_LIBS |
---|
5477 | fi |
---|
5478 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5479 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
5480 | if test "$ac_cv_search_opendir" != no; then |
---|
5481 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
5482 | |
---|
5483 | fi |
---|
5484 | |
---|
5485 | else |
---|
5486 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5487 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
5488 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5490 | else |
---|
5491 | ac_func_search_save_LIBS=$LIBS |
---|
5492 | ac_cv_search_opendir=no |
---|
5493 | cat >conftest.$ac_ext <<_ACEOF |
---|
5494 | /* confdefs.h. */ |
---|
5495 | _ACEOF |
---|
5496 | cat confdefs.h >>conftest.$ac_ext |
---|
5497 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5498 | /* end confdefs.h. */ |
---|
5499 | |
---|
5500 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5501 | #ifdef __cplusplus |
---|
5502 | extern "C" |
---|
5503 | #endif |
---|
5504 | /* We use char because int might match the return type of a gcc2 |
---|
5505 | builtin and then its argument prototype would still apply. */ |
---|
5506 | char opendir (); |
---|
5507 | int |
---|
5508 | main () |
---|
5509 | { |
---|
5510 | opendir (); |
---|
5511 | ; |
---|
5512 | return 0; |
---|
5513 | } |
---|
5514 | _ACEOF |
---|
5515 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5517 | (eval $ac_link) 2>conftest.er1 |
---|
5518 | ac_status=$? |
---|
5519 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5520 | rm -f conftest.er1 |
---|
5521 | cat conftest.err >&5 |
---|
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5523 | (exit $ac_status); } && |
---|
5524 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5525 | || test ! -s conftest.err' |
---|
5526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5527 | (eval $ac_try) 2>&5 |
---|
5528 | ac_status=$? |
---|
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5530 | (exit $ac_status); }; } && |
---|
5531 | { ac_try='test -s conftest$ac_exeext' |
---|
5532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5533 | (eval $ac_try) 2>&5 |
---|
5534 | ac_status=$? |
---|
5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5536 | (exit $ac_status); }; }; then |
---|
5537 | ac_cv_search_opendir="none required" |
---|
5538 | else |
---|
5539 | echo "$as_me: failed program was:" >&5 |
---|
5540 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5541 | |
---|
5542 | fi |
---|
5543 | rm -f conftest.err conftest.$ac_objext \ |
---|
5544 | conftest$ac_exeext conftest.$ac_ext |
---|
5545 | if test "$ac_cv_search_opendir" = no; then |
---|
5546 | for ac_lib in x; do |
---|
5547 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5548 | cat >conftest.$ac_ext <<_ACEOF |
---|
5549 | /* confdefs.h. */ |
---|
5550 | _ACEOF |
---|
5551 | cat confdefs.h >>conftest.$ac_ext |
---|
5552 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5553 | /* end confdefs.h. */ |
---|
5554 | |
---|
5555 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5556 | #ifdef __cplusplus |
---|
5557 | extern "C" |
---|
5558 | #endif |
---|
5559 | /* We use char because int might match the return type of a gcc2 |
---|
5560 | builtin and then its argument prototype would still apply. */ |
---|
5561 | char opendir (); |
---|
5562 | int |
---|
5563 | main () |
---|
5564 | { |
---|
5565 | opendir (); |
---|
5566 | ; |
---|
5567 | return 0; |
---|
5568 | } |
---|
5569 | _ACEOF |
---|
5570 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5572 | (eval $ac_link) 2>conftest.er1 |
---|
5573 | ac_status=$? |
---|
5574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5575 | rm -f conftest.er1 |
---|
5576 | cat conftest.err >&5 |
---|
5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5578 | (exit $ac_status); } && |
---|
5579 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5580 | || test ! -s conftest.err' |
---|
5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5582 | (eval $ac_try) 2>&5 |
---|
5583 | ac_status=$? |
---|
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5585 | (exit $ac_status); }; } && |
---|
5586 | { ac_try='test -s conftest$ac_exeext' |
---|
5587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5588 | (eval $ac_try) 2>&5 |
---|
5589 | ac_status=$? |
---|
5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5591 | (exit $ac_status); }; }; then |
---|
5592 | ac_cv_search_opendir="-l$ac_lib" |
---|
5593 | break |
---|
5594 | else |
---|
5595 | echo "$as_me: failed program was:" >&5 |
---|
5596 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5597 | |
---|
5598 | fi |
---|
5599 | rm -f conftest.err conftest.$ac_objext \ |
---|
5600 | conftest$ac_exeext conftest.$ac_ext |
---|
5601 | done |
---|
5602 | fi |
---|
5603 | LIBS=$ac_func_search_save_LIBS |
---|
5604 | fi |
---|
5605 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5606 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
5607 | if test "$ac_cv_search_opendir" != no; then |
---|
5608 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
5609 | |
---|
5610 | fi |
---|
5611 | |
---|
5612 | fi |
---|
5613 | |
---|
5614 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
---|
5615 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 |
---|
5616 | if test "${ac_cv_func_closedir_void+set}" = set; then |
---|
5617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5618 | else |
---|
5619 | if test "$cross_compiling" = yes; then |
---|
5620 | ac_cv_func_closedir_void=yes |
---|
5621 | else |
---|
5622 | cat >conftest.$ac_ext <<_ACEOF |
---|
5623 | /* confdefs.h. */ |
---|
5624 | _ACEOF |
---|
5625 | cat confdefs.h >>conftest.$ac_ext |
---|
5626 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5627 | /* end confdefs.h. */ |
---|
5628 | $ac_includes_default |
---|
5629 | #include <$ac_header_dirent> |
---|
5630 | #ifndef __cplusplus |
---|
5631 | int closedir (); |
---|
5632 | #endif |
---|
5633 | |
---|
5634 | int |
---|
5635 | main () |
---|
5636 | { |
---|
5637 | exit (closedir (opendir (".")) != 0); |
---|
5638 | ; |
---|
5639 | return 0; |
---|
5640 | } |
---|
5641 | _ACEOF |
---|
5642 | rm -f conftest$ac_exeext |
---|
5643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5644 | (eval $ac_link) 2>&5 |
---|
5645 | ac_status=$? |
---|
5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5649 | (eval $ac_try) 2>&5 |
---|
5650 | ac_status=$? |
---|
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5652 | (exit $ac_status); }; }; then |
---|
5653 | ac_cv_func_closedir_void=no |
---|
5654 | else |
---|
5655 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5656 | echo "$as_me: failed program was:" >&5 |
---|
5657 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5658 | |
---|
5659 | ( exit $ac_status ) |
---|
5660 | ac_cv_func_closedir_void=yes |
---|
5661 | fi |
---|
5662 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5663 | fi |
---|
5664 | fi |
---|
5665 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
---|
5666 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 |
---|
5667 | if test $ac_cv_func_closedir_void = yes; then |
---|
5668 | |
---|
5669 | cat >>confdefs.h <<\_ACEOF |
---|
5670 | @%:@define CLOSEDIR_VOID 1 |
---|
5671 | _ACEOF |
---|
5672 | |
---|
5673 | fi |
---|
5674 | |
---|
5675 | |
---|
5676 | for ac_func in mkfifo |
---|
5677 | do |
---|
5678 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5679 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5680 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5681 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5683 | else |
---|
5684 | cat >conftest.$ac_ext <<_ACEOF |
---|
5685 | /* confdefs.h. */ |
---|
5686 | _ACEOF |
---|
5687 | cat confdefs.h >>conftest.$ac_ext |
---|
5688 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5689 | /* end confdefs.h. */ |
---|
5690 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
5691 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5692 | #define $ac_func innocuous_$ac_func |
---|
5693 | |
---|
5694 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5695 | which can conflict with char $ac_func (); below. |
---|
5696 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5697 | <limits.h> exists even on freestanding compilers. */ |
---|
5698 | |
---|
5699 | #ifdef __STDC__ |
---|
5700 | # include <limits.h> |
---|
5701 | #else |
---|
5702 | # include <assert.h> |
---|
5703 | #endif |
---|
5704 | |
---|
5705 | #undef $ac_func |
---|
5706 | |
---|
5707 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5708 | #ifdef __cplusplus |
---|
5709 | extern "C" |
---|
5710 | { |
---|
5711 | #endif |
---|
5712 | /* We use char because int might match the return type of a gcc2 |
---|
5713 | builtin and then its argument prototype would still apply. */ |
---|
5714 | char $ac_func (); |
---|
5715 | /* The GNU C library defines this for functions which it implements |
---|
5716 | to always fail with ENOSYS. Some functions are actually named |
---|
5717 | something starting with __ and the normal name is an alias. */ |
---|
5718 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5719 | choke me |
---|
5720 | #else |
---|
5721 | char (*f) () = $ac_func; |
---|
5722 | #endif |
---|
5723 | #ifdef __cplusplus |
---|
5724 | } |
---|
5725 | #endif |
---|
5726 | |
---|
5727 | int |
---|
5728 | main () |
---|
5729 | { |
---|
5730 | return f != $ac_func; |
---|
5731 | ; |
---|
5732 | return 0; |
---|
5733 | } |
---|
5734 | _ACEOF |
---|
5735 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5737 | (eval $ac_link) 2>conftest.er1 |
---|
5738 | ac_status=$? |
---|
5739 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5740 | rm -f conftest.er1 |
---|
5741 | cat conftest.err >&5 |
---|
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5743 | (exit $ac_status); } && |
---|
5744 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5745 | || test ! -s conftest.err' |
---|
5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5747 | (eval $ac_try) 2>&5 |
---|
5748 | ac_status=$? |
---|
5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5750 | (exit $ac_status); }; } && |
---|
5751 | { ac_try='test -s conftest$ac_exeext' |
---|
5752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5753 | (eval $ac_try) 2>&5 |
---|
5754 | ac_status=$? |
---|
5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5756 | (exit $ac_status); }; }; then |
---|
5757 | eval "$as_ac_var=yes" |
---|
5758 | else |
---|
5759 | echo "$as_me: failed program was:" >&5 |
---|
5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5761 | |
---|
5762 | eval "$as_ac_var=no" |
---|
5763 | fi |
---|
5764 | rm -f conftest.err conftest.$ac_objext \ |
---|
5765 | conftest$ac_exeext conftest.$ac_ext |
---|
5766 | fi |
---|
5767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5768 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5769 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5770 | cat >>confdefs.h <<_ACEOF |
---|
5771 | @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5772 | _ACEOF |
---|
5773 | |
---|
5774 | fi |
---|
5775 | done |
---|
5776 | |
---|
5777 | echo "$as_me:$LINENO: checking for mknod" >&5 |
---|
5778 | echo $ECHO_N "checking for mknod... $ECHO_C" >&6 |
---|
5779 | if test "${ac_cv_func_mknod+set}" = set; then |
---|
5780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5781 | else |
---|
5782 | cat >conftest.$ac_ext <<_ACEOF |
---|
5783 | /* confdefs.h. */ |
---|
5784 | _ACEOF |
---|
5785 | cat confdefs.h >>conftest.$ac_ext |
---|
5786 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5787 | /* end confdefs.h. */ |
---|
5788 | /* Define mknod to an innocuous variant, in case <limits.h> declares mknod. |
---|
5789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
5790 | #define mknod innocuous_mknod |
---|
5791 | |
---|
5792 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5793 | which can conflict with char mknod (); below. |
---|
5794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5795 | <limits.h> exists even on freestanding compilers. */ |
---|
5796 | |
---|
5797 | #ifdef __STDC__ |
---|
5798 | # include <limits.h> |
---|
5799 | #else |
---|
5800 | # include <assert.h> |
---|
5801 | #endif |
---|
5802 | |
---|
5803 | #undef mknod |
---|
5804 | |
---|
5805 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5806 | #ifdef __cplusplus |
---|
5807 | extern "C" |
---|
5808 | { |
---|
5809 | #endif |
---|
5810 | /* We use char because int might match the return type of a gcc2 |
---|
5811 | builtin and then its argument prototype would still apply. */ |
---|
5812 | char mknod (); |
---|
5813 | /* The GNU C library defines this for functions which it implements |
---|
5814 | to always fail with ENOSYS. Some functions are actually named |
---|
5815 | something starting with __ and the normal name is an alias. */ |
---|
5816 | #if defined (__stub_mknod) || defined (__stub___mknod) |
---|
5817 | choke me |
---|
5818 | #else |
---|
5819 | char (*f) () = mknod; |
---|
5820 | #endif |
---|
5821 | #ifdef __cplusplus |
---|
5822 | } |
---|
5823 | #endif |
---|
5824 | |
---|
5825 | int |
---|
5826 | main () |
---|
5827 | { |
---|
5828 | return f != mknod; |
---|
5829 | ; |
---|
5830 | return 0; |
---|
5831 | } |
---|
5832 | _ACEOF |
---|
5833 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5835 | (eval $ac_link) 2>conftest.er1 |
---|
5836 | ac_status=$? |
---|
5837 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5838 | rm -f conftest.er1 |
---|
5839 | cat conftest.err >&5 |
---|
5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5841 | (exit $ac_status); } && |
---|
5842 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5843 | || test ! -s conftest.err' |
---|
5844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5845 | (eval $ac_try) 2>&5 |
---|
5846 | ac_status=$? |
---|
5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5848 | (exit $ac_status); }; } && |
---|
5849 | { ac_try='test -s conftest$ac_exeext' |
---|
5850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5851 | (eval $ac_try) 2>&5 |
---|
5852 | ac_status=$? |
---|
5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5854 | (exit $ac_status); }; }; then |
---|
5855 | ac_cv_func_mknod=yes |
---|
5856 | else |
---|
5857 | echo "$as_me: failed program was:" >&5 |
---|
5858 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5859 | |
---|
5860 | ac_cv_func_mknod=no |
---|
5861 | fi |
---|
5862 | rm -f conftest.err conftest.$ac_objext \ |
---|
5863 | conftest$ac_exeext conftest.$ac_ext |
---|
5864 | fi |
---|
5865 | echo "$as_me:$LINENO: result: $ac_cv_func_mknod" >&5 |
---|
5866 | echo "${ECHO_T}$ac_cv_func_mknod" >&6 |
---|
5867 | |
---|
5868 | |
---|
5869 | |
---|
5870 | |
---|
5871 | ac_config_files="$ac_config_files Makefile orxonox.lsm orxonox.spec" |
---|
5872 | cat >confcache <<\_ACEOF |
---|
5873 | # This file is a shell script that caches the results of configure |
---|
5874 | # tests run on this system so they can be shared between configure |
---|
5875 | # scripts and configure runs, see configure's option --config-cache. |
---|
5876 | # It is not useful on other systems. If it contains results you don't |
---|
5877 | # want to keep, you may remove or edit it. |
---|
5878 | # |
---|
5879 | # config.status only pays attention to the cache file if you give it |
---|
5880 | # the --recheck option to rerun configure. |
---|
5881 | # |
---|
5882 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5883 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5884 | # following values. |
---|
5885 | |
---|
5886 | _ACEOF |
---|
5887 | |
---|
5888 | # The following way of writing the cache mishandles newlines in values, |
---|
5889 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5890 | # So, don't put newlines in cache variables' values. |
---|
5891 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5892 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5893 | { |
---|
5894 | (set) 2>&1 | |
---|
5895 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
5896 | *ac_space=\ *) |
---|
5897 | # `set' does not quote correctly, so add quotes (double-quote |
---|
5898 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
5899 | sed -n \ |
---|
5900 | "s/'/'\\\\''/g; |
---|
5901 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5902 | ;; |
---|
5903 | *) |
---|
5904 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5905 | sed -n \ |
---|
5906 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
5907 | ;; |
---|
5908 | esac; |
---|
5909 | } | |
---|
5910 | sed ' |
---|
5911 | t clear |
---|
5912 | : clear |
---|
5913 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5914 | t end |
---|
5915 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5916 | : end' >>confcache |
---|
5917 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
5918 | if test -w $cache_file; then |
---|
5919 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
5920 | cat confcache >$cache_file |
---|
5921 | else |
---|
5922 | echo "not updating unwritable cache $cache_file" |
---|
5923 | fi |
---|
5924 | fi |
---|
5925 | rm -f confcache |
---|
5926 | |
---|
5927 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5928 | # Let make expand exec_prefix. |
---|
5929 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5930 | |
---|
5931 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
5932 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
5933 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5934 | # (actually we leave an empty line to preserve line numbers). |
---|
5935 | if test "x$srcdir" = x.; then |
---|
5936 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
5937 | s/:*\$(srcdir):*/:/; |
---|
5938 | s/:*\${srcdir}:*/:/; |
---|
5939 | s/:*@srcdir@:*/:/; |
---|
5940 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
5941 | s/:*$//; |
---|
5942 | s/^[^=]*=[ ]*$//; |
---|
5943 | }' |
---|
5944 | fi |
---|
5945 | |
---|
5946 | DEFS=-DHAVE_CONFIG_H |
---|
5947 | |
---|
5948 | ac_libobjs= |
---|
5949 | ac_ltlibobjs= |
---|
5950 | for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue |
---|
5951 | # 1. Remove the extension, and $U if already installed. |
---|
5952 | ac_i=`echo "$ac_i" | |
---|
5953 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
5954 | # 2. Add them. |
---|
5955 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
5956 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
5957 | done |
---|
5958 | LIB@&t@OBJS=$ac_libobjs |
---|
5959 | |
---|
5960 | LTLIBOBJS=$ac_ltlibobjs |
---|
5961 | |
---|
5962 | |
---|
5963 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
5964 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
5965 | Usually this means the macro was only invoked conditionally." >&5 |
---|
5966 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
5967 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
5968 | { (exit 1); exit 1; }; } |
---|
5969 | fi |
---|
5970 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
5971 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
5972 | Usually this means the macro was only invoked conditionally." >&5 |
---|
5973 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
5974 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
5975 | { (exit 1); exit 1; }; } |
---|
5976 | fi |
---|
5977 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
5978 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
5979 | Usually this means the macro was only invoked conditionally." >&5 |
---|
5980 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
5981 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
5982 | { (exit 1); exit 1; }; } |
---|
5983 | fi |
---|
5984 | |
---|
5985 | : ${CONFIG_STATUS=./config.status} |
---|
5986 | ac_clean_files_save=$ac_clean_files |
---|
5987 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5988 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
5989 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5990 | cat >$CONFIG_STATUS <<_ACEOF |
---|
5991 | #! $SHELL |
---|
5992 | # Generated by $as_me. |
---|
5993 | # Run this file to recreate the current configuration. |
---|
5994 | # Compiler output produced by configure, useful for debugging |
---|
5995 | # configure, is in config.log if it exists. |
---|
5996 | |
---|
5997 | debug=false |
---|
5998 | ac_cs_recheck=false |
---|
5999 | ac_cs_silent=false |
---|
6000 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6001 | _ACEOF |
---|
6002 | |
---|
6003 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6004 | ## --------------------- ## |
---|
6005 | ## M4sh Initialization. ## |
---|
6006 | ## --------------------- ## |
---|
6007 | |
---|
6008 | # Be Bourne compatible |
---|
6009 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6010 | emulate sh |
---|
6011 | NULLCMD=: |
---|
6012 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6013 | # is contrary to our usage. Disable this feature. |
---|
6014 | alias -g '${1+"$@"}'='"$@"' |
---|
6015 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6016 | set -o posix |
---|
6017 | fi |
---|
6018 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6019 | |
---|
6020 | # Support unset when possible. |
---|
6021 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
6022 | as_unset=unset |
---|
6023 | else |
---|
6024 | as_unset=false |
---|
6025 | fi |
---|
6026 | |
---|
6027 | |
---|
6028 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6029 | $as_unset ENV MAIL MAILPATH |
---|
6030 | PS1='$ ' |
---|
6031 | PS2='> ' |
---|
6032 | PS4='+ ' |
---|
6033 | |
---|
6034 | # NLS nuisances. |
---|
6035 | for as_var in \ |
---|
6036 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6037 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6038 | LC_TELEPHONE LC_TIME |
---|
6039 | do |
---|
6040 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6041 | eval $as_var=C; export $as_var |
---|
6042 | else |
---|
6043 | $as_unset $as_var |
---|
6044 | fi |
---|
6045 | done |
---|
6046 | |
---|
6047 | # Required to use basename. |
---|
6048 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6049 | as_expr=expr |
---|
6050 | else |
---|
6051 | as_expr=false |
---|
6052 | fi |
---|
6053 | |
---|
6054 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6055 | as_basename=basename |
---|
6056 | else |
---|
6057 | as_basename=false |
---|
6058 | fi |
---|
6059 | |
---|
6060 | |
---|
6061 | # Name of the executable. |
---|
6062 | as_me=`$as_basename "$0" || |
---|
6063 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6064 | X"$0" : 'X\(//\)$' \| \ |
---|
6065 | X"$0" : 'X\(/\)$' \| \ |
---|
6066 | . : '\(.\)' 2>/dev/null || |
---|
6067 | echo X/"$0" | |
---|
6068 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6069 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6070 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6071 | s/.*/./; q'` |
---|
6072 | |
---|
6073 | |
---|
6074 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6075 | # Avoid depending upon Character Ranges. |
---|
6076 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6077 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6078 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6079 | as_cr_digits='0123456789' |
---|
6080 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6081 | |
---|
6082 | # The user is always right. |
---|
6083 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6084 | echo "#! /bin/sh" >conf$$.sh |
---|
6085 | echo "exit 0" >>conf$$.sh |
---|
6086 | chmod +x conf$$.sh |
---|
6087 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6088 | PATH_SEPARATOR=';' |
---|
6089 | else |
---|
6090 | PATH_SEPARATOR=: |
---|
6091 | fi |
---|
6092 | rm -f conf$$.sh |
---|
6093 | fi |
---|
6094 | |
---|
6095 | |
---|
6096 | as_lineno_1=$LINENO |
---|
6097 | as_lineno_2=$LINENO |
---|
6098 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6099 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6100 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6101 | # Find who we are. Look in the path if we contain no path at all |
---|
6102 | # relative or not. |
---|
6103 | case $0 in |
---|
6104 | *[\\/]* ) as_myself=$0 ;; |
---|
6105 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6106 | for as_dir in $PATH |
---|
6107 | do |
---|
6108 | IFS=$as_save_IFS |
---|
6109 | test -z "$as_dir" && as_dir=. |
---|
6110 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6111 | done |
---|
6112 | |
---|
6113 | ;; |
---|
6114 | esac |
---|
6115 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6116 | # in which case we are not to be found in the path. |
---|
6117 | if test "x$as_myself" = x; then |
---|
6118 | as_myself=$0 |
---|
6119 | fi |
---|
6120 | if test ! -f "$as_myself"; then |
---|
6121 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6122 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6123 | { (exit 1); exit 1; }; } |
---|
6124 | fi |
---|
6125 | case $CONFIG_SHELL in |
---|
6126 | '') |
---|
6127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6129 | do |
---|
6130 | IFS=$as_save_IFS |
---|
6131 | test -z "$as_dir" && as_dir=. |
---|
6132 | for as_base in sh bash ksh sh5; do |
---|
6133 | case $as_dir in |
---|
6134 | /*) |
---|
6135 | if ("$as_dir/$as_base" -c ' |
---|
6136 | as_lineno_1=$LINENO |
---|
6137 | as_lineno_2=$LINENO |
---|
6138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6141 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6142 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6143 | CONFIG_SHELL=$as_dir/$as_base |
---|
6144 | export CONFIG_SHELL |
---|
6145 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6146 | fi;; |
---|
6147 | esac |
---|
6148 | done |
---|
6149 | done |
---|
6150 | ;; |
---|
6151 | esac |
---|
6152 | |
---|
6153 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
6154 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
6155 | # line-number line before each line; the second 'sed' does the real |
---|
6156 | # work. The second script uses 'N' to pair each line-number line |
---|
6157 | # with the numbered line, and appends trailing '-' during |
---|
6158 | # substitution so that $LINENO is not a special case at line end. |
---|
6159 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
6160 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
6161 | sed '=' <$as_myself | |
---|
6162 | sed ' |
---|
6163 | N |
---|
6164 | s,$,-, |
---|
6165 | : loop |
---|
6166 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
6167 | t loop |
---|
6168 | s,-$,, |
---|
6169 | s,^['$as_cr_digits']*\n,, |
---|
6170 | ' >$as_me.lineno && |
---|
6171 | chmod +x $as_me.lineno || |
---|
6172 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
6173 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
6174 | { (exit 1); exit 1; }; } |
---|
6175 | |
---|
6176 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
6177 | # (the dirname of $[0] is not the place where we might find the |
---|
6178 | # original and so on. Autoconf is especially sensible to this). |
---|
6179 | . ./$as_me.lineno |
---|
6180 | # Exit status is that of the last command. |
---|
6181 | exit |
---|
6182 | } |
---|
6183 | |
---|
6184 | |
---|
6185 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
6186 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
6187 | ' ECHO_T=' ' ;; |
---|
6188 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
6189 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
6190 | esac |
---|
6191 | |
---|
6192 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6193 | as_expr=expr |
---|
6194 | else |
---|
6195 | as_expr=false |
---|
6196 | fi |
---|
6197 | |
---|
6198 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6199 | echo >conf$$.file |
---|
6200 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6201 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
6202 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
6203 | if test -f conf$$.exe; then |
---|
6204 | # Don't use ln at all; we don't have any links |
---|
6205 | as_ln_s='cp -p' |
---|
6206 | else |
---|
6207 | as_ln_s='ln -s' |
---|
6208 | fi |
---|
6209 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6210 | as_ln_s=ln |
---|
6211 | else |
---|
6212 | as_ln_s='cp -p' |
---|
6213 | fi |
---|
6214 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6215 | |
---|
6216 | if mkdir -p . 2>/dev/null; then |
---|
6217 | as_mkdir_p=: |
---|
6218 | else |
---|
6219 | test -d ./-p && rmdir ./-p |
---|
6220 | as_mkdir_p=false |
---|
6221 | fi |
---|
6222 | |
---|
6223 | as_executable_p="test -f" |
---|
6224 | |
---|
6225 | # Sed expression to map a string onto a valid CPP name. |
---|
6226 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6227 | |
---|
6228 | # Sed expression to map a string onto a valid variable name. |
---|
6229 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6230 | |
---|
6231 | |
---|
6232 | # IFS |
---|
6233 | # We need space, tab and new line, in precisely that order. |
---|
6234 | as_nl=' |
---|
6235 | ' |
---|
6236 | IFS=" $as_nl" |
---|
6237 | |
---|
6238 | # CDPATH. |
---|
6239 | $as_unset CDPATH |
---|
6240 | |
---|
6241 | exec 6>&1 |
---|
6242 | |
---|
6243 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
6244 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6245 | # values after options handling. Logging --version etc. is OK. |
---|
6246 | exec 5>>config.log |
---|
6247 | { |
---|
6248 | echo |
---|
6249 | sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX |
---|
6250 | @%:@@%:@ Running $as_me. @%:@@%:@ |
---|
6251 | _ASBOX |
---|
6252 | } >&5 |
---|
6253 | cat >&5 <<_CSEOF |
---|
6254 | |
---|
6255 | This file was extended by $as_me, which was |
---|
6256 | generated by GNU Autoconf 2.58. Invocation command line was |
---|
6257 | |
---|
6258 | CONFIG_FILES = $CONFIG_FILES |
---|
6259 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6260 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6261 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6262 | $ $0 $@ |
---|
6263 | |
---|
6264 | _CSEOF |
---|
6265 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
6266 | echo >&5 |
---|
6267 | _ACEOF |
---|
6268 | |
---|
6269 | # Files that config.status was made for. |
---|
6270 | if test -n "$ac_config_files"; then |
---|
6271 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
6272 | fi |
---|
6273 | |
---|
6274 | if test -n "$ac_config_headers"; then |
---|
6275 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
6276 | fi |
---|
6277 | |
---|
6278 | if test -n "$ac_config_links"; then |
---|
6279 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
6280 | fi |
---|
6281 | |
---|
6282 | if test -n "$ac_config_commands"; then |
---|
6283 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
6284 | fi |
---|
6285 | |
---|
6286 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6287 | |
---|
6288 | ac_cs_usage="\ |
---|
6289 | \`$as_me' instantiates files from templates according to the |
---|
6290 | current configuration. |
---|
6291 | |
---|
6292 | Usage: $0 [OPTIONS] [FILE]... |
---|
6293 | |
---|
6294 | -h, --help print this help, then exit |
---|
6295 | -V, --version print version number, then exit |
---|
6296 | -q, --quiet do not print progress messages |
---|
6297 | -d, --debug don't remove temporary files |
---|
6298 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6299 | --file=FILE[:TEMPLATE] |
---|
6300 | instantiate the configuration file FILE |
---|
6301 | --header=FILE[:TEMPLATE] |
---|
6302 | instantiate the configuration header FILE |
---|
6303 | |
---|
6304 | Configuration files: |
---|
6305 | $config_files |
---|
6306 | |
---|
6307 | Configuration headers: |
---|
6308 | $config_headers |
---|
6309 | |
---|
6310 | Configuration commands: |
---|
6311 | $config_commands |
---|
6312 | |
---|
6313 | Report bugs to <bug-autoconf@gnu.org>." |
---|
6314 | _ACEOF |
---|
6315 | |
---|
6316 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6317 | ac_cs_version="\\ |
---|
6318 | config.status |
---|
6319 | configured by $0, generated by GNU Autoconf 2.58, |
---|
6320 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
6321 | |
---|
6322 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
6323 | This config.status script is free software; the Free Software Foundation |
---|
6324 | gives unlimited permission to copy, distribute and modify it." |
---|
6325 | srcdir=$srcdir |
---|
6326 | INSTALL="$INSTALL" |
---|
6327 | _ACEOF |
---|
6328 | |
---|
6329 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6330 | # If no file are specified by the user, then we need to provide default |
---|
6331 | # value. By we need to know if files were specified by the user. |
---|
6332 | ac_need_defaults=: |
---|
6333 | while test $# != 0 |
---|
6334 | do |
---|
6335 | case $1 in |
---|
6336 | --*=*) |
---|
6337 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
6338 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
6339 | ac_shift=: |
---|
6340 | ;; |
---|
6341 | -*) |
---|
6342 | ac_option=$1 |
---|
6343 | ac_optarg=$2 |
---|
6344 | ac_shift=shift |
---|
6345 | ;; |
---|
6346 | *) # This is not an option, so the user has probably given explicit |
---|
6347 | # arguments. |
---|
6348 | ac_option=$1 |
---|
6349 | ac_need_defaults=false;; |
---|
6350 | esac |
---|
6351 | |
---|
6352 | case $ac_option in |
---|
6353 | # Handling of the options. |
---|
6354 | _ACEOF |
---|
6355 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6356 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6357 | ac_cs_recheck=: ;; |
---|
6358 | --version | --vers* | -V ) |
---|
6359 | echo "$ac_cs_version"; exit 0 ;; |
---|
6360 | --he | --h) |
---|
6361 | # Conflict between --help and --header |
---|
6362 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
6363 | Try \`$0 --help' for more information." >&5 |
---|
6364 | echo "$as_me: error: ambiguous option: $1 |
---|
6365 | Try \`$0 --help' for more information." >&2;} |
---|
6366 | { (exit 1); exit 1; }; };; |
---|
6367 | --help | --hel | -h ) |
---|
6368 | echo "$ac_cs_usage"; exit 0 ;; |
---|
6369 | --debug | --d* | -d ) |
---|
6370 | debug=: ;; |
---|
6371 | --file | --fil | --fi | --f ) |
---|
6372 | $ac_shift |
---|
6373 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
6374 | ac_need_defaults=false;; |
---|
6375 | --header | --heade | --head | --hea ) |
---|
6376 | $ac_shift |
---|
6377 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
6378 | ac_need_defaults=false;; |
---|
6379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6380 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6381 | ac_cs_silent=: ;; |
---|
6382 | |
---|
6383 | # This is an error. |
---|
6384 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
6385 | Try \`$0 --help' for more information." >&5 |
---|
6386 | echo "$as_me: error: unrecognized option: $1 |
---|
6387 | Try \`$0 --help' for more information." >&2;} |
---|
6388 | { (exit 1); exit 1; }; } ;; |
---|
6389 | |
---|
6390 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6391 | |
---|
6392 | esac |
---|
6393 | shift |
---|
6394 | done |
---|
6395 | |
---|
6396 | ac_configure_extra_args= |
---|
6397 | |
---|
6398 | if $ac_cs_silent; then |
---|
6399 | exec 6>/dev/null |
---|
6400 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6401 | fi |
---|
6402 | |
---|
6403 | _ACEOF |
---|
6404 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6405 | if \$ac_cs_recheck; then |
---|
6406 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6407 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6408 | fi |
---|
6409 | |
---|
6410 | _ACEOF |
---|
6411 | |
---|
6412 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6413 | # |
---|
6414 | # INIT-COMMANDS section. |
---|
6415 | # |
---|
6416 | |
---|
6417 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6418 | |
---|
6419 | _ACEOF |
---|
6420 | |
---|
6421 | |
---|
6422 | |
---|
6423 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6424 | for ac_config_target in $ac_config_targets |
---|
6425 | do |
---|
6426 | case "$ac_config_target" in |
---|
6427 | # Handling of arguments. |
---|
6428 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6429 | "orxonox.lsm" ) CONFIG_FILES="$CONFIG_FILES orxonox.lsm" ;; |
---|
6430 | "orxonox.spec" ) CONFIG_FILES="$CONFIG_FILES orxonox.spec" ;; |
---|
6431 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6432 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6433 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6434 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6435 | { (exit 1); exit 1; }; };; |
---|
6436 | esac |
---|
6437 | done |
---|
6438 | |
---|
6439 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6440 | # then the envvar interface is used. Set only those that are not. |
---|
6441 | # We use the long form for the default assignment because of an extremely |
---|
6442 | # bizarre bug on SunOS 4.1.3. |
---|
6443 | if $ac_need_defaults; then |
---|
6444 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6445 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6446 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6447 | fi |
---|
6448 | |
---|
6449 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6450 | # simply because there is no reason to put it here, and in addition, |
---|
6451 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6452 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6453 | $debug || |
---|
6454 | { |
---|
6455 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6456 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6457 | } |
---|
6458 | |
---|
6459 | # Create a (secure) tmp directory for tmp files. |
---|
6460 | |
---|
6461 | { |
---|
6462 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6463 | test -n "$tmp" && test -d "$tmp" |
---|
6464 | } || |
---|
6465 | { |
---|
6466 | tmp=./confstat$$-$RANDOM |
---|
6467 | (umask 077 && mkdir $tmp) |
---|
6468 | } || |
---|
6469 | { |
---|
6470 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6471 | { (exit 1); exit 1; } |
---|
6472 | } |
---|
6473 | |
---|
6474 | _ACEOF |
---|
6475 | |
---|
6476 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6477 | |
---|
6478 | # |
---|
6479 | # CONFIG_FILES section. |
---|
6480 | # |
---|
6481 | |
---|
6482 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6483 | # This happens for instance when ./config.status config.h |
---|
6484 | if test -n "\$CONFIG_FILES"; then |
---|
6485 | # Protect against being on the right side of a sed subst in config.status. |
---|
6486 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6487 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6488 | s,@SHELL@,$SHELL,;t t |
---|
6489 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6490 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6491 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6492 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6493 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6494 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6495 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6496 | s,@prefix@,$prefix,;t t |
---|
6497 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6498 | s,@bindir@,$bindir,;t t |
---|
6499 | s,@sbindir@,$sbindir,;t t |
---|
6500 | s,@libexecdir@,$libexecdir,;t t |
---|
6501 | s,@datadir@,$datadir,;t t |
---|
6502 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6503 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6504 | s,@localstatedir@,$localstatedir,;t t |
---|
6505 | s,@libdir@,$libdir,;t t |
---|
6506 | s,@includedir@,$includedir,;t t |
---|
6507 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6508 | s,@infodir@,$infodir,;t t |
---|
6509 | s,@mandir@,$mandir,;t t |
---|
6510 | s,@build_alias@,$build_alias,;t t |
---|
6511 | s,@host_alias@,$host_alias,;t t |
---|
6512 | s,@target_alias@,$target_alias,;t t |
---|
6513 | s,@DEFS@,$DEFS,;t t |
---|
6514 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6515 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6516 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6517 | s,@LIBS@,$LIBS,;t t |
---|
6518 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6519 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6520 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6521 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
6522 | s,@PACKAGE@,$PACKAGE,;t t |
---|
6523 | s,@VERSION@,$VERSION,;t t |
---|
6524 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
6525 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
6526 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
6527 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
6528 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
6529 | s,@AMTAR@,$AMTAR,;t t |
---|
6530 | s,@install_sh@,$install_sh,;t t |
---|
6531 | s,@STRIP@,$STRIP,;t t |
---|
6532 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
6533 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
6534 | s,@mkdir_p@,$mkdir_p,;t t |
---|
6535 | s,@AWK@,$AWK,;t t |
---|
6536 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
6537 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
6538 | s,@ISODATE@,$ISODATE,;t t |
---|
6539 | s,@build@,$build,;t t |
---|
6540 | s,@build_cpu@,$build_cpu,;t t |
---|
6541 | s,@build_vendor@,$build_vendor,;t t |
---|
6542 | s,@build_os@,$build_os,;t t |
---|
6543 | s,@host@,$host,;t t |
---|
6544 | s,@host_cpu@,$host_cpu,;t t |
---|
6545 | s,@host_vendor@,$host_vendor,;t t |
---|
6546 | s,@host_os@,$host_os,;t t |
---|
6547 | s,@CC@,$CC,;t t |
---|
6548 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6549 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6550 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6551 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6552 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6553 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6554 | s,@DEPDIR@,$DEPDIR,;t t |
---|
6555 | s,@am__include@,$am__include,;t t |
---|
6556 | s,@am__quote@,$am__quote,;t t |
---|
6557 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
6558 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
6559 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
6560 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
6561 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
6562 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
6563 | s,@CXX@,$CXX,;t t |
---|
6564 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
6565 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
6566 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
6567 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
6568 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
6569 | s,@CPP@,$CPP,;t t |
---|
6570 | s,@EGREP@,$EGREP,;t t |
---|
6571 | s,@ALLOCA@,$ALLOCA,;t t |
---|
6572 | s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t |
---|
6573 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6574 | CEOF |
---|
6575 | |
---|
6576 | _ACEOF |
---|
6577 | |
---|
6578 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6579 | # Split the substitutions into bite-sized pieces for seds with |
---|
6580 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6581 | ac_max_sed_lines=48 |
---|
6582 | ac_sed_frag=1 # Number of current file. |
---|
6583 | ac_beg=1 # First line for current file. |
---|
6584 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6585 | ac_more_lines=: |
---|
6586 | ac_sed_cmds= |
---|
6587 | while $ac_more_lines; do |
---|
6588 | if test $ac_beg -gt 1; then |
---|
6589 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6590 | else |
---|
6591 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6592 | fi |
---|
6593 | if test ! -s $tmp/subs.frag; then |
---|
6594 | ac_more_lines=false |
---|
6595 | else |
---|
6596 | # The purpose of the label and of the branching condition is to |
---|
6597 | # speed up the sed processing (if there are no `@' at all, there |
---|
6598 | # is no need to browse any of the substitutions). |
---|
6599 | # These are the two extra sed commands mentioned above. |
---|
6600 | (echo ':t |
---|
6601 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6602 | if test -z "$ac_sed_cmds"; then |
---|
6603 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6604 | else |
---|
6605 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6606 | fi |
---|
6607 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6608 | ac_beg=$ac_end |
---|
6609 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6610 | fi |
---|
6611 | done |
---|
6612 | if test -z "$ac_sed_cmds"; then |
---|
6613 | ac_sed_cmds=cat |
---|
6614 | fi |
---|
6615 | fi # test -n "$CONFIG_FILES" |
---|
6616 | |
---|
6617 | _ACEOF |
---|
6618 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6619 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6620 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6621 | case $ac_file in |
---|
6622 | - | *:- | *:-:* ) # input from stdin |
---|
6623 | cat >$tmp/stdin |
---|
6624 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6625 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6626 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6627 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6628 | * ) ac_file_in=$ac_file.in ;; |
---|
6629 | esac |
---|
6630 | |
---|
6631 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6632 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6633 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6634 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6635 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6636 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6637 | . : '\(.\)' 2>/dev/null || |
---|
6638 | echo X"$ac_file" | |
---|
6639 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6640 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6641 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6642 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6643 | s/.*/./; q'` |
---|
6644 | { if $as_mkdir_p; then |
---|
6645 | mkdir -p "$ac_dir" |
---|
6646 | else |
---|
6647 | as_dir="$ac_dir" |
---|
6648 | as_dirs= |
---|
6649 | while test ! -d "$as_dir"; do |
---|
6650 | as_dirs="$as_dir $as_dirs" |
---|
6651 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6652 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6653 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6654 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6655 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6656 | . : '\(.\)' 2>/dev/null || |
---|
6657 | echo X"$as_dir" | |
---|
6658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6659 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6660 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6661 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6662 | s/.*/./; q'` |
---|
6663 | done |
---|
6664 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6665 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6666 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6667 | { (exit 1); exit 1; }; }; } |
---|
6668 | |
---|
6669 | ac_builddir=. |
---|
6670 | |
---|
6671 | if test "$ac_dir" != .; then |
---|
6672 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6673 | # A "../" for each directory in $ac_dir_suffix. |
---|
6674 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6675 | else |
---|
6676 | ac_dir_suffix= ac_top_builddir= |
---|
6677 | fi |
---|
6678 | |
---|
6679 | case $srcdir in |
---|
6680 | .) # No --srcdir option. We are building in place. |
---|
6681 | ac_srcdir=. |
---|
6682 | if test -z "$ac_top_builddir"; then |
---|
6683 | ac_top_srcdir=. |
---|
6684 | else |
---|
6685 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6686 | fi ;; |
---|
6687 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6688 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6689 | ac_top_srcdir=$srcdir ;; |
---|
6690 | *) # Relative path. |
---|
6691 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6692 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6693 | esac |
---|
6694 | case "$ac_dir" in |
---|
6695 | .) ac_abs_builddir=$ac_builddir;; |
---|
6696 | *) |
---|
6697 | case $ac_builddir in |
---|
6698 | .) ac_abs_builddir="$ac_dir";; |
---|
6699 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; |
---|
6700 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; |
---|
6701 | esac;; |
---|
6702 | esac |
---|
6703 | case "$ac_dir" in |
---|
6704 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6705 | *) |
---|
6706 | case ${ac_top_builddir}. in |
---|
6707 | .) ac_abs_top_builddir="$ac_dir";; |
---|
6708 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
6709 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; |
---|
6710 | esac;; |
---|
6711 | esac |
---|
6712 | case "$ac_dir" in |
---|
6713 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
6714 | *) |
---|
6715 | case $ac_srcdir in |
---|
6716 | .) ac_abs_srcdir="$ac_dir";; |
---|
6717 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
6718 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; |
---|
6719 | esac;; |
---|
6720 | esac |
---|
6721 | case "$ac_dir" in |
---|
6722 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6723 | *) |
---|
6724 | case $ac_top_srcdir in |
---|
6725 | .) ac_abs_top_srcdir="$ac_dir";; |
---|
6726 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
6727 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; |
---|
6728 | esac;; |
---|
6729 | esac |
---|
6730 | |
---|
6731 | |
---|
6732 | case $INSTALL in |
---|
6733 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6734 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
6735 | esac |
---|
6736 | |
---|
6737 | if test x"$ac_file" != x-; then |
---|
6738 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6739 | echo "$as_me: creating $ac_file" >&6;} |
---|
6740 | rm -f "$ac_file" |
---|
6741 | fi |
---|
6742 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6743 | # use $as_me), people would be surprised to read: |
---|
6744 | # /* config.h. Generated by config.status. */ |
---|
6745 | if test x"$ac_file" = x-; then |
---|
6746 | configure_input= |
---|
6747 | else |
---|
6748 | configure_input="$ac_file. " |
---|
6749 | fi |
---|
6750 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
6751 | sed 's,.*/,,'` by configure." |
---|
6752 | |
---|
6753 | # First look for the input files in the build tree, otherwise in the |
---|
6754 | # src tree. |
---|
6755 | ac_file_inputs=`IFS=: |
---|
6756 | for f in $ac_file_in; do |
---|
6757 | case $f in |
---|
6758 | -) echo $tmp/stdin ;; |
---|
6759 | [\\/$]*) |
---|
6760 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6761 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6762 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6763 | { (exit 1); exit 1; }; } |
---|
6764 | echo "$f";; |
---|
6765 | *) # Relative |
---|
6766 | if test -f "$f"; then |
---|
6767 | # Build tree |
---|
6768 | echo "$f" |
---|
6769 | elif test -f "$srcdir/$f"; then |
---|
6770 | # Source tree |
---|
6771 | echo "$srcdir/$f" |
---|
6772 | else |
---|
6773 | # /dev/null tree |
---|
6774 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6775 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6776 | { (exit 1); exit 1; }; } |
---|
6777 | fi;; |
---|
6778 | esac |
---|
6779 | done` || { (exit 1); exit 1; } |
---|
6780 | _ACEOF |
---|
6781 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6782 | sed "$ac_vpsub |
---|
6783 | $extrasub |
---|
6784 | _ACEOF |
---|
6785 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6786 | :t |
---|
6787 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6788 | s,@configure_input@,$configure_input,;t t |
---|
6789 | s,@srcdir@,$ac_srcdir,;t t |
---|
6790 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
6791 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
6792 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
6793 | s,@builddir@,$ac_builddir,;t t |
---|
6794 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
6795 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
6796 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
6797 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
6798 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
6799 | rm -f $tmp/stdin |
---|
6800 | if test x"$ac_file" != x-; then |
---|
6801 | mv $tmp/out $ac_file |
---|
6802 | else |
---|
6803 | cat $tmp/out |
---|
6804 | rm -f $tmp/out |
---|
6805 | fi |
---|
6806 | |
---|
6807 | done |
---|
6808 | _ACEOF |
---|
6809 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6810 | |
---|
6811 | # |
---|
6812 | # CONFIG_HEADER section. |
---|
6813 | # |
---|
6814 | |
---|
6815 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
6816 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
6817 | # |
---|
6818 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
6819 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
6820 | ac_dB='[ ].*$,\1#\2' |
---|
6821 | ac_dC=' ' |
---|
6822 | ac_dD=',;t' |
---|
6823 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
6824 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
6825 | ac_uB='$,\1#\2define\3' |
---|
6826 | ac_uC=' ' |
---|
6827 | ac_uD=',;t' |
---|
6828 | |
---|
6829 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
6830 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6831 | case $ac_file in |
---|
6832 | - | *:- | *:-:* ) # input from stdin |
---|
6833 | cat >$tmp/stdin |
---|
6834 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6835 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6836 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6837 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6838 | * ) ac_file_in=$ac_file.in ;; |
---|
6839 | esac |
---|
6840 | |
---|
6841 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6842 | echo "$as_me: creating $ac_file" >&6;} |
---|
6843 | |
---|
6844 | # First look for the input files in the build tree, otherwise in the |
---|
6845 | # src tree. |
---|
6846 | ac_file_inputs=`IFS=: |
---|
6847 | for f in $ac_file_in; do |
---|
6848 | case $f in |
---|
6849 | -) echo $tmp/stdin ;; |
---|
6850 | [\\/$]*) |
---|
6851 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6852 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6853 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6854 | { (exit 1); exit 1; }; } |
---|
6855 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
6856 | echo "$f";; |
---|
6857 | *) # Relative |
---|
6858 | if test -f "$f"; then |
---|
6859 | # Build tree |
---|
6860 | echo "$f" |
---|
6861 | elif test -f "$srcdir/$f"; then |
---|
6862 | # Source tree |
---|
6863 | echo "$srcdir/$f" |
---|
6864 | else |
---|
6865 | # /dev/null tree |
---|
6866 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6867 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6868 | { (exit 1); exit 1; }; } |
---|
6869 | fi;; |
---|
6870 | esac |
---|
6871 | done` || { (exit 1); exit 1; } |
---|
6872 | # Remove the trailing spaces. |
---|
6873 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
6874 | |
---|
6875 | _ACEOF |
---|
6876 | |
---|
6877 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
6878 | # `conftest.undefs', that substitutes the proper values into |
---|
6879 | # config.h.in to produce config.h. The first handles `#define' |
---|
6880 | # templates, and the second `#undef' templates. |
---|
6881 | # And first: Protect against being on the right side of a sed subst in |
---|
6882 | # config.status. Protect against being in an unquoted here document |
---|
6883 | # in config.status. |
---|
6884 | rm -f conftest.defines conftest.undefs |
---|
6885 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
6886 | # Putting comments in sed scripts is not portable. |
---|
6887 | # |
---|
6888 | # `end' is used to avoid that the second main sed command (meant for |
---|
6889 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
6890 | # See the Autoconf documentation for `clear'. |
---|
6891 | cat >confdef2sed.sed <<\_ACEOF |
---|
6892 | s/[\\&,]/\\&/g |
---|
6893 | s,[\\$`],\\&,g |
---|
6894 | t clear |
---|
6895 | : clear |
---|
6896 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
6897 | t end |
---|
6898 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
6899 | : end |
---|
6900 | _ACEOF |
---|
6901 | # If some macros were called several times there might be several times |
---|
6902 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
6903 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
6904 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
6905 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
6906 | rm -f confdef2sed.sed |
---|
6907 | |
---|
6908 | # This sed command replaces #undef with comments. This is necessary, for |
---|
6909 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
6910 | # on some systems where configure will not decide to define it. |
---|
6911 | cat >>conftest.undefs <<\_ACEOF |
---|
6912 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
6913 | _ACEOF |
---|
6914 | |
---|
6915 | # Break up conftest.defines because some shells have a limit on the size |
---|
6916 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6917 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
6918 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
6919 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
6920 | echo ' :' >>$CONFIG_STATUS |
---|
6921 | rm -f conftest.tail |
---|
6922 | while grep . conftest.defines >/dev/null |
---|
6923 | do |
---|
6924 | # Write a limited-size here document to $tmp/defines.sed. |
---|
6925 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
6926 | # Speed up: don't consider the non `#define' lines. |
---|
6927 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
6928 | # Work around the forget-to-reset-the-flag bug. |
---|
6929 | echo 't clr' >>$CONFIG_STATUS |
---|
6930 | echo ': clr' >>$CONFIG_STATUS |
---|
6931 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
6932 | echo 'CEOF |
---|
6933 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
6934 | rm -f $tmp/in |
---|
6935 | mv $tmp/out $tmp/in |
---|
6936 | ' >>$CONFIG_STATUS |
---|
6937 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
6938 | rm -f conftest.defines |
---|
6939 | mv conftest.tail conftest.defines |
---|
6940 | done |
---|
6941 | rm -f conftest.defines |
---|
6942 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
6943 | echo >>$CONFIG_STATUS |
---|
6944 | |
---|
6945 | # Break up conftest.undefs because some shells have a limit on the size |
---|
6946 | # of here documents, and old seds have small limits too (100 cmds). |
---|
6947 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
6948 | rm -f conftest.tail |
---|
6949 | while grep . conftest.undefs >/dev/null |
---|
6950 | do |
---|
6951 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
6952 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
6953 | # Speed up: don't consider the non `#undef' |
---|
6954 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
6955 | # Work around the forget-to-reset-the-flag bug. |
---|
6956 | echo 't clr' >>$CONFIG_STATUS |
---|
6957 | echo ': clr' >>$CONFIG_STATUS |
---|
6958 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
6959 | echo 'CEOF |
---|
6960 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
6961 | rm -f $tmp/in |
---|
6962 | mv $tmp/out $tmp/in |
---|
6963 | ' >>$CONFIG_STATUS |
---|
6964 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
6965 | rm -f conftest.undefs |
---|
6966 | mv conftest.tail conftest.undefs |
---|
6967 | done |
---|
6968 | rm -f conftest.undefs |
---|
6969 | |
---|
6970 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6971 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6972 | # use $as_me), people would be surprised to read: |
---|
6973 | # /* config.h. Generated by config.status. */ |
---|
6974 | if test x"$ac_file" = x-; then |
---|
6975 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
6976 | else |
---|
6977 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
6978 | fi |
---|
6979 | cat $tmp/in >>$tmp/config.h |
---|
6980 | rm -f $tmp/in |
---|
6981 | if test x"$ac_file" != x-; then |
---|
6982 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
6983 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
6984 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6985 | else |
---|
6986 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6987 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6988 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6989 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6990 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6991 | . : '\(.\)' 2>/dev/null || |
---|
6992 | echo X"$ac_file" | |
---|
6993 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6994 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6995 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6996 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6997 | s/.*/./; q'` |
---|
6998 | { if $as_mkdir_p; then |
---|
6999 | mkdir -p "$ac_dir" |
---|
7000 | else |
---|
7001 | as_dir="$ac_dir" |
---|
7002 | as_dirs= |
---|
7003 | while test ! -d "$as_dir"; do |
---|
7004 | as_dirs="$as_dir $as_dirs" |
---|
7005 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7006 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7007 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7008 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7009 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7010 | . : '\(.\)' 2>/dev/null || |
---|
7011 | echo X"$as_dir" | |
---|
7012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7013 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7014 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7015 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7016 | s/.*/./; q'` |
---|
7017 | done |
---|
7018 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7019 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7020 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7021 | { (exit 1); exit 1; }; }; } |
---|
7022 | |
---|
7023 | rm -f $ac_file |
---|
7024 | mv $tmp/config.h $ac_file |
---|
7025 | fi |
---|
7026 | else |
---|
7027 | cat $tmp/config.h |
---|
7028 | rm -f $tmp/config.h |
---|
7029 | fi |
---|
7030 | # Compute $ac_file's index in $config_headers. |
---|
7031 | _am_stamp_count=1 |
---|
7032 | for _am_header in $config_headers :; do |
---|
7033 | case $_am_header in |
---|
7034 | $ac_file | $ac_file:* ) |
---|
7035 | break ;; |
---|
7036 | * ) |
---|
7037 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7038 | esac |
---|
7039 | done |
---|
7040 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7041 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7042 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7043 | X$ac_file : 'X\(//\)$' \| \ |
---|
7044 | X$ac_file : 'X\(/\)' \| \ |
---|
7045 | . : '\(.\)' 2>/dev/null || |
---|
7046 | echo X$ac_file | |
---|
7047 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7048 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7049 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7050 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7051 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7052 | done |
---|
7053 | _ACEOF |
---|
7054 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7055 | |
---|
7056 | # |
---|
7057 | # CONFIG_COMMANDS section. |
---|
7058 | # |
---|
7059 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7060 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7061 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7062 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7063 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7064 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7065 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7066 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7067 | . : '\(.\)' 2>/dev/null || |
---|
7068 | echo X"$ac_dest" | |
---|
7069 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7070 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7071 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7072 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7073 | s/.*/./; q'` |
---|
7074 | { if $as_mkdir_p; then |
---|
7075 | mkdir -p "$ac_dir" |
---|
7076 | else |
---|
7077 | as_dir="$ac_dir" |
---|
7078 | as_dirs= |
---|
7079 | while test ! -d "$as_dir"; do |
---|
7080 | as_dirs="$as_dir $as_dirs" |
---|
7081 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7082 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7083 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7084 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7085 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7086 | . : '\(.\)' 2>/dev/null || |
---|
7087 | echo X"$as_dir" | |
---|
7088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7089 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7090 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7091 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7092 | s/.*/./; q'` |
---|
7093 | done |
---|
7094 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7095 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7096 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7097 | { (exit 1); exit 1; }; }; } |
---|
7098 | |
---|
7099 | ac_builddir=. |
---|
7100 | |
---|
7101 | if test "$ac_dir" != .; then |
---|
7102 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7103 | # A "../" for each directory in $ac_dir_suffix. |
---|
7104 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7105 | else |
---|
7106 | ac_dir_suffix= ac_top_builddir= |
---|
7107 | fi |
---|
7108 | |
---|
7109 | case $srcdir in |
---|
7110 | .) # No --srcdir option. We are building in place. |
---|
7111 | ac_srcdir=. |
---|
7112 | if test -z "$ac_top_builddir"; then |
---|
7113 | ac_top_srcdir=. |
---|
7114 | else |
---|
7115 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7116 | fi ;; |
---|
7117 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7118 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7119 | ac_top_srcdir=$srcdir ;; |
---|
7120 | *) # Relative path. |
---|
7121 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7122 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7123 | esac |
---|
7124 | case "$ac_dir" in |
---|
7125 | .) ac_abs_builddir=$ac_builddir;; |
---|
7126 | *) |
---|
7127 | case $ac_builddir in |
---|
7128 | .) ac_abs_builddir="$ac_dir";; |
---|
7129 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; |
---|
7130 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; |
---|
7131 | esac;; |
---|
7132 | esac |
---|
7133 | case "$ac_dir" in |
---|
7134 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7135 | *) |
---|
7136 | case ${ac_top_builddir}. in |
---|
7137 | .) ac_abs_top_builddir="$ac_dir";; |
---|
7138 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
7139 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; |
---|
7140 | esac;; |
---|
7141 | esac |
---|
7142 | case "$ac_dir" in |
---|
7143 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
7144 | *) |
---|
7145 | case $ac_srcdir in |
---|
7146 | .) ac_abs_srcdir="$ac_dir";; |
---|
7147 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
7148 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; |
---|
7149 | esac;; |
---|
7150 | esac |
---|
7151 | case "$ac_dir" in |
---|
7152 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7153 | *) |
---|
7154 | case $ac_top_srcdir in |
---|
7155 | .) ac_abs_top_srcdir="$ac_dir";; |
---|
7156 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
7157 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; |
---|
7158 | esac;; |
---|
7159 | esac |
---|
7160 | |
---|
7161 | |
---|
7162 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7163 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7164 | case $ac_dest in |
---|
7165 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7166 | # Strip MF so we end up with the name of the file. |
---|
7167 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7168 | # Check whether this is an Automake generated Makefile or not. |
---|
7169 | # We used to match only the files named `Makefile.in', but |
---|
7170 | # some people rename them; so instead we look at the file content. |
---|
7171 | # Grep'ing the first line is not enough: some people post-process |
---|
7172 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7173 | # So let's grep whole file. |
---|
7174 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7175 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7176 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7177 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7178 | X"$mf" : 'X\(//\)$' \| \ |
---|
7179 | X"$mf" : 'X\(/\)' \| \ |
---|
7180 | . : '\(.\)' 2>/dev/null || |
---|
7181 | echo X"$mf" | |
---|
7182 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7183 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7184 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7185 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7186 | s/.*/./; q'` |
---|
7187 | else |
---|
7188 | continue |
---|
7189 | fi |
---|
7190 | grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue |
---|
7191 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7192 | # running `make'. |
---|
7193 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7194 | test -z "$DEPDIR" && continue |
---|
7195 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7196 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
7197 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7198 | # We invoke sed twice because it is the simplest approach to |
---|
7199 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7200 | for file in `sed -n ' |
---|
7201 | /^DEP_FILES = .*\\\\$/ { |
---|
7202 | s/^DEP_FILES = // |
---|
7203 | :loop |
---|
7204 | s/\\\\$// |
---|
7205 | p |
---|
7206 | n |
---|
7207 | /\\\\$/ b loop |
---|
7208 | p |
---|
7209 | } |
---|
7210 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7211 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7212 | # Make sure the directory exists. |
---|
7213 | test -f "$dirpart/$file" && continue |
---|
7214 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7215 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7216 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7217 | X"$file" : 'X\(//\)$' \| \ |
---|
7218 | X"$file" : 'X\(/\)' \| \ |
---|
7219 | . : '\(.\)' 2>/dev/null || |
---|
7220 | echo X"$file" | |
---|
7221 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7222 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7223 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7224 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7225 | s/.*/./; q'` |
---|
7226 | { if $as_mkdir_p; then |
---|
7227 | mkdir -p $dirpart/$fdir |
---|
7228 | else |
---|
7229 | as_dir=$dirpart/$fdir |
---|
7230 | as_dirs= |
---|
7231 | while test ! -d "$as_dir"; do |
---|
7232 | as_dirs="$as_dir $as_dirs" |
---|
7233 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7234 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7235 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7236 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7237 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7238 | . : '\(.\)' 2>/dev/null || |
---|
7239 | echo X"$as_dir" | |
---|
7240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7241 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7242 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7243 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7244 | s/.*/./; q'` |
---|
7245 | done |
---|
7246 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7247 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
7248 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
7249 | { (exit 1); exit 1; }; }; } |
---|
7250 | |
---|
7251 | # echo "creating $dirpart/$file" |
---|
7252 | echo '# dummy' > "$dirpart/$file" |
---|
7253 | done |
---|
7254 | done |
---|
7255 | ;; |
---|
7256 | esac |
---|
7257 | done |
---|
7258 | _ACEOF |
---|
7259 | |
---|
7260 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7261 | |
---|
7262 | { (exit 0); exit 0; } |
---|
7263 | _ACEOF |
---|
7264 | chmod +x $CONFIG_STATUS |
---|
7265 | ac_clean_files=$ac_clean_files_save |
---|
7266 | |
---|
7267 | |
---|
7268 | # configure is writing to config.log, and then calls config.status. |
---|
7269 | # config.status does its own redirection, appending to config.log. |
---|
7270 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7271 | # by configure, so config.status won't be able to write to it; its |
---|
7272 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7273 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7274 | # appended to by config.status. When coming back to configure, we |
---|
7275 | # need to make the FD available again. |
---|
7276 | if test "$no_create" != yes; then |
---|
7277 | ac_cs_success=: |
---|
7278 | ac_config_status_args= |
---|
7279 | test "$silent" = yes && |
---|
7280 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7281 | exec 5>/dev/null |
---|
7282 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7283 | exec 5>>config.log |
---|
7284 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7285 | # would make configure fail if this is the last instruction. |
---|
7286 | $ac_cs_success || { (exit 1); exit 1; } |
---|
7287 | fi |
---|
7288 | |
---|