Mercurial > routeflapper
comparison configure @ 0:48d06780cf77
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 13 May 2008 14:03:10 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:48d06780cf77 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.59 for routeflapper 1.0.1. | |
4 # | |
5 # Report bugs to <carl@five-ten-sg.com>. | |
6 # | |
7 # Copyright (C) 2003 Free Software Foundation, Inc. | |
8 # This configure script is free software; the Free Software Foundation | |
9 # gives unlimited permission to copy, distribute and modify it. | |
10 ## --------------------- ## | |
11 ## M4sh Initialization. ## | |
12 ## --------------------- ## | |
13 | |
14 # Be Bourne compatible | |
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 emulate sh | |
17 NULLCMD=: | |
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 # is contrary to our usage. Disable this feature. | |
20 alias -g '${1+"$@"}'='"$@"' | |
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22 set -o posix | |
23 fi | |
24 DUALCASE=1; export DUALCASE # for MKS sh | |
25 | |
26 # Support unset when possible. | |
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
28 as_unset=unset | |
29 else | |
30 as_unset=false | |
31 fi | |
32 | |
33 | |
34 # Work around bugs in pre-3.0 UWIN ksh. | |
35 $as_unset ENV MAIL MAILPATH | |
36 PS1='$ ' | |
37 PS2='> ' | |
38 PS4='+ ' | |
39 | |
40 # NLS nuisances. | |
41 for as_var in \ | |
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44 LC_TELEPHONE LC_TIME | |
45 do | |
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
47 eval $as_var=C; export $as_var | |
48 else | |
49 $as_unset $as_var | |
50 fi | |
51 done | |
52 | |
53 # Required to use basename. | |
54 if expr a : '\(a\)' >/dev/null 2>&1; then | |
55 as_expr=expr | |
56 else | |
57 as_expr=false | |
58 fi | |
59 | |
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
61 as_basename=basename | |
62 else | |
63 as_basename=false | |
64 fi | |
65 | |
66 | |
67 # Name of the executable. | |
68 as_me=`$as_basename "$0" || | |
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
70 X"$0" : 'X\(//\)$' \| \ | |
71 X"$0" : 'X\(/\)$' \| \ | |
72 . : '\(.\)' 2>/dev/null || | |
73 echo X/"$0" | | |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
75 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
76 /^X\/\(\/\).*/{ s//\1/; q; } | |
77 s/.*/./; q'` | |
78 | |
79 | |
80 # PATH needs CR, and LINENO needs CR and PATH. | |
81 # Avoid depending upon Character Ranges. | |
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
85 as_cr_digits='0123456789' | |
86 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
87 | |
88 # The user is always right. | |
89 if test "${PATH_SEPARATOR+set}" != set; then | |
90 echo "#! /bin/sh" >conf$$.sh | |
91 echo "exit 0" >>conf$$.sh | |
92 chmod +x conf$$.sh | |
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
94 PATH_SEPARATOR=';' | |
95 else | |
96 PATH_SEPARATOR=: | |
97 fi | |
98 rm -f conf$$.sh | |
99 fi | |
100 | |
101 | |
102 as_lineno_1=$LINENO | |
103 as_lineno_2=$LINENO | |
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
105 test "x$as_lineno_1" != "x$as_lineno_2" && | |
106 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
107 # Find who we are. Look in the path if we contain no path at all | |
108 # relative or not. | |
109 case $0 in | |
110 *[\\/]* ) as_myself=$0 ;; | |
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
112 for as_dir in $PATH | |
113 do | |
114 IFS=$as_save_IFS | |
115 test -z "$as_dir" && as_dir=. | |
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
117 done | |
118 | |
119 ;; | |
120 esac | |
121 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
122 # in which case we are not to be found in the path. | |
123 if test "x$as_myself" = x; then | |
124 as_myself=$0 | |
125 fi | |
126 if test ! -f "$as_myself"; then | |
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
128 { (exit 1); exit 1; }; } | |
129 fi | |
130 case $CONFIG_SHELL in | |
131 '') | |
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
134 do | |
135 IFS=$as_save_IFS | |
136 test -z "$as_dir" && as_dir=. | |
137 for as_base in sh bash ksh sh5; do | |
138 case $as_dir in | |
139 /*) | |
140 if ("$as_dir/$as_base" -c ' | |
141 as_lineno_1=$LINENO | |
142 as_lineno_2=$LINENO | |
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
144 test "x$as_lineno_1" != "x$as_lineno_2" && | |
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
148 CONFIG_SHELL=$as_dir/$as_base | |
149 export CONFIG_SHELL | |
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
151 fi;; | |
152 esac | |
153 done | |
154 done | |
155 ;; | |
156 esac | |
157 | |
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
159 # uniformly replaced by the line number. The first 'sed' inserts a | |
160 # line-number line before each line; the second 'sed' does the real | |
161 # work. The second script uses 'N' to pair each line-number line | |
162 # with the numbered line, and appends trailing '-' during | |
163 # substitution so that $LINENO is not a special case at line end. | |
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
166 sed '=' <$as_myself | | |
167 sed ' | |
168 N | |
169 s,$,-, | |
170 : loop | |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
172 t loop | |
173 s,-$,, | |
174 s,^['$as_cr_digits']*\n,, | |
175 ' >$as_me.lineno && | |
176 chmod +x $as_me.lineno || | |
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
178 { (exit 1); exit 1; }; } | |
179 | |
180 # Don't try to exec as it changes $[0], causing all sort of problems | |
181 # (the dirname of $[0] is not the place where we might find the | |
182 # original and so on. Autoconf is especially sensible to this). | |
183 . ./$as_me.lineno | |
184 # Exit status is that of the last command. | |
185 exit | |
186 } | |
187 | |
188 | |
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
190 *c*,-n*) ECHO_N= ECHO_C=' | |
191 ' ECHO_T=' ' ;; | |
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
194 esac | |
195 | |
196 if expr a : '\(a\)' >/dev/null 2>&1; then | |
197 as_expr=expr | |
198 else | |
199 as_expr=false | |
200 fi | |
201 | |
202 rm -f conf$$ conf$$.exe conf$$.file | |
203 echo >conf$$.file | |
204 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
205 # We could just check for DJGPP; but this test a) works b) is more generic | |
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
207 if test -f conf$$.exe; then | |
208 # Don't use ln at all; we don't have any links | |
209 as_ln_s='cp -p' | |
210 else | |
211 as_ln_s='ln -s' | |
212 fi | |
213 elif ln conf$$.file conf$$ 2>/dev/null; then | |
214 as_ln_s=ln | |
215 else | |
216 as_ln_s='cp -p' | |
217 fi | |
218 rm -f conf$$ conf$$.exe conf$$.file | |
219 | |
220 if mkdir -p . 2>/dev/null; then | |
221 as_mkdir_p=: | |
222 else | |
223 test -d ./-p && rmdir ./-p | |
224 as_mkdir_p=false | |
225 fi | |
226 | |
227 as_executable_p="test -f" | |
228 | |
229 # Sed expression to map a string onto a valid CPP name. | |
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
231 | |
232 # Sed expression to map a string onto a valid variable name. | |
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
234 | |
235 | |
236 # IFS | |
237 # We need space, tab and new line, in precisely that order. | |
238 as_nl=' | |
239 ' | |
240 IFS=" $as_nl" | |
241 | |
242 # CDPATH. | |
243 $as_unset CDPATH | |
244 | |
245 | |
246 # Name of the host. | |
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 # so uname gets run too. | |
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | |
251 exec 6>&1 | |
252 | |
253 # | |
254 # Initializations. | |
255 # | |
256 ac_default_prefix=/usr/local | |
257 ac_config_libobj_dir=. | |
258 cross_compiling=no | |
259 subdirs= | |
260 MFLAGS= | |
261 MAKEFLAGS= | |
262 SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | |
264 # Maximum number of lines to put in a shell here document. | |
265 # This variable seems obsolete. It should probably be removed, and | |
266 # only ac_max_sed_lines should be used. | |
267 : ${ac_max_here_lines=38} | |
268 | |
269 # Identity of this package. | |
270 PACKAGE_NAME='routeflapper' | |
271 PACKAGE_TARNAME='routeflapper' | |
272 PACKAGE_VERSION='1.0.1' | |
273 PACKAGE_STRING='routeflapper 1.0.1' | |
274 PACKAGE_BUGREPORT='carl@five-ten-sg.com' | |
275 | |
276 ac_unique_file="config.h.in" | |
277 # Factoring default headers for most tests. | |
278 ac_includes_default="\ | |
279 #include <stdio.h> | |
280 #if HAVE_SYS_TYPES_H | |
281 # include <sys/types.h> | |
282 #endif | |
283 #if HAVE_SYS_STAT_H | |
284 # include <sys/stat.h> | |
285 #endif | |
286 #if STDC_HEADERS | |
287 # include <stdlib.h> | |
288 # include <stddef.h> | |
289 #else | |
290 # if HAVE_STDLIB_H | |
291 # include <stdlib.h> | |
292 # endif | |
293 #endif | |
294 #if HAVE_STRING_H | |
295 # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 # include <memory.h> | |
297 # endif | |
298 # include <string.h> | |
299 #endif | |
300 #if HAVE_STRINGS_H | |
301 # include <strings.h> | |
302 #endif | |
303 #if HAVE_INTTYPES_H | |
304 # include <inttypes.h> | |
305 #else | |
306 # if HAVE_STDINT_H | |
307 # include <stdint.h> | |
308 # endif | |
309 #endif | |
310 #if HAVE_UNISTD_H | |
311 # include <unistd.h> | |
312 #endif" | |
313 | |
314 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar BASH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LTLIBOBJS' | |
315 ac_subst_files='' | |
316 | |
317 # Initialize some variables set by options. | |
318 ac_init_help= | |
319 ac_init_version=false | |
320 # The variables have the same names as the options, with | |
321 # dashes changed to underlines. | |
322 cache_file=/dev/null | |
323 exec_prefix=NONE | |
324 no_create= | |
325 no_recursion= | |
326 prefix=NONE | |
327 program_prefix=NONE | |
328 program_suffix=NONE | |
329 program_transform_name=s,x,x, | |
330 silent= | |
331 site= | |
332 srcdir= | |
333 verbose= | |
334 x_includes=NONE | |
335 x_libraries=NONE | |
336 | |
337 # Installation directory options. | |
338 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
339 # and all the variables that are supposed to be based on exec_prefix | |
340 # by default will actually change. | |
341 # Use braces instead of parens because sh, perl, etc. also accept them. | |
342 bindir='${exec_prefix}/bin' | |
343 sbindir='${exec_prefix}/sbin' | |
344 libexecdir='${exec_prefix}/libexec' | |
345 datadir='${prefix}/share' | |
346 sysconfdir='${prefix}/etc' | |
347 sharedstatedir='${prefix}/com' | |
348 localstatedir='${prefix}/var' | |
349 libdir='${exec_prefix}/lib' | |
350 includedir='${prefix}/include' | |
351 oldincludedir='/usr/include' | |
352 infodir='${prefix}/info' | |
353 mandir='${prefix}/man' | |
354 | |
355 ac_prev= | |
356 for ac_option | |
357 do | |
358 # If the previous option needs an argument, assign it. | |
359 if test -n "$ac_prev"; then | |
360 eval "$ac_prev=\$ac_option" | |
361 ac_prev= | |
362 continue | |
363 fi | |
364 | |
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
366 | |
367 # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | |
369 case $ac_option in | |
370 | |
371 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 ac_prev=bindir ;; | |
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
374 bindir=$ac_optarg ;; | |
375 | |
376 -build | --build | --buil | --bui | --bu) | |
377 ac_prev=build_alias ;; | |
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
379 build_alias=$ac_optarg ;; | |
380 | |
381 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 ac_prev=cache_file ;; | |
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
386 cache_file=$ac_optarg ;; | |
387 | |
388 --config-cache | -C) | |
389 cache_file=config.cache ;; | |
390 | |
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
392 ac_prev=datadir ;; | |
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
394 | --da=*) | |
395 datadir=$ac_optarg ;; | |
396 | |
397 -disable-* | --disable-*) | |
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
399 # Reject names that are not valid shell variable names. | |
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
402 { (exit 1); exit 1; }; } | |
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
404 eval "enable_$ac_feature=no" ;; | |
405 | |
406 -enable-* | --enable-*) | |
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
408 # Reject names that are not valid shell variable names. | |
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
411 { (exit 1); exit 1; }; } | |
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
413 case $ac_option in | |
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
415 *) ac_optarg=yes ;; | |
416 esac | |
417 eval "enable_$ac_feature='$ac_optarg'" ;; | |
418 | |
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
421 | --exec | --exe | --ex) | |
422 ac_prev=exec_prefix ;; | |
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
425 | --exec=* | --exe=* | --ex=*) | |
426 exec_prefix=$ac_optarg ;; | |
427 | |
428 -gas | --gas | --ga | --g) | |
429 # Obsolete; use --with-gas. | |
430 with_gas=yes ;; | |
431 | |
432 -help | --help | --hel | --he | -h) | |
433 ac_init_help=long ;; | |
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
435 ac_init_help=recursive ;; | |
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
437 ac_init_help=short ;; | |
438 | |
439 -host | --host | --hos | --ho) | |
440 ac_prev=host_alias ;; | |
441 -host=* | --host=* | --hos=* | --ho=*) | |
442 host_alias=$ac_optarg ;; | |
443 | |
444 -includedir | --includedir | --includedi | --included | --include \ | |
445 | --includ | --inclu | --incl | --inc) | |
446 ac_prev=includedir ;; | |
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
448 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
449 includedir=$ac_optarg ;; | |
450 | |
451 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 ac_prev=infodir ;; | |
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
454 infodir=$ac_optarg ;; | |
455 | |
456 -libdir | --libdir | --libdi | --libd) | |
457 ac_prev=libdir ;; | |
458 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
459 libdir=$ac_optarg ;; | |
460 | |
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
462 | --libexe | --libex | --libe) | |
463 ac_prev=libexecdir ;; | |
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
465 | --libexe=* | --libex=* | --libe=*) | |
466 libexecdir=$ac_optarg ;; | |
467 | |
468 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
469 | --localstate | --localstat | --localsta | --localst \ | |
470 | --locals | --local | --loca | --loc | --lo) | |
471 ac_prev=localstatedir ;; | |
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
475 localstatedir=$ac_optarg ;; | |
476 | |
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 ac_prev=mandir ;; | |
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
480 mandir=$ac_optarg ;; | |
481 | |
482 -nfp | --nfp | --nf) | |
483 # Obsolete; use --without-fp. | |
484 with_fp=no ;; | |
485 | |
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
487 | --no-cr | --no-c | -n) | |
488 no_create=yes ;; | |
489 | |
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
492 no_recursion=yes ;; | |
493 | |
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
496 | --oldin | --oldi | --old | --ol | --o) | |
497 ac_prev=oldincludedir ;; | |
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
501 oldincludedir=$ac_optarg ;; | |
502 | |
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 ac_prev=prefix ;; | |
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
506 prefix=$ac_optarg ;; | |
507 | |
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
509 | --program-pre | --program-pr | --program-p) | |
510 ac_prev=program_prefix ;; | |
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
513 program_prefix=$ac_optarg ;; | |
514 | |
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
516 | --program-suf | --program-su | --program-s) | |
517 ac_prev=program_suffix ;; | |
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
520 program_suffix=$ac_optarg ;; | |
521 | |
522 -program-transform-name | --program-transform-name \ | |
523 | --program-transform-nam | --program-transform-na \ | |
524 | --program-transform-n | --program-transform- \ | |
525 | --program-transform | --program-transfor \ | |
526 | --program-transfo | --program-transf \ | |
527 | --program-trans | --program-tran \ | |
528 | --progr-tra | --program-tr | --program-t) | |
529 ac_prev=program_transform_name ;; | |
530 -program-transform-name=* | --program-transform-name=* \ | |
531 | --program-transform-nam=* | --program-transform-na=* \ | |
532 | --program-transform-n=* | --program-transform-=* \ | |
533 | --program-transform=* | --program-transfor=* \ | |
534 | --program-transfo=* | --program-transf=* \ | |
535 | --program-trans=* | --program-tran=* \ | |
536 | --progr-tra=* | --program-tr=* | --program-t=*) | |
537 program_transform_name=$ac_optarg ;; | |
538 | |
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
540 | -silent | --silent | --silen | --sile | --sil) | |
541 silent=yes ;; | |
542 | |
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
544 ac_prev=sbindir ;; | |
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
546 | --sbi=* | --sb=*) | |
547 sbindir=$ac_optarg ;; | |
548 | |
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
551 | --sharedst | --shareds | --shared | --share | --shar \ | |
552 | --sha | --sh) | |
553 ac_prev=sharedstatedir ;; | |
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
557 | --sha=* | --sh=*) | |
558 sharedstatedir=$ac_optarg ;; | |
559 | |
560 -site | --site | --sit) | |
561 ac_prev=site ;; | |
562 -site=* | --site=* | --sit=*) | |
563 site=$ac_optarg ;; | |
564 | |
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
566 ac_prev=srcdir ;; | |
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
568 srcdir=$ac_optarg ;; | |
569 | |
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
571 | --syscon | --sysco | --sysc | --sys | --sy) | |
572 ac_prev=sysconfdir ;; | |
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
575 sysconfdir=$ac_optarg ;; | |
576 | |
577 -target | --target | --targe | --targ | --tar | --ta | --t) | |
578 ac_prev=target_alias ;; | |
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
580 target_alias=$ac_optarg ;; | |
581 | |
582 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 verbose=yes ;; | |
584 | |
585 -version | --version | --versio | --versi | --vers | -V) | |
586 ac_init_version=: ;; | |
587 | |
588 -with-* | --with-*) | |
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
590 # Reject names that are not valid shell variable names. | |
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
592 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
593 { (exit 1); exit 1; }; } | |
594 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
595 case $ac_option in | |
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
597 *) ac_optarg=yes ;; | |
598 esac | |
599 eval "with_$ac_package='$ac_optarg'" ;; | |
600 | |
601 -without-* | --without-*) | |
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
603 # Reject names that are not valid shell variable names. | |
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
605 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
606 { (exit 1); exit 1; }; } | |
607 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
608 eval "with_$ac_package=no" ;; | |
609 | |
610 --x) | |
611 # Obsolete; use --with-x. | |
612 with_x=yes ;; | |
613 | |
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
615 | --x-incl | --x-inc | --x-in | --x-i) | |
616 ac_prev=x_includes ;; | |
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
619 x_includes=$ac_optarg ;; | |
620 | |
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
623 ac_prev=x_libraries ;; | |
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
626 x_libraries=$ac_optarg ;; | |
627 | |
628 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
629 Try \`$0 --help' for more information." >&2 | |
630 { (exit 1); exit 1; }; } | |
631 ;; | |
632 | |
633 *=*) | |
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
635 # Reject names that are not valid shell variable names. | |
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
638 { (exit 1); exit 1; }; } | |
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
640 eval "$ac_envvar='$ac_optarg'" | |
641 export $ac_envvar ;; | |
642 | |
643 *) | |
644 # FIXME: should be removed in autoconf 3.0. | |
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
649 ;; | |
650 | |
651 esac | |
652 done | |
653 | |
654 if test -n "$ac_prev"; then | |
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
656 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
657 { (exit 1); exit 1; }; } | |
658 fi | |
659 | |
660 # Be sure to have absolute paths. | |
661 for ac_var in exec_prefix prefix | |
662 do | |
663 eval ac_val=$`echo $ac_var` | |
664 case $ac_val in | |
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
667 { (exit 1); exit 1; }; };; | |
668 esac | |
669 done | |
670 | |
671 # Be sure to have absolute paths. | |
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
673 localstatedir libdir includedir oldincludedir infodir mandir | |
674 do | |
675 eval ac_val=$`echo $ac_var` | |
676 case $ac_val in | |
677 [\\/$]* | ?:[\\/]* ) ;; | |
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
679 { (exit 1); exit 1; }; };; | |
680 esac | |
681 done | |
682 | |
683 # There might be people who depend on the old broken behavior: `$host' | |
684 # used to hold the argument of --host etc. | |
685 # FIXME: To remove some day. | |
686 build=$build_alias | |
687 host=$host_alias | |
688 target=$target_alias | |
689 | |
690 # FIXME: To remove some day. | |
691 if test "x$host_alias" != x; then | |
692 if test "x$build_alias" = x; then | |
693 cross_compiling=maybe | |
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
695 If a cross compiler is detected then cross compile mode will be used." >&2 | |
696 elif test "x$build_alias" != "x$host_alias"; then | |
697 cross_compiling=yes | |
698 fi | |
699 fi | |
700 | |
701 ac_tool_prefix= | |
702 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | |
704 test "$silent" = yes && exec 6>/dev/null | |
705 | |
706 | |
707 # Find the source files, if location was not specified. | |
708 if test -z "$srcdir"; then | |
709 ac_srcdir_defaulted=yes | |
710 # Try the directory containing this script, then its parent. | |
711 ac_confdir=`(dirname "$0") 2>/dev/null || | |
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
713 X"$0" : 'X\(//\)[^/]' \| \ | |
714 X"$0" : 'X\(//\)$' \| \ | |
715 X"$0" : 'X\(/\)' \| \ | |
716 . : '\(.\)' 2>/dev/null || | |
717 echo X"$0" | | |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
720 /^X\(\/\/\)$/{ s//\1/; q; } | |
721 /^X\(\/\).*/{ s//\1/; q; } | |
722 s/.*/./; q'` | |
723 srcdir=$ac_confdir | |
724 if test ! -r $srcdir/$ac_unique_file; then | |
725 srcdir=.. | |
726 fi | |
727 else | |
728 ac_srcdir_defaulted=no | |
729 fi | |
730 if test ! -r $srcdir/$ac_unique_file; then | |
731 if test "$ac_srcdir_defaulted" = yes; then | |
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
733 { (exit 1); exit 1; }; } | |
734 else | |
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
736 { (exit 1); exit 1; }; } | |
737 fi | |
738 fi | |
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
741 { (exit 1); exit 1; }; } | |
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
743 ac_env_build_alias_set=${build_alias+set} | |
744 ac_env_build_alias_value=$build_alias | |
745 ac_cv_env_build_alias_set=${build_alias+set} | |
746 ac_cv_env_build_alias_value=$build_alias | |
747 ac_env_host_alias_set=${host_alias+set} | |
748 ac_env_host_alias_value=$host_alias | |
749 ac_cv_env_host_alias_set=${host_alias+set} | |
750 ac_cv_env_host_alias_value=$host_alias | |
751 ac_env_target_alias_set=${target_alias+set} | |
752 ac_env_target_alias_value=$target_alias | |
753 ac_cv_env_target_alias_set=${target_alias+set} | |
754 ac_cv_env_target_alias_value=$target_alias | |
755 ac_env_CXX_set=${CXX+set} | |
756 ac_env_CXX_value=$CXX | |
757 ac_cv_env_CXX_set=${CXX+set} | |
758 ac_cv_env_CXX_value=$CXX | |
759 ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
760 ac_env_CXXFLAGS_value=$CXXFLAGS | |
761 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
762 ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
763 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
764 ac_env_LDFLAGS_value=$LDFLAGS | |
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
766 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 ac_env_CPPFLAGS_value=$CPPFLAGS | |
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
771 ac_env_CC_set=${CC+set} | |
772 ac_env_CC_value=$CC | |
773 ac_cv_env_CC_set=${CC+set} | |
774 ac_cv_env_CC_value=$CC | |
775 ac_env_CFLAGS_set=${CFLAGS+set} | |
776 ac_env_CFLAGS_value=$CFLAGS | |
777 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
778 ac_cv_env_CFLAGS_value=$CFLAGS | |
779 ac_env_CPP_set=${CPP+set} | |
780 ac_env_CPP_value=$CPP | |
781 ac_cv_env_CPP_set=${CPP+set} | |
782 ac_cv_env_CPP_value=$CPP | |
783 | |
784 # | |
785 # Report the --help message. | |
786 # | |
787 if test "$ac_init_help" = "long"; then | |
788 # Omit some internal or obsolete options to make the list less imposing. | |
789 # This message is too long to be a string in the A/UX 3.1 sh. | |
790 cat <<_ACEOF | |
791 \`configure' configures routeflapper 1.0.1 to adapt to many kinds of systems. | |
792 | |
793 Usage: $0 [OPTION]... [VAR=VALUE]... | |
794 | |
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
796 VAR=VALUE. See below for descriptions of some of the useful variables. | |
797 | |
798 Defaults for the options are specified in brackets. | |
799 | |
800 Configuration: | |
801 -h, --help display this help and exit | |
802 --help=short display options specific to this package | |
803 --help=recursive display the short help of all the included packages | |
804 -V, --version display version information and exit | |
805 -q, --quiet, --silent do not print \`checking...' messages | |
806 --cache-file=FILE cache test results in FILE [disabled] | |
807 -C, --config-cache alias for \`--cache-file=config.cache' | |
808 -n, --no-create do not create output files | |
809 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
810 | |
811 _ACEOF | |
812 | |
813 cat <<_ACEOF | |
814 Installation directories: | |
815 --prefix=PREFIX install architecture-independent files in PREFIX | |
816 [$ac_default_prefix] | |
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
818 [PREFIX] | |
819 | |
820 By default, \`make install' will install all the files in | |
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
823 for instance \`--prefix=\$HOME'. | |
824 | |
825 For better control, use the options below. | |
826 | |
827 Fine tuning of the installation directories: | |
828 --bindir=DIR user executables [EPREFIX/bin] | |
829 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
830 --libexecdir=DIR program executables [EPREFIX/libexec] | |
831 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
835 --libdir=DIR object code libraries [EPREFIX/lib] | |
836 --includedir=DIR C header files [PREFIX/include] | |
837 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
838 --infodir=DIR info documentation [PREFIX/info] | |
839 --mandir=DIR man documentation [PREFIX/man] | |
840 _ACEOF | |
841 | |
842 cat <<\_ACEOF | |
843 | |
844 Program names: | |
845 --program-prefix=PREFIX prepend PREFIX to installed program names | |
846 --program-suffix=SUFFIX append SUFFIX to installed program names | |
847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
848 | |
849 System types: | |
850 --build=BUILD configure for building on BUILD [guessed] | |
851 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
852 _ACEOF | |
853 fi | |
854 | |
855 if test -n "$ac_init_help"; then | |
856 case $ac_init_help in | |
857 short | recursive ) echo "Configuration of routeflapper 1.0.1:";; | |
858 esac | |
859 cat <<\_ACEOF | |
860 | |
861 Optional Features: | |
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
864 --disable-dependency-tracking speeds up one-time build | |
865 --enable-dependency-tracking do not reject slow dependency extractors | |
866 | |
867 Some influential environment variables: | |
868 CXX C++ compiler command | |
869 CXXFLAGS C++ compiler flags | |
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
871 nonstandard directory <lib dir> | |
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
873 headers in a nonstandard directory <include dir> | |
874 CC C compiler command | |
875 CFLAGS C compiler flags | |
876 CPP C preprocessor | |
877 | |
878 Use these variables to override the choices made by `configure' or to help | |
879 it to find libraries and programs with nonstandard names/locations. | |
880 | |
881 Report bugs to <carl@five-ten-sg.com>. | |
882 _ACEOF | |
883 fi | |
884 | |
885 if test "$ac_init_help" = "recursive"; then | |
886 # If there are subdirs, report their specific --help. | |
887 ac_popdir=`pwd` | |
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
889 test -d $ac_dir || continue | |
890 ac_builddir=. | |
891 | |
892 if test "$ac_dir" != .; then | |
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
894 # A "../" for each directory in $ac_dir_suffix. | |
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
896 else | |
897 ac_dir_suffix= ac_top_builddir= | |
898 fi | |
899 | |
900 case $srcdir in | |
901 .) # No --srcdir option. We are building in place. | |
902 ac_srcdir=. | |
903 if test -z "$ac_top_builddir"; then | |
904 ac_top_srcdir=. | |
905 else | |
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
907 fi ;; | |
908 [\\/]* | ?:[\\/]* ) # Absolute path. | |
909 ac_srcdir=$srcdir$ac_dir_suffix; | |
910 ac_top_srcdir=$srcdir ;; | |
911 *) # Relative path. | |
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
913 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
914 esac | |
915 | |
916 # Do not use `cd foo && pwd` to compute absolute paths, because | |
917 # the directories may not exist. | |
918 case `pwd` in | |
919 .) ac_abs_builddir="$ac_dir";; | |
920 *) | |
921 case "$ac_dir" in | |
922 .) ac_abs_builddir=`pwd`;; | |
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
924 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
925 esac;; | |
926 esac | |
927 case $ac_abs_builddir in | |
928 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
929 *) | |
930 case ${ac_top_builddir}. in | |
931 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
934 esac;; | |
935 esac | |
936 case $ac_abs_builddir in | |
937 .) ac_abs_srcdir=$ac_srcdir;; | |
938 *) | |
939 case $ac_srcdir in | |
940 .) ac_abs_srcdir=$ac_abs_builddir;; | |
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
943 esac;; | |
944 esac | |
945 case $ac_abs_builddir in | |
946 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
947 *) | |
948 case $ac_top_srcdir in | |
949 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
952 esac;; | |
953 esac | |
954 | |
955 cd $ac_dir | |
956 # Check for guested configure; otherwise get Cygnus style configure. | |
957 if test -f $ac_srcdir/configure.gnu; then | |
958 echo | |
959 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
960 elif test -f $ac_srcdir/configure; then | |
961 echo | |
962 $SHELL $ac_srcdir/configure --help=recursive | |
963 elif test -f $ac_srcdir/configure.ac || | |
964 test -f $ac_srcdir/configure.in; then | |
965 echo | |
966 $ac_configure --help | |
967 else | |
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
969 fi | |
970 cd $ac_popdir | |
971 done | |
972 fi | |
973 | |
974 test -n "$ac_init_help" && exit 0 | |
975 if $ac_init_version; then | |
976 cat <<\_ACEOF | |
977 routeflapper configure 1.0.1 | |
978 generated by GNU Autoconf 2.59 | |
979 | |
980 Copyright (C) 2003 Free Software Foundation, Inc. | |
981 This configure script is free software; the Free Software Foundation | |
982 gives unlimited permission to copy, distribute and modify it. | |
983 _ACEOF | |
984 exit 0 | |
985 fi | |
986 exec 5>config.log | |
987 cat >&5 <<_ACEOF | |
988 This file contains any messages produced by compilers while | |
989 running configure, to aid debugging if configure makes a mistake. | |
990 | |
991 It was created by routeflapper $as_me 1.0.1, which was | |
992 generated by GNU Autoconf 2.59. Invocation command line was | |
993 | |
994 $ $0 $@ | |
995 | |
996 _ACEOF | |
997 { | |
998 cat <<_ASUNAME | |
999 ## --------- ## | |
1000 ## Platform. ## | |
1001 ## --------- ## | |
1002 | |
1003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1004 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1005 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1006 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1007 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1008 | |
1009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1011 | |
1012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1015 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1019 | |
1020 _ASUNAME | |
1021 | |
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1023 for as_dir in $PATH | |
1024 do | |
1025 IFS=$as_save_IFS | |
1026 test -z "$as_dir" && as_dir=. | |
1027 echo "PATH: $as_dir" | |
1028 done | |
1029 | |
1030 } >&5 | |
1031 | |
1032 cat >&5 <<_ACEOF | |
1033 | |
1034 | |
1035 ## ----------- ## | |
1036 ## Core tests. ## | |
1037 ## ----------- ## | |
1038 | |
1039 _ACEOF | |
1040 | |
1041 | |
1042 # Keep a trace of the command line. | |
1043 # Strip out --no-create and --no-recursion so they do not pile up. | |
1044 # Strip out --silent because we don't want to record it for future runs. | |
1045 # Also quote any args containing shell meta-characters. | |
1046 # Make two passes to allow for proper duplicate-argument suppression. | |
1047 ac_configure_args= | |
1048 ac_configure_args0= | |
1049 ac_configure_args1= | |
1050 ac_sep= | |
1051 ac_must_keep_next=false | |
1052 for ac_pass in 1 2 | |
1053 do | |
1054 for ac_arg | |
1055 do | |
1056 case $ac_arg in | |
1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1059 | -silent | --silent | --silen | --sile | --sil) | |
1060 continue ;; | |
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1063 esac | |
1064 case $ac_pass in | |
1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1066 2) | |
1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1068 if test $ac_must_keep_next = true; then | |
1069 ac_must_keep_next=false # Got value, back to normal. | |
1070 else | |
1071 case $ac_arg in | |
1072 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1075 | -with-* | --with-* | -without-* | --without-* | --x) | |
1076 case "$ac_configure_args0 " in | |
1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1078 esac | |
1079 ;; | |
1080 -* ) ac_must_keep_next=true ;; | |
1081 esac | |
1082 fi | |
1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1084 # Get rid of the leading space. | |
1085 ac_sep=" " | |
1086 ;; | |
1087 esac | |
1088 done | |
1089 done | |
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1092 | |
1093 # When interrupted or exit'd, cleanup temporary files, and complete | |
1094 # config.log. We remove comments because anyway the quotes in there | |
1095 # would cause problems or look ugly. | |
1096 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1097 # such as our DU 5.0 friend, will then `close' the trap. | |
1098 trap 'exit_status=$? | |
1099 # Save into config.log some information that might help in debugging. | |
1100 { | |
1101 echo | |
1102 | |
1103 cat <<\_ASBOX | |
1104 ## ---------------- ## | |
1105 ## Cache variables. ## | |
1106 ## ---------------- ## | |
1107 _ASBOX | |
1108 echo | |
1109 # The following way of writing the cache mishandles newlines in values, | |
1110 { | |
1111 (set) 2>&1 | | |
1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1113 *ac_space=\ *) | |
1114 sed -n \ | |
1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1117 ;; | |
1118 *) | |
1119 sed -n \ | |
1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1121 ;; | |
1122 esac; | |
1123 } | |
1124 echo | |
1125 | |
1126 cat <<\_ASBOX | |
1127 ## ----------------- ## | |
1128 ## Output variables. ## | |
1129 ## ----------------- ## | |
1130 _ASBOX | |
1131 echo | |
1132 for ac_var in $ac_subst_vars | |
1133 do | |
1134 eval ac_val=$`echo $ac_var` | |
1135 echo "$ac_var='"'"'$ac_val'"'"'" | |
1136 done | sort | |
1137 echo | |
1138 | |
1139 if test -n "$ac_subst_files"; then | |
1140 cat <<\_ASBOX | |
1141 ## ------------- ## | |
1142 ## Output files. ## | |
1143 ## ------------- ## | |
1144 _ASBOX | |
1145 echo | |
1146 for ac_var in $ac_subst_files | |
1147 do | |
1148 eval ac_val=$`echo $ac_var` | |
1149 echo "$ac_var='"'"'$ac_val'"'"'" | |
1150 done | sort | |
1151 echo | |
1152 fi | |
1153 | |
1154 if test -s confdefs.h; then | |
1155 cat <<\_ASBOX | |
1156 ## ----------- ## | |
1157 ## confdefs.h. ## | |
1158 ## ----------- ## | |
1159 _ASBOX | |
1160 echo | |
1161 sed "/^$/d" confdefs.h | sort | |
1162 echo | |
1163 fi | |
1164 test "$ac_signal" != 0 && | |
1165 echo "$as_me: caught signal $ac_signal" | |
1166 echo "$as_me: exit $exit_status" | |
1167 } >&5 | |
1168 rm -f core *.core && | |
1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1170 exit $exit_status | |
1171 ' 0 | |
1172 for ac_signal in 1 2 13 15; do | |
1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1174 done | |
1175 ac_signal=0 | |
1176 | |
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1178 rm -rf conftest* confdefs.h | |
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1180 echo >confdefs.h | |
1181 | |
1182 # Predefined preprocessor variables. | |
1183 | |
1184 cat >>confdefs.h <<_ACEOF | |
1185 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1186 _ACEOF | |
1187 | |
1188 | |
1189 cat >>confdefs.h <<_ACEOF | |
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1191 _ACEOF | |
1192 | |
1193 | |
1194 cat >>confdefs.h <<_ACEOF | |
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1196 _ACEOF | |
1197 | |
1198 | |
1199 cat >>confdefs.h <<_ACEOF | |
1200 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1201 _ACEOF | |
1202 | |
1203 | |
1204 cat >>confdefs.h <<_ACEOF | |
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1206 _ACEOF | |
1207 | |
1208 | |
1209 # Let the site file select an alternate cache file if it wants to. | |
1210 # Prefer explicitly selected file to automatically selected ones. | |
1211 if test -z "$CONFIG_SITE"; then | |
1212 if test "x$prefix" != xNONE; then | |
1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1214 else | |
1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1216 fi | |
1217 fi | |
1218 for ac_site_file in $CONFIG_SITE; do | |
1219 if test -r "$ac_site_file"; then | |
1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1221 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1222 sed 's/^/| /' "$ac_site_file" >&5 | |
1223 . "$ac_site_file" | |
1224 fi | |
1225 done | |
1226 | |
1227 if test -r "$cache_file"; then | |
1228 # Some versions of bash will fail to source /dev/null (special | |
1229 # files actually), so we avoid doing that. | |
1230 if test -f "$cache_file"; then | |
1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1232 echo "$as_me: loading cache $cache_file" >&6;} | |
1233 case $cache_file in | |
1234 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1235 *) . ./$cache_file;; | |
1236 esac | |
1237 fi | |
1238 else | |
1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1240 echo "$as_me: creating cache $cache_file" >&6;} | |
1241 >$cache_file | |
1242 fi | |
1243 | |
1244 # Check that the precious variables saved in the cache have kept the same | |
1245 # value. | |
1246 ac_cache_corrupted=false | |
1247 for ac_var in `(set) 2>&1 | | |
1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1250 eval ac_new_set=\$ac_env_${ac_var}_set | |
1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1252 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1253 case $ac_old_set,$ac_new_set in | |
1254 set,) | |
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1257 ac_cache_corrupted=: ;; | |
1258 ,set) | |
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1261 ac_cache_corrupted=: ;; | |
1262 ,);; | |
1263 *) | |
1264 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1266 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1268 echo "$as_me: former value: $ac_old_val" >&2;} | |
1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1270 echo "$as_me: current value: $ac_new_val" >&2;} | |
1271 ac_cache_corrupted=: | |
1272 fi;; | |
1273 esac | |
1274 # Pass precious variables to config.status. | |
1275 if test "$ac_new_set" = set; then | |
1276 case $ac_new_val in | |
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1279 *) ac_arg=$ac_var=$ac_new_val ;; | |
1280 esac | |
1281 case " $ac_configure_args " in | |
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1284 esac | |
1285 fi | |
1286 done | |
1287 if $ac_cache_corrupted; then | |
1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1291 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1292 { (exit 1); exit 1; }; } | |
1293 fi | |
1294 | |
1295 ac_ext=c | |
1296 ac_cpp='$CPP $CPPFLAGS' | |
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1300 | |
1301 | |
1302 | |
1303 | |
1304 | |
1305 | |
1306 | |
1307 | |
1308 | |
1309 | |
1310 | |
1311 | |
1312 | |
1313 | |
1314 | |
1315 | |
1316 | |
1317 | |
1318 | |
1319 | |
1320 | |
1321 | |
1322 | |
1323 | |
1324 | |
1325 | |
1326 | |
1327 | |
1328 ac_config_headers="$ac_config_headers config.h" | |
1329 | |
1330 | |
1331 am__api_version="1.9" | |
1332 ac_aux_dir= | |
1333 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1334 if test -f $ac_dir/install-sh; then | |
1335 ac_aux_dir=$ac_dir | |
1336 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1337 break | |
1338 elif test -f $ac_dir/install.sh; then | |
1339 ac_aux_dir=$ac_dir | |
1340 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1341 break | |
1342 elif test -f $ac_dir/shtool; then | |
1343 ac_aux_dir=$ac_dir | |
1344 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1345 break | |
1346 fi | |
1347 done | |
1348 if test -z "$ac_aux_dir"; then | |
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1350 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1351 { (exit 1); exit 1; }; } | |
1352 fi | |
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1356 | |
1357 # Find a good install program. We prefer a C program (faster), | |
1358 # so one script is as good as another. But avoid the broken or | |
1359 # incompatible versions: | |
1360 # SysV /etc/install, /usr/sbin/install | |
1361 # SunOS /usr/etc/install | |
1362 # IRIX /sbin/install | |
1363 # AIX /bin/install | |
1364 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1368 # OS/2's system install, which has a completely different semantic | |
1369 # ./install, which can be erroneously created by make from ./install.sh. | |
1370 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1371 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1372 if test -z "$INSTALL"; then | |
1373 if test "${ac_cv_path_install+set}" = set; then | |
1374 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1375 else | |
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1377 for as_dir in $PATH | |
1378 do | |
1379 IFS=$as_save_IFS | |
1380 test -z "$as_dir" && as_dir=. | |
1381 # Account for people who put trailing slashes in PATH elements. | |
1382 case $as_dir/ in | |
1383 ./ | .// | /cC/* | \ | |
1384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1385 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1386 /usr/ucb/* ) ;; | |
1387 *) | |
1388 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1389 # Don't use installbsd from OSF since it installs stuff as root | |
1390 # by default. | |
1391 for ac_prog in ginstall scoinst install; do | |
1392 for ac_exec_ext in '' $ac_executable_extensions; do | |
1393 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1394 if test $ac_prog = install && | |
1395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1396 # AIX install. It has an incompatible calling convention. | |
1397 : | |
1398 elif test $ac_prog = install && | |
1399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1400 # program-specific install script used by HP pwplus--don't use. | |
1401 : | |
1402 else | |
1403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1404 break 3 | |
1405 fi | |
1406 fi | |
1407 done | |
1408 done | |
1409 ;; | |
1410 esac | |
1411 done | |
1412 | |
1413 | |
1414 fi | |
1415 if test "${ac_cv_path_install+set}" = set; then | |
1416 INSTALL=$ac_cv_path_install | |
1417 else | |
1418 # As a last resort, use the slow shell script. We don't cache a | |
1419 # path for INSTALL within a source directory, because that will | |
1420 # break other packages using the cache if that directory is | |
1421 # removed, or if the path is relative. | |
1422 INSTALL=$ac_install_sh | |
1423 fi | |
1424 fi | |
1425 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1426 echo "${ECHO_T}$INSTALL" >&6 | |
1427 | |
1428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1429 # It thinks the first close brace ends the variable substitution. | |
1430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1431 | |
1432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1433 | |
1434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1435 | |
1436 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1437 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1438 # Just in case | |
1439 sleep 1 | |
1440 echo timestamp > conftest.file | |
1441 # Do `set' in a subshell so we don't clobber the current shell's | |
1442 # arguments. Must try -L first in case configure is actually a | |
1443 # symlink; some systems play weird games with the mod time of symlinks | |
1444 # (eg FreeBSD returns the mod time of the symlink's containing | |
1445 # directory). | |
1446 if ( | |
1447 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1448 if test "$*" = "X"; then | |
1449 # -L didn't work. | |
1450 set X `ls -t $srcdir/configure conftest.file` | |
1451 fi | |
1452 rm -f conftest.file | |
1453 if test "$*" != "X $srcdir/configure conftest.file" \ | |
1454 && test "$*" != "X conftest.file $srcdir/configure"; then | |
1455 | |
1456 # If neither matched, then we have a broken ls. This can happen | |
1457 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1458 # broken ls alias from the environment. This has actually | |
1459 # happened. Such a system could not be considered "sane". | |
1460 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1461 alias in your environment" >&5 | |
1462 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1463 alias in your environment" >&2;} | |
1464 { (exit 1); exit 1; }; } | |
1465 fi | |
1466 | |
1467 test "$2" = conftest.file | |
1468 ) | |
1469 then | |
1470 # Ok. | |
1471 : | |
1472 else | |
1473 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1474 Check your system clock" >&5 | |
1475 echo "$as_me: error: newly created file is older than distributed files! | |
1476 Check your system clock" >&2;} | |
1477 { (exit 1); exit 1; }; } | |
1478 fi | |
1479 echo "$as_me:$LINENO: result: yes" >&5 | |
1480 echo "${ECHO_T}yes" >&6 | |
1481 test "$program_prefix" != NONE && | |
1482 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1483 # Use a double $ so make ignores it. | |
1484 test "$program_suffix" != NONE && | |
1485 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1486 # Double any \ or $. echo might interpret backslashes. | |
1487 # By default was `s,x,x', remove it if useless. | |
1488 cat <<\_ACEOF >conftest.sed | |
1489 s/[\\$]/&&/g;s/;s,x,x,$// | |
1490 _ACEOF | |
1491 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1492 rm conftest.sed | |
1493 | |
1494 # expand $ac_aux_dir to an absolute path | |
1495 am_aux_dir=`cd $ac_aux_dir && pwd` | |
1496 | |
1497 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1498 # Use eval to expand $SHELL | |
1499 if eval "$MISSING --run true"; then | |
1500 am_missing_run="$MISSING --run " | |
1501 else | |
1502 am_missing_run= | |
1503 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1504 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1505 fi | |
1506 | |
1507 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1508 # We used to keeping the `.' as first argument, in order to | |
1509 # allow $(mkdir_p) to be used without argument. As in | |
1510 # $(mkdir_p) $(somedir) | |
1511 # where $(somedir) is conditionally defined. However this is wrong | |
1512 # for two reasons: | |
1513 # 1. if the package is installed by a user who cannot write `.' | |
1514 # make install will fail, | |
1515 # 2. the above comment should most certainly read | |
1516 # $(mkdir_p) $(DESTDIR)$(somedir) | |
1517 # so it does not work when $(somedir) is undefined and | |
1518 # $(DESTDIR) is not. | |
1519 # To support the latter case, we have to write | |
1520 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1521 # so the `.' trick is pointless. | |
1522 mkdir_p='mkdir -p --' | |
1523 else | |
1524 # On NextStep and OpenStep, the `mkdir' command does not | |
1525 # recognize any option. It will interpret all options as | |
1526 # directories to create, and then abort because `.' already | |
1527 # exists. | |
1528 for d in ./-p ./--version; | |
1529 do | |
1530 test -d $d && rmdir $d | |
1531 done | |
1532 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1533 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1534 mkdir_p='$(mkinstalldirs)' | |
1535 else | |
1536 mkdir_p='$(install_sh) -d' | |
1537 fi | |
1538 fi | |
1539 | |
1540 for ac_prog in gawk mawk nawk awk | |
1541 do | |
1542 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1543 set dummy $ac_prog; ac_word=$2 | |
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1546 if test "${ac_cv_prog_AWK+set}" = set; then | |
1547 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1548 else | |
1549 if test -n "$AWK"; then | |
1550 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1551 else | |
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1553 for as_dir in $PATH | |
1554 do | |
1555 IFS=$as_save_IFS | |
1556 test -z "$as_dir" && as_dir=. | |
1557 for ac_exec_ext in '' $ac_executable_extensions; do | |
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1559 ac_cv_prog_AWK="$ac_prog" | |
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1561 break 2 | |
1562 fi | |
1563 done | |
1564 done | |
1565 | |
1566 fi | |
1567 fi | |
1568 AWK=$ac_cv_prog_AWK | |
1569 if test -n "$AWK"; then | |
1570 echo "$as_me:$LINENO: result: $AWK" >&5 | |
1571 echo "${ECHO_T}$AWK" >&6 | |
1572 else | |
1573 echo "$as_me:$LINENO: result: no" >&5 | |
1574 echo "${ECHO_T}no" >&6 | |
1575 fi | |
1576 | |
1577 test -n "$AWK" && break | |
1578 done | |
1579 | |
1580 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1581 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1582 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1583 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1584 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1585 else | |
1586 cat >conftest.make <<\_ACEOF | |
1587 all: | |
1588 @echo 'ac_maketemp="$(MAKE)"' | |
1589 _ACEOF | |
1590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1591 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1592 if test -n "$ac_maketemp"; then | |
1593 eval ac_cv_prog_make_${ac_make}_set=yes | |
1594 else | |
1595 eval ac_cv_prog_make_${ac_make}_set=no | |
1596 fi | |
1597 rm -f conftest.make | |
1598 fi | |
1599 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1600 echo "$as_me:$LINENO: result: yes" >&5 | |
1601 echo "${ECHO_T}yes" >&6 | |
1602 SET_MAKE= | |
1603 else | |
1604 echo "$as_me:$LINENO: result: no" >&5 | |
1605 echo "${ECHO_T}no" >&6 | |
1606 SET_MAKE="MAKE=${MAKE-make}" | |
1607 fi | |
1608 | |
1609 rm -rf .tst 2>/dev/null | |
1610 mkdir .tst 2>/dev/null | |
1611 if test -d .tst; then | |
1612 am__leading_dot=. | |
1613 else | |
1614 am__leading_dot=_ | |
1615 fi | |
1616 rmdir .tst 2>/dev/null | |
1617 | |
1618 # test to see if srcdir already configured | |
1619 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1620 test -f $srcdir/config.status; then | |
1621 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1622 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1623 { (exit 1); exit 1; }; } | |
1624 fi | |
1625 | |
1626 # test whether we have cygpath | |
1627 if test -z "$CYGPATH_W"; then | |
1628 if (cygpath --version) >/dev/null 2>/dev/null; then | |
1629 CYGPATH_W='cygpath -w' | |
1630 else | |
1631 CYGPATH_W=echo | |
1632 fi | |
1633 fi | |
1634 | |
1635 | |
1636 # Define the identity of the package. | |
1637 PACKAGE=$PACKAGE_NAME | |
1638 VERSION=$PACKAGE_VERSION | |
1639 | |
1640 | |
1641 cat >>confdefs.h <<_ACEOF | |
1642 #define PACKAGE "$PACKAGE" | |
1643 _ACEOF | |
1644 | |
1645 | |
1646 cat >>confdefs.h <<_ACEOF | |
1647 #define VERSION "$VERSION" | |
1648 _ACEOF | |
1649 | |
1650 # Some tools Automake needs. | |
1651 | |
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1653 | |
1654 | |
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1656 | |
1657 | |
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1659 | |
1660 | |
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1662 | |
1663 | |
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1665 | |
1666 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1667 | |
1668 # Installed binaries are usually stripped using `strip' when the user | |
1669 # run `make install-strip'. However `strip' might not be the right | |
1670 # tool to use in cross-compilation environments, therefore Automake | |
1671 # will honor the `STRIP' environment variable to overrule this program. | |
1672 if test "$cross_compiling" != no; then | |
1673 if test -n "$ac_tool_prefix"; then | |
1674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1675 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1678 if test "${ac_cv_prog_STRIP+set}" = set; then | |
1679 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1680 else | |
1681 if test -n "$STRIP"; then | |
1682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1683 else | |
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1685 for as_dir in $PATH | |
1686 do | |
1687 IFS=$as_save_IFS | |
1688 test -z "$as_dir" && as_dir=. | |
1689 for ac_exec_ext in '' $ac_executable_extensions; do | |
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1691 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1693 break 2 | |
1694 fi | |
1695 done | |
1696 done | |
1697 | |
1698 fi | |
1699 fi | |
1700 STRIP=$ac_cv_prog_STRIP | |
1701 if test -n "$STRIP"; then | |
1702 echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1703 echo "${ECHO_T}$STRIP" >&6 | |
1704 else | |
1705 echo "$as_me:$LINENO: result: no" >&5 | |
1706 echo "${ECHO_T}no" >&6 | |
1707 fi | |
1708 | |
1709 fi | |
1710 if test -z "$ac_cv_prog_STRIP"; then | |
1711 ac_ct_STRIP=$STRIP | |
1712 # Extract the first word of "strip", so it can be a program name with args. | |
1713 set dummy strip; ac_word=$2 | |
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1716 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1717 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1718 else | |
1719 if test -n "$ac_ct_STRIP"; then | |
1720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1721 else | |
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1723 for as_dir in $PATH | |
1724 do | |
1725 IFS=$as_save_IFS | |
1726 test -z "$as_dir" && as_dir=. | |
1727 for ac_exec_ext in '' $ac_executable_extensions; do | |
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1729 ac_cv_prog_ac_ct_STRIP="strip" | |
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1731 break 2 | |
1732 fi | |
1733 done | |
1734 done | |
1735 | |
1736 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1737 fi | |
1738 fi | |
1739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1740 if test -n "$ac_ct_STRIP"; then | |
1741 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1742 echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1743 else | |
1744 echo "$as_me:$LINENO: result: no" >&5 | |
1745 echo "${ECHO_T}no" >&6 | |
1746 fi | |
1747 | |
1748 STRIP=$ac_ct_STRIP | |
1749 else | |
1750 STRIP="$ac_cv_prog_STRIP" | |
1751 fi | |
1752 | |
1753 fi | |
1754 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1755 | |
1756 # We need awk for the "check" target. The system "awk" is bad on | |
1757 # some platforms. | |
1758 # Always define AMTAR for backward compatibility. | |
1759 | |
1760 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1761 | |
1762 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1763 | |
1764 | |
1765 | |
1766 | |
1767 | |
1768 | |
1769 # Checks for programs. | |
1770 for ac_prog in bash | |
1771 do | |
1772 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1773 set dummy $ac_prog; ac_word=$2 | |
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1776 if test "${ac_cv_path_BASH+set}" = set; then | |
1777 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1778 else | |
1779 case $BASH in | |
1780 [\\/]* | ?:[\\/]*) | |
1781 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. | |
1782 ;; | |
1783 *) | |
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1785 for as_dir in $PATH | |
1786 do | |
1787 IFS=$as_save_IFS | |
1788 test -z "$as_dir" && as_dir=. | |
1789 for ac_exec_ext in '' $ac_executable_extensions; do | |
1790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1791 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" | |
1792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1793 break 2 | |
1794 fi | |
1795 done | |
1796 done | |
1797 | |
1798 ;; | |
1799 esac | |
1800 fi | |
1801 BASH=$ac_cv_path_BASH | |
1802 | |
1803 if test -n "$BASH"; then | |
1804 echo "$as_me:$LINENO: result: $BASH" >&5 | |
1805 echo "${ECHO_T}$BASH" >&6 | |
1806 else | |
1807 echo "$as_me:$LINENO: result: no" >&5 | |
1808 echo "${ECHO_T}no" >&6 | |
1809 fi | |
1810 | |
1811 test -n "$BASH" && break | |
1812 done | |
1813 | |
1814 if test "x$BASH" = x ; then | |
1815 { { echo "$as_me:$LINENO: error: bash required for init script" >&5 | |
1816 echo "$as_me: error: bash required for init script" >&2;} | |
1817 { (exit 1); exit 1; }; } | |
1818 fi | |
1819 ac_ext=cc | |
1820 ac_cpp='$CXXCPP $CPPFLAGS' | |
1821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1824 if test -n "$ac_tool_prefix"; then | |
1825 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1826 do | |
1827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1831 if test "${ac_cv_prog_CXX+set}" = set; then | |
1832 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1833 else | |
1834 if test -n "$CXX"; then | |
1835 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1836 else | |
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1838 for as_dir in $PATH | |
1839 do | |
1840 IFS=$as_save_IFS | |
1841 test -z "$as_dir" && as_dir=. | |
1842 for ac_exec_ext in '' $ac_executable_extensions; do | |
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1846 break 2 | |
1847 fi | |
1848 done | |
1849 done | |
1850 | |
1851 fi | |
1852 fi | |
1853 CXX=$ac_cv_prog_CXX | |
1854 if test -n "$CXX"; then | |
1855 echo "$as_me:$LINENO: result: $CXX" >&5 | |
1856 echo "${ECHO_T}$CXX" >&6 | |
1857 else | |
1858 echo "$as_me:$LINENO: result: no" >&5 | |
1859 echo "${ECHO_T}no" >&6 | |
1860 fi | |
1861 | |
1862 test -n "$CXX" && break | |
1863 done | |
1864 fi | |
1865 if test -z "$CXX"; then | |
1866 ac_ct_CXX=$CXX | |
1867 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1868 do | |
1869 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1870 set dummy $ac_prog; ac_word=$2 | |
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1873 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
1874 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1875 else | |
1876 if test -n "$ac_ct_CXX"; then | |
1877 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1878 else | |
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1880 for as_dir in $PATH | |
1881 do | |
1882 IFS=$as_save_IFS | |
1883 test -z "$as_dir" && as_dir=. | |
1884 for ac_exec_ext in '' $ac_executable_extensions; do | |
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1886 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1888 break 2 | |
1889 fi | |
1890 done | |
1891 done | |
1892 | |
1893 fi | |
1894 fi | |
1895 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
1896 if test -n "$ac_ct_CXX"; then | |
1897 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
1898 echo "${ECHO_T}$ac_ct_CXX" >&6 | |
1899 else | |
1900 echo "$as_me:$LINENO: result: no" >&5 | |
1901 echo "${ECHO_T}no" >&6 | |
1902 fi | |
1903 | |
1904 test -n "$ac_ct_CXX" && break | |
1905 done | |
1906 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
1907 | |
1908 CXX=$ac_ct_CXX | |
1909 fi | |
1910 | |
1911 | |
1912 # Provide some information about the compiler. | |
1913 echo "$as_me:$LINENO:" \ | |
1914 "checking for C++ compiler version" >&5 | |
1915 ac_compiler=`set X $ac_compile; echo $2` | |
1916 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1917 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1918 ac_status=$? | |
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1920 (exit $ac_status); } | |
1921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1922 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1923 ac_status=$? | |
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1925 (exit $ac_status); } | |
1926 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1927 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1928 ac_status=$? | |
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1930 (exit $ac_status); } | |
1931 | |
1932 cat >conftest.$ac_ext <<_ACEOF | |
1933 /* confdefs.h. */ | |
1934 _ACEOF | |
1935 cat confdefs.h >>conftest.$ac_ext | |
1936 cat >>conftest.$ac_ext <<_ACEOF | |
1937 /* end confdefs.h. */ | |
1938 | |
1939 int | |
1940 main () | |
1941 { | |
1942 | |
1943 ; | |
1944 return 0; | |
1945 } | |
1946 _ACEOF | |
1947 ac_clean_files_save=$ac_clean_files | |
1948 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1949 # Try to create an executable without -o first, disregard a.out. | |
1950 # It will help us diagnose broken compilers, and finding out an intuition | |
1951 # of exeext. | |
1952 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 | |
1953 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 | |
1954 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1955 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1956 (eval $ac_link_default) 2>&5 | |
1957 ac_status=$? | |
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1959 (exit $ac_status); }; then | |
1960 # Find the output, starting from the most likely. This scheme is | |
1961 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1962 # resort. | |
1963 | |
1964 # Be careful to initialize this variable, since it used to be cached. | |
1965 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1966 ac_cv_exeext= | |
1967 # b.out is created by i960 compilers. | |
1968 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1969 do | |
1970 test -f "$ac_file" || continue | |
1971 case $ac_file in | |
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1973 ;; | |
1974 conftest.$ac_ext ) | |
1975 # This is the source file. | |
1976 ;; | |
1977 [ab].out ) | |
1978 # We found the default executable, but exeext='' is most | |
1979 # certainly right. | |
1980 break;; | |
1981 *.* ) | |
1982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1983 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1984 # but it would be cool to find out if it's true. Does anybody | |
1985 # maintain Libtool? --akim. | |
1986 export ac_cv_exeext | |
1987 break;; | |
1988 * ) | |
1989 break;; | |
1990 esac | |
1991 done | |
1992 else | |
1993 echo "$as_me: failed program was:" >&5 | |
1994 sed 's/^/| /' conftest.$ac_ext >&5 | |
1995 | |
1996 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables | |
1997 See \`config.log' for more details." >&5 | |
1998 echo "$as_me: error: C++ compiler cannot create executables | |
1999 See \`config.log' for more details." >&2;} | |
2000 { (exit 77); exit 77; }; } | |
2001 fi | |
2002 | |
2003 ac_exeext=$ac_cv_exeext | |
2004 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2005 echo "${ECHO_T}$ac_file" >&6 | |
2006 | |
2007 # Check the compiler produces executables we can run. If not, either | |
2008 # the compiler is broken, or we cross compile. | |
2009 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 | |
2010 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | |
2011 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2012 # If not cross compiling, check that we can run a simple program. | |
2013 if test "$cross_compiling" != yes; then | |
2014 if { ac_try='./$ac_file' | |
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2016 (eval $ac_try) 2>&5 | |
2017 ac_status=$? | |
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2019 (exit $ac_status); }; }; then | |
2020 cross_compiling=no | |
2021 else | |
2022 if test "$cross_compiling" = maybe; then | |
2023 cross_compiling=yes | |
2024 else | |
2025 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. | |
2026 If you meant to cross compile, use \`--host'. | |
2027 See \`config.log' for more details." >&5 | |
2028 echo "$as_me: error: cannot run C++ compiled programs. | |
2029 If you meant to cross compile, use \`--host'. | |
2030 See \`config.log' for more details." >&2;} | |
2031 { (exit 1); exit 1; }; } | |
2032 fi | |
2033 fi | |
2034 fi | |
2035 echo "$as_me:$LINENO: result: yes" >&5 | |
2036 echo "${ECHO_T}yes" >&6 | |
2037 | |
2038 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2039 ac_clean_files=$ac_clean_files_save | |
2040 # Check the compiler produces executables we can run. If not, either | |
2041 # the compiler is broken, or we cross compile. | |
2042 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2043 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2044 echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2045 echo "${ECHO_T}$cross_compiling" >&6 | |
2046 | |
2047 echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2048 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2050 (eval $ac_link) 2>&5 | |
2051 ac_status=$? | |
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2053 (exit $ac_status); }; then | |
2054 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2056 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2057 # `rm'. | |
2058 for ac_file in conftest.exe conftest conftest.*; do | |
2059 test -f "$ac_file" || continue | |
2060 case $ac_file in | |
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2063 export ac_cv_exeext | |
2064 break;; | |
2065 * ) break;; | |
2066 esac | |
2067 done | |
2068 else | |
2069 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2070 See \`config.log' for more details." >&5 | |
2071 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2072 See \`config.log' for more details." >&2;} | |
2073 { (exit 1); exit 1; }; } | |
2074 fi | |
2075 | |
2076 rm -f conftest$ac_cv_exeext | |
2077 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2078 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2079 | |
2080 rm -f conftest.$ac_ext | |
2081 EXEEXT=$ac_cv_exeext | |
2082 ac_exeext=$EXEEXT | |
2083 echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2084 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2085 if test "${ac_cv_objext+set}" = set; then | |
2086 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2087 else | |
2088 cat >conftest.$ac_ext <<_ACEOF | |
2089 /* confdefs.h. */ | |
2090 _ACEOF | |
2091 cat confdefs.h >>conftest.$ac_ext | |
2092 cat >>conftest.$ac_ext <<_ACEOF | |
2093 /* end confdefs.h. */ | |
2094 | |
2095 int | |
2096 main () | |
2097 { | |
2098 | |
2099 ; | |
2100 return 0; | |
2101 } | |
2102 _ACEOF | |
2103 rm -f conftest.o conftest.obj | |
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2105 (eval $ac_compile) 2>&5 | |
2106 ac_status=$? | |
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2108 (exit $ac_status); }; then | |
2109 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2110 case $ac_file in | |
2111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2113 break;; | |
2114 esac | |
2115 done | |
2116 else | |
2117 echo "$as_me: failed program was:" >&5 | |
2118 sed 's/^/| /' conftest.$ac_ext >&5 | |
2119 | |
2120 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2121 See \`config.log' for more details." >&5 | |
2122 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2123 See \`config.log' for more details." >&2;} | |
2124 { (exit 1); exit 1; }; } | |
2125 fi | |
2126 | |
2127 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2128 fi | |
2129 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2130 echo "${ECHO_T}$ac_cv_objext" >&6 | |
2131 OBJEXT=$ac_cv_objext | |
2132 ac_objext=$OBJEXT | |
2133 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2134 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
2135 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2136 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2137 else | |
2138 cat >conftest.$ac_ext <<_ACEOF | |
2139 /* confdefs.h. */ | |
2140 _ACEOF | |
2141 cat confdefs.h >>conftest.$ac_ext | |
2142 cat >>conftest.$ac_ext <<_ACEOF | |
2143 /* end confdefs.h. */ | |
2144 | |
2145 int | |
2146 main () | |
2147 { | |
2148 #ifndef __GNUC__ | |
2149 choke me | |
2150 #endif | |
2151 | |
2152 ; | |
2153 return 0; | |
2154 } | |
2155 _ACEOF | |
2156 rm -f conftest.$ac_objext | |
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2158 (eval $ac_compile) 2>conftest.er1 | |
2159 ac_status=$? | |
2160 grep -v '^ *+' conftest.er1 >conftest.err | |
2161 rm -f conftest.er1 | |
2162 cat conftest.err >&5 | |
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2164 (exit $ac_status); } && | |
2165 { ac_try='test -z "$ac_cxx_werror_flag" | |
2166 || test ! -s conftest.err' | |
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2168 (eval $ac_try) 2>&5 | |
2169 ac_status=$? | |
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2171 (exit $ac_status); }; } && | |
2172 { ac_try='test -s conftest.$ac_objext' | |
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2174 (eval $ac_try) 2>&5 | |
2175 ac_status=$? | |
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 (exit $ac_status); }; }; then | |
2178 ac_compiler_gnu=yes | |
2179 else | |
2180 echo "$as_me: failed program was:" >&5 | |
2181 sed 's/^/| /' conftest.$ac_ext >&5 | |
2182 | |
2183 ac_compiler_gnu=no | |
2184 fi | |
2185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2186 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2187 | |
2188 fi | |
2189 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2190 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
2191 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2192 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2193 ac_save_CXXFLAGS=$CXXFLAGS | |
2194 CXXFLAGS="-g" | |
2195 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2196 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
2197 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2198 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2199 else | |
2200 cat >conftest.$ac_ext <<_ACEOF | |
2201 /* confdefs.h. */ | |
2202 _ACEOF | |
2203 cat confdefs.h >>conftest.$ac_ext | |
2204 cat >>conftest.$ac_ext <<_ACEOF | |
2205 /* end confdefs.h. */ | |
2206 | |
2207 int | |
2208 main () | |
2209 { | |
2210 | |
2211 ; | |
2212 return 0; | |
2213 } | |
2214 _ACEOF | |
2215 rm -f conftest.$ac_objext | |
2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2217 (eval $ac_compile) 2>conftest.er1 | |
2218 ac_status=$? | |
2219 grep -v '^ *+' conftest.er1 >conftest.err | |
2220 rm -f conftest.er1 | |
2221 cat conftest.err >&5 | |
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2223 (exit $ac_status); } && | |
2224 { ac_try='test -z "$ac_cxx_werror_flag" | |
2225 || test ! -s conftest.err' | |
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2227 (eval $ac_try) 2>&5 | |
2228 ac_status=$? | |
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2230 (exit $ac_status); }; } && | |
2231 { ac_try='test -s conftest.$ac_objext' | |
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2233 (eval $ac_try) 2>&5 | |
2234 ac_status=$? | |
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2236 (exit $ac_status); }; }; then | |
2237 ac_cv_prog_cxx_g=yes | |
2238 else | |
2239 echo "$as_me: failed program was:" >&5 | |
2240 sed 's/^/| /' conftest.$ac_ext >&5 | |
2241 | |
2242 ac_cv_prog_cxx_g=no | |
2243 fi | |
2244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2245 fi | |
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2247 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
2248 if test "$ac_test_CXXFLAGS" = set; then | |
2249 CXXFLAGS=$ac_save_CXXFLAGS | |
2250 elif test $ac_cv_prog_cxx_g = yes; then | |
2251 if test "$GXX" = yes; then | |
2252 CXXFLAGS="-g -O2" | |
2253 else | |
2254 CXXFLAGS="-g" | |
2255 fi | |
2256 else | |
2257 if test "$GXX" = yes; then | |
2258 CXXFLAGS="-O2" | |
2259 else | |
2260 CXXFLAGS= | |
2261 fi | |
2262 fi | |
2263 for ac_declaration in \ | |
2264 '' \ | |
2265 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2266 'extern "C" void std::exit (int); using std::exit;' \ | |
2267 'extern "C" void exit (int) throw ();' \ | |
2268 'extern "C" void exit (int);' \ | |
2269 'void exit (int);' | |
2270 do | |
2271 cat >conftest.$ac_ext <<_ACEOF | |
2272 /* confdefs.h. */ | |
2273 _ACEOF | |
2274 cat confdefs.h >>conftest.$ac_ext | |
2275 cat >>conftest.$ac_ext <<_ACEOF | |
2276 /* end confdefs.h. */ | |
2277 $ac_declaration | |
2278 #include <stdlib.h> | |
2279 int | |
2280 main () | |
2281 { | |
2282 exit (42); | |
2283 ; | |
2284 return 0; | |
2285 } | |
2286 _ACEOF | |
2287 rm -f conftest.$ac_objext | |
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2289 (eval $ac_compile) 2>conftest.er1 | |
2290 ac_status=$? | |
2291 grep -v '^ *+' conftest.er1 >conftest.err | |
2292 rm -f conftest.er1 | |
2293 cat conftest.err >&5 | |
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2295 (exit $ac_status); } && | |
2296 { ac_try='test -z "$ac_cxx_werror_flag" | |
2297 || test ! -s conftest.err' | |
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2299 (eval $ac_try) 2>&5 | |
2300 ac_status=$? | |
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2302 (exit $ac_status); }; } && | |
2303 { ac_try='test -s conftest.$ac_objext' | |
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2305 (eval $ac_try) 2>&5 | |
2306 ac_status=$? | |
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2308 (exit $ac_status); }; }; then | |
2309 : | |
2310 else | |
2311 echo "$as_me: failed program was:" >&5 | |
2312 sed 's/^/| /' conftest.$ac_ext >&5 | |
2313 | |
2314 continue | |
2315 fi | |
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2317 cat >conftest.$ac_ext <<_ACEOF | |
2318 /* confdefs.h. */ | |
2319 _ACEOF | |
2320 cat confdefs.h >>conftest.$ac_ext | |
2321 cat >>conftest.$ac_ext <<_ACEOF | |
2322 /* end confdefs.h. */ | |
2323 $ac_declaration | |
2324 int | |
2325 main () | |
2326 { | |
2327 exit (42); | |
2328 ; | |
2329 return 0; | |
2330 } | |
2331 _ACEOF | |
2332 rm -f conftest.$ac_objext | |
2333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2334 (eval $ac_compile) 2>conftest.er1 | |
2335 ac_status=$? | |
2336 grep -v '^ *+' conftest.er1 >conftest.err | |
2337 rm -f conftest.er1 | |
2338 cat conftest.err >&5 | |
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2340 (exit $ac_status); } && | |
2341 { ac_try='test -z "$ac_cxx_werror_flag" | |
2342 || test ! -s conftest.err' | |
2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2344 (eval $ac_try) 2>&5 | |
2345 ac_status=$? | |
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2347 (exit $ac_status); }; } && | |
2348 { ac_try='test -s conftest.$ac_objext' | |
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2350 (eval $ac_try) 2>&5 | |
2351 ac_status=$? | |
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2353 (exit $ac_status); }; }; then | |
2354 break | |
2355 else | |
2356 echo "$as_me: failed program was:" >&5 | |
2357 sed 's/^/| /' conftest.$ac_ext >&5 | |
2358 | |
2359 fi | |
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2361 done | |
2362 rm -f conftest* | |
2363 if test -n "$ac_declaration"; then | |
2364 echo '#ifdef __cplusplus' >>confdefs.h | |
2365 echo $ac_declaration >>confdefs.h | |
2366 echo '#endif' >>confdefs.h | |
2367 fi | |
2368 | |
2369 ac_ext=c | |
2370 ac_cpp='$CPP $CPPFLAGS' | |
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2374 DEPDIR="${am__leading_dot}deps" | |
2375 | |
2376 ac_config_commands="$ac_config_commands depfiles" | |
2377 | |
2378 | |
2379 am_make=${MAKE-make} | |
2380 cat > confinc << 'END' | |
2381 am__doit: | |
2382 @echo done | |
2383 .PHONY: am__doit | |
2384 END | |
2385 # If we don't find an include directive, just comment out the code. | |
2386 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2387 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2388 am__include="#" | |
2389 am__quote= | |
2390 _am_result=none | |
2391 # First try GNU make style include. | |
2392 echo "include confinc" > confmf | |
2393 # We grep out `Entering directory' and `Leaving directory' | |
2394 # messages which can occur if `w' ends up in MAKEFLAGS. | |
2395 # In particular we don't look at `^make:' because GNU make might | |
2396 # be invoked under some other name (usually "gmake"), in which | |
2397 # case it prints its new name instead of `make'. | |
2398 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2399 am__include=include | |
2400 am__quote= | |
2401 _am_result=GNU | |
2402 fi | |
2403 # Now try BSD make style include. | |
2404 if test "$am__include" = "#"; then | |
2405 echo '.include "confinc"' > confmf | |
2406 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2407 am__include=.include | |
2408 am__quote="\"" | |
2409 _am_result=BSD | |
2410 fi | |
2411 fi | |
2412 | |
2413 | |
2414 echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2415 echo "${ECHO_T}$_am_result" >&6 | |
2416 rm -f confinc confmf | |
2417 | |
2418 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2419 if test "${enable_dependency_tracking+set}" = set; then | |
2420 enableval="$enable_dependency_tracking" | |
2421 | |
2422 fi; | |
2423 if test "x$enable_dependency_tracking" != xno; then | |
2424 am_depcomp="$ac_aux_dir/depcomp" | |
2425 AMDEPBACKSLASH='\' | |
2426 fi | |
2427 | |
2428 | |
2429 if test "x$enable_dependency_tracking" != xno; then | |
2430 AMDEP_TRUE= | |
2431 AMDEP_FALSE='#' | |
2432 else | |
2433 AMDEP_TRUE='#' | |
2434 AMDEP_FALSE= | |
2435 fi | |
2436 | |
2437 | |
2438 | |
2439 | |
2440 depcc="$CXX" am_compiler_list= | |
2441 | |
2442 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2443 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2444 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
2445 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2446 else | |
2447 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2448 # We make a subdir and do the tests there. Otherwise we can end up | |
2449 # making bogus files that we don't know about and never remove. For | |
2450 # instance it was reported that on HP-UX the gcc test will end up | |
2451 # making a dummy file named `D' -- because `-MD' means `put the output | |
2452 # in D'. | |
2453 mkdir conftest.dir | |
2454 # Copy depcomp to subdir because otherwise we won't find it if we're | |
2455 # using a relative directory. | |
2456 cp "$am_depcomp" conftest.dir | |
2457 cd conftest.dir | |
2458 # We will build objects and dependencies in a subdirectory because | |
2459 # it helps to detect inapplicable dependency modes. For instance | |
2460 # both Tru64's cc and ICC support -MD to output dependencies as a | |
2461 # side effect of compilation, but ICC will put the dependencies in | |
2462 # the current directory while Tru64 will put them in the object | |
2463 # directory. | |
2464 mkdir sub | |
2465 | |
2466 am_cv_CXX_dependencies_compiler_type=none | |
2467 if test "$am_compiler_list" = ""; then | |
2468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2469 fi | |
2470 for depmode in $am_compiler_list; do | |
2471 # Setup a source with many dependencies, because some compilers | |
2472 # like to wrap large dependency lists on column 80 (with \), and | |
2473 # we should not choose a depcomp mode which is confused by this. | |
2474 # | |
2475 # We need to recreate these files for each test, as the compiler may | |
2476 # overwrite some of them when testing with obscure command lines. | |
2477 # This happens at least with the AIX C compiler. | |
2478 : > sub/conftest.c | |
2479 for i in 1 2 3 4 5 6; do | |
2480 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
2481 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
2482 # Solaris 8's {/usr,}/bin/sh. | |
2483 touch sub/conftst$i.h | |
2484 done | |
2485 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2486 | |
2487 case $depmode in | |
2488 nosideeffect) | |
2489 # after this tag, mechanisms are not by side-effect, so they'll | |
2490 # only be used when explicitly requested | |
2491 if test "x$enable_dependency_tracking" = xyes; then | |
2492 continue | |
2493 else | |
2494 break | |
2495 fi | |
2496 ;; | |
2497 none) break ;; | |
2498 esac | |
2499 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2500 # mode. It turns out that the SunPro C++ compiler does not properly | |
2501 # handle `-M -o', and we need to detect this. | |
2502 if depmode=$depmode \ | |
2503 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
2504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
2505 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
2506 >/dev/null 2>conftest.err && | |
2507 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
2508 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
2509 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2510 # icc doesn't choke on unknown options, it will just issue warnings | |
2511 # or remarks (even with -Werror). So we grep stderr for any message | |
2512 # that says an option was ignored or not supported. | |
2513 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
2514 # icc: Command line warning: ignoring option '-M'; no argument required | |
2515 # The diagnosis changed in icc 8.0: | |
2516 # icc: Command line remark: option '-MP' not supported | |
2517 if (grep 'ignoring option' conftest.err || | |
2518 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
2519 am_cv_CXX_dependencies_compiler_type=$depmode | |
2520 break | |
2521 fi | |
2522 fi | |
2523 done | |
2524 | |
2525 cd .. | |
2526 rm -rf conftest.dir | |
2527 else | |
2528 am_cv_CXX_dependencies_compiler_type=none | |
2529 fi | |
2530 | |
2531 fi | |
2532 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
2533 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
2534 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
2535 | |
2536 | |
2537 | |
2538 if | |
2539 test "x$enable_dependency_tracking" != xno \ | |
2540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
2541 am__fastdepCXX_TRUE= | |
2542 am__fastdepCXX_FALSE='#' | |
2543 else | |
2544 am__fastdepCXX_TRUE='#' | |
2545 am__fastdepCXX_FALSE= | |
2546 fi | |
2547 | |
2548 | |
2549 ac_ext=c | |
2550 ac_cpp='$CPP $CPPFLAGS' | |
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2554 if test -n "$ac_tool_prefix"; then | |
2555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2556 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2557 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2559 if test "${ac_cv_prog_CC+set}" = set; then | |
2560 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2561 else | |
2562 if test -n "$CC"; then | |
2563 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2564 else | |
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2566 for as_dir in $PATH | |
2567 do | |
2568 IFS=$as_save_IFS | |
2569 test -z "$as_dir" && as_dir=. | |
2570 for ac_exec_ext in '' $ac_executable_extensions; do | |
2571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2572 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2574 break 2 | |
2575 fi | |
2576 done | |
2577 done | |
2578 | |
2579 fi | |
2580 fi | |
2581 CC=$ac_cv_prog_CC | |
2582 if test -n "$CC"; then | |
2583 echo "$as_me:$LINENO: result: $CC" >&5 | |
2584 echo "${ECHO_T}$CC" >&6 | |
2585 else | |
2586 echo "$as_me:$LINENO: result: no" >&5 | |
2587 echo "${ECHO_T}no" >&6 | |
2588 fi | |
2589 | |
2590 fi | |
2591 if test -z "$ac_cv_prog_CC"; then | |
2592 ac_ct_CC=$CC | |
2593 # Extract the first word of "gcc", so it can be a program name with args. | |
2594 set dummy gcc; ac_word=$2 | |
2595 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2598 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2599 else | |
2600 if test -n "$ac_ct_CC"; then | |
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2602 else | |
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2604 for as_dir in $PATH | |
2605 do | |
2606 IFS=$as_save_IFS | |
2607 test -z "$as_dir" && as_dir=. | |
2608 for ac_exec_ext in '' $ac_executable_extensions; do | |
2609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2610 ac_cv_prog_ac_ct_CC="gcc" | |
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2612 break 2 | |
2613 fi | |
2614 done | |
2615 done | |
2616 | |
2617 fi | |
2618 fi | |
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2620 if test -n "$ac_ct_CC"; then | |
2621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2622 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2623 else | |
2624 echo "$as_me:$LINENO: result: no" >&5 | |
2625 echo "${ECHO_T}no" >&6 | |
2626 fi | |
2627 | |
2628 CC=$ac_ct_CC | |
2629 else | |
2630 CC="$ac_cv_prog_CC" | |
2631 fi | |
2632 | |
2633 if test -z "$CC"; then | |
2634 if test -n "$ac_tool_prefix"; then | |
2635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2636 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2639 if test "${ac_cv_prog_CC+set}" = set; then | |
2640 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2641 else | |
2642 if test -n "$CC"; then | |
2643 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2644 else | |
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2646 for as_dir in $PATH | |
2647 do | |
2648 IFS=$as_save_IFS | |
2649 test -z "$as_dir" && as_dir=. | |
2650 for ac_exec_ext in '' $ac_executable_extensions; do | |
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2652 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2654 break 2 | |
2655 fi | |
2656 done | |
2657 done | |
2658 | |
2659 fi | |
2660 fi | |
2661 CC=$ac_cv_prog_CC | |
2662 if test -n "$CC"; then | |
2663 echo "$as_me:$LINENO: result: $CC" >&5 | |
2664 echo "${ECHO_T}$CC" >&6 | |
2665 else | |
2666 echo "$as_me:$LINENO: result: no" >&5 | |
2667 echo "${ECHO_T}no" >&6 | |
2668 fi | |
2669 | |
2670 fi | |
2671 if test -z "$ac_cv_prog_CC"; then | |
2672 ac_ct_CC=$CC | |
2673 # Extract the first word of "cc", so it can be a program name with args. | |
2674 set dummy cc; ac_word=$2 | |
2675 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2678 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2679 else | |
2680 if test -n "$ac_ct_CC"; then | |
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2682 else | |
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2684 for as_dir in $PATH | |
2685 do | |
2686 IFS=$as_save_IFS | |
2687 test -z "$as_dir" && as_dir=. | |
2688 for ac_exec_ext in '' $ac_executable_extensions; do | |
2689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2690 ac_cv_prog_ac_ct_CC="cc" | |
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2692 break 2 | |
2693 fi | |
2694 done | |
2695 done | |
2696 | |
2697 fi | |
2698 fi | |
2699 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2700 if test -n "$ac_ct_CC"; then | |
2701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2702 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2703 else | |
2704 echo "$as_me:$LINENO: result: no" >&5 | |
2705 echo "${ECHO_T}no" >&6 | |
2706 fi | |
2707 | |
2708 CC=$ac_ct_CC | |
2709 else | |
2710 CC="$ac_cv_prog_CC" | |
2711 fi | |
2712 | |
2713 fi | |
2714 if test -z "$CC"; then | |
2715 # Extract the first word of "cc", so it can be a program name with args. | |
2716 set dummy cc; ac_word=$2 | |
2717 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2719 if test "${ac_cv_prog_CC+set}" = set; then | |
2720 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2721 else | |
2722 if test -n "$CC"; then | |
2723 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2724 else | |
2725 ac_prog_rejected=no | |
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2727 for as_dir in $PATH | |
2728 do | |
2729 IFS=$as_save_IFS | |
2730 test -z "$as_dir" && as_dir=. | |
2731 for ac_exec_ext in '' $ac_executable_extensions; do | |
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2734 ac_prog_rejected=yes | |
2735 continue | |
2736 fi | |
2737 ac_cv_prog_CC="cc" | |
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2739 break 2 | |
2740 fi | |
2741 done | |
2742 done | |
2743 | |
2744 if test $ac_prog_rejected = yes; then | |
2745 # We found a bogon in the path, so make sure we never use it. | |
2746 set dummy $ac_cv_prog_CC | |
2747 shift | |
2748 if test $# != 0; then | |
2749 # We chose a different compiler from the bogus one. | |
2750 # However, it has the same basename, so the bogon will be chosen | |
2751 # first if we set CC to just the basename; use the full file name. | |
2752 shift | |
2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2754 fi | |
2755 fi | |
2756 fi | |
2757 fi | |
2758 CC=$ac_cv_prog_CC | |
2759 if test -n "$CC"; then | |
2760 echo "$as_me:$LINENO: result: $CC" >&5 | |
2761 echo "${ECHO_T}$CC" >&6 | |
2762 else | |
2763 echo "$as_me:$LINENO: result: no" >&5 | |
2764 echo "${ECHO_T}no" >&6 | |
2765 fi | |
2766 | |
2767 fi | |
2768 if test -z "$CC"; then | |
2769 if test -n "$ac_tool_prefix"; then | |
2770 for ac_prog in cl | |
2771 do | |
2772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2773 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2776 if test "${ac_cv_prog_CC+set}" = set; then | |
2777 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2778 else | |
2779 if test -n "$CC"; then | |
2780 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2781 else | |
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2783 for as_dir in $PATH | |
2784 do | |
2785 IFS=$as_save_IFS | |
2786 test -z "$as_dir" && as_dir=. | |
2787 for ac_exec_ext in '' $ac_executable_extensions; do | |
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2791 break 2 | |
2792 fi | |
2793 done | |
2794 done | |
2795 | |
2796 fi | |
2797 fi | |
2798 CC=$ac_cv_prog_CC | |
2799 if test -n "$CC"; then | |
2800 echo "$as_me:$LINENO: result: $CC" >&5 | |
2801 echo "${ECHO_T}$CC" >&6 | |
2802 else | |
2803 echo "$as_me:$LINENO: result: no" >&5 | |
2804 echo "${ECHO_T}no" >&6 | |
2805 fi | |
2806 | |
2807 test -n "$CC" && break | |
2808 done | |
2809 fi | |
2810 if test -z "$CC"; then | |
2811 ac_ct_CC=$CC | |
2812 for ac_prog in cl | |
2813 do | |
2814 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2815 set dummy $ac_prog; ac_word=$2 | |
2816 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2819 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2820 else | |
2821 if test -n "$ac_ct_CC"; then | |
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2823 else | |
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2825 for as_dir in $PATH | |
2826 do | |
2827 IFS=$as_save_IFS | |
2828 test -z "$as_dir" && as_dir=. | |
2829 for ac_exec_ext in '' $ac_executable_extensions; do | |
2830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2831 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2833 break 2 | |
2834 fi | |
2835 done | |
2836 done | |
2837 | |
2838 fi | |
2839 fi | |
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2841 if test -n "$ac_ct_CC"; then | |
2842 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2843 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2844 else | |
2845 echo "$as_me:$LINENO: result: no" >&5 | |
2846 echo "${ECHO_T}no" >&6 | |
2847 fi | |
2848 | |
2849 test -n "$ac_ct_CC" && break | |
2850 done | |
2851 | |
2852 CC=$ac_ct_CC | |
2853 fi | |
2854 | |
2855 fi | |
2856 | |
2857 | |
2858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2859 See \`config.log' for more details." >&5 | |
2860 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2861 See \`config.log' for more details." >&2;} | |
2862 { (exit 1); exit 1; }; } | |
2863 | |
2864 # Provide some information about the compiler. | |
2865 echo "$as_me:$LINENO:" \ | |
2866 "checking for C compiler version" >&5 | |
2867 ac_compiler=`set X $ac_compile; echo $2` | |
2868 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2869 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2870 ac_status=$? | |
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2872 (exit $ac_status); } | |
2873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2874 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2875 ac_status=$? | |
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2877 (exit $ac_status); } | |
2878 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2879 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2880 ac_status=$? | |
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2882 (exit $ac_status); } | |
2883 | |
2884 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2885 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2886 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2887 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2888 else | |
2889 cat >conftest.$ac_ext <<_ACEOF | |
2890 /* confdefs.h. */ | |
2891 _ACEOF | |
2892 cat confdefs.h >>conftest.$ac_ext | |
2893 cat >>conftest.$ac_ext <<_ACEOF | |
2894 /* end confdefs.h. */ | |
2895 | |
2896 int | |
2897 main () | |
2898 { | |
2899 #ifndef __GNUC__ | |
2900 choke me | |
2901 #endif | |
2902 | |
2903 ; | |
2904 return 0; | |
2905 } | |
2906 _ACEOF | |
2907 rm -f conftest.$ac_objext | |
2908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2909 (eval $ac_compile) 2>conftest.er1 | |
2910 ac_status=$? | |
2911 grep -v '^ *+' conftest.er1 >conftest.err | |
2912 rm -f conftest.er1 | |
2913 cat conftest.err >&5 | |
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2915 (exit $ac_status); } && | |
2916 { ac_try='test -z "$ac_c_werror_flag" | |
2917 || test ! -s conftest.err' | |
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2919 (eval $ac_try) 2>&5 | |
2920 ac_status=$? | |
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2922 (exit $ac_status); }; } && | |
2923 { ac_try='test -s conftest.$ac_objext' | |
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2925 (eval $ac_try) 2>&5 | |
2926 ac_status=$? | |
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2928 (exit $ac_status); }; }; then | |
2929 ac_compiler_gnu=yes | |
2930 else | |
2931 echo "$as_me: failed program was:" >&5 | |
2932 sed 's/^/| /' conftest.$ac_ext >&5 | |
2933 | |
2934 ac_compiler_gnu=no | |
2935 fi | |
2936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2937 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2938 | |
2939 fi | |
2940 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2941 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2942 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2943 ac_test_CFLAGS=${CFLAGS+set} | |
2944 ac_save_CFLAGS=$CFLAGS | |
2945 CFLAGS="-g" | |
2946 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2947 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2948 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2949 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2950 else | |
2951 cat >conftest.$ac_ext <<_ACEOF | |
2952 /* confdefs.h. */ | |
2953 _ACEOF | |
2954 cat confdefs.h >>conftest.$ac_ext | |
2955 cat >>conftest.$ac_ext <<_ACEOF | |
2956 /* end confdefs.h. */ | |
2957 | |
2958 int | |
2959 main () | |
2960 { | |
2961 | |
2962 ; | |
2963 return 0; | |
2964 } | |
2965 _ACEOF | |
2966 rm -f conftest.$ac_objext | |
2967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2968 (eval $ac_compile) 2>conftest.er1 | |
2969 ac_status=$? | |
2970 grep -v '^ *+' conftest.er1 >conftest.err | |
2971 rm -f conftest.er1 | |
2972 cat conftest.err >&5 | |
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2974 (exit $ac_status); } && | |
2975 { ac_try='test -z "$ac_c_werror_flag" | |
2976 || test ! -s conftest.err' | |
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2978 (eval $ac_try) 2>&5 | |
2979 ac_status=$? | |
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2981 (exit $ac_status); }; } && | |
2982 { ac_try='test -s conftest.$ac_objext' | |
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2984 (eval $ac_try) 2>&5 | |
2985 ac_status=$? | |
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2987 (exit $ac_status); }; }; then | |
2988 ac_cv_prog_cc_g=yes | |
2989 else | |
2990 echo "$as_me: failed program was:" >&5 | |
2991 sed 's/^/| /' conftest.$ac_ext >&5 | |
2992 | |
2993 ac_cv_prog_cc_g=no | |
2994 fi | |
2995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2996 fi | |
2997 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2999 if test "$ac_test_CFLAGS" = set; then | |
3000 CFLAGS=$ac_save_CFLAGS | |
3001 elif test $ac_cv_prog_cc_g = yes; then | |
3002 if test "$GCC" = yes; then | |
3003 CFLAGS="-g -O2" | |
3004 else | |
3005 CFLAGS="-g" | |
3006 fi | |
3007 else | |
3008 if test "$GCC" = yes; then | |
3009 CFLAGS="-O2" | |
3010 else | |
3011 CFLAGS= | |
3012 fi | |
3013 fi | |
3014 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
3015 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3016 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3017 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3018 else | |
3019 ac_cv_prog_cc_stdc=no | |
3020 ac_save_CC=$CC | |
3021 cat >conftest.$ac_ext <<_ACEOF | |
3022 /* confdefs.h. */ | |
3023 _ACEOF | |
3024 cat confdefs.h >>conftest.$ac_ext | |
3025 cat >>conftest.$ac_ext <<_ACEOF | |
3026 /* end confdefs.h. */ | |
3027 #include <stdarg.h> | |
3028 #include <stdio.h> | |
3029 #include <sys/types.h> | |
3030 #include <sys/stat.h> | |
3031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3032 struct buf { int x; }; | |
3033 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3034 static char *e (p, i) | |
3035 char **p; | |
3036 int i; | |
3037 { | |
3038 return p[i]; | |
3039 } | |
3040 static char *f (char * (*g) (char **, int), char **p, ...) | |
3041 { | |
3042 char *s; | |
3043 va_list v; | |
3044 va_start (v,p); | |
3045 s = g (p, va_arg (v,int)); | |
3046 va_end (v); | |
3047 return s; | |
3048 } | |
3049 | |
3050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3051 function prototypes and stuff, but not '\xHH' hex character constants. | |
3052 These don't provoke an error unfortunately, instead are silently treated | |
3053 as 'x'. The following induces an error, until -std1 is added to get | |
3054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3055 array size at least. It's necessary to write '\x00'==0 to get something | |
3056 that's true only with -std1. */ | |
3057 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3058 | |
3059 int test (int i, double x); | |
3060 struct s1 {int (*f) (int a);}; | |
3061 struct s2 {int (*f) (double a);}; | |
3062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3063 int argc; | |
3064 char **argv; | |
3065 int | |
3066 main () | |
3067 { | |
3068 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3069 ; | |
3070 return 0; | |
3071 } | |
3072 _ACEOF | |
3073 # Don't try gcc -ansi; that turns off useful extensions and | |
3074 # breaks some systems' header files. | |
3075 # AIX -qlanglvl=ansi | |
3076 # Ultrix and OSF/1 -std1 | |
3077 # HP-UX 10.20 and later -Ae | |
3078 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3079 # SVR4 -Xc -D__EXTENSIONS__ | |
3080 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3081 do | |
3082 CC="$ac_save_CC $ac_arg" | |
3083 rm -f conftest.$ac_objext | |
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3085 (eval $ac_compile) 2>conftest.er1 | |
3086 ac_status=$? | |
3087 grep -v '^ *+' conftest.er1 >conftest.err | |
3088 rm -f conftest.er1 | |
3089 cat conftest.err >&5 | |
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3091 (exit $ac_status); } && | |
3092 { ac_try='test -z "$ac_c_werror_flag" | |
3093 || test ! -s conftest.err' | |
3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3095 (eval $ac_try) 2>&5 | |
3096 ac_status=$? | |
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3098 (exit $ac_status); }; } && | |
3099 { ac_try='test -s conftest.$ac_objext' | |
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3101 (eval $ac_try) 2>&5 | |
3102 ac_status=$? | |
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3104 (exit $ac_status); }; }; then | |
3105 ac_cv_prog_cc_stdc=$ac_arg | |
3106 break | |
3107 else | |
3108 echo "$as_me: failed program was:" >&5 | |
3109 sed 's/^/| /' conftest.$ac_ext >&5 | |
3110 | |
3111 fi | |
3112 rm -f conftest.err conftest.$ac_objext | |
3113 done | |
3114 rm -f conftest.$ac_ext conftest.$ac_objext | |
3115 CC=$ac_save_CC | |
3116 | |
3117 fi | |
3118 | |
3119 case "x$ac_cv_prog_cc_stdc" in | |
3120 x|xno) | |
3121 echo "$as_me:$LINENO: result: none needed" >&5 | |
3122 echo "${ECHO_T}none needed" >&6 ;; | |
3123 *) | |
3124 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3125 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3126 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3127 esac | |
3128 | |
3129 # Some people use a C++ compiler to compile C. Since we use `exit', | |
3130 # in C++ we need to declare it. In case someone uses the same compiler | |
3131 # for both compiling C and C++ we need to have the C++ compiler decide | |
3132 # the declaration of exit, since it's the most demanding environment. | |
3133 cat >conftest.$ac_ext <<_ACEOF | |
3134 #ifndef __cplusplus | |
3135 choke me | |
3136 #endif | |
3137 _ACEOF | |
3138 rm -f conftest.$ac_objext | |
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3140 (eval $ac_compile) 2>conftest.er1 | |
3141 ac_status=$? | |
3142 grep -v '^ *+' conftest.er1 >conftest.err | |
3143 rm -f conftest.er1 | |
3144 cat conftest.err >&5 | |
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3146 (exit $ac_status); } && | |
3147 { ac_try='test -z "$ac_c_werror_flag" | |
3148 || test ! -s conftest.err' | |
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3150 (eval $ac_try) 2>&5 | |
3151 ac_status=$? | |
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3153 (exit $ac_status); }; } && | |
3154 { ac_try='test -s conftest.$ac_objext' | |
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3156 (eval $ac_try) 2>&5 | |
3157 ac_status=$? | |
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3159 (exit $ac_status); }; }; then | |
3160 for ac_declaration in \ | |
3161 '' \ | |
3162 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3163 'extern "C" void std::exit (int); using std::exit;' \ | |
3164 'extern "C" void exit (int) throw ();' \ | |
3165 'extern "C" void exit (int);' \ | |
3166 'void exit (int);' | |
3167 do | |
3168 cat >conftest.$ac_ext <<_ACEOF | |
3169 /* confdefs.h. */ | |
3170 _ACEOF | |
3171 cat confdefs.h >>conftest.$ac_ext | |
3172 cat >>conftest.$ac_ext <<_ACEOF | |
3173 /* end confdefs.h. */ | |
3174 $ac_declaration | |
3175 #include <stdlib.h> | |
3176 int | |
3177 main () | |
3178 { | |
3179 exit (42); | |
3180 ; | |
3181 return 0; | |
3182 } | |
3183 _ACEOF | |
3184 rm -f conftest.$ac_objext | |
3185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3186 (eval $ac_compile) 2>conftest.er1 | |
3187 ac_status=$? | |
3188 grep -v '^ *+' conftest.er1 >conftest.err | |
3189 rm -f conftest.er1 | |
3190 cat conftest.err >&5 | |
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3192 (exit $ac_status); } && | |
3193 { ac_try='test -z "$ac_c_werror_flag" | |
3194 || test ! -s conftest.err' | |
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3196 (eval $ac_try) 2>&5 | |
3197 ac_status=$? | |
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3199 (exit $ac_status); }; } && | |
3200 { ac_try='test -s conftest.$ac_objext' | |
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3202 (eval $ac_try) 2>&5 | |
3203 ac_status=$? | |
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3205 (exit $ac_status); }; }; then | |
3206 : | |
3207 else | |
3208 echo "$as_me: failed program was:" >&5 | |
3209 sed 's/^/| /' conftest.$ac_ext >&5 | |
3210 | |
3211 continue | |
3212 fi | |
3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3214 cat >conftest.$ac_ext <<_ACEOF | |
3215 /* confdefs.h. */ | |
3216 _ACEOF | |
3217 cat confdefs.h >>conftest.$ac_ext | |
3218 cat >>conftest.$ac_ext <<_ACEOF | |
3219 /* end confdefs.h. */ | |
3220 $ac_declaration | |
3221 int | |
3222 main () | |
3223 { | |
3224 exit (42); | |
3225 ; | |
3226 return 0; | |
3227 } | |
3228 _ACEOF | |
3229 rm -f conftest.$ac_objext | |
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3231 (eval $ac_compile) 2>conftest.er1 | |
3232 ac_status=$? | |
3233 grep -v '^ *+' conftest.er1 >conftest.err | |
3234 rm -f conftest.er1 | |
3235 cat conftest.err >&5 | |
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3237 (exit $ac_status); } && | |
3238 { ac_try='test -z "$ac_c_werror_flag" | |
3239 || test ! -s conftest.err' | |
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3241 (eval $ac_try) 2>&5 | |
3242 ac_status=$? | |
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3244 (exit $ac_status); }; } && | |
3245 { ac_try='test -s conftest.$ac_objext' | |
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3247 (eval $ac_try) 2>&5 | |
3248 ac_status=$? | |
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3250 (exit $ac_status); }; }; then | |
3251 break | |
3252 else | |
3253 echo "$as_me: failed program was:" >&5 | |
3254 sed 's/^/| /' conftest.$ac_ext >&5 | |
3255 | |
3256 fi | |
3257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3258 done | |
3259 rm -f conftest* | |
3260 if test -n "$ac_declaration"; then | |
3261 echo '#ifdef __cplusplus' >>confdefs.h | |
3262 echo $ac_declaration >>confdefs.h | |
3263 echo '#endif' >>confdefs.h | |
3264 fi | |
3265 | |
3266 else | |
3267 echo "$as_me: failed program was:" >&5 | |
3268 sed 's/^/| /' conftest.$ac_ext >&5 | |
3269 | |
3270 fi | |
3271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3272 ac_ext=c | |
3273 ac_cpp='$CPP $CPPFLAGS' | |
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3277 | |
3278 depcc="$CC" am_compiler_list= | |
3279 | |
3280 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3281 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3282 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3283 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3284 else | |
3285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3286 # We make a subdir and do the tests there. Otherwise we can end up | |
3287 # making bogus files that we don't know about and never remove. For | |
3288 # instance it was reported that on HP-UX the gcc test will end up | |
3289 # making a dummy file named `D' -- because `-MD' means `put the output | |
3290 # in D'. | |
3291 mkdir conftest.dir | |
3292 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3293 # using a relative directory. | |
3294 cp "$am_depcomp" conftest.dir | |
3295 cd conftest.dir | |
3296 # We will build objects and dependencies in a subdirectory because | |
3297 # it helps to detect inapplicable dependency modes. For instance | |
3298 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3299 # side effect of compilation, but ICC will put the dependencies in | |
3300 # the current directory while Tru64 will put them in the object | |
3301 # directory. | |
3302 mkdir sub | |
3303 | |
3304 am_cv_CC_dependencies_compiler_type=none | |
3305 if test "$am_compiler_list" = ""; then | |
3306 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3307 fi | |
3308 for depmode in $am_compiler_list; do | |
3309 # Setup a source with many dependencies, because some compilers | |
3310 # like to wrap large dependency lists on column 80 (with \), and | |
3311 # we should not choose a depcomp mode which is confused by this. | |
3312 # | |
3313 # We need to recreate these files for each test, as the compiler may | |
3314 # overwrite some of them when testing with obscure command lines. | |
3315 # This happens at least with the AIX C compiler. | |
3316 : > sub/conftest.c | |
3317 for i in 1 2 3 4 5 6; do | |
3318 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3319 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3320 # Solaris 8's {/usr,}/bin/sh. | |
3321 touch sub/conftst$i.h | |
3322 done | |
3323 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3324 | |
3325 case $depmode in | |
3326 nosideeffect) | |
3327 # after this tag, mechanisms are not by side-effect, so they'll | |
3328 # only be used when explicitly requested | |
3329 if test "x$enable_dependency_tracking" = xyes; then | |
3330 continue | |
3331 else | |
3332 break | |
3333 fi | |
3334 ;; | |
3335 none) break ;; | |
3336 esac | |
3337 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3338 # mode. It turns out that the SunPro C++ compiler does not properly | |
3339 # handle `-M -o', and we need to detect this. | |
3340 if depmode=$depmode \ | |
3341 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3343 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3344 >/dev/null 2>conftest.err && | |
3345 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3346 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3348 # icc doesn't choke on unknown options, it will just issue warnings | |
3349 # or remarks (even with -Werror). So we grep stderr for any message | |
3350 # that says an option was ignored or not supported. | |
3351 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3352 # icc: Command line warning: ignoring option '-M'; no argument required | |
3353 # The diagnosis changed in icc 8.0: | |
3354 # icc: Command line remark: option '-MP' not supported | |
3355 if (grep 'ignoring option' conftest.err || | |
3356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3357 am_cv_CC_dependencies_compiler_type=$depmode | |
3358 break | |
3359 fi | |
3360 fi | |
3361 done | |
3362 | |
3363 cd .. | |
3364 rm -rf conftest.dir | |
3365 else | |
3366 am_cv_CC_dependencies_compiler_type=none | |
3367 fi | |
3368 | |
3369 fi | |
3370 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3371 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3372 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3373 | |
3374 | |
3375 | |
3376 if | |
3377 test "x$enable_dependency_tracking" != xno \ | |
3378 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3379 am__fastdepCC_TRUE= | |
3380 am__fastdepCC_FALSE='#' | |
3381 else | |
3382 am__fastdepCC_TRUE='#' | |
3383 am__fastdepCC_FALSE= | |
3384 fi | |
3385 | |
3386 | |
3387 ac_ext=c | |
3388 ac_cpp='$CPP $CPPFLAGS' | |
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3392 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3394 # On Suns, sometimes $CPP names a directory. | |
3395 if test -n "$CPP" && test -d "$CPP"; then | |
3396 CPP= | |
3397 fi | |
3398 if test -z "$CPP"; then | |
3399 if test "${ac_cv_prog_CPP+set}" = set; then | |
3400 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3401 else | |
3402 # Double quotes because CPP needs to be expanded | |
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3404 do | |
3405 ac_preproc_ok=false | |
3406 for ac_c_preproc_warn_flag in '' yes | |
3407 do | |
3408 # Use a header file that comes with gcc, so configuring glibc | |
3409 # with a fresh cross-compiler works. | |
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3411 # <limits.h> exists even on freestanding compilers. | |
3412 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3413 # not just through cpp. "Syntax error" is here to catch this case. | |
3414 cat >conftest.$ac_ext <<_ACEOF | |
3415 /* confdefs.h. */ | |
3416 _ACEOF | |
3417 cat confdefs.h >>conftest.$ac_ext | |
3418 cat >>conftest.$ac_ext <<_ACEOF | |
3419 /* end confdefs.h. */ | |
3420 #ifdef __STDC__ | |
3421 # include <limits.h> | |
3422 #else | |
3423 # include <assert.h> | |
3424 #endif | |
3425 Syntax error | |
3426 _ACEOF | |
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3429 ac_status=$? | |
3430 grep -v '^ *+' conftest.er1 >conftest.err | |
3431 rm -f conftest.er1 | |
3432 cat conftest.err >&5 | |
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3434 (exit $ac_status); } >/dev/null; then | |
3435 if test -s conftest.err; then | |
3436 ac_cpp_err=$ac_c_preproc_warn_flag | |
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3438 else | |
3439 ac_cpp_err= | |
3440 fi | |
3441 else | |
3442 ac_cpp_err=yes | |
3443 fi | |
3444 if test -z "$ac_cpp_err"; then | |
3445 : | |
3446 else | |
3447 echo "$as_me: failed program was:" >&5 | |
3448 sed 's/^/| /' conftest.$ac_ext >&5 | |
3449 | |
3450 # Broken: fails on valid input. | |
3451 continue | |
3452 fi | |
3453 rm -f conftest.err conftest.$ac_ext | |
3454 | |
3455 # OK, works on sane cases. Now check whether non-existent headers | |
3456 # can be detected and how. | |
3457 cat >conftest.$ac_ext <<_ACEOF | |
3458 /* confdefs.h. */ | |
3459 _ACEOF | |
3460 cat confdefs.h >>conftest.$ac_ext | |
3461 cat >>conftest.$ac_ext <<_ACEOF | |
3462 /* end confdefs.h. */ | |
3463 #include <ac_nonexistent.h> | |
3464 _ACEOF | |
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3467 ac_status=$? | |
3468 grep -v '^ *+' conftest.er1 >conftest.err | |
3469 rm -f conftest.er1 | |
3470 cat conftest.err >&5 | |
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3472 (exit $ac_status); } >/dev/null; then | |
3473 if test -s conftest.err; then | |
3474 ac_cpp_err=$ac_c_preproc_warn_flag | |
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3476 else | |
3477 ac_cpp_err= | |
3478 fi | |
3479 else | |
3480 ac_cpp_err=yes | |
3481 fi | |
3482 if test -z "$ac_cpp_err"; then | |
3483 # Broken: success on invalid input. | |
3484 continue | |
3485 else | |
3486 echo "$as_me: failed program was:" >&5 | |
3487 sed 's/^/| /' conftest.$ac_ext >&5 | |
3488 | |
3489 # Passes both tests. | |
3490 ac_preproc_ok=: | |
3491 break | |
3492 fi | |
3493 rm -f conftest.err conftest.$ac_ext | |
3494 | |
3495 done | |
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3497 rm -f conftest.err conftest.$ac_ext | |
3498 if $ac_preproc_ok; then | |
3499 break | |
3500 fi | |
3501 | |
3502 done | |
3503 ac_cv_prog_CPP=$CPP | |
3504 | |
3505 fi | |
3506 CPP=$ac_cv_prog_CPP | |
3507 else | |
3508 ac_cv_prog_CPP=$CPP | |
3509 fi | |
3510 echo "$as_me:$LINENO: result: $CPP" >&5 | |
3511 echo "${ECHO_T}$CPP" >&6 | |
3512 ac_preproc_ok=false | |
3513 for ac_c_preproc_warn_flag in '' yes | |
3514 do | |
3515 # Use a header file that comes with gcc, so configuring glibc | |
3516 # with a fresh cross-compiler works. | |
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3518 # <limits.h> exists even on freestanding compilers. | |
3519 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3520 # not just through cpp. "Syntax error" is here to catch this case. | |
3521 cat >conftest.$ac_ext <<_ACEOF | |
3522 /* confdefs.h. */ | |
3523 _ACEOF | |
3524 cat confdefs.h >>conftest.$ac_ext | |
3525 cat >>conftest.$ac_ext <<_ACEOF | |
3526 /* end confdefs.h. */ | |
3527 #ifdef __STDC__ | |
3528 # include <limits.h> | |
3529 #else | |
3530 # include <assert.h> | |
3531 #endif | |
3532 Syntax error | |
3533 _ACEOF | |
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3536 ac_status=$? | |
3537 grep -v '^ *+' conftest.er1 >conftest.err | |
3538 rm -f conftest.er1 | |
3539 cat conftest.err >&5 | |
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3541 (exit $ac_status); } >/dev/null; then | |
3542 if test -s conftest.err; then | |
3543 ac_cpp_err=$ac_c_preproc_warn_flag | |
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3545 else | |
3546 ac_cpp_err= | |
3547 fi | |
3548 else | |
3549 ac_cpp_err=yes | |
3550 fi | |
3551 if test -z "$ac_cpp_err"; then | |
3552 : | |
3553 else | |
3554 echo "$as_me: failed program was:" >&5 | |
3555 sed 's/^/| /' conftest.$ac_ext >&5 | |
3556 | |
3557 # Broken: fails on valid input. | |
3558 continue | |
3559 fi | |
3560 rm -f conftest.err conftest.$ac_ext | |
3561 | |
3562 # OK, works on sane cases. Now check whether non-existent headers | |
3563 # can be detected and how. | |
3564 cat >conftest.$ac_ext <<_ACEOF | |
3565 /* confdefs.h. */ | |
3566 _ACEOF | |
3567 cat confdefs.h >>conftest.$ac_ext | |
3568 cat >>conftest.$ac_ext <<_ACEOF | |
3569 /* end confdefs.h. */ | |
3570 #include <ac_nonexistent.h> | |
3571 _ACEOF | |
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3574 ac_status=$? | |
3575 grep -v '^ *+' conftest.er1 >conftest.err | |
3576 rm -f conftest.er1 | |
3577 cat conftest.err >&5 | |
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3579 (exit $ac_status); } >/dev/null; then | |
3580 if test -s conftest.err; then | |
3581 ac_cpp_err=$ac_c_preproc_warn_flag | |
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3583 else | |
3584 ac_cpp_err= | |
3585 fi | |
3586 else | |
3587 ac_cpp_err=yes | |
3588 fi | |
3589 if test -z "$ac_cpp_err"; then | |
3590 # Broken: success on invalid input. | |
3591 continue | |
3592 else | |
3593 echo "$as_me: failed program was:" >&5 | |
3594 sed 's/^/| /' conftest.$ac_ext >&5 | |
3595 | |
3596 # Passes both tests. | |
3597 ac_preproc_ok=: | |
3598 break | |
3599 fi | |
3600 rm -f conftest.err conftest.$ac_ext | |
3601 | |
3602 done | |
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3604 rm -f conftest.err conftest.$ac_ext | |
3605 if $ac_preproc_ok; then | |
3606 : | |
3607 else | |
3608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3609 See \`config.log' for more details." >&5 | |
3610 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3611 See \`config.log' for more details." >&2;} | |
3612 { (exit 1); exit 1; }; } | |
3613 fi | |
3614 | |
3615 ac_ext=c | |
3616 ac_cpp='$CPP $CPPFLAGS' | |
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3620 | |
3621 for ac_prog in gawk mawk nawk awk | |
3622 do | |
3623 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3624 set dummy $ac_prog; ac_word=$2 | |
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3627 if test "${ac_cv_prog_AWK+set}" = set; then | |
3628 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3629 else | |
3630 if test -n "$AWK"; then | |
3631 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3632 else | |
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3634 for as_dir in $PATH | |
3635 do | |
3636 IFS=$as_save_IFS | |
3637 test -z "$as_dir" && as_dir=. | |
3638 for ac_exec_ext in '' $ac_executable_extensions; do | |
3639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3640 ac_cv_prog_AWK="$ac_prog" | |
3641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3642 break 2 | |
3643 fi | |
3644 done | |
3645 done | |
3646 | |
3647 fi | |
3648 fi | |
3649 AWK=$ac_cv_prog_AWK | |
3650 if test -n "$AWK"; then | |
3651 echo "$as_me:$LINENO: result: $AWK" >&5 | |
3652 echo "${ECHO_T}$AWK" >&6 | |
3653 else | |
3654 echo "$as_me:$LINENO: result: no" >&5 | |
3655 echo "${ECHO_T}no" >&6 | |
3656 fi | |
3657 | |
3658 test -n "$AWK" && break | |
3659 done | |
3660 | |
3661 # Find a good install program. We prefer a C program (faster), | |
3662 # so one script is as good as another. But avoid the broken or | |
3663 # incompatible versions: | |
3664 # SysV /etc/install, /usr/sbin/install | |
3665 # SunOS /usr/etc/install | |
3666 # IRIX /sbin/install | |
3667 # AIX /bin/install | |
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3672 # OS/2's system install, which has a completely different semantic | |
3673 # ./install, which can be erroneously created by make from ./install.sh. | |
3674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3676 if test -z "$INSTALL"; then | |
3677 if test "${ac_cv_path_install+set}" = set; then | |
3678 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3679 else | |
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3681 for as_dir in $PATH | |
3682 do | |
3683 IFS=$as_save_IFS | |
3684 test -z "$as_dir" && as_dir=. | |
3685 # Account for people who put trailing slashes in PATH elements. | |
3686 case $as_dir/ in | |
3687 ./ | .// | /cC/* | \ | |
3688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3690 /usr/ucb/* ) ;; | |
3691 *) | |
3692 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3693 # Don't use installbsd from OSF since it installs stuff as root | |
3694 # by default. | |
3695 for ac_prog in ginstall scoinst install; do | |
3696 for ac_exec_ext in '' $ac_executable_extensions; do | |
3697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3698 if test $ac_prog = install && | |
3699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3700 # AIX install. It has an incompatible calling convention. | |
3701 : | |
3702 elif test $ac_prog = install && | |
3703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3704 # program-specific install script used by HP pwplus--don't use. | |
3705 : | |
3706 else | |
3707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3708 break 3 | |
3709 fi | |
3710 fi | |
3711 done | |
3712 done | |
3713 ;; | |
3714 esac | |
3715 done | |
3716 | |
3717 | |
3718 fi | |
3719 if test "${ac_cv_path_install+set}" = set; then | |
3720 INSTALL=$ac_cv_path_install | |
3721 else | |
3722 # As a last resort, use the slow shell script. We don't cache a | |
3723 # path for INSTALL within a source directory, because that will | |
3724 # break other packages using the cache if that directory is | |
3725 # removed, or if the path is relative. | |
3726 INSTALL=$ac_install_sh | |
3727 fi | |
3728 fi | |
3729 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3730 echo "${ECHO_T}$INSTALL" >&6 | |
3731 | |
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3733 # It thinks the first close brace ends the variable substitution. | |
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3735 | |
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3737 | |
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3739 | |
3740 echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3742 LN_S=$as_ln_s | |
3743 if test "$LN_S" = "ln -s"; then | |
3744 echo "$as_me:$LINENO: result: yes" >&5 | |
3745 echo "${ECHO_T}yes" >&6 | |
3746 else | |
3747 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3748 echo "${ECHO_T}no, using $LN_S" >&6 | |
3749 fi | |
3750 | |
3751 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3752 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3754 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3755 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3756 else | |
3757 cat >conftest.make <<\_ACEOF | |
3758 all: | |
3759 @echo 'ac_maketemp="$(MAKE)"' | |
3760 _ACEOF | |
3761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3762 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3763 if test -n "$ac_maketemp"; then | |
3764 eval ac_cv_prog_make_${ac_make}_set=yes | |
3765 else | |
3766 eval ac_cv_prog_make_${ac_make}_set=no | |
3767 fi | |
3768 rm -f conftest.make | |
3769 fi | |
3770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3771 echo "$as_me:$LINENO: result: yes" >&5 | |
3772 echo "${ECHO_T}yes" >&6 | |
3773 SET_MAKE= | |
3774 else | |
3775 echo "$as_me:$LINENO: result: no" >&5 | |
3776 echo "${ECHO_T}no" >&6 | |
3777 SET_MAKE="MAKE=${MAKE-make}" | |
3778 fi | |
3779 | |
3780 if test -n "$ac_tool_prefix"; then | |
3781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3782 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3783 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3785 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3786 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3787 else | |
3788 if test -n "$RANLIB"; then | |
3789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3790 else | |
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3792 for as_dir in $PATH | |
3793 do | |
3794 IFS=$as_save_IFS | |
3795 test -z "$as_dir" && as_dir=. | |
3796 for ac_exec_ext in '' $ac_executable_extensions; do | |
3797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3800 break 2 | |
3801 fi | |
3802 done | |
3803 done | |
3804 | |
3805 fi | |
3806 fi | |
3807 RANLIB=$ac_cv_prog_RANLIB | |
3808 if test -n "$RANLIB"; then | |
3809 echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3810 echo "${ECHO_T}$RANLIB" >&6 | |
3811 else | |
3812 echo "$as_me:$LINENO: result: no" >&5 | |
3813 echo "${ECHO_T}no" >&6 | |
3814 fi | |
3815 | |
3816 fi | |
3817 if test -z "$ac_cv_prog_RANLIB"; then | |
3818 ac_ct_RANLIB=$RANLIB | |
3819 # Extract the first word of "ranlib", so it can be a program name with args. | |
3820 set dummy ranlib; ac_word=$2 | |
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3824 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3825 else | |
3826 if test -n "$ac_ct_RANLIB"; then | |
3827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3828 else | |
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3830 for as_dir in $PATH | |
3831 do | |
3832 IFS=$as_save_IFS | |
3833 test -z "$as_dir" && as_dir=. | |
3834 for ac_exec_ext in '' $ac_executable_extensions; do | |
3835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3836 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3838 break 2 | |
3839 fi | |
3840 done | |
3841 done | |
3842 | |
3843 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3844 fi | |
3845 fi | |
3846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3847 if test -n "$ac_ct_RANLIB"; then | |
3848 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3849 echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3850 else | |
3851 echo "$as_me:$LINENO: result: no" >&5 | |
3852 echo "${ECHO_T}no" >&6 | |
3853 fi | |
3854 | |
3855 RANLIB=$ac_ct_RANLIB | |
3856 else | |
3857 RANLIB="$ac_cv_prog_RANLIB" | |
3858 fi | |
3859 | |
3860 | |
3861 # Checks for libraries. | |
3862 | |
3863 # Checks for header files. | |
3864 | |
3865 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
3866 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3867 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3868 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3869 else | |
3870 cat >conftest.$ac_ext <<_ACEOF | |
3871 /* confdefs.h. */ | |
3872 _ACEOF | |
3873 cat confdefs.h >>conftest.$ac_ext | |
3874 cat >>conftest.$ac_ext <<_ACEOF | |
3875 /* end confdefs.h. */ | |
3876 #include <sys/types.h> | |
3877 #include <sys/wait.h> | |
3878 #ifndef WEXITSTATUS | |
3879 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3880 #endif | |
3881 #ifndef WIFEXITED | |
3882 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3883 #endif | |
3884 | |
3885 int | |
3886 main () | |
3887 { | |
3888 int s; | |
3889 wait (&s); | |
3890 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3891 ; | |
3892 return 0; | |
3893 } | |
3894 _ACEOF | |
3895 rm -f conftest.$ac_objext | |
3896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3897 (eval $ac_compile) 2>conftest.er1 | |
3898 ac_status=$? | |
3899 grep -v '^ *+' conftest.er1 >conftest.err | |
3900 rm -f conftest.er1 | |
3901 cat conftest.err >&5 | |
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3903 (exit $ac_status); } && | |
3904 { ac_try='test -z "$ac_c_werror_flag" | |
3905 || test ! -s conftest.err' | |
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3907 (eval $ac_try) 2>&5 | |
3908 ac_status=$? | |
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3910 (exit $ac_status); }; } && | |
3911 { ac_try='test -s conftest.$ac_objext' | |
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3913 (eval $ac_try) 2>&5 | |
3914 ac_status=$? | |
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3916 (exit $ac_status); }; }; then | |
3917 ac_cv_header_sys_wait_h=yes | |
3918 else | |
3919 echo "$as_me: failed program was:" >&5 | |
3920 sed 's/^/| /' conftest.$ac_ext >&5 | |
3921 | |
3922 ac_cv_header_sys_wait_h=no | |
3923 fi | |
3924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3925 fi | |
3926 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
3927 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3928 if test $ac_cv_header_sys_wait_h = yes; then | |
3929 | |
3930 cat >>confdefs.h <<\_ACEOF | |
3931 #define HAVE_SYS_WAIT_H 1 | |
3932 _ACEOF | |
3933 | |
3934 fi | |
3935 | |
3936 | |
3937 echo "$as_me:$LINENO: checking for egrep" >&5 | |
3938 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3939 if test "${ac_cv_prog_egrep+set}" = set; then | |
3940 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3941 else | |
3942 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3943 then ac_cv_prog_egrep='grep -E' | |
3944 else ac_cv_prog_egrep='egrep' | |
3945 fi | |
3946 fi | |
3947 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3948 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3949 EGREP=$ac_cv_prog_egrep | |
3950 | |
3951 | |
3952 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3953 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3954 if test "${ac_cv_header_stdc+set}" = set; then | |
3955 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3956 else | |
3957 cat >conftest.$ac_ext <<_ACEOF | |
3958 /* confdefs.h. */ | |
3959 _ACEOF | |
3960 cat confdefs.h >>conftest.$ac_ext | |
3961 cat >>conftest.$ac_ext <<_ACEOF | |
3962 /* end confdefs.h. */ | |
3963 #include <stdlib.h> | |
3964 #include <stdarg.h> | |
3965 #include <string.h> | |
3966 #include <float.h> | |
3967 | |
3968 int | |
3969 main () | |
3970 { | |
3971 | |
3972 ; | |
3973 return 0; | |
3974 } | |
3975 _ACEOF | |
3976 rm -f conftest.$ac_objext | |
3977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3978 (eval $ac_compile) 2>conftest.er1 | |
3979 ac_status=$? | |
3980 grep -v '^ *+' conftest.er1 >conftest.err | |
3981 rm -f conftest.er1 | |
3982 cat conftest.err >&5 | |
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3984 (exit $ac_status); } && | |
3985 { ac_try='test -z "$ac_c_werror_flag" | |
3986 || test ! -s conftest.err' | |
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3988 (eval $ac_try) 2>&5 | |
3989 ac_status=$? | |
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3991 (exit $ac_status); }; } && | |
3992 { ac_try='test -s conftest.$ac_objext' | |
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3994 (eval $ac_try) 2>&5 | |
3995 ac_status=$? | |
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3997 (exit $ac_status); }; }; then | |
3998 ac_cv_header_stdc=yes | |
3999 else | |
4000 echo "$as_me: failed program was:" >&5 | |
4001 sed 's/^/| /' conftest.$ac_ext >&5 | |
4002 | |
4003 ac_cv_header_stdc=no | |
4004 fi | |
4005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4006 | |
4007 if test $ac_cv_header_stdc = yes; then | |
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4009 cat >conftest.$ac_ext <<_ACEOF | |
4010 /* confdefs.h. */ | |
4011 _ACEOF | |
4012 cat confdefs.h >>conftest.$ac_ext | |
4013 cat >>conftest.$ac_ext <<_ACEOF | |
4014 /* end confdefs.h. */ | |
4015 #include <string.h> | |
4016 | |
4017 _ACEOF | |
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4019 $EGREP "memchr" >/dev/null 2>&1; then | |
4020 : | |
4021 else | |
4022 ac_cv_header_stdc=no | |
4023 fi | |
4024 rm -f conftest* | |
4025 | |
4026 fi | |
4027 | |
4028 if test $ac_cv_header_stdc = yes; then | |
4029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4030 cat >conftest.$ac_ext <<_ACEOF | |
4031 /* confdefs.h. */ | |
4032 _ACEOF | |
4033 cat confdefs.h >>conftest.$ac_ext | |
4034 cat >>conftest.$ac_ext <<_ACEOF | |
4035 /* end confdefs.h. */ | |
4036 #include <stdlib.h> | |
4037 | |
4038 _ACEOF | |
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4040 $EGREP "free" >/dev/null 2>&1; then | |
4041 : | |
4042 else | |
4043 ac_cv_header_stdc=no | |
4044 fi | |
4045 rm -f conftest* | |
4046 | |
4047 fi | |
4048 | |
4049 if test $ac_cv_header_stdc = yes; then | |
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4051 if test "$cross_compiling" = yes; then | |
4052 : | |
4053 else | |
4054 cat >conftest.$ac_ext <<_ACEOF | |
4055 /* confdefs.h. */ | |
4056 _ACEOF | |
4057 cat confdefs.h >>conftest.$ac_ext | |
4058 cat >>conftest.$ac_ext <<_ACEOF | |
4059 /* end confdefs.h. */ | |
4060 #include <ctype.h> | |
4061 #if ((' ' & 0x0FF) == 0x020) | |
4062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4064 #else | |
4065 # define ISLOWER(c) \ | |
4066 (('a' <= (c) && (c) <= 'i') \ | |
4067 || ('j' <= (c) && (c) <= 'r') \ | |
4068 || ('s' <= (c) && (c) <= 'z')) | |
4069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4070 #endif | |
4071 | |
4072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4073 int | |
4074 main () | |
4075 { | |
4076 int i; | |
4077 for (i = 0; i < 256; i++) | |
4078 if (XOR (islower (i), ISLOWER (i)) | |
4079 || toupper (i) != TOUPPER (i)) | |
4080 exit(2); | |
4081 exit (0); | |
4082 } | |
4083 _ACEOF | |
4084 rm -f conftest$ac_exeext | |
4085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4086 (eval $ac_link) 2>&5 | |
4087 ac_status=$? | |
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4091 (eval $ac_try) 2>&5 | |
4092 ac_status=$? | |
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4094 (exit $ac_status); }; }; then | |
4095 : | |
4096 else | |
4097 echo "$as_me: program exited with status $ac_status" >&5 | |
4098 echo "$as_me: failed program was:" >&5 | |
4099 sed 's/^/| /' conftest.$ac_ext >&5 | |
4100 | |
4101 ( exit $ac_status ) | |
4102 ac_cv_header_stdc=no | |
4103 fi | |
4104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4105 fi | |
4106 fi | |
4107 fi | |
4108 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4109 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4110 if test $ac_cv_header_stdc = yes; then | |
4111 | |
4112 cat >>confdefs.h <<\_ACEOF | |
4113 #define STDC_HEADERS 1 | |
4114 _ACEOF | |
4115 | |
4116 fi | |
4117 | |
4118 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4119 | |
4120 | |
4121 | |
4122 | |
4123 | |
4124 | |
4125 | |
4126 | |
4127 | |
4128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4129 inttypes.h stdint.h unistd.h | |
4130 do | |
4131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4132 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4134 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4135 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4136 else | |
4137 cat >conftest.$ac_ext <<_ACEOF | |
4138 /* confdefs.h. */ | |
4139 _ACEOF | |
4140 cat confdefs.h >>conftest.$ac_ext | |
4141 cat >>conftest.$ac_ext <<_ACEOF | |
4142 /* end confdefs.h. */ | |
4143 $ac_includes_default | |
4144 | |
4145 #include <$ac_header> | |
4146 _ACEOF | |
4147 rm -f conftest.$ac_objext | |
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4149 (eval $ac_compile) 2>conftest.er1 | |
4150 ac_status=$? | |
4151 grep -v '^ *+' conftest.er1 >conftest.err | |
4152 rm -f conftest.er1 | |
4153 cat conftest.err >&5 | |
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4155 (exit $ac_status); } && | |
4156 { ac_try='test -z "$ac_c_werror_flag" | |
4157 || test ! -s conftest.err' | |
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4159 (eval $ac_try) 2>&5 | |
4160 ac_status=$? | |
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4162 (exit $ac_status); }; } && | |
4163 { ac_try='test -s conftest.$ac_objext' | |
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4165 (eval $ac_try) 2>&5 | |
4166 ac_status=$? | |
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4168 (exit $ac_status); }; }; then | |
4169 eval "$as_ac_Header=yes" | |
4170 else | |
4171 echo "$as_me: failed program was:" >&5 | |
4172 sed 's/^/| /' conftest.$ac_ext >&5 | |
4173 | |
4174 eval "$as_ac_Header=no" | |
4175 fi | |
4176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4177 fi | |
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4181 cat >>confdefs.h <<_ACEOF | |
4182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4183 _ACEOF | |
4184 | |
4185 fi | |
4186 | |
4187 done | |
4188 | |
4189 | |
4190 | |
4191 | |
4192 | |
4193 | |
4194 | |
4195 | |
4196 | |
4197 | |
4198 for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h | |
4199 do | |
4200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4202 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4204 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4205 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4206 fi | |
4207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4209 else | |
4210 # Is the header compilable? | |
4211 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4213 cat >conftest.$ac_ext <<_ACEOF | |
4214 /* confdefs.h. */ | |
4215 _ACEOF | |
4216 cat confdefs.h >>conftest.$ac_ext | |
4217 cat >>conftest.$ac_ext <<_ACEOF | |
4218 /* end confdefs.h. */ | |
4219 $ac_includes_default | |
4220 #include <$ac_header> | |
4221 _ACEOF | |
4222 rm -f conftest.$ac_objext | |
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4224 (eval $ac_compile) 2>conftest.er1 | |
4225 ac_status=$? | |
4226 grep -v '^ *+' conftest.er1 >conftest.err | |
4227 rm -f conftest.er1 | |
4228 cat conftest.err >&5 | |
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4230 (exit $ac_status); } && | |
4231 { ac_try='test -z "$ac_c_werror_flag" | |
4232 || test ! -s conftest.err' | |
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4234 (eval $ac_try) 2>&5 | |
4235 ac_status=$? | |
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4237 (exit $ac_status); }; } && | |
4238 { ac_try='test -s conftest.$ac_objext' | |
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4240 (eval $ac_try) 2>&5 | |
4241 ac_status=$? | |
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4243 (exit $ac_status); }; }; then | |
4244 ac_header_compiler=yes | |
4245 else | |
4246 echo "$as_me: failed program was:" >&5 | |
4247 sed 's/^/| /' conftest.$ac_ext >&5 | |
4248 | |
4249 ac_header_compiler=no | |
4250 fi | |
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4253 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4254 | |
4255 # Is the header present? | |
4256 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4258 cat >conftest.$ac_ext <<_ACEOF | |
4259 /* confdefs.h. */ | |
4260 _ACEOF | |
4261 cat confdefs.h >>conftest.$ac_ext | |
4262 cat >>conftest.$ac_ext <<_ACEOF | |
4263 /* end confdefs.h. */ | |
4264 #include <$ac_header> | |
4265 _ACEOF | |
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4268 ac_status=$? | |
4269 grep -v '^ *+' conftest.er1 >conftest.err | |
4270 rm -f conftest.er1 | |
4271 cat conftest.err >&5 | |
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4273 (exit $ac_status); } >/dev/null; then | |
4274 if test -s conftest.err; then | |
4275 ac_cpp_err=$ac_c_preproc_warn_flag | |
4276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4277 else | |
4278 ac_cpp_err= | |
4279 fi | |
4280 else | |
4281 ac_cpp_err=yes | |
4282 fi | |
4283 if test -z "$ac_cpp_err"; then | |
4284 ac_header_preproc=yes | |
4285 else | |
4286 echo "$as_me: failed program was:" >&5 | |
4287 sed 's/^/| /' conftest.$ac_ext >&5 | |
4288 | |
4289 ac_header_preproc=no | |
4290 fi | |
4291 rm -f conftest.err conftest.$ac_ext | |
4292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4293 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4294 | |
4295 # So? What about this header? | |
4296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4297 yes:no: ) | |
4298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4302 ac_header_preproc=yes | |
4303 ;; | |
4304 no:yes:* ) | |
4305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4317 ( | |
4318 cat <<\_ASBOX | |
4319 ## ----------------------------------- ## | |
4320 ## Report this to carl@five-ten-sg.com ## | |
4321 ## ----------------------------------- ## | |
4322 _ASBOX | |
4323 ) | | |
4324 sed "s/^/$as_me: WARNING: /" >&2 | |
4325 ;; | |
4326 esac | |
4327 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4331 else | |
4332 eval "$as_ac_Header=\$ac_header_preproc" | |
4333 fi | |
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4336 | |
4337 fi | |
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4339 cat >>confdefs.h <<_ACEOF | |
4340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4341 _ACEOF | |
4342 | |
4343 fi | |
4344 | |
4345 done | |
4346 | |
4347 | |
4348 # Checks for typedefs, structures, and compiler characteristics. | |
4349 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 | |
4350 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 | |
4351 if test "${ac_cv_header_stdbool_h+set}" = set; then | |
4352 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4353 else | |
4354 cat >conftest.$ac_ext <<_ACEOF | |
4355 /* confdefs.h. */ | |
4356 _ACEOF | |
4357 cat confdefs.h >>conftest.$ac_ext | |
4358 cat >>conftest.$ac_ext <<_ACEOF | |
4359 /* end confdefs.h. */ | |
4360 | |
4361 #include <stdbool.h> | |
4362 #ifndef bool | |
4363 # error bool is not defined | |
4364 #endif | |
4365 #ifndef false | |
4366 # error false is not defined | |
4367 #endif | |
4368 #if false | |
4369 # error false is not 0 | |
4370 #endif | |
4371 #ifndef true | |
4372 # error true is not defined | |
4373 #endif | |
4374 #if true != 1 | |
4375 # error true is not 1 | |
4376 #endif | |
4377 #ifndef __bool_true_false_are_defined | |
4378 # error __bool_true_false_are_defined is not defined | |
4379 #endif | |
4380 | |
4381 struct s { _Bool s: 1; _Bool t; } s; | |
4382 | |
4383 char a[true == 1 ? 1 : -1]; | |
4384 char b[false == 0 ? 1 : -1]; | |
4385 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | |
4386 char d[(bool) -0.5 == true ? 1 : -1]; | |
4387 bool e = &s; | |
4388 char f[(_Bool) -0.0 == false ? 1 : -1]; | |
4389 char g[true]; | |
4390 char h[sizeof (_Bool)]; | |
4391 char i[sizeof s.t]; | |
4392 | |
4393 int | |
4394 main () | |
4395 { | |
4396 return !a + !b + !c + !d + !e + !f + !g + !h + !i; | |
4397 ; | |
4398 return 0; | |
4399 } | |
4400 _ACEOF | |
4401 rm -f conftest.$ac_objext | |
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4403 (eval $ac_compile) 2>conftest.er1 | |
4404 ac_status=$? | |
4405 grep -v '^ *+' conftest.er1 >conftest.err | |
4406 rm -f conftest.er1 | |
4407 cat conftest.err >&5 | |
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4409 (exit $ac_status); } && | |
4410 { ac_try='test -z "$ac_c_werror_flag" | |
4411 || test ! -s conftest.err' | |
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4413 (eval $ac_try) 2>&5 | |
4414 ac_status=$? | |
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4416 (exit $ac_status); }; } && | |
4417 { ac_try='test -s conftest.$ac_objext' | |
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4419 (eval $ac_try) 2>&5 | |
4420 ac_status=$? | |
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4422 (exit $ac_status); }; }; then | |
4423 ac_cv_header_stdbool_h=yes | |
4424 else | |
4425 echo "$as_me: failed program was:" >&5 | |
4426 sed 's/^/| /' conftest.$ac_ext >&5 | |
4427 | |
4428 ac_cv_header_stdbool_h=no | |
4429 fi | |
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4431 fi | |
4432 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 | |
4433 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 | |
4434 echo "$as_me:$LINENO: checking for _Bool" >&5 | |
4435 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 | |
4436 if test "${ac_cv_type__Bool+set}" = set; then | |
4437 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4438 else | |
4439 cat >conftest.$ac_ext <<_ACEOF | |
4440 /* confdefs.h. */ | |
4441 _ACEOF | |
4442 cat confdefs.h >>conftest.$ac_ext | |
4443 cat >>conftest.$ac_ext <<_ACEOF | |
4444 /* end confdefs.h. */ | |
4445 $ac_includes_default | |
4446 int | |
4447 main () | |
4448 { | |
4449 if ((_Bool *) 0) | |
4450 return 0; | |
4451 if (sizeof (_Bool)) | |
4452 return 0; | |
4453 ; | |
4454 return 0; | |
4455 } | |
4456 _ACEOF | |
4457 rm -f conftest.$ac_objext | |
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4459 (eval $ac_compile) 2>conftest.er1 | |
4460 ac_status=$? | |
4461 grep -v '^ *+' conftest.er1 >conftest.err | |
4462 rm -f conftest.er1 | |
4463 cat conftest.err >&5 | |
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4465 (exit $ac_status); } && | |
4466 { ac_try='test -z "$ac_c_werror_flag" | |
4467 || test ! -s conftest.err' | |
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4469 (eval $ac_try) 2>&5 | |
4470 ac_status=$? | |
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4472 (exit $ac_status); }; } && | |
4473 { ac_try='test -s conftest.$ac_objext' | |
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4475 (eval $ac_try) 2>&5 | |
4476 ac_status=$? | |
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4478 (exit $ac_status); }; }; then | |
4479 ac_cv_type__Bool=yes | |
4480 else | |
4481 echo "$as_me: failed program was:" >&5 | |
4482 sed 's/^/| /' conftest.$ac_ext >&5 | |
4483 | |
4484 ac_cv_type__Bool=no | |
4485 fi | |
4486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4487 fi | |
4488 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 | |
4489 echo "${ECHO_T}$ac_cv_type__Bool" >&6 | |
4490 if test $ac_cv_type__Bool = yes; then | |
4491 | |
4492 cat >>confdefs.h <<_ACEOF | |
4493 #define HAVE__BOOL 1 | |
4494 _ACEOF | |
4495 | |
4496 | |
4497 fi | |
4498 | |
4499 if test $ac_cv_header_stdbool_h = yes; then | |
4500 | |
4501 cat >>confdefs.h <<\_ACEOF | |
4502 #define HAVE_STDBOOL_H 1 | |
4503 _ACEOF | |
4504 | |
4505 fi | |
4506 | |
4507 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
4508 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4509 if test "${ac_cv_c_const+set}" = set; then | |
4510 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4511 else | |
4512 cat >conftest.$ac_ext <<_ACEOF | |
4513 /* confdefs.h. */ | |
4514 _ACEOF | |
4515 cat confdefs.h >>conftest.$ac_ext | |
4516 cat >>conftest.$ac_ext <<_ACEOF | |
4517 /* end confdefs.h. */ | |
4518 | |
4519 int | |
4520 main () | |
4521 { | |
4522 /* FIXME: Include the comments suggested by Paul. */ | |
4523 #ifndef __cplusplus | |
4524 /* Ultrix mips cc rejects this. */ | |
4525 typedef int charset[2]; | |
4526 const charset x; | |
4527 /* SunOS 4.1.1 cc rejects this. */ | |
4528 char const *const *ccp; | |
4529 char **p; | |
4530 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4531 struct point {int x, y;}; | |
4532 static struct point const zero = {0,0}; | |
4533 /* AIX XL C 1.02.0.0 rejects this. | |
4534 It does not let you subtract one const X* pointer from another in | |
4535 an arm of an if-expression whose if-part is not a constant | |
4536 expression */ | |
4537 const char *g = "string"; | |
4538 ccp = &g + (g ? g-g : 0); | |
4539 /* HPUX 7.0 cc rejects these. */ | |
4540 ++ccp; | |
4541 p = (char**) ccp; | |
4542 ccp = (char const *const *) p; | |
4543 { /* SCO 3.2v4 cc rejects this. */ | |
4544 char *t; | |
4545 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4546 | |
4547 *t++ = 0; | |
4548 } | |
4549 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4550 int x[] = {25, 17}; | |
4551 const int *foo = &x[0]; | |
4552 ++foo; | |
4553 } | |
4554 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4555 typedef const int *iptr; | |
4556 iptr p = 0; | |
4557 ++p; | |
4558 } | |
4559 { /* AIX XL C 1.02.0.0 rejects this saying | |
4560 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4561 struct s { int j; const int *ap[3]; }; | |
4562 struct s *b; b->j = 5; | |
4563 } | |
4564 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4565 const int foo = 10; | |
4566 } | |
4567 #endif | |
4568 | |
4569 ; | |
4570 return 0; | |
4571 } | |
4572 _ACEOF | |
4573 rm -f conftest.$ac_objext | |
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4575 (eval $ac_compile) 2>conftest.er1 | |
4576 ac_status=$? | |
4577 grep -v '^ *+' conftest.er1 >conftest.err | |
4578 rm -f conftest.er1 | |
4579 cat conftest.err >&5 | |
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4581 (exit $ac_status); } && | |
4582 { ac_try='test -z "$ac_c_werror_flag" | |
4583 || test ! -s conftest.err' | |
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4585 (eval $ac_try) 2>&5 | |
4586 ac_status=$? | |
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4588 (exit $ac_status); }; } && | |
4589 { ac_try='test -s conftest.$ac_objext' | |
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4591 (eval $ac_try) 2>&5 | |
4592 ac_status=$? | |
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4594 (exit $ac_status); }; }; then | |
4595 ac_cv_c_const=yes | |
4596 else | |
4597 echo "$as_me: failed program was:" >&5 | |
4598 sed 's/^/| /' conftest.$ac_ext >&5 | |
4599 | |
4600 ac_cv_c_const=no | |
4601 fi | |
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4603 fi | |
4604 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
4605 echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4606 if test $ac_cv_c_const = no; then | |
4607 | |
4608 cat >>confdefs.h <<\_ACEOF | |
4609 #define const | |
4610 _ACEOF | |
4611 | |
4612 fi | |
4613 | |
4614 | |
4615 # Checks for library functions. | |
4616 echo "$as_me:$LINENO: checking for pid_t" >&5 | |
4617 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4618 if test "${ac_cv_type_pid_t+set}" = set; then | |
4619 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4620 else | |
4621 cat >conftest.$ac_ext <<_ACEOF | |
4622 /* confdefs.h. */ | |
4623 _ACEOF | |
4624 cat confdefs.h >>conftest.$ac_ext | |
4625 cat >>conftest.$ac_ext <<_ACEOF | |
4626 /* end confdefs.h. */ | |
4627 $ac_includes_default | |
4628 int | |
4629 main () | |
4630 { | |
4631 if ((pid_t *) 0) | |
4632 return 0; | |
4633 if (sizeof (pid_t)) | |
4634 return 0; | |
4635 ; | |
4636 return 0; | |
4637 } | |
4638 _ACEOF | |
4639 rm -f conftest.$ac_objext | |
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4641 (eval $ac_compile) 2>conftest.er1 | |
4642 ac_status=$? | |
4643 grep -v '^ *+' conftest.er1 >conftest.err | |
4644 rm -f conftest.er1 | |
4645 cat conftest.err >&5 | |
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4647 (exit $ac_status); } && | |
4648 { ac_try='test -z "$ac_c_werror_flag" | |
4649 || test ! -s conftest.err' | |
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4651 (eval $ac_try) 2>&5 | |
4652 ac_status=$? | |
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4654 (exit $ac_status); }; } && | |
4655 { ac_try='test -s conftest.$ac_objext' | |
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4657 (eval $ac_try) 2>&5 | |
4658 ac_status=$? | |
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4660 (exit $ac_status); }; }; then | |
4661 ac_cv_type_pid_t=yes | |
4662 else | |
4663 echo "$as_me: failed program was:" >&5 | |
4664 sed 's/^/| /' conftest.$ac_ext >&5 | |
4665 | |
4666 ac_cv_type_pid_t=no | |
4667 fi | |
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4669 fi | |
4670 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
4671 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4672 if test $ac_cv_type_pid_t = yes; then | |
4673 : | |
4674 else | |
4675 | |
4676 cat >>confdefs.h <<_ACEOF | |
4677 #define pid_t int | |
4678 _ACEOF | |
4679 | |
4680 fi | |
4681 | |
4682 | |
4683 | |
4684 for ac_header in unistd.h vfork.h | |
4685 do | |
4686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4687 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4688 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4690 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4691 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4692 fi | |
4693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4695 else | |
4696 # Is the header compilable? | |
4697 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4699 cat >conftest.$ac_ext <<_ACEOF | |
4700 /* confdefs.h. */ | |
4701 _ACEOF | |
4702 cat confdefs.h >>conftest.$ac_ext | |
4703 cat >>conftest.$ac_ext <<_ACEOF | |
4704 /* end confdefs.h. */ | |
4705 $ac_includes_default | |
4706 #include <$ac_header> | |
4707 _ACEOF | |
4708 rm -f conftest.$ac_objext | |
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4710 (eval $ac_compile) 2>conftest.er1 | |
4711 ac_status=$? | |
4712 grep -v '^ *+' conftest.er1 >conftest.err | |
4713 rm -f conftest.er1 | |
4714 cat conftest.err >&5 | |
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4716 (exit $ac_status); } && | |
4717 { ac_try='test -z "$ac_c_werror_flag" | |
4718 || test ! -s conftest.err' | |
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4720 (eval $ac_try) 2>&5 | |
4721 ac_status=$? | |
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4723 (exit $ac_status); }; } && | |
4724 { ac_try='test -s conftest.$ac_objext' | |
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4726 (eval $ac_try) 2>&5 | |
4727 ac_status=$? | |
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4729 (exit $ac_status); }; }; then | |
4730 ac_header_compiler=yes | |
4731 else | |
4732 echo "$as_me: failed program was:" >&5 | |
4733 sed 's/^/| /' conftest.$ac_ext >&5 | |
4734 | |
4735 ac_header_compiler=no | |
4736 fi | |
4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4739 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4740 | |
4741 # Is the header present? | |
4742 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4744 cat >conftest.$ac_ext <<_ACEOF | |
4745 /* confdefs.h. */ | |
4746 _ACEOF | |
4747 cat confdefs.h >>conftest.$ac_ext | |
4748 cat >>conftest.$ac_ext <<_ACEOF | |
4749 /* end confdefs.h. */ | |
4750 #include <$ac_header> | |
4751 _ACEOF | |
4752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4754 ac_status=$? | |
4755 grep -v '^ *+' conftest.er1 >conftest.err | |
4756 rm -f conftest.er1 | |
4757 cat conftest.err >&5 | |
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4759 (exit $ac_status); } >/dev/null; then | |
4760 if test -s conftest.err; then | |
4761 ac_cpp_err=$ac_c_preproc_warn_flag | |
4762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4763 else | |
4764 ac_cpp_err= | |
4765 fi | |
4766 else | |
4767 ac_cpp_err=yes | |
4768 fi | |
4769 if test -z "$ac_cpp_err"; then | |
4770 ac_header_preproc=yes | |
4771 else | |
4772 echo "$as_me: failed program was:" >&5 | |
4773 sed 's/^/| /' conftest.$ac_ext >&5 | |
4774 | |
4775 ac_header_preproc=no | |
4776 fi | |
4777 rm -f conftest.err conftest.$ac_ext | |
4778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4779 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4780 | |
4781 # So? What about this header? | |
4782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4783 yes:no: ) | |
4784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4788 ac_header_preproc=yes | |
4789 ;; | |
4790 no:yes:* ) | |
4791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4803 ( | |
4804 cat <<\_ASBOX | |
4805 ## ----------------------------------- ## | |
4806 ## Report this to carl@five-ten-sg.com ## | |
4807 ## ----------------------------------- ## | |
4808 _ASBOX | |
4809 ) | | |
4810 sed "s/^/$as_me: WARNING: /" >&2 | |
4811 ;; | |
4812 esac | |
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4816 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4817 else | |
4818 eval "$as_ac_Header=\$ac_header_preproc" | |
4819 fi | |
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4822 | |
4823 fi | |
4824 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4825 cat >>confdefs.h <<_ACEOF | |
4826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4827 _ACEOF | |
4828 | |
4829 fi | |
4830 | |
4831 done | |
4832 | |
4833 | |
4834 | |
4835 for ac_func in fork vfork | |
4836 do | |
4837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4838 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4840 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4841 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4842 else | |
4843 cat >conftest.$ac_ext <<_ACEOF | |
4844 /* confdefs.h. */ | |
4845 _ACEOF | |
4846 cat confdefs.h >>conftest.$ac_ext | |
4847 cat >>conftest.$ac_ext <<_ACEOF | |
4848 /* end confdefs.h. */ | |
4849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4850 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4851 #define $ac_func innocuous_$ac_func | |
4852 | |
4853 /* System header to define __stub macros and hopefully few prototypes, | |
4854 which can conflict with char $ac_func (); below. | |
4855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4856 <limits.h> exists even on freestanding compilers. */ | |
4857 | |
4858 #ifdef __STDC__ | |
4859 # include <limits.h> | |
4860 #else | |
4861 # include <assert.h> | |
4862 #endif | |
4863 | |
4864 #undef $ac_func | |
4865 | |
4866 /* Override any gcc2 internal prototype to avoid an error. */ | |
4867 #ifdef __cplusplus | |
4868 extern "C" | |
4869 { | |
4870 #endif | |
4871 /* We use char because int might match the return type of a gcc2 | |
4872 builtin and then its argument prototype would still apply. */ | |
4873 char $ac_func (); | |
4874 /* The GNU C library defines this for functions which it implements | |
4875 to always fail with ENOSYS. Some functions are actually named | |
4876 something starting with __ and the normal name is an alias. */ | |
4877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4878 choke me | |
4879 #else | |
4880 char (*f) () = $ac_func; | |
4881 #endif | |
4882 #ifdef __cplusplus | |
4883 } | |
4884 #endif | |
4885 | |
4886 int | |
4887 main () | |
4888 { | |
4889 return f != $ac_func; | |
4890 ; | |
4891 return 0; | |
4892 } | |
4893 _ACEOF | |
4894 rm -f conftest.$ac_objext conftest$ac_exeext | |
4895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4896 (eval $ac_link) 2>conftest.er1 | |
4897 ac_status=$? | |
4898 grep -v '^ *+' conftest.er1 >conftest.err | |
4899 rm -f conftest.er1 | |
4900 cat conftest.err >&5 | |
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4902 (exit $ac_status); } && | |
4903 { ac_try='test -z "$ac_c_werror_flag" | |
4904 || test ! -s conftest.err' | |
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4906 (eval $ac_try) 2>&5 | |
4907 ac_status=$? | |
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4909 (exit $ac_status); }; } && | |
4910 { ac_try='test -s conftest$ac_exeext' | |
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4912 (eval $ac_try) 2>&5 | |
4913 ac_status=$? | |
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4915 (exit $ac_status); }; }; then | |
4916 eval "$as_ac_var=yes" | |
4917 else | |
4918 echo "$as_me: failed program was:" >&5 | |
4919 sed 's/^/| /' conftest.$ac_ext >&5 | |
4920 | |
4921 eval "$as_ac_var=no" | |
4922 fi | |
4923 rm -f conftest.err conftest.$ac_objext \ | |
4924 conftest$ac_exeext conftest.$ac_ext | |
4925 fi | |
4926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4928 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4929 cat >>confdefs.h <<_ACEOF | |
4930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4931 _ACEOF | |
4932 | |
4933 fi | |
4934 done | |
4935 | |
4936 if test "x$ac_cv_func_fork" = xyes; then | |
4937 echo "$as_me:$LINENO: checking for working fork" >&5 | |
4938 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
4939 if test "${ac_cv_func_fork_works+set}" = set; then | |
4940 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4941 else | |
4942 if test "$cross_compiling" = yes; then | |
4943 ac_cv_func_fork_works=cross | |
4944 else | |
4945 cat >conftest.$ac_ext <<_ACEOF | |
4946 /* By Ruediger Kuhlmann. */ | |
4947 #include <sys/types.h> | |
4948 #if HAVE_UNISTD_H | |
4949 # include <unistd.h> | |
4950 #endif | |
4951 /* Some systems only have a dummy stub for fork() */ | |
4952 int main () | |
4953 { | |
4954 if (fork() < 0) | |
4955 exit (1); | |
4956 exit (0); | |
4957 } | |
4958 _ACEOF | |
4959 rm -f conftest$ac_exeext | |
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4961 (eval $ac_link) 2>&5 | |
4962 ac_status=$? | |
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4966 (eval $ac_try) 2>&5 | |
4967 ac_status=$? | |
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4969 (exit $ac_status); }; }; then | |
4970 ac_cv_func_fork_works=yes | |
4971 else | |
4972 echo "$as_me: program exited with status $ac_status" >&5 | |
4973 echo "$as_me: failed program was:" >&5 | |
4974 sed 's/^/| /' conftest.$ac_ext >&5 | |
4975 | |
4976 ( exit $ac_status ) | |
4977 ac_cv_func_fork_works=no | |
4978 fi | |
4979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4980 fi | |
4981 fi | |
4982 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
4983 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
4984 | |
4985 else | |
4986 ac_cv_func_fork_works=$ac_cv_func_fork | |
4987 fi | |
4988 if test "x$ac_cv_func_fork_works" = xcross; then | |
4989 case $host in | |
4990 *-*-amigaos* | *-*-msdosdjgpp*) | |
4991 # Override, as these systems have only a dummy fork() stub | |
4992 ac_cv_func_fork_works=no | |
4993 ;; | |
4994 *) | |
4995 ac_cv_func_fork_works=yes | |
4996 ;; | |
4997 esac | |
4998 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
4999 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5000 fi | |
5001 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5002 if test "x$ac_cv_func_vfork" = xyes; then | |
5003 echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5004 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5005 if test "${ac_cv_func_vfork_works+set}" = set; then | |
5006 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5007 else | |
5008 if test "$cross_compiling" = yes; then | |
5009 ac_cv_func_vfork_works=cross | |
5010 else | |
5011 cat >conftest.$ac_ext <<_ACEOF | |
5012 /* confdefs.h. */ | |
5013 _ACEOF | |
5014 cat confdefs.h >>conftest.$ac_ext | |
5015 cat >>conftest.$ac_ext <<_ACEOF | |
5016 /* end confdefs.h. */ | |
5017 /* Thanks to Paul Eggert for this test. */ | |
5018 #include <stdio.h> | |
5019 #include <stdlib.h> | |
5020 #include <sys/types.h> | |
5021 #include <sys/stat.h> | |
5022 #include <sys/wait.h> | |
5023 #if HAVE_UNISTD_H | |
5024 # include <unistd.h> | |
5025 #endif | |
5026 #if HAVE_VFORK_H | |
5027 # include <vfork.h> | |
5028 #endif | |
5029 /* On some sparc systems, changes by the child to local and incoming | |
5030 argument registers are propagated back to the parent. The compiler | |
5031 is told about this with #include <vfork.h>, but some compilers | |
5032 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5033 static variable whose address is put into a register that is | |
5034 clobbered by the vfork. */ | |
5035 static void | |
5036 #ifdef __cplusplus | |
5037 sparc_address_test (int arg) | |
5038 # else | |
5039 sparc_address_test (arg) int arg; | |
5040 #endif | |
5041 { | |
5042 static pid_t child; | |
5043 if (!child) { | |
5044 child = vfork (); | |
5045 if (child < 0) { | |
5046 perror ("vfork"); | |
5047 _exit(2); | |
5048 } | |
5049 if (!child) { | |
5050 arg = getpid(); | |
5051 write(-1, "", 0); | |
5052 _exit (arg); | |
5053 } | |
5054 } | |
5055 } | |
5056 | |
5057 int | |
5058 main () | |
5059 { | |
5060 pid_t parent = getpid (); | |
5061 pid_t child; | |
5062 | |
5063 sparc_address_test (0); | |
5064 | |
5065 child = vfork (); | |
5066 | |
5067 if (child == 0) { | |
5068 /* Here is another test for sparc vfork register problems. This | |
5069 test uses lots of local variables, at least as many local | |
5070 variables as main has allocated so far including compiler | |
5071 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5072 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5073 reuse the register of parent for one of the local variables, | |
5074 since it will think that parent can't possibly be used any more | |
5075 in this routine. Assigning to the local variable will thus | |
5076 munge parent in the parent process. */ | |
5077 pid_t | |
5078 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5079 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5080 /* Convince the compiler that p..p7 are live; otherwise, it might | |
5081 use the same hardware register for all 8 local variables. */ | |
5082 if (p != p1 || p != p2 || p != p3 || p != p4 | |
5083 || p != p5 || p != p6 || p != p7) | |
5084 _exit(1); | |
5085 | |
5086 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5087 from child file descriptors. If the child closes a descriptor | |
5088 before it execs or exits, this munges the parent's descriptor | |
5089 as well. Test for this by closing stdout in the child. */ | |
5090 _exit(close(fileno(stdout)) != 0); | |
5091 } else { | |
5092 int status; | |
5093 struct stat st; | |
5094 | |
5095 while (wait(&status) != child) | |
5096 ; | |
5097 exit( | |
5098 /* Was there some problem with vforking? */ | |
5099 child < 0 | |
5100 | |
5101 /* Did the child fail? (This shouldn't happen.) */ | |
5102 || status | |
5103 | |
5104 /* Did the vfork/compiler bug occur? */ | |
5105 || parent != getpid() | |
5106 | |
5107 /* Did the file descriptor bug occur? */ | |
5108 || fstat(fileno(stdout), &st) != 0 | |
5109 ); | |
5110 } | |
5111 } | |
5112 _ACEOF | |
5113 rm -f conftest$ac_exeext | |
5114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5115 (eval $ac_link) 2>&5 | |
5116 ac_status=$? | |
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5120 (eval $ac_try) 2>&5 | |
5121 ac_status=$? | |
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5123 (exit $ac_status); }; }; then | |
5124 ac_cv_func_vfork_works=yes | |
5125 else | |
5126 echo "$as_me: program exited with status $ac_status" >&5 | |
5127 echo "$as_me: failed program was:" >&5 | |
5128 sed 's/^/| /' conftest.$ac_ext >&5 | |
5129 | |
5130 ( exit $ac_status ) | |
5131 ac_cv_func_vfork_works=no | |
5132 fi | |
5133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5134 fi | |
5135 fi | |
5136 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5137 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5138 | |
5139 fi; | |
5140 if test "x$ac_cv_func_fork_works" = xcross; then | |
5141 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5142 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5143 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5144 fi | |
5145 | |
5146 if test "x$ac_cv_func_vfork_works" = xyes; then | |
5147 | |
5148 cat >>confdefs.h <<\_ACEOF | |
5149 #define HAVE_WORKING_VFORK 1 | |
5150 _ACEOF | |
5151 | |
5152 else | |
5153 | |
5154 cat >>confdefs.h <<\_ACEOF | |
5155 #define vfork fork | |
5156 _ACEOF | |
5157 | |
5158 fi | |
5159 if test "x$ac_cv_func_fork_works" = xyes; then | |
5160 | |
5161 cat >>confdefs.h <<\_ACEOF | |
5162 #define HAVE_WORKING_FORK 1 | |
5163 _ACEOF | |
5164 | |
5165 fi | |
5166 | |
5167 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | |
5168 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 | |
5169 if test "${ac_cv_func_getpgrp_void+set}" = set; then | |
5170 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5171 else | |
5172 # Use it with a single arg. | |
5173 cat >conftest.$ac_ext <<_ACEOF | |
5174 /* confdefs.h. */ | |
5175 _ACEOF | |
5176 cat confdefs.h >>conftest.$ac_ext | |
5177 cat >>conftest.$ac_ext <<_ACEOF | |
5178 /* end confdefs.h. */ | |
5179 $ac_includes_default | |
5180 int | |
5181 main () | |
5182 { | |
5183 getpgrp (0); | |
5184 ; | |
5185 return 0; | |
5186 } | |
5187 _ACEOF | |
5188 rm -f conftest.$ac_objext | |
5189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5190 (eval $ac_compile) 2>conftest.er1 | |
5191 ac_status=$? | |
5192 grep -v '^ *+' conftest.er1 >conftest.err | |
5193 rm -f conftest.er1 | |
5194 cat conftest.err >&5 | |
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5196 (exit $ac_status); } && | |
5197 { ac_try='test -z "$ac_c_werror_flag" | |
5198 || test ! -s conftest.err' | |
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); }; } && | |
5204 { ac_try='test -s conftest.$ac_objext' | |
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5206 (eval $ac_try) 2>&5 | |
5207 ac_status=$? | |
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5209 (exit $ac_status); }; }; then | |
5210 ac_cv_func_getpgrp_void=no | |
5211 else | |
5212 echo "$as_me: failed program was:" >&5 | |
5213 sed 's/^/| /' conftest.$ac_ext >&5 | |
5214 | |
5215 ac_cv_func_getpgrp_void=yes | |
5216 fi | |
5217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5218 | |
5219 fi | |
5220 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | |
5221 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 | |
5222 if test $ac_cv_func_getpgrp_void = yes; then | |
5223 | |
5224 cat >>confdefs.h <<\_ACEOF | |
5225 #define GETPGRP_VOID 1 | |
5226 _ACEOF | |
5227 | |
5228 fi | |
5229 | |
5230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5232 if test "${ac_cv_header_stdc+set}" = set; then | |
5233 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5234 else | |
5235 cat >conftest.$ac_ext <<_ACEOF | |
5236 /* confdefs.h. */ | |
5237 _ACEOF | |
5238 cat confdefs.h >>conftest.$ac_ext | |
5239 cat >>conftest.$ac_ext <<_ACEOF | |
5240 /* end confdefs.h. */ | |
5241 #include <stdlib.h> | |
5242 #include <stdarg.h> | |
5243 #include <string.h> | |
5244 #include <float.h> | |
5245 | |
5246 int | |
5247 main () | |
5248 { | |
5249 | |
5250 ; | |
5251 return 0; | |
5252 } | |
5253 _ACEOF | |
5254 rm -f conftest.$ac_objext | |
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5256 (eval $ac_compile) 2>conftest.er1 | |
5257 ac_status=$? | |
5258 grep -v '^ *+' conftest.er1 >conftest.err | |
5259 rm -f conftest.er1 | |
5260 cat conftest.err >&5 | |
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5262 (exit $ac_status); } && | |
5263 { ac_try='test -z "$ac_c_werror_flag" | |
5264 || test ! -s conftest.err' | |
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5266 (eval $ac_try) 2>&5 | |
5267 ac_status=$? | |
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5269 (exit $ac_status); }; } && | |
5270 { ac_try='test -s conftest.$ac_objext' | |
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5272 (eval $ac_try) 2>&5 | |
5273 ac_status=$? | |
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5275 (exit $ac_status); }; }; then | |
5276 ac_cv_header_stdc=yes | |
5277 else | |
5278 echo "$as_me: failed program was:" >&5 | |
5279 sed 's/^/| /' conftest.$ac_ext >&5 | |
5280 | |
5281 ac_cv_header_stdc=no | |
5282 fi | |
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5284 | |
5285 if test $ac_cv_header_stdc = yes; then | |
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5287 cat >conftest.$ac_ext <<_ACEOF | |
5288 /* confdefs.h. */ | |
5289 _ACEOF | |
5290 cat confdefs.h >>conftest.$ac_ext | |
5291 cat >>conftest.$ac_ext <<_ACEOF | |
5292 /* end confdefs.h. */ | |
5293 #include <string.h> | |
5294 | |
5295 _ACEOF | |
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5297 $EGREP "memchr" >/dev/null 2>&1; then | |
5298 : | |
5299 else | |
5300 ac_cv_header_stdc=no | |
5301 fi | |
5302 rm -f conftest* | |
5303 | |
5304 fi | |
5305 | |
5306 if test $ac_cv_header_stdc = yes; then | |
5307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5308 cat >conftest.$ac_ext <<_ACEOF | |
5309 /* confdefs.h. */ | |
5310 _ACEOF | |
5311 cat confdefs.h >>conftest.$ac_ext | |
5312 cat >>conftest.$ac_ext <<_ACEOF | |
5313 /* end confdefs.h. */ | |
5314 #include <stdlib.h> | |
5315 | |
5316 _ACEOF | |
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5318 $EGREP "free" >/dev/null 2>&1; then | |
5319 : | |
5320 else | |
5321 ac_cv_header_stdc=no | |
5322 fi | |
5323 rm -f conftest* | |
5324 | |
5325 fi | |
5326 | |
5327 if test $ac_cv_header_stdc = yes; then | |
5328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5329 if test "$cross_compiling" = yes; then | |
5330 : | |
5331 else | |
5332 cat >conftest.$ac_ext <<_ACEOF | |
5333 /* confdefs.h. */ | |
5334 _ACEOF | |
5335 cat confdefs.h >>conftest.$ac_ext | |
5336 cat >>conftest.$ac_ext <<_ACEOF | |
5337 /* end confdefs.h. */ | |
5338 #include <ctype.h> | |
5339 #if ((' ' & 0x0FF) == 0x020) | |
5340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5342 #else | |
5343 # define ISLOWER(c) \ | |
5344 (('a' <= (c) && (c) <= 'i') \ | |
5345 || ('j' <= (c) && (c) <= 'r') \ | |
5346 || ('s' <= (c) && (c) <= 'z')) | |
5347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5348 #endif | |
5349 | |
5350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5351 int | |
5352 main () | |
5353 { | |
5354 int i; | |
5355 for (i = 0; i < 256; i++) | |
5356 if (XOR (islower (i), ISLOWER (i)) | |
5357 || toupper (i) != TOUPPER (i)) | |
5358 exit(2); | |
5359 exit (0); | |
5360 } | |
5361 _ACEOF | |
5362 rm -f conftest$ac_exeext | |
5363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5364 (eval $ac_link) 2>&5 | |
5365 ac_status=$? | |
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5369 (eval $ac_try) 2>&5 | |
5370 ac_status=$? | |
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5372 (exit $ac_status); }; }; then | |
5373 : | |
5374 else | |
5375 echo "$as_me: program exited with status $ac_status" >&5 | |
5376 echo "$as_me: failed program was:" >&5 | |
5377 sed 's/^/| /' conftest.$ac_ext >&5 | |
5378 | |
5379 ( exit $ac_status ) | |
5380 ac_cv_header_stdc=no | |
5381 fi | |
5382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5383 fi | |
5384 fi | |
5385 fi | |
5386 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5387 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5388 if test $ac_cv_header_stdc = yes; then | |
5389 | |
5390 cat >>confdefs.h <<\_ACEOF | |
5391 #define STDC_HEADERS 1 | |
5392 _ACEOF | |
5393 | |
5394 fi | |
5395 | |
5396 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5397 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5398 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5399 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5400 else | |
5401 rm -f conftest.sym conftest.file | |
5402 echo >conftest.file | |
5403 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5404 if test "$cross_compiling" = yes; then | |
5405 ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5406 else | |
5407 cat >conftest.$ac_ext <<_ACEOF | |
5408 /* confdefs.h. */ | |
5409 _ACEOF | |
5410 cat confdefs.h >>conftest.$ac_ext | |
5411 cat >>conftest.$ac_ext <<_ACEOF | |
5412 /* end confdefs.h. */ | |
5413 $ac_includes_default | |
5414 int | |
5415 main () | |
5416 { | |
5417 struct stat sbuf; | |
5418 /* Linux will dereference the symlink and fail. | |
5419 That is better in the sense that it means we will not | |
5420 have to compile and use the lstat wrapper. */ | |
5421 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); | |
5422 ; | |
5423 return 0; | |
5424 } | |
5425 _ACEOF | |
5426 rm -f conftest$ac_exeext | |
5427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5428 (eval $ac_link) 2>&5 | |
5429 ac_status=$? | |
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5433 (eval $ac_try) 2>&5 | |
5434 ac_status=$? | |
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5436 (exit $ac_status); }; }; then | |
5437 ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
5438 else | |
5439 echo "$as_me: program exited with status $ac_status" >&5 | |
5440 echo "$as_me: failed program was:" >&5 | |
5441 sed 's/^/| /' conftest.$ac_ext >&5 | |
5442 | |
5443 ( exit $ac_status ) | |
5444 ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5445 fi | |
5446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5447 fi | |
5448 else | |
5449 # If the `ln -s' command failed, then we probably don't even | |
5450 # have an lstat function. | |
5451 ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5452 fi | |
5453 rm -f conftest.sym conftest.file | |
5454 | |
5455 fi | |
5456 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5457 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
5458 | |
5459 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
5460 | |
5461 cat >>confdefs.h <<_ACEOF | |
5462 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5463 _ACEOF | |
5464 | |
5465 | |
5466 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
5467 case $LIBOBJS in | |
5468 "lstat.$ac_objext" | \ | |
5469 *" lstat.$ac_objext" | \ | |
5470 "lstat.$ac_objext "* | \ | |
5471 *" lstat.$ac_objext "* ) ;; | |
5472 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
5473 esac | |
5474 | |
5475 fi | |
5476 | |
5477 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
5478 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
5479 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
5480 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5481 else | |
5482 if test "$cross_compiling" = yes; then | |
5483 ac_cv_func_stat_empty_string_bug=yes | |
5484 else | |
5485 cat >conftest.$ac_ext <<_ACEOF | |
5486 /* confdefs.h. */ | |
5487 _ACEOF | |
5488 cat confdefs.h >>conftest.$ac_ext | |
5489 cat >>conftest.$ac_ext <<_ACEOF | |
5490 /* end confdefs.h. */ | |
5491 $ac_includes_default | |
5492 int | |
5493 main () | |
5494 { | |
5495 struct stat sbuf; | |
5496 exit (stat ("", &sbuf) ? 1 : 0); | |
5497 ; | |
5498 return 0; | |
5499 } | |
5500 _ACEOF | |
5501 rm -f conftest$ac_exeext | |
5502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5503 (eval $ac_link) 2>&5 | |
5504 ac_status=$? | |
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5508 (eval $ac_try) 2>&5 | |
5509 ac_status=$? | |
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5511 (exit $ac_status); }; }; then | |
5512 ac_cv_func_stat_empty_string_bug=yes | |
5513 else | |
5514 echo "$as_me: program exited with status $ac_status" >&5 | |
5515 echo "$as_me: failed program was:" >&5 | |
5516 sed 's/^/| /' conftest.$ac_ext >&5 | |
5517 | |
5518 ( exit $ac_status ) | |
5519 ac_cv_func_stat_empty_string_bug=no | |
5520 fi | |
5521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5522 fi | |
5523 fi | |
5524 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
5525 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
5526 if test $ac_cv_func_stat_empty_string_bug = yes; then | |
5527 case $LIBOBJS in | |
5528 "stat.$ac_objext" | \ | |
5529 *" stat.$ac_objext" | \ | |
5530 "stat.$ac_objext "* | \ | |
5531 *" stat.$ac_objext "* ) ;; | |
5532 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; | |
5533 esac | |
5534 | |
5535 | |
5536 cat >>confdefs.h <<_ACEOF | |
5537 #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
5538 _ACEOF | |
5539 | |
5540 fi | |
5541 | |
5542 | |
5543 | |
5544 | |
5545 | |
5546 | |
5547 | |
5548 | |
5549 | |
5550 | |
5551 for ac_func in daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol | |
5552 do | |
5553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5554 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5556 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5557 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5558 else | |
5559 cat >conftest.$ac_ext <<_ACEOF | |
5560 /* confdefs.h. */ | |
5561 _ACEOF | |
5562 cat confdefs.h >>conftest.$ac_ext | |
5563 cat >>conftest.$ac_ext <<_ACEOF | |
5564 /* end confdefs.h. */ | |
5565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5566 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5567 #define $ac_func innocuous_$ac_func | |
5568 | |
5569 /* System header to define __stub macros and hopefully few prototypes, | |
5570 which can conflict with char $ac_func (); below. | |
5571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5572 <limits.h> exists even on freestanding compilers. */ | |
5573 | |
5574 #ifdef __STDC__ | |
5575 # include <limits.h> | |
5576 #else | |
5577 # include <assert.h> | |
5578 #endif | |
5579 | |
5580 #undef $ac_func | |
5581 | |
5582 /* Override any gcc2 internal prototype to avoid an error. */ | |
5583 #ifdef __cplusplus | |
5584 extern "C" | |
5585 { | |
5586 #endif | |
5587 /* We use char because int might match the return type of a gcc2 | |
5588 builtin and then its argument prototype would still apply. */ | |
5589 char $ac_func (); | |
5590 /* The GNU C library defines this for functions which it implements | |
5591 to always fail with ENOSYS. Some functions are actually named | |
5592 something starting with __ and the normal name is an alias. */ | |
5593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5594 choke me | |
5595 #else | |
5596 char (*f) () = $ac_func; | |
5597 #endif | |
5598 #ifdef __cplusplus | |
5599 } | |
5600 #endif | |
5601 | |
5602 int | |
5603 main () | |
5604 { | |
5605 return f != $ac_func; | |
5606 ; | |
5607 return 0; | |
5608 } | |
5609 _ACEOF | |
5610 rm -f conftest.$ac_objext conftest$ac_exeext | |
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5612 (eval $ac_link) 2>conftest.er1 | |
5613 ac_status=$? | |
5614 grep -v '^ *+' conftest.er1 >conftest.err | |
5615 rm -f conftest.er1 | |
5616 cat conftest.err >&5 | |
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5618 (exit $ac_status); } && | |
5619 { ac_try='test -z "$ac_c_werror_flag" | |
5620 || test ! -s conftest.err' | |
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5622 (eval $ac_try) 2>&5 | |
5623 ac_status=$? | |
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5625 (exit $ac_status); }; } && | |
5626 { ac_try='test -s conftest$ac_exeext' | |
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5628 (eval $ac_try) 2>&5 | |
5629 ac_status=$? | |
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5631 (exit $ac_status); }; }; then | |
5632 eval "$as_ac_var=yes" | |
5633 else | |
5634 echo "$as_me: failed program was:" >&5 | |
5635 sed 's/^/| /' conftest.$ac_ext >&5 | |
5636 | |
5637 eval "$as_ac_var=no" | |
5638 fi | |
5639 rm -f conftest.err conftest.$ac_objext \ | |
5640 conftest$ac_exeext conftest.$ac_ext | |
5641 fi | |
5642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5644 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5645 cat >>confdefs.h <<_ACEOF | |
5646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5647 _ACEOF | |
5648 | |
5649 fi | |
5650 done | |
5651 | |
5652 | |
5653 # check for posix threads | |
5654 # Make sure we can run config.sub. | |
5655 $ac_config_sub sun4 >/dev/null 2>&1 || | |
5656 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
5657 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
5658 { (exit 1); exit 1; }; } | |
5659 | |
5660 echo "$as_me:$LINENO: checking build system type" >&5 | |
5661 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
5662 if test "${ac_cv_build+set}" = set; then | |
5663 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5664 else | |
5665 ac_cv_build_alias=$build_alias | |
5666 test -z "$ac_cv_build_alias" && | |
5667 ac_cv_build_alias=`$ac_config_guess` | |
5668 test -z "$ac_cv_build_alias" && | |
5669 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
5670 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
5671 { (exit 1); exit 1; }; } | |
5672 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
5673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
5674 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
5675 { (exit 1); exit 1; }; } | |
5676 | |
5677 fi | |
5678 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
5679 echo "${ECHO_T}$ac_cv_build" >&6 | |
5680 build=$ac_cv_build | |
5681 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5682 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5683 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5684 | |
5685 | |
5686 echo "$as_me:$LINENO: checking host system type" >&5 | |
5687 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
5688 if test "${ac_cv_host+set}" = set; then | |
5689 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5690 else | |
5691 ac_cv_host_alias=$host_alias | |
5692 test -z "$ac_cv_host_alias" && | |
5693 ac_cv_host_alias=$ac_cv_build_alias | |
5694 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
5695 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
5696 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
5697 { (exit 1); exit 1; }; } | |
5698 | |
5699 fi | |
5700 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
5701 echo "${ECHO_T}$ac_cv_host" >&6 | |
5702 host=$ac_cv_host | |
5703 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5704 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5705 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5706 | |
5707 | |
5708 | |
5709 | |
5710 | |
5711 | |
5712 ac_ext=c | |
5713 ac_cpp='$CPP $CPPFLAGS' | |
5714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5716 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5717 | |
5718 acx_pthread_ok=no | |
5719 | |
5720 # We used to check for pthread.h first, but this fails if pthread.h | |
5721 # requires special compiler flags (e.g. on True64 or Sequent). | |
5722 # It gets checked for in the link test anyway. | |
5723 | |
5724 # First of all, check if the user has set any of the PTHREAD_LIBS, | |
5725 # etcetera environment variables, and if threads linking works using | |
5726 # them: | |
5727 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
5728 save_CFLAGS="$CFLAGS" | |
5729 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
5730 save_LIBS="$LIBS" | |
5731 LIBS="$PTHREAD_LIBS $LIBS" | |
5732 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | |
5733 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6 | |
5734 cat >conftest.$ac_ext <<_ACEOF | |
5735 /* confdefs.h. */ | |
5736 _ACEOF | |
5737 cat confdefs.h >>conftest.$ac_ext | |
5738 cat >>conftest.$ac_ext <<_ACEOF | |
5739 /* end confdefs.h. */ | |
5740 | |
5741 /* Override any gcc2 internal prototype to avoid an error. */ | |
5742 #ifdef __cplusplus | |
5743 extern "C" | |
5744 #endif | |
5745 /* We use char because int might match the return type of a gcc2 | |
5746 builtin and then its argument prototype would still apply. */ | |
5747 char pthread_join (); | |
5748 int | |
5749 main () | |
5750 { | |
5751 pthread_join (); | |
5752 ; | |
5753 return 0; | |
5754 } | |
5755 _ACEOF | |
5756 rm -f conftest.$ac_objext conftest$ac_exeext | |
5757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5758 (eval $ac_link) 2>conftest.er1 | |
5759 ac_status=$? | |
5760 grep -v '^ *+' conftest.er1 >conftest.err | |
5761 rm -f conftest.er1 | |
5762 cat conftest.err >&5 | |
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5764 (exit $ac_status); } && | |
5765 { ac_try='test -z "$ac_c_werror_flag" | |
5766 || test ! -s conftest.err' | |
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5768 (eval $ac_try) 2>&5 | |
5769 ac_status=$? | |
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5771 (exit $ac_status); }; } && | |
5772 { ac_try='test -s conftest$ac_exeext' | |
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5774 (eval $ac_try) 2>&5 | |
5775 ac_status=$? | |
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5777 (exit $ac_status); }; }; then | |
5778 acx_pthread_ok=yes | |
5779 else | |
5780 echo "$as_me: failed program was:" >&5 | |
5781 sed 's/^/| /' conftest.$ac_ext >&5 | |
5782 | |
5783 fi | |
5784 rm -f conftest.err conftest.$ac_objext \ | |
5785 conftest$ac_exeext conftest.$ac_ext | |
5786 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | |
5787 echo "${ECHO_T}$acx_pthread_ok" >&6 | |
5788 if test x"$acx_pthread_ok" = xno; then | |
5789 PTHREAD_LIBS="" | |
5790 PTHREAD_CFLAGS="" | |
5791 fi | |
5792 LIBS="$save_LIBS" | |
5793 CFLAGS="$save_CFLAGS" | |
5794 fi | |
5795 | |
5796 # We must check for the threads library under a number of different | |
5797 # names; the ordering is very important because some systems | |
5798 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
5799 # libraries is broken (non-POSIX). | |
5800 | |
5801 # Create a list of thread flags to try. Items starting with a "-" are | |
5802 # C compiler flags, and other items are library names, except for "none" | |
5803 # which indicates that we try without any flags at all, and "pthread-config" | |
5804 # which is a program returning the flags for the Pth emulation library. | |
5805 | |
5806 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | |
5807 | |
5808 # The ordering *is* (sometimes) important. Some notes on the | |
5809 # individual items follow: | |
5810 | |
5811 # pthreads: AIX (must check this before -lpthread) | |
5812 # none: in case threads are in libc; should be tried before -Kthread and | |
5813 # other compiler flags to prevent continual compiler warnings | |
5814 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
5815 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
5816 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
5817 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | |
5818 # -pthreads: Solaris/gcc | |
5819 # -mthreads: Mingw32/gcc, Lynx/gcc | |
5820 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
5821 # doesn't hurt to check since this sometimes defines pthreads too; | |
5822 # also defines -D_REENTRANT) | |
5823 # ... -mt is also the pthreads flag for HP/aCC | |
5824 # pthread: Linux, etcetera | |
5825 # --thread-safe: KAI C++ | |
5826 # pthread-config: use pthread-config program (for GNU Pth library) | |
5827 | |
5828 case "${host_cpu}-${host_os}" in | |
5829 *solaris*) | |
5830 | |
5831 # On Solaris (at least, for some versions), libc contains stubbed | |
5832 # (non-functional) versions of the pthreads routines, so link-based | |
5833 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
5834 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
5835 # a function called by this macro, so we could check for that, but | |
5836 # who knows whether they'll stub that too in a future libc.) So, | |
5837 # we'll just look for -pthreads and -lpthread first: | |
5838 | |
5839 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" | |
5840 ;; | |
5841 esac | |
5842 | |
5843 if test x"$acx_pthread_ok" = xno; then | |
5844 for flag in $acx_pthread_flags; do | |
5845 | |
5846 case $flag in | |
5847 none) | |
5848 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
5849 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
5850 ;; | |
5851 | |
5852 -*) | |
5853 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
5854 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
5855 PTHREAD_CFLAGS="$flag" | |
5856 ;; | |
5857 | |
5858 pthread-config) | |
5859 # Extract the first word of "pthread-config", so it can be a program name with args. | |
5860 set dummy pthread-config; ac_word=$2 | |
5861 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5863 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then | |
5864 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5865 else | |
5866 if test -n "$acx_pthread_config"; then | |
5867 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. | |
5868 else | |
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5870 for as_dir in $PATH | |
5871 do | |
5872 IFS=$as_save_IFS | |
5873 test -z "$as_dir" && as_dir=. | |
5874 for ac_exec_ext in '' $ac_executable_extensions; do | |
5875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5876 ac_cv_prog_acx_pthread_config="yes" | |
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5878 break 2 | |
5879 fi | |
5880 done | |
5881 done | |
5882 | |
5883 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" | |
5884 fi | |
5885 fi | |
5886 acx_pthread_config=$ac_cv_prog_acx_pthread_config | |
5887 if test -n "$acx_pthread_config"; then | |
5888 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 | |
5889 echo "${ECHO_T}$acx_pthread_config" >&6 | |
5890 else | |
5891 echo "$as_me:$LINENO: result: no" >&5 | |
5892 echo "${ECHO_T}no" >&6 | |
5893 fi | |
5894 | |
5895 if test x"$acx_pthread_config" = xno; then continue; fi | |
5896 PTHREAD_CFLAGS="`pthread-config --cflags`" | |
5897 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
5898 ;; | |
5899 | |
5900 *) | |
5901 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
5902 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
5903 PTHREAD_LIBS="-l$flag" | |
5904 ;; | |
5905 esac | |
5906 | |
5907 save_LIBS="$LIBS" | |
5908 save_CFLAGS="$CFLAGS" | |
5909 LIBS="$PTHREAD_LIBS $LIBS" | |
5910 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
5911 | |
5912 # Check for various functions. We must include pthread.h, | |
5913 # since some functions may be macros. (On the Sequent, we | |
5914 # need a special flag -Kthread to make this header compile.) | |
5915 # We check for pthread_join because it is in -lpthread on IRIX | |
5916 # while pthread_create is in libc. We check for pthread_attr_init | |
5917 # due to DEC craziness with -lpthreads. We check for | |
5918 # pthread_cleanup_push because it is one of the few pthread | |
5919 # functions on Solaris that doesn't have a non-functional libc stub. | |
5920 # We try pthread_create on general principles. | |
5921 cat >conftest.$ac_ext <<_ACEOF | |
5922 /* confdefs.h. */ | |
5923 _ACEOF | |
5924 cat confdefs.h >>conftest.$ac_ext | |
5925 cat >>conftest.$ac_ext <<_ACEOF | |
5926 /* end confdefs.h. */ | |
5927 #include <pthread.h> | |
5928 int | |
5929 main () | |
5930 { | |
5931 pthread_t th; pthread_join(th, 0); | |
5932 pthread_attr_init(0); pthread_cleanup_push(0, 0); | |
5933 pthread_create(0,0,0,0); pthread_cleanup_pop(0); | |
5934 ; | |
5935 return 0; | |
5936 } | |
5937 _ACEOF | |
5938 rm -f conftest.$ac_objext conftest$ac_exeext | |
5939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5940 (eval $ac_link) 2>conftest.er1 | |
5941 ac_status=$? | |
5942 grep -v '^ *+' conftest.er1 >conftest.err | |
5943 rm -f conftest.er1 | |
5944 cat conftest.err >&5 | |
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 (exit $ac_status); } && | |
5947 { ac_try='test -z "$ac_c_werror_flag" | |
5948 || test ! -s conftest.err' | |
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5950 (eval $ac_try) 2>&5 | |
5951 ac_status=$? | |
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5953 (exit $ac_status); }; } && | |
5954 { ac_try='test -s conftest$ac_exeext' | |
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5956 (eval $ac_try) 2>&5 | |
5957 ac_status=$? | |
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5959 (exit $ac_status); }; }; then | |
5960 acx_pthread_ok=yes | |
5961 else | |
5962 echo "$as_me: failed program was:" >&5 | |
5963 sed 's/^/| /' conftest.$ac_ext >&5 | |
5964 | |
5965 fi | |
5966 rm -f conftest.err conftest.$ac_objext \ | |
5967 conftest$ac_exeext conftest.$ac_ext | |
5968 | |
5969 LIBS="$save_LIBS" | |
5970 CFLAGS="$save_CFLAGS" | |
5971 | |
5972 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | |
5973 echo "${ECHO_T}$acx_pthread_ok" >&6 | |
5974 if test "x$acx_pthread_ok" = xyes; then | |
5975 break; | |
5976 fi | |
5977 | |
5978 PTHREAD_LIBS="" | |
5979 PTHREAD_CFLAGS="" | |
5980 done | |
5981 fi | |
5982 | |
5983 # Various other checks: | |
5984 if test "x$acx_pthread_ok" = xyes; then | |
5985 save_LIBS="$LIBS" | |
5986 LIBS="$PTHREAD_LIBS $LIBS" | |
5987 save_CFLAGS="$CFLAGS" | |
5988 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
5989 | |
5990 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
5991 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 | |
5992 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6 | |
5993 attr_name=unknown | |
5994 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
5995 cat >conftest.$ac_ext <<_ACEOF | |
5996 /* confdefs.h. */ | |
5997 _ACEOF | |
5998 cat confdefs.h >>conftest.$ac_ext | |
5999 cat >>conftest.$ac_ext <<_ACEOF | |
6000 /* end confdefs.h. */ | |
6001 #include <pthread.h> | |
6002 int | |
6003 main () | |
6004 { | |
6005 int attr=$attr; return attr; | |
6006 ; | |
6007 return 0; | |
6008 } | |
6009 _ACEOF | |
6010 rm -f conftest.$ac_objext conftest$ac_exeext | |
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6012 (eval $ac_link) 2>conftest.er1 | |
6013 ac_status=$? | |
6014 grep -v '^ *+' conftest.er1 >conftest.err | |
6015 rm -f conftest.er1 | |
6016 cat conftest.err >&5 | |
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6018 (exit $ac_status); } && | |
6019 { ac_try='test -z "$ac_c_werror_flag" | |
6020 || test ! -s conftest.err' | |
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6022 (eval $ac_try) 2>&5 | |
6023 ac_status=$? | |
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6025 (exit $ac_status); }; } && | |
6026 { ac_try='test -s conftest$ac_exeext' | |
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6028 (eval $ac_try) 2>&5 | |
6029 ac_status=$? | |
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6031 (exit $ac_status); }; }; then | |
6032 attr_name=$attr; break | |
6033 else | |
6034 echo "$as_me: failed program was:" >&5 | |
6035 sed 's/^/| /' conftest.$ac_ext >&5 | |
6036 | |
6037 fi | |
6038 rm -f conftest.err conftest.$ac_objext \ | |
6039 conftest$ac_exeext conftest.$ac_ext | |
6040 done | |
6041 echo "$as_me:$LINENO: result: $attr_name" >&5 | |
6042 echo "${ECHO_T}$attr_name" >&6 | |
6043 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | |
6044 | |
6045 cat >>confdefs.h <<_ACEOF | |
6046 #define PTHREAD_CREATE_JOINABLE $attr_name | |
6047 _ACEOF | |
6048 | |
6049 fi | |
6050 | |
6051 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
6052 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
6053 flag=no | |
6054 case "${host_cpu}-${host_os}" in | |
6055 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | |
6056 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | |
6057 esac | |
6058 echo "$as_me:$LINENO: result: ${flag}" >&5 | |
6059 echo "${ECHO_T}${flag}" >&6 | |
6060 if test "x$flag" != xno; then | |
6061 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | |
6062 fi | |
6063 | |
6064 LIBS="$save_LIBS" | |
6065 CFLAGS="$save_CFLAGS" | |
6066 | |
6067 # More AIX lossage: must compile with xlc_r or cc_r | |
6068 if test x"$GCC" != xyes; then | |
6069 for ac_prog in xlc_r cc_r | |
6070 do | |
6071 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6072 set dummy $ac_prog; ac_word=$2 | |
6073 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6075 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then | |
6076 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6077 else | |
6078 if test -n "$PTHREAD_CC"; then | |
6079 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
6080 else | |
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6082 for as_dir in $PATH | |
6083 do | |
6084 IFS=$as_save_IFS | |
6085 test -z "$as_dir" && as_dir=. | |
6086 for ac_exec_ext in '' $ac_executable_extensions; do | |
6087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6088 ac_cv_prog_PTHREAD_CC="$ac_prog" | |
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6090 break 2 | |
6091 fi | |
6092 done | |
6093 done | |
6094 | |
6095 fi | |
6096 fi | |
6097 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
6098 if test -n "$PTHREAD_CC"; then | |
6099 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 | |
6100 echo "${ECHO_T}$PTHREAD_CC" >&6 | |
6101 else | |
6102 echo "$as_me:$LINENO: result: no" >&5 | |
6103 echo "${ECHO_T}no" >&6 | |
6104 fi | |
6105 | |
6106 test -n "$PTHREAD_CC" && break | |
6107 done | |
6108 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | |
6109 | |
6110 else | |
6111 PTHREAD_CC=$CC | |
6112 fi | |
6113 else | |
6114 PTHREAD_CC="$CC" | |
6115 fi | |
6116 | |
6117 | |
6118 | |
6119 | |
6120 | |
6121 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
6122 if test x"$acx_pthread_ok" = xyes; then | |
6123 | |
6124 cat >>confdefs.h <<\_ACEOF | |
6125 #define HAVE_PTHREAD 1 | |
6126 _ACEOF | |
6127 | |
6128 : | |
6129 else | |
6130 acx_pthread_ok=no | |
6131 | |
6132 fi | |
6133 ac_ext=c | |
6134 ac_cpp='$CPP $CPPFLAGS' | |
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6138 | |
6139 | |
6140 | |
6141 ac_config_files="$ac_config_files Makefile routeflapper.rc routeflapper.spec html/Makefile info/Makefile man/Makefile src/Makefile xml/Makefile xml/routeflapper" | |
6142 | |
6143 | |
6144 cat >confcache <<\_ACEOF | |
6145 # This file is a shell script that caches the results of configure | |
6146 # tests run on this system so they can be shared between configure | |
6147 # scripts and configure runs, see configure's option --config-cache. | |
6148 # It is not useful on other systems. If it contains results you don't | |
6149 # want to keep, you may remove or edit it. | |
6150 # | |
6151 # config.status only pays attention to the cache file if you give it | |
6152 # the --recheck option to rerun configure. | |
6153 # | |
6154 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6155 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6156 # following values. | |
6157 | |
6158 _ACEOF | |
6159 | |
6160 # The following way of writing the cache mishandles newlines in values, | |
6161 # but we know of no workaround that is simple, portable, and efficient. | |
6162 # So, don't put newlines in cache variables' values. | |
6163 # Ultrix sh set writes to stderr and can't be redirected directly, | |
6164 # and sets the high bit in the cache file unless we assign to the vars. | |
6165 { | |
6166 (set) 2>&1 | | |
6167 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6168 *ac_space=\ *) | |
6169 # `set' does not quote correctly, so add quotes (double-quote | |
6170 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6171 sed -n \ | |
6172 "s/'/'\\\\''/g; | |
6173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6174 ;; | |
6175 *) | |
6176 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6177 sed -n \ | |
6178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6179 ;; | |
6180 esac; | |
6181 } | | |
6182 sed ' | |
6183 t clear | |
6184 : clear | |
6185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6186 t end | |
6187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6188 : end' >>confcache | |
6189 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
6190 if test -w $cache_file; then | |
6191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6192 cat confcache >$cache_file | |
6193 else | |
6194 echo "not updating unwritable cache $cache_file" | |
6195 fi | |
6196 fi | |
6197 rm -f confcache | |
6198 | |
6199 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6200 # Let make expand exec_prefix. | |
6201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6202 | |
6203 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6205 # trailing colons and then remove the whole line if VPATH becomes empty | |
6206 # (actually we leave an empty line to preserve line numbers). | |
6207 if test "x$srcdir" = x.; then | |
6208 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6209 s/:*\$(srcdir):*/:/; | |
6210 s/:*\${srcdir}:*/:/; | |
6211 s/:*@srcdir@:*/:/; | |
6212 s/^\([^=]*=[ ]*\):*/\1/; | |
6213 s/:*$//; | |
6214 s/^[^=]*=[ ]*$//; | |
6215 }' | |
6216 fi | |
6217 | |
6218 DEFS=-DHAVE_CONFIG_H | |
6219 | |
6220 ac_libobjs= | |
6221 ac_ltlibobjs= | |
6222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6223 # 1. Remove the extension, and $U if already installed. | |
6224 ac_i=`echo "$ac_i" | | |
6225 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
6226 # 2. Add them. | |
6227 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6228 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6229 done | |
6230 LIBOBJS=$ac_libobjs | |
6231 | |
6232 LTLIBOBJS=$ac_ltlibobjs | |
6233 | |
6234 | |
6235 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
6236 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
6237 Usually this means the macro was only invoked conditionally." >&5 | |
6238 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
6239 Usually this means the macro was only invoked conditionally." >&2;} | |
6240 { (exit 1); exit 1; }; } | |
6241 fi | |
6242 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
6243 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
6244 Usually this means the macro was only invoked conditionally." >&5 | |
6245 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
6246 Usually this means the macro was only invoked conditionally." >&2;} | |
6247 { (exit 1); exit 1; }; } | |
6248 fi | |
6249 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6250 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
6251 Usually this means the macro was only invoked conditionally." >&5 | |
6252 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
6253 Usually this means the macro was only invoked conditionally." >&2;} | |
6254 { (exit 1); exit 1; }; } | |
6255 fi | |
6256 | |
6257 : ${CONFIG_STATUS=./config.status} | |
6258 ac_clean_files_save=$ac_clean_files | |
6259 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6260 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6261 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6262 cat >$CONFIG_STATUS <<_ACEOF | |
6263 #! $SHELL | |
6264 # Generated by $as_me. | |
6265 # Run this file to recreate the current configuration. | |
6266 # Compiler output produced by configure, useful for debugging | |
6267 # configure, is in config.log if it exists. | |
6268 | |
6269 debug=false | |
6270 ac_cs_recheck=false | |
6271 ac_cs_silent=false | |
6272 SHELL=\${CONFIG_SHELL-$SHELL} | |
6273 _ACEOF | |
6274 | |
6275 cat >>$CONFIG_STATUS <<\_ACEOF | |
6276 ## --------------------- ## | |
6277 ## M4sh Initialization. ## | |
6278 ## --------------------- ## | |
6279 | |
6280 # Be Bourne compatible | |
6281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6282 emulate sh | |
6283 NULLCMD=: | |
6284 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6285 # is contrary to our usage. Disable this feature. | |
6286 alias -g '${1+"$@"}'='"$@"' | |
6287 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
6288 set -o posix | |
6289 fi | |
6290 DUALCASE=1; export DUALCASE # for MKS sh | |
6291 | |
6292 # Support unset when possible. | |
6293 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6294 as_unset=unset | |
6295 else | |
6296 as_unset=false | |
6297 fi | |
6298 | |
6299 | |
6300 # Work around bugs in pre-3.0 UWIN ksh. | |
6301 $as_unset ENV MAIL MAILPATH | |
6302 PS1='$ ' | |
6303 PS2='> ' | |
6304 PS4='+ ' | |
6305 | |
6306 # NLS nuisances. | |
6307 for as_var in \ | |
6308 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6309 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6310 LC_TELEPHONE LC_TIME | |
6311 do | |
6312 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6313 eval $as_var=C; export $as_var | |
6314 else | |
6315 $as_unset $as_var | |
6316 fi | |
6317 done | |
6318 | |
6319 # Required to use basename. | |
6320 if expr a : '\(a\)' >/dev/null 2>&1; then | |
6321 as_expr=expr | |
6322 else | |
6323 as_expr=false | |
6324 fi | |
6325 | |
6326 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6327 as_basename=basename | |
6328 else | |
6329 as_basename=false | |
6330 fi | |
6331 | |
6332 | |
6333 # Name of the executable. | |
6334 as_me=`$as_basename "$0" || | |
6335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6336 X"$0" : 'X\(//\)$' \| \ | |
6337 X"$0" : 'X\(/\)$' \| \ | |
6338 . : '\(.\)' 2>/dev/null || | |
6339 echo X/"$0" | | |
6340 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6341 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6342 /^X\/\(\/\).*/{ s//\1/; q; } | |
6343 s/.*/./; q'` | |
6344 | |
6345 | |
6346 # PATH needs CR, and LINENO needs CR and PATH. | |
6347 # Avoid depending upon Character Ranges. | |
6348 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6351 as_cr_digits='0123456789' | |
6352 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6353 | |
6354 # The user is always right. | |
6355 if test "${PATH_SEPARATOR+set}" != set; then | |
6356 echo "#! /bin/sh" >conf$$.sh | |
6357 echo "exit 0" >>conf$$.sh | |
6358 chmod +x conf$$.sh | |
6359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6360 PATH_SEPARATOR=';' | |
6361 else | |
6362 PATH_SEPARATOR=: | |
6363 fi | |
6364 rm -f conf$$.sh | |
6365 fi | |
6366 | |
6367 | |
6368 as_lineno_1=$LINENO | |
6369 as_lineno_2=$LINENO | |
6370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6371 test "x$as_lineno_1" != "x$as_lineno_2" && | |
6372 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6373 # Find who we are. Look in the path if we contain no path at all | |
6374 # relative or not. | |
6375 case $0 in | |
6376 *[\\/]* ) as_myself=$0 ;; | |
6377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6378 for as_dir in $PATH | |
6379 do | |
6380 IFS=$as_save_IFS | |
6381 test -z "$as_dir" && as_dir=. | |
6382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6383 done | |
6384 | |
6385 ;; | |
6386 esac | |
6387 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6388 # in which case we are not to be found in the path. | |
6389 if test "x$as_myself" = x; then | |
6390 as_myself=$0 | |
6391 fi | |
6392 if test ! -f "$as_myself"; then | |
6393 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6394 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6395 { (exit 1); exit 1; }; } | |
6396 fi | |
6397 case $CONFIG_SHELL in | |
6398 '') | |
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6400 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6401 do | |
6402 IFS=$as_save_IFS | |
6403 test -z "$as_dir" && as_dir=. | |
6404 for as_base in sh bash ksh sh5; do | |
6405 case $as_dir in | |
6406 /*) | |
6407 if ("$as_dir/$as_base" -c ' | |
6408 as_lineno_1=$LINENO | |
6409 as_lineno_2=$LINENO | |
6410 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6411 test "x$as_lineno_1" != "x$as_lineno_2" && | |
6412 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6413 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
6414 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6415 CONFIG_SHELL=$as_dir/$as_base | |
6416 export CONFIG_SHELL | |
6417 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6418 fi;; | |
6419 esac | |
6420 done | |
6421 done | |
6422 ;; | |
6423 esac | |
6424 | |
6425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6426 # uniformly replaced by the line number. The first 'sed' inserts a | |
6427 # line-number line before each line; the second 'sed' does the real | |
6428 # work. The second script uses 'N' to pair each line-number line | |
6429 # with the numbered line, and appends trailing '-' during | |
6430 # substitution so that $LINENO is not a special case at line end. | |
6431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6432 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
6433 sed '=' <$as_myself | | |
6434 sed ' | |
6435 N | |
6436 s,$,-, | |
6437 : loop | |
6438 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6439 t loop | |
6440 s,-$,, | |
6441 s,^['$as_cr_digits']*\n,, | |
6442 ' >$as_me.lineno && | |
6443 chmod +x $as_me.lineno || | |
6444 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
6445 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6446 { (exit 1); exit 1; }; } | |
6447 | |
6448 # Don't try to exec as it changes $[0], causing all sort of problems | |
6449 # (the dirname of $[0] is not the place where we might find the | |
6450 # original and so on. Autoconf is especially sensible to this). | |
6451 . ./$as_me.lineno | |
6452 # Exit status is that of the last command. | |
6453 exit | |
6454 } | |
6455 | |
6456 | |
6457 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
6458 *c*,-n*) ECHO_N= ECHO_C=' | |
6459 ' ECHO_T=' ' ;; | |
6460 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
6461 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6462 esac | |
6463 | |
6464 if expr a : '\(a\)' >/dev/null 2>&1; then | |
6465 as_expr=expr | |
6466 else | |
6467 as_expr=false | |
6468 fi | |
6469 | |
6470 rm -f conf$$ conf$$.exe conf$$.file | |
6471 echo >conf$$.file | |
6472 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6473 # We could just check for DJGPP; but this test a) works b) is more generic | |
6474 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
6475 if test -f conf$$.exe; then | |
6476 # Don't use ln at all; we don't have any links | |
6477 as_ln_s='cp -p' | |
6478 else | |
6479 as_ln_s='ln -s' | |
6480 fi | |
6481 elif ln conf$$.file conf$$ 2>/dev/null; then | |
6482 as_ln_s=ln | |
6483 else | |
6484 as_ln_s='cp -p' | |
6485 fi | |
6486 rm -f conf$$ conf$$.exe conf$$.file | |
6487 | |
6488 if mkdir -p . 2>/dev/null; then | |
6489 as_mkdir_p=: | |
6490 else | |
6491 test -d ./-p && rmdir ./-p | |
6492 as_mkdir_p=false | |
6493 fi | |
6494 | |
6495 as_executable_p="test -f" | |
6496 | |
6497 # Sed expression to map a string onto a valid CPP name. | |
6498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6499 | |
6500 # Sed expression to map a string onto a valid variable name. | |
6501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6502 | |
6503 | |
6504 # IFS | |
6505 # We need space, tab and new line, in precisely that order. | |
6506 as_nl=' | |
6507 ' | |
6508 IFS=" $as_nl" | |
6509 | |
6510 # CDPATH. | |
6511 $as_unset CDPATH | |
6512 | |
6513 exec 6>&1 | |
6514 | |
6515 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
6516 # report actual input values of CONFIG_FILES etc. instead of their | |
6517 # values after options handling. Logging --version etc. is OK. | |
6518 exec 5>>config.log | |
6519 { | |
6520 echo | |
6521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6522 ## Running $as_me. ## | |
6523 _ASBOX | |
6524 } >&5 | |
6525 cat >&5 <<_CSEOF | |
6526 | |
6527 This file was extended by routeflapper $as_me 1.0.1, which was | |
6528 generated by GNU Autoconf 2.59. Invocation command line was | |
6529 | |
6530 CONFIG_FILES = $CONFIG_FILES | |
6531 CONFIG_HEADERS = $CONFIG_HEADERS | |
6532 CONFIG_LINKS = $CONFIG_LINKS | |
6533 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6534 $ $0 $@ | |
6535 | |
6536 _CSEOF | |
6537 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
6538 echo >&5 | |
6539 _ACEOF | |
6540 | |
6541 # Files that config.status was made for. | |
6542 if test -n "$ac_config_files"; then | |
6543 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6544 fi | |
6545 | |
6546 if test -n "$ac_config_headers"; then | |
6547 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6548 fi | |
6549 | |
6550 if test -n "$ac_config_links"; then | |
6551 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
6552 fi | |
6553 | |
6554 if test -n "$ac_config_commands"; then | |
6555 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
6556 fi | |
6557 | |
6558 cat >>$CONFIG_STATUS <<\_ACEOF | |
6559 | |
6560 ac_cs_usage="\ | |
6561 \`$as_me' instantiates files from templates according to the | |
6562 current configuration. | |
6563 | |
6564 Usage: $0 [OPTIONS] [FILE]... | |
6565 | |
6566 -h, --help print this help, then exit | |
6567 -V, --version print version number, then exit | |
6568 -q, --quiet do not print progress messages | |
6569 -d, --debug don't remove temporary files | |
6570 --recheck update $as_me by reconfiguring in the same conditions | |
6571 --file=FILE[:TEMPLATE] | |
6572 instantiate the configuration file FILE | |
6573 --header=FILE[:TEMPLATE] | |
6574 instantiate the configuration header FILE | |
6575 | |
6576 Configuration files: | |
6577 $config_files | |
6578 | |
6579 Configuration headers: | |
6580 $config_headers | |
6581 | |
6582 Configuration commands: | |
6583 $config_commands | |
6584 | |
6585 Report bugs to <bug-autoconf@gnu.org>." | |
6586 _ACEOF | |
6587 | |
6588 cat >>$CONFIG_STATUS <<_ACEOF | |
6589 ac_cs_version="\\ | |
6590 routeflapper config.status 1.0.1 | |
6591 configured by $0, generated by GNU Autoconf 2.59, | |
6592 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
6593 | |
6594 Copyright (C) 2003 Free Software Foundation, Inc. | |
6595 This config.status script is free software; the Free Software Foundation | |
6596 gives unlimited permission to copy, distribute and modify it." | |
6597 srcdir=$srcdir | |
6598 INSTALL="$INSTALL" | |
6599 _ACEOF | |
6600 | |
6601 cat >>$CONFIG_STATUS <<\_ACEOF | |
6602 # If no file are specified by the user, then we need to provide default | |
6603 # value. By we need to know if files were specified by the user. | |
6604 ac_need_defaults=: | |
6605 while test $# != 0 | |
6606 do | |
6607 case $1 in | |
6608 --*=*) | |
6609 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6610 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6611 ac_shift=: | |
6612 ;; | |
6613 -*) | |
6614 ac_option=$1 | |
6615 ac_optarg=$2 | |
6616 ac_shift=shift | |
6617 ;; | |
6618 *) # This is not an option, so the user has probably given explicit | |
6619 # arguments. | |
6620 ac_option=$1 | |
6621 ac_need_defaults=false;; | |
6622 esac | |
6623 | |
6624 case $ac_option in | |
6625 # Handling of the options. | |
6626 _ACEOF | |
6627 cat >>$CONFIG_STATUS <<\_ACEOF | |
6628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6629 ac_cs_recheck=: ;; | |
6630 --version | --vers* | -V ) | |
6631 echo "$ac_cs_version"; exit 0 ;; | |
6632 --he | --h) | |
6633 # Conflict between --help and --header | |
6634 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6635 Try \`$0 --help' for more information." >&5 | |
6636 echo "$as_me: error: ambiguous option: $1 | |
6637 Try \`$0 --help' for more information." >&2;} | |
6638 { (exit 1); exit 1; }; };; | |
6639 --help | --hel | -h ) | |
6640 echo "$ac_cs_usage"; exit 0 ;; | |
6641 --debug | --d* | -d ) | |
6642 debug=: ;; | |
6643 --file | --fil | --fi | --f ) | |
6644 $ac_shift | |
6645 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6646 ac_need_defaults=false;; | |
6647 --header | --heade | --head | --hea ) | |
6648 $ac_shift | |
6649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6650 ac_need_defaults=false;; | |
6651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6652 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6653 ac_cs_silent=: ;; | |
6654 | |
6655 # This is an error. | |
6656 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
6657 Try \`$0 --help' for more information." >&5 | |
6658 echo "$as_me: error: unrecognized option: $1 | |
6659 Try \`$0 --help' for more information." >&2;} | |
6660 { (exit 1); exit 1; }; } ;; | |
6661 | |
6662 *) ac_config_targets="$ac_config_targets $1" ;; | |
6663 | |
6664 esac | |
6665 shift | |
6666 done | |
6667 | |
6668 ac_configure_extra_args= | |
6669 | |
6670 if $ac_cs_silent; then | |
6671 exec 6>/dev/null | |
6672 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6673 fi | |
6674 | |
6675 _ACEOF | |
6676 cat >>$CONFIG_STATUS <<_ACEOF | |
6677 if \$ac_cs_recheck; then | |
6678 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
6679 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6680 fi | |
6681 | |
6682 _ACEOF | |
6683 | |
6684 cat >>$CONFIG_STATUS <<_ACEOF | |
6685 # | |
6686 # INIT-COMMANDS section. | |
6687 # | |
6688 | |
6689 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
6690 | |
6691 _ACEOF | |
6692 | |
6693 | |
6694 | |
6695 cat >>$CONFIG_STATUS <<\_ACEOF | |
6696 for ac_config_target in $ac_config_targets | |
6697 do | |
6698 case "$ac_config_target" in | |
6699 # Handling of arguments. | |
6700 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6701 "routeflapper.rc" ) CONFIG_FILES="$CONFIG_FILES routeflapper.rc" ;; | |
6702 "routeflapper.spec" ) CONFIG_FILES="$CONFIG_FILES routeflapper.spec" ;; | |
6703 "html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; | |
6704 "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; | |
6705 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
6706 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
6707 "xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES xml/Makefile" ;; | |
6708 "xml/routeflapper" ) CONFIG_FILES="$CONFIG_FILES xml/routeflapper" ;; | |
6709 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
6710 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6711 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
6712 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6713 { (exit 1); exit 1; }; };; | |
6714 esac | |
6715 done | |
6716 | |
6717 # If the user did not use the arguments to specify the items to instantiate, | |
6718 # then the envvar interface is used. Set only those that are not. | |
6719 # We use the long form for the default assignment because of an extremely | |
6720 # bizarre bug on SunOS 4.1.3. | |
6721 if $ac_need_defaults; then | |
6722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6724 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6725 fi | |
6726 | |
6727 # Have a temporary directory for convenience. Make it in the build tree | |
6728 # simply because there is no reason to put it here, and in addition, | |
6729 # creating and moving files from /tmp can sometimes cause problems. | |
6730 # Create a temporary directory, and hook for its removal unless debugging. | |
6731 $debug || | |
6732 { | |
6733 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
6734 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6735 } | |
6736 | |
6737 # Create a (secure) tmp directory for tmp files. | |
6738 | |
6739 { | |
6740 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
6741 test -n "$tmp" && test -d "$tmp" | |
6742 } || | |
6743 { | |
6744 tmp=./confstat$$-$RANDOM | |
6745 (umask 077 && mkdir $tmp) | |
6746 } || | |
6747 { | |
6748 echo "$me: cannot create a temporary directory in ." >&2 | |
6749 { (exit 1); exit 1; } | |
6750 } | |
6751 | |
6752 _ACEOF | |
6753 | |
6754 cat >>$CONFIG_STATUS <<_ACEOF | |
6755 | |
6756 # | |
6757 # CONFIG_FILES section. | |
6758 # | |
6759 | |
6760 # No need to generate the scripts if there are no CONFIG_FILES. | |
6761 # This happens for instance when ./config.status config.h | |
6762 if test -n "\$CONFIG_FILES"; then | |
6763 # Protect against being on the right side of a sed subst in config.status. | |
6764 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
6765 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
6766 s,@SHELL@,$SHELL,;t t | |
6767 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
6768 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
6769 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
6770 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
6771 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
6772 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
6773 s,@exec_prefix@,$exec_prefix,;t t | |
6774 s,@prefix@,$prefix,;t t | |
6775 s,@program_transform_name@,$program_transform_name,;t t | |
6776 s,@bindir@,$bindir,;t t | |
6777 s,@sbindir@,$sbindir,;t t | |
6778 s,@libexecdir@,$libexecdir,;t t | |
6779 s,@datadir@,$datadir,;t t | |
6780 s,@sysconfdir@,$sysconfdir,;t t | |
6781 s,@sharedstatedir@,$sharedstatedir,;t t | |
6782 s,@localstatedir@,$localstatedir,;t t | |
6783 s,@libdir@,$libdir,;t t | |
6784 s,@includedir@,$includedir,;t t | |
6785 s,@oldincludedir@,$oldincludedir,;t t | |
6786 s,@infodir@,$infodir,;t t | |
6787 s,@mandir@,$mandir,;t t | |
6788 s,@build_alias@,$build_alias,;t t | |
6789 s,@host_alias@,$host_alias,;t t | |
6790 s,@target_alias@,$target_alias,;t t | |
6791 s,@DEFS@,$DEFS,;t t | |
6792 s,@ECHO_C@,$ECHO_C,;t t | |
6793 s,@ECHO_N@,$ECHO_N,;t t | |
6794 s,@ECHO_T@,$ECHO_T,;t t | |
6795 s,@LIBS@,$LIBS,;t t | |
6796 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
6797 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
6798 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
6799 s,@CYGPATH_W@,$CYGPATH_W,;t t | |
6800 s,@PACKAGE@,$PACKAGE,;t t | |
6801 s,@VERSION@,$VERSION,;t t | |
6802 s,@ACLOCAL@,$ACLOCAL,;t t | |
6803 s,@AUTOCONF@,$AUTOCONF,;t t | |
6804 s,@AUTOMAKE@,$AUTOMAKE,;t t | |
6805 s,@AUTOHEADER@,$AUTOHEADER,;t t | |
6806 s,@MAKEINFO@,$MAKEINFO,;t t | |
6807 s,@install_sh@,$install_sh,;t t | |
6808 s,@STRIP@,$STRIP,;t t | |
6809 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
6810 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
6811 s,@mkdir_p@,$mkdir_p,;t t | |
6812 s,@AWK@,$AWK,;t t | |
6813 s,@SET_MAKE@,$SET_MAKE,;t t | |
6814 s,@am__leading_dot@,$am__leading_dot,;t t | |
6815 s,@AMTAR@,$AMTAR,;t t | |
6816 s,@am__tar@,$am__tar,;t t | |
6817 s,@am__untar@,$am__untar,;t t | |
6818 s,@BASH@,$BASH,;t t | |
6819 s,@CXX@,$CXX,;t t | |
6820 s,@CXXFLAGS@,$CXXFLAGS,;t t | |
6821 s,@LDFLAGS@,$LDFLAGS,;t t | |
6822 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
6823 s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
6824 s,@EXEEXT@,$EXEEXT,;t t | |
6825 s,@OBJEXT@,$OBJEXT,;t t | |
6826 s,@DEPDIR@,$DEPDIR,;t t | |
6827 s,@am__include@,$am__include,;t t | |
6828 s,@am__quote@,$am__quote,;t t | |
6829 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
6830 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
6831 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
6832 s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
6833 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
6834 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
6835 s,@CC@,$CC,;t t | |
6836 s,@CFLAGS@,$CFLAGS,;t t | |
6837 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
6838 s,@CCDEPMODE@,$CCDEPMODE,;t t | |
6839 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
6840 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
6841 s,@CPP@,$CPP,;t t | |
6842 s,@LN_S@,$LN_S,;t t | |
6843 s,@RANLIB@,$RANLIB,;t t | |
6844 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
6845 s,@EGREP@,$EGREP,;t t | |
6846 s,@LIBOBJS@,$LIBOBJS,;t t | |
6847 s,@build@,$build,;t t | |
6848 s,@build_cpu@,$build_cpu,;t t | |
6849 s,@build_vendor@,$build_vendor,;t t | |
6850 s,@build_os@,$build_os,;t t | |
6851 s,@host@,$host,;t t | |
6852 s,@host_cpu@,$host_cpu,;t t | |
6853 s,@host_vendor@,$host_vendor,;t t | |
6854 s,@host_os@,$host_os,;t t | |
6855 s,@acx_pthread_config@,$acx_pthread_config,;t t | |
6856 s,@PTHREAD_CC@,$PTHREAD_CC,;t t | |
6857 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t | |
6858 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t | |
6859 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
6860 CEOF | |
6861 | |
6862 _ACEOF | |
6863 | |
6864 cat >>$CONFIG_STATUS <<\_ACEOF | |
6865 # Split the substitutions into bite-sized pieces for seds with | |
6866 # small command number limits, like on Digital OSF/1 and HP-UX. | |
6867 ac_max_sed_lines=48 | |
6868 ac_sed_frag=1 # Number of current file. | |
6869 ac_beg=1 # First line for current file. | |
6870 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
6871 ac_more_lines=: | |
6872 ac_sed_cmds= | |
6873 while $ac_more_lines; do | |
6874 if test $ac_beg -gt 1; then | |
6875 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
6876 else | |
6877 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
6878 fi | |
6879 if test ! -s $tmp/subs.frag; then | |
6880 ac_more_lines=false | |
6881 else | |
6882 # The purpose of the label and of the branching condition is to | |
6883 # speed up the sed processing (if there are no `@' at all, there | |
6884 # is no need to browse any of the substitutions). | |
6885 # These are the two extra sed commands mentioned above. | |
6886 (echo ':t | |
6887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
6888 if test -z "$ac_sed_cmds"; then | |
6889 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
6890 else | |
6891 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
6892 fi | |
6893 ac_sed_frag=`expr $ac_sed_frag + 1` | |
6894 ac_beg=$ac_end | |
6895 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
6896 fi | |
6897 done | |
6898 if test -z "$ac_sed_cmds"; then | |
6899 ac_sed_cmds=cat | |
6900 fi | |
6901 fi # test -n "$CONFIG_FILES" | |
6902 | |
6903 _ACEOF | |
6904 cat >>$CONFIG_STATUS <<\_ACEOF | |
6905 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
6906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6907 case $ac_file in | |
6908 - | *:- | *:-:* ) # input from stdin | |
6909 cat >$tmp/stdin | |
6910 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6912 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6914 * ) ac_file_in=$ac_file.in ;; | |
6915 esac | |
6916 | |
6917 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
6918 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6920 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6921 X"$ac_file" : 'X\(//\)$' \| \ | |
6922 X"$ac_file" : 'X\(/\)' \| \ | |
6923 . : '\(.\)' 2>/dev/null || | |
6924 echo X"$ac_file" | | |
6925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6926 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6927 /^X\(\/\/\)$/{ s//\1/; q; } | |
6928 /^X\(\/\).*/{ s//\1/; q; } | |
6929 s/.*/./; q'` | |
6930 { if $as_mkdir_p; then | |
6931 mkdir -p "$ac_dir" | |
6932 else | |
6933 as_dir="$ac_dir" | |
6934 as_dirs= | |
6935 while test ! -d "$as_dir"; do | |
6936 as_dirs="$as_dir $as_dirs" | |
6937 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6939 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6940 X"$as_dir" : 'X\(//\)$' \| \ | |
6941 X"$as_dir" : 'X\(/\)' \| \ | |
6942 . : '\(.\)' 2>/dev/null || | |
6943 echo X"$as_dir" | | |
6944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6945 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6946 /^X\(\/\/\)$/{ s//\1/; q; } | |
6947 /^X\(\/\).*/{ s//\1/; q; } | |
6948 s/.*/./; q'` | |
6949 done | |
6950 test ! -n "$as_dirs" || mkdir $as_dirs | |
6951 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6952 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6953 { (exit 1); exit 1; }; }; } | |
6954 | |
6955 ac_builddir=. | |
6956 | |
6957 if test "$ac_dir" != .; then | |
6958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6959 # A "../" for each directory in $ac_dir_suffix. | |
6960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6961 else | |
6962 ac_dir_suffix= ac_top_builddir= | |
6963 fi | |
6964 | |
6965 case $srcdir in | |
6966 .) # No --srcdir option. We are building in place. | |
6967 ac_srcdir=. | |
6968 if test -z "$ac_top_builddir"; then | |
6969 ac_top_srcdir=. | |
6970 else | |
6971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6972 fi ;; | |
6973 [\\/]* | ?:[\\/]* ) # Absolute path. | |
6974 ac_srcdir=$srcdir$ac_dir_suffix; | |
6975 ac_top_srcdir=$srcdir ;; | |
6976 *) # Relative path. | |
6977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
6978 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6979 esac | |
6980 | |
6981 # Do not use `cd foo && pwd` to compute absolute paths, because | |
6982 # the directories may not exist. | |
6983 case `pwd` in | |
6984 .) ac_abs_builddir="$ac_dir";; | |
6985 *) | |
6986 case "$ac_dir" in | |
6987 .) ac_abs_builddir=`pwd`;; | |
6988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
6989 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
6990 esac;; | |
6991 esac | |
6992 case $ac_abs_builddir in | |
6993 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6994 *) | |
6995 case ${ac_top_builddir}. in | |
6996 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
6997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
6999 esac;; | |
7000 esac | |
7001 case $ac_abs_builddir in | |
7002 .) ac_abs_srcdir=$ac_srcdir;; | |
7003 *) | |
7004 case $ac_srcdir in | |
7005 .) ac_abs_srcdir=$ac_abs_builddir;; | |
7006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7008 esac;; | |
7009 esac | |
7010 case $ac_abs_builddir in | |
7011 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7012 *) | |
7013 case $ac_top_srcdir in | |
7014 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7017 esac;; | |
7018 esac | |
7019 | |
7020 | |
7021 case $INSTALL in | |
7022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7023 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
7024 esac | |
7025 | |
7026 if test x"$ac_file" != x-; then | |
7027 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7028 echo "$as_me: creating $ac_file" >&6;} | |
7029 rm -f "$ac_file" | |
7030 fi | |
7031 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7032 # use $as_me), people would be surprised to read: | |
7033 # /* config.h. Generated by config.status. */ | |
7034 if test x"$ac_file" = x-; then | |
7035 configure_input= | |
7036 else | |
7037 configure_input="$ac_file. " | |
7038 fi | |
7039 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7040 sed 's,.*/,,'` by configure." | |
7041 | |
7042 # First look for the input files in the build tree, otherwise in the | |
7043 # src tree. | |
7044 ac_file_inputs=`IFS=: | |
7045 for f in $ac_file_in; do | |
7046 case $f in | |
7047 -) echo $tmp/stdin ;; | |
7048 [\\/$]*) | |
7049 # Absolute (can't be DOS-style, as IFS=:) | |
7050 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7051 echo "$as_me: error: cannot find input file: $f" >&2;} | |
7052 { (exit 1); exit 1; }; } | |
7053 echo "$f";; | |
7054 *) # Relative | |
7055 if test -f "$f"; then | |
7056 # Build tree | |
7057 echo "$f" | |
7058 elif test -f "$srcdir/$f"; then | |
7059 # Source tree | |
7060 echo "$srcdir/$f" | |
7061 else | |
7062 # /dev/null tree | |
7063 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7064 echo "$as_me: error: cannot find input file: $f" >&2;} | |
7065 { (exit 1); exit 1; }; } | |
7066 fi;; | |
7067 esac | |
7068 done` || { (exit 1); exit 1; } | |
7069 _ACEOF | |
7070 cat >>$CONFIG_STATUS <<_ACEOF | |
7071 sed "$ac_vpsub | |
7072 $extrasub | |
7073 _ACEOF | |
7074 cat >>$CONFIG_STATUS <<\_ACEOF | |
7075 :t | |
7076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7077 s,@configure_input@,$configure_input,;t t | |
7078 s,@srcdir@,$ac_srcdir,;t t | |
7079 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7080 s,@top_srcdir@,$ac_top_srcdir,;t t | |
7081 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7082 s,@builddir@,$ac_builddir,;t t | |
7083 s,@abs_builddir@,$ac_abs_builddir,;t t | |
7084 s,@top_builddir@,$ac_top_builddir,;t t | |
7085 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7086 s,@INSTALL@,$ac_INSTALL,;t t | |
7087 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7088 rm -f $tmp/stdin | |
7089 if test x"$ac_file" != x-; then | |
7090 mv $tmp/out $ac_file | |
7091 else | |
7092 cat $tmp/out | |
7093 rm -f $tmp/out | |
7094 fi | |
7095 | |
7096 done | |
7097 _ACEOF | |
7098 cat >>$CONFIG_STATUS <<\_ACEOF | |
7099 | |
7100 # | |
7101 # CONFIG_HEADER section. | |
7102 # | |
7103 | |
7104 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7105 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7106 # | |
7107 # ac_d sets the value in "#define NAME VALUE" lines. | |
7108 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
7109 ac_dB='[ ].*$,\1#\2' | |
7110 ac_dC=' ' | |
7111 ac_dD=',;t' | |
7112 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7113 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7114 ac_uB='$,\1#\2define\3' | |
7115 ac_uC=' ' | |
7116 ac_uD=',;t' | |
7117 | |
7118 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7120 case $ac_file in | |
7121 - | *:- | *:-:* ) # input from stdin | |
7122 cat >$tmp/stdin | |
7123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7127 * ) ac_file_in=$ac_file.in ;; | |
7128 esac | |
7129 | |
7130 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7131 echo "$as_me: creating $ac_file" >&6;} | |
7132 | |
7133 # First look for the input files in the build tree, otherwise in the | |
7134 # src tree. | |
7135 ac_file_inputs=`IFS=: | |
7136 for f in $ac_file_in; do | |
7137 case $f in | |
7138 -) echo $tmp/stdin ;; | |
7139 [\\/$]*) | |
7140 # Absolute (can't be DOS-style, as IFS=:) | |
7141 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7142 echo "$as_me: error: cannot find input file: $f" >&2;} | |
7143 { (exit 1); exit 1; }; } | |
7144 # Do quote $f, to prevent DOS paths from being IFS'd. | |
7145 echo "$f";; | |
7146 *) # Relative | |
7147 if test -f "$f"; then | |
7148 # Build tree | |
7149 echo "$f" | |
7150 elif test -f "$srcdir/$f"; then | |
7151 # Source tree | |
7152 echo "$srcdir/$f" | |
7153 else | |
7154 # /dev/null tree | |
7155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7156 echo "$as_me: error: cannot find input file: $f" >&2;} | |
7157 { (exit 1); exit 1; }; } | |
7158 fi;; | |
7159 esac | |
7160 done` || { (exit 1); exit 1; } | |
7161 # Remove the trailing spaces. | |
7162 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7163 | |
7164 _ACEOF | |
7165 | |
7166 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7167 # `conftest.undefs', that substitutes the proper values into | |
7168 # config.h.in to produce config.h. The first handles `#define' | |
7169 # templates, and the second `#undef' templates. | |
7170 # And first: Protect against being on the right side of a sed subst in | |
7171 # config.status. Protect against being in an unquoted here document | |
7172 # in config.status. | |
7173 rm -f conftest.defines conftest.undefs | |
7174 # Using a here document instead of a string reduces the quoting nightmare. | |
7175 # Putting comments in sed scripts is not portable. | |
7176 # | |
7177 # `end' is used to avoid that the second main sed command (meant for | |
7178 # 0-ary CPP macros) applies to n-ary macro definitions. | |
7179 # See the Autoconf documentation for `clear'. | |
7180 cat >confdef2sed.sed <<\_ACEOF | |
7181 s/[\\&,]/\\&/g | |
7182 s,[\\$`],\\&,g | |
7183 t clear | |
7184 : clear | |
7185 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
7186 t end | |
7187 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7188 : end | |
7189 _ACEOF | |
7190 # If some macros were called several times there might be several times | |
7191 # the same #defines, which is useless. Nevertheless, we may not want to | |
7192 # sort them, since we want the *last* AC-DEFINE to be honored. | |
7193 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7194 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7195 rm -f confdef2sed.sed | |
7196 | |
7197 # This sed command replaces #undef with comments. This is necessary, for | |
7198 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7199 # on some systems where configure will not decide to define it. | |
7200 cat >>conftest.undefs <<\_ACEOF | |
7201 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7202 _ACEOF | |
7203 | |
7204 # Break up conftest.defines because some shells have a limit on the size | |
7205 # of here documents, and old seds have small limits too (100 cmds). | |
7206 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7207 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7208 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7209 echo ' :' >>$CONFIG_STATUS | |
7210 rm -f conftest.tail | |
7211 while grep . conftest.defines >/dev/null | |
7212 do | |
7213 # Write a limited-size here document to $tmp/defines.sed. | |
7214 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7215 # Speed up: don't consider the non `#define' lines. | |
7216 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7217 # Work around the forget-to-reset-the-flag bug. | |
7218 echo 't clr' >>$CONFIG_STATUS | |
7219 echo ': clr' >>$CONFIG_STATUS | |
7220 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7221 echo 'CEOF | |
7222 sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7223 rm -f $tmp/in | |
7224 mv $tmp/out $tmp/in | |
7225 ' >>$CONFIG_STATUS | |
7226 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7227 rm -f conftest.defines | |
7228 mv conftest.tail conftest.defines | |
7229 done | |
7230 rm -f conftest.defines | |
7231 echo ' fi # grep' >>$CONFIG_STATUS | |
7232 echo >>$CONFIG_STATUS | |
7233 | |
7234 # Break up conftest.undefs because some shells have a limit on the size | |
7235 # of here documents, and old seds have small limits too (100 cmds). | |
7236 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
7237 rm -f conftest.tail | |
7238 while grep . conftest.undefs >/dev/null | |
7239 do | |
7240 # Write a limited-size here document to $tmp/undefs.sed. | |
7241 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7242 # Speed up: don't consider the non `#undef' | |
7243 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7244 # Work around the forget-to-reset-the-flag bug. | |
7245 echo 't clr' >>$CONFIG_STATUS | |
7246 echo ': clr' >>$CONFIG_STATUS | |
7247 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
7248 echo 'CEOF | |
7249 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
7250 rm -f $tmp/in | |
7251 mv $tmp/out $tmp/in | |
7252 ' >>$CONFIG_STATUS | |
7253 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7254 rm -f conftest.undefs | |
7255 mv conftest.tail conftest.undefs | |
7256 done | |
7257 rm -f conftest.undefs | |
7258 | |
7259 cat >>$CONFIG_STATUS <<\_ACEOF | |
7260 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7261 # use $as_me), people would be surprised to read: | |
7262 # /* config.h. Generated by config.status. */ | |
7263 if test x"$ac_file" = x-; then | |
7264 echo "/* Generated by configure. */" >$tmp/config.h | |
7265 else | |
7266 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
7267 fi | |
7268 cat $tmp/in >>$tmp/config.h | |
7269 rm -f $tmp/in | |
7270 if test x"$ac_file" != x-; then | |
7271 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
7272 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7273 echo "$as_me: $ac_file is unchanged" >&6;} | |
7274 else | |
7275 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7277 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7278 X"$ac_file" : 'X\(//\)$' \| \ | |
7279 X"$ac_file" : 'X\(/\)' \| \ | |
7280 . : '\(.\)' 2>/dev/null || | |
7281 echo X"$ac_file" | | |
7282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7283 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7284 /^X\(\/\/\)$/{ s//\1/; q; } | |
7285 /^X\(\/\).*/{ s//\1/; q; } | |
7286 s/.*/./; q'` | |
7287 { if $as_mkdir_p; then | |
7288 mkdir -p "$ac_dir" | |
7289 else | |
7290 as_dir="$ac_dir" | |
7291 as_dirs= | |
7292 while test ! -d "$as_dir"; do | |
7293 as_dirs="$as_dir $as_dirs" | |
7294 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7296 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7297 X"$as_dir" : 'X\(//\)$' \| \ | |
7298 X"$as_dir" : 'X\(/\)' \| \ | |
7299 . : '\(.\)' 2>/dev/null || | |
7300 echo X"$as_dir" | | |
7301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7302 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7303 /^X\(\/\/\)$/{ s//\1/; q; } | |
7304 /^X\(\/\).*/{ s//\1/; q; } | |
7305 s/.*/./; q'` | |
7306 done | |
7307 test ! -n "$as_dirs" || mkdir $as_dirs | |
7308 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7309 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7310 { (exit 1); exit 1; }; }; } | |
7311 | |
7312 rm -f $ac_file | |
7313 mv $tmp/config.h $ac_file | |
7314 fi | |
7315 else | |
7316 cat $tmp/config.h | |
7317 rm -f $tmp/config.h | |
7318 fi | |
7319 # Compute $ac_file's index in $config_headers. | |
7320 _am_stamp_count=1 | |
7321 for _am_header in $config_headers :; do | |
7322 case $_am_header in | |
7323 $ac_file | $ac_file:* ) | |
7324 break ;; | |
7325 * ) | |
7326 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7327 esac | |
7328 done | |
7329 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
7330 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7331 X$ac_file : 'X\(//\)[^/]' \| \ | |
7332 X$ac_file : 'X\(//\)$' \| \ | |
7333 X$ac_file : 'X\(/\)' \| \ | |
7334 . : '\(.\)' 2>/dev/null || | |
7335 echo X$ac_file | | |
7336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7337 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7338 /^X\(\/\/\)$/{ s//\1/; q; } | |
7339 /^X\(\/\).*/{ s//\1/; q; } | |
7340 s/.*/./; q'`/stamp-h$_am_stamp_count | |
7341 done | |
7342 _ACEOF | |
7343 cat >>$CONFIG_STATUS <<\_ACEOF | |
7344 | |
7345 # | |
7346 # CONFIG_COMMANDS section. | |
7347 # | |
7348 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7349 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7350 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7351 ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7352 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7353 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7354 X"$ac_dest" : 'X\(//\)$' \| \ | |
7355 X"$ac_dest" : 'X\(/\)' \| \ | |
7356 . : '\(.\)' 2>/dev/null || | |
7357 echo X"$ac_dest" | | |
7358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7359 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7360 /^X\(\/\/\)$/{ s//\1/; q; } | |
7361 /^X\(\/\).*/{ s//\1/; q; } | |
7362 s/.*/./; q'` | |
7363 { if $as_mkdir_p; then | |
7364 mkdir -p "$ac_dir" | |
7365 else | |
7366 as_dir="$ac_dir" | |
7367 as_dirs= | |
7368 while test ! -d "$as_dir"; do | |
7369 as_dirs="$as_dir $as_dirs" | |
7370 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7372 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7373 X"$as_dir" : 'X\(//\)$' \| \ | |
7374 X"$as_dir" : 'X\(/\)' \| \ | |
7375 . : '\(.\)' 2>/dev/null || | |
7376 echo X"$as_dir" | | |
7377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7378 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7379 /^X\(\/\/\)$/{ s//\1/; q; } | |
7380 /^X\(\/\).*/{ s//\1/; q; } | |
7381 s/.*/./; q'` | |
7382 done | |
7383 test ! -n "$as_dirs" || mkdir $as_dirs | |
7384 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7385 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7386 { (exit 1); exit 1; }; }; } | |
7387 | |
7388 ac_builddir=. | |
7389 | |
7390 if test "$ac_dir" != .; then | |
7391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7392 # A "../" for each directory in $ac_dir_suffix. | |
7393 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7394 else | |
7395 ac_dir_suffix= ac_top_builddir= | |
7396 fi | |
7397 | |
7398 case $srcdir in | |
7399 .) # No --srcdir option. We are building in place. | |
7400 ac_srcdir=. | |
7401 if test -z "$ac_top_builddir"; then | |
7402 ac_top_srcdir=. | |
7403 else | |
7404 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7405 fi ;; | |
7406 [\\/]* | ?:[\\/]* ) # Absolute path. | |
7407 ac_srcdir=$srcdir$ac_dir_suffix; | |
7408 ac_top_srcdir=$srcdir ;; | |
7409 *) # Relative path. | |
7410 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7411 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7412 esac | |
7413 | |
7414 # Do not use `cd foo && pwd` to compute absolute paths, because | |
7415 # the directories may not exist. | |
7416 case `pwd` in | |
7417 .) ac_abs_builddir="$ac_dir";; | |
7418 *) | |
7419 case "$ac_dir" in | |
7420 .) ac_abs_builddir=`pwd`;; | |
7421 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7422 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7423 esac;; | |
7424 esac | |
7425 case $ac_abs_builddir in | |
7426 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7427 *) | |
7428 case ${ac_top_builddir}. in | |
7429 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7430 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7431 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7432 esac;; | |
7433 esac | |
7434 case $ac_abs_builddir in | |
7435 .) ac_abs_srcdir=$ac_srcdir;; | |
7436 *) | |
7437 case $ac_srcdir in | |
7438 .) ac_abs_srcdir=$ac_abs_builddir;; | |
7439 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7440 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7441 esac;; | |
7442 esac | |
7443 case $ac_abs_builddir in | |
7444 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7445 *) | |
7446 case $ac_top_srcdir in | |
7447 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7448 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7449 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7450 esac;; | |
7451 esac | |
7452 | |
7453 | |
7454 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
7455 echo "$as_me: executing $ac_dest commands" >&6;} | |
7456 case $ac_dest in | |
7457 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
7458 # Strip MF so we end up with the name of the file. | |
7459 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
7460 # Check whether this is an Automake generated Makefile or not. | |
7461 # We used to match only the files named `Makefile.in', but | |
7462 # some people rename them; so instead we look at the file content. | |
7463 # Grep'ing the first line is not enough: some people post-process | |
7464 # each Makefile.in and add a new line on top of each file to say so. | |
7465 # So let's grep whole file. | |
7466 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
7467 dirpart=`(dirname "$mf") 2>/dev/null || | |
7468 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7469 X"$mf" : 'X\(//\)[^/]' \| \ | |
7470 X"$mf" : 'X\(//\)$' \| \ | |
7471 X"$mf" : 'X\(/\)' \| \ | |
7472 . : '\(.\)' 2>/dev/null || | |
7473 echo X"$mf" | | |
7474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7475 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7476 /^X\(\/\/\)$/{ s//\1/; q; } | |
7477 /^X\(\/\).*/{ s//\1/; q; } | |
7478 s/.*/./; q'` | |
7479 else | |
7480 continue | |
7481 fi | |
7482 # Extract the definition of DEPDIR, am__include, and am__quote | |
7483 # from the Makefile without running `make'. | |
7484 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
7485 test -z "$DEPDIR" && continue | |
7486 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
7487 test -z "am__include" && continue | |
7488 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
7489 # When using ansi2knr, U may be empty or an underscore; expand it | |
7490 U=`sed -n 's/^U = //p' < "$mf"` | |
7491 # Find all dependency output files, they are included files with | |
7492 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
7493 # simplest approach to changing $(DEPDIR) to its actual value in the | |
7494 # expansion. | |
7495 for file in `sed -n " | |
7496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
7497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
7498 # Make sure the directory exists. | |
7499 test -f "$dirpart/$file" && continue | |
7500 fdir=`(dirname "$file") 2>/dev/null || | |
7501 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7502 X"$file" : 'X\(//\)[^/]' \| \ | |
7503 X"$file" : 'X\(//\)$' \| \ | |
7504 X"$file" : 'X\(/\)' \| \ | |
7505 . : '\(.\)' 2>/dev/null || | |
7506 echo X"$file" | | |
7507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7508 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7509 /^X\(\/\/\)$/{ s//\1/; q; } | |
7510 /^X\(\/\).*/{ s//\1/; q; } | |
7511 s/.*/./; q'` | |
7512 { if $as_mkdir_p; then | |
7513 mkdir -p $dirpart/$fdir | |
7514 else | |
7515 as_dir=$dirpart/$fdir | |
7516 as_dirs= | |
7517 while test ! -d "$as_dir"; do | |
7518 as_dirs="$as_dir $as_dirs" | |
7519 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7521 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7522 X"$as_dir" : 'X\(//\)$' \| \ | |
7523 X"$as_dir" : 'X\(/\)' \| \ | |
7524 . : '\(.\)' 2>/dev/null || | |
7525 echo X"$as_dir" | | |
7526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7527 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7528 /^X\(\/\/\)$/{ s//\1/; q; } | |
7529 /^X\(\/\).*/{ s//\1/; q; } | |
7530 s/.*/./; q'` | |
7531 done | |
7532 test ! -n "$as_dirs" || mkdir $as_dirs | |
7533 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
7534 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
7535 { (exit 1); exit 1; }; }; } | |
7536 | |
7537 # echo "creating $dirpart/$file" | |
7538 echo '# dummy' > "$dirpart/$file" | |
7539 done | |
7540 done | |
7541 ;; | |
7542 esac | |
7543 done | |
7544 _ACEOF | |
7545 | |
7546 cat >>$CONFIG_STATUS <<\_ACEOF | |
7547 | |
7548 { (exit 0); exit 0; } | |
7549 _ACEOF | |
7550 chmod +x $CONFIG_STATUS | |
7551 ac_clean_files=$ac_clean_files_save | |
7552 | |
7553 | |
7554 # configure is writing to config.log, and then calls config.status. | |
7555 # config.status does its own redirection, appending to config.log. | |
7556 # Unfortunately, on DOS this fails, as config.log is still kept open | |
7557 # by configure, so config.status won't be able to write to it; its | |
7558 # output is simply discarded. So we exec the FD to /dev/null, | |
7559 # effectively closing config.log, so it can be properly (re)opened and | |
7560 # appended to by config.status. When coming back to configure, we | |
7561 # need to make the FD available again. | |
7562 if test "$no_create" != yes; then | |
7563 ac_cs_success=: | |
7564 ac_config_status_args= | |
7565 test "$silent" = yes && | |
7566 ac_config_status_args="$ac_config_status_args --quiet" | |
7567 exec 5>/dev/null | |
7568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7569 exec 5>>config.log | |
7570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7571 # would make configure fail if this is the last instruction. | |
7572 $ac_cs_success || { (exit 1); exit 1; } | |
7573 fi | |
7574 |