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