1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/prtget.cpp"
275 ac_default_prefix=/usr
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXX_set=${CXX+set}
755 ac_env_CXX_value=$CXX
756 ac_cv_env_CXX_set=${CXX+set}
757 ac_cv_env_CXX_value=$CXX
758 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_env_CXXFLAGS_value=$CXXFLAGS
760 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
761 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CC_set=${CC+set}
771 ac_env_CC_value=$CC
772 ac_cv_env_CC_set=${CC+set}
773 ac_cv_env_CC_value=$CC
774 ac_env_CFLAGS_set=${CFLAGS+set}
775 ac_env_CFLAGS_value=$CFLAGS
776 ac_cv_env_CFLAGS_set=${CFLAGS+set}
777 ac_cv_env_CFLAGS_value=$CFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
782
783 #
784 # Report the --help message.
785 #
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790 \`configure' configures this package to adapt to many kinds of systems.
791
792 Usage: $0 [OPTION]... [VAR=VALUE]...
793
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
796
797 Defaults for the options are specified in brackets.
798
799 Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809
810 _ACEOF
811
812 cat <<_ACEOF
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
818
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
823
824 For better control, use the options below.
825
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839 _ACEOF
840
841 cat <<\_ACEOF
842
843 Program names:
844 --program-prefix=PREFIX prepend PREFIX to installed program names
845 --program-suffix=SUFFIX append SUFFIX to installed program names
846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859
860 Some influential environment variables:
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CC C compiler command
868 CFLAGS C compiler flags
869 CPP C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 _ACEOF
875 fi
876
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
883
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
890 fi
891
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907
908 # Do not use `cd foo && pwd` to compute absolute paths, because
909 # the directories may not exist.
910 case `pwd` in
911 .) ac_abs_builddir="$ac_dir";;
912 *)
913 case "$ac_dir" in
914 .) ac_abs_builddir=`pwd`;;
915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *)
922 case ${ac_top_builddir}. in
923 .) ac_abs_top_builddir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_srcdir=$ac_srcdir;;
930 *)
931 case $ac_srcdir in
932 .) ac_abs_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *)
940 case $ac_top_srcdir in
941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944 esac;;
945 esac
946
947 cd $ac_dir
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
950 echo
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
953 echo
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
957 echo
958 $ac_configure --help
959 else
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961 fi
962 cd $ac_popdir
963 done
964 fi
965
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
968 cat <<\_ACEOF
969
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974 exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
983
984 $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015 IFS=$as_save_IFS
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044 for ac_arg
1045 do
1046 case $ac_arg in
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 continue ;;
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 esac
1054 case $ac_pass in
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 2)
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1060 else
1061 case $ac_arg in
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 esac
1069 ;;
1070 -* ) ac_must_keep_next=true ;;
1071 esac
1072 fi
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1075 ac_sep=" "
1076 ;;
1077 esac
1078 done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1090 {
1091 echo
1092
1093 cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098 echo
1099 # The following way of writing the cache mishandles newlines in values,
1100 {
1101 (set) 2>&1 |
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 *ac_space=\ *)
1104 sed -n \
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107 ;;
1108 *)
1109 sed -n \
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111 ;;
1112 esac;
1113 }
1114 echo
1115
1116 cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_vars
1123 do
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1128
1129 if test -n "$ac_subst_files"; then
1130 cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_files
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142 fi
1143
1144 if test -s confdefs.h; then
1145 cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150 echo
1151 sed "/^$/d" confdefs.h | sort
1152 echo
1153 fi
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1157 } >&5
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 exit $exit_status
1161 ' 0
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 else
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1213 . "$ac_site_file"
1214 fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223 case $cache_file in
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1226 esac
1227 fi
1228 else
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231 >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1244 set,)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,set)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,);;
1253 *)
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1262 fi;;
1263 esac
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1266 case $ac_new_val in
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1270 esac
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274 esac
1275 fi
1276 done
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310 am__api_version="1.9"
1311 ac_aux_dir=
1312 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1313 if test -f $ac_dir/install-sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 break
1317 elif 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/shtool; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/shtool install -c"
1324 break
1325 fi
1326 done
1327 if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330 { (exit 1); exit 1; }; }
1331 fi
1332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335
1336 # Find a good install program. We prefer a C program (faster),
1337 # so one script is as good as another. But avoid the broken or
1338 # incompatible versions:
1339 # SysV /etc/install, /usr/sbin/install
1340 # SunOS /usr/etc/install
1341 # IRIX /sbin/install
1342 # AIX /bin/install
1343 # AmigaOS /C/install, which installs bootblocks on floppy discs
1344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1347 # OS/2's system install, which has a completely different semantic
1348 # ./install, which can be erroneously created by make from ./install.sh.
1349 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1350 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1351 if test -z "$INSTALL"; then
1352 if test "${ac_cv_path_install+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1356 for as_dir in $PATH
1357 do
1358 IFS=$as_save_IFS
1359 test -z "$as_dir" && as_dir=.
1360 # Account for people who put trailing slashes in PATH elements.
1361 case $as_dir/ in
1362 ./ | .// | /cC/* | \
1363 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1364 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1365 /usr/ucb/* ) ;;
1366 *)
1367 # OSF1 and SCO ODT 3.0 have their own names for install.
1368 # Don't use installbsd from OSF since it installs stuff as root
1369 # by default.
1370 for ac_prog in ginstall scoinst install; do
1371 for ac_exec_ext in '' $ac_executable_extensions; do
1372 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1373 if test $ac_prog = install &&
1374 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1375 # AIX install. It has an incompatible calling convention.
1376 :
1377 elif test $ac_prog = install &&
1378 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1379 # program-specific install script used by HP pwplus--don't use.
1380 :
1381 else
1382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1383 break 3
1384 fi
1385 fi
1386 done
1387 done
1388 ;;
1389 esac
1390 done
1391
1392
1393 fi
1394 if test "${ac_cv_path_install+set}" = set; then
1395 INSTALL=$ac_cv_path_install
1396 else
1397 # As a last resort, use the slow shell script. We don't cache a
1398 # path for INSTALL within a source directory, because that will
1399 # break other packages using the cache if that directory is
1400 # removed, or if the path is relative.
1401 INSTALL=$ac_install_sh
1402 fi
1403 fi
1404 echo "$as_me:$LINENO: result: $INSTALL" >&5
1405 echo "${ECHO_T}$INSTALL" >&6
1406
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1412
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414
1415 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1416 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1417 # Just in case
1418 sleep 1
1419 echo timestamp > conftest.file
1420 # Do `set' in a subshell so we don't clobber the current shell's
1421 # arguments. Must try -L first in case configure is actually a
1422 # symlink; some systems play weird games with the mod time of symlinks
1423 # (eg FreeBSD returns the mod time of the symlink's containing
1424 # directory).
1425 if (
1426 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1427 if test "$*" = "X"; then
1428 # -L didn't work.
1429 set X `ls -t $srcdir/configure conftest.file`
1430 fi
1431 rm -f conftest.file
1432 if test "$*" != "X $srcdir/configure conftest.file" \
1433 && test "$*" != "X conftest.file $srcdir/configure"; then
1434
1435 # If neither matched, then we have a broken ls. This can happen
1436 # if, for instance, CONFIG_SHELL is bash and it inherits a
1437 # broken ls alias from the environment. This has actually
1438 # happened. Such a system could not be considered "sane".
1439 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1440 alias in your environment" >&5
1441 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1442 alias in your environment" >&2;}
1443 { (exit 1); exit 1; }; }
1444 fi
1445
1446 test "$2" = conftest.file
1447 )
1448 then
1449 # Ok.
1450 :
1451 else
1452 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1453 Check your system clock" >&5
1454 echo "$as_me: error: newly created file is older than distributed files!
1455 Check your system clock" >&2;}
1456 { (exit 1); exit 1; }; }
1457 fi
1458 echo "$as_me:$LINENO: result: yes" >&5
1459 echo "${ECHO_T}yes" >&6
1460 test "$program_prefix" != NONE &&
1461 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1462 # Use a double $ so make ignores it.
1463 test "$program_suffix" != NONE &&
1464 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1465 # Double any \ or $. echo might interpret backslashes.
1466 # By default was `s,x,x', remove it if useless.
1467 cat <<\_ACEOF >conftest.sed
1468 s/[\\$]/&&/g;s/;s,x,x,$//
1469 _ACEOF
1470 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1471 rm conftest.sed
1472
1473 # expand $ac_aux_dir to an absolute path
1474 am_aux_dir=`cd $ac_aux_dir && pwd`
1475
1476 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1477 # Use eval to expand $SHELL
1478 if eval "$MISSING --run true"; then
1479 am_missing_run="$MISSING --run "
1480 else
1481 am_missing_run=
1482 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1483 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1484 fi
1485
1486 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1487 # We used to keeping the `.' as first argument, in order to
1488 # allow $(mkdir_p) to be used without argument. As in
1489 # $(mkdir_p) $(somedir)
1490 # where $(somedir) is conditionally defined. However this is wrong
1491 # for two reasons:
1492 # 1. if the package is installed by a user who cannot write `.'
1493 # make install will fail,
1494 # 2. the above comment should most certainly read
1495 # $(mkdir_p) $(DESTDIR)$(somedir)
1496 # so it does not work when $(somedir) is undefined and
1497 # $(DESTDIR) is not.
1498 # To support the latter case, we have to write
1499 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1500 # so the `.' trick is pointless.
1501 mkdir_p='mkdir -p --'
1502 else
1503 # On NextStep and OpenStep, the `mkdir' command does not
1504 # recognize any option. It will interpret all options as
1505 # directories to create, and then abort because `.' already
1506 # exists.
1507 for d in ./-p ./--version;
1508 do
1509 test -d $d && rmdir $d
1510 done
1511 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1512 if test -f "$ac_aux_dir/mkinstalldirs"; then
1513 mkdir_p='$(mkinstalldirs)'
1514 else
1515 mkdir_p='$(install_sh) -d'
1516 fi
1517 fi
1518
1519 for ac_prog in gawk mawk nawk awk
1520 do
1521 # Extract the first word of "$ac_prog", so it can be a program name with args.
1522 set dummy $ac_prog; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_AWK+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$AWK"; then
1529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_AWK="$ac_prog"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 AWK=$ac_cv_prog_AWK
1548 if test -n "$AWK"; then
1549 echo "$as_me:$LINENO: result: $AWK" >&5
1550 echo "${ECHO_T}$AWK" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 test -n "$AWK" && break
1557 done
1558
1559 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1560 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1561 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1562 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 cat >conftest.make <<\_ACEOF
1566 all:
1567 @echo 'ac_maketemp="$(MAKE)"'
1568 _ACEOF
1569 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1570 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1571 if test -n "$ac_maketemp"; then
1572 eval ac_cv_prog_make_${ac_make}_set=yes
1573 else
1574 eval ac_cv_prog_make_${ac_make}_set=no
1575 fi
1576 rm -f conftest.make
1577 fi
1578 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1579 echo "$as_me:$LINENO: result: yes" >&5
1580 echo "${ECHO_T}yes" >&6
1581 SET_MAKE=
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1586 fi
1587
1588 rm -rf .tst 2>/dev/null
1589 mkdir .tst 2>/dev/null
1590 if test -d .tst; then
1591 am__leading_dot=.
1592 else
1593 am__leading_dot=_
1594 fi
1595 rmdir .tst 2>/dev/null
1596
1597 # test to see if srcdir already configured
1598 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1599 test -f $srcdir/config.status; then
1600 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1601 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1602 { (exit 1); exit 1; }; }
1603 fi
1604
1605 # test whether we have cygpath
1606 if test -z "$CYGPATH_W"; then
1607 if (cygpath --version) >/dev/null 2>/dev/null; then
1608 CYGPATH_W='cygpath -w'
1609 else
1610 CYGPATH_W=echo
1611 fi
1612 fi
1613
1614
1615 # Define the identity of the package.
1616 PACKAGE=prt-get
1617 VERSION=0.5.11
1618
1619
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE "$PACKAGE"
1622 _ACEOF
1623
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define VERSION "$VERSION"
1627 _ACEOF
1628
1629 # Some tools Automake needs.
1630
1631 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1632
1633
1634 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1635
1636
1637 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1638
1639
1640 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1641
1642
1643 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1644
1645 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1646
1647 # Installed binaries are usually stripped using `strip' when the user
1648 # run `make install-strip'. However `strip' might not be the right
1649 # tool to use in cross-compilation environments, therefore Automake
1650 # will honor the `STRIP' environment variable to overrule this program.
1651 if test "$cross_compiling" != no; then
1652 if test -n "$ac_tool_prefix"; then
1653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1654 set dummy ${ac_tool_prefix}strip; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_STRIP+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$STRIP"; then
1661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 STRIP=$ac_cv_prog_STRIP
1680 if test -n "$STRIP"; then
1681 echo "$as_me:$LINENO: result: $STRIP" >&5
1682 echo "${ECHO_T}$STRIP" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688 fi
1689 if test -z "$ac_cv_prog_STRIP"; then
1690 ac_ct_STRIP=$STRIP
1691 # Extract the first word of "strip", so it can be a program name with args.
1692 set dummy strip; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 if test -n "$ac_ct_STRIP"; then
1699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_ac_ct_STRIP="strip"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1711 fi
1712 done
1713 done
1714
1715 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1716 fi
1717 fi
1718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1719 if test -n "$ac_ct_STRIP"; then
1720 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1721 echo "${ECHO_T}$ac_ct_STRIP" >&6
1722 else
1723 echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1725 fi
1726
1727 STRIP=$ac_ct_STRIP
1728 else
1729 STRIP="$ac_cv_prog_STRIP"
1730 fi
1731
1732 fi
1733 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1734
1735 # We need awk for the "check" target. The system "awk" is bad on
1736 # some platforms.
1737 # Always define AMTAR for backward compatibility.
1738
1739 AMTAR=${AMTAR-"${am_missing_run}tar"}
1740
1741 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1742
1743
1744
1745
1746
1747
1748
1749 test x$prefix = "xNONE" && prefix="$ac_default_prefix"
1750
1751 # Checks for programs.
1752 ac_ext=cc
1753 ac_cpp='$CXXCPP $CPPFLAGS'
1754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1759 do
1760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_CXX+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767 if test -n "$CXX"; then
1768 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1769 else
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1780 fi
1781 done
1782 done
1783
1784 fi
1785 fi
1786 CXX=$ac_cv_prog_CXX
1787 if test -n "$CXX"; then
1788 echo "$as_me:$LINENO: result: $CXX" >&5
1789 echo "${ECHO_T}$CXX" >&6
1790 else
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 fi
1794
1795 test -n "$CXX" && break
1796 done
1797 fi
1798 if test -z "$CXX"; then
1799 ac_ct_CXX=$CXX
1800 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1801 do
1802 # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$ac_ct_CXX"; then
1810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_CXX="$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1822 fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1829 if test -n "$ac_ct_CXX"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1831 echo "${ECHO_T}$ac_ct_CXX" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837 test -n "$ac_ct_CXX" && break
1838 done
1839 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1840
1841 CXX=$ac_ct_CXX
1842 fi
1843
1844
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847 "checking for C++ compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850 (eval $ac_compiler --version </dev/null >&5) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855 (eval $ac_compiler -v </dev/null >&5) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860 (eval $ac_compiler -V </dev/null >&5) 2>&5
1861 ac_status=$?
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1864
1865 cat >conftest.$ac_ext <<_ACEOF
1866 /* confdefs.h. */
1867 _ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h. */
1871
1872 int
1873 main ()
1874 {
1875
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 ac_clean_files_save=$ac_clean_files
1881 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1882 # Try to create an executable without -o first, disregard a.out.
1883 # It will help us diagnose broken compilers, and finding out an intuition
1884 # of exeext.
1885 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1886 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1889 (eval $ac_link_default) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # Find the output, starting from the most likely. This scheme is
1894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1895 # resort.
1896
1897 # Be careful to initialize this variable, since it used to be cached.
1898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1899 ac_cv_exeext=
1900 # b.out is created by i960 compilers.
1901 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1902 do
1903 test -f "$ac_file" || continue
1904 case $ac_file in
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1906 ;;
1907 conftest.$ac_ext )
1908 # This is the source file.
1909 ;;
1910 [ab].out )
1911 # We found the default executable, but exeext='' is most
1912 # certainly right.
1913 break;;
1914 *.* )
1915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 # FIXME: I believe we export ac_cv_exeext for Libtool,
1917 # but it would be cool to find out if it's true. Does anybody
1918 # maintain Libtool? --akim.
1919 export ac_cv_exeext
1920 break;;
1921 * )
1922 break;;
1923 esac
1924 done
1925 else
1926 echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: C++ compiler cannot create executables
1932 See \`config.log' for more details." >&2;}
1933 { (exit 77); exit 77; }; }
1934 fi
1935
1936 ac_exeext=$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_file" >&5
1938 echo "${ECHO_T}$ac_file" >&6
1939
1940 # Check the compiler produces executables we can run. If not, either
1941 # the compiler is broken, or we cross compile.
1942 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1943 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1944 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1945 # If not cross compiling, check that we can run a simple program.
1946 if test "$cross_compiling" != yes; then
1947 if { ac_try='./$ac_file'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 cross_compiling=no
1954 else
1955 if test "$cross_compiling" = maybe; then
1956 cross_compiling=yes
1957 else
1958 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1959 If you meant to cross compile, use \`--host'.
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot run C++ compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&2;}
1964 { (exit 1); exit 1; }; }
1965 fi
1966 fi
1967 fi
1968 echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1970
1971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1972 ac_clean_files=$ac_clean_files_save
1973 # Check the compiler produces executables we can run. If not, either
1974 # the compiler is broken, or we cross compile.
1975 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1978 echo "${ECHO_T}$cross_compiling" >&6
1979
1980 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1983 (eval $ac_link) 2>&5
1984 ac_status=$?
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; then
1987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1989 # work properly (i.e., refer to `conftest.exe'), while it won't with
1990 # `rm'.
1991 for ac_file in conftest.exe conftest conftest.*; do
1992 test -f "$ac_file" || continue
1993 case $ac_file in
1994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 export ac_cv_exeext
1997 break;;
1998 * ) break;;
1999 esac
2000 done
2001 else
2002 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2007 fi
2008
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2012
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2015 ac_exeext=$EXEEXT
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h. */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2027
2028 int
2029 main ()
2030 {
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2043 case $ac_file in
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2046 break;;
2047 esac
2048 done
2049 else
2050 echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2061 fi
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2065 ac_objext=$OBJEXT
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2068 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 cat >conftest.$ac_ext <<_ACEOF
2072 /* confdefs.h. */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2077
2078 int
2079 main ()
2080 {
2081 #ifndef __GNUC__
2082 choke me
2083 #endif
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2092 ac_status=$?
2093 grep -v '^ *+' conftest.er1 >conftest.err
2094 rm -f conftest.er1
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_cxx_werror_flag"
2099 || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 ac_compiler_gnu=yes
2112 else
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_compiler_gnu=no
2117 fi
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2120
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2123 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2124 GXX=`test $ac_compiler_gnu = yes && echo yes`
2125 ac_test_CXXFLAGS=${CXXFLAGS+set}
2126 ac_save_CXXFLAGS=$CXXFLAGS
2127 CXXFLAGS="-g"
2128 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2129 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cxx_g+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2139
2140 int
2141 main ()
2142 {
2143
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2151 ac_status=$?
2152 grep -v '^ *+' conftest.er1 >conftest.err
2153 rm -f conftest.er1
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_cxx_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2170 ac_cv_prog_cxx_g=yes
2171 else
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_cv_prog_cxx_g=no
2176 fi
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2181 if test "$ac_test_CXXFLAGS" = set; then
2182 CXXFLAGS=$ac_save_CXXFLAGS
2183 elif test $ac_cv_prog_cxx_g = yes; then
2184 if test "$GXX" = yes; then
2185 CXXFLAGS="-g -O2"
2186 else
2187 CXXFLAGS="-g"
2188 fi
2189 else
2190 if test "$GXX" = yes; then
2191 CXXFLAGS="-O2"
2192 else
2193 CXXFLAGS=
2194 fi
2195 fi
2196 for ac_declaration in \
2197 '' \
2198 'extern "C" void std::exit (int) throw (); using std::exit;' \
2199 'extern "C" void std::exit (int); using std::exit;' \
2200 'extern "C" void exit (int) throw ();' \
2201 'extern "C" void exit (int);' \
2202 'void exit (int);'
2203 do
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2210 $ac_declaration
2211 #include <stdlib.h>
2212 int
2213 main ()
2214 {
2215 exit (42);
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_cxx_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 :
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 continue
2248 fi
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h. */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2256 $ac_declaration
2257 int
2258 main ()
2259 {
2260 exit (42);
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_cxx_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 break
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 done
2295 rm -f conftest*
2296 if test -n "$ac_declaration"; then
2297 echo '#ifdef __cplusplus' >>confdefs.h
2298 echo $ac_declaration >>confdefs.h
2299 echo '#endif' >>confdefs.h
2300 fi
2301
2302 ac_ext=c
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 DEPDIR="${am__leading_dot}deps"
2308
2309 ac_config_commands="$ac_config_commands depfiles"
2310
2311
2312 am_make=${MAKE-make}
2313 cat > confinc << 'END'
2314 am__doit:
2315 @echo done
2316 .PHONY: am__doit
2317 END
2318 # If we don't find an include directive, just comment out the code.
2319 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2320 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2321 am__include="#"
2322 am__quote=
2323 _am_result=none
2324 # First try GNU make style include.
2325 echo "include confinc" > confmf
2326 # We grep out `Entering directory' and `Leaving directory'
2327 # messages which can occur if `w' ends up in MAKEFLAGS.
2328 # In particular we don't look at `^make:' because GNU make might
2329 # be invoked under some other name (usually "gmake"), in which
2330 # case it prints its new name instead of `make'.
2331 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2332 am__include=include
2333 am__quote=
2334 _am_result=GNU
2335 fi
2336 # Now try BSD make style include.
2337 if test "$am__include" = "#"; then
2338 echo '.include "confinc"' > confmf
2339 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2340 am__include=.include
2341 am__quote="\""
2342 _am_result=BSD
2343 fi
2344 fi
2345
2346
2347 echo "$as_me:$LINENO: result: $_am_result" >&5
2348 echo "${ECHO_T}$_am_result" >&6
2349 rm -f confinc confmf
2350
2351 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2352 if test "${enable_dependency_tracking+set}" = set; then
2353 enableval="$enable_dependency_tracking"
2354
2355 fi;
2356 if test "x$enable_dependency_tracking" != xno; then
2357 am_depcomp="$ac_aux_dir/depcomp"
2358 AMDEPBACKSLASH='\'
2359 fi
2360
2361
2362 if test "x$enable_dependency_tracking" != xno; then
2363 AMDEP_TRUE=
2364 AMDEP_FALSE='#'
2365 else
2366 AMDEP_TRUE='#'
2367 AMDEP_FALSE=
2368 fi
2369
2370
2371
2372
2373 depcc="$CXX" am_compiler_list=
2374
2375 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2376 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2377 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2381 # We make a subdir and do the tests there. Otherwise we can end up
2382 # making bogus files that we don't know about and never remove. For
2383 # instance it was reported that on HP-UX the gcc test will end up
2384 # making a dummy file named `D' -- because `-MD' means `put the output
2385 # in D'.
2386 mkdir conftest.dir
2387 # Copy depcomp to subdir because otherwise we won't find it if we're
2388 # using a relative directory.
2389 cp "$am_depcomp" conftest.dir
2390 cd conftest.dir
2391 # We will build objects and dependencies in a subdirectory because
2392 # it helps to detect inapplicable dependency modes. For instance
2393 # both Tru64's cc and ICC support -MD to output dependencies as a
2394 # side effect of compilation, but ICC will put the dependencies in
2395 # the current directory while Tru64 will put them in the object
2396 # directory.
2397 mkdir sub
2398
2399 am_cv_CXX_dependencies_compiler_type=none
2400 if test "$am_compiler_list" = ""; then
2401 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2402 fi
2403 for depmode in $am_compiler_list; do
2404 # Setup a source with many dependencies, because some compilers
2405 # like to wrap large dependency lists on column 80 (with \), and
2406 # we should not choose a depcomp mode which is confused by this.
2407 #
2408 # We need to recreate these files for each test, as the compiler may
2409 # overwrite some of them when testing with obscure command lines.
2410 # This happens at least with the AIX C compiler.
2411 : > sub/conftest.c
2412 for i in 1 2 3 4 5 6; do
2413 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2414 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2415 # Solaris 8's {/usr,}/bin/sh.
2416 touch sub/conftst$i.h
2417 done
2418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2419
2420 case $depmode in
2421 nosideeffect)
2422 # after this tag, mechanisms are not by side-effect, so they'll
2423 # only be used when explicitly requested
2424 if test "x$enable_dependency_tracking" = xyes; then
2425 continue
2426 else
2427 break
2428 fi
2429 ;;
2430 none) break ;;
2431 esac
2432 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2433 # mode. It turns out that the SunPro C++ compiler does not properly
2434 # handle `-M -o', and we need to detect this.
2435 if depmode=$depmode \
2436 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2438 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2439 >/dev/null 2>conftest.err &&
2440 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2441 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2442 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2443 # icc doesn't choke on unknown options, it will just issue warnings
2444 # or remarks (even with -Werror). So we grep stderr for any message
2445 # that says an option was ignored or not supported.
2446 # When given -MP, icc 7.0 and 7.1 complain thusly:
2447 # icc: Command line warning: ignoring option '-M'; no argument required
2448 # The diagnosis changed in icc 8.0:
2449 # icc: Command line remark: option '-MP' not supported
2450 if (grep 'ignoring option' conftest.err ||
2451 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2452 am_cv_CXX_dependencies_compiler_type=$depmode
2453 break
2454 fi
2455 fi
2456 done
2457
2458 cd ..
2459 rm -rf conftest.dir
2460 else
2461 am_cv_CXX_dependencies_compiler_type=none
2462 fi
2463
2464 fi
2465 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2466 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2467 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2468
2469
2470
2471 if
2472 test "x$enable_dependency_tracking" != xno \
2473 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2474 am__fastdepCXX_TRUE=
2475 am__fastdepCXX_FALSE='#'
2476 else
2477 am__fastdepCXX_TRUE='#'
2478 am__fastdepCXX_FALSE=
2479 fi
2480
2481
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509 done
2510 done
2511
2512 fi
2513 fi
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516 echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6
2518 else
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523 fi
2524 if test -z "$ac_cv_prog_CC"; then
2525 ac_ct_CC=$CC
2526 # Extract the first word of "gcc", so it can be a program name with args.
2527 set dummy gcc; ac_word=$2
2528 echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_ac_ct_CC="gcc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549
2550 fi
2551 fi
2552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553 if test -n "$ac_ct_CC"; then
2554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2555 echo "${ECHO_T}$ac_ct_CC" >&6
2556 else
2557 echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2559 fi
2560
2561 CC=$ac_ct_CC
2562 else
2563 CC="$ac_cv_prog_CC"
2564 fi
2565
2566 if test -z "$CC"; then
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2569 set dummy ${ac_tool_prefix}cc; ac_word=$2
2570 echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572 if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_CC="${ac_tool_prefix}cc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589 done
2590 done
2591
2592 fi
2593 fi
2594 CC=$ac_cv_prog_CC
2595 if test -n "$CC"; then
2596 echo "$as_me:$LINENO: result: $CC" >&5
2597 echo "${ECHO_T}$CC" >&6
2598 else
2599 echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2601 fi
2602
2603 fi
2604 if test -z "$ac_cv_prog_CC"; then
2605 ac_ct_CC=$CC
2606 # Extract the first word of "cc", so it can be a program name with args.
2607 set dummy cc; ac_word=$2
2608 echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_ac_ct_CC="cc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629
2630 fi
2631 fi
2632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633 if test -n "$ac_ct_CC"; then
2634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635 echo "${ECHO_T}$ac_ct_CC" >&6
2636 else
2637 echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6
2639 fi
2640
2641 CC=$ac_ct_CC
2642 else
2643 CC="$ac_cv_prog_CC"
2644 fi
2645
2646 fi
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set dummy cc; ac_word=$2
2650 echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 ac_prog_rejected=no
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2668 continue
2669 fi
2670 ac_cv_prog_CC="cc"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676
2677 if test $ac_prog_rejected = yes; then
2678 # We found a bogon in the path, so make sure we never use it.
2679 set dummy $ac_cv_prog_CC
2680 shift
2681 if test $# != 0; then
2682 # We chose a different compiler from the bogus one.
2683 # However, it has the same basename, so the bogon will be chosen
2684 # first if we set CC to just the basename; use the full file name.
2685 shift
2686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2687 fi
2688 fi
2689 fi
2690 fi
2691 CC=$ac_cv_prog_CC
2692 if test -n "$CC"; then
2693 echo "$as_me:$LINENO: result: $CC" >&5
2694 echo "${ECHO_T}$CC" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697 echo "${ECHO_T}no" >&6
2698 fi
2699
2700 fi
2701 if test -z "$CC"; then
2702 if test -n "$ac_tool_prefix"; then
2703 for ac_prog in cl
2704 do
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2707 echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728
2729 fi
2730 fi
2731 CC=$ac_cv_prog_CC
2732 if test -n "$CC"; then
2733 echo "$as_me:$LINENO: result: $CC" >&5
2734 echo "${ECHO_T}$CC" >&6
2735 else
2736 echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2738 fi
2739
2740 test -n "$CC" && break
2741 done
2742 fi
2743 if test -z "$CC"; then
2744 ac_ct_CC=$CC
2745 for ac_prog in cl
2746 do
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy $ac_prog; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_ac_ct_CC="$ac_prog"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770
2771 fi
2772 fi
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 echo "${ECHO_T}$ac_ct_CC" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2780 fi
2781
2782 test -n "$ac_ct_CC" && break
2783 done
2784
2785 CC=$ac_ct_CC
2786 fi
2787
2788 fi
2789
2790
2791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: no acceptable C compiler found in \$PATH
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796
2797 # Provide some information about the compiler.
2798 echo "$as_me:$LINENO:" \
2799 "checking for C compiler version" >&5
2800 ac_compiler=`set X $ac_compile; echo $2`
2801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2802 (eval $ac_compiler --version </dev/null >&5) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
2806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2807 (eval $ac_compiler -v </dev/null >&5) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2812 (eval $ac_compiler -V </dev/null >&5) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816
2817 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2818 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2819 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828
2829 int
2830 main ()
2831 {
2832 #ifndef __GNUC__
2833 choke me
2834 #endif
2835
2836 ;
2837 return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest.$ac_objext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 ac_compiler_gnu=yes
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 ac_compiler_gnu=no
2868 fi
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2871
2872 fi
2873 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2874 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2875 GCC=`test $ac_compiler_gnu = yes && echo yes`
2876 ac_test_CFLAGS=${CFLAGS+set}
2877 ac_save_CFLAGS=$CFLAGS
2878 CFLAGS="-g"
2879 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2880 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2881 if test "${ac_cv_prog_cc_g+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 cat >conftest.$ac_ext <<_ACEOF
2885 /* confdefs.h. */
2886 _ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2890
2891 int
2892 main ()
2893 {
2894
2895 ;
2896 return 0;
2897 }
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>conftest.er1
2902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -z "$ac_c_werror_flag"
2909 || test ! -s conftest.err'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 ac_cv_prog_cc_g=yes
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 ac_cv_prog_cc_g=no
2927 fi
2928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2929 fi
2930 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2931 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2932 if test "$ac_test_CFLAGS" = set; then
2933 CFLAGS=$ac_save_CFLAGS
2934 elif test $ac_cv_prog_cc_g = yes; then
2935 if test "$GCC" = yes; then
2936 CFLAGS="-g -O2"
2937 else
2938 CFLAGS="-g"
2939 fi
2940 else
2941 if test "$GCC" = yes; then
2942 CFLAGS="-O2"
2943 else
2944 CFLAGS=
2945 fi
2946 fi
2947 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2948 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2949 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 ac_cv_prog_cc_stdc=no
2953 ac_save_CC=$CC
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960 #include <stdarg.h>
2961 #include <stdio.h>
2962 #include <sys/types.h>
2963 #include <sys/stat.h>
2964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2965 struct buf { int x; };
2966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2967 static char *e (p, i)
2968 char **p;
2969 int i;
2970 {
2971 return p[i];
2972 }
2973 static char *f (char * (*g) (char **, int), char **p, ...)
2974 {
2975 char *s;
2976 va_list v;
2977 va_start (v,p);
2978 s = g (p, va_arg (v,int));
2979 va_end (v);
2980 return s;
2981 }
2982
2983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2984 function prototypes and stuff, but not '\xHH' hex character constants.
2985 These don't provoke an error unfortunately, instead are silently treated
2986 as 'x'. The following induces an error, until -std1 is added to get
2987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2988 array size at least. It's necessary to write '\x00'==0 to get something
2989 that's true only with -std1. */
2990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2991
2992 int test (int i, double x);
2993 struct s1 {int (*f) (int a);};
2994 struct s2 {int (*f) (double a);};
2995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 int argc;
2997 char **argv;
2998 int
2999 main ()
3000 {
3001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3002 ;
3003 return 0;
3004 }
3005 _ACEOF
3006 # Don't try gcc -ansi; that turns off useful extensions and
3007 # breaks some systems' header files.
3008 # AIX -qlanglvl=ansi
3009 # Ultrix and OSF/1 -std1
3010 # HP-UX 10.20 and later -Ae
3011 # HP-UX older versions -Aa -D_HPUX_SOURCE
3012 # SVR4 -Xc -D__EXTENSIONS__
3013 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3014 do
3015 CC="$ac_save_CC $ac_arg"
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag"
3026 || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 ac_cv_prog_cc_stdc=$ac_arg
3039 break
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 fi
3045 rm -f conftest.err conftest.$ac_objext
3046 done
3047 rm -f conftest.$ac_ext conftest.$ac_objext
3048 CC=$ac_save_CC
3049
3050 fi
3051
3052 case "x$ac_cv_prog_cc_stdc" in
3053 x|xno)
3054 echo "$as_me:$LINENO: result: none needed" >&5
3055 echo "${ECHO_T}none needed" >&6 ;;
3056 *)
3057 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3058 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3059 CC="$CC $ac_cv_prog_cc_stdc" ;;
3060 esac
3061
3062 # Some people use a C++ compiler to compile C. Since we use `exit',
3063 # in C++ we need to declare it. In case someone uses the same compiler
3064 # for both compiling C and C++ we need to have the C++ compiler decide
3065 # the declaration of exit, since it's the most demanding environment.
3066 cat >conftest.$ac_ext <<_ACEOF
3067 #ifndef __cplusplus
3068 choke me
3069 #endif
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073 (eval $ac_compile) 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_c_werror_flag"
3081 || test ! -s conftest.err'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 (eval $ac_try) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 for ac_declaration in \
3094 '' \
3095 'extern "C" void std::exit (int) throw (); using std::exit;' \
3096 'extern "C" void std::exit (int); using std::exit;' \
3097 'extern "C" void exit (int) throw ();' \
3098 'extern "C" void exit (int);' \
3099 'void exit (int);'
3100 do
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3107 $ac_declaration
3108 #include <stdlib.h>
3109 int
3110 main ()
3111 {
3112 exit (42);
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag"
3127 || test ! -s conftest.err'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 :
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 continue
3145 fi
3146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_declaration
3154 int
3155 main ()
3156 {
3157 exit (42);
3158 ;
3159 return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 break
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 fi
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 done
3192 rm -f conftest*
3193 if test -n "$ac_declaration"; then
3194 echo '#ifdef __cplusplus' >>confdefs.h
3195 echo $ac_declaration >>confdefs.h
3196 echo '#endif' >>confdefs.h
3197 fi
3198
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 fi
3204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211 depcc="$CC" am_compiler_list=
3212
3213 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3214 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3215 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3219 # We make a subdir and do the tests there. Otherwise we can end up
3220 # making bogus files that we don't know about and never remove. For
3221 # instance it was reported that on HP-UX the gcc test will end up
3222 # making a dummy file named `D' -- because `-MD' means `put the output
3223 # in D'.
3224 mkdir conftest.dir
3225 # Copy depcomp to subdir because otherwise we won't find it if we're
3226 # using a relative directory.
3227 cp "$am_depcomp" conftest.dir
3228 cd conftest.dir
3229 # We will build objects and dependencies in a subdirectory because
3230 # it helps to detect inapplicable dependency modes. For instance
3231 # both Tru64's cc and ICC support -MD to output dependencies as a
3232 # side effect of compilation, but ICC will put the dependencies in
3233 # the current directory while Tru64 will put them in the object
3234 # directory.
3235 mkdir sub
3236
3237 am_cv_CC_dependencies_compiler_type=none
3238 if test "$am_compiler_list" = ""; then
3239 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3240 fi
3241 for depmode in $am_compiler_list; do
3242 # Setup a source with many dependencies, because some compilers
3243 # like to wrap large dependency lists on column 80 (with \), and
3244 # we should not choose a depcomp mode which is confused by this.
3245 #
3246 # We need to recreate these files for each test, as the compiler may
3247 # overwrite some of them when testing with obscure command lines.
3248 # This happens at least with the AIX C compiler.
3249 : > sub/conftest.c
3250 for i in 1 2 3 4 5 6; do
3251 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3252 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3253 # Solaris 8's {/usr,}/bin/sh.
3254 touch sub/conftst$i.h
3255 done
3256 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3257
3258 case $depmode in
3259 nosideeffect)
3260 # after this tag, mechanisms are not by side-effect, so they'll
3261 # only be used when explicitly requested
3262 if test "x$enable_dependency_tracking" = xyes; then
3263 continue
3264 else
3265 break
3266 fi
3267 ;;
3268 none) break ;;
3269 esac
3270 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3271 # mode. It turns out that the SunPro C++ compiler does not properly
3272 # handle `-M -o', and we need to detect this.
3273 if depmode=$depmode \
3274 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3276 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3277 >/dev/null 2>conftest.err &&
3278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3279 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3281 # icc doesn't choke on unknown options, it will just issue warnings
3282 # or remarks (even with -Werror). So we grep stderr for any message
3283 # that says an option was ignored or not supported.
3284 # When given -MP, icc 7.0 and 7.1 complain thusly:
3285 # icc: Command line warning: ignoring option '-M'; no argument required
3286 # The diagnosis changed in icc 8.0:
3287 # icc: Command line remark: option '-MP' not supported
3288 if (grep 'ignoring option' conftest.err ||
3289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3290 am_cv_CC_dependencies_compiler_type=$depmode
3291 break
3292 fi
3293 fi
3294 done
3295
3296 cd ..
3297 rm -rf conftest.dir
3298 else
3299 am_cv_CC_dependencies_compiler_type=none
3300 fi
3301
3302 fi
3303 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3304 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3306
3307
3308
3309 if
3310 test "x$enable_dependency_tracking" != xno \
3311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3312 am__fastdepCC_TRUE=
3313 am__fastdepCC_FALSE='#'
3314 else
3315 am__fastdepCC_TRUE='#'
3316 am__fastdepCC_FALSE=
3317 fi
3318
3319
3320 # Find a good install program. We prefer a C program (faster),
3321 # so one script is as good as another. But avoid the broken or
3322 # incompatible versions:
3323 # SysV /etc/install, /usr/sbin/install
3324 # SunOS /usr/etc/install
3325 # IRIX /sbin/install
3326 # AIX /bin/install
3327 # AmigaOS /C/install, which installs bootblocks on floppy discs
3328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3331 # OS/2's system install, which has a completely different semantic
3332 # ./install, which can be erroneously created by make from ./install.sh.
3333 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3335 if test -z "$INSTALL"; then
3336 if test "${ac_cv_path_install+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 # Account for people who put trailing slashes in PATH elements.
3345 case $as_dir/ in
3346 ./ | .// | /cC/* | \
3347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3348 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3349 /usr/ucb/* ) ;;
3350 *)
3351 # OSF1 and SCO ODT 3.0 have their own names for install.
3352 # Don't use installbsd from OSF since it installs stuff as root
3353 # by default.
3354 for ac_prog in ginstall scoinst install; do
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3357 if test $ac_prog = install &&
3358 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359 # AIX install. It has an incompatible calling convention.
3360 :
3361 elif test $ac_prog = install &&
3362 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3363 # program-specific install script used by HP pwplus--don't use.
3364 :
3365 else
3366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3367 break 3
3368 fi
3369 fi
3370 done
3371 done
3372 ;;
3373 esac
3374 done
3375
3376
3377 fi
3378 if test "${ac_cv_path_install+set}" = set; then
3379 INSTALL=$ac_cv_path_install
3380 else
3381 # As a last resort, use the slow shell script. We don't cache a
3382 # path for INSTALL within a source directory, because that will
3383 # break other packages using the cache if that directory is
3384 # removed, or if the path is relative.
3385 INSTALL=$ac_install_sh
3386 fi
3387 fi
3388 echo "$as_me:$LINENO: result: $INSTALL" >&5
3389 echo "${ECHO_T}$INSTALL" >&6
3390
3391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3392 # It thinks the first close brace ends the variable substitution.
3393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3394
3395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3396
3397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3398
3399
3400
3401
3402 # Checks for libraries.
3403
3404 # Checks for header files.
3405
3406
3407
3408
3409
3410
3411 ac_header_dirent=no
3412 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3413 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3414 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3415 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <sys/types.h>
3426 #include <$ac_hdr>
3427
3428 int
3429 main ()
3430 {
3431 if ((DIR *) 0)
3432 return 0;
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -z "$ac_c_werror_flag"
3447 || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 eval "$as_ac_Header=yes"
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 eval "$as_ac_Header=no"
3465 fi
3466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467 fi
3468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3471 cat >>confdefs.h <<_ACEOF
3472 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3473 _ACEOF
3474
3475 ac_header_dirent=$ac_hdr; break
3476 fi
3477
3478 done
3479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3480 if test $ac_header_dirent = dirent.h; then
3481 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3483 if test "${ac_cv_search_opendir+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 ac_func_search_save_LIBS=$LIBS
3487 ac_cv_search_opendir=no
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 #ifdef __cplusplus
3497 extern "C"
3498 #endif
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char opendir ();
3502 int
3503 main ()
3504 {
3505 opendir ();
3506 ;
3507 return 0;
3508 }
3509 _ACEOF
3510 rm -f conftest.$ac_objext conftest$ac_exeext
3511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3512 (eval $ac_link) 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -z "$ac_c_werror_flag"
3520 || test ! -s conftest.err'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; } &&
3526 { ac_try='test -s conftest$ac_exeext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_cv_search_opendir="none required"
3533 else
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537 fi
3538 rm -f conftest.err conftest.$ac_objext \
3539 conftest$ac_exeext conftest.$ac_ext
3540 if test "$ac_cv_search_opendir" = no; then
3541 for ac_lib in dir; do
3542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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
3550 /* Override any gcc2 internal prototype to avoid an error. */
3551 #ifdef __cplusplus
3552 extern "C"
3553 #endif
3554 /* We use char because int might match the return type of a gcc2
3555 builtin and then its argument prototype would still apply. */
3556 char opendir ();
3557 int
3558 main ()
3559 {
3560 opendir ();
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 rm -f conftest.$ac_objext conftest$ac_exeext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3567 (eval $ac_link) 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } &&
3574 { ac_try='test -z "$ac_c_werror_flag"
3575 || test ! -s conftest.err'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; } &&
3581 { ac_try='test -s conftest$ac_exeext'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; }; then
3587 ac_cv_search_opendir="-l$ac_lib"
3588 break
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 fi
3594 rm -f conftest.err conftest.$ac_objext \
3595 conftest$ac_exeext conftest.$ac_ext
3596 done
3597 fi
3598 LIBS=$ac_func_search_save_LIBS
3599 fi
3600 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3601 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3602 if test "$ac_cv_search_opendir" != no; then
3603 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3604
3605 fi
3606
3607 else
3608 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3609 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3610 if test "${ac_cv_search_opendir+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 ac_func_search_save_LIBS=$LIBS
3614 ac_cv_search_opendir=no
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h. */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621
3622 /* Override any gcc2 internal prototype to avoid an error. */
3623 #ifdef __cplusplus
3624 extern "C"
3625 #endif
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3628 char opendir ();
3629 int
3630 main ()
3631 {
3632 opendir ();
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.$ac_objext conftest$ac_exeext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639 (eval $ac_link) 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_exeext'
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_search_opendir="none required"
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 fi
3665 rm -f conftest.err conftest.$ac_objext \
3666 conftest$ac_exeext conftest.$ac_ext
3667 if test "$ac_cv_search_opendir" = no; then
3668 for ac_lib in x; do
3669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3670 cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h. */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 #ifdef __cplusplus
3679 extern "C"
3680 #endif
3681 /* We use char because int might match the return type of a gcc2
3682 builtin and then its argument prototype would still apply. */
3683 char opendir ();
3684 int
3685 main ()
3686 {
3687 opendir ();
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext conftest$ac_exeext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3694 (eval $ac_link) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -z "$ac_c_werror_flag"
3702 || test ! -s conftest.err'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; } &&
3708 { ac_try='test -s conftest$ac_exeext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_search_opendir="-l$ac_lib"
3715 break
3716 else
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 fi
3721 rm -f conftest.err conftest.$ac_objext \
3722 conftest$ac_exeext conftest.$ac_ext
3723 done
3724 fi
3725 LIBS=$ac_func_search_save_LIBS
3726 fi
3727 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3728 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3729 if test "$ac_cv_search_opendir" != no; then
3730 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3731
3732 fi
3733
3734 fi
3735
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3742 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3743 # On Suns, sometimes $CPP names a directory.
3744 if test -n "$CPP" && test -d "$CPP"; then
3745 CPP=
3746 fi
3747 if test -z "$CPP"; then
3748 if test "${ac_cv_prog_CPP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 # Double quotes because CPP needs to be expanded
3752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3753 do
3754 ac_preproc_ok=false
3755 for ac_c_preproc_warn_flag in '' yes
3756 do
3757 # Use a header file that comes with gcc, so configuring glibc
3758 # with a fresh cross-compiler works.
3759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 # <limits.h> exists even on freestanding compilers.
3761 # On the NeXT, cc -E runs the code through the compiler's parser,
3762 # not just through cpp. "Syntax error" is here to catch this case.
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769 #ifdef __STDC__
3770 # include <limits.h>
3771 #else
3772 # include <assert.h>
3773 #endif
3774 Syntax error
3775 _ACEOF
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null; then
3784 if test -s conftest.err; then
3785 ac_cpp_err=$ac_c_preproc_warn_flag
3786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3787 else
3788 ac_cpp_err=
3789 fi
3790 else
3791 ac_cpp_err=yes
3792 fi
3793 if test -z "$ac_cpp_err"; then
3794 :
3795 else
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799 # Broken: fails on valid input.
3800 continue
3801 fi
3802 rm -f conftest.err conftest.$ac_ext
3803
3804 # OK, works on sane cases. Now check whether non-existent headers
3805 # can be detected and how.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3813 _ACEOF
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null; then
3822 if test -s conftest.err; then
3823 ac_cpp_err=$ac_c_preproc_warn_flag
3824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3825 else
3826 ac_cpp_err=
3827 fi
3828 else
3829 ac_cpp_err=yes
3830 fi
3831 if test -z "$ac_cpp_err"; then
3832 # Broken: success on invalid input.
3833 continue
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 # Passes both tests.
3839 ac_preproc_ok=:
3840 break
3841 fi
3842 rm -f conftest.err conftest.$ac_ext
3843
3844 done
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then
3848 break
3849 fi
3850
3851 done
3852 ac_cv_prog_CPP=$CPP
3853
3854 fi
3855 CPP=$ac_cv_prog_CPP
3856 else
3857 ac_cv_prog_CPP=$CPP
3858 fi
3859 echo "$as_me:$LINENO: result: $CPP" >&5
3860 echo "${ECHO_T}$CPP" >&6
3861 ac_preproc_ok=false
3862 for ac_c_preproc_warn_flag in '' yes
3863 do
3864 # Use a header file that comes with gcc, so configuring glibc
3865 # with a fresh cross-compiler works.
3866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 # <limits.h> exists even on freestanding compilers.
3868 # On the NeXT, cc -E runs the code through the compiler's parser,
3869 # not just through cpp. "Syntax error" is here to catch this case.
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 #ifdef __STDC__
3877 # include <limits.h>
3878 #else
3879 # include <assert.h>
3880 #endif
3881 Syntax error
3882 _ACEOF
3883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } >/dev/null; then
3891 if test -s conftest.err; then
3892 ac_cpp_err=$ac_c_preproc_warn_flag
3893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3894 else
3895 ac_cpp_err=
3896 fi
3897 else
3898 ac_cpp_err=yes
3899 fi
3900 if test -z "$ac_cpp_err"; then
3901 :
3902 else
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 # Broken: fails on valid input.
3907 continue
3908 fi
3909 rm -f conftest.err conftest.$ac_ext
3910
3911 # OK, works on sane cases. Now check whether non-existent headers
3912 # can be detected and how.
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 #include <ac_nonexistent.h>
3920 _ACEOF
3921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } >/dev/null; then
3929 if test -s conftest.err; then
3930 ac_cpp_err=$ac_c_preproc_warn_flag
3931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3932 else
3933 ac_cpp_err=
3934 fi
3935 else
3936 ac_cpp_err=yes
3937 fi
3938 if test -z "$ac_cpp_err"; then
3939 # Broken: success on invalid input.
3940 continue
3941 else
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 # Passes both tests.
3946 ac_preproc_ok=:
3947 break
3948 fi
3949 rm -f conftest.err conftest.$ac_ext
3950
3951 done
3952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953 rm -f conftest.err conftest.$ac_ext
3954 if $ac_preproc_ok; then
3955 :
3956 else
3957 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details." >&5
3959 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&2;}
3961 { (exit 1); exit 1; }; }
3962 fi
3963
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969
3970
3971 echo "$as_me:$LINENO: checking for egrep" >&5
3972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3973 if test "${ac_cv_prog_egrep+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3977 then ac_cv_prog_egrep='grep -E'
3978 else ac_cv_prog_egrep='egrep'
3979 fi
3980 fi
3981 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3982 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3983 EGREP=$ac_cv_prog_egrep
3984
3985
3986 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3987 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3988 if test "${ac_cv_header_stdc+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <stdlib.h>
3998 #include <stdarg.h>
3999 #include <string.h>
4000 #include <float.h>
4001
4002 int
4003 main ()
4004 {
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.$ac_objext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_c_werror_flag"
4020 || test ! -s conftest.err'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4032 ac_cv_header_stdc=yes
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 ac_cv_header_stdc=no
4038 fi
4039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4040
4041 if test $ac_cv_header_stdc = yes; then
4042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 #include <string.h>
4050
4051 _ACEOF
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "memchr" >/dev/null 2>&1; then
4054 :
4055 else
4056 ac_cv_header_stdc=no
4057 fi
4058 rm -f conftest*
4059
4060 fi
4061
4062 if test $ac_cv_header_stdc = yes; then
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <stdlib.h>
4071
4072 _ACEOF
4073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074 $EGREP "free" >/dev/null 2>&1; then
4075 :
4076 else
4077 ac_cv_header_stdc=no
4078 fi
4079 rm -f conftest*
4080
4081 fi
4082
4083 if test $ac_cv_header_stdc = yes; then
4084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4085 if test "$cross_compiling" = yes; then
4086 :
4087 else
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h. */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4094 #include <ctype.h>
4095 #if ((' ' & 0x0FF) == 0x020)
4096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4098 #else
4099 # define ISLOWER(c) \
4100 (('a' <= (c) && (c) <= 'i') \
4101 || ('j' <= (c) && (c) <= 'r') \
4102 || ('s' <= (c) && (c) <= 'z'))
4103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4104 #endif
4105
4106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4107 int
4108 main ()
4109 {
4110 int i;
4111 for (i = 0; i < 256; i++)
4112 if (XOR (islower (i), ISLOWER (i))
4113 || toupper (i) != TOUPPER (i))
4114 exit(2);
4115 exit (0);
4116 }
4117 _ACEOF
4118 rm -f conftest$ac_exeext
4119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4120 (eval $ac_link) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 (eval $ac_try) 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 :
4130 else
4131 echo "$as_me: program exited with status $ac_status" >&5
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ( exit $ac_status )
4136 ac_cv_header_stdc=no
4137 fi
4138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 fi
4141 fi
4142 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4143 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4144 if test $ac_cv_header_stdc = yes; then
4145
4146 cat >>confdefs.h <<\_ACEOF
4147 #define STDC_HEADERS 1
4148 _ACEOF
4149
4150 fi
4151
4152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4163 inttypes.h stdint.h unistd.h
4164 do
4165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4166 echo "$as_me:$LINENO: checking for $ac_header" >&5
4167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4178
4179 #include <$ac_header>
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag"
4191 || test ! -s conftest.err'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 (eval $ac_try) 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; } &&
4197 { ac_try='test -s conftest.$ac_objext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 eval "$as_ac_Header=yes"
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 eval "$as_ac_Header=no"
4209 fi
4210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 fi
4212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 _ACEOF
4218
4219 fi
4220
4221 done
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234 for ac_header in unistd.h stdio.h sys/types.h sys/stat.h fnmatch.h \
4235 dirent.h fcntl.h signal.h regex.h
4236 do
4237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239 echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 fi
4244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246 else
4247 # Is the header compilable?
4248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4257 #include <$ac_header>
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag"
4269 || test ! -s conftest.err'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 ac_header_compiler=yes
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 ac_header_compiler=no
4287 fi
4288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4290 echo "${ECHO_T}$ac_header_compiler" >&6
4291
4292 # Is the header present?
4293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 #include <$ac_header>
4302 _ACEOF
4303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } >/dev/null; then
4311 if test -s conftest.err; then
4312 ac_cpp_err=$ac_c_preproc_warn_flag
4313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4314 else
4315 ac_cpp_err=
4316 fi
4317 else
4318 ac_cpp_err=yes
4319 fi
4320 if test -z "$ac_cpp_err"; then
4321 ac_header_preproc=yes
4322 else
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326 ac_header_preproc=no
4327 fi
4328 rm -f conftest.err conftest.$ac_ext
4329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4330 echo "${ECHO_T}$ac_header_preproc" >&6
4331
4332 # So? What about this header?
4333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4334 yes:no: )
4335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4339 ac_header_preproc=yes
4340 ;;
4341 no:yes:* )
4342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4354 (
4355 cat <<\_ASBOX
4356 ## ------------------------------------------ ##
4357 ## Report this to the AC_PACKAGE_NAME lists. ##
4358 ## ------------------------------------------ ##
4359 _ASBOX
4360 ) |
4361 sed "s/^/$as_me: WARNING: /" >&2
4362 ;;
4363 esac
4364 echo "$as_me:$LINENO: checking for $ac_header" >&5
4365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 eval "$as_ac_Header=\$ac_header_preproc"
4370 fi
4371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4373
4374 fi
4375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4376 cat >>confdefs.h <<_ACEOF
4377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378 _ACEOF
4379
4380 fi
4381
4382 done
4383
4384
4385 CFLAGS="$CFLAGS $X_CFLAGS"
4386 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
4387 LIBS="$LIBS $X_LIBS"
4388 LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
4389
4390 # Checks for typedefs, structures, and compiler characteristics.
4391 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4393 if test "${ac_cv_c_const+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402
4403 int
4404 main ()
4405 {
4406 /* FIXME: Include the comments suggested by Paul. */
4407 #ifndef __cplusplus
4408 /* Ultrix mips cc rejects this. */
4409 typedef int charset[2];
4410 const charset x;
4411 /* SunOS 4.1.1 cc rejects this. */
4412 char const *const *ccp;
4413 char **p;
4414 /* NEC SVR4.0.2 mips cc rejects this. */
4415 struct point {int x, y;};
4416 static struct point const zero = {0,0};
4417 /* AIX XL C 1.02.0.0 rejects this.
4418 It does not let you subtract one const X* pointer from another in
4419 an arm of an if-expression whose if-part is not a constant
4420 expression */
4421 const char *g = "string";
4422 ccp = &g + (g ? g-g : 0);
4423 /* HPUX 7.0 cc rejects these. */
4424 ++ccp;
4425 p = (char**) ccp;
4426 ccp = (char const *const *) p;
4427 { /* SCO 3.2v4 cc rejects this. */
4428 char *t;
4429 char const *s = 0 ? (char *) 0 : (char const *) 0;
4430
4431 *t++ = 0;
4432 }
4433 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4434 int x[] = {25, 17};
4435 const int *foo = &x[0];
4436 ++foo;
4437 }
4438 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4439 typedef const int *iptr;
4440 iptr p = 0;
4441 ++p;
4442 }
4443 { /* AIX XL C 1.02.0.0 rejects this saying
4444 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4445 struct s { int j; const int *ap[3]; };
4446 struct s *b; b->j = 5;
4447 }
4448 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4449 const int foo = 10;
4450 }
4451 #endif
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_c_const=yes
4480 else
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_cv_c_const=no
4485 fi
4486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487 fi
4488 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4489 echo "${ECHO_T}$ac_cv_c_const" >&6
4490 if test $ac_cv_c_const = no; then
4491
4492 cat >>confdefs.h <<\_ACEOF
4493 #define const
4494 _ACEOF
4495
4496 fi
4497
4498
4499 # I hate you autotools
4500 sysconfdir="/etc"
4501 localstatedir="/var"
4502
4503 # Checks for library functions.
4504 ac_config_headers="$ac_config_headers config.h"
4505
4506 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile misc/Makefile"
4507
4508 cat >confcache <<\_ACEOF
4509 # This file is a shell script that caches the results of configure
4510 # tests run on this system so they can be shared between configure
4511 # scripts and configure runs, see configure's option --config-cache.
4512 # It is not useful on other systems. If it contains results you don't
4513 # want to keep, you may remove or edit it.
4514 #
4515 # config.status only pays attention to the cache file if you give it
4516 # the --recheck option to rerun configure.
4517 #
4518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4520 # following values.
4521
4522 _ACEOF
4523
4524 # The following way of writing the cache mishandles newlines in values,
4525 # but we know of no workaround that is simple, portable, and efficient.
4526 # So, don't put newlines in cache variables' values.
4527 # Ultrix sh set writes to stderr and can't be redirected directly,
4528 # and sets the high bit in the cache file unless we assign to the vars.
4529 {
4530 (set) 2>&1 |
4531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4532 *ac_space=\ *)
4533 # `set' does not quote correctly, so add quotes (double-quote
4534 # substitution turns \\\\ into \\, and sed turns \\ into \).
4535 sed -n \
4536 "s/'/'\\\\''/g;
4537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4538 ;;
4539 *)
4540 # `set' quotes correctly as required by POSIX, so do not add quotes.
4541 sed -n \
4542 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4543 ;;
4544 esac;
4545 } |
4546 sed '
4547 t clear
4548 : clear
4549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4550 t end
4551 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4552 : end' >>confcache
4553 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4554 if test -w $cache_file; then
4555 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4556 cat confcache >$cache_file
4557 else
4558 echo "not updating unwritable cache $cache_file"
4559 fi
4560 fi
4561 rm -f confcache
4562
4563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4564 # Let make expand exec_prefix.
4565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4566
4567 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4568 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4569 # trailing colons and then remove the whole line if VPATH becomes empty
4570 # (actually we leave an empty line to preserve line numbers).
4571 if test "x$srcdir" = x.; then
4572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4573 s/:*\$(srcdir):*/:/;
4574 s/:*\${srcdir}:*/:/;
4575 s/:*@srcdir@:*/:/;
4576 s/^\([^=]*=[ ]*\):*/\1/;
4577 s/:*$//;
4578 s/^[^=]*=[ ]*$//;
4579 }'
4580 fi
4581
4582 DEFS=-DHAVE_CONFIG_H
4583
4584 ac_libobjs=
4585 ac_ltlibobjs=
4586 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4587 # 1. Remove the extension, and $U if already installed.
4588 ac_i=`echo "$ac_i" |
4589 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4590 # 2. Add them.
4591 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4592 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4593 done
4594 LIBOBJS=$ac_libobjs
4595
4596 LTLIBOBJS=$ac_ltlibobjs
4597
4598
4599 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4600 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4601 Usually this means the macro was only invoked conditionally." >&5
4602 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4603 Usually this means the macro was only invoked conditionally." >&2;}
4604 { (exit 1); exit 1; }; }
4605 fi
4606 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
4607 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
4608 Usually this means the macro was only invoked conditionally." >&5
4609 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
4610 Usually this means the macro was only invoked conditionally." >&2;}
4611 { (exit 1); exit 1; }; }
4612 fi
4613 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4614 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4615 Usually this means the macro was only invoked conditionally." >&5
4616 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4617 Usually this means the macro was only invoked conditionally." >&2;}
4618 { (exit 1); exit 1; }; }
4619 fi
4620
4621 : ${CONFIG_STATUS=./config.status}
4622 ac_clean_files_save=$ac_clean_files
4623 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4624 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4625 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4626 cat >$CONFIG_STATUS <<_ACEOF
4627 #! $SHELL
4628 # Generated by $as_me.
4629 # Run this file to recreate the current configuration.
4630 # Compiler output produced by configure, useful for debugging
4631 # configure, is in config.log if it exists.
4632
4633 debug=false
4634 ac_cs_recheck=false
4635 ac_cs_silent=false
4636 SHELL=\${CONFIG_SHELL-$SHELL}
4637 _ACEOF
4638
4639 cat >>$CONFIG_STATUS <<\_ACEOF
4640 ## --------------------- ##
4641 ## M4sh Initialization. ##
4642 ## --------------------- ##
4643
4644 # Be Bourne compatible
4645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4646 emulate sh
4647 NULLCMD=:
4648 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4649 # is contrary to our usage. Disable this feature.
4650 alias -g '${1+"$@"}'='"$@"'
4651 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4652 set -o posix
4653 fi
4654 DUALCASE=1; export DUALCASE # for MKS sh
4655
4656 # Support unset when possible.
4657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4658 as_unset=unset
4659 else
4660 as_unset=false
4661 fi
4662
4663
4664 # Work around bugs in pre-3.0 UWIN ksh.
4665 $as_unset ENV MAIL MAILPATH
4666 PS1='$ '
4667 PS2='> '
4668 PS4='+ '
4669
4670 # NLS nuisances.
4671 for as_var in \
4672 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4673 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4674 LC_TELEPHONE LC_TIME
4675 do
4676 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4677 eval $as_var=C; export $as_var
4678 else
4679 $as_unset $as_var
4680 fi
4681 done
4682
4683 # Required to use basename.
4684 if expr a : '\(a\)' >/dev/null 2>&1; then
4685 as_expr=expr
4686 else
4687 as_expr=false
4688 fi
4689
4690 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4691 as_basename=basename
4692 else
4693 as_basename=false
4694 fi
4695
4696
4697 # Name of the executable.
4698 as_me=`$as_basename "$0" ||
4699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4700 X"$0" : 'X\(//\)$' \| \
4701 X"$0" : 'X\(/\)$' \| \
4702 . : '\(.\)' 2>/dev/null ||
4703 echo X/"$0" |
4704 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4705 /^X\/\(\/\/\)$/{ s//\1/; q; }
4706 /^X\/\(\/\).*/{ s//\1/; q; }
4707 s/.*/./; q'`
4708
4709
4710 # PATH needs CR, and LINENO needs CR and PATH.
4711 # Avoid depending upon Character Ranges.
4712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4715 as_cr_digits='0123456789'
4716 as_cr_alnum=$as_cr_Letters$as_cr_digits
4717
4718 # The user is always right.
4719 if test "${PATH_SEPARATOR+set}" != set; then
4720 echo "#! /bin/sh" >conf$$.sh
4721 echo "exit 0" >>conf$$.sh
4722 chmod +x conf$$.sh
4723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4724 PATH_SEPARATOR=';'
4725 else
4726 PATH_SEPARATOR=:
4727 fi
4728 rm -f conf$$.sh
4729 fi
4730
4731
4732 as_lineno_1=$LINENO
4733 as_lineno_2=$LINENO
4734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4735 test "x$as_lineno_1" != "x$as_lineno_2" &&
4736 test "x$as_lineno_3" = "x$as_lineno_2" || {
4737 # Find who we are. Look in the path if we contain no path at all
4738 # relative or not.
4739 case $0 in
4740 *[\\/]* ) as_myself=$0 ;;
4741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4747 done
4748
4749 ;;
4750 esac
4751 # We did not find ourselves, most probably we were run as `sh COMMAND'
4752 # in which case we are not to be found in the path.
4753 if test "x$as_myself" = x; then
4754 as_myself=$0
4755 fi
4756 if test ! -f "$as_myself"; then
4757 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4758 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4759 { (exit 1); exit 1; }; }
4760 fi
4761 case $CONFIG_SHELL in
4762 '')
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for as_base in sh bash ksh sh5; do
4769 case $as_dir in
4770 /*)
4771 if ("$as_dir/$as_base" -c '
4772 as_lineno_1=$LINENO
4773 as_lineno_2=$LINENO
4774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4775 test "x$as_lineno_1" != "x$as_lineno_2" &&
4776 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4777 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4778 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4779 CONFIG_SHELL=$as_dir/$as_base
4780 export CONFIG_SHELL
4781 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4782 fi;;
4783 esac
4784 done
4785 done
4786 ;;
4787 esac
4788
4789 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4790 # uniformly replaced by the line number. The first 'sed' inserts a
4791 # line-number line before each line; the second 'sed' does the real
4792 # work. The second script uses 'N' to pair each line-number line
4793 # with the numbered line, and appends trailing '-' during
4794 # substitution so that $LINENO is not a special case at line end.
4795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4796 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4797 sed '=' <$as_myself |
4798 sed '
4799 N
4800 s,$,-,
4801 : loop
4802 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4803 t loop
4804 s,-$,,
4805 s,^['$as_cr_digits']*\n,,
4806 ' >$as_me.lineno &&
4807 chmod +x $as_me.lineno ||
4808 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4809 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4810 { (exit 1); exit 1; }; }
4811
4812 # Don't try to exec as it changes $[0], causing all sort of problems
4813 # (the dirname of $[0] is not the place where we might find the
4814 # original and so on. Autoconf is especially sensible to this).
4815 . ./$as_me.lineno
4816 # Exit status is that of the last command.
4817 exit
4818 }
4819
4820
4821 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4822 *c*,-n*) ECHO_N= ECHO_C='
4823 ' ECHO_T=' ' ;;
4824 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4825 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4826 esac
4827
4828 if expr a : '\(a\)' >/dev/null 2>&1; then
4829 as_expr=expr
4830 else
4831 as_expr=false
4832 fi
4833
4834 rm -f conf$$ conf$$.exe conf$$.file
4835 echo >conf$$.file
4836 if ln -s conf$$.file conf$$ 2>/dev/null; then
4837 # We could just check for DJGPP; but this test a) works b) is more generic
4838 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4839 if test -f conf$$.exe; then
4840 # Don't use ln at all; we don't have any links
4841 as_ln_s='cp -p'
4842 else
4843 as_ln_s='ln -s'
4844 fi
4845 elif ln conf$$.file conf$$ 2>/dev/null; then
4846 as_ln_s=ln
4847 else
4848 as_ln_s='cp -p'
4849 fi
4850 rm -f conf$$ conf$$.exe conf$$.file
4851
4852 if mkdir -p . 2>/dev/null; then
4853 as_mkdir_p=:
4854 else
4855 test -d ./-p && rmdir ./-p
4856 as_mkdir_p=false
4857 fi
4858
4859 as_executable_p="test -f"
4860
4861 # Sed expression to map a string onto a valid CPP name.
4862 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4863
4864 # Sed expression to map a string onto a valid variable name.
4865 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4866
4867
4868 # IFS
4869 # We need space, tab and new line, in precisely that order.
4870 as_nl='
4871 '
4872 IFS=" $as_nl"
4873
4874 # CDPATH.
4875 $as_unset CDPATH
4876
4877 exec 6>&1
4878
4879 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4880 # report actual input values of CONFIG_FILES etc. instead of their
4881 # values after options handling. Logging --version etc. is OK.
4882 exec 5>>config.log
4883 {
4884 echo
4885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4886 ## Running $as_me. ##
4887 _ASBOX
4888 } >&5
4889 cat >&5 <<_CSEOF
4890
4891 This file was extended by $as_me, which was
4892 generated by GNU Autoconf 2.59. Invocation command line was
4893
4894 CONFIG_FILES = $CONFIG_FILES
4895 CONFIG_HEADERS = $CONFIG_HEADERS
4896 CONFIG_LINKS = $CONFIG_LINKS
4897 CONFIG_COMMANDS = $CONFIG_COMMANDS
4898 $ $0 $@
4899
4900 _CSEOF
4901 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4902 echo >&5
4903 _ACEOF
4904
4905 # Files that config.status was made for.
4906 if test -n "$ac_config_files"; then
4907 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4908 fi
4909
4910 if test -n "$ac_config_headers"; then
4911 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4912 fi
4913
4914 if test -n "$ac_config_links"; then
4915 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4916 fi
4917
4918 if test -n "$ac_config_commands"; then
4919 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4920 fi
4921
4922 cat >>$CONFIG_STATUS <<\_ACEOF
4923
4924 ac_cs_usage="\
4925 \`$as_me' instantiates files from templates according to the
4926 current configuration.
4927
4928 Usage: $0 [OPTIONS] [FILE]...
4929
4930 -h, --help print this help, then exit
4931 -V, --version print version number, then exit
4932 -q, --quiet do not print progress messages
4933 -d, --debug don't remove temporary files
4934 --recheck update $as_me by reconfiguring in the same conditions
4935 --file=FILE[:TEMPLATE]
4936 instantiate the configuration file FILE
4937 --header=FILE[:TEMPLATE]
4938 instantiate the configuration header FILE
4939
4940 Configuration files:
4941 $config_files
4942
4943 Configuration headers:
4944 $config_headers
4945
4946 Configuration commands:
4947 $config_commands
4948
4949 Report bugs to <bug-autoconf@gnu.org>."
4950 _ACEOF
4951
4952 cat >>$CONFIG_STATUS <<_ACEOF
4953 ac_cs_version="\\
4954 config.status
4955 configured by $0, generated by GNU Autoconf 2.59,
4956 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4957
4958 Copyright (C) 2003 Free Software Foundation, Inc.
4959 This config.status script is free software; the Free Software Foundation
4960 gives unlimited permission to copy, distribute and modify it."
4961 srcdir=$srcdir
4962 INSTALL="$INSTALL"
4963 _ACEOF
4964
4965 cat >>$CONFIG_STATUS <<\_ACEOF
4966 # If no file are specified by the user, then we need to provide default
4967 # value. By we need to know if files were specified by the user.
4968 ac_need_defaults=:
4969 while test $# != 0
4970 do
4971 case $1 in
4972 --*=*)
4973 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4974 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4975 ac_shift=:
4976 ;;
4977 -*)
4978 ac_option=$1
4979 ac_optarg=$2
4980 ac_shift=shift
4981 ;;
4982 *) # This is not an option, so the user has probably given explicit
4983 # arguments.
4984 ac_option=$1
4985 ac_need_defaults=false;;
4986 esac
4987
4988 case $ac_option in
4989 # Handling of the options.
4990 _ACEOF
4991 cat >>$CONFIG_STATUS <<\_ACEOF
4992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4993 ac_cs_recheck=: ;;
4994 --version | --vers* | -V )
4995 echo "$ac_cs_version"; exit 0 ;;
4996 --he | --h)
4997 # Conflict between --help and --header
4998 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4999 Try \`$0 --help' for more information." >&5
5000 echo "$as_me: error: ambiguous option: $1
5001 Try \`$0 --help' for more information." >&2;}
5002 { (exit 1); exit 1; }; };;
5003 --help | --hel | -h )
5004 echo "$ac_cs_usage"; exit 0 ;;
5005 --debug | --d* | -d )
5006 debug=: ;;
5007 --file | --fil | --fi | --f )
5008 $ac_shift
5009 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5010 ac_need_defaults=false;;
5011 --header | --heade | --head | --hea )
5012 $ac_shift
5013 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5014 ac_need_defaults=false;;
5015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5017 ac_cs_silent=: ;;
5018
5019 # This is an error.
5020 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5021 Try \`$0 --help' for more information." >&5
5022 echo "$as_me: error: unrecognized option: $1
5023 Try \`$0 --help' for more information." >&2;}
5024 { (exit 1); exit 1; }; } ;;
5025
5026 *) ac_config_targets="$ac_config_targets $1" ;;
5027
5028 esac
5029 shift
5030 done
5031
5032 ac_configure_extra_args=
5033
5034 if $ac_cs_silent; then
5035 exec 6>/dev/null
5036 ac_configure_extra_args="$ac_configure_extra_args --silent"
5037 fi
5038
5039 _ACEOF
5040 cat >>$CONFIG_STATUS <<_ACEOF
5041 if \$ac_cs_recheck; then
5042 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5043 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5044 fi
5045
5046 _ACEOF
5047
5048 cat >>$CONFIG_STATUS <<_ACEOF
5049 #
5050 # INIT-COMMANDS section.
5051 #
5052
5053 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5054
5055 _ACEOF
5056
5057
5058
5059 cat >>$CONFIG_STATUS <<\_ACEOF
5060 for ac_config_target in $ac_config_targets
5061 do
5062 case "$ac_config_target" in
5063 # Handling of arguments.
5064 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5065 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5066 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5067 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
5068 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5069 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5070 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5071 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5072 { (exit 1); exit 1; }; };;
5073 esac
5074 done
5075
5076 # If the user did not use the arguments to specify the items to instantiate,
5077 # then the envvar interface is used. Set only those that are not.
5078 # We use the long form for the default assignment because of an extremely
5079 # bizarre bug on SunOS 4.1.3.
5080 if $ac_need_defaults; then
5081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5084 fi
5085
5086 # Have a temporary directory for convenience. Make it in the build tree
5087 # simply because there is no reason to put it here, and in addition,
5088 # creating and moving files from /tmp can sometimes cause problems.
5089 # Create a temporary directory, and hook for its removal unless debugging.
5090 $debug ||
5091 {
5092 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5093 trap '{ (exit 1); exit 1; }' 1 2 13 15
5094 }
5095
5096 # Create a (secure) tmp directory for tmp files.
5097
5098 {
5099 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5100 test -n "$tmp" && test -d "$tmp"
5101 } ||
5102 {
5103 tmp=./confstat$$-$RANDOM
5104 (umask 077 && mkdir $tmp)
5105 } ||
5106 {
5107 echo "$me: cannot create a temporary directory in ." >&2
5108 { (exit 1); exit 1; }
5109 }
5110
5111 _ACEOF
5112
5113 cat >>$CONFIG_STATUS <<_ACEOF
5114
5115 #
5116 # CONFIG_FILES section.
5117 #
5118
5119 # No need to generate the scripts if there are no CONFIG_FILES.
5120 # This happens for instance when ./config.status config.h
5121 if test -n "\$CONFIG_FILES"; then
5122 # Protect against being on the right side of a sed subst in config.status.
5123 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5124 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5125 s,@SHELL@,$SHELL,;t t
5126 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5127 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5128 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5129 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5130 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5131 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5132 s,@exec_prefix@,$exec_prefix,;t t
5133 s,@prefix@,$prefix,;t t
5134 s,@program_transform_name@,$program_transform_name,;t t
5135 s,@bindir@,$bindir,;t t
5136 s,@sbindir@,$sbindir,;t t
5137 s,@libexecdir@,$libexecdir,;t t
5138 s,@datadir@,$datadir,;t t
5139 s,@sysconfdir@,$sysconfdir,;t t
5140 s,@sharedstatedir@,$sharedstatedir,;t t
5141 s,@localstatedir@,$localstatedir,;t t
5142 s,@libdir@,$libdir,;t t
5143 s,@includedir@,$includedir,;t t
5144 s,@oldincludedir@,$oldincludedir,;t t
5145 s,@infodir@,$infodir,;t t
5146 s,@mandir@,$mandir,;t t
5147 s,@build_alias@,$build_alias,;t t
5148 s,@host_alias@,$host_alias,;t t
5149 s,@target_alias@,$target_alias,;t t
5150 s,@DEFS@,$DEFS,;t t
5151 s,@ECHO_C@,$ECHO_C,;t t
5152 s,@ECHO_N@,$ECHO_N,;t t
5153 s,@ECHO_T@,$ECHO_T,;t t
5154 s,@LIBS@,$LIBS,;t t
5155 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5156 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5157 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5158 s,@CYGPATH_W@,$CYGPATH_W,;t t
5159 s,@PACKAGE@,$PACKAGE,;t t
5160 s,@VERSION@,$VERSION,;t t
5161 s,@ACLOCAL@,$ACLOCAL,;t t
5162 s,@AUTOCONF@,$AUTOCONF,;t t
5163 s,@AUTOMAKE@,$AUTOMAKE,;t t
5164 s,@AUTOHEADER@,$AUTOHEADER,;t t
5165 s,@MAKEINFO@,$MAKEINFO,;t t
5166 s,@install_sh@,$install_sh,;t t
5167 s,@STRIP@,$STRIP,;t t
5168 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5169 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5170 s,@mkdir_p@,$mkdir_p,;t t
5171 s,@AWK@,$AWK,;t t
5172 s,@SET_MAKE@,$SET_MAKE,;t t
5173 s,@am__leading_dot@,$am__leading_dot,;t t
5174 s,@AMTAR@,$AMTAR,;t t
5175 s,@am__tar@,$am__tar,;t t
5176 s,@am__untar@,$am__untar,;t t
5177 s,@CXX@,$CXX,;t t
5178 s,@CXXFLAGS@,$CXXFLAGS,;t t
5179 s,@LDFLAGS@,$LDFLAGS,;t t
5180 s,@CPPFLAGS@,$CPPFLAGS,;t t
5181 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5182 s,@EXEEXT@,$EXEEXT,;t t
5183 s,@OBJEXT@,$OBJEXT,;t t
5184 s,@DEPDIR@,$DEPDIR,;t t
5185 s,@am__include@,$am__include,;t t
5186 s,@am__quote@,$am__quote,;t t
5187 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5188 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5189 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5190 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
5191 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
5192 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
5193 s,@CC@,$CC,;t t
5194 s,@CFLAGS@,$CFLAGS,;t t
5195 s,@ac_ct_CC@,$ac_ct_CC,;t t
5196 s,@CCDEPMODE@,$CCDEPMODE,;t t
5197 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5198 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5199 s,@CPP@,$CPP,;t t
5200 s,@EGREP@,$EGREP,;t t
5201 s,@LIBOBJS@,$LIBOBJS,;t t
5202 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5203 CEOF
5204
5205 _ACEOF
5206
5207 cat >>$CONFIG_STATUS <<\_ACEOF
5208 # Split the substitutions into bite-sized pieces for seds with
5209 # small command number limits, like on Digital OSF/1 and HP-UX.
5210 ac_max_sed_lines=48
5211 ac_sed_frag=1 # Number of current file.
5212 ac_beg=1 # First line for current file.
5213 ac_end=$ac_max_sed_lines # Line after last line for current file.
5214 ac_more_lines=:
5215 ac_sed_cmds=
5216 while $ac_more_lines; do
5217 if test $ac_beg -gt 1; then
5218 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5219 else
5220 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5221 fi
5222 if test ! -s $tmp/subs.frag; then
5223 ac_more_lines=false
5224 else
5225 # The purpose of the label and of the branching condition is to
5226 # speed up the sed processing (if there are no `@' at all, there
5227 # is no need to browse any of the substitutions).
5228 # These are the two extra sed commands mentioned above.
5229 (echo ':t
5230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5231 if test -z "$ac_sed_cmds"; then
5232 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5233 else
5234 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5235 fi
5236 ac_sed_frag=`expr $ac_sed_frag + 1`
5237 ac_beg=$ac_end
5238 ac_end=`expr $ac_end + $ac_max_sed_lines`
5239 fi
5240 done
5241 if test -z "$ac_sed_cmds"; then
5242 ac_sed_cmds=cat
5243 fi
5244 fi # test -n "$CONFIG_FILES"
5245
5246 _ACEOF
5247 cat >>$CONFIG_STATUS <<\_ACEOF
5248 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5249 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5250 case $ac_file in
5251 - | *:- | *:-:* ) # input from stdin
5252 cat >$tmp/stdin
5253 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5255 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5257 * ) ac_file_in=$ac_file.in ;;
5258 esac
5259
5260 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5261 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5263 X"$ac_file" : 'X\(//\)[^/]' \| \
5264 X"$ac_file" : 'X\(//\)$' \| \
5265 X"$ac_file" : 'X\(/\)' \| \
5266 . : '\(.\)' 2>/dev/null ||
5267 echo X"$ac_file" |
5268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5270 /^X\(\/\/\)$/{ s//\1/; q; }
5271 /^X\(\/\).*/{ s//\1/; q; }
5272 s/.*/./; q'`
5273 { if $as_mkdir_p; then
5274 mkdir -p "$ac_dir"
5275 else
5276 as_dir="$ac_dir"
5277 as_dirs=
5278 while test ! -d "$as_dir"; do
5279 as_dirs="$as_dir $as_dirs"
5280 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5282 X"$as_dir" : 'X\(//\)[^/]' \| \
5283 X"$as_dir" : 'X\(//\)$' \| \
5284 X"$as_dir" : 'X\(/\)' \| \
5285 . : '\(.\)' 2>/dev/null ||
5286 echo X"$as_dir" |
5287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5289 /^X\(\/\/\)$/{ s//\1/; q; }
5290 /^X\(\/\).*/{ s//\1/; q; }
5291 s/.*/./; q'`
5292 done
5293 test ! -n "$as_dirs" || mkdir $as_dirs
5294 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5295 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5296 { (exit 1); exit 1; }; }; }
5297
5298 ac_builddir=.
5299
5300 if test "$ac_dir" != .; then
5301 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5302 # A "../" for each directory in $ac_dir_suffix.
5303 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5304 else
5305 ac_dir_suffix= ac_top_builddir=
5306 fi
5307
5308 case $srcdir in
5309 .) # No --srcdir option. We are building in place.
5310 ac_srcdir=.
5311 if test -z "$ac_top_builddir"; then
5312 ac_top_srcdir=.
5313 else
5314 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5315 fi ;;
5316 [\\/]* | ?:[\\/]* ) # Absolute path.
5317 ac_srcdir=$srcdir$ac_dir_suffix;
5318 ac_top_srcdir=$srcdir ;;
5319 *) # Relative path.
5320 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5321 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5322 esac
5323
5324 # Do not use `cd foo && pwd` to compute absolute paths, because
5325 # the directories may not exist.
5326 case `pwd` in
5327 .) ac_abs_builddir="$ac_dir";;
5328 *)
5329 case "$ac_dir" in
5330 .) ac_abs_builddir=`pwd`;;
5331 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5332 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5333 esac;;
5334 esac
5335 case $ac_abs_builddir in
5336 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5337 *)
5338 case ${ac_top_builddir}. in
5339 .) ac_abs_top_builddir=$ac_abs_builddir;;
5340 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5341 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5342 esac;;
5343 esac
5344 case $ac_abs_builddir in
5345 .) ac_abs_srcdir=$ac_srcdir;;
5346 *)
5347 case $ac_srcdir in
5348 .) ac_abs_srcdir=$ac_abs_builddir;;
5349 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5350 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5351 esac;;
5352 esac
5353 case $ac_abs_builddir in
5354 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5355 *)
5356 case $ac_top_srcdir in
5357 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5358 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5359 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5360 esac;;
5361 esac
5362
5363
5364 case $INSTALL in
5365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5366 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5367 esac
5368
5369 if test x"$ac_file" != x-; then
5370 { echo "$as_me:$LINENO: creating $ac_file" >&5
5371 echo "$as_me: creating $ac_file" >&6;}
5372 rm -f "$ac_file"
5373 fi
5374 # Let's still pretend it is `configure' which instantiates (i.e., don't
5375 # use $as_me), people would be surprised to read:
5376 # /* config.h. Generated by config.status. */
5377 if test x"$ac_file" = x-; then
5378 configure_input=
5379 else
5380 configure_input="$ac_file. "
5381 fi
5382 configure_input=$configure_input"Generated from `echo $ac_file_in |
5383 sed 's,.*/,,'` by configure."
5384
5385 # First look for the input files in the build tree, otherwise in the
5386 # src tree.
5387 ac_file_inputs=`IFS=:
5388 for f in $ac_file_in; do
5389 case $f in
5390 -) echo $tmp/stdin ;;
5391 [\\/$]*)
5392 # Absolute (can't be DOS-style, as IFS=:)
5393 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5394 echo "$as_me: error: cannot find input file: $f" >&2;}
5395 { (exit 1); exit 1; }; }
5396 echo "$f";;
5397 *) # Relative
5398 if test -f "$f"; then
5399 # Build tree
5400 echo "$f"
5401 elif test -f "$srcdir/$f"; then
5402 # Source tree
5403 echo "$srcdir/$f"
5404 else
5405 # /dev/null tree
5406 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5407 echo "$as_me: error: cannot find input file: $f" >&2;}
5408 { (exit 1); exit 1; }; }
5409 fi;;
5410 esac
5411 done` || { (exit 1); exit 1; }
5412 _ACEOF
5413 cat >>$CONFIG_STATUS <<_ACEOF
5414 sed "$ac_vpsub
5415 $extrasub
5416 _ACEOF
5417 cat >>$CONFIG_STATUS <<\_ACEOF
5418 :t
5419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5420 s,@configure_input@,$configure_input,;t t
5421 s,@srcdir@,$ac_srcdir,;t t
5422 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5423 s,@top_srcdir@,$ac_top_srcdir,;t t
5424 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5425 s,@builddir@,$ac_builddir,;t t
5426 s,@abs_builddir@,$ac_abs_builddir,;t t
5427 s,@top_builddir@,$ac_top_builddir,;t t
5428 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5429 s,@INSTALL@,$ac_INSTALL,;t t
5430 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5431 rm -f $tmp/stdin
5432 if test x"$ac_file" != x-; then
5433 mv $tmp/out $ac_file
5434 else
5435 cat $tmp/out
5436 rm -f $tmp/out
5437 fi
5438
5439 done
5440 _ACEOF
5441 cat >>$CONFIG_STATUS <<\_ACEOF
5442
5443 #
5444 # CONFIG_HEADER section.
5445 #
5446
5447 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5448 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5449 #
5450 # ac_d sets the value in "#define NAME VALUE" lines.
5451 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5452 ac_dB='[ ].*$,\1#\2'
5453 ac_dC=' '
5454 ac_dD=',;t'
5455 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5456 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5457 ac_uB='$,\1#\2define\3'
5458 ac_uC=' '
5459 ac_uD=',;t'
5460
5461 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5462 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5463 case $ac_file in
5464 - | *:- | *:-:* ) # input from stdin
5465 cat >$tmp/stdin
5466 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5468 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5470 * ) ac_file_in=$ac_file.in ;;
5471 esac
5472
5473 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5474 echo "$as_me: creating $ac_file" >&6;}
5475
5476 # First look for the input files in the build tree, otherwise in the
5477 # src tree.
5478 ac_file_inputs=`IFS=:
5479 for f in $ac_file_in; do
5480 case $f in
5481 -) echo $tmp/stdin ;;
5482 [\\/$]*)
5483 # Absolute (can't be DOS-style, as IFS=:)
5484 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5485 echo "$as_me: error: cannot find input file: $f" >&2;}
5486 { (exit 1); exit 1; }; }
5487 # Do quote $f, to prevent DOS paths from being IFS'd.
5488 echo "$f";;
5489 *) # Relative
5490 if test -f "$f"; then
5491 # Build tree
5492 echo "$f"
5493 elif test -f "$srcdir/$f"; then
5494 # Source tree
5495 echo "$srcdir/$f"
5496 else
5497 # /dev/null tree
5498 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5499 echo "$as_me: error: cannot find input file: $f" >&2;}
5500 { (exit 1); exit 1; }; }
5501 fi;;
5502 esac
5503 done` || { (exit 1); exit 1; }
5504 # Remove the trailing spaces.
5505 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5506
5507 _ACEOF
5508
5509 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5510 # `conftest.undefs', that substitutes the proper values into
5511 # config.h.in to produce config.h. The first handles `#define'
5512 # templates, and the second `#undef' templates.
5513 # And first: Protect against being on the right side of a sed subst in
5514 # config.status. Protect against being in an unquoted here document
5515 # in config.status.
5516 rm -f conftest.defines conftest.undefs
5517 # Using a here document instead of a string reduces the quoting nightmare.
5518 # Putting comments in sed scripts is not portable.
5519 #
5520 # `end' is used to avoid that the second main sed command (meant for
5521 # 0-ary CPP macros) applies to n-ary macro definitions.
5522 # See the Autoconf documentation for `clear'.
5523 cat >confdef2sed.sed <<\_ACEOF
5524 s/[\\&,]/\\&/g
5525 s,[\\$`],\\&,g
5526 t clear
5527 : clear
5528 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5529 t end
5530 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5531 : end
5532 _ACEOF
5533 # If some macros were called several times there might be several times
5534 # the same #defines, which is useless. Nevertheless, we may not want to
5535 # sort them, since we want the *last* AC-DEFINE to be honored.
5536 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5537 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5538 rm -f confdef2sed.sed
5539
5540 # This sed command replaces #undef with comments. This is necessary, for
5541 # example, in the case of _POSIX_SOURCE, which is predefined and required
5542 # on some systems where configure will not decide to define it.
5543 cat >>conftest.undefs <<\_ACEOF
5544 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5545 _ACEOF
5546
5547 # Break up conftest.defines because some shells have a limit on the size
5548 # of here documents, and old seds have small limits too (100 cmds).
5549 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5550 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5551 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5552 echo ' :' >>$CONFIG_STATUS
5553 rm -f conftest.tail
5554 while grep . conftest.defines >/dev/null
5555 do
5556 # Write a limited-size here document to $tmp/defines.sed.
5557 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5558 # Speed up: don't consider the non `#define' lines.
5559 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5560 # Work around the forget-to-reset-the-flag bug.
5561 echo 't clr' >>$CONFIG_STATUS
5562 echo ': clr' >>$CONFIG_STATUS
5563 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5564 echo 'CEOF
5565 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5566 rm -f $tmp/in
5567 mv $tmp/out $tmp/in
5568 ' >>$CONFIG_STATUS
5569 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5570 rm -f conftest.defines
5571 mv conftest.tail conftest.defines
5572 done
5573 rm -f conftest.defines
5574 echo ' fi # grep' >>$CONFIG_STATUS
5575 echo >>$CONFIG_STATUS
5576
5577 # Break up conftest.undefs because some shells have a limit on the size
5578 # of here documents, and old seds have small limits too (100 cmds).
5579 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5580 rm -f conftest.tail
5581 while grep . conftest.undefs >/dev/null
5582 do
5583 # Write a limited-size here document to $tmp/undefs.sed.
5584 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5585 # Speed up: don't consider the non `#undef'
5586 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5587 # Work around the forget-to-reset-the-flag bug.
5588 echo 't clr' >>$CONFIG_STATUS
5589 echo ': clr' >>$CONFIG_STATUS
5590 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5591 echo 'CEOF
5592 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5593 rm -f $tmp/in
5594 mv $tmp/out $tmp/in
5595 ' >>$CONFIG_STATUS
5596 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5597 rm -f conftest.undefs
5598 mv conftest.tail conftest.undefs
5599 done
5600 rm -f conftest.undefs
5601
5602 cat >>$CONFIG_STATUS <<\_ACEOF
5603 # Let's still pretend it is `configure' which instantiates (i.e., don't
5604 # use $as_me), people would be surprised to read:
5605 # /* config.h. Generated by config.status. */
5606 if test x"$ac_file" = x-; then
5607 echo "/* Generated by configure. */" >$tmp/config.h
5608 else
5609 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5610 fi
5611 cat $tmp/in >>$tmp/config.h
5612 rm -f $tmp/in
5613 if test x"$ac_file" != x-; then
5614 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5615 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5616 echo "$as_me: $ac_file is unchanged" >&6;}
5617 else
5618 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5620 X"$ac_file" : 'X\(//\)[^/]' \| \
5621 X"$ac_file" : 'X\(//\)$' \| \
5622 X"$ac_file" : 'X\(/\)' \| \
5623 . : '\(.\)' 2>/dev/null ||
5624 echo X"$ac_file" |
5625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5627 /^X\(\/\/\)$/{ s//\1/; q; }
5628 /^X\(\/\).*/{ s//\1/; q; }
5629 s/.*/./; q'`
5630 { if $as_mkdir_p; then
5631 mkdir -p "$ac_dir"
5632 else
5633 as_dir="$ac_dir"
5634 as_dirs=
5635 while test ! -d "$as_dir"; do
5636 as_dirs="$as_dir $as_dirs"
5637 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5639 X"$as_dir" : 'X\(//\)[^/]' \| \
5640 X"$as_dir" : 'X\(//\)$' \| \
5641 X"$as_dir" : 'X\(/\)' \| \
5642 . : '\(.\)' 2>/dev/null ||
5643 echo X"$as_dir" |
5644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5646 /^X\(\/\/\)$/{ s//\1/; q; }
5647 /^X\(\/\).*/{ s//\1/; q; }
5648 s/.*/./; q'`
5649 done
5650 test ! -n "$as_dirs" || mkdir $as_dirs
5651 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5653 { (exit 1); exit 1; }; }; }
5654
5655 rm -f $ac_file
5656 mv $tmp/config.h $ac_file
5657 fi
5658 else
5659 cat $tmp/config.h
5660 rm -f $tmp/config.h
5661 fi
5662 # Compute $ac_file's index in $config_headers.
5663 _am_stamp_count=1
5664 for _am_header in $config_headers :; do
5665 case $_am_header in
5666 $ac_file | $ac_file:* )
5667 break ;;
5668 * )
5669 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5670 esac
5671 done
5672 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5673 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5674 X$ac_file : 'X\(//\)[^/]' \| \
5675 X$ac_file : 'X\(//\)$' \| \
5676 X$ac_file : 'X\(/\)' \| \
5677 . : '\(.\)' 2>/dev/null ||
5678 echo X$ac_file |
5679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5681 /^X\(\/\/\)$/{ s//\1/; q; }
5682 /^X\(\/\).*/{ s//\1/; q; }
5683 s/.*/./; q'`/stamp-h$_am_stamp_count
5684 done
5685 _ACEOF
5686 cat >>$CONFIG_STATUS <<\_ACEOF
5687
5688 #
5689 # CONFIG_COMMANDS section.
5690 #
5691 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5692 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5693 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5694 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5695 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5696 X"$ac_dest" : 'X\(//\)[^/]' \| \
5697 X"$ac_dest" : 'X\(//\)$' \| \
5698 X"$ac_dest" : 'X\(/\)' \| \
5699 . : '\(.\)' 2>/dev/null ||
5700 echo X"$ac_dest" |
5701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5703 /^X\(\/\/\)$/{ s//\1/; q; }
5704 /^X\(\/\).*/{ s//\1/; q; }
5705 s/.*/./; q'`
5706 { if $as_mkdir_p; then
5707 mkdir -p "$ac_dir"
5708 else
5709 as_dir="$ac_dir"
5710 as_dirs=
5711 while test ! -d "$as_dir"; do
5712 as_dirs="$as_dir $as_dirs"
5713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5715 X"$as_dir" : 'X\(//\)[^/]' \| \
5716 X"$as_dir" : 'X\(//\)$' \| \
5717 X"$as_dir" : 'X\(/\)' \| \
5718 . : '\(.\)' 2>/dev/null ||
5719 echo X"$as_dir" |
5720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5722 /^X\(\/\/\)$/{ s//\1/; q; }
5723 /^X\(\/\).*/{ s//\1/; q; }
5724 s/.*/./; q'`
5725 done
5726 test ! -n "$as_dirs" || mkdir $as_dirs
5727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5729 { (exit 1); exit 1; }; }; }
5730
5731 ac_builddir=.
5732
5733 if test "$ac_dir" != .; then
5734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5735 # A "../" for each directory in $ac_dir_suffix.
5736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5737 else
5738 ac_dir_suffix= ac_top_builddir=
5739 fi
5740
5741 case $srcdir in
5742 .) # No --srcdir option. We are building in place.
5743 ac_srcdir=.
5744 if test -z "$ac_top_builddir"; then
5745 ac_top_srcdir=.
5746 else
5747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5748 fi ;;
5749 [\\/]* | ?:[\\/]* ) # Absolute path.
5750 ac_srcdir=$srcdir$ac_dir_suffix;
5751 ac_top_srcdir=$srcdir ;;
5752 *) # Relative path.
5753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5755 esac
5756
5757 # Do not use `cd foo && pwd` to compute absolute paths, because
5758 # the directories may not exist.
5759 case `pwd` in
5760 .) ac_abs_builddir="$ac_dir";;
5761 *)
5762 case "$ac_dir" in
5763 .) ac_abs_builddir=`pwd`;;
5764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5766 esac;;
5767 esac
5768 case $ac_abs_builddir in
5769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5770 *)
5771 case ${ac_top_builddir}. in
5772 .) ac_abs_top_builddir=$ac_abs_builddir;;
5773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5775 esac;;
5776 esac
5777 case $ac_abs_builddir in
5778 .) ac_abs_srcdir=$ac_srcdir;;
5779 *)
5780 case $ac_srcdir in
5781 .) ac_abs_srcdir=$ac_abs_builddir;;
5782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5784 esac;;
5785 esac
5786 case $ac_abs_builddir in
5787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5788 *)
5789 case $ac_top_srcdir in
5790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5793 esac;;
5794 esac
5795
5796
5797 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5798 echo "$as_me: executing $ac_dest commands" >&6;}
5799 case $ac_dest in
5800 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5801 # Strip MF so we end up with the name of the file.
5802 mf=`echo "$mf" | sed -e 's/:.*$//'`
5803 # Check whether this is an Automake generated Makefile or not.
5804 # We used to match only the files named `Makefile.in', but
5805 # some people rename them; so instead we look at the file content.
5806 # Grep'ing the first line is not enough: some people post-process
5807 # each Makefile.in and add a new line on top of each file to say so.
5808 # So let's grep whole file.
5809 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5810 dirpart=`(dirname "$mf") 2>/dev/null ||
5811 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5812 X"$mf" : 'X\(//\)[^/]' \| \
5813 X"$mf" : 'X\(//\)$' \| \
5814 X"$mf" : 'X\(/\)' \| \
5815 . : '\(.\)' 2>/dev/null ||
5816 echo X"$mf" |
5817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5819 /^X\(\/\/\)$/{ s//\1/; q; }
5820 /^X\(\/\).*/{ s//\1/; q; }
5821 s/.*/./; q'`
5822 else
5823 continue
5824 fi
5825 # Extract the definition of DEPDIR, am__include, and am__quote
5826 # from the Makefile without running `make'.
5827 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5828 test -z "$DEPDIR" && continue
5829 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5830 test -z "am__include" && continue
5831 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5832 # When using ansi2knr, U may be empty or an underscore; expand it
5833 U=`sed -n 's/^U = //p' < "$mf"`
5834 # Find all dependency output files, they are included files with
5835 # $(DEPDIR) in their names. We invoke sed twice because it is the
5836 # simplest approach to changing $(DEPDIR) to its actual value in the
5837 # expansion.
5838 for file in `sed -n "
5839 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5840 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5841 # Make sure the directory exists.
5842 test -f "$dirpart/$file" && continue
5843 fdir=`(dirname "$file") 2>/dev/null ||
5844 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5845 X"$file" : 'X\(//\)[^/]' \| \
5846 X"$file" : 'X\(//\)$' \| \
5847 X"$file" : 'X\(/\)' \| \
5848 . : '\(.\)' 2>/dev/null ||
5849 echo X"$file" |
5850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5852 /^X\(\/\/\)$/{ s//\1/; q; }
5853 /^X\(\/\).*/{ s//\1/; q; }
5854 s/.*/./; q'`
5855 { if $as_mkdir_p; then
5856 mkdir -p $dirpart/$fdir
5857 else
5858 as_dir=$dirpart/$fdir
5859 as_dirs=
5860 while test ! -d "$as_dir"; do
5861 as_dirs="$as_dir $as_dirs"
5862 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5864 X"$as_dir" : 'X\(//\)[^/]' \| \
5865 X"$as_dir" : 'X\(//\)$' \| \
5866 X"$as_dir" : 'X\(/\)' \| \
5867 . : '\(.\)' 2>/dev/null ||
5868 echo X"$as_dir" |
5869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5871 /^X\(\/\/\)$/{ s//\1/; q; }
5872 /^X\(\/\).*/{ s//\1/; q; }
5873 s/.*/./; q'`
5874 done
5875 test ! -n "$as_dirs" || mkdir $as_dirs
5876 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5877 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5878 { (exit 1); exit 1; }; }; }
5879
5880 # echo "creating $dirpart/$file"
5881 echo '# dummy' > "$dirpart/$file"
5882 done
5883 done
5884 ;;
5885 esac
5886 done
5887 _ACEOF
5888
5889 cat >>$CONFIG_STATUS <<\_ACEOF
5890
5891 { (exit 0); exit 0; }
5892 _ACEOF
5893 chmod +x $CONFIG_STATUS
5894 ac_clean_files=$ac_clean_files_save
5895
5896
5897 # configure is writing to config.log, and then calls config.status.
5898 # config.status does its own redirection, appending to config.log.
5899 # Unfortunately, on DOS this fails, as config.log is still kept open
5900 # by configure, so config.status won't be able to write to it; its
5901 # output is simply discarded. So we exec the FD to /dev/null,
5902 # effectively closing config.log, so it can be properly (re)opened and
5903 # appended to by config.status. When coming back to configure, we
5904 # need to make the FD available again.
5905 if test "$no_create" != yes; then
5906 ac_cs_success=:
5907 ac_config_status_args=
5908 test "$silent" = yes &&
5909 ac_config_status_args="$ac_config_status_args --quiet"
5910 exec 5>/dev/null
5911 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5912 exec 5>>config.log
5913 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5914 # would make configure fail if this is the last instruction.
5915 $ac_cs_success || { (exit 1); exit 1; }
5916 fi
|