Fixed autotools stuff
[construo.git] / configure
blobcbb49abcb6295834f8e27004d90543a9c7f57d57
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for construo 0.2.2.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
44 if (set +x; test -n "`(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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='construo'
268 PACKAGE_TARNAME='construo'
269 PACKAGE_VERSION='0.2.2'
270 PACKAGE_STRING='construo 0.2.2'
271 PACKAGE_BUGREPORT=''
273 ac_unique_file="construo.hxx"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS CXXCPP EGREP x11_LIBS x11_CXXFLAGS glut_LIBS freeglut_LIBS ConstruoTargets LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXX_set=${CXX+set}
753 ac_env_CXX_value=$CXX
754 ac_cv_env_CXX_set=${CXX+set}
755 ac_cv_env_CXX_value=$CXX
756 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
757 ac_env_CXXFLAGS_value=$CXXFLAGS
758 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
759 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CC_set=${CC+set}
769 ac_env_CC_value=$CC
770 ac_cv_env_CC_set=${CC+set}
771 ac_cv_env_CC_value=$CC
772 ac_env_CFLAGS_set=${CFLAGS+set}
773 ac_env_CFLAGS_value=$CFLAGS
774 ac_cv_env_CFLAGS_set=${CFLAGS+set}
775 ac_cv_env_CFLAGS_value=$CFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780 ac_env_CXXCPP_set=${CXXCPP+set}
781 ac_env_CXXCPP_value=$CXXCPP
782 ac_cv_env_CXXCPP_set=${CXXCPP+set}
783 ac_cv_env_CXXCPP_value=$CXXCPP
786 # Report the --help message.
788 if test "$ac_init_help" = "long"; then
789 # Omit some internal or obsolete options to make the list less imposing.
790 # This message is too long to be a string in the A/UX 3.1 sh.
791 cat <<_ACEOF
792 \`configure' configures construo 0.2.2 to adapt to many kinds of systems.
794 Usage: $0 [OPTION]... [VAR=VALUE]...
796 To assign environment variables (e.g., CC, CFLAGS...), specify them as
797 VAR=VALUE. See below for descriptions of some of the useful variables.
799 Defaults for the options are specified in brackets.
801 Configuration:
802 -h, --help display this help and exit
803 --help=short display options specific to this package
804 --help=recursive display the short help of all the included packages
805 -V, --version display version information and exit
806 -q, --quiet, --silent do not print \`checking...' messages
807 --cache-file=FILE cache test results in FILE [disabled]
808 -C, --config-cache alias for \`--cache-file=config.cache'
809 -n, --no-create do not create output files
810 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 _ACEOF
814 cat <<_ACEOF
815 Installation directories:
816 --prefix=PREFIX install architecture-independent files in PREFIX
817 [$ac_default_prefix]
818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
819 [PREFIX]
821 By default, \`make install' will install all the files in
822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824 for instance \`--prefix=\$HOME'.
826 For better control, use the options below.
828 Fine tuning of the installation directories:
829 --bindir=DIR user executables [EPREFIX/bin]
830 --sbindir=DIR system admin executables [EPREFIX/sbin]
831 --libexecdir=DIR program executables [EPREFIX/libexec]
832 --datadir=DIR read-only architecture-independent data [PREFIX/share]
833 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
834 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
835 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
836 --libdir=DIR object code libraries [EPREFIX/lib]
837 --includedir=DIR C header files [PREFIX/include]
838 --oldincludedir=DIR C header files for non-gcc [/usr/include]
839 --infodir=DIR info documentation [PREFIX/info]
840 --mandir=DIR man documentation [PREFIX/man]
841 _ACEOF
843 cat <<\_ACEOF
845 Program names:
846 --program-prefix=PREFIX prepend PREFIX to installed program names
847 --program-suffix=SUFFIX append SUFFIX to installed program names
848 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850 X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853 _ACEOF
856 if test -n "$ac_init_help"; then
857 case $ac_init_help in
858 short | recursive ) echo "Configuration of construo 0.2.2:";;
859 esac
860 cat <<\_ACEOF
862 Optional Features:
863 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
864 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
865 --disable-dependency-tracking Speeds up one-time builds
866 --enable-dependency-tracking Do not reject slow dependency extractors
867 --enable-debug enable debug support (default: no)
868 --enable-gprof enable gprof profiling (default: no)
869 --enable-fcheck enable fcheck profiling (default: no)
871 Optional Packages:
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-x use the X Window System
876 Some influential environment variables:
877 CXX C++ compiler command
878 CXXFLAGS C++ compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CC C compiler command
884 CFLAGS C compiler flags
885 CPP C preprocessor
886 CXXCPP C++ preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 _ACEOF
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 cd $ac_dir
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
934 echo
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
937 echo
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
941 echo
942 $ac_configure --help
943 else
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
946 cd $ac_popdir
947 done
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952 cat <<\_ACEOF
953 construo configure 0.2.2
954 generated by GNU Autoconf 2.57
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960 _ACEOF
961 exit 0
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by construo $as_me 0.2.2, which was
969 generated by GNU Autoconf 2.57. Invocation command line was
971 $ $0 $@
973 _ACEOF
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 _ASUNAME
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1002 IFS=$as_save_IFS
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1005 done
1007 } >&5
1009 cat >&5 <<_ACEOF
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1016 _ACEOF
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Strip out --silent because we don't want to record it for future runs.
1022 # Also quote any args containing shell meta-characters.
1023 # Make two passes to allow for proper duplicate-argument suppression.
1024 ac_configure_args=
1025 ac_configure_args0=
1026 ac_configure_args1=
1027 ac_sep=
1028 ac_must_keep_next=false
1029 for ac_pass in 1 2
1031 for ac_arg
1033 case $ac_arg in
1034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 continue ;;
1038 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 esac
1041 case $ac_pass in
1042 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1044 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1045 if test $ac_must_keep_next = true; then
1046 ac_must_keep_next=false # Got value, back to normal.
1047 else
1048 case $ac_arg in
1049 *=* | --config-cache | -C | -disable-* | --disable-* \
1050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1052 | -with-* | --with-* | -without-* | --without-* | --x)
1053 case "$ac_configure_args0 " in
1054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 esac
1057 -* ) ac_must_keep_next=true ;;
1058 esac
1060 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1062 ac_sep=" "
1064 esac
1065 done
1066 done
1067 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1068 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1070 # When interrupted or exit'd, cleanup temporary files, and complete
1071 # config.log. We remove comments because anyway the quotes in there
1072 # would cause problems or look ugly.
1073 # WARNING: Be sure not to use single quotes in there, as some shells,
1074 # such as our DU 5.0 friend, will then `close' the trap.
1075 trap 'exit_status=$?
1076 # Save into config.log some information that might help in debugging.
1078 echo
1080 cat <<\_ASBOX
1081 ## ---------------- ##
1082 ## Cache variables. ##
1083 ## ---------------- ##
1084 _ASBOX
1085 echo
1086 # The following way of writing the cache mishandles newlines in values,
1088 (set) 2>&1 |
1089 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 *ac_space=\ *)
1091 sed -n \
1092 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096 sed -n \
1097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1099 esac;
1101 echo
1103 cat <<\_ASBOX
1104 ## ----------------- ##
1105 ## Output variables. ##
1106 ## ----------------- ##
1107 _ASBOX
1108 echo
1109 for ac_var in $ac_subst_vars
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1116 if test -n "$ac_subst_files"; then
1117 cat <<\_ASBOX
1118 ## ------------- ##
1119 ## Output files. ##
1120 ## ------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_files
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1131 if test -s confdefs.h; then
1132 cat <<\_ASBOX
1133 ## ----------- ##
1134 ## confdefs.h. ##
1135 ## ----------- ##
1136 _ASBOX
1137 echo
1138 sed "/^$/d" confdefs.h | sort
1139 echo
1141 test "$ac_signal" != 0 &&
1142 echo "$as_me: caught signal $ac_signal"
1143 echo "$as_me: exit $exit_status"
1144 } >&5
1145 rm -f core core.* *.core &&
1146 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147 exit $exit_status
1149 for ac_signal in 1 2 13 15; do
1150 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151 done
1152 ac_signal=0
1154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1155 rm -rf conftest* confdefs.h
1156 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 echo >confdefs.h
1159 # Predefined preprocessor variables.
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_NAME "$PACKAGE_NAME"
1163 _ACEOF
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168 _ACEOF
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1173 _ACEOF
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_STRING "$PACKAGE_STRING"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183 _ACEOF
1186 # Let the site file select an alternate cache file if it wants to.
1187 # Prefer explicitly selected file to automatically selected ones.
1188 if test -z "$CONFIG_SITE"; then
1189 if test "x$prefix" != xNONE; then
1190 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191 else
1192 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1195 for ac_site_file in $CONFIG_SITE; do
1196 if test -r "$ac_site_file"; then
1197 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1198 echo "$as_me: loading site script $ac_site_file" >&6;}
1199 sed 's/^/| /' "$ac_site_file" >&5
1200 . "$ac_site_file"
1202 done
1204 if test -r "$cache_file"; then
1205 # Some versions of bash will fail to source /dev/null (special
1206 # files actually), so we avoid doing that.
1207 if test -f "$cache_file"; then
1208 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1209 echo "$as_me: loading cache $cache_file" >&6;}
1210 case $cache_file in
1211 [\\/]* | ?:[\\/]* ) . $cache_file;;
1212 *) . ./$cache_file;;
1213 esac
1215 else
1216 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1217 echo "$as_me: creating cache $cache_file" >&6;}
1218 >$cache_file
1221 # Check that the precious variables saved in the cache have kept the same
1222 # value.
1223 ac_cache_corrupted=false
1224 for ac_var in `(set) 2>&1 |
1225 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227 eval ac_new_set=\$ac_env_${ac_var}_set
1228 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229 eval ac_new_val="\$ac_env_${ac_var}_value"
1230 case $ac_old_set,$ac_new_set in
1231 set,)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,set)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,);;
1241 if test "x$ac_old_val" != "x$ac_new_val"; then
1242 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1243 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1244 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1245 echo "$as_me: former value: $ac_old_val" >&2;}
1246 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1247 echo "$as_me: current value: $ac_new_val" >&2;}
1248 ac_cache_corrupted=:
1249 fi;;
1250 esac
1251 # Pass precious variables to config.status.
1252 if test "$ac_new_set" = set; then
1253 case $ac_new_val in
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 *) ac_arg=$ac_var=$ac_new_val ;;
1257 esac
1258 case " $ac_configure_args " in
1259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1260 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261 esac
1263 done
1264 if $ac_cache_corrupted; then
1265 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1268 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269 { (exit 1); exit 1; }; }
1272 ac_ext=c
1273 ac_cpp='$CPP $CPPFLAGS'
1274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304 am__api_version="1.7"
1305 ac_aux_dir=
1306 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1307 if test -f $ac_dir/install-sh; then
1308 ac_aux_dir=$ac_dir
1309 ac_install_sh="$ac_aux_dir/install-sh -c"
1310 break
1311 elif test -f $ac_dir/install.sh; then
1312 ac_aux_dir=$ac_dir
1313 ac_install_sh="$ac_aux_dir/install.sh -c"
1314 break
1315 elif test -f $ac_dir/shtool; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/shtool install -c"
1318 break
1320 done
1321 if test -z "$ac_aux_dir"; then
1322 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1323 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1324 { (exit 1); exit 1; }; }
1326 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1327 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1328 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1330 # Find a good install program. We prefer a C program (faster),
1331 # so one script is as good as another. But avoid the broken or
1332 # incompatible versions:
1333 # SysV /etc/install, /usr/sbin/install
1334 # SunOS /usr/etc/install
1335 # IRIX /sbin/install
1336 # AIX /bin/install
1337 # AmigaOS /C/install, which installs bootblocks on floppy discs
1338 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1339 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1340 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1341 # ./install, which can be erroneously created by make from ./install.sh.
1342 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1343 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1344 if test -z "$INSTALL"; then
1345 if test "${ac_cv_path_install+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 else
1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 for as_dir in $PATH
1351 IFS=$as_save_IFS
1352 test -z "$as_dir" && as_dir=.
1353 # Account for people who put trailing slashes in PATH elements.
1354 case $as_dir/ in
1355 ./ | .// | /cC/* | \
1356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1357 /usr/ucb/* ) ;;
1359 # OSF1 and SCO ODT 3.0 have their own names for install.
1360 # Don't use installbsd from OSF since it installs stuff as root
1361 # by default.
1362 for ac_prog in ginstall scoinst install; do
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1365 if test $ac_prog = install &&
1366 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1367 # AIX install. It has an incompatible calling convention.
1369 elif test $ac_prog = install &&
1370 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1371 # program-specific install script used by HP pwplus--don't use.
1373 else
1374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1375 break 3
1378 done
1379 done
1381 esac
1382 done
1386 if test "${ac_cv_path_install+set}" = set; then
1387 INSTALL=$ac_cv_path_install
1388 else
1389 # As a last resort, use the slow shell script. We don't cache a
1390 # path for INSTALL within a source directory, because that will
1391 # break other packages using the cache if that directory is
1392 # removed, or if the path is relative.
1393 INSTALL=$ac_install_sh
1396 echo "$as_me:$LINENO: result: $INSTALL" >&5
1397 echo "${ECHO_T}$INSTALL" >&6
1399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1400 # It thinks the first close brace ends the variable substitution.
1401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1407 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1408 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1409 # Just in case
1410 sleep 1
1411 echo timestamp > conftest.file
1412 # Do `set' in a subshell so we don't clobber the current shell's
1413 # arguments. Must try -L first in case configure is actually a
1414 # symlink; some systems play weird games with the mod time of symlinks
1415 # (eg FreeBSD returns the mod time of the symlink's containing
1416 # directory).
1417 if (
1418 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1419 if test "$*" = "X"; then
1420 # -L didn't work.
1421 set X `ls -t $srcdir/configure conftest.file`
1423 rm -f conftest.file
1424 if test "$*" != "X $srcdir/configure conftest.file" \
1425 && test "$*" != "X conftest.file $srcdir/configure"; then
1427 # If neither matched, then we have a broken ls. This can happen
1428 # if, for instance, CONFIG_SHELL is bash and it inherits a
1429 # broken ls alias from the environment. This has actually
1430 # happened. Such a system could not be considered "sane".
1431 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1432 alias in your environment" >&5
1433 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1434 alias in your environment" >&2;}
1435 { (exit 1); exit 1; }; }
1438 test "$2" = conftest.file
1440 then
1441 # Ok.
1443 else
1444 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1445 Check your system clock" >&5
1446 echo "$as_me: error: newly created file is older than distributed files!
1447 Check your system clock" >&2;}
1448 { (exit 1); exit 1; }; }
1450 echo "$as_me:$LINENO: result: yes" >&5
1451 echo "${ECHO_T}yes" >&6
1452 test "$program_prefix" != NONE &&
1453 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1454 # Use a double $ so make ignores it.
1455 test "$program_suffix" != NONE &&
1456 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1457 # Double any \ or $. echo might interpret backslashes.
1458 # By default was `s,x,x', remove it if useless.
1459 cat <<\_ACEOF >conftest.sed
1460 s/[\\$]/&&/g;s/;s,x,x,$//
1461 _ACEOF
1462 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1463 rm conftest.sed
1466 # expand $ac_aux_dir to an absolute path
1467 am_aux_dir=`cd $ac_aux_dir && pwd`
1469 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1470 # Use eval to expand $SHELL
1471 if eval "$MISSING --run true"; then
1472 am_missing_run="$MISSING --run "
1473 else
1474 am_missing_run=
1475 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1476 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1479 for ac_prog in gawk mawk nawk awk
1481 # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_AWK+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$AWK"; then
1489 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_AWK="$ac_prog"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1502 done
1503 done
1507 AWK=$ac_cv_prog_AWK
1508 if test -n "$AWK"; then
1509 echo "$as_me:$LINENO: result: $AWK" >&5
1510 echo "${ECHO_T}$AWK" >&6
1511 else
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 test -n "$AWK" && break
1517 done
1519 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1520 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1521 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1522 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 cat >conftest.make <<\_ACEOF
1526 all:
1527 @echo 'ac_maketemp="$(MAKE)"'
1528 _ACEOF
1529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1530 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1531 if test -n "$ac_maketemp"; then
1532 eval ac_cv_prog_make_${ac_make}_set=yes
1533 else
1534 eval ac_cv_prog_make_${ac_make}_set=no
1536 rm -f conftest.make
1538 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1539 echo "$as_me:$LINENO: result: yes" >&5
1540 echo "${ECHO_T}yes" >&6
1541 SET_MAKE=
1542 else
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 SET_MAKE="MAKE=${MAKE-make}"
1548 rm -rf .tst 2>/dev/null
1549 mkdir .tst 2>/dev/null
1550 if test -d .tst; then
1551 am__leading_dot=.
1552 else
1553 am__leading_dot=_
1555 rmdir .tst 2>/dev/null
1557 # test to see if srcdir already configured
1558 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1559 test -f $srcdir/config.status; then
1560 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1561 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1562 { (exit 1); exit 1; }; }
1565 # test whether we have cygpath
1566 if test -z "$CYGPATH_W"; then
1567 if (cygpath --version) >/dev/null 2>/dev/null; then
1568 CYGPATH_W='cygpath -w'
1569 else
1570 CYGPATH_W=echo
1575 # Define the identity of the package.
1576 PACKAGE='construo'
1577 VERSION='0.2.2'
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE "$PACKAGE"
1582 _ACEOF
1585 cat >>confdefs.h <<_ACEOF
1586 #define VERSION "$VERSION"
1587 _ACEOF
1589 # Some tools Automake needs.
1591 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1594 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1597 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1600 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1603 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1606 AMTAR=${AMTAR-"${am_missing_run}tar"}
1608 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1610 # Installed binaries are usually stripped using `strip' when the user
1611 # run `make install-strip'. However `strip' might not be the right
1612 # tool to use in cross-compilation environments, therefore Automake
1613 # will honor the `STRIP' environment variable to overrule this program.
1614 if test "$cross_compiling" != no; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}strip; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_STRIP+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623 if test -n "$STRIP"; then
1624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 break 2
1637 done
1638 done
1642 STRIP=$ac_cv_prog_STRIP
1643 if test -n "$STRIP"; then
1644 echo "$as_me:$LINENO: result: $STRIP" >&5
1645 echo "${ECHO_T}$STRIP" >&6
1646 else
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_STRIP"; then
1653 ac_ct_STRIP=$STRIP
1654 # Extract the first word of "strip", so it can be a program name with args.
1655 set dummy strip; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661 if test -n "$ac_ct_STRIP"; then
1662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_STRIP="strip"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
1675 done
1676 done
1678 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1682 if test -n "$ac_ct_STRIP"; then
1683 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1684 echo "${ECHO_T}$ac_ct_STRIP" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 STRIP=$ac_ct_STRIP
1691 else
1692 STRIP="$ac_cv_prog_STRIP"
1696 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1698 # We need awk for the "check" target. The system "awk" is bad on
1699 # some platforms.
1704 ac_config_headers="$ac_config_headers config.h"
1707 # check for some programs
1708 ac_ext=cc
1709 ac_cpp='$CXXCPP $CPPFLAGS'
1710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1713 if test -n "$ac_tool_prefix"; then
1714 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CXX+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 if test -n "$CXX"; then
1724 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1737 done
1738 done
1742 CXX=$ac_cv_prog_CXX
1743 if test -n "$CXX"; then
1744 echo "$as_me:$LINENO: result: $CXX" >&5
1745 echo "${ECHO_T}$CXX" >&6
1746 else
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 test -n "$CXX" && break
1752 done
1754 if test -z "$CXX"; then
1755 ac_ct_CXX=$CXX
1756 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1758 # Extract the first word of "$ac_prog", so it can be a program name with args.
1759 set dummy $ac_prog; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$ac_ct_CXX"; then
1766 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_ac_ct_CXX="$ac_prog"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1779 done
1780 done
1784 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1785 if test -n "$ac_ct_CXX"; then
1786 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1787 echo "${ECHO_T}$ac_ct_CXX" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1793 test -n "$ac_ct_CXX" && break
1794 done
1795 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1797 CXX=$ac_ct_CXX
1801 # Provide some information about the compiler.
1802 echo "$as_me:$LINENO:" \
1803 "checking for C++ compiler version" >&5
1804 ac_compiler=`set X $ac_compile; echo $2`
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1806 (eval $ac_compiler --version </dev/null >&5) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1811 (eval $ac_compiler -v </dev/null >&5) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1816 (eval $ac_compiler -V </dev/null >&5) 2>&5
1817 ac_status=$?
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1821 cat >conftest.$ac_ext <<_ACEOF
1822 #line $LINENO "configure"
1823 /* confdefs.h. */
1824 _ACEOF
1825 cat confdefs.h >>conftest.$ac_ext
1826 cat >>conftest.$ac_ext <<_ACEOF
1827 /* end confdefs.h. */
1830 main ()
1834 return 0;
1836 _ACEOF
1837 ac_clean_files_save=$ac_clean_files
1838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1839 # Try to create an executable without -o first, disregard a.out.
1840 # It will help us diagnose broken compilers, and finding out an intuition
1841 # of exeext.
1842 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1843 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1845 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1846 (eval $ac_link_default) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; then
1850 # Find the output, starting from the most likely. This scheme is
1851 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1852 # resort.
1854 # Be careful to initialize this variable, since it used to be cached.
1855 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1856 ac_cv_exeext=
1857 # b.out is created by i960 compilers.
1858 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1860 test -f "$ac_file" || continue
1861 case $ac_file in
1862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1864 conftest.$ac_ext )
1865 # This is the source file.
1867 [ab].out )
1868 # We found the default executable, but exeext='' is most
1869 # certainly right.
1870 break;;
1871 *.* )
1872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1873 # FIXME: I believe we export ac_cv_exeext for Libtool,
1874 # but it would be cool to find out if it's true. Does anybody
1875 # maintain Libtool? --akim.
1876 export ac_cv_exeext
1877 break;;
1879 break;;
1880 esac
1881 done
1882 else
1883 echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: C++ compiler cannot create executables
1889 See \`config.log' for more details." >&2;}
1890 { (exit 77); exit 77; }; }
1893 ac_exeext=$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_file" >&5
1895 echo "${ECHO_T}$ac_file" >&6
1897 # Check the compiler produces executables we can run. If not, either
1898 # the compiler is broken, or we cross compile.
1899 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1900 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1901 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1902 # If not cross compiling, check that we can run a simple program.
1903 if test "$cross_compiling" != yes; then
1904 if { ac_try='./$ac_file'
1905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1906 (eval $ac_try) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 cross_compiling=no
1911 else
1912 if test "$cross_compiling" = maybe; then
1913 cross_compiling=yes
1914 else
1915 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1916 If you meant to cross compile, use \`--host'.
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot run C++ compiled programs.
1919 If you meant to cross compile, use \`--host'.
1920 See \`config.log' for more details." >&2;}
1921 { (exit 1); exit 1; }; }
1925 echo "$as_me:$LINENO: result: yes" >&5
1926 echo "${ECHO_T}yes" >&6
1928 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1929 ac_clean_files=$ac_clean_files_save
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1933 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1934 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1935 echo "${ECHO_T}$cross_compiling" >&6
1937 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1938 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940 (eval $ac_link) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1946 # work properly (i.e., refer to `conftest.exe'), while it won't with
1947 # `rm'.
1948 for ac_file in conftest.exe conftest conftest.*; do
1949 test -f "$ac_file" || continue
1950 case $ac_file in
1951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1953 export ac_cv_exeext
1954 break;;
1955 * ) break;;
1956 esac
1957 done
1958 else
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1966 rm -f conftest$ac_cv_exeext
1967 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1968 echo "${ECHO_T}$ac_cv_exeext" >&6
1970 rm -f conftest.$ac_ext
1971 EXEEXT=$ac_cv_exeext
1972 ac_exeext=$EXEEXT
1973 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1974 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1975 if test "${ac_cv_objext+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 /* confdefs.h. */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1987 main ()
1991 return 0;
1993 _ACEOF
1994 rm -f conftest.o conftest.obj
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2001 case $ac_file in
2002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2003 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2004 break;;
2005 esac
2006 done
2007 else
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2018 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2020 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2021 echo "${ECHO_T}$ac_cv_objext" >&6
2022 OBJEXT=$ac_cv_objext
2023 ac_objext=$OBJEXT
2024 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2025 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2026 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 cat >conftest.$ac_ext <<_ACEOF
2030 #line $LINENO "configure"
2031 /* confdefs.h. */
2032 _ACEOF
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2038 main ()
2040 #ifndef __GNUC__
2041 choke me
2042 #endif
2045 return 0;
2047 _ACEOF
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2060 ac_compiler_gnu=yes
2061 else
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2065 ac_compiler_gnu=no
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2068 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2071 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2072 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2073 GXX=`test $ac_compiler_gnu = yes && echo yes`
2074 ac_test_CXXFLAGS=${CXXFLAGS+set}
2075 ac_save_CXXFLAGS=$CXXFLAGS
2076 CXXFLAGS="-g"
2077 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2078 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2079 if test "${ac_cv_prog_cxx_g+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2091 main ()
2095 return 0;
2097 _ACEOF
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2110 ac_cv_prog_cxx_g=yes
2111 else
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 ac_cv_prog_cxx_g=no
2117 rm -f conftest.$ac_objext conftest.$ac_ext
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2121 if test "$ac_test_CXXFLAGS" = set; then
2122 CXXFLAGS=$ac_save_CXXFLAGS
2123 elif test $ac_cv_prog_cxx_g = yes; then
2124 if test "$GXX" = yes; then
2125 CXXFLAGS="-g -O2"
2126 else
2127 CXXFLAGS="-g"
2129 else
2130 if test "$GXX" = yes; then
2131 CXXFLAGS="-O2"
2132 else
2133 CXXFLAGS=
2136 for ac_declaration in \
2138 '#include <stdlib.h>' \
2139 'extern "C" void std::exit (int) throw (); using std::exit;' \
2140 'extern "C" void std::exit (int); using std::exit;' \
2141 'extern "C" void exit (int) throw ();' \
2142 'extern "C" void exit (int);' \
2143 'void exit (int);'
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line $LINENO "configure"
2147 /* confdefs.h. */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h. */
2152 #include <stdlib.h>
2153 $ac_declaration
2155 main ()
2157 exit (42);
2159 return 0;
2161 _ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2175 else
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 continue
2181 rm -f conftest.$ac_objext conftest.$ac_ext
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line $LINENO "configure"
2184 /* confdefs.h. */
2185 _ACEOF
2186 cat confdefs.h >>conftest.$ac_ext
2187 cat >>conftest.$ac_ext <<_ACEOF
2188 /* end confdefs.h. */
2189 $ac_declaration
2191 main ()
2193 exit (42);
2195 return 0;
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2210 break
2211 else
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2216 rm -f conftest.$ac_objext conftest.$ac_ext
2217 done
2218 rm -f conftest*
2219 if test -n "$ac_declaration"; then
2220 echo '#ifdef __cplusplus' >>confdefs.h
2221 echo $ac_declaration >>confdefs.h
2222 echo '#endif' >>confdefs.h
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230 DEPDIR="${am__leading_dot}deps"
2232 ac_config_commands="$ac_config_commands depfiles"
2235 am_make=${MAKE-make}
2236 cat > confinc << 'END'
2237 doit:
2238 @echo done
2240 # If we don't find an include directive, just comment out the code.
2241 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2242 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2243 am__include="#"
2244 am__quote=
2245 _am_result=none
2246 # First try GNU make style include.
2247 echo "include confinc" > confmf
2248 # We grep out `Entering directory' and `Leaving directory'
2249 # messages which can occur if `w' ends up in MAKEFLAGS.
2250 # In particular we don't look at `^make:' because GNU make might
2251 # be invoked under some other name (usually "gmake"), in which
2252 # case it prints its new name instead of `make'.
2253 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2254 am__include=include
2255 am__quote=
2256 _am_result=GNU
2258 # Now try BSD make style include.
2259 if test "$am__include" = "#"; then
2260 echo '.include "confinc"' > confmf
2261 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2262 am__include=.include
2263 am__quote="\""
2264 _am_result=BSD
2269 echo "$as_me:$LINENO: result: $_am_result" >&5
2270 echo "${ECHO_T}$_am_result" >&6
2271 rm -f confinc confmf
2273 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2274 if test "${enable_dependency_tracking+set}" = set; then
2275 enableval="$enable_dependency_tracking"
2278 if test "x$enable_dependency_tracking" != xno; then
2279 am_depcomp="$ac_aux_dir/depcomp"
2280 AMDEPBACKSLASH='\'
2284 if test "x$enable_dependency_tracking" != xno; then
2285 AMDEP_TRUE=
2286 AMDEP_FALSE='#'
2287 else
2288 AMDEP_TRUE='#'
2289 AMDEP_FALSE=
2295 depcc="$CXX" am_compiler_list=
2297 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2298 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2299 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2303 # We make a subdir and do the tests there. Otherwise we can end up
2304 # making bogus files that we don't know about and never remove. For
2305 # instance it was reported that on HP-UX the gcc test will end up
2306 # making a dummy file named `D' -- because `-MD' means `put the output
2307 # in D'.
2308 mkdir conftest.dir
2309 # Copy depcomp to subdir because otherwise we won't find it if we're
2310 # using a relative directory.
2311 cp "$am_depcomp" conftest.dir
2312 cd conftest.dir
2314 am_cv_CXX_dependencies_compiler_type=none
2315 if test "$am_compiler_list" = ""; then
2316 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2318 for depmode in $am_compiler_list; do
2319 # We need to recreate these files for each test, as the compiler may
2320 # overwrite some of them when testing with obscure command lines.
2321 # This happens at least with the AIX C compiler.
2322 echo '#include "conftest.h"' > conftest.c
2323 echo 'int i;' > conftest.h
2324 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2326 case $depmode in
2327 nosideeffect)
2328 # after this tag, mechanisms are not by side-effect, so they'll
2329 # only be used when explicitly requested
2330 if test "x$enable_dependency_tracking" = xyes; then
2331 continue
2332 else
2333 break
2336 none) break ;;
2337 esac
2338 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2339 # mode. It turns out that the SunPro C++ compiler does not properly
2340 # handle `-M -o', and we need to detect this.
2341 if depmode=$depmode \
2342 source=conftest.c object=conftest.o \
2343 depfile=conftest.Po tmpdepfile=conftest.TPo \
2344 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2345 >/dev/null 2>conftest.err &&
2346 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2347 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2348 # icc doesn't choke on unknown options, it will just issue warnings
2349 # (even with -Werror). So we grep stderr for any message
2350 # that says an option was ignored.
2351 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2352 am_cv_CXX_dependencies_compiler_type=$depmode
2353 break
2356 done
2358 cd ..
2359 rm -rf conftest.dir
2360 else
2361 am_cv_CXX_dependencies_compiler_type=none
2365 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2366 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2367 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2372 test "x$enable_dependency_tracking" != xno \
2373 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2374 am__fastdepCXX_TRUE=
2375 am__fastdepCXX_FALSE='#'
2376 else
2377 am__fastdepCXX_TRUE='#'
2378 am__fastdepCXX_FALSE=
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_RANLIB+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$RANLIB"; then
2391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2404 done
2405 done
2409 RANLIB=$ac_cv_prog_RANLIB
2410 if test -n "$RANLIB"; then
2411 echo "$as_me:$LINENO: result: $RANLIB" >&5
2412 echo "${ECHO_T}$RANLIB" >&6
2413 else
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2419 if test -z "$ac_cv_prog_RANLIB"; then
2420 ac_ct_RANLIB=$RANLIB
2421 # Extract the first word of "ranlib", so it can be a program name with args.
2422 set dummy ranlib; ac_word=$2
2423 echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2425 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 if test -n "$ac_ct_RANLIB"; then
2429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438 ac_cv_prog_ac_ct_RANLIB="ranlib"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2445 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2449 if test -n "$ac_ct_RANLIB"; then
2450 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2451 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2452 else
2453 echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2457 RANLIB=$ac_ct_RANLIB
2458 else
2459 RANLIB="$ac_cv_prog_RANLIB"
2462 # Find a good install program. We prefer a C program (faster),
2463 # so one script is as good as another. But avoid the broken or
2464 # incompatible versions:
2465 # SysV /etc/install, /usr/sbin/install
2466 # SunOS /usr/etc/install
2467 # IRIX /sbin/install
2468 # AIX /bin/install
2469 # AmigaOS /C/install, which installs bootblocks on floppy discs
2470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2473 # ./install, which can be erroneously created by make from ./install.sh.
2474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2476 if test -z "$INSTALL"; then
2477 if test "${ac_cv_path_install+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 # Account for people who put trailing slashes in PATH elements.
2486 case $as_dir/ in
2487 ./ | .// | /cC/* | \
2488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2489 /usr/ucb/* ) ;;
2491 # OSF1 and SCO ODT 3.0 have their own names for install.
2492 # Don't use installbsd from OSF since it installs stuff as root
2493 # by default.
2494 for ac_prog in ginstall scoinst install; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2497 if test $ac_prog = install &&
2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # AIX install. It has an incompatible calling convention.
2501 elif test $ac_prog = install &&
2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # program-specific install script used by HP pwplus--don't use.
2505 else
2506 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2507 break 3
2510 done
2511 done
2513 esac
2514 done
2518 if test "${ac_cv_path_install+set}" = set; then
2519 INSTALL=$ac_cv_path_install
2520 else
2521 # As a last resort, use the slow shell script. We don't cache a
2522 # path for INSTALL within a source directory, because that will
2523 # break other packages using the cache if that directory is
2524 # removed, or if the path is relative.
2525 INSTALL=$ac_install_sh
2528 echo "$as_me:$LINENO: result: $INSTALL" >&5
2529 echo "${ECHO_T}$INSTALL" >&6
2531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532 # It thinks the first close brace ends the variable substitution.
2533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2547 echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549 if test "${ac_cv_prog_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2566 done
2567 done
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573 echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6
2575 else
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2581 if test -z "$ac_cv_prog_CC"; then
2582 ac_ct_CC=$CC
2583 # Extract the first word of "gcc", so it can be a program name with args.
2584 set dummy gcc; ac_word=$2
2585 echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$ac_ct_CC"; then
2591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_ac_ct_CC="gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2604 done
2605 done
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2618 CC=$ac_ct_CC
2619 else
2620 CC="$ac_cv_prog_CC"
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653 echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6
2655 else
2656 echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2661 if test -z "$ac_cv_prog_CC"; then
2662 ac_ct_CC=$CC
2663 # Extract the first word of "cc", so it can be a program name with args.
2664 set dummy cc; ac_word=$2
2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_ac_ct_CC="cc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690 if test -n "$ac_ct_CC"; then
2691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692 echo "${ECHO_T}$ac_ct_CC" >&6
2693 else
2694 echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6
2698 CC=$ac_ct_CC
2699 else
2700 CC="$ac_cv_prog_CC"
2704 if test -z "$CC"; then
2705 # Extract the first word of "cc", so it can be a program name with args.
2706 set dummy cc; 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 ac_prog_rejected=no
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2724 ac_prog_rejected=yes
2725 continue
2727 ac_cv_prog_CC="cc"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2731 done
2732 done
2734 if test $ac_prog_rejected = yes; then
2735 # We found a bogon in the path, so make sure we never use it.
2736 set dummy $ac_cv_prog_CC
2737 shift
2738 if test $# != 0; then
2739 # We chose a different compiler from the bogus one.
2740 # However, it has the same basename, so the bogon will be chosen
2741 # first if we set CC to just the basename; use the full file name.
2742 shift
2743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 echo "$as_me:$LINENO: result: $CC" >&5
2751 echo "${ECHO_T}$CC" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 for ac_prog in cl
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 echo "$as_me:$LINENO: result: $CC" >&5
2791 echo "${ECHO_T}$CC" >&6
2792 else
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 test -n "$CC" && break
2798 done
2800 if test -z "$CC"; then
2801 ac_ct_CC=$CC
2802 for ac_prog in cl
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_CC="$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2833 echo "${ECHO_T}$ac_ct_CC" >&6
2834 else
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2839 test -n "$ac_ct_CC" && break
2840 done
2842 CC=$ac_ct_CC
2848 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: no acceptable C compiler found in \$PATH
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2854 # Provide some information about the compiler.
2855 echo "$as_me:$LINENO:" \
2856 "checking for C compiler version" >&5
2857 ac_compiler=`set X $ac_compile; echo $2`
2858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2859 (eval $ac_compiler --version </dev/null >&5) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2864 (eval $ac_compiler -v </dev/null >&5) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }
2868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2869 (eval $ac_compiler -V </dev/null >&5) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2874 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2875 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2876 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line $LINENO "configure"
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2888 main ()
2890 #ifndef __GNUC__
2891 choke me
2892 #endif
2895 return 0;
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 ac_compiler_gnu=yes
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 ac_compiler_gnu=no
2917 rm -f conftest.$ac_objext conftest.$ac_ext
2918 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2921 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2923 GCC=`test $ac_compiler_gnu = yes && echo yes`
2924 ac_test_CFLAGS=${CFLAGS+set}
2925 ac_save_CFLAGS=$CFLAGS
2926 CFLAGS="-g"
2927 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2928 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2929 if test "${ac_cv_prog_cc_g+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2941 main ()
2945 return 0;
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 ac_cv_prog_cc_g=yes
2961 else
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 ac_cv_prog_cc_g=no
2967 rm -f conftest.$ac_objext conftest.$ac_ext
2969 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2970 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2971 if test "$ac_test_CFLAGS" = set; then
2972 CFLAGS=$ac_save_CFLAGS
2973 elif test $ac_cv_prog_cc_g = yes; then
2974 if test "$GCC" = yes; then
2975 CFLAGS="-g -O2"
2976 else
2977 CFLAGS="-g"
2979 else
2980 if test "$GCC" = yes; then
2981 CFLAGS="-O2"
2982 else
2983 CFLAGS=
2986 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2987 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2988 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991 ac_cv_prog_cc_stdc=no
2992 ac_save_CC=$CC
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 #include <stdarg.h>
3001 #include <stdio.h>
3002 #include <sys/types.h>
3003 #include <sys/stat.h>
3004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3005 struct buf { int x; };
3006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3007 static char *e (p, i)
3008 char **p;
3009 int i;
3011 return p[i];
3013 static char *f (char * (*g) (char **, int), char **p, ...)
3015 char *s;
3016 va_list v;
3017 va_start (v,p);
3018 s = g (p, va_arg (v,int));
3019 va_end (v);
3020 return s;
3022 int test (int i, double x);
3023 struct s1 {int (*f) (int a);};
3024 struct s2 {int (*f) (double a);};
3025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3026 int argc;
3027 char **argv;
3029 main ()
3031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3033 return 0;
3035 _ACEOF
3036 # Don't try gcc -ansi; that turns off useful extensions and
3037 # breaks some systems' header files.
3038 # AIX -qlanglvl=ansi
3039 # Ultrix and OSF/1 -std1
3040 # HP-UX 10.20 and later -Ae
3041 # HP-UX older versions -Aa -D_HPUX_SOURCE
3042 # SVR4 -Xc -D__EXTENSIONS__
3043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3045 CC="$ac_save_CC $ac_arg"
3046 rm -f conftest.$ac_objext
3047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3048 (eval $ac_compile) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_prog_cc_stdc=$ac_arg
3059 break
3060 else
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 rm -f conftest.$ac_objext
3066 done
3067 rm -f conftest.$ac_ext conftest.$ac_objext
3068 CC=$ac_save_CC
3072 case "x$ac_cv_prog_cc_stdc" in
3073 x|xno)
3074 echo "$as_me:$LINENO: result: none needed" >&5
3075 echo "${ECHO_T}none needed" >&6 ;;
3077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3078 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3079 CC="$CC $ac_cv_prog_cc_stdc" ;;
3080 esac
3082 # Some people use a C++ compiler to compile C. Since we use `exit',
3083 # in C++ we need to declare it. In case someone uses the same compiler
3084 # for both compiling C and C++ we need to have the C++ compiler decide
3085 # the declaration of exit, since it's the most demanding environment.
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #ifndef __cplusplus
3088 choke me
3089 #endif
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 for ac_declaration in \
3105 '#include <stdlib.h>' \
3106 'extern "C" void std::exit (int) throw (); using std::exit;' \
3107 'extern "C" void std::exit (int); using std::exit;' \
3108 'extern "C" void exit (int) throw ();' \
3109 'extern "C" void exit (int);' \
3110 'void exit (int);'
3112 cat >conftest.$ac_ext <<_ACEOF
3113 #line $LINENO "configure"
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <stdlib.h>
3120 $ac_declaration
3122 main ()
3124 exit (42);
3126 return 0;
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 continue
3148 rm -f conftest.$ac_objext conftest.$ac_ext
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 $ac_declaration
3158 main ()
3160 exit (42);
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 break
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f conftest.$ac_objext conftest.$ac_ext
3184 done
3185 rm -f conftest*
3186 if test -n "$ac_declaration"; then
3187 echo '#ifdef __cplusplus' >>confdefs.h
3188 echo $ac_declaration >>confdefs.h
3189 echo '#endif' >>confdefs.h
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f conftest.$ac_objext conftest.$ac_ext
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 depcc="$CC" am_compiler_list=
3206 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3207 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3208 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3212 # We make a subdir and do the tests there. Otherwise we can end up
3213 # making bogus files that we don't know about and never remove. For
3214 # instance it was reported that on HP-UX the gcc test will end up
3215 # making a dummy file named `D' -- because `-MD' means `put the output
3216 # in D'.
3217 mkdir conftest.dir
3218 # Copy depcomp to subdir because otherwise we won't find it if we're
3219 # using a relative directory.
3220 cp "$am_depcomp" conftest.dir
3221 cd conftest.dir
3223 am_cv_CC_dependencies_compiler_type=none
3224 if test "$am_compiler_list" = ""; then
3225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3227 for depmode in $am_compiler_list; do
3228 # We need to recreate these files for each test, as the compiler may
3229 # overwrite some of them when testing with obscure command lines.
3230 # This happens at least with the AIX C compiler.
3231 echo '#include "conftest.h"' > conftest.c
3232 echo 'int i;' > conftest.h
3233 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3235 case $depmode in
3236 nosideeffect)
3237 # after this tag, mechanisms are not by side-effect, so they'll
3238 # only be used when explicitly requested
3239 if test "x$enable_dependency_tracking" = xyes; then
3240 continue
3241 else
3242 break
3245 none) break ;;
3246 esac
3247 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3248 # mode. It turns out that the SunPro C++ compiler does not properly
3249 # handle `-M -o', and we need to detect this.
3250 if depmode=$depmode \
3251 source=conftest.c object=conftest.o \
3252 depfile=conftest.Po tmpdepfile=conftest.TPo \
3253 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3254 >/dev/null 2>conftest.err &&
3255 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3257 # icc doesn't choke on unknown options, it will just issue warnings
3258 # (even with -Werror). So we grep stderr for any message
3259 # that says an option was ignored.
3260 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3261 am_cv_CC_dependencies_compiler_type=$depmode
3262 break
3265 done
3267 cd ..
3268 rm -rf conftest.dir
3269 else
3270 am_cv_CC_dependencies_compiler_type=none
3274 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3275 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3281 test "x$enable_dependency_tracking" != xno \
3282 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3283 am__fastdepCC_TRUE=
3284 am__fastdepCC_FALSE='#'
3285 else
3286 am__fastdepCC_TRUE='#'
3287 am__fastdepCC_FALSE=
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3298 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3299 # On Suns, sometimes $CPP names a directory.
3300 if test -n "$CPP" && test -d "$CPP"; then
3301 CPP=
3303 if test -z "$CPP"; then
3304 if test "${ac_cv_prog_CPP+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 # Double quotes because CPP needs to be expanded
3308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3310 ac_preproc_ok=false
3311 for ac_c_preproc_warn_flag in '' yes
3313 # Use a header file that comes with gcc, so configuring glibc
3314 # with a fresh cross-compiler works.
3315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3316 # <limits.h> exists even on freestanding compilers.
3317 # On the NeXT, cc -E runs the code through the compiler's parser,
3318 # not just through cpp. "Syntax error" is here to catch this case.
3319 cat >conftest.$ac_ext <<_ACEOF
3320 #line $LINENO "configure"
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #ifdef __STDC__
3327 # include <limits.h>
3328 #else
3329 # include <assert.h>
3330 #endif
3331 Syntax error
3332 _ACEOF
3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_c_preproc_warn_flag
3343 else
3344 ac_cpp_err=
3346 else
3347 ac_cpp_err=yes
3349 if test -z "$ac_cpp_err"; then
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 # Broken: fails on valid input.
3356 continue
3358 rm -f conftest.err conftest.$ac_ext
3360 # OK, works on sane cases. Now check whether non-existent headers
3361 # can be detected and how.
3362 cat >conftest.$ac_ext <<_ACEOF
3363 #line $LINENO "configure"
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <ac_nonexistent.h>
3370 _ACEOF
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 else
3382 ac_cpp_err=
3384 else
3385 ac_cpp_err=yes
3387 if test -z "$ac_cpp_err"; then
3388 # Broken: success on invalid input.
3389 continue
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Passes both tests.
3395 ac_preproc_ok=:
3396 break
3398 rm -f conftest.err conftest.$ac_ext
3400 done
3401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402 rm -f conftest.err conftest.$ac_ext
3403 if $ac_preproc_ok; then
3404 break
3407 done
3408 ac_cv_prog_CPP=$CPP
3411 CPP=$ac_cv_prog_CPP
3412 else
3413 ac_cv_prog_CPP=$CPP
3415 echo "$as_me:$LINENO: result: $CPP" >&5
3416 echo "${ECHO_T}$CPP" >&6
3417 ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_c_preproc_warn_flag
3450 else
3451 ac_cpp_err=
3453 else
3454 ac_cpp_err=yes
3456 if test -z "$ac_cpp_err"; then
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Broken: fails on valid input.
3463 continue
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether non-existent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470 #line $LINENO "configure"
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 #include <ac_nonexistent.h>
3477 _ACEOF
3478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3488 else
3489 ac_cpp_err=
3491 else
3492 ac_cpp_err=yes
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496 continue
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3505 rm -f conftest.err conftest.$ac_ext
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3512 else
3513 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 echo "$as_me:$LINENO: checking for X" >&5
3528 echo $ECHO_N "checking for X... $ECHO_C" >&6
3531 # Check whether --with-x or --without-x was given.
3532 if test "${with_x+set}" = set; then
3533 withval="$with_x"
3536 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3537 if test "x$with_x" = xno; then
3538 # The user explicitly disabled X.
3539 have_x=disabled
3540 else
3541 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3542 # Both variables are already set.
3543 have_x=yes
3544 else
3545 if test "${ac_cv_have_x+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 # One or both of the vars are not set, and there is no cached value.
3549 ac_x_includes=no ac_x_libraries=no
3550 rm -fr conftest.dir
3551 if mkdir conftest.dir; then
3552 cd conftest.dir
3553 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3554 cat >Imakefile <<'_ACEOF'
3555 acfindx:
3556 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3557 _ACEOF
3558 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3560 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3561 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3562 for ac_extension in a so sl; do
3563 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3564 test -f $ac_im_libdir/libX11.$ac_extension; then
3565 ac_im_usrlibdir=$ac_im_libdir; break
3567 done
3568 # Screen out bogus values from the imake configuration. They are
3569 # bogus both because they are the default anyway, and because
3570 # using them would break gcc on systems where it needs fixed includes.
3571 case $ac_im_incroot in
3572 /usr/include) ;;
3573 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3574 esac
3575 case $ac_im_usrlibdir in
3576 /usr/lib | /lib) ;;
3577 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3578 esac
3580 cd ..
3581 rm -fr conftest.dir
3584 # Standard set of common directories for X headers.
3585 # Check X11 before X11Rn because it is often a symlink to the current release.
3586 ac_x_header_dirs='
3587 /usr/X11/include
3588 /usr/X11R6/include
3589 /usr/X11R5/include
3590 /usr/X11R4/include
3592 /usr/include/X11
3593 /usr/include/X11R6
3594 /usr/include/X11R5
3595 /usr/include/X11R4
3597 /usr/local/X11/include
3598 /usr/local/X11R6/include
3599 /usr/local/X11R5/include
3600 /usr/local/X11R4/include
3602 /usr/local/include/X11
3603 /usr/local/include/X11R6
3604 /usr/local/include/X11R5
3605 /usr/local/include/X11R4
3607 /usr/X386/include
3608 /usr/x386/include
3609 /usr/XFree86/include/X11
3611 /usr/include
3612 /usr/local/include
3613 /usr/unsupported/include
3614 /usr/athena/include
3615 /usr/local/x11r5/include
3616 /usr/lpp/Xamples/include
3618 /usr/openwin/include
3619 /usr/openwin/share/include'
3621 if test "$ac_x_includes" = no; then
3622 # Guess where to find include files, by looking for Intrinsic.h.
3623 # First, try using that file with no special directory specified.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 #line $LINENO "configure"
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <X11/Intrinsic.h>
3632 _ACEOF
3633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } >/dev/null; then
3641 if test -s conftest.err; then
3642 ac_cpp_err=$ac_c_preproc_warn_flag
3643 else
3644 ac_cpp_err=
3646 else
3647 ac_cpp_err=yes
3649 if test -z "$ac_cpp_err"; then
3650 # We can compile using X headers with no special include directory.
3651 ac_x_includes=
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 for ac_dir in $ac_x_header_dirs; do
3657 if test -r "$ac_dir/X11/Intrinsic.h"; then
3658 ac_x_includes=$ac_dir
3659 break
3661 done
3663 rm -f conftest.err conftest.$ac_ext
3664 fi # $ac_x_includes = no
3666 if test "$ac_x_libraries" = no; then
3667 # Check for the libraries.
3668 # See if we find them without any special options.
3669 # Don't add to $LIBS permanently.
3670 ac_save_LIBS=$LIBS
3671 LIBS="-lXt $LIBS"
3672 cat >conftest.$ac_ext <<_ACEOF
3673 #line $LINENO "configure"
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <X11/Intrinsic.h>
3681 main ()
3683 XtMalloc (0)
3685 return 0;
3687 _ACEOF
3688 rm -f conftest.$ac_objext conftest$ac_exeext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690 (eval $ac_link) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -s conftest$ac_exeext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 LIBS=$ac_save_LIBS
3701 # We can link X programs with no special library path.
3702 ac_x_libraries=
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 LIBS=$ac_save_LIBS
3708 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3710 # Don't even attempt the hair of trying to link an X program!
3711 for ac_extension in a so sl; do
3712 if test -r $ac_dir/libXt.$ac_extension; then
3713 ac_x_libraries=$ac_dir
3714 break 2
3716 done
3717 done
3719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3720 fi # $ac_x_libraries = no
3722 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3723 # Didn't find X anywhere. Cache the known absence of X.
3724 ac_cv_have_x="have_x=no"
3725 else
3726 # Record where we found X for the cache.
3727 ac_cv_have_x="have_x=yes \
3728 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3733 eval "$ac_cv_have_x"
3734 fi # $with_x != no
3736 if test "$have_x" != yes; then
3737 echo "$as_me:$LINENO: result: $have_x" >&5
3738 echo "${ECHO_T}$have_x" >&6
3739 no_x=yes
3740 else
3741 # If each of the values was on the command line, it overrides each guess.
3742 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3743 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3744 # Update the cache value to reflect the command line values.
3745 ac_cv_have_x="have_x=yes \
3746 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3747 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3748 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3751 if test "$no_x" = yes; then
3752 # Not all programs may use this symbol, but it does not hurt to define it.
3754 cat >>confdefs.h <<\_ACEOF
3755 #define X_DISPLAY_MISSING 1
3756 _ACEOF
3758 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3759 else
3760 if test -n "$x_includes"; then
3761 X_CFLAGS="$X_CFLAGS -I$x_includes"
3764 # It would also be nice to do this for all -L options, not just this one.
3765 if test -n "$x_libraries"; then
3766 X_LIBS="$X_LIBS -L$x_libraries"
3767 # For Solaris; some versions of Sun CC require a space after -R and
3768 # others require no space. Words are not sufficient . . . .
3769 case `(uname -sr) 2>/dev/null` in
3770 "SunOS 5"*)
3771 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3772 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3773 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line $LINENO "configure"
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3783 main ()
3787 return 0;
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -s conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_R_nospace=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_R_nospace=no
3809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3810 if test $ac_R_nospace = yes; then
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3813 X_LIBS="$X_LIBS -R$x_libraries"
3814 else
3815 LIBS="$ac_xsave_LIBS -R $x_libraries"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line $LINENO "configure"
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -s conftest$ac_exeext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3844 ac_R_space=yes
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_R_space=no
3851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 if test $ac_R_space = yes; then
3853 echo "$as_me:$LINENO: result: yes" >&5
3854 echo "${ECHO_T}yes" >&6
3855 X_LIBS="$X_LIBS -R $x_libraries"
3856 else
3857 echo "$as_me:$LINENO: result: neither works" >&5
3858 echo "${ECHO_T}neither works" >&6
3861 LIBS=$ac_xsave_LIBS
3862 esac
3865 # Check for system-dependent libraries X programs must link with.
3866 # Do this before checking for the system-independent R6 libraries
3867 # (-lICE), since we may need -lsocket or whatever for X linking.
3869 if test "$ISC" = yes; then
3870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3871 else
3872 # Martyn Johnson says this is needed for Ultrix, if the X
3873 # libraries were built with DECnet support. And Karl Berry says
3874 # the Alpha needs dnet_stub (dnet does not exist).
3875 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3876 cat >conftest.$ac_ext <<_ACEOF
3877 #line $LINENO "configure"
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 /* Override any gcc2 internal prototype to avoid an error. */
3885 #ifdef __cplusplus
3886 extern "C"
3887 #endif
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3890 char XOpenDisplay ();
3892 main ()
3894 XOpenDisplay ();
3896 return 0;
3898 _ACEOF
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901 (eval $ac_link) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
3905 { ac_try='test -s conftest$ac_exeext'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 (eval $ac_try) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3912 else
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3917 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3918 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 ac_check_lib_save_LIBS=$LIBS
3922 LIBS="-ldnet $LIBS"
3923 cat >conftest.$ac_ext <<_ACEOF
3924 #line $LINENO "configure"
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 #ifdef __cplusplus
3933 extern "C"
3934 #endif
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char dnet_ntoa ();
3939 main ()
3941 dnet_ntoa ();
3943 return 0;
3945 _ACEOF
3946 rm -f conftest.$ac_objext conftest$ac_exeext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -s conftest$ac_exeext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 ac_cv_lib_dnet_dnet_ntoa=yes
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 ac_cv_lib_dnet_dnet_ntoa=no
3965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3966 LIBS=$ac_check_lib_save_LIBS
3968 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3969 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3970 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3971 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3974 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3975 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3976 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3977 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 ac_check_lib_save_LIBS=$LIBS
3981 LIBS="-ldnet_stub $LIBS"
3982 cat >conftest.$ac_ext <<_ACEOF
3983 #line $LINENO "configure"
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 #ifdef __cplusplus
3992 extern "C"
3993 #endif
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char dnet_ntoa ();
3998 main ()
4000 dnet_ntoa ();
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext conftest$ac_exeext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_lib_dnet_stub_dnet_ntoa=no
4024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4025 LIBS=$ac_check_lib_save_LIBS
4027 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4028 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4029 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4030 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4036 LIBS="$ac_xsave_LIBS"
4038 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4039 # to get the SysV transport functions.
4040 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4041 # needs -lnsl.
4042 # The nsl library prevents programs from opening the X display
4043 # on Irix 5.2, according to T.E. Dickey.
4044 # The functions gethostbyname, getservbyname, and inet_addr are
4045 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4046 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4047 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4048 if test "${ac_cv_func_gethostbyname+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 /* System header to define __stub macros and hopefully few prototypes,
4059 which can conflict with char gethostbyname (); below.
4060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 <limits.h> exists even on freestanding compilers. */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067 /* Override any gcc2 internal prototype to avoid an error. */
4068 #ifdef __cplusplus
4069 extern "C"
4071 #endif
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4074 char gethostbyname ();
4075 /* The GNU C library defines this for functions which it implements
4076 to always fail with ENOSYS. Some functions are actually named
4077 something starting with __ and the normal name is an alias. */
4078 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4079 choke me
4080 #else
4081 char (*f) () = gethostbyname;
4082 #endif
4083 #ifdef __cplusplus
4085 #endif
4088 main ()
4090 return f != gethostbyname;
4092 return 0;
4094 _ACEOF
4095 rm -f conftest.$ac_objext conftest$ac_exeext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097 (eval $ac_link) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try='test -s conftest$ac_exeext'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4107 ac_cv_func_gethostbyname=yes
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 ac_cv_func_gethostbyname=no
4114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4116 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4117 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4119 if test $ac_cv_func_gethostbyname = no; then
4120 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4121 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4122 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 ac_check_lib_save_LIBS=$LIBS
4126 LIBS="-lnsl $LIBS"
4127 cat >conftest.$ac_ext <<_ACEOF
4128 #line $LINENO "configure"
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4135 /* Override any gcc2 internal prototype to avoid an error. */
4136 #ifdef __cplusplus
4137 extern "C"
4138 #endif
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4141 char gethostbyname ();
4143 main ()
4145 gethostbyname ();
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext conftest$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -s conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_lib_nsl_gethostbyname=yes
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_lib_nsl_gethostbyname=no
4169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4170 LIBS=$ac_check_lib_save_LIBS
4172 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4173 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4174 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4178 if test $ac_cv_lib_nsl_gethostbyname = no; then
4179 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4180 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4181 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 ac_check_lib_save_LIBS=$LIBS
4185 LIBS="-lbsd $LIBS"
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4194 /* Override any gcc2 internal prototype to avoid an error. */
4195 #ifdef __cplusplus
4196 extern "C"
4197 #endif
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200 char gethostbyname ();
4202 main ()
4204 gethostbyname ();
4206 return 0;
4208 _ACEOF
4209 rm -f conftest.$ac_objext conftest$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -s conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_lib_bsd_gethostbyname=yes
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_cv_lib_bsd_gethostbyname=no
4228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4229 LIBS=$ac_check_lib_save_LIBS
4231 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4232 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4233 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4234 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4240 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4241 # socket/setsockopt and other routines are undefined under SCO ODT
4242 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4243 # on later versions), says Simon Leinen: it contains gethostby*
4244 # variants that don't use the name server (or something). -lsocket
4245 # must be given before -lnsl if both are needed. We assume that
4246 # if connect needs -lnsl, so does gethostbyname.
4247 echo "$as_me:$LINENO: checking for connect" >&5
4248 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4249 if test "${ac_cv_func_connect+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 cat >conftest.$ac_ext <<_ACEOF
4253 #line $LINENO "configure"
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 /* System header to define __stub macros and hopefully few prototypes,
4260 which can conflict with char connect (); below.
4261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 <limits.h> exists even on freestanding compilers. */
4263 #ifdef __STDC__
4264 # include <limits.h>
4265 #else
4266 # include <assert.h>
4267 #endif
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 #ifdef __cplusplus
4270 extern "C"
4272 #endif
4273 /* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */
4275 char connect ();
4276 /* The GNU C library defines this for functions which it implements
4277 to always fail with ENOSYS. Some functions are actually named
4278 something starting with __ and the normal name is an alias. */
4279 #if defined (__stub_connect) || defined (__stub___connect)
4280 choke me
4281 #else
4282 char (*f) () = connect;
4283 #endif
4284 #ifdef __cplusplus
4286 #endif
4289 main ()
4291 return f != connect;
4293 return 0;
4295 _ACEOF
4296 rm -f conftest.$ac_objext conftest$ac_exeext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4298 (eval $ac_link) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -s conftest$ac_exeext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 ac_cv_func_connect=yes
4309 else
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 ac_cv_func_connect=no
4315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4317 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4318 echo "${ECHO_T}$ac_cv_func_connect" >&6
4320 if test $ac_cv_func_connect = no; then
4321 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4322 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4323 if test "${ac_cv_lib_socket_connect+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 ac_check_lib_save_LIBS=$LIBS
4327 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4328 cat >conftest.$ac_ext <<_ACEOF
4329 #line $LINENO "configure"
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 #ifdef __cplusplus
4338 extern "C"
4339 #endif
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4342 char connect ();
4344 main ()
4346 connect ();
4348 return 0;
4350 _ACEOF
4351 rm -f conftest.$ac_objext conftest$ac_exeext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353 (eval $ac_link) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_lib_socket_connect=yes
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_cv_lib_socket_connect=no
4370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4371 LIBS=$ac_check_lib_save_LIBS
4373 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4374 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4375 if test $ac_cv_lib_socket_connect = yes; then
4376 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4381 # Guillermo Gomez says -lposix is necessary on A/UX.
4382 echo "$as_me:$LINENO: checking for remove" >&5
4383 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4384 if test "${ac_cv_func_remove+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 cat >conftest.$ac_ext <<_ACEOF
4388 #line $LINENO "configure"
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 /* System header to define __stub macros and hopefully few prototypes,
4395 which can conflict with char remove (); below.
4396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397 <limits.h> exists even on freestanding compilers. */
4398 #ifdef __STDC__
4399 # include <limits.h>
4400 #else
4401 # include <assert.h>
4402 #endif
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 #ifdef __cplusplus
4405 extern "C"
4407 #endif
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4410 char remove ();
4411 /* The GNU C library defines this for functions which it implements
4412 to always fail with ENOSYS. Some functions are actually named
4413 something starting with __ and the normal name is an alias. */
4414 #if defined (__stub_remove) || defined (__stub___remove)
4415 choke me
4416 #else
4417 char (*f) () = remove;
4418 #endif
4419 #ifdef __cplusplus
4421 #endif
4424 main ()
4426 return f != remove;
4428 return 0;
4430 _ACEOF
4431 rm -f conftest.$ac_objext conftest$ac_exeext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4433 (eval $ac_link) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -s conftest$ac_exeext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_cv_func_remove=yes
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 ac_cv_func_remove=no
4450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4452 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4453 echo "${ECHO_T}$ac_cv_func_remove" >&6
4455 if test $ac_cv_func_remove = no; then
4456 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4457 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4458 if test "${ac_cv_lib_posix_remove+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 ac_check_lib_save_LIBS=$LIBS
4462 LIBS="-lposix $LIBS"
4463 cat >conftest.$ac_ext <<_ACEOF
4464 #line $LINENO "configure"
4465 /* confdefs.h. */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 #ifdef __cplusplus
4473 extern "C"
4474 #endif
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char remove ();
4479 main ()
4481 remove ();
4483 return 0;
4485 _ACEOF
4486 rm -f conftest.$ac_objext conftest$ac_exeext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488 (eval $ac_link) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -s conftest$ac_exeext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 ac_cv_lib_posix_remove=yes
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 ac_cv_lib_posix_remove=no
4505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4506 LIBS=$ac_check_lib_save_LIBS
4508 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4509 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4510 if test $ac_cv_lib_posix_remove = yes; then
4511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4516 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4517 echo "$as_me:$LINENO: checking for shmat" >&5
4518 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4519 if test "${ac_cv_func_shmat+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 /* System header to define __stub macros and hopefully few prototypes,
4530 which can conflict with char shmat (); below.
4531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532 <limits.h> exists even on freestanding compilers. */
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 #ifdef __cplusplus
4540 extern "C"
4542 #endif
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4545 char shmat ();
4546 /* The GNU C library defines this for functions which it implements
4547 to always fail with ENOSYS. Some functions are actually named
4548 something starting with __ and the normal name is an alias. */
4549 #if defined (__stub_shmat) || defined (__stub___shmat)
4550 choke me
4551 #else
4552 char (*f) () = shmat;
4553 #endif
4554 #ifdef __cplusplus
4556 #endif
4559 main ()
4561 return f != shmat;
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -s conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_func_shmat=yes
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 ac_cv_func_shmat=no
4585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4588 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4590 if test $ac_cv_func_shmat = no; then
4591 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4592 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4593 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 ac_check_lib_save_LIBS=$LIBS
4597 LIBS="-lipc $LIBS"
4598 cat >conftest.$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4606 /* Override any gcc2 internal prototype to avoid an error. */
4607 #ifdef __cplusplus
4608 extern "C"
4609 #endif
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4612 char shmat ();
4614 main ()
4616 shmat ();
4618 return 0;
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -s conftest$ac_exeext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_lib_ipc_shmat=yes
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_cv_lib_ipc_shmat=no
4640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4641 LIBS=$ac_check_lib_save_LIBS
4643 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4644 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4645 if test $ac_cv_lib_ipc_shmat = yes; then
4646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4652 # Check for libraries that X11R6 Xt/Xaw programs need.
4653 ac_save_LDFLAGS=$LDFLAGS
4654 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4655 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4656 # check for ICE first), but we must link in the order -lSM -lICE or
4657 # we get undefined symbols. So assume we have SM if we have ICE.
4658 # These have to be linked with before -lX11, unlike the other
4659 # libraries we check for below, so use a different variable.
4660 # John Interrante, Karl Berry
4661 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4662 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4663 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 ac_check_lib_save_LIBS=$LIBS
4667 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line $LINENO "configure"
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 #ifdef __cplusplus
4678 extern "C"
4679 #endif
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char IceConnectionNumber ();
4684 main ()
4686 IceConnectionNumber ();
4688 return 0;
4690 _ACEOF
4691 rm -f conftest.$ac_objext conftest$ac_exeext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693 (eval $ac_link) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -s conftest$ac_exeext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 (eval $ac_try) 2>&5
4700 ac_status=$?
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_lib_ICE_IceConnectionNumber=yes
4704 else
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_lib_ICE_IceConnectionNumber=no
4710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4711 LIBS=$ac_check_lib_save_LIBS
4713 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4714 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4715 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4716 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4719 LDFLAGS=$ac_save_LDFLAGS
4723 ac_ext=cc
4724 ac_cpp='$CXXCPP $CPPFLAGS'
4725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4730 echo "$as_me:$LINENO: checking whether we are enabling debug-mode" >&5
4731 echo $ECHO_N "checking whether we are enabling debug-mode... $ECHO_C" >&6
4732 # Check whether --enable-debug or --disable-debug was given.
4733 if test "${enable_debug+set}" = set; then
4734 enableval="$enable_debug"
4736 else
4737 enable_debug=no
4739 echo "$as_me:$LINENO: result: $enable_debug" >&5
4740 echo "${ECHO_T}$enable_debug" >&6
4742 if test x$enable_debug = xyes; then
4744 cat >>confdefs.h <<\_ACEOF
4745 #define DEBUG 1
4746 _ACEOF
4748 CXXFLAGS="-g -O0 -Wall -Werror"
4751 echo "$as_me:$LINENO: checking whether we are enabling gprof profiling-support" >&5
4752 echo $ECHO_N "checking whether we are enabling gprof profiling-support... $ECHO_C" >&6
4753 # Check whether --enable-gprof or --disable-gprof was given.
4754 if test "${enable_gprof+set}" = set; then
4755 enableval="$enable_gprof"
4757 else
4758 enable_gprof=no
4760 echo "$as_me:$LINENO: result: $enable_gprof" >&5
4761 echo "${ECHO_T}$enable_gprof" >&6
4763 if test x$enable_gprof = xyes; then
4764 CXXFLAGS="$CXXFLAGS -pg"
4767 echo "$as_me:$LINENO: checking whether we are enabling FunctionCheck profiling" >&5
4768 echo $ECHO_N "checking whether we are enabling FunctionCheck profiling... $ECHO_C" >&6
4769 # Check whether --enable-fcheck or --disable-fcheck was given.
4770 if test "${enable_fcheck+set}" = set; then
4771 enableval="$enable_fcheck"
4773 else
4774 enable_fcheck=no
4776 echo "$as_me:$LINENO: result: $enable_fcheck" >&5
4777 echo "${ECHO_T}$enable_fcheck" >&6
4779 if test x$enable_fcheck = xyes; then
4780 CXXFLAGS="`fc-config --cflags`"
4781 LIBS="$LIBS `fc-config --libs`"
4785 ac_ext=cc
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4791 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4792 if test -z "$CXXCPP"; then
4793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 # Double quotes because CXXCPP needs to be expanded
4797 for CXXCPP in "$CXX -E" "/lib/cpp"
4799 ac_preproc_ok=false
4800 for ac_cxx_preproc_warn_flag in '' yes
4802 # Use a header file that comes with gcc, so configuring glibc
4803 # with a fresh cross-compiler works.
4804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805 # <limits.h> exists even on freestanding compilers.
4806 # On the NeXT, cc -E runs the code through the compiler's parser,
4807 # not just through cpp. "Syntax error" is here to catch this case.
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #ifdef __STDC__
4816 # include <limits.h>
4817 #else
4818 # include <assert.h>
4819 #endif
4820 Syntax error
4821 _ACEOF
4822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null; then
4830 if test -s conftest.err; then
4831 ac_cpp_err=$ac_cxx_preproc_warn_flag
4832 else
4833 ac_cpp_err=
4835 else
4836 ac_cpp_err=yes
4838 if test -z "$ac_cpp_err"; then
4840 else
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 # Broken: fails on valid input.
4845 continue
4847 rm -f conftest.err conftest.$ac_ext
4849 # OK, works on sane cases. Now check whether non-existent headers
4850 # can be detected and how.
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <ac_nonexistent.h>
4859 _ACEOF
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_cxx_preproc_warn_flag
4870 else
4871 ac_cpp_err=
4873 else
4874 ac_cpp_err=yes
4876 if test -z "$ac_cpp_err"; then
4877 # Broken: success on invalid input.
4878 continue
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 # Passes both tests.
4884 ac_preproc_ok=:
4885 break
4887 rm -f conftest.err conftest.$ac_ext
4889 done
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.err conftest.$ac_ext
4892 if $ac_preproc_ok; then
4893 break
4896 done
4897 ac_cv_prog_CXXCPP=$CXXCPP
4900 CXXCPP=$ac_cv_prog_CXXCPP
4901 else
4902 ac_cv_prog_CXXCPP=$CXXCPP
4904 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4905 echo "${ECHO_T}$CXXCPP" >&6
4906 ac_preproc_ok=false
4907 for ac_cxx_preproc_warn_flag in '' yes
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.$ac_ext <<_ACEOF
4916 #line $LINENO "configure"
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #ifdef __STDC__
4923 # include <limits.h>
4924 #else
4925 # include <assert.h>
4926 #endif
4927 Syntax error
4928 _ACEOF
4929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null; then
4937 if test -s conftest.err; then
4938 ac_cpp_err=$ac_cxx_preproc_warn_flag
4939 else
4940 ac_cpp_err=
4942 else
4943 ac_cpp_err=yes
4945 if test -z "$ac_cpp_err"; then
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 # Broken: fails on valid input.
4952 continue
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether non-existent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 /* confdefs.h. */
4961 _ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4965 #include <ac_nonexistent.h>
4966 _ACEOF
4967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } >/dev/null; then
4975 if test -s conftest.err; then
4976 ac_cpp_err=$ac_cxx_preproc_warn_flag
4977 else
4978 ac_cpp_err=
4980 else
4981 ac_cpp_err=yes
4983 if test -z "$ac_cpp_err"; then
4984 # Broken: success on invalid input.
4985 continue
4986 else
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 # Passes both tests.
4991 ac_preproc_ok=:
4992 break
4994 rm -f conftest.err conftest.$ac_ext
4996 done
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.$ac_ext
4999 if $ac_preproc_ok; then
5001 else
5002 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5003 See \`config.log' for more details." >&5
5004 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5005 See \`config.log' for more details." >&2;}
5006 { (exit 1); exit 1; }; }
5009 ac_ext=cc
5010 ac_cpp='$CXXCPP $CPPFLAGS'
5011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016 echo "$as_me:$LINENO: checking for egrep" >&5
5017 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5018 if test "${ac_cv_prog_egrep+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5022 then ac_cv_prog_egrep='grep -E'
5023 else ac_cv_prog_egrep='egrep'
5026 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5027 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5028 EGREP=$ac_cv_prog_egrep
5031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5033 if test "${ac_cv_header_stdc+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #include <stdlib.h>
5044 #include <stdarg.h>
5045 #include <string.h>
5046 #include <float.h>
5049 main ()
5053 return 0;
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_header_stdc=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_cv_header_stdc=no
5075 rm -f conftest.$ac_objext conftest.$ac_ext
5077 if test $ac_cv_header_stdc = yes; then
5078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 #line $LINENO "configure"
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <string.h>
5088 _ACEOF
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090 $EGREP "memchr" >/dev/null 2>&1; then
5092 else
5093 ac_cv_header_stdc=no
5095 rm -f conftest*
5099 if test $ac_cv_header_stdc = yes; then
5100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <stdlib.h>
5110 _ACEOF
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 $EGREP "free" >/dev/null 2>&1; then
5114 else
5115 ac_cv_header_stdc=no
5117 rm -f conftest*
5121 if test $ac_cv_header_stdc = yes; then
5122 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5123 if test "$cross_compiling" = yes; then
5125 else
5126 cat >conftest.$ac_ext <<_ACEOF
5127 #line $LINENO "configure"
5128 /* confdefs.h. */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 #include <ctype.h>
5134 #if ((' ' & 0x0FF) == 0x020)
5135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5137 #else
5138 # define ISLOWER(c) \
5139 (('a' <= (c) && (c) <= 'i') \
5140 || ('j' <= (c) && (c) <= 'r') \
5141 || ('s' <= (c) && (c) <= 'z'))
5142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5143 #endif
5145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5147 main ()
5149 int i;
5150 for (i = 0; i < 256; i++)
5151 if (XOR (islower (i), ISLOWER (i))
5152 || toupper (i) != TOUPPER (i))
5153 exit(2);
5154 exit (0);
5156 _ACEOF
5157 rm -f conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5169 else
5170 echo "$as_me: program exited with status $ac_status" >&5
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 ( exit $ac_status )
5175 ac_cv_header_stdc=no
5177 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5181 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5182 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5183 if test $ac_cv_header_stdc = yes; then
5185 cat >>confdefs.h <<\_ACEOF
5186 #define STDC_HEADERS 1
5187 _ACEOF
5191 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5201 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5202 inttypes.h stdint.h unistd.h
5204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205 echo "$as_me:$LINENO: checking for $ac_header" >&5
5206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 cat >conftest.$ac_ext <<_ACEOF
5211 #line $LINENO "configure"
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 $ac_includes_default
5219 #include <$ac_header>
5220 _ACEOF
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -s conftest.$ac_objext'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 (eval $ac_try) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5233 eval "$as_ac_Header=yes"
5234 else
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5238 eval "$as_ac_Header=no"
5240 rm -f conftest.$ac_objext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5245 cat >>confdefs.h <<_ACEOF
5246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5247 _ACEOF
5251 done
5254 if test "${ac_cv_header_sstream+set}" = set; then
5255 echo "$as_me:$LINENO: checking for sstream" >&5
5256 echo $ECHO_N "checking for sstream... $ECHO_C" >&6
5257 if test "${ac_cv_header_sstream+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 echo "$as_me:$LINENO: result: $ac_cv_header_sstream" >&5
5261 echo "${ECHO_T}$ac_cv_header_sstream" >&6
5262 else
5263 # Is the header compilable?
5264 echo "$as_me:$LINENO: checking sstream usability" >&5
5265 echo $ECHO_N "checking sstream usability... $ECHO_C" >&6
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 /* confdefs.h. */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 $ac_includes_default
5274 #include <sstream>
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278 (eval $ac_compile) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_header_compiler=yes
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ac_header_compiler=no
5295 rm -f conftest.$ac_objext conftest.$ac_ext
5296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5297 echo "${ECHO_T}$ac_header_compiler" >&6
5299 # Is the header present?
5300 echo "$as_me:$LINENO: checking sstream presence" >&5
5301 echo $ECHO_N "checking sstream presence... $ECHO_C" >&6
5302 cat >conftest.$ac_ext <<_ACEOF
5303 #line $LINENO "configure"
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 #include <sstream>
5310 _ACEOF
5311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null; then
5319 if test -s conftest.err; then
5320 ac_cpp_err=$ac_cxx_preproc_warn_flag
5321 else
5322 ac_cpp_err=
5324 else
5325 ac_cpp_err=yes
5327 if test -z "$ac_cpp_err"; then
5328 ac_header_preproc=yes
5329 else
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 ac_header_preproc=no
5335 rm -f conftest.err conftest.$ac_ext
5336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5337 echo "${ECHO_T}$ac_header_preproc" >&6
5339 # So? What about this header?
5340 case $ac_header_compiler:$ac_header_preproc in
5341 yes:no )
5342 { echo "$as_me:$LINENO: WARNING: sstream: accepted by the compiler, rejected by the preprocessor!" >&5
5343 echo "$as_me: WARNING: sstream: accepted by the compiler, rejected by the preprocessor!" >&2;}
5344 { echo "$as_me:$LINENO: WARNING: sstream: proceeding with the preprocessor's result" >&5
5345 echo "$as_me: WARNING: sstream: proceeding with the preprocessor's result" >&2;}
5347 cat <<\_ASBOX
5348 ## ------------------------------------ ##
5349 ## Report this to bug-autoconf@gnu.org. ##
5350 ## ------------------------------------ ##
5351 _ASBOX
5353 sed "s/^/$as_me: WARNING: /" >&2
5355 no:yes )
5356 { echo "$as_me:$LINENO: WARNING: sstream: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: sstream: present but cannot be compiled" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: sstream: check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: sstream: check for missing prerequisite headers?" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: sstream: proceeding with the preprocessor's result" >&5
5361 echo "$as_me: WARNING: sstream: proceeding with the preprocessor's result" >&2;}
5363 cat <<\_ASBOX
5364 ## ------------------------------------ ##
5365 ## Report this to bug-autoconf@gnu.org. ##
5366 ## ------------------------------------ ##
5367 _ASBOX
5369 sed "s/^/$as_me: WARNING: /" >&2
5371 esac
5372 echo "$as_me:$LINENO: checking for sstream" >&5
5373 echo $ECHO_N "checking for sstream... $ECHO_C" >&6
5374 if test "${ac_cv_header_sstream+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 ac_cv_header_sstream=$ac_header_preproc
5379 echo "$as_me:$LINENO: result: $ac_cv_header_sstream" >&5
5380 echo "${ECHO_T}$ac_cv_header_sstream" >&6
5383 if test $ac_cv_header_sstream = yes; then
5385 else
5386 { echo "$as_me:$LINENO: using replacement sstream from compatlib/" >&5
5387 echo "$as_me: using replacement sstream from compatlib/" >&6;}
5388 CXXFLAGS="$CXXFLAGS -Icompatlib/"
5394 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5396 ac_define_dir=`eval echo $datadir`
5397 ac_define_dir=`eval echo $ac_define_dir`
5399 cat >>confdefs.h <<_ACEOF
5400 #define DATADIR "$ac_define_dir"
5401 _ACEOF
5406 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
5407 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
5408 if test "${ac_cv_lib_z_gzopen+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 ac_check_lib_save_LIBS=$LIBS
5412 LIBS="-lz $LIBS"
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5421 /* Override any gcc2 internal prototype to avoid an error. */
5422 #ifdef __cplusplus
5423 extern "C"
5424 #endif
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5427 char gzopen ();
5429 main ()
5431 gzopen ();
5433 return 0;
5435 _ACEOF
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_lib_z_gzopen=yes
5449 else
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 ac_cv_lib_z_gzopen=no
5455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5456 LIBS=$ac_check_lib_save_LIBS
5458 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
5459 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
5460 if test $ac_cv_lib_z_gzopen = yes; then
5461 cat >>confdefs.h <<_ACEOF
5462 #define HAVE_LIBZ 1
5463 _ACEOF
5465 LIBS="-lz $LIBS"
5470 ConstruoTargets=""
5472 if test -n "$X_DISPLAY_MISSING"; then
5473 echo ""
5474 echo "### Error: Couldn't find X11 header files, probally x11-devel packages"
5475 echo "### not installed?"
5476 echo ""
5477 else
5478 ConstruoTargets="$ConstruoTargets construo.x11"
5479 x11_LIBS="$x11_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11"
5480 x11_CXXFLAGS="$CXXFLAGS $X_CFLAGS"
5483 echo "$as_me:$LINENO: checking for XMissingExtension in -lXext" >&5
5484 echo $ECHO_N "checking for XMissingExtension in -lXext... $ECHO_C" >&6
5485 if test "${ac_cv_lib_Xext_XMissingExtension+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488 ac_check_lib_save_LIBS=$LIBS
5489 LIBS="-lXext $x11_LIBS $LIBS"
5490 cat >conftest.$ac_ext <<_ACEOF
5491 #line $LINENO "configure"
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 /* Override any gcc2 internal prototype to avoid an error. */
5499 #ifdef __cplusplus
5500 extern "C"
5501 #endif
5502 /* We use char because int might match the return type of a gcc2
5503 builtin and then its argument prototype would still apply. */
5504 char XMissingExtension ();
5506 main ()
5508 XMissingExtension ();
5510 return 0;
5512 _ACEOF
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -s conftest$ac_exeext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_lib_Xext_XMissingExtension=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_cv_lib_Xext_XMissingExtension=no
5532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5533 LIBS=$ac_check_lib_save_LIBS
5535 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XMissingExtension" >&5
5536 echo "${ECHO_T}$ac_cv_lib_Xext_XMissingExtension" >&6
5537 if test $ac_cv_lib_Xext_XMissingExtension = yes; then
5538 x11_LIBS="$x11_LIBS -lXext"
5540 cat >>confdefs.h <<\_ACEOF
5541 #define HAVE_LIBXEXT 1
5542 _ACEOF
5547 echo "$as_me:$LINENO: checking for XF86VidModeSwitchToMode in -lXxf86vm" >&5
5548 echo $ECHO_N "checking for XF86VidModeSwitchToMode in -lXxf86vm... $ECHO_C" >&6
5549 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 ac_check_lib_save_LIBS=$LIBS
5553 LIBS="-lXxf86vm $x11_LIBS $LIBS"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5568 char XF86VidModeSwitchToMode ();
5570 main ()
5572 XF86VidModeSwitchToMode ();
5574 return 0;
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode=no
5596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5599 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode" >&5
5600 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode" >&6
5601 if test $ac_cv_lib_Xxf86vm_XF86VidModeSwitchToMode = yes; then
5602 x11_LIBS="$x11_LIBS -lXxf86vm"
5604 cat >>confdefs.h <<\_ACEOF
5605 #define HAVE_LIBXXF86VM 1
5606 _ACEOF
5614 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
5615 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
5616 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 ac_check_lib_save_LIBS=$LIBS
5620 LIBS="-lglut $LIBS"
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5629 /* Override any gcc2 internal prototype to avoid an error. */
5630 #ifdef __cplusplus
5631 extern "C"
5632 #endif
5633 /* We use char because int might match the return type of a gcc2
5634 builtin and then its argument prototype would still apply. */
5635 char glutMainLoop ();
5637 main ()
5639 glutMainLoop ();
5641 return 0;
5643 _ACEOF
5644 rm -f conftest.$ac_objext conftest$ac_exeext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646 (eval $ac_link) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 ac_cv_lib_glut_glutMainLoop=yes
5657 else
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 ac_cv_lib_glut_glutMainLoop=no
5663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5664 LIBS=$ac_check_lib_save_LIBS
5666 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
5667 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
5668 if test $ac_cv_lib_glut_glutMainLoop = yes; then
5670 ConstruoTargets="$ConstruoTargets construo.glut"
5671 glut_LIBS="-lglut"
5677 echo "$as_me:$LINENO: checking for glutMainLoop in -lfreeglut-1.3" >&5
5678 echo $ECHO_N "checking for glutMainLoop in -lfreeglut-1.3... $ECHO_C" >&6
5679 if test "${ac_cv_lib_freeglut_1_3_glutMainLoop+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 ac_check_lib_save_LIBS=$LIBS
5683 LIBS="-lfreeglut-1.3 $LIBS"
5684 cat >conftest.$ac_ext <<_ACEOF
5685 #line $LINENO "configure"
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5692 /* Override any gcc2 internal prototype to avoid an error. */
5693 #ifdef __cplusplus
5694 extern "C"
5695 #endif
5696 /* We use char because int might match the return type of a gcc2
5697 builtin and then its argument prototype would still apply. */
5698 char glutMainLoop ();
5700 main ()
5702 glutMainLoop ();
5704 return 0;
5706 _ACEOF
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5709 (eval $ac_link) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_lib_freeglut_1_3_glutMainLoop=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_cv_lib_freeglut_1_3_glutMainLoop=no
5726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5729 echo "$as_me:$LINENO: result: $ac_cv_lib_freeglut_1_3_glutMainLoop" >&5
5730 echo "${ECHO_T}$ac_cv_lib_freeglut_1_3_glutMainLoop" >&6
5731 if test $ac_cv_lib_freeglut_1_3_glutMainLoop = yes; then
5733 ConstruoTargets="$ConstruoTargets construo.freeglut"
5734 freeglut_LIBS="-lfreeglut-1.3"
5740 if test -z "$ConstruoTargets"; then
5741 echo ""
5742 echo "ERROR: Neither X11 nor Glut could be detected, so Construo is not"
5743 echo "ERROR: buildable. You might need to install the -devel packages for"
5744 echo "ERROR: the libraries or check what else could have gone wrong."
5745 echo "ERROR: The file 'config.log' contains more details on the runed libary"
5746 echo "ERROR: checks and might help you to figure out what went wrong."
5747 echo ""
5748 exit 1
5753 ac_config_files="$ac_config_files Makefile examples/Makefile"
5755 cat >confcache <<\_ACEOF
5756 # This file is a shell script that caches the results of configure
5757 # tests run on this system so they can be shared between configure
5758 # scripts and configure runs, see configure's option --config-cache.
5759 # It is not useful on other systems. If it contains results you don't
5760 # want to keep, you may remove or edit it.
5762 # config.status only pays attention to the cache file if you give it
5763 # the --recheck option to rerun configure.
5765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5767 # following values.
5769 _ACEOF
5771 # The following way of writing the cache mishandles newlines in values,
5772 # but we know of no workaround that is simple, portable, and efficient.
5773 # So, don't put newlines in cache variables' values.
5774 # Ultrix sh set writes to stderr and can't be redirected directly,
5775 # and sets the high bit in the cache file unless we assign to the vars.
5777 (set) 2>&1 |
5778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5779 *ac_space=\ *)
5780 # `set' does not quote correctly, so add quotes (double-quote
5781 # substitution turns \\\\ into \\, and sed turns \\ into \).
5782 sed -n \
5783 "s/'/'\\\\''/g;
5784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5787 # `set' quotes correctly as required by POSIX, so do not add quotes.
5788 sed -n \
5789 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5791 esac;
5793 sed '
5794 t clear
5795 : clear
5796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5797 t end
5798 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5799 : end' >>confcache
5800 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5801 if test -w $cache_file; then
5802 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5803 cat confcache >$cache_file
5804 else
5805 echo "not updating unwritable cache $cache_file"
5808 rm -f confcache
5810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5811 # Let make expand exec_prefix.
5812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5816 # trailing colons and then remove the whole line if VPATH becomes empty
5817 # (actually we leave an empty line to preserve line numbers).
5818 if test "x$srcdir" = x.; then
5819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5820 s/:*\$(srcdir):*/:/;
5821 s/:*\${srcdir}:*/:/;
5822 s/:*@srcdir@:*/:/;
5823 s/^\([^=]*=[ ]*\):*/\1/;
5824 s/:*$//;
5825 s/^[^=]*=[ ]*$//;
5829 DEFS=-DHAVE_CONFIG_H
5831 ac_libobjs=
5832 ac_ltlibobjs=
5833 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5834 # 1. Remove the extension, and $U if already installed.
5835 ac_i=`echo "$ac_i" |
5836 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5837 # 2. Add them.
5838 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5839 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5840 done
5841 LIBOBJS=$ac_libobjs
5843 LTLIBOBJS=$ac_ltlibobjs
5846 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5847 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5848 Usually this means the macro was only invoked conditionally." >&5
5849 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5850 Usually this means the macro was only invoked conditionally." >&2;}
5851 { (exit 1); exit 1; }; }
5853 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5854 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5855 Usually this means the macro was only invoked conditionally." >&5
5856 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5857 Usually this means the macro was only invoked conditionally." >&2;}
5858 { (exit 1); exit 1; }; }
5860 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5861 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5862 Usually this means the macro was only invoked conditionally." >&5
5863 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5864 Usually this means the macro was only invoked conditionally." >&2;}
5865 { (exit 1); exit 1; }; }
5868 : ${CONFIG_STATUS=./config.status}
5869 ac_clean_files_save=$ac_clean_files
5870 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5871 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5872 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5873 cat >$CONFIG_STATUS <<_ACEOF
5874 #! $SHELL
5875 # Generated by $as_me.
5876 # Run this file to recreate the current configuration.
5877 # Compiler output produced by configure, useful for debugging
5878 # configure, is in config.log if it exists.
5880 debug=false
5881 ac_cs_recheck=false
5882 ac_cs_silent=false
5883 SHELL=\${CONFIG_SHELL-$SHELL}
5884 _ACEOF
5886 cat >>$CONFIG_STATUS <<\_ACEOF
5887 ## --------------------- ##
5888 ## M4sh Initialization. ##
5889 ## --------------------- ##
5891 # Be Bourne compatible
5892 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5893 emulate sh
5894 NULLCMD=:
5895 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5896 # is contrary to our usage. Disable this feature.
5897 alias -g '${1+"$@"}'='"$@"'
5898 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5899 set -o posix
5902 # Support unset when possible.
5903 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5904 as_unset=unset
5905 else
5906 as_unset=false
5910 # Work around bugs in pre-3.0 UWIN ksh.
5911 $as_unset ENV MAIL MAILPATH
5912 PS1='$ '
5913 PS2='> '
5914 PS4='+ '
5916 # NLS nuisances.
5917 for as_var in \
5918 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5919 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5920 LC_TELEPHONE LC_TIME
5922 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5923 eval $as_var=C; export $as_var
5924 else
5925 $as_unset $as_var
5927 done
5929 # Required to use basename.
5930 if expr a : '\(a\)' >/dev/null 2>&1; then
5931 as_expr=expr
5932 else
5933 as_expr=false
5936 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5937 as_basename=basename
5938 else
5939 as_basename=false
5943 # Name of the executable.
5944 as_me=`$as_basename "$0" ||
5945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5946 X"$0" : 'X\(//\)$' \| \
5947 X"$0" : 'X\(/\)$' \| \
5948 . : '\(.\)' 2>/dev/null ||
5949 echo X/"$0" |
5950 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5951 /^X\/\(\/\/\)$/{ s//\1/; q; }
5952 /^X\/\(\/\).*/{ s//\1/; q; }
5953 s/.*/./; q'`
5956 # PATH needs CR, and LINENO needs CR and PATH.
5957 # Avoid depending upon Character Ranges.
5958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5961 as_cr_digits='0123456789'
5962 as_cr_alnum=$as_cr_Letters$as_cr_digits
5964 # The user is always right.
5965 if test "${PATH_SEPARATOR+set}" != set; then
5966 echo "#! /bin/sh" >conf$$.sh
5967 echo "exit 0" >>conf$$.sh
5968 chmod +x conf$$.sh
5969 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5970 PATH_SEPARATOR=';'
5971 else
5972 PATH_SEPARATOR=:
5974 rm -f conf$$.sh
5978 as_lineno_1=$LINENO
5979 as_lineno_2=$LINENO
5980 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5981 test "x$as_lineno_1" != "x$as_lineno_2" &&
5982 test "x$as_lineno_3" = "x$as_lineno_2" || {
5983 # Find who we are. Look in the path if we contain no path at all
5984 # relative or not.
5985 case $0 in
5986 *[\\/]* ) as_myself=$0 ;;
5987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5993 done
5996 esac
5997 # We did not find ourselves, most probably we were run as `sh COMMAND'
5998 # in which case we are not to be found in the path.
5999 if test "x$as_myself" = x; then
6000 as_myself=$0
6002 if test ! -f "$as_myself"; then
6003 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6004 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6005 { (exit 1); exit 1; }; }
6007 case $CONFIG_SHELL in
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for as_base in sh bash ksh sh5; do
6015 case $as_dir in
6017 if ("$as_dir/$as_base" -c '
6018 as_lineno_1=$LINENO
6019 as_lineno_2=$LINENO
6020 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6021 test "x$as_lineno_1" != "x$as_lineno_2" &&
6022 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6023 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6024 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6025 CONFIG_SHELL=$as_dir/$as_base
6026 export CONFIG_SHELL
6027 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6028 fi;;
6029 esac
6030 done
6031 done
6033 esac
6035 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6036 # uniformly replaced by the line number. The first 'sed' inserts a
6037 # line-number line before each line; the second 'sed' does the real
6038 # work. The second script uses 'N' to pair each line-number line
6039 # with the numbered line, and appends trailing '-' during
6040 # substitution so that $LINENO is not a special case at line end.
6041 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6042 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6043 sed '=' <$as_myself |
6044 sed '
6046 s,$,-,
6047 : loop
6048 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6049 t loop
6050 s,-$,,
6051 s,^['$as_cr_digits']*\n,,
6052 ' >$as_me.lineno &&
6053 chmod +x $as_me.lineno ||
6054 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6055 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6056 { (exit 1); exit 1; }; }
6058 # Don't try to exec as it changes $[0], causing all sort of problems
6059 # (the dirname of $[0] is not the place where we might find the
6060 # original and so on. Autoconf is especially sensible to this).
6061 . ./$as_me.lineno
6062 # Exit status is that of the last command.
6063 exit
6067 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6068 *c*,-n*) ECHO_N= ECHO_C='
6069 ' ECHO_T=' ' ;;
6070 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6071 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6072 esac
6074 if expr a : '\(a\)' >/dev/null 2>&1; then
6075 as_expr=expr
6076 else
6077 as_expr=false
6080 rm -f conf$$ conf$$.exe conf$$.file
6081 echo >conf$$.file
6082 if ln -s conf$$.file conf$$ 2>/dev/null; then
6083 # We could just check for DJGPP; but this test a) works b) is more generic
6084 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6085 if test -f conf$$.exe; then
6086 # Don't use ln at all; we don't have any links
6087 as_ln_s='cp -p'
6088 else
6089 as_ln_s='ln -s'
6091 elif ln conf$$.file conf$$ 2>/dev/null; then
6092 as_ln_s=ln
6093 else
6094 as_ln_s='cp -p'
6096 rm -f conf$$ conf$$.exe conf$$.file
6098 if mkdir -p . 2>/dev/null; then
6099 as_mkdir_p=:
6100 else
6101 as_mkdir_p=false
6104 as_executable_p="test -f"
6106 # Sed expression to map a string onto a valid CPP name.
6107 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6109 # Sed expression to map a string onto a valid variable name.
6110 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6113 # IFS
6114 # We need space, tab and new line, in precisely that order.
6115 as_nl='
6117 IFS=" $as_nl"
6119 # CDPATH.
6120 $as_unset CDPATH
6122 exec 6>&1
6124 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6125 # report actual input values of CONFIG_FILES etc. instead of their
6126 # values after options handling. Logging --version etc. is OK.
6127 exec 5>>config.log
6129 echo
6130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6131 ## Running $as_me. ##
6132 _ASBOX
6133 } >&5
6134 cat >&5 <<_CSEOF
6136 This file was extended by construo $as_me 0.2.2, which was
6137 generated by GNU Autoconf 2.57. Invocation command line was
6139 CONFIG_FILES = $CONFIG_FILES
6140 CONFIG_HEADERS = $CONFIG_HEADERS
6141 CONFIG_LINKS = $CONFIG_LINKS
6142 CONFIG_COMMANDS = $CONFIG_COMMANDS
6143 $ $0 $@
6145 _CSEOF
6146 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6147 echo >&5
6148 _ACEOF
6150 # Files that config.status was made for.
6151 if test -n "$ac_config_files"; then
6152 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6155 if test -n "$ac_config_headers"; then
6156 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6159 if test -n "$ac_config_links"; then
6160 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6163 if test -n "$ac_config_commands"; then
6164 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6167 cat >>$CONFIG_STATUS <<\_ACEOF
6169 ac_cs_usage="\
6170 \`$as_me' instantiates files from templates according to the
6171 current configuration.
6173 Usage: $0 [OPTIONS] [FILE]...
6175 -h, --help print this help, then exit
6176 -V, --version print version number, then exit
6177 -q, --quiet do not print progress messages
6178 -d, --debug don't remove temporary files
6179 --recheck update $as_me by reconfiguring in the same conditions
6180 --file=FILE[:TEMPLATE]
6181 instantiate the configuration file FILE
6182 --header=FILE[:TEMPLATE]
6183 instantiate the configuration header FILE
6185 Configuration files:
6186 $config_files
6188 Configuration headers:
6189 $config_headers
6191 Configuration commands:
6192 $config_commands
6194 Report bugs to <bug-autoconf@gnu.org>."
6195 _ACEOF
6197 cat >>$CONFIG_STATUS <<_ACEOF
6198 ac_cs_version="\\
6199 construo config.status 0.2.2
6200 configured by $0, generated by GNU Autoconf 2.57,
6201 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6203 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6204 Free Software Foundation, Inc.
6205 This config.status script is free software; the Free Software Foundation
6206 gives unlimited permission to copy, distribute and modify it."
6207 srcdir=$srcdir
6208 INSTALL="$INSTALL"
6209 _ACEOF
6211 cat >>$CONFIG_STATUS <<\_ACEOF
6212 # If no file are specified by the user, then we need to provide default
6213 # value. By we need to know if files were specified by the user.
6214 ac_need_defaults=:
6215 while test $# != 0
6217 case $1 in
6218 --*=*)
6219 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6220 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6221 ac_shift=:
6224 ac_option=$1
6225 ac_optarg=$2
6226 ac_shift=shift
6228 *) # This is not an option, so the user has probably given explicit
6229 # arguments.
6230 ac_option=$1
6231 ac_need_defaults=false;;
6232 esac
6234 case $ac_option in
6235 # Handling of the options.
6236 _ACEOF
6237 cat >>$CONFIG_STATUS <<\_ACEOF
6238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6239 ac_cs_recheck=: ;;
6240 --version | --vers* | -V )
6241 echo "$ac_cs_version"; exit 0 ;;
6242 --he | --h)
6243 # Conflict between --help and --header
6244 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6245 Try \`$0 --help' for more information." >&5
6246 echo "$as_me: error: ambiguous option: $1
6247 Try \`$0 --help' for more information." >&2;}
6248 { (exit 1); exit 1; }; };;
6249 --help | --hel | -h )
6250 echo "$ac_cs_usage"; exit 0 ;;
6251 --debug | --d* | -d )
6252 debug=: ;;
6253 --file | --fil | --fi | --f )
6254 $ac_shift
6255 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6256 ac_need_defaults=false;;
6257 --header | --heade | --head | --hea )
6258 $ac_shift
6259 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6260 ac_need_defaults=false;;
6261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6263 ac_cs_silent=: ;;
6265 # This is an error.
6266 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6267 Try \`$0 --help' for more information." >&5
6268 echo "$as_me: error: unrecognized option: $1
6269 Try \`$0 --help' for more information." >&2;}
6270 { (exit 1); exit 1; }; } ;;
6272 *) ac_config_targets="$ac_config_targets $1" ;;
6274 esac
6275 shift
6276 done
6278 ac_configure_extra_args=
6280 if $ac_cs_silent; then
6281 exec 6>/dev/null
6282 ac_configure_extra_args="$ac_configure_extra_args --silent"
6285 _ACEOF
6286 cat >>$CONFIG_STATUS <<_ACEOF
6287 if \$ac_cs_recheck; then
6288 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6289 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6292 _ACEOF
6294 cat >>$CONFIG_STATUS <<_ACEOF
6296 # INIT-COMMANDS section.
6299 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6301 _ACEOF
6305 cat >>$CONFIG_STATUS <<\_ACEOF
6306 for ac_config_target in $ac_config_targets
6308 case "$ac_config_target" in
6309 # Handling of arguments.
6310 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6311 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
6312 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6313 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6314 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6315 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6316 { (exit 1); exit 1; }; };;
6317 esac
6318 done
6320 # If the user did not use the arguments to specify the items to instantiate,
6321 # then the envvar interface is used. Set only those that are not.
6322 # We use the long form for the default assignment because of an extremely
6323 # bizarre bug on SunOS 4.1.3.
6324 if $ac_need_defaults; then
6325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6330 # Have a temporary directory for convenience. Make it in the build tree
6331 # simply because there is no reason to put it here, and in addition,
6332 # creating and moving files from /tmp can sometimes cause problems.
6333 # Create a temporary directory, and hook for its removal unless debugging.
6334 $debug ||
6336 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6337 trap '{ (exit 1); exit 1; }' 1 2 13 15
6340 # Create a (secure) tmp directory for tmp files.
6343 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6344 test -n "$tmp" && test -d "$tmp"
6345 } ||
6347 tmp=./confstat$$-$RANDOM
6348 (umask 077 && mkdir $tmp)
6349 } ||
6351 echo "$me: cannot create a temporary directory in ." >&2
6352 { (exit 1); exit 1; }
6355 _ACEOF
6357 cat >>$CONFIG_STATUS <<_ACEOF
6360 # CONFIG_FILES section.
6363 # No need to generate the scripts if there are no CONFIG_FILES.
6364 # This happens for instance when ./config.status config.h
6365 if test -n "\$CONFIG_FILES"; then
6366 # Protect against being on the right side of a sed subst in config.status.
6367 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6368 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6369 s,@SHELL@,$SHELL,;t t
6370 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6371 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6372 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6373 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6374 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6375 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6376 s,@exec_prefix@,$exec_prefix,;t t
6377 s,@prefix@,$prefix,;t t
6378 s,@program_transform_name@,$program_transform_name,;t t
6379 s,@bindir@,$bindir,;t t
6380 s,@sbindir@,$sbindir,;t t
6381 s,@libexecdir@,$libexecdir,;t t
6382 s,@datadir@,$datadir,;t t
6383 s,@sysconfdir@,$sysconfdir,;t t
6384 s,@sharedstatedir@,$sharedstatedir,;t t
6385 s,@localstatedir@,$localstatedir,;t t
6386 s,@libdir@,$libdir,;t t
6387 s,@includedir@,$includedir,;t t
6388 s,@oldincludedir@,$oldincludedir,;t t
6389 s,@infodir@,$infodir,;t t
6390 s,@mandir@,$mandir,;t t
6391 s,@build_alias@,$build_alias,;t t
6392 s,@host_alias@,$host_alias,;t t
6393 s,@target_alias@,$target_alias,;t t
6394 s,@DEFS@,$DEFS,;t t
6395 s,@ECHO_C@,$ECHO_C,;t t
6396 s,@ECHO_N@,$ECHO_N,;t t
6397 s,@ECHO_T@,$ECHO_T,;t t
6398 s,@LIBS@,$LIBS,;t t
6399 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6400 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6401 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6402 s,@CYGPATH_W@,$CYGPATH_W,;t t
6403 s,@PACKAGE@,$PACKAGE,;t t
6404 s,@VERSION@,$VERSION,;t t
6405 s,@ACLOCAL@,$ACLOCAL,;t t
6406 s,@AUTOCONF@,$AUTOCONF,;t t
6407 s,@AUTOMAKE@,$AUTOMAKE,;t t
6408 s,@AUTOHEADER@,$AUTOHEADER,;t t
6409 s,@MAKEINFO@,$MAKEINFO,;t t
6410 s,@AMTAR@,$AMTAR,;t t
6411 s,@install_sh@,$install_sh,;t t
6412 s,@STRIP@,$STRIP,;t t
6413 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6414 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6415 s,@AWK@,$AWK,;t t
6416 s,@SET_MAKE@,$SET_MAKE,;t t
6417 s,@am__leading_dot@,$am__leading_dot,;t t
6418 s,@CXX@,$CXX,;t t
6419 s,@CXXFLAGS@,$CXXFLAGS,;t t
6420 s,@LDFLAGS@,$LDFLAGS,;t t
6421 s,@CPPFLAGS@,$CPPFLAGS,;t t
6422 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6423 s,@EXEEXT@,$EXEEXT,;t t
6424 s,@OBJEXT@,$OBJEXT,;t t
6425 s,@DEPDIR@,$DEPDIR,;t t
6426 s,@am__include@,$am__include,;t t
6427 s,@am__quote@,$am__quote,;t t
6428 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6429 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6430 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6431 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6432 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6433 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6434 s,@RANLIB@,$RANLIB,;t t
6435 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6436 s,@CC@,$CC,;t t
6437 s,@CFLAGS@,$CFLAGS,;t t
6438 s,@ac_ct_CC@,$ac_ct_CC,;t t
6439 s,@CCDEPMODE@,$CCDEPMODE,;t t
6440 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6441 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6442 s,@CPP@,$CPP,;t t
6443 s,@X_CFLAGS@,$X_CFLAGS,;t t
6444 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6445 s,@X_LIBS@,$X_LIBS,;t t
6446 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6447 s,@CXXCPP@,$CXXCPP,;t t
6448 s,@EGREP@,$EGREP,;t t
6449 s,@x11_LIBS@,$x11_LIBS,;t t
6450 s,@x11_CXXFLAGS@,$x11_CXXFLAGS,;t t
6451 s,@glut_LIBS@,$glut_LIBS,;t t
6452 s,@freeglut_LIBS@,$freeglut_LIBS,;t t
6453 s,@ConstruoTargets@,$ConstruoTargets,;t t
6454 s,@LIBOBJS@,$LIBOBJS,;t t
6455 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6456 CEOF
6458 _ACEOF
6460 cat >>$CONFIG_STATUS <<\_ACEOF
6461 # Split the substitutions into bite-sized pieces for seds with
6462 # small command number limits, like on Digital OSF/1 and HP-UX.
6463 ac_max_sed_lines=48
6464 ac_sed_frag=1 # Number of current file.
6465 ac_beg=1 # First line for current file.
6466 ac_end=$ac_max_sed_lines # Line after last line for current file.
6467 ac_more_lines=:
6468 ac_sed_cmds=
6469 while $ac_more_lines; do
6470 if test $ac_beg -gt 1; then
6471 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6472 else
6473 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6475 if test ! -s $tmp/subs.frag; then
6476 ac_more_lines=false
6477 else
6478 # The purpose of the label and of the branching condition is to
6479 # speed up the sed processing (if there are no `@' at all, there
6480 # is no need to browse any of the substitutions).
6481 # These are the two extra sed commands mentioned above.
6482 (echo ':t
6483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6484 if test -z "$ac_sed_cmds"; then
6485 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6486 else
6487 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6489 ac_sed_frag=`expr $ac_sed_frag + 1`
6490 ac_beg=$ac_end
6491 ac_end=`expr $ac_end + $ac_max_sed_lines`
6493 done
6494 if test -z "$ac_sed_cmds"; then
6495 ac_sed_cmds=cat
6497 fi # test -n "$CONFIG_FILES"
6499 _ACEOF
6500 cat >>$CONFIG_STATUS <<\_ACEOF
6501 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6503 case $ac_file in
6504 - | *:- | *:-:* ) # input from stdin
6505 cat >$tmp/stdin
6506 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6508 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6509 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6510 * ) ac_file_in=$ac_file.in ;;
6511 esac
6513 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6514 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6516 X"$ac_file" : 'X\(//\)[^/]' \| \
6517 X"$ac_file" : 'X\(//\)$' \| \
6518 X"$ac_file" : 'X\(/\)' \| \
6519 . : '\(.\)' 2>/dev/null ||
6520 echo X"$ac_file" |
6521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6523 /^X\(\/\/\)$/{ s//\1/; q; }
6524 /^X\(\/\).*/{ s//\1/; q; }
6525 s/.*/./; q'`
6526 { if $as_mkdir_p; then
6527 mkdir -p "$ac_dir"
6528 else
6529 as_dir="$ac_dir"
6530 as_dirs=
6531 while test ! -d "$as_dir"; do
6532 as_dirs="$as_dir $as_dirs"
6533 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6535 X"$as_dir" : 'X\(//\)[^/]' \| \
6536 X"$as_dir" : 'X\(//\)$' \| \
6537 X"$as_dir" : 'X\(/\)' \| \
6538 . : '\(.\)' 2>/dev/null ||
6539 echo X"$as_dir" |
6540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6542 /^X\(\/\/\)$/{ s//\1/; q; }
6543 /^X\(\/\).*/{ s//\1/; q; }
6544 s/.*/./; q'`
6545 done
6546 test ! -n "$as_dirs" || mkdir $as_dirs
6547 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6548 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6549 { (exit 1); exit 1; }; }; }
6551 ac_builddir=.
6553 if test "$ac_dir" != .; then
6554 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6555 # A "../" for each directory in $ac_dir_suffix.
6556 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6557 else
6558 ac_dir_suffix= ac_top_builddir=
6561 case $srcdir in
6562 .) # No --srcdir option. We are building in place.
6563 ac_srcdir=.
6564 if test -z "$ac_top_builddir"; then
6565 ac_top_srcdir=.
6566 else
6567 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6568 fi ;;
6569 [\\/]* | ?:[\\/]* ) # Absolute path.
6570 ac_srcdir=$srcdir$ac_dir_suffix;
6571 ac_top_srcdir=$srcdir ;;
6572 *) # Relative path.
6573 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6574 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6575 esac
6576 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6577 # absolute.
6578 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6579 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6580 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6581 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6584 case $INSTALL in
6585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6586 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6587 esac
6589 if test x"$ac_file" != x-; then
6590 { echo "$as_me:$LINENO: creating $ac_file" >&5
6591 echo "$as_me: creating $ac_file" >&6;}
6592 rm -f "$ac_file"
6594 # Let's still pretend it is `configure' which instantiates (i.e., don't
6595 # use $as_me), people would be surprised to read:
6596 # /* config.h. Generated by config.status. */
6597 if test x"$ac_file" = x-; then
6598 configure_input=
6599 else
6600 configure_input="$ac_file. "
6602 configure_input=$configure_input"Generated from `echo $ac_file_in |
6603 sed 's,.*/,,'` by configure."
6605 # First look for the input files in the build tree, otherwise in the
6606 # src tree.
6607 ac_file_inputs=`IFS=:
6608 for f in $ac_file_in; do
6609 case $f in
6610 -) echo $tmp/stdin ;;
6611 [\\/$]*)
6612 # Absolute (can't be DOS-style, as IFS=:)
6613 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6614 echo "$as_me: error: cannot find input file: $f" >&2;}
6615 { (exit 1); exit 1; }; }
6616 echo $f;;
6617 *) # Relative
6618 if test -f "$f"; then
6619 # Build tree
6620 echo $f
6621 elif test -f "$srcdir/$f"; then
6622 # Source tree
6623 echo $srcdir/$f
6624 else
6625 # /dev/null tree
6626 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6627 echo "$as_me: error: cannot find input file: $f" >&2;}
6628 { (exit 1); exit 1; }; }
6629 fi;;
6630 esac
6631 done` || { (exit 1); exit 1; }
6632 _ACEOF
6633 cat >>$CONFIG_STATUS <<_ACEOF
6634 sed "$ac_vpsub
6635 $extrasub
6636 _ACEOF
6637 cat >>$CONFIG_STATUS <<\_ACEOF
6639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6640 s,@configure_input@,$configure_input,;t t
6641 s,@srcdir@,$ac_srcdir,;t t
6642 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6643 s,@top_srcdir@,$ac_top_srcdir,;t t
6644 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6645 s,@builddir@,$ac_builddir,;t t
6646 s,@abs_builddir@,$ac_abs_builddir,;t t
6647 s,@top_builddir@,$ac_top_builddir,;t t
6648 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6649 s,@INSTALL@,$ac_INSTALL,;t t
6650 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6651 rm -f $tmp/stdin
6652 if test x"$ac_file" != x-; then
6653 mv $tmp/out $ac_file
6654 else
6655 cat $tmp/out
6656 rm -f $tmp/out
6659 done
6660 _ACEOF
6661 cat >>$CONFIG_STATUS <<\_ACEOF
6664 # CONFIG_HEADER section.
6667 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6668 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6670 # ac_d sets the value in "#define NAME VALUE" lines.
6671 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6672 ac_dB='[ ].*$,\1#\2'
6673 ac_dC=' '
6674 ac_dD=',;t'
6675 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6676 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6677 ac_uB='$,\1#\2define\3'
6678 ac_uC=' '
6679 ac_uD=',;t'
6681 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6683 case $ac_file in
6684 - | *:- | *:-:* ) # input from stdin
6685 cat >$tmp/stdin
6686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6690 * ) ac_file_in=$ac_file.in ;;
6691 esac
6693 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6694 echo "$as_me: creating $ac_file" >&6;}
6696 # First look for the input files in the build tree, otherwise in the
6697 # src tree.
6698 ac_file_inputs=`IFS=:
6699 for f in $ac_file_in; do
6700 case $f in
6701 -) echo $tmp/stdin ;;
6702 [\\/$]*)
6703 # Absolute (can't be DOS-style, as IFS=:)
6704 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6705 echo "$as_me: error: cannot find input file: $f" >&2;}
6706 { (exit 1); exit 1; }; }
6707 echo $f;;
6708 *) # Relative
6709 if test -f "$f"; then
6710 # Build tree
6711 echo $f
6712 elif test -f "$srcdir/$f"; then
6713 # Source tree
6714 echo $srcdir/$f
6715 else
6716 # /dev/null tree
6717 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6718 echo "$as_me: error: cannot find input file: $f" >&2;}
6719 { (exit 1); exit 1; }; }
6720 fi;;
6721 esac
6722 done` || { (exit 1); exit 1; }
6723 # Remove the trailing spaces.
6724 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6726 _ACEOF
6728 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6729 # `conftest.undefs', that substitutes the proper values into
6730 # config.h.in to produce config.h. The first handles `#define'
6731 # templates, and the second `#undef' templates.
6732 # And first: Protect against being on the right side of a sed subst in
6733 # config.status. Protect against being in an unquoted here document
6734 # in config.status.
6735 rm -f conftest.defines conftest.undefs
6736 # Using a here document instead of a string reduces the quoting nightmare.
6737 # Putting comments in sed scripts is not portable.
6739 # `end' is used to avoid that the second main sed command (meant for
6740 # 0-ary CPP macros) applies to n-ary macro definitions.
6741 # See the Autoconf documentation for `clear'.
6742 cat >confdef2sed.sed <<\_ACEOF
6743 s/[\\&,]/\\&/g
6744 s,[\\$`],\\&,g
6745 t clear
6746 : clear
6747 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6748 t end
6749 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6750 : end
6751 _ACEOF
6752 # If some macros were called several times there might be several times
6753 # the same #defines, which is useless. Nevertheless, we may not want to
6754 # sort them, since we want the *last* AC-DEFINE to be honored.
6755 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6756 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6757 rm -f confdef2sed.sed
6759 # This sed command replaces #undef with comments. This is necessary, for
6760 # example, in the case of _POSIX_SOURCE, which is predefined and required
6761 # on some systems where configure will not decide to define it.
6762 cat >>conftest.undefs <<\_ACEOF
6763 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6764 _ACEOF
6766 # Break up conftest.defines because some shells have a limit on the size
6767 # of here documents, and old seds have small limits too (100 cmds).
6768 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6769 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6770 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6771 echo ' :' >>$CONFIG_STATUS
6772 rm -f conftest.tail
6773 while grep . conftest.defines >/dev/null
6775 # Write a limited-size here document to $tmp/defines.sed.
6776 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6777 # Speed up: don't consider the non `#define' lines.
6778 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6779 # Work around the forget-to-reset-the-flag bug.
6780 echo 't clr' >>$CONFIG_STATUS
6781 echo ': clr' >>$CONFIG_STATUS
6782 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6783 echo 'CEOF
6784 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6785 rm -f $tmp/in
6786 mv $tmp/out $tmp/in
6787 ' >>$CONFIG_STATUS
6788 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6789 rm -f conftest.defines
6790 mv conftest.tail conftest.defines
6791 done
6792 rm -f conftest.defines
6793 echo ' fi # grep' >>$CONFIG_STATUS
6794 echo >>$CONFIG_STATUS
6796 # Break up conftest.undefs because some shells have a limit on the size
6797 # of here documents, and old seds have small limits too (100 cmds).
6798 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6799 rm -f conftest.tail
6800 while grep . conftest.undefs >/dev/null
6802 # Write a limited-size here document to $tmp/undefs.sed.
6803 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6804 # Speed up: don't consider the non `#undef'
6805 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6806 # Work around the forget-to-reset-the-flag bug.
6807 echo 't clr' >>$CONFIG_STATUS
6808 echo ': clr' >>$CONFIG_STATUS
6809 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6810 echo 'CEOF
6811 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6812 rm -f $tmp/in
6813 mv $tmp/out $tmp/in
6814 ' >>$CONFIG_STATUS
6815 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6816 rm -f conftest.undefs
6817 mv conftest.tail conftest.undefs
6818 done
6819 rm -f conftest.undefs
6821 cat >>$CONFIG_STATUS <<\_ACEOF
6822 # Let's still pretend it is `configure' which instantiates (i.e., don't
6823 # use $as_me), people would be surprised to read:
6824 # /* config.h. Generated by config.status. */
6825 if test x"$ac_file" = x-; then
6826 echo "/* Generated by configure. */" >$tmp/config.h
6827 else
6828 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6830 cat $tmp/in >>$tmp/config.h
6831 rm -f $tmp/in
6832 if test x"$ac_file" != x-; then
6833 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6834 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6835 echo "$as_me: $ac_file is unchanged" >&6;}
6836 else
6837 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6839 X"$ac_file" : 'X\(//\)[^/]' \| \
6840 X"$ac_file" : 'X\(//\)$' \| \
6841 X"$ac_file" : 'X\(/\)' \| \
6842 . : '\(.\)' 2>/dev/null ||
6843 echo X"$ac_file" |
6844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6846 /^X\(\/\/\)$/{ s//\1/; q; }
6847 /^X\(\/\).*/{ s//\1/; q; }
6848 s/.*/./; q'`
6849 { if $as_mkdir_p; then
6850 mkdir -p "$ac_dir"
6851 else
6852 as_dir="$ac_dir"
6853 as_dirs=
6854 while test ! -d "$as_dir"; do
6855 as_dirs="$as_dir $as_dirs"
6856 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6858 X"$as_dir" : 'X\(//\)[^/]' \| \
6859 X"$as_dir" : 'X\(//\)$' \| \
6860 X"$as_dir" : 'X\(/\)' \| \
6861 . : '\(.\)' 2>/dev/null ||
6862 echo X"$as_dir" |
6863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6865 /^X\(\/\/\)$/{ s//\1/; q; }
6866 /^X\(\/\).*/{ s//\1/; q; }
6867 s/.*/./; q'`
6868 done
6869 test ! -n "$as_dirs" || mkdir $as_dirs
6870 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6872 { (exit 1); exit 1; }; }; }
6874 rm -f $ac_file
6875 mv $tmp/config.h $ac_file
6877 else
6878 cat $tmp/config.h
6879 rm -f $tmp/config.h
6881 # Compute $ac_file's index in $config_headers.
6882 _am_stamp_count=1
6883 for _am_header in $config_headers :; do
6884 case $_am_header in
6885 $ac_file | $ac_file:* )
6886 break ;;
6888 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6889 esac
6890 done
6891 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6892 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6893 X$ac_file : 'X\(//\)[^/]' \| \
6894 X$ac_file : 'X\(//\)$' \| \
6895 X$ac_file : 'X\(/\)' \| \
6896 . : '\(.\)' 2>/dev/null ||
6897 echo X$ac_file |
6898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6900 /^X\(\/\/\)$/{ s//\1/; q; }
6901 /^X\(\/\).*/{ s//\1/; q; }
6902 s/.*/./; q'`/stamp-h$_am_stamp_count
6903 done
6904 _ACEOF
6905 cat >>$CONFIG_STATUS <<\_ACEOF
6908 # CONFIG_COMMANDS section.
6910 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6911 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6912 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6913 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6914 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6915 X"$ac_dest" : 'X\(//\)[^/]' \| \
6916 X"$ac_dest" : 'X\(//\)$' \| \
6917 X"$ac_dest" : 'X\(/\)' \| \
6918 . : '\(.\)' 2>/dev/null ||
6919 echo X"$ac_dest" |
6920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6922 /^X\(\/\/\)$/{ s//\1/; q; }
6923 /^X\(\/\).*/{ s//\1/; q; }
6924 s/.*/./; q'`
6925 ac_builddir=.
6927 if test "$ac_dir" != .; then
6928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6929 # A "../" for each directory in $ac_dir_suffix.
6930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6931 else
6932 ac_dir_suffix= ac_top_builddir=
6935 case $srcdir in
6936 .) # No --srcdir option. We are building in place.
6937 ac_srcdir=.
6938 if test -z "$ac_top_builddir"; then
6939 ac_top_srcdir=.
6940 else
6941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6942 fi ;;
6943 [\\/]* | ?:[\\/]* ) # Absolute path.
6944 ac_srcdir=$srcdir$ac_dir_suffix;
6945 ac_top_srcdir=$srcdir ;;
6946 *) # Relative path.
6947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6949 esac
6950 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6951 # absolute.
6952 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6953 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6954 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6955 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6958 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6959 echo "$as_me: executing $ac_dest commands" >&6;}
6960 case $ac_dest in
6961 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6962 # Strip MF so we end up with the name of the file.
6963 mf=`echo "$mf" | sed -e 's/:.*$//'`
6964 # Check whether this is an Automake generated Makefile or not.
6965 # We used to match only the files named `Makefile.in', but
6966 # some people rename them; so instead we look at the file content.
6967 # Grep'ing the first line is not enough: some people post-process
6968 # each Makefile.in and add a new line on top of each file to say so.
6969 # So let's grep whole file.
6970 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6971 dirpart=`(dirname "$mf") 2>/dev/null ||
6972 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6973 X"$mf" : 'X\(//\)[^/]' \| \
6974 X"$mf" : 'X\(//\)$' \| \
6975 X"$mf" : 'X\(/\)' \| \
6976 . : '\(.\)' 2>/dev/null ||
6977 echo X"$mf" |
6978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6980 /^X\(\/\/\)$/{ s//\1/; q; }
6981 /^X\(\/\).*/{ s//\1/; q; }
6982 s/.*/./; q'`
6983 else
6984 continue
6986 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6987 # Extract the definition of DEP_FILES from the Makefile without
6988 # running `make'.
6989 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6990 test -z "$DEPDIR" && continue
6991 # When using ansi2knr, U may be empty or an underscore; expand it
6992 U=`sed -n -e '/^U = / s///p' < "$mf"`
6993 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6994 # We invoke sed twice because it is the simplest approach to
6995 # changing $(DEPDIR) to its actual value in the expansion.
6996 for file in `sed -n -e '
6997 /^DEP_FILES = .*\\\\$/ {
6998 s/^DEP_FILES = //
6999 :loop
7000 s/\\\\$//
7003 /\\\\$/ b loop
7006 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7007 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7008 # Make sure the directory exists.
7009 test -f "$dirpart/$file" && continue
7010 fdir=`(dirname "$file") 2>/dev/null ||
7011 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7012 X"$file" : 'X\(//\)[^/]' \| \
7013 X"$file" : 'X\(//\)$' \| \
7014 X"$file" : 'X\(/\)' \| \
7015 . : '\(.\)' 2>/dev/null ||
7016 echo X"$file" |
7017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7019 /^X\(\/\/\)$/{ s//\1/; q; }
7020 /^X\(\/\).*/{ s//\1/; q; }
7021 s/.*/./; q'`
7022 { if $as_mkdir_p; then
7023 mkdir -p $dirpart/$fdir
7024 else
7025 as_dir=$dirpart/$fdir
7026 as_dirs=
7027 while test ! -d "$as_dir"; do
7028 as_dirs="$as_dir $as_dirs"
7029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7031 X"$as_dir" : 'X\(//\)[^/]' \| \
7032 X"$as_dir" : 'X\(//\)$' \| \
7033 X"$as_dir" : 'X\(/\)' \| \
7034 . : '\(.\)' 2>/dev/null ||
7035 echo X"$as_dir" |
7036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7038 /^X\(\/\/\)$/{ s//\1/; q; }
7039 /^X\(\/\).*/{ s//\1/; q; }
7040 s/.*/./; q'`
7041 done
7042 test ! -n "$as_dirs" || mkdir $as_dirs
7043 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7044 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7045 { (exit 1); exit 1; }; }; }
7047 # echo "creating $dirpart/$file"
7048 echo '# dummy' > "$dirpart/$file"
7049 done
7050 done
7052 esac
7053 done
7054 _ACEOF
7056 cat >>$CONFIG_STATUS <<\_ACEOF
7058 { (exit 0); exit 0; }
7059 _ACEOF
7060 chmod +x $CONFIG_STATUS
7061 ac_clean_files=$ac_clean_files_save
7064 # configure is writing to config.log, and then calls config.status.
7065 # config.status does its own redirection, appending to config.log.
7066 # Unfortunately, on DOS this fails, as config.log is still kept open
7067 # by configure, so config.status won't be able to write to it; its
7068 # output is simply discarded. So we exec the FD to /dev/null,
7069 # effectively closing config.log, so it can be properly (re)opened and
7070 # appended to by config.status. When coming back to configure, we
7071 # need to make the FD available again.
7072 if test "$no_create" != yes; then
7073 ac_cs_success=:
7074 ac_config_status_args=
7075 test "$silent" = yes &&
7076 ac_config_status_args="$ac_config_status_args --quiet"
7077 exec 5>/dev/null
7078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7079 exec 5>>config.log
7080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7081 # would make configure fail if this is the last instruction.
7082 $ac_cs_success || { (exit 1); exit 1; }
7086 echo ""
7087 echo " CXXFLAGS = $CXXFLAGS"
7088 echo " LIBS = $LIBS"
7089 echo " Debugging = $enable_debug"
7090 echo " GProf = $enable_gprof"
7091 echo " FunctionCheck = $enable_fcheck"
7092 echo " Targets =$ConstruoTargets"
7093 echo ""
7094 echo "Now type 'make' and everything should work, if not, write a bug reports to:"
7095 echo ""
7096 echo " Ingo Ruhnke <grumbel@gmx.de>"
7097 echo ""
7099 # EOF #