Correctly install gliv.desktop, even through a RPM.
[gliv.git] / configure
blobe0d0877a84b4d4fd2435b1ecbfed595804db049e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for gliv 1.8.1.
5 # Report bugs to <guichaz@yahoo.fr>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='gliv'
271 PACKAGE_TARNAME='gliv'
272 PACKAGE_VERSION='1.8.1'
273 PACKAGE_STRING='gliv 1.8.1'
274 PACKAGE_BUGREPORT='guichaz@yahoo.fr'
276 ac_unique_file="src/main.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB GETDELIM_TRUE GETDELIM_FALSE GETOPT_LONG_TRUE GETOPT_LONG_FALSE NEED_REPLACEMENTS_TRUE NEED_REPLACEMENTS_FALSE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG GTK_CFLAGS GTK_LIBS GTKGLEXT_CFLAGS GTKGLEXT_LIBS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures gliv 1.8.1 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 X features:
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
845 System types:
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of gliv 1.8.1:";;
854 esac
855 cat <<\_ACEOF
857 Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --disable-largefile omit support for large files
863 --disable-gtktest do not try to compile and run a test GTK+ program
864 --disable-nls do not use Native Language Support
865 --disable-rpath do not hardcode runtime library paths
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-x use the X Window System
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
873 --without-libiconv-prefix don't search for libiconv in includedir and libdir
874 --with-included-gettext use the GNU gettext library included here
875 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
876 --without-libintl-prefix don't search for libintl in includedir and libdir
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <guichaz@yahoo.fr>.
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
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 cd $ac_popdir
980 done
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
986 gliv configure 1.8.1
987 generated by GNU Autoconf 2.59
989 Copyright (C) 2003 Free Software Foundation, Inc.
990 This configure script is free software; the Free Software Foundation
991 gives unlimited permission to copy, distribute and modify it.
992 _ACEOF
993 exit 0
995 exec 5>config.log
996 cat >&5 <<_ACEOF
997 This file contains any messages produced by compilers while
998 running configure, to aid debugging if configure makes a mistake.
1000 It was created by gliv $as_me 1.8.1, which was
1001 generated by GNU Autoconf 2.59. Invocation command line was
1003 $ $0 $@
1005 _ACEOF
1007 cat <<_ASUNAME
1008 ## --------- ##
1009 ## Platform. ##
1010 ## --------- ##
1012 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1013 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1014 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1015 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1016 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1019 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1022 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1023 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1024 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1025 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1026 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1027 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029 _ASUNAME
1031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1032 for as_dir in $PATH
1034 IFS=$as_save_IFS
1035 test -z "$as_dir" && as_dir=.
1036 echo "PATH: $as_dir"
1037 done
1039 } >&5
1041 cat >&5 <<_ACEOF
1044 ## ----------- ##
1045 ## Core tests. ##
1046 ## ----------- ##
1048 _ACEOF
1051 # Keep a trace of the command line.
1052 # Strip out --no-create and --no-recursion so they do not pile up.
1053 # Strip out --silent because we don't want to record it for future runs.
1054 # Also quote any args containing shell meta-characters.
1055 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_configure_args=
1057 ac_configure_args0=
1058 ac_configure_args1=
1059 ac_sep=
1060 ac_must_keep_next=false
1061 for ac_pass in 1 2
1063 for ac_arg
1065 case $ac_arg in
1066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 continue ;;
1070 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1071 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1072 esac
1073 case $ac_pass in
1074 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1077 if test $ac_must_keep_next = true; then
1078 ac_must_keep_next=false # Got value, back to normal.
1079 else
1080 case $ac_arg in
1081 *=* | --config-cache | -C | -disable-* | --disable-* \
1082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1084 | -with-* | --with-* | -without-* | --without-* | --x)
1085 case "$ac_configure_args0 " in
1086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1087 esac
1089 -* ) ac_must_keep_next=true ;;
1090 esac
1092 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1093 # Get rid of the leading space.
1094 ac_sep=" "
1096 esac
1097 done
1098 done
1099 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1100 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102 # When interrupted or exit'd, cleanup temporary files, and complete
1103 # config.log. We remove comments because anyway the quotes in there
1104 # would cause problems or look ugly.
1105 # WARNING: Be sure not to use single quotes in there, as some shells,
1106 # such as our DU 5.0 friend, will then `close' the trap.
1107 trap 'exit_status=$?
1108 # Save into config.log some information that might help in debugging.
1110 echo
1112 cat <<\_ASBOX
1113 ## ---------------- ##
1114 ## Cache variables. ##
1115 ## ---------------- ##
1116 _ASBOX
1117 echo
1118 # The following way of writing the cache mishandles newlines in values,
1120 (set) 2>&1 |
1121 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1122 *ac_space=\ *)
1123 sed -n \
1124 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 sed -n \
1129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 esac;
1133 echo
1135 cat <<\_ASBOX
1136 ## ----------------- ##
1137 ## Output variables. ##
1138 ## ----------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_vars
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1148 if test -n "$ac_subst_files"; then
1149 cat <<\_ASBOX
1150 ## ------------- ##
1151 ## Output files. ##
1152 ## ------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_files
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1163 if test -s confdefs.h; then
1164 cat <<\_ASBOX
1165 ## ----------- ##
1166 ## confdefs.h. ##
1167 ## ----------- ##
1168 _ASBOX
1169 echo
1170 sed "/^$/d" confdefs.h | sort
1171 echo
1173 test "$ac_signal" != 0 &&
1174 echo "$as_me: caught signal $ac_signal"
1175 echo "$as_me: exit $exit_status"
1176 } >&5
1177 rm -f core *.core &&
1178 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1179 exit $exit_status
1181 for ac_signal in 1 2 13 15; do
1182 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1183 done
1184 ac_signal=0
1186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1187 rm -rf conftest* confdefs.h
1188 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1189 echo >confdefs.h
1191 # Predefined preprocessor variables.
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_NAME "$PACKAGE_NAME"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_STRING "$PACKAGE_STRING"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1215 _ACEOF
1218 # Let the site file select an alternate cache file if it wants to.
1219 # Prefer explicitly selected file to automatically selected ones.
1220 if test -z "$CONFIG_SITE"; then
1221 if test "x$prefix" != xNONE; then
1222 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1223 else
1224 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 for ac_site_file in $CONFIG_SITE; do
1228 if test -r "$ac_site_file"; then
1229 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1230 echo "$as_me: loading site script $ac_site_file" >&6;}
1231 sed 's/^/| /' "$ac_site_file" >&5
1232 . "$ac_site_file"
1234 done
1236 if test -r "$cache_file"; then
1237 # Some versions of bash will fail to source /dev/null (special
1238 # files actually), so we avoid doing that.
1239 if test -f "$cache_file"; then
1240 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1241 echo "$as_me: loading cache $cache_file" >&6;}
1242 case $cache_file in
1243 [\\/]* | ?:[\\/]* ) . $cache_file;;
1244 *) . ./$cache_file;;
1245 esac
1247 else
1248 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1249 echo "$as_me: creating cache $cache_file" >&6;}
1250 >$cache_file
1253 # Check that the precious variables saved in the cache have kept the same
1254 # value.
1255 ac_cache_corrupted=false
1256 for ac_var in `(set) 2>&1 |
1257 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1259 eval ac_new_set=\$ac_env_${ac_var}_set
1260 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1261 eval ac_new_val="\$ac_env_${ac_var}_value"
1262 case $ac_old_set,$ac_new_set in
1263 set,)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,set)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,);;
1273 if test "x$ac_old_val" != "x$ac_new_val"; then
1274 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1276 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1277 echo "$as_me: former value: $ac_old_val" >&2;}
1278 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1279 echo "$as_me: current value: $ac_new_val" >&2;}
1280 ac_cache_corrupted=:
1281 fi;;
1282 esac
1283 # Pass precious variables to config.status.
1284 if test "$ac_new_set" = set; then
1285 case $ac_new_val in
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 *) ac_arg=$ac_var=$ac_new_val ;;
1289 esac
1290 case " $ac_configure_args " in
1291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1292 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1293 esac
1295 done
1296 if $ac_cache_corrupted; then
1297 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1298 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1299 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1300 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1301 { (exit 1); exit 1; }; }
1304 ac_ext=c
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 am__api_version="1.8"
1338 ac_aux_dir=
1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1363 # Find a good install program. We prefer a C program (faster),
1364 # so one script is as good as another. But avoid the broken or
1365 # incompatible versions:
1366 # SysV /etc/install, /usr/sbin/install
1367 # SunOS /usr/etc/install
1368 # IRIX /sbin/install
1369 # AIX /bin/install
1370 # AmigaOS /C/install, which installs bootblocks on floppy discs
1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1374 # OS/2's system install, which has a completely different semantic
1375 # ./install, which can be erroneously created by make from ./install.sh.
1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378 if test -z "$INSTALL"; then
1379 if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388 case $as_dir/ in
1389 ./ | .// | /cC/* | \
1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1392 /usr/ucb/* ) ;;
1394 # OSF1 and SCO ODT 3.0 have their own names for install.
1395 # Don't use installbsd from OSF since it installs stuff as root
1396 # by default.
1397 for ac_prog in ginstall scoinst install; do
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1400 if test $ac_prog = install &&
1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1402 # AIX install. It has an incompatible calling convention.
1404 elif test $ac_prog = install &&
1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1406 # program-specific install script used by HP pwplus--don't use.
1408 else
1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1410 break 3
1413 done
1414 done
1416 esac
1417 done
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL=$ac_cv_path_install
1423 else
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL=$ac_install_sh
1431 echo "$as_me:$LINENO: result: $INSTALL" >&5
1432 echo "${ECHO_T}$INSTALL" >&6
1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1435 # It thinks the first close brace ends the variable substitution.
1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444 # Just in case
1445 sleep 1
1446 echo timestamp > conftest.file
1447 # Do `set' in a subshell so we don't clobber the current shell's
1448 # arguments. Must try -L first in case configure is actually a
1449 # symlink; some systems play weird games with the mod time of symlinks
1450 # (eg FreeBSD returns the mod time of the symlink's containing
1451 # directory).
1452 if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$*" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1458 rm -f conftest.file
1459 if test "$*" != "X $srcdir/configure conftest.file" \
1460 && test "$*" != "X conftest.file $srcdir/configure"; then
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1467 alias in your environment" >&5
1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469 alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1473 test "$2" = conftest.file
1475 then
1476 # Ok.
1478 else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480 Check your system clock" >&5
1481 echo "$as_me: error: newly created file is older than distributed files!
1482 Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1485 echo "$as_me:$LINENO: result: yes" >&5
1486 echo "${ECHO_T}yes" >&6
1487 test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489 # Use a double $ so make ignores it.
1490 test "$program_suffix" != NONE &&
1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1492 # Double any \ or $. echo might interpret backslashes.
1493 # By default was `s,x,x', remove it if useless.
1494 cat <<\_ACEOF >conftest.sed
1495 s/[\\$]/&&/g;s/;s,x,x,$//
1496 _ACEOF
1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498 rm conftest.sed
1500 # expand $ac_aux_dir to an absolute path
1501 am_aux_dir=`cd $ac_aux_dir && pwd`
1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504 # Use eval to expand $SHELL
1505 if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507 else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1513 if mkdir -p -- . 2>/dev/null; then
1514 # Keeping the `.' argument allows $(mkdir_p) to be used without
1515 # argument. Indeed, we sometimes output rules like
1516 # $(mkdir_p) $(somedir)
1517 # where $(somedir) is conditionally defined.
1518 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1519 # expensive solution, as it forces Make to start a sub-shell.)
1520 mkdir_p='mkdir -p -- .'
1521 else
1522 # On NextStep and OpenStep, the `mkdir' command does not
1523 # recognize any option. It will interpret all options as
1524 # directories to create, and then abort because `.' already
1525 # exists.
1526 for d in ./-p ./--;
1528 test -d $d && rmdir $d
1529 done
1530 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1531 if test -f "$ac_aux_dir/mkinstalldirs"; then
1532 mkdir_p='$(mkinstalldirs)'
1533 else
1534 mkdir_p='$(install_sh) -d'
1538 for ac_prog in gawk mawk nawk awk
1540 # Extract the first word of "$ac_prog", so it can be a program name with args.
1541 set dummy $ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_AWK+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$AWK"; then
1548 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_AWK="$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1561 done
1562 done
1566 AWK=$ac_cv_prog_AWK
1567 if test -n "$AWK"; then
1568 echo "$as_me:$LINENO: result: $AWK" >&5
1569 echo "${ECHO_T}$AWK" >&6
1570 else
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1575 test -n "$AWK" && break
1576 done
1578 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1579 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1580 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1581 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 cat >conftest.make <<\_ACEOF
1585 all:
1586 @echo 'ac_maketemp="$(MAKE)"'
1587 _ACEOF
1588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1589 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1590 if test -n "$ac_maketemp"; then
1591 eval ac_cv_prog_make_${ac_make}_set=yes
1592 else
1593 eval ac_cv_prog_make_${ac_make}_set=no
1595 rm -f conftest.make
1597 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1598 echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1600 SET_MAKE=
1601 else
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1604 SET_MAKE="MAKE=${MAKE-make}"
1607 rm -rf .tst 2>/dev/null
1608 mkdir .tst 2>/dev/null
1609 if test -d .tst; then
1610 am__leading_dot=.
1611 else
1612 am__leading_dot=_
1614 rmdir .tst 2>/dev/null
1616 # test to see if srcdir already configured
1617 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1618 test -f $srcdir/config.status; then
1619 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1620 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1621 { (exit 1); exit 1; }; }
1624 # test whether we have cygpath
1625 if test -z "$CYGPATH_W"; then
1626 if (cygpath --version) >/dev/null 2>/dev/null; then
1627 CYGPATH_W='cygpath -w'
1628 else
1629 CYGPATH_W=echo
1634 # Define the identity of the package.
1635 PACKAGE='gliv'
1636 VERSION='1.8.1'
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE "$PACKAGE"
1641 _ACEOF
1644 cat >>confdefs.h <<_ACEOF
1645 #define VERSION "$VERSION"
1646 _ACEOF
1648 # Some tools Automake needs.
1650 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1653 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1656 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1659 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1662 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1665 AMTAR=${AMTAR-"${am_missing_run}tar"}
1667 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1669 # Installed binaries are usually stripped using `strip' when the user
1670 # run `make install-strip'. However `strip' might not be the right
1671 # tool to use in cross-compilation environments, therefore Automake
1672 # will honor the `STRIP' environment variable to overrule this program.
1673 if test "$cross_compiling" != no; then
1674 if test -n "$ac_tool_prefix"; then
1675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1676 set dummy ${ac_tool_prefix}strip; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_STRIP+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 if test -n "$STRIP"; then
1683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 break 2
1696 done
1697 done
1701 STRIP=$ac_cv_prog_STRIP
1702 if test -n "$STRIP"; then
1703 echo "$as_me:$LINENO: result: $STRIP" >&5
1704 echo "${ECHO_T}$STRIP" >&6
1705 else
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1711 if test -z "$ac_cv_prog_STRIP"; then
1712 ac_ct_STRIP=$STRIP
1713 # Extract the first word of "strip", so it can be a program name with args.
1714 set dummy strip; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$ac_ct_STRIP"; then
1721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_ac_ct_STRIP="strip"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1734 done
1735 done
1737 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1741 if test -n "$ac_ct_STRIP"; then
1742 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1743 echo "${ECHO_T}$ac_ct_STRIP" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 STRIP=$ac_ct_STRIP
1750 else
1751 STRIP="$ac_cv_prog_STRIP"
1755 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1757 # We need awk for the "check" target. The system "awk" is bad on
1758 # some platforms.
1762 ac_config_headers="$ac_config_headers config.h"
1764 ac_ext=c
1765 ac_cpp='$CPP $CPPFLAGS'
1766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772 # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2".
1773 if test "x$CFLAGS" = "x"; then
1774 DEFAULT_CFLAGS=yes
1775 else
1776 DEFAULT_CFLAGS=no
1779 # Checks for programs.
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 if test -n "$ac_tool_prefix"; then
1786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1787 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1807 done
1808 done
1812 CC=$ac_cv_prog_CC
1813 if test -n "$CC"; then
1814 echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1822 if test -z "$ac_cv_prog_CC"; then
1823 ac_ct_CC=$CC
1824 # Extract the first word of "gcc", so it can be a program name with args.
1825 set dummy gcc; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$ac_ct_CC"; then
1832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_ac_ct_CC="gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1845 done
1846 done
1850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1851 if test -n "$ac_ct_CC"; then
1852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1853 echo "${ECHO_T}$ac_ct_CC" >&6
1854 else
1855 echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1859 CC=$ac_ct_CC
1860 else
1861 CC="$ac_cv_prog_CC"
1864 if test -z "$CC"; then
1865 if test -n "$ac_tool_prefix"; then
1866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1867 set dummy ${ac_tool_prefix}cc; ac_word=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873 if test -n "$CC"; then
1874 ac_cv_prog_CC="$CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_CC="${ac_tool_prefix}cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1892 CC=$ac_cv_prog_CC
1893 if test -n "$CC"; then
1894 echo "$as_me:$LINENO: result: $CC" >&5
1895 echo "${ECHO_T}$CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1902 if test -z "$ac_cv_prog_CC"; then
1903 ac_ct_CC=$CC
1904 # Extract the first word of "cc", so it can be a program name with args.
1905 set dummy cc; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 if test -n "$ac_ct_CC"; then
1912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_ac_ct_CC="cc"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1925 done
1926 done
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1939 CC=$ac_ct_CC
1940 else
1941 CC="$ac_cv_prog_CC"
1945 if test -z "$CC"; then
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953 if test -n "$CC"; then
1954 ac_cv_prog_CC="$CC" # Let the user override the test.
1955 else
1956 ac_prog_rejected=no
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1965 ac_prog_rejected=yes
1966 continue
1968 ac_cv_prog_CC="cc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 break 2
1972 done
1973 done
1975 if test $ac_prog_rejected = yes; then
1976 # We found a bogon in the path, so make sure we never use it.
1977 set dummy $ac_cv_prog_CC
1978 shift
1979 if test $# != 0; then
1980 # We chose a different compiler from the bogus one.
1981 # However, it has the same basename, so the bogon will be chosen
1982 # first if we set CC to just the basename; use the full file name.
1983 shift
1984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1993 else
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$CC"; then
2000 if test -n "$ac_tool_prefix"; then
2001 for ac_prog in cl
2003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2024 done
2025 done
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2038 test -n "$CC" && break
2039 done
2041 if test -z "$CC"; then
2042 ac_ct_CC=$CC
2043 for ac_prog in cl
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_ac_ct_CC="$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2066 done
2067 done
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 echo "${ECHO_T}$ac_ct_CC" >&6
2075 else
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$ac_ct_CC" && break
2081 done
2083 CC=$ac_ct_CC
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO:" \
2097 "checking for C compiler version" >&5
2098 ac_compiler=`set X $ac_compile; echo $2`
2099 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2100 (eval $ac_compiler --version </dev/null >&5) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2105 (eval $ac_compiler -v </dev/null >&5) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2110 (eval $ac_compiler -V </dev/null >&5) 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2115 cat >conftest.$ac_ext <<_ACEOF
2116 /* confdefs.h. */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2123 main ()
2127 return 0;
2129 _ACEOF
2130 ac_clean_files_save=$ac_clean_files
2131 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2132 # Try to create an executable without -o first, disregard a.out.
2133 # It will help us diagnose broken compilers, and finding out an intuition
2134 # of exeext.
2135 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2136 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2137 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2138 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2139 (eval $ac_link_default) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 # Find the output, starting from the most likely. This scheme is
2144 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2145 # resort.
2147 # Be careful to initialize this variable, since it used to be cached.
2148 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2149 ac_cv_exeext=
2150 # b.out is created by i960 compilers.
2151 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2153 test -f "$ac_file" || continue
2154 case $ac_file in
2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2157 conftest.$ac_ext )
2158 # This is the source file.
2160 [ab].out )
2161 # We found the default executable, but exeext='' is most
2162 # certainly right.
2163 break;;
2164 *.* )
2165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2166 # FIXME: I believe we export ac_cv_exeext for Libtool,
2167 # but it would be cool to find out if it's true. Does anybody
2168 # maintain Libtool? --akim.
2169 export ac_cv_exeext
2170 break;;
2172 break;;
2173 esac
2174 done
2175 else
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: C compiler cannot create executables
2182 See \`config.log' for more details." >&2;}
2183 { (exit 77); exit 77; }; }
2186 ac_exeext=$ac_cv_exeext
2187 echo "$as_me:$LINENO: result: $ac_file" >&5
2188 echo "${ECHO_T}$ac_file" >&6
2190 # Check the compiler produces executables we can run. If not, either
2191 # the compiler is broken, or we cross compile.
2192 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2193 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2194 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2195 # If not cross compiling, check that we can run a simple program.
2196 if test "$cross_compiling" != yes; then
2197 if { ac_try='./$ac_file'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 cross_compiling=no
2204 else
2205 if test "$cross_compiling" = maybe; then
2206 cross_compiling=yes
2207 else
2208 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2209 If you meant to cross compile, use \`--host'.
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: cannot run C compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." >&2;}
2214 { (exit 1); exit 1; }; }
2218 echo "$as_me:$LINENO: result: yes" >&5
2219 echo "${ECHO_T}yes" >&6
2221 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2222 ac_clean_files=$ac_clean_files_save
2223 # Check the compiler produces executables we can run. If not, either
2224 # the compiler is broken, or we cross compile.
2225 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2226 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2227 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2228 echo "${ECHO_T}$cross_compiling" >&6
2230 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2231 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2233 (eval $ac_link) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; then
2237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2239 # work properly (i.e., refer to `conftest.exe'), while it won't with
2240 # `rm'.
2241 for ac_file in conftest.exe conftest conftest.*; do
2242 test -f "$ac_file" || continue
2243 case $ac_file in
2244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246 export ac_cv_exeext
2247 break;;
2248 * ) break;;
2249 esac
2250 done
2251 else
2252 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2253 See \`config.log' for more details." >&5
2254 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2259 rm -f conftest$ac_cv_exeext
2260 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2261 echo "${ECHO_T}$ac_cv_exeext" >&6
2263 rm -f conftest.$ac_ext
2264 EXEEXT=$ac_cv_exeext
2265 ac_exeext=$EXEEXT
2266 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2267 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2268 if test "${ac_cv_objext+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 cat >conftest.$ac_ext <<_ACEOF
2272 /* confdefs.h. */
2273 _ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2279 main ()
2283 return 0;
2285 _ACEOF
2286 rm -f conftest.o conftest.obj
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; then
2292 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2293 case $ac_file in
2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2296 break;;
2297 esac
2298 done
2299 else
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2312 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2313 echo "${ECHO_T}$ac_cv_objext" >&6
2314 OBJEXT=$ac_cv_objext
2315 ac_objext=$OBJEXT
2316 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2329 main ()
2331 #ifndef __GNUC__
2332 choke me
2333 #endif
2336 return 0;
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 ac_compiler_gnu=yes
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 ac_compiler_gnu=no
2368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2372 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2373 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2374 GCC=`test $ac_compiler_gnu = yes && echo yes`
2375 ac_test_CFLAGS=${CFLAGS+set}
2376 ac_save_CFLAGS=$CFLAGS
2377 CFLAGS="-g"
2378 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2379 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2380 if test "${ac_cv_prog_cc_g+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h. */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2391 main ()
2395 return 0;
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_prog_cc_g=yes
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_cv_prog_cc_g=no
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2430 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2431 if test "$ac_test_CFLAGS" = set; then
2432 CFLAGS=$ac_save_CFLAGS
2433 elif test $ac_cv_prog_cc_g = yes; then
2434 if test "$GCC" = yes; then
2435 CFLAGS="-g -O2"
2436 else
2437 CFLAGS="-g"
2439 else
2440 if test "$GCC" = yes; then
2441 CFLAGS="-O2"
2442 else
2443 CFLAGS=
2446 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2447 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2448 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451 ac_cv_prog_cc_stdc=no
2452 ac_save_CC=$CC
2453 cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2459 #include <stdarg.h>
2460 #include <stdio.h>
2461 #include <sys/types.h>
2462 #include <sys/stat.h>
2463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2464 struct buf { int x; };
2465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2466 static char *e (p, i)
2467 char **p;
2468 int i;
2470 return p[i];
2472 static char *f (char * (*g) (char **, int), char **p, ...)
2474 char *s;
2475 va_list v;
2476 va_start (v,p);
2477 s = g (p, va_arg (v,int));
2478 va_end (v);
2479 return s;
2482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2483 function prototypes and stuff, but not '\xHH' hex character constants.
2484 These don't provoke an error unfortunately, instead are silently treated
2485 as 'x'. The following induces an error, until -std1 is added to get
2486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2487 array size at least. It's necessary to write '\x00'==0 to get something
2488 that's true only with -std1. */
2489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2491 int test (int i, double x);
2492 struct s1 {int (*f) (int a);};
2493 struct s2 {int (*f) (double a);};
2494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2495 int argc;
2496 char **argv;
2498 main ()
2500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2502 return 0;
2504 _ACEOF
2505 # Don't try gcc -ansi; that turns off useful extensions and
2506 # breaks some systems' header files.
2507 # AIX -qlanglvl=ansi
2508 # Ultrix and OSF/1 -std1
2509 # HP-UX 10.20 and later -Ae
2510 # HP-UX older versions -Aa -D_HPUX_SOURCE
2511 # SVR4 -Xc -D__EXTENSIONS__
2512 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2514 CC="$ac_save_CC $ac_arg"
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag"
2525 || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_prog_cc_stdc=$ac_arg
2538 break
2539 else
2540 echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f conftest.err conftest.$ac_objext
2545 done
2546 rm -f conftest.$ac_ext conftest.$ac_objext
2547 CC=$ac_save_CC
2551 case "x$ac_cv_prog_cc_stdc" in
2552 x|xno)
2553 echo "$as_me:$LINENO: result: none needed" >&5
2554 echo "${ECHO_T}none needed" >&6 ;;
2556 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2557 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2558 CC="$CC $ac_cv_prog_cc_stdc" ;;
2559 esac
2561 # Some people use a C++ compiler to compile C. Since we use `exit',
2562 # in C++ we need to declare it. In case someone uses the same compiler
2563 # for both compiling C and C++ we need to have the C++ compiler decide
2564 # the declaration of exit, since it's the most demanding environment.
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #ifndef __cplusplus
2567 choke me
2568 #endif
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 for ac_declaration in \
2593 '' \
2594 'extern "C" void std::exit (int) throw (); using std::exit;' \
2595 'extern "C" void std::exit (int); using std::exit;' \
2596 'extern "C" void exit (int) throw ();' \
2597 'extern "C" void exit (int);' \
2598 'void exit (int);'
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606 $ac_declaration
2607 #include <stdlib.h>
2609 main ()
2611 exit (42);
2613 return 0;
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>conftest.er1
2619 ac_status=$?
2620 grep -v '^ *+' conftest.er1 >conftest.err
2621 rm -f conftest.er1
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_c_werror_flag"
2626 || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2643 continue
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652 $ac_declaration
2654 main ()
2656 exit (42);
2658 return 0;
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 break
2684 else
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 done
2691 rm -f conftest*
2692 if test -n "$ac_declaration"; then
2693 echo '#ifdef __cplusplus' >>confdefs.h
2694 echo $ac_declaration >>confdefs.h
2695 echo '#endif' >>confdefs.h
2698 else
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 DEPDIR="${am__leading_dot}deps"
2711 ac_config_commands="$ac_config_commands depfiles"
2714 am_make=${MAKE-make}
2715 cat > confinc << 'END'
2716 am__doit:
2717 @echo done
2718 .PHONY: am__doit
2720 # If we don't find an include directive, just comment out the code.
2721 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2722 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2723 am__include="#"
2724 am__quote=
2725 _am_result=none
2726 # First try GNU make style include.
2727 echo "include confinc" > confmf
2728 # We grep out `Entering directory' and `Leaving directory'
2729 # messages which can occur if `w' ends up in MAKEFLAGS.
2730 # In particular we don't look at `^make:' because GNU make might
2731 # be invoked under some other name (usually "gmake"), in which
2732 # case it prints its new name instead of `make'.
2733 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2734 am__include=include
2735 am__quote=
2736 _am_result=GNU
2738 # Now try BSD make style include.
2739 if test "$am__include" = "#"; then
2740 echo '.include "confinc"' > confmf
2741 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2742 am__include=.include
2743 am__quote="\""
2744 _am_result=BSD
2749 echo "$as_me:$LINENO: result: $_am_result" >&5
2750 echo "${ECHO_T}$_am_result" >&6
2751 rm -f confinc confmf
2753 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2754 if test "${enable_dependency_tracking+set}" = set; then
2755 enableval="$enable_dependency_tracking"
2758 if test "x$enable_dependency_tracking" != xno; then
2759 am_depcomp="$ac_aux_dir/depcomp"
2760 AMDEPBACKSLASH='\'
2764 if test "x$enable_dependency_tracking" != xno; then
2765 AMDEP_TRUE=
2766 AMDEP_FALSE='#'
2767 else
2768 AMDEP_TRUE='#'
2769 AMDEP_FALSE=
2775 depcc="$CC" am_compiler_list=
2777 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2778 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2779 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2783 # We make a subdir and do the tests there. Otherwise we can end up
2784 # making bogus files that we don't know about and never remove. For
2785 # instance it was reported that on HP-UX the gcc test will end up
2786 # making a dummy file named `D' -- because `-MD' means `put the output
2787 # in D'.
2788 mkdir conftest.dir
2789 # Copy depcomp to subdir because otherwise we won't find it if we're
2790 # using a relative directory.
2791 cp "$am_depcomp" conftest.dir
2792 cd conftest.dir
2793 # We will build objects and dependencies in a subdirectory because
2794 # it helps to detect inapplicable dependency modes. For instance
2795 # both Tru64's cc and ICC support -MD to output dependencies as a
2796 # side effect of compilation, but ICC will put the dependencies in
2797 # the current directory while Tru64 will put them in the object
2798 # directory.
2799 mkdir sub
2801 am_cv_CC_dependencies_compiler_type=none
2802 if test "$am_compiler_list" = ""; then
2803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2805 for depmode in $am_compiler_list; do
2806 # Setup a source with many dependencies, because some compilers
2807 # like to wrap large dependency lists on column 80 (with \), and
2808 # we should not choose a depcomp mode which is confused by this.
2810 # We need to recreate these files for each test, as the compiler may
2811 # overwrite some of them when testing with obscure command lines.
2812 # This happens at least with the AIX C compiler.
2813 : > sub/conftest.c
2814 for i in 1 2 3 4 5 6; do
2815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2816 : > sub/conftst$i.h
2817 done
2818 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2820 case $depmode in
2821 nosideeffect)
2822 # after this tag, mechanisms are not by side-effect, so they'll
2823 # only be used when explicitly requested
2824 if test "x$enable_dependency_tracking" = xyes; then
2825 continue
2826 else
2827 break
2830 none) break ;;
2831 esac
2832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2833 # mode. It turns out that the SunPro C++ compiler does not properly
2834 # handle `-M -o', and we need to detect this.
2835 if depmode=$depmode \
2836 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2838 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2839 >/dev/null 2>conftest.err &&
2840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2841 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2843 # icc doesn't choke on unknown options, it will just issue warnings
2844 # (even with -Werror). So we grep stderr for any message
2845 # that says an option was ignored.
2846 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2847 am_cv_CC_dependencies_compiler_type=$depmode
2848 break
2851 done
2853 cd ..
2854 rm -rf conftest.dir
2855 else
2856 am_cv_CC_dependencies_compiler_type=none
2860 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2861 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2867 test "x$enable_dependency_tracking" != xno \
2868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2869 am__fastdepCC_TRUE=
2870 am__fastdepCC_FALSE='#'
2871 else
2872 am__fastdepCC_TRUE='#'
2873 am__fastdepCC_FALSE=
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_RANLIB+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$RANLIB"; then
2886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2904 RANLIB=$ac_cv_prog_RANLIB
2905 if test -n "$RANLIB"; then
2906 echo "$as_me:$LINENO: result: $RANLIB" >&5
2907 echo "${ECHO_T}$RANLIB" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2914 if test -z "$ac_cv_prog_RANLIB"; then
2915 ac_ct_RANLIB=$RANLIB
2916 # Extract the first word of "ranlib", so it can be a program name with args.
2917 set dummy ranlib; ac_word=$2
2918 echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 if test -n "$ac_ct_RANLIB"; then
2924 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_ac_ct_RANLIB="ranlib"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2937 done
2938 done
2940 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2943 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2944 if test -n "$ac_ct_RANLIB"; then
2945 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2946 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 RANLIB=$ac_ct_RANLIB
2953 else
2954 RANLIB="$ac_cv_prog_RANLIB"
2959 # Default CFLAGS.
2960 if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
2961 CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
2965 # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
2967 # Check whether --enable-largefile or --disable-largefile was given.
2968 if test "${enable_largefile+set}" = set; then
2969 enableval="$enable_largefile"
2972 if test "$enable_largefile" != no; then
2974 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2975 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2976 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 ac_cv_sys_largefile_CC=no
2980 if test "$GCC" != yes; then
2981 ac_save_CC=$CC
2982 while :; do
2983 # IRIX 6.2 and later do not support large files by default,
2984 # so use the C compiler's -n32 option if that helps.
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <sys/types.h>
2992 /* Check that off_t can represent 2**63 - 1 correctly.
2993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2994 since some C++ compilers masquerading as C compilers
2995 incorrectly reject 9223372036854775807. */
2996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2998 && LARGE_OFF_T % 2147483647 == 1)
2999 ? 1 : -1];
3001 main ()
3005 return 0;
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_c_werror_flag"
3018 || test ! -s conftest.err'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 break
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f conftest.err conftest.$ac_objext
3037 CC="$CC -n32"
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_sys_largefile_CC=' -n32'; break
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f conftest.err conftest.$ac_objext
3067 break
3068 done
3069 CC=$ac_save_CC
3070 rm -f conftest.$ac_ext
3073 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3074 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3075 if test "$ac_cv_sys_largefile_CC" != no; then
3076 CC=$CC$ac_cv_sys_largefile_CC
3079 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3080 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3081 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 while :; do
3085 ac_cv_sys_file_offset_bits=no
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <sys/types.h>
3093 /* Check that off_t can represent 2**63 - 1 correctly.
3094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3095 since some C++ compilers masquerading as C compilers
3096 incorrectly reject 9223372036854775807. */
3097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3099 && LARGE_OFF_T % 2147483647 == 1)
3100 ? 1 : -1];
3102 main ()
3106 return 0;
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag"
3119 || test ! -s conftest.err'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 (eval $ac_try) 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 break
3132 else
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138 cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h. */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #define _FILE_OFFSET_BITS 64
3145 #include <sys/types.h>
3146 /* Check that off_t can represent 2**63 - 1 correctly.
3147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3148 since some C++ compilers masquerading as C compilers
3149 incorrectly reject 9223372036854775807. */
3150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3152 && LARGE_OFF_T % 2147483647 == 1)
3153 ? 1 : -1];
3155 main ()
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_sys_file_offset_bits=64; break
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 break
3192 done
3194 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3195 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3196 if test "$ac_cv_sys_file_offset_bits" != no; then
3198 cat >>confdefs.h <<_ACEOF
3199 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3200 _ACEOF
3203 rm -f conftest*
3204 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3205 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3206 if test "${ac_cv_sys_large_files+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 while :; do
3210 ac_cv_sys_large_files=no
3211 cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h. */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3217 #include <sys/types.h>
3218 /* Check that off_t can represent 2**63 - 1 correctly.
3219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3220 since some C++ compilers masquerading as C compilers
3221 incorrectly reject 9223372036854775807. */
3222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3224 && LARGE_OFF_T % 2147483647 == 1)
3225 ? 1 : -1];
3227 main ()
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 break
3257 else
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #define _LARGE_FILES 1
3270 #include <sys/types.h>
3271 /* Check that off_t can represent 2**63 - 1 correctly.
3272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3273 since some C++ compilers masquerading as C compilers
3274 incorrectly reject 9223372036854775807. */
3275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3277 && LARGE_OFF_T % 2147483647 == 1)
3278 ? 1 : -1];
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag"
3297 || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_sys_large_files=1; break
3310 else
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 break
3317 done
3319 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3320 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3321 if test "$ac_cv_sys_large_files" != no; then
3323 cat >>confdefs.h <<_ACEOF
3324 #define _LARGE_FILES $ac_cv_sys_large_files
3325 _ACEOF
3328 rm -f conftest*
3332 # Checks for libm.
3333 echo "$as_me:$LINENO: checking for atan2 in -lm" >&5
3334 echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6
3335 if test "${ac_cv_lib_m_atan2+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 ac_check_lib_save_LIBS=$LIBS
3339 LIBS="-lm $LIBS"
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3347 /* Override any gcc2 internal prototype to avoid an error. */
3348 #ifdef __cplusplus
3349 extern "C"
3350 #endif
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3353 char atan2 ();
3355 main ()
3357 atan2 ();
3359 return 0;
3361 _ACEOF
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag"
3372 || test ! -s conftest.err'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; } &&
3378 { ac_try='test -s conftest$ac_exeext'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_cv_lib_m_atan2=yes
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 ac_cv_lib_m_atan2=no
3391 rm -f conftest.err conftest.$ac_objext \
3392 conftest$ac_exeext conftest.$ac_ext
3393 LIBS=$ac_check_lib_save_LIBS
3395 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5
3396 echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6
3397 if test $ac_cv_lib_m_atan2 = yes; then
3399 LDFLAGS="-lm $LDFLAGS"
3401 else
3403 { { echo "$as_me:$LINENO: error: Cannot use -lm" >&5
3404 echo "$as_me: error: Cannot use -lm" >&2;}
3405 { (exit 1); exit 1; }; }
3411 # Checks for hypot (SVID 3, BSD 4.3).
3412 # The replacement is #defined in the source.
3414 for ac_func in hypot
3416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3417 echo "$as_me:$LINENO: checking for $ac_func" >&5
3418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3419 if eval "test \"\${$as_ac_var+set}\" = set"; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3430 #define $ac_func innocuous_$ac_func
3432 /* System header to define __stub macros and hopefully few prototypes,
3433 which can conflict with char $ac_func (); below.
3434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 <limits.h> exists even on freestanding compilers. */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3443 #undef $ac_func
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 #ifdef __cplusplus
3447 extern "C"
3449 #endif
3450 /* We use char because int might match the return type of a gcc2
3451 builtin and then its argument prototype would still apply. */
3452 char $ac_func ();
3453 /* The GNU C library defines this for functions which it implements
3454 to always fail with ENOSYS. Some functions are actually named
3455 something starting with __ and the normal name is an alias. */
3456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3457 choke me
3458 #else
3459 char (*f) () = $ac_func;
3460 #endif
3461 #ifdef __cplusplus
3463 #endif
3466 main ()
3468 return f != $ac_func;
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.$ac_objext conftest$ac_exeext
3474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3475 (eval $ac_link) 2>conftest.er1
3476 ac_status=$?
3477 grep -v '^ *+' conftest.er1 >conftest.err
3478 rm -f conftest.er1
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -z "$ac_c_werror_flag"
3483 || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 eval "$as_ac_var=yes"
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 eval "$as_ac_var=no"
3502 rm -f conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3507 if test `eval echo '${'$as_ac_var'}'` = yes; then
3508 cat >>confdefs.h <<_ACEOF
3509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3510 _ACEOF
3513 done
3517 # Checks for math functions using floats.
3518 # Using floats instead of doubles makes gcc use SSE with -msse
3519 # The replacement are #defined in math_floats.h.
3521 for ac_func in sqrtf
3523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3524 echo "$as_me:$LINENO: checking for $ac_func" >&5
3525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3526 if eval "test \"\${$as_ac_var+set}\" = set"; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3537 #define $ac_func innocuous_$ac_func
3539 /* System header to define __stub macros and hopefully few prototypes,
3540 which can conflict with char $ac_func (); below.
3541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 <limits.h> exists even on freestanding compilers. */
3544 #ifdef __STDC__
3545 # include <limits.h>
3546 #else
3547 # include <assert.h>
3548 #endif
3550 #undef $ac_func
3552 /* Override any gcc2 internal prototype to avoid an error. */
3553 #ifdef __cplusplus
3554 extern "C"
3556 #endif
3557 /* We use char because int might match the return type of a gcc2
3558 builtin and then its argument prototype would still apply. */
3559 char $ac_func ();
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3564 choke me
3565 #else
3566 char (*f) () = $ac_func;
3567 #endif
3568 #ifdef __cplusplus
3570 #endif
3573 main ()
3575 return f != $ac_func;
3577 return 0;
3579 _ACEOF
3580 rm -f conftest.$ac_objext conftest$ac_exeext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3582 (eval $ac_link) 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try='test -z "$ac_c_werror_flag"
3590 || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest$ac_exeext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 eval "$as_ac_var=yes"
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 eval "$as_ac_var=no"
3609 rm -f conftest.err conftest.$ac_objext \
3610 conftest$ac_exeext conftest.$ac_ext
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3614 if test `eval echo '${'$as_ac_var'}'` = yes; then
3615 cat >>confdefs.h <<_ACEOF
3616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3617 _ACEOF
3620 done
3623 for ac_func in hypotf
3625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3626 echo "$as_me:$LINENO: checking for $ac_func" >&5
3627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3628 if eval "test \"\${$as_ac_var+set}\" = set"; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3639 #define $ac_func innocuous_$ac_func
3641 /* System header to define __stub macros and hopefully few prototypes,
3642 which can conflict with char $ac_func (); below.
3643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 <limits.h> exists even on freestanding compilers. */
3646 #ifdef __STDC__
3647 # include <limits.h>
3648 #else
3649 # include <assert.h>
3650 #endif
3652 #undef $ac_func
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 #ifdef __cplusplus
3656 extern "C"
3658 #endif
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char $ac_func ();
3662 /* The GNU C library defines this for functions which it implements
3663 to always fail with ENOSYS. Some functions are actually named
3664 something starting with __ and the normal name is an alias. */
3665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3666 choke me
3667 #else
3668 char (*f) () = $ac_func;
3669 #endif
3670 #ifdef __cplusplus
3672 #endif
3675 main ()
3677 return f != $ac_func;
3679 return 0;
3681 _ACEOF
3682 rm -f conftest.$ac_objext conftest$ac_exeext
3683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3684 (eval $ac_link) 2>conftest.er1
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -z "$ac_c_werror_flag"
3692 || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest$ac_exeext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 eval "$as_ac_var=yes"
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 eval "$as_ac_var=no"
3711 rm -f conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
3714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3716 if test `eval echo '${'$as_ac_var'}'` = yes; then
3717 cat >>confdefs.h <<_ACEOF
3718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3719 _ACEOF
3722 done
3725 for ac_func in atan2f
3727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3728 echo "$as_me:$LINENO: checking for $ac_func" >&5
3729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_var+set}\" = set"; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h. */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3741 #define $ac_func innocuous_$ac_func
3743 /* System header to define __stub macros and hopefully few prototypes,
3744 which can conflict with char $ac_func (); below.
3745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3746 <limits.h> exists even on freestanding compilers. */
3748 #ifdef __STDC__
3749 # include <limits.h>
3750 #else
3751 # include <assert.h>
3752 #endif
3754 #undef $ac_func
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 #ifdef __cplusplus
3758 extern "C"
3760 #endif
3761 /* We use char because int might match the return type of a gcc2
3762 builtin and then its argument prototype would still apply. */
3763 char $ac_func ();
3764 /* The GNU C library defines this for functions which it implements
3765 to always fail with ENOSYS. Some functions are actually named
3766 something starting with __ and the normal name is an alias. */
3767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3768 choke me
3769 #else
3770 char (*f) () = $ac_func;
3771 #endif
3772 #ifdef __cplusplus
3774 #endif
3777 main ()
3779 return f != $ac_func;
3781 return 0;
3783 _ACEOF
3784 rm -f conftest.$ac_objext conftest$ac_exeext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3786 (eval $ac_link) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest$ac_exeext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 eval "$as_ac_var=yes"
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 eval "$as_ac_var=no"
3813 rm -f conftest.err conftest.$ac_objext \
3814 conftest$ac_exeext conftest.$ac_ext
3816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3818 if test `eval echo '${'$as_ac_var'}'` = yes; then
3819 cat >>confdefs.h <<_ACEOF
3820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3821 _ACEOF
3824 done
3827 for ac_func in powf
3829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3830 echo "$as_me:$LINENO: checking for $ac_func" >&5
3831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3832 if eval "test \"\${$as_ac_var+set}\" = set"; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3843 #define $ac_func innocuous_$ac_func
3845 /* System header to define __stub macros and hopefully few prototypes,
3846 which can conflict with char $ac_func (); below.
3847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3848 <limits.h> exists even on freestanding compilers. */
3850 #ifdef __STDC__
3851 # include <limits.h>
3852 #else
3853 # include <assert.h>
3854 #endif
3856 #undef $ac_func
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 #ifdef __cplusplus
3860 extern "C"
3862 #endif
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3865 char $ac_func ();
3866 /* The GNU C library defines this for functions which it implements
3867 to always fail with ENOSYS. Some functions are actually named
3868 something starting with __ and the normal name is an alias. */
3869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3870 choke me
3871 #else
3872 char (*f) () = $ac_func;
3873 #endif
3874 #ifdef __cplusplus
3876 #endif
3879 main ()
3881 return f != $ac_func;
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext conftest$ac_exeext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3888 (eval $ac_link) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest$ac_exeext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 eval "$as_ac_var=yes"
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 eval "$as_ac_var=no"
3915 rm -f conftest.err conftest.$ac_objext \
3916 conftest$ac_exeext conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3920 if test `eval echo '${'$as_ac_var'}'` = yes; then
3921 cat >>confdefs.h <<_ACEOF
3922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3923 _ACEOF
3926 done
3929 for ac_func in ceilf
3931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3932 echo "$as_me:$LINENO: checking for $ac_func" >&5
3933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3934 if eval "test \"\${$as_ac_var+set}\" = set"; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3945 #define $ac_func innocuous_$ac_func
3947 /* System header to define __stub macros and hopefully few prototypes,
3948 which can conflict with char $ac_func (); below.
3949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3950 <limits.h> exists even on freestanding compilers. */
3952 #ifdef __STDC__
3953 # include <limits.h>
3954 #else
3955 # include <assert.h>
3956 #endif
3958 #undef $ac_func
3960 /* Override any gcc2 internal prototype to avoid an error. */
3961 #ifdef __cplusplus
3962 extern "C"
3964 #endif
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3967 char $ac_func ();
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3972 choke me
3973 #else
3974 char (*f) () = $ac_func;
3975 #endif
3976 #ifdef __cplusplus
3978 #endif
3981 main ()
3983 return f != $ac_func;
3985 return 0;
3987 _ACEOF
3988 rm -f conftest.$ac_objext conftest$ac_exeext
3989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990 (eval $ac_link) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest$ac_exeext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 eval "$as_ac_var=yes"
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 eval "$as_ac_var=no"
4017 rm -f conftest.err conftest.$ac_objext \
4018 conftest$ac_exeext conftest.$ac_ext
4020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4022 if test `eval echo '${'$as_ac_var'}'` = yes; then
4023 cat >>confdefs.h <<_ACEOF
4024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4025 _ACEOF
4028 done
4031 for ac_func in cosf
4033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4034 echo "$as_me:$LINENO: checking for $ac_func" >&5
4035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4036 if eval "test \"\${$as_ac_var+set}\" = set"; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4047 #define $ac_func innocuous_$ac_func
4049 /* System header to define __stub macros and hopefully few prototypes,
4050 which can conflict with char $ac_func (); below.
4051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 <limits.h> exists even on freestanding compilers. */
4054 #ifdef __STDC__
4055 # include <limits.h>
4056 #else
4057 # include <assert.h>
4058 #endif
4060 #undef $ac_func
4062 /* Override any gcc2 internal prototype to avoid an error. */
4063 #ifdef __cplusplus
4064 extern "C"
4066 #endif
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4069 char $ac_func ();
4070 /* The GNU C library defines this for functions which it implements
4071 to always fail with ENOSYS. Some functions are actually named
4072 something starting with __ and the normal name is an alias. */
4073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4074 choke me
4075 #else
4076 char (*f) () = $ac_func;
4077 #endif
4078 #ifdef __cplusplus
4080 #endif
4083 main ()
4085 return f != $ac_func;
4087 return 0;
4089 _ACEOF
4090 rm -f conftest.$ac_objext conftest$ac_exeext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092 (eval $ac_link) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_c_werror_flag"
4100 || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest$ac_exeext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 eval "$as_ac_var=yes"
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 eval "$as_ac_var=no"
4119 rm -f conftest.err conftest.$ac_objext \
4120 conftest$ac_exeext conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4124 if test `eval echo '${'$as_ac_var'}'` = yes; then
4125 cat >>confdefs.h <<_ACEOF
4126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4127 _ACEOF
4130 done
4133 for ac_func in sinf
4135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4136 echo "$as_me:$LINENO: checking for $ac_func" >&5
4137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4138 if eval "test \"\${$as_ac_var+set}\" = set"; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4149 #define $ac_func innocuous_$ac_func
4151 /* System header to define __stub macros and hopefully few prototypes,
4152 which can conflict with char $ac_func (); below.
4153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154 <limits.h> exists even on freestanding compilers. */
4156 #ifdef __STDC__
4157 # include <limits.h>
4158 #else
4159 # include <assert.h>
4160 #endif
4162 #undef $ac_func
4164 /* Override any gcc2 internal prototype to avoid an error. */
4165 #ifdef __cplusplus
4166 extern "C"
4168 #endif
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4171 char $ac_func ();
4172 /* The GNU C library defines this for functions which it implements
4173 to always fail with ENOSYS. Some functions are actually named
4174 something starting with __ and the normal name is an alias. */
4175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4176 choke me
4177 #else
4178 char (*f) () = $ac_func;
4179 #endif
4180 #ifdef __cplusplus
4182 #endif
4185 main ()
4187 return f != $ac_func;
4189 return 0;
4191 _ACEOF
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194 (eval $ac_link) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 eval "$as_ac_var=yes"
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 eval "$as_ac_var=no"
4221 rm -f conftest.err conftest.$ac_objext \
4222 conftest$ac_exeext conftest.$ac_ext
4224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4226 if test `eval echo '${'$as_ac_var'}'` = yes; then
4227 cat >>confdefs.h <<_ACEOF
4228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4229 _ACEOF
4232 done
4235 for ac_func in acosf
4237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4238 echo "$as_me:$LINENO: checking for $ac_func" >&5
4239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4240 if eval "test \"\${$as_ac_var+set}\" = set"; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4251 #define $ac_func innocuous_$ac_func
4253 /* System header to define __stub macros and hopefully few prototypes,
4254 which can conflict with char $ac_func (); below.
4255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 <limits.h> exists even on freestanding compilers. */
4258 #ifdef __STDC__
4259 # include <limits.h>
4260 #else
4261 # include <assert.h>
4262 #endif
4264 #undef $ac_func
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 #ifdef __cplusplus
4268 extern "C"
4270 #endif
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4273 char $ac_func ();
4274 /* The GNU C library defines this for functions which it implements
4275 to always fail with ENOSYS. Some functions are actually named
4276 something starting with __ and the normal name is an alias. */
4277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4278 choke me
4279 #else
4280 char (*f) () = $ac_func;
4281 #endif
4282 #ifdef __cplusplus
4284 #endif
4287 main ()
4289 return f != $ac_func;
4291 return 0;
4293 _ACEOF
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296 (eval $ac_link) 2>conftest.er1
4297 ac_status=$?
4298 grep -v '^ *+' conftest.er1 >conftest.err
4299 rm -f conftest.er1
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -z "$ac_c_werror_flag"
4304 || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try='test -s conftest$ac_exeext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 (eval $ac_try) 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 eval "$as_ac_var=yes"
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 eval "$as_ac_var=no"
4323 rm -f conftest.err conftest.$ac_objext \
4324 conftest$ac_exeext conftest.$ac_ext
4326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4328 if test `eval echo '${'$as_ac_var'}'` = yes; then
4329 cat >>confdefs.h <<_ACEOF
4330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4331 _ACEOF
4334 done
4337 for ac_func in fmodf
4339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4340 echo "$as_me:$LINENO: checking for $ac_func" >&5
4341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4342 if eval "test \"\${$as_ac_var+set}\" = set"; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4353 #define $ac_func innocuous_$ac_func
4355 /* System header to define __stub macros and hopefully few prototypes,
4356 which can conflict with char $ac_func (); below.
4357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4358 <limits.h> exists even on freestanding compilers. */
4360 #ifdef __STDC__
4361 # include <limits.h>
4362 #else
4363 # include <assert.h>
4364 #endif
4366 #undef $ac_func
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 #ifdef __cplusplus
4370 extern "C"
4372 #endif
4373 /* We use char because int might match the return type of a gcc2
4374 builtin and then its argument prototype would still apply. */
4375 char $ac_func ();
4376 /* The GNU C library defines this for functions which it implements
4377 to always fail with ENOSYS. Some functions are actually named
4378 something starting with __ and the normal name is an alias. */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 choke me
4381 #else
4382 char (*f) () = $ac_func;
4383 #endif
4384 #ifdef __cplusplus
4386 #endif
4389 main ()
4391 return f != $ac_func;
4393 return 0;
4395 _ACEOF
4396 rm -f conftest.$ac_objext conftest$ac_exeext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4398 (eval $ac_link) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest$ac_exeext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 eval "$as_ac_var=yes"
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 eval "$as_ac_var=no"
4425 rm -f conftest.err conftest.$ac_objext \
4426 conftest$ac_exeext conftest.$ac_ext
4428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4430 if test `eval echo '${'$as_ac_var'}'` = yes; then
4431 cat >>confdefs.h <<_ACEOF
4432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4433 _ACEOF
4436 done
4439 for ac_func in fabsf
4441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4442 echo "$as_me:$LINENO: checking for $ac_func" >&5
4443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4444 if eval "test \"\${$as_ac_var+set}\" = set"; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4455 #define $ac_func innocuous_$ac_func
4457 /* System header to define __stub macros and hopefully few prototypes,
4458 which can conflict with char $ac_func (); below.
4459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460 <limits.h> exists even on freestanding compilers. */
4462 #ifdef __STDC__
4463 # include <limits.h>
4464 #else
4465 # include <assert.h>
4466 #endif
4468 #undef $ac_func
4470 /* Override any gcc2 internal prototype to avoid an error. */
4471 #ifdef __cplusplus
4472 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 $ac_func ();
4478 /* The GNU C library defines this for functions which it implements
4479 to always fail with ENOSYS. Some functions are actually named
4480 something starting with __ and the normal name is an alias. */
4481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 choke me
4483 #else
4484 char (*f) () = $ac_func;
4485 #endif
4486 #ifdef __cplusplus
4488 #endif
4491 main ()
4493 return f != $ac_func;
4495 return 0;
4497 _ACEOF
4498 rm -f conftest.$ac_objext conftest$ac_exeext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>conftest.er1
4501 ac_status=$?
4502 grep -v '^ *+' conftest.er1 >conftest.err
4503 rm -f conftest.er1
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -z "$ac_c_werror_flag"
4508 || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try='test -s conftest$ac_exeext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 eval "$as_ac_var=yes"
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 eval "$as_ac_var=no"
4527 rm -f conftest.err conftest.$ac_objext \
4528 conftest$ac_exeext conftest.$ac_ext
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4532 if test `eval echo '${'$as_ac_var'}'` = yes; then
4533 cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4535 _ACEOF
4538 done
4541 # If we don't have ftello, we'll use ftell.
4543 for ac_func in ftello
4545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4546 echo "$as_me:$LINENO: checking for $ac_func" >&5
4547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4548 if eval "test \"\${$as_ac_var+set}\" = set"; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4559 #define $ac_func innocuous_$ac_func
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func (); below.
4563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 <limits.h> exists even on freestanding compilers. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4572 #undef $ac_func
4574 /* Override any gcc2 internal prototype to avoid an error. */
4575 #ifdef __cplusplus
4576 extern "C"
4578 #endif
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char $ac_func ();
4582 /* The GNU C library defines this for functions which it implements
4583 to always fail with ENOSYS. Some functions are actually named
4584 something starting with __ and the normal name is an alias. */
4585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4586 choke me
4587 #else
4588 char (*f) () = $ac_func;
4589 #endif
4590 #ifdef __cplusplus
4592 #endif
4595 main ()
4597 return f != $ac_func;
4599 return 0;
4601 _ACEOF
4602 rm -f conftest.$ac_objext conftest$ac_exeext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604 (eval $ac_link) 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest$ac_exeext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 eval "$as_ac_var=yes"
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 eval "$as_ac_var=no"
4631 rm -f conftest.err conftest.$ac_objext \
4632 conftest$ac_exeext conftest.$ac_ext
4634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4636 if test `eval echo '${'$as_ac_var'}'` = yes; then
4637 cat >>confdefs.h <<_ACEOF
4638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4639 _ACEOF
4642 done
4646 # Checks for getdelim, this is a GNU extension.
4647 CFLAGS="$CFLAGS -D_GNU_SOURCE"
4649 for ac_func in getdelim
4651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4652 echo "$as_me:$LINENO: checking for $ac_func" >&5
4653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4654 if eval "test \"\${$as_ac_var+set}\" = set"; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4665 #define $ac_func innocuous_$ac_func
4667 /* System header to define __stub macros and hopefully few prototypes,
4668 which can conflict with char $ac_func (); below.
4669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 <limits.h> exists even on freestanding compilers. */
4672 #ifdef __STDC__
4673 # include <limits.h>
4674 #else
4675 # include <assert.h>
4676 #endif
4678 #undef $ac_func
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 #ifdef __cplusplus
4682 extern "C"
4684 #endif
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4687 char $ac_func ();
4688 /* The GNU C library defines this for functions which it implements
4689 to always fail with ENOSYS. Some functions are actually named
4690 something starting with __ and the normal name is an alias. */
4691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4692 choke me
4693 #else
4694 char (*f) () = $ac_func;
4695 #endif
4696 #ifdef __cplusplus
4698 #endif
4701 main ()
4703 return f != $ac_func;
4705 return 0;
4707 _ACEOF
4708 rm -f conftest.$ac_objext conftest$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_c_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 eval "$as_ac_var=yes"
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4735 eval "$as_ac_var=no"
4737 rm -f conftest.err conftest.$ac_objext \
4738 conftest$ac_exeext conftest.$ac_ext
4740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4742 if test `eval echo '${'$as_ac_var'}'` = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4745 _ACEOF
4747 have_getdelim="yes"
4749 else
4751 have_getdelim="no"
4754 done
4759 if test "$have_getdelim" = "yes"; then
4760 GETDELIM_TRUE=
4761 GETDELIM_FALSE='#'
4762 else
4763 GETDELIM_TRUE='#'
4764 GETDELIM_FALSE=
4769 # Checks for getopt_long, another GNU extension.
4771 for ac_func in getopt_long
4773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4774 echo "$as_me:$LINENO: checking for $ac_func" >&5
4775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_var+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4787 #define $ac_func innocuous_$ac_func
4789 /* System header to define __stub macros and hopefully few prototypes,
4790 which can conflict with char $ac_func (); below.
4791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4792 <limits.h> exists even on freestanding compilers. */
4794 #ifdef __STDC__
4795 # include <limits.h>
4796 #else
4797 # include <assert.h>
4798 #endif
4800 #undef $ac_func
4802 /* Override any gcc2 internal prototype to avoid an error. */
4803 #ifdef __cplusplus
4804 extern "C"
4806 #endif
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4809 char $ac_func ();
4810 /* The GNU C library defines this for functions which it implements
4811 to always fail with ENOSYS. Some functions are actually named
4812 something starting with __ and the normal name is an alias. */
4813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4814 choke me
4815 #else
4816 char (*f) () = $ac_func;
4817 #endif
4818 #ifdef __cplusplus
4820 #endif
4823 main ()
4825 return f != $ac_func;
4827 return 0;
4829 _ACEOF
4830 rm -f conftest.$ac_objext conftest$ac_exeext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4832 (eval $ac_link) 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -z "$ac_c_werror_flag"
4840 || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try='test -s conftest$ac_exeext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 eval "$as_ac_var=yes"
4853 else
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4857 eval "$as_ac_var=no"
4859 rm -f conftest.err conftest.$ac_objext \
4860 conftest$ac_exeext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4864 if test `eval echo '${'$as_ac_var'}'` = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4867 _ACEOF
4869 have_getopt_long="yes"
4871 else
4873 have_getopt_long="no"
4876 done
4881 if test "$have_getopt_long" = "yes"; then
4882 GETOPT_LONG_TRUE=
4883 GETOPT_LONG_FALSE='#'
4884 else
4885 GETOPT_LONG_TRUE='#'
4886 GETOPT_LONG_FALSE=
4891 if test "$have_getdelim" = "no" ||
4892 test "$have_getopt_long" = "no"; then
4895 if true; then
4896 NEED_REPLACEMENTS_TRUE=
4897 NEED_REPLACEMENTS_FALSE='#'
4898 else
4899 NEED_REPLACEMENTS_TRUE='#'
4900 NEED_REPLACEMENTS_FALSE=
4903 CFLAGS="$CFLAGS -I${srcdir}/../lib"
4904 else
4907 if false; then
4908 NEED_REPLACEMENTS_TRUE=
4909 NEED_REPLACEMENTS_FALSE='#'
4910 else
4911 NEED_REPLACEMENTS_TRUE='#'
4912 NEED_REPLACEMENTS_FALSE=
4918 # Checks for flavours of varargs macros (borrowed from glib-2)
4919 # ISO C99
4920 echo "$as_me:$LINENO: checking for ISO C99 varargs macros" >&5
4921 echo $ECHO_N "checking for ISO C99 varargs macros... $ECHO_C" >&6
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4931 main ()
4934 int a(int p1, int p2, int p3);
4935 #define call_a(...) a(1,__VA_ARGS__)
4936 call_a(2,3);
4939 return 0;
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -z "$ac_c_werror_flag"
4952 || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 have_iso_c_varargs=yes
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 have_iso_c_varargs=no
4971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 echo "$as_me:$LINENO: result: $have_iso_c_varargs" >&5
4974 echo "${ECHO_T}$have_iso_c_varargs" >&6
4976 if test $have_iso_c_varargs = yes; then
4977 iso_c_varargs=1
4978 else
4979 iso_c_varargs=0
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_ISO_C_VARARGS $iso_c_varargs
4985 _ACEOF
4988 if test $have_iso_c_varargs = no; then
4989 { echo "$as_me:$LINENO: WARNING: No ISO C99 variadic macros" >&5
4990 echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
4993 # Checks for X.
4994 ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5000 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5001 # On Suns, sometimes $CPP names a directory.
5002 if test -n "$CPP" && test -d "$CPP"; then
5003 CPP=
5005 if test -z "$CPP"; then
5006 if test "${ac_cv_prog_CPP+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 # Double quotes because CPP needs to be expanded
5010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5012 ac_preproc_ok=false
5013 for ac_c_preproc_warn_flag in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032 Syntax error
5033 _ACEOF
5034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev/null; then
5042 if test -s conftest.err; then
5043 ac_cpp_err=$ac_c_preproc_warn_flag
5044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5045 else
5046 ac_cpp_err=
5048 else
5049 ac_cpp_err=yes
5051 if test -z "$ac_cpp_err"; then
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Broken: fails on valid input.
5058 continue
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether non-existent headers
5063 # can be detected and how.
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5086 else
5087 ac_cpp_err=yes
5089 if test -z "$ac_cpp_err"; then
5090 # Broken: success on invalid input.
5091 continue
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Passes both tests.
5097 ac_preproc_ok=:
5098 break
5100 rm -f conftest.err conftest.$ac_ext
5102 done
5103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5104 rm -f conftest.err conftest.$ac_ext
5105 if $ac_preproc_ok; then
5106 break
5109 done
5110 ac_cv_prog_CPP=$CPP
5113 CPP=$ac_cv_prog_CPP
5114 else
5115 ac_cv_prog_CPP=$CPP
5117 echo "$as_me:$LINENO: result: $CPP" >&5
5118 echo "${ECHO_T}$CPP" >&6
5119 ac_preproc_ok=false
5120 for ac_c_preproc_warn_flag in '' yes
5122 # Use a header file that comes with gcc, so configuring glibc
5123 # with a fresh cross-compiler works.
5124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125 # <limits.h> exists even on freestanding compilers.
5126 # On the NeXT, cc -E runs the code through the compiler's parser,
5127 # not just through cpp. "Syntax error" is here to catch this case.
5128 cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h. */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139 Syntax error
5140 _ACEOF
5141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } >/dev/null; then
5149 if test -s conftest.err; then
5150 ac_cpp_err=$ac_c_preproc_warn_flag
5151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152 else
5153 ac_cpp_err=
5155 else
5156 ac_cpp_err=yes
5158 if test -z "$ac_cpp_err"; then
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 # Broken: fails on valid input.
5165 continue
5167 rm -f conftest.err conftest.$ac_ext
5169 # OK, works on sane cases. Now check whether non-existent headers
5170 # can be detected and how.
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <ac_nonexistent.h>
5178 _ACEOF
5179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null; then
5187 if test -s conftest.err; then
5188 ac_cpp_err=$ac_c_preproc_warn_flag
5189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190 else
5191 ac_cpp_err=
5193 else
5194 ac_cpp_err=yes
5196 if test -z "$ac_cpp_err"; then
5197 # Broken: success on invalid input.
5198 continue
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 # Passes both tests.
5204 ac_preproc_ok=:
5205 break
5207 rm -f conftest.err conftest.$ac_ext
5209 done
5210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5211 rm -f conftest.err conftest.$ac_ext
5212 if $ac_preproc_ok; then
5214 else
5215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5216 See \`config.log' for more details." >&5
5217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5218 See \`config.log' for more details." >&2;}
5219 { (exit 1); exit 1; }; }
5222 ac_ext=c
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 echo "$as_me:$LINENO: checking for X" >&5
5230 echo $ECHO_N "checking for X... $ECHO_C" >&6
5233 # Check whether --with-x or --without-x was given.
5234 if test "${with_x+set}" = set; then
5235 withval="$with_x"
5238 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5239 if test "x$with_x" = xno; then
5240 # The user explicitly disabled X.
5241 have_x=disabled
5242 else
5243 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5244 # Both variables are already set.
5245 have_x=yes
5246 else
5247 if test "${ac_cv_have_x+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250 # One or both of the vars are not set, and there is no cached value.
5251 ac_x_includes=no ac_x_libraries=no
5252 rm -fr conftest.dir
5253 if mkdir conftest.dir; then
5254 cd conftest.dir
5255 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5256 cat >Imakefile <<'_ACEOF'
5257 acfindx:
5258 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5259 _ACEOF
5260 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5262 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5264 for ac_extension in a so sl; do
5265 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5266 test -f $ac_im_libdir/libX11.$ac_extension; then
5267 ac_im_usrlibdir=$ac_im_libdir; break
5269 done
5270 # Screen out bogus values from the imake configuration. They are
5271 # bogus both because they are the default anyway, and because
5272 # using them would break gcc on systems where it needs fixed includes.
5273 case $ac_im_incroot in
5274 /usr/include) ;;
5275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5276 esac
5277 case $ac_im_usrlibdir in
5278 /usr/lib | /lib) ;;
5279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5280 esac
5282 cd ..
5283 rm -fr conftest.dir
5286 # Standard set of common directories for X headers.
5287 # Check X11 before X11Rn because it is often a symlink to the current release.
5288 ac_x_header_dirs='
5289 /usr/X11/include
5290 /usr/X11R6/include
5291 /usr/X11R5/include
5292 /usr/X11R4/include
5294 /usr/include/X11
5295 /usr/include/X11R6
5296 /usr/include/X11R5
5297 /usr/include/X11R4
5299 /usr/local/X11/include
5300 /usr/local/X11R6/include
5301 /usr/local/X11R5/include
5302 /usr/local/X11R4/include
5304 /usr/local/include/X11
5305 /usr/local/include/X11R6
5306 /usr/local/include/X11R5
5307 /usr/local/include/X11R4
5309 /usr/X386/include
5310 /usr/x386/include
5311 /usr/XFree86/include/X11
5313 /usr/include
5314 /usr/local/include
5315 /usr/unsupported/include
5316 /usr/athena/include
5317 /usr/local/x11r5/include
5318 /usr/lpp/Xamples/include
5320 /usr/openwin/include
5321 /usr/openwin/share/include'
5323 if test "$ac_x_includes" = no; then
5324 # Guess where to find include files, by looking for Intrinsic.h.
5325 # First, try using that file with no special directory specified.
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <X11/Intrinsic.h>
5333 _ACEOF
5334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_c_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345 else
5346 ac_cpp_err=
5348 else
5349 ac_cpp_err=yes
5351 if test -z "$ac_cpp_err"; then
5352 # We can compile using X headers with no special include directory.
5353 ac_x_includes=
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 for ac_dir in $ac_x_header_dirs; do
5359 if test -r "$ac_dir/X11/Intrinsic.h"; then
5360 ac_x_includes=$ac_dir
5361 break
5363 done
5365 rm -f conftest.err conftest.$ac_ext
5366 fi # $ac_x_includes = no
5368 if test "$ac_x_libraries" = no; then
5369 # Check for the libraries.
5370 # See if we find them without any special options.
5371 # Don't add to $LIBS permanently.
5372 ac_save_LIBS=$LIBS
5373 LIBS="-lXt $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 #include <X11/Intrinsic.h>
5382 main ()
5384 XtMalloc (0)
5386 return 0;
5388 _ACEOF
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 LIBS=$ac_save_LIBS
5412 # We can link X programs with no special library path.
5413 ac_x_libraries=
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 LIBS=$ac_save_LIBS
5419 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5421 # Don't even attempt the hair of trying to link an X program!
5422 for ac_extension in a so sl; do
5423 if test -r $ac_dir/libXt.$ac_extension; then
5424 ac_x_libraries=$ac_dir
5425 break 2
5427 done
5428 done
5430 rm -f conftest.err conftest.$ac_objext \
5431 conftest$ac_exeext conftest.$ac_ext
5432 fi # $ac_x_libraries = no
5434 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5435 # Didn't find X anywhere. Cache the known absence of X.
5436 ac_cv_have_x="have_x=no"
5437 else
5438 # Record where we found X for the cache.
5439 ac_cv_have_x="have_x=yes \
5440 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5445 eval "$ac_cv_have_x"
5446 fi # $with_x != no
5448 if test "$have_x" != yes; then
5449 echo "$as_me:$LINENO: result: $have_x" >&5
5450 echo "${ECHO_T}$have_x" >&6
5451 no_x=yes
5452 else
5453 # If each of the values was on the command line, it overrides each guess.
5454 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5455 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5456 # Update the cache value to reflect the command line values.
5457 ac_cv_have_x="have_x=yes \
5458 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5459 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5460 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5463 if test "$no_x" = yes; then
5464 # Not all programs may use this symbol, but it does not hurt to define it.
5466 cat >>confdefs.h <<\_ACEOF
5467 #define X_DISPLAY_MISSING 1
5468 _ACEOF
5470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5471 else
5472 if test -n "$x_includes"; then
5473 X_CFLAGS="$X_CFLAGS -I$x_includes"
5476 # It would also be nice to do this for all -L options, not just this one.
5477 if test -n "$x_libraries"; then
5478 X_LIBS="$X_LIBS -L$x_libraries"
5479 # For Solaris; some versions of Sun CC require a space after -R and
5480 # others require no space. Words are not sufficient . . . .
5481 case `(uname -sr) 2>/dev/null` in
5482 "SunOS 5"*)
5483 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5484 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5485 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5494 main ()
5498 return 0;
5500 _ACEOF
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5503 (eval $ac_link) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest$ac_exeext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_R_nospace=yes
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 ac_R_nospace=no
5530 rm -f conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5532 if test $ac_R_nospace = yes; then
5533 echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5535 X_LIBS="$X_LIBS -R$x_libraries"
5536 else
5537 LIBS="$ac_xsave_LIBS -R $x_libraries"
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5546 main ()
5550 return 0;
5552 _ACEOF
5553 rm -f conftest.$ac_objext conftest$ac_exeext
5554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5555 (eval $ac_link) 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try='test -z "$ac_c_werror_flag"
5563 || test ! -s conftest.err'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try='test -s conftest$ac_exeext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_R_space=yes
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_R_space=no
5582 rm -f conftest.err conftest.$ac_objext \
5583 conftest$ac_exeext conftest.$ac_ext
5584 if test $ac_R_space = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586 echo "${ECHO_T}yes" >&6
5587 X_LIBS="$X_LIBS -R $x_libraries"
5588 else
5589 echo "$as_me:$LINENO: result: neither works" >&5
5590 echo "${ECHO_T}neither works" >&6
5593 LIBS=$ac_xsave_LIBS
5594 esac
5597 # Check for system-dependent libraries X programs must link with.
5598 # Do this before checking for the system-independent R6 libraries
5599 # (-lICE), since we may need -lsocket or whatever for X linking.
5601 if test "$ISC" = yes; then
5602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5603 else
5604 # Martyn Johnson says this is needed for Ultrix, if the X
5605 # libraries were built with DECnet support. And Karl Berry says
5606 # the Alpha needs dnet_stub (dnet does not exist).
5607 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 #ifdef __cplusplus
5617 extern "C"
5618 #endif
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5621 char XOpenDisplay ();
5623 main ()
5625 XOpenDisplay ();
5627 return 0;
5629 _ACEOF
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5657 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5658 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5659 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 ac_check_lib_save_LIBS=$LIBS
5663 LIBS="-ldnet $LIBS"
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5671 /* Override any gcc2 internal prototype to avoid an error. */
5672 #ifdef __cplusplus
5673 extern "C"
5674 #endif
5675 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5677 char dnet_ntoa ();
5679 main ()
5681 dnet_ntoa ();
5683 return 0;
5685 _ACEOF
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_lib_dnet_dnet_ntoa=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_lib_dnet_dnet_ntoa=no
5715 rm -f conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5719 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5720 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5721 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5725 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5726 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5727 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5728 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 ac_check_lib_save_LIBS=$LIBS
5732 LIBS="-ldnet_stub $LIBS"
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 #ifdef __cplusplus
5742 extern "C"
5743 #endif
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746 char dnet_ntoa ();
5748 main ()
5750 dnet_ntoa ();
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag"
5765 || test ! -s conftest.err'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest$ac_exeext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 ac_cv_lib_dnet_stub_dnet_ntoa=no
5784 rm -f conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext conftest.$ac_ext
5786 LIBS=$ac_check_lib_save_LIBS
5788 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5789 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5790 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5791 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5796 rm -f conftest.err conftest.$ac_objext \
5797 conftest$ac_exeext conftest.$ac_ext
5798 LIBS="$ac_xsave_LIBS"
5800 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5801 # to get the SysV transport functions.
5802 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5803 # needs -lnsl.
5804 # The nsl library prevents programs from opening the X display
5805 # on Irix 5.2, according to T.E. Dickey.
5806 # The functions gethostbyname, getservbyname, and inet_addr are
5807 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5808 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5809 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5810 if test "${ac_cv_func_gethostbyname+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h. */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5821 #define gethostbyname innocuous_gethostbyname
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char gethostbyname (); below.
5825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 <limits.h> exists even on freestanding compilers. */
5828 #ifdef __STDC__
5829 # include <limits.h>
5830 #else
5831 # include <assert.h>
5832 #endif
5834 #undef gethostbyname
5836 /* Override any gcc2 internal prototype to avoid an error. */
5837 #ifdef __cplusplus
5838 extern "C"
5840 #endif
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char gethostbyname ();
5844 /* The GNU C library defines this for functions which it implements
5845 to always fail with ENOSYS. Some functions are actually named
5846 something starting with __ and the normal name is an alias. */
5847 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5848 choke me
5849 #else
5850 char (*f) () = gethostbyname;
5851 #endif
5852 #ifdef __cplusplus
5854 #endif
5857 main ()
5859 return f != gethostbyname;
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_func_gethostbyname=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_cv_func_gethostbyname=no
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5896 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5897 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5899 if test $ac_cv_func_gethostbyname = no; then
5900 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5901 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5902 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 ac_check_lib_save_LIBS=$LIBS
5906 LIBS="-lnsl $LIBS"
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5914 /* Override any gcc2 internal prototype to avoid an error. */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5920 char gethostbyname ();
5922 main ()
5924 gethostbyname ();
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_lib_nsl_gethostbyname=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_cv_lib_nsl_gethostbyname=no
5958 rm -f conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5960 LIBS=$ac_check_lib_save_LIBS
5962 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5963 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5964 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5968 if test $ac_cv_lib_nsl_gethostbyname = no; then
5969 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5970 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5971 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 ac_check_lib_save_LIBS=$LIBS
5975 LIBS="-lbsd $LIBS"
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5983 /* Override any gcc2 internal prototype to avoid an error. */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char gethostbyname ();
5991 main ()
5993 gethostbyname ();
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest$ac_exeext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_lib_bsd_gethostbyname=yes
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_cv_lib_bsd_gethostbyname=no
6027 rm -f conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
6029 LIBS=$ac_check_lib_save_LIBS
6031 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6032 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6033 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6040 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6041 # socket/setsockopt and other routines are undefined under SCO ODT
6042 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6043 # on later versions), says Simon Leinen: it contains gethostby*
6044 # variants that don't use the name server (or something). -lsocket
6045 # must be given before -lnsl if both are needed. We assume that
6046 # if connect needs -lnsl, so does gethostbyname.
6047 echo "$as_me:$LINENO: checking for connect" >&5
6048 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6049 if test "${ac_cv_func_connect+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6060 #define connect innocuous_connect
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char connect (); below.
6064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065 <limits.h> exists even on freestanding compilers. */
6067 #ifdef __STDC__
6068 # include <limits.h>
6069 #else
6070 # include <assert.h>
6071 #endif
6073 #undef connect
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 #ifdef __cplusplus
6077 extern "C"
6079 #endif
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6082 char connect ();
6083 /* The GNU C library defines this for functions which it implements
6084 to always fail with ENOSYS. Some functions are actually named
6085 something starting with __ and the normal name is an alias. */
6086 #if defined (__stub_connect) || defined (__stub___connect)
6087 choke me
6088 #else
6089 char (*f) () = connect;
6090 #endif
6091 #ifdef __cplusplus
6093 #endif
6096 main ()
6098 return f != connect;
6100 return 0;
6102 _ACEOF
6103 rm -f conftest.$ac_objext conftest$ac_exeext
6104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105 (eval $ac_link) 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -z "$ac_c_werror_flag"
6113 || test ! -s conftest.err'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 (eval $ac_try) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; } &&
6119 { ac_try='test -s conftest$ac_exeext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_cv_func_connect=yes
6126 else
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_cv_func_connect=no
6132 rm -f conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6136 echo "${ECHO_T}$ac_cv_func_connect" >&6
6138 if test $ac_cv_func_connect = no; then
6139 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6140 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6141 if test "${ac_cv_lib_socket_connect+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 ac_check_lib_save_LIBS=$LIBS
6145 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6153 /* Override any gcc2 internal prototype to avoid an error. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char connect ();
6161 main ()
6163 connect ();
6165 return 0;
6167 _ACEOF
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_lib_socket_connect=yes
6191 else
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 ac_cv_lib_socket_connect=no
6197 rm -f conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6201 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6202 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6203 if test $ac_cv_lib_socket_connect = yes; then
6204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6209 # Guillermo Gomez says -lposix is necessary on A/UX.
6210 echo "$as_me:$LINENO: checking for remove" >&5
6211 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6212 if test "${ac_cv_func_remove+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6223 #define remove innocuous_remove
6225 /* System header to define __stub macros and hopefully few prototypes,
6226 which can conflict with char remove (); below.
6227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 <limits.h> exists even on freestanding compilers. */
6230 #ifdef __STDC__
6231 # include <limits.h>
6232 #else
6233 # include <assert.h>
6234 #endif
6236 #undef remove
6238 /* Override any gcc2 internal prototype to avoid an error. */
6239 #ifdef __cplusplus
6240 extern "C"
6242 #endif
6243 /* We use char because int might match the return type of a gcc2
6244 builtin and then its argument prototype would still apply. */
6245 char remove ();
6246 /* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249 #if defined (__stub_remove) || defined (__stub___remove)
6250 choke me
6251 #else
6252 char (*f) () = remove;
6253 #endif
6254 #ifdef __cplusplus
6256 #endif
6259 main ()
6261 return f != remove;
6263 return 0;
6265 _ACEOF
6266 rm -f conftest.$ac_objext conftest$ac_exeext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268 (eval $ac_link) 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try='test -s conftest$ac_exeext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_cv_func_remove=yes
6289 else
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_cv_func_remove=no
6295 rm -f conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6299 echo "${ECHO_T}$ac_cv_func_remove" >&6
6301 if test $ac_cv_func_remove = no; then
6302 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6303 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6304 if test "${ac_cv_lib_posix_remove+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 ac_check_lib_save_LIBS=$LIBS
6308 LIBS="-lposix $LIBS"
6309 cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h. */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 #ifdef __cplusplus
6318 extern "C"
6319 #endif
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322 char remove ();
6324 main ()
6326 remove ();
6328 return 0;
6330 _ACEOF
6331 rm -f conftest.$ac_objext conftest$ac_exeext
6332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_lib_posix_remove=yes
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 ac_cv_lib_posix_remove=no
6360 rm -f conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 LIBS=$ac_check_lib_save_LIBS
6364 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6365 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6366 if test $ac_cv_lib_posix_remove = yes; then
6367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6372 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6373 echo "$as_me:$LINENO: checking for shmat" >&5
6374 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6375 if test "${ac_cv_func_shmat+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6386 #define shmat innocuous_shmat
6388 /* System header to define __stub macros and hopefully few prototypes,
6389 which can conflict with char shmat (); below.
6390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391 <limits.h> exists even on freestanding compilers. */
6393 #ifdef __STDC__
6394 # include <limits.h>
6395 #else
6396 # include <assert.h>
6397 #endif
6399 #undef shmat
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 #ifdef __cplusplus
6403 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char shmat ();
6409 /* The GNU C library defines this for functions which it implements
6410 to always fail with ENOSYS. Some functions are actually named
6411 something starting with __ and the normal name is an alias. */
6412 #if defined (__stub_shmat) || defined (__stub___shmat)
6413 choke me
6414 #else
6415 char (*f) () = shmat;
6416 #endif
6417 #ifdef __cplusplus
6419 #endif
6422 main ()
6424 return f != shmat;
6426 return 0;
6428 _ACEOF
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_func_shmat=yes
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_cv_func_shmat=no
6458 rm -f conftest.err conftest.$ac_objext \
6459 conftest$ac_exeext conftest.$ac_ext
6461 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6462 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6464 if test $ac_cv_func_shmat = no; then
6465 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6466 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6467 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 ac_check_lib_save_LIBS=$LIBS
6471 LIBS="-lipc $LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 #ifdef __cplusplus
6481 extern "C"
6482 #endif
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485 char shmat ();
6487 main ()
6489 shmat ();
6491 return 0;
6493 _ACEOF
6494 rm -f conftest.$ac_objext conftest$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest$ac_exeext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_cv_lib_ipc_shmat=yes
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_cv_lib_ipc_shmat=no
6523 rm -f conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525 LIBS=$ac_check_lib_save_LIBS
6527 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6528 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6529 if test $ac_cv_lib_ipc_shmat = yes; then
6530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6536 # Check for libraries that X11R6 Xt/Xaw programs need.
6537 ac_save_LDFLAGS=$LDFLAGS
6538 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6539 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6540 # check for ICE first), but we must link in the order -lSM -lICE or
6541 # we get undefined symbols. So assume we have SM if we have ICE.
6542 # These have to be linked with before -lX11, unlike the other
6543 # libraries we check for below, so use a different variable.
6544 # John Interrante, Karl Berry
6545 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6546 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6547 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 ac_check_lib_save_LIBS=$LIBS
6551 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6559 /* Override any gcc2 internal prototype to avoid an error. */
6560 #ifdef __cplusplus
6561 extern "C"
6562 #endif
6563 /* We use char because int might match the return type of a gcc2
6564 builtin and then its argument prototype would still apply. */
6565 char IceConnectionNumber ();
6567 main ()
6569 IceConnectionNumber ();
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext conftest$ac_exeext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_lib_ICE_IceConnectionNumber=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_lib_ICE_IceConnectionNumber=no
6603 rm -f conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6605 LIBS=$ac_check_lib_save_LIBS
6607 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6608 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6609 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6610 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6613 LDFLAGS=$ac_save_LDFLAGS
6617 CFLAGS="$X_CFLAGS $CFLAGS"
6618 LDFLAGS="$X_PRE_LIBS -lX11 $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
6621 # Checks for OpenGL.
6622 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6623 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6624 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627 ac_check_lib_save_LIBS=$LIBS
6628 LIBS="-lGL $LIBS"
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6642 char glBegin ();
6644 main ()
6646 glBegin ();
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_lib_GL_glBegin=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_cv_lib_GL_glBegin=no
6680 rm -f conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682 LIBS=$ac_check_lib_save_LIBS
6684 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6685 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6686 if test $ac_cv_lib_GL_glBegin = yes; then
6687 LDFLAGS="-lGL $LDFLAGS"
6688 else
6689 ogl="no"
6692 if test "x$ogl" = "xno"; then
6693 { echo "$as_me:$LINENO: Maybe libGL requires libpthread..." >&5
6694 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
6695 unset ac_cv_lib_GL_glBegin
6696 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6697 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6698 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 ac_check_lib_save_LIBS=$LIBS
6702 LIBS="-lGL -lpthread $LIBS"
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6716 char glBegin ();
6718 main ()
6720 glBegin ();
6722 return 0;
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 ac_cv_lib_GL_glBegin=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_lib_GL_glBegin=no
6754 rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 LIBS=$ac_check_lib_save_LIBS
6758 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6759 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6760 if test $ac_cv_lib_GL_glBegin = yes; then
6761 LDFLAGS="-lpthread -lGL $LDFLAGS"
6762 else
6763 { { echo "$as_me:$LINENO: error: Cannot use -lGL" >&5
6764 echo "$as_me: error: Cannot use -lGL" >&2;}
6765 { (exit 1); exit 1; }; }
6771 # Checks for gtk.
6772 # Check whether --enable-gtktest or --disable-gtktest was given.
6773 if test "${enable_gtktest+set}" = set; then
6774 enableval="$enable_gtktest"
6776 else
6777 enable_gtktest=yes
6780 pkg_config_args=gtk+-2.0
6781 for module in . gthread
6783 case "$module" in
6784 gthread)
6785 pkg_config_args="$pkg_config_args gthread-2.0"
6787 esac
6788 done
6790 no_gtk=""
6792 # Extract the first word of "pkg-config", so it can be a program name with args.
6793 set dummy pkg-config; ac_word=$2
6794 echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 case $PKG_CONFIG in
6800 [\\/]* | ?:[\\/]*)
6801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6815 done
6816 done
6818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6820 esac
6822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6824 if test -n "$PKG_CONFIG"; then
6825 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6826 echo "${ECHO_T}$PKG_CONFIG" >&6
6827 else
6828 echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6
6833 if test x$PKG_CONFIG != xno ; then
6834 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6836 else
6837 echo *** pkg-config too old; version 0.7 or better required.
6838 no_gtk=yes
6839 PKG_CONFIG=no
6841 else
6842 no_gtk=yes
6845 min_gtk_version=2.2.0
6846 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
6847 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
6849 if test x$PKG_CONFIG != xno ; then
6850 ## don't try to run the test against uninstalled libtool libs
6851 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6852 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
6853 enable_gtktest=no
6856 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6858 else
6859 no_gtk=yes
6863 if test x"$no_gtk" = x ; then
6864 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6865 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6866 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6867 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6868 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6869 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6870 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6871 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6872 if test "x$enable_gtktest" = "xyes" ; then
6873 ac_save_CFLAGS="$CFLAGS"
6874 ac_save_LIBS="$LIBS"
6875 CFLAGS="$CFLAGS $GTK_CFLAGS"
6876 LIBS="$GTK_LIBS $LIBS"
6877 rm -f conf.gtktest
6878 if test "$cross_compiling" = yes; then
6879 echo $ac_n "cross compiling; assumed OK... $ac_c"
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6888 #include <gtk/gtk.h>
6889 #include <stdio.h>
6890 #include <stdlib.h>
6893 main ()
6895 int major, minor, micro;
6896 char *tmp_version;
6898 system ("touch conf.gtktest");
6900 /* HP/UX 9 (%@#!) writes to sscanf strings */
6901 tmp_version = g_strdup("$min_gtk_version");
6902 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
6903 printf("%s, bad version string\n", "$min_gtk_version");
6904 exit(1);
6907 if ((gtk_major_version != $gtk_config_major_version) ||
6908 (gtk_minor_version != $gtk_config_minor_version) ||
6909 (gtk_micro_version != $gtk_config_micro_version))
6911 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6912 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6913 gtk_major_version, gtk_minor_version, gtk_micro_version);
6914 printf ("*** was found! If pkg-config was correct, then it is best\n");
6915 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
6916 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6917 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6918 printf("*** required on your system.\n");
6919 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
6920 printf("*** to point to the correct configuration files\n");
6922 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6923 (gtk_minor_version != GTK_MINOR_VERSION) ||
6924 (gtk_micro_version != GTK_MICRO_VERSION))
6926 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
6927 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6928 printf("*** library (version %d.%d.%d)\n",
6929 gtk_major_version, gtk_minor_version, gtk_micro_version);
6931 else
6933 if ((gtk_major_version > major) ||
6934 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6935 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6937 return 0;
6939 else
6941 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
6942 gtk_major_version, gtk_minor_version, gtk_micro_version);
6943 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
6944 major, minor, micro);
6945 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
6946 printf("***\n");
6947 printf("*** If you have already installed a sufficiently new version, this error\n");
6948 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
6949 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6950 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
6951 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
6952 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6953 printf("*** so that the correct libraries are found at run-time))\n");
6956 return 1;
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6972 else
6973 echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ( exit $ac_status )
6978 no_gtk=yes
6980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6982 CFLAGS="$ac_save_CFLAGS"
6983 LIBS="$ac_save_LIBS"
6986 if test "x$no_gtk" = x ; then
6987 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
6988 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
6990 CFLAGS="$GTK_CFLAGS $CFLAGS"
6991 LDFLAGS="$GTK_LIBS $LDFLAGS"
6992 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997 if test "$PKG_CONFIG" = "no" ; then
6998 echo "*** A new enough version of pkg-config was not found."
6999 echo "*** See http://pkgconfig.sourceforge.net"
7000 else
7001 if test -f conf.gtktest ; then
7003 else
7004 echo "*** Could not run GTK+ test program, checking why..."
7005 ac_save_CFLAGS="$CFLAGS"
7006 ac_save_LIBS="$LIBS"
7007 CFLAGS="$CFLAGS $GTK_CFLAGS"
7008 LIBS="$LIBS $GTK_LIBS"
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7016 #include <gtk/gtk.h>
7017 #include <stdio.h>
7020 main ()
7022 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7024 return 0;
7026 _ACEOF
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -z "$ac_c_werror_flag"
7037 || test ! -s conftest.err'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; } &&
7043 { ac_try='test -s conftest$ac_exeext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7049 echo "*** The test program compiled, but did not run. This usually means"
7050 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7051 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7052 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7053 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7054 echo "*** is required on your system"
7055 echo "***"
7056 echo "*** If you have an old version installed, it is best to remove it, although"
7057 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 echo "*** The test program failed to compile or link. See the file config.log for the"
7063 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7065 rm -f conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7067 CFLAGS="$ac_save_CFLAGS"
7068 LIBS="$ac_save_LIBS"
7071 GTK_CFLAGS=""
7072 GTK_LIBS=""
7073 exit 1
7077 rm -f conf.gtktest
7080 # Checks for GtkGLExt.
7082 succeeded=no
7084 if test -z "$PKG_CONFIG"; then
7085 # Extract the first word of "pkg-config", so it can be a program name with args.
7086 set dummy pkg-config; ac_word=$2
7087 echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 case $PKG_CONFIG in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7108 done
7109 done
7111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7113 esac
7115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7117 if test -n "$PKG_CONFIG"; then
7118 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7119 echo "${ECHO_T}$PKG_CONFIG" >&6
7120 else
7121 echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7127 if test "$PKG_CONFIG" = "no" ; then
7128 echo "*** The pkg-config script could not be found. Make sure it is"
7129 echo "*** in your path, or set the PKG_CONFIG environment variable"
7130 echo "*** to the full path to pkg-config."
7131 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7132 else
7133 PKG_CONFIG_MIN_VERSION=0.9.0
7134 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7135 echo "$as_me:$LINENO: checking for gtkglext-1.0 >= 0.7.0" >&5
7136 echo $ECHO_N "checking for gtkglext-1.0 >= 0.7.0... $ECHO_C" >&6
7138 if $PKG_CONFIG --exists "gtkglext-1.0 >= 0.7.0" ; then
7139 echo "$as_me:$LINENO: result: yes" >&5
7140 echo "${ECHO_T}yes" >&6
7141 succeeded=yes
7143 echo "$as_me:$LINENO: checking GTKGLEXT_CFLAGS" >&5
7144 echo $ECHO_N "checking GTKGLEXT_CFLAGS... $ECHO_C" >&6
7145 GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0"`
7146 echo "$as_me:$LINENO: result: $GTKGLEXT_CFLAGS" >&5
7147 echo "${ECHO_T}$GTKGLEXT_CFLAGS" >&6
7149 echo "$as_me:$LINENO: checking GTKGLEXT_LIBS" >&5
7150 echo $ECHO_N "checking GTKGLEXT_LIBS... $ECHO_C" >&6
7151 GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0"`
7152 echo "$as_me:$LINENO: result: $GTKGLEXT_LIBS" >&5
7153 echo "${ECHO_T}$GTKGLEXT_LIBS" >&6
7154 else
7155 GTKGLEXT_CFLAGS=""
7156 GTKGLEXT_LIBS=""
7157 ## If we have a custom action on failure, don't print errors, but
7158 ## do set a variable so people can do so.
7159 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7160 echo $GTKGLEXT_PKG_ERRORS
7165 else
7166 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7167 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7171 if test $succeeded = yes; then
7173 else
7174 { { echo "$as_me:$LINENO: error: Library requirements (gtkglext-1.0 >= 0.7.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7175 echo "$as_me: error: Library requirements (gtkglext-1.0 >= 0.7.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7176 { (exit 1); exit 1; }; }
7179 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7180 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
7181 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7183 # I18n.
7184 ALL_LINGUAS=$(echo po/*.po | sed 's|\.po||g' | sed 's|po/||g')
7187 MKINSTALLDIRS=
7188 if test -n "$ac_aux_dir"; then
7189 case "$ac_aux_dir" in
7190 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7191 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7192 esac
7194 if test -z "$MKINSTALLDIRS"; then
7195 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7200 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7201 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7202 # Check whether --enable-nls or --disable-nls was given.
7203 if test "${enable_nls+set}" = set; then
7204 enableval="$enable_nls"
7205 USE_NLS=$enableval
7206 else
7207 USE_NLS=yes
7209 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7210 echo "${ECHO_T}$USE_NLS" >&6
7217 # Prepare PATH_SEPARATOR.
7218 # The user is always right.
7219 if test "${PATH_SEPARATOR+set}" != set; then
7220 echo "#! /bin/sh" >conf$$.sh
7221 echo "exit 0" >>conf$$.sh
7222 chmod +x conf$$.sh
7223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7224 PATH_SEPARATOR=';'
7225 else
7226 PATH_SEPARATOR=:
7228 rm -f conf$$.sh
7231 # Find out how to test for executable files. Don't use a zero-byte file,
7232 # as systems may use methods other than mode bits to determine executability.
7233 cat >conf$$.file <<_ASEOF
7234 #! /bin/sh
7235 exit 0
7236 _ASEOF
7237 chmod +x conf$$.file
7238 if test -x conf$$.file >/dev/null 2>&1; then
7239 ac_executable_p="test -x"
7240 else
7241 ac_executable_p="test -f"
7243 rm -f conf$$.file
7245 # Extract the first word of "msgfmt", so it can be a program name with args.
7246 set dummy msgfmt; ac_word=$2
7247 echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7249 if test "${ac_cv_path_MSGFMT+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 case "$MSGFMT" in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7257 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7258 for ac_dir in $PATH; do
7259 IFS="$ac_save_IFS"
7260 test -z "$ac_dir" && ac_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7263 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7264 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7265 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7266 break 2
7269 done
7270 done
7271 IFS="$ac_save_IFS"
7272 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7274 esac
7276 MSGFMT="$ac_cv_path_MSGFMT"
7277 if test "$MSGFMT" != ":"; then
7278 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7279 echo "${ECHO_T}$MSGFMT" >&6
7280 else
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7285 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7286 set dummy gmsgfmt; ac_word=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 case $GMSGFMT in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7308 done
7309 done
7311 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7313 esac
7315 GMSGFMT=$ac_cv_path_GMSGFMT
7317 if test -n "$GMSGFMT"; then
7318 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7319 echo "${ECHO_T}$GMSGFMT" >&6
7320 else
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7327 # Prepare PATH_SEPARATOR.
7328 # The user is always right.
7329 if test "${PATH_SEPARATOR+set}" != set; then
7330 echo "#! /bin/sh" >conf$$.sh
7331 echo "exit 0" >>conf$$.sh
7332 chmod +x conf$$.sh
7333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7334 PATH_SEPARATOR=';'
7335 else
7336 PATH_SEPARATOR=:
7338 rm -f conf$$.sh
7341 # Find out how to test for executable files. Don't use a zero-byte file,
7342 # as systems may use methods other than mode bits to determine executability.
7343 cat >conf$$.file <<_ASEOF
7344 #! /bin/sh
7345 exit 0
7346 _ASEOF
7347 chmod +x conf$$.file
7348 if test -x conf$$.file >/dev/null 2>&1; then
7349 ac_executable_p="test -x"
7350 else
7351 ac_executable_p="test -f"
7353 rm -f conf$$.file
7355 # Extract the first word of "xgettext", so it can be a program name with args.
7356 set dummy xgettext; ac_word=$2
7357 echo "$as_me:$LINENO: checking for $ac_word" >&5
7358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7359 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362 case "$XGETTEXT" in
7363 [\\/]* | ?:[\\/]*)
7364 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7367 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7368 for ac_dir in $PATH; do
7369 IFS="$ac_save_IFS"
7370 test -z "$ac_dir" && ac_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7373 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7374 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7375 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7376 break 2
7379 done
7380 done
7381 IFS="$ac_save_IFS"
7382 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7384 esac
7386 XGETTEXT="$ac_cv_path_XGETTEXT"
7387 if test "$XGETTEXT" != ":"; then
7388 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7389 echo "${ECHO_T}$XGETTEXT" >&6
7390 else
7391 echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7395 rm -f messages.po
7398 # Prepare PATH_SEPARATOR.
7399 # The user is always right.
7400 if test "${PATH_SEPARATOR+set}" != set; then
7401 echo "#! /bin/sh" >conf$$.sh
7402 echo "exit 0" >>conf$$.sh
7403 chmod +x conf$$.sh
7404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7405 PATH_SEPARATOR=';'
7406 else
7407 PATH_SEPARATOR=:
7409 rm -f conf$$.sh
7412 # Find out how to test for executable files. Don't use a zero-byte file,
7413 # as systems may use methods other than mode bits to determine executability.
7414 cat >conf$$.file <<_ASEOF
7415 #! /bin/sh
7416 exit 0
7417 _ASEOF
7418 chmod +x conf$$.file
7419 if test -x conf$$.file >/dev/null 2>&1; then
7420 ac_executable_p="test -x"
7421 else
7422 ac_executable_p="test -f"
7424 rm -f conf$$.file
7426 # Extract the first word of "msgmerge", so it can be a program name with args.
7427 set dummy msgmerge; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 case "$MSGMERGE" in
7434 [\\/]* | ?:[\\/]*)
7435 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7438 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7439 for ac_dir in $PATH; do
7440 IFS="$ac_save_IFS"
7441 test -z "$ac_dir" && ac_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7444 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7445 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7446 break 2
7449 done
7450 done
7451 IFS="$ac_save_IFS"
7452 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7454 esac
7456 MSGMERGE="$ac_cv_path_MSGMERGE"
7457 if test "$MSGMERGE" != ":"; then
7458 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7459 echo "${ECHO_T}$MSGMERGE" >&6
7460 else
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7466 if test "$GMSGFMT" != ":"; then
7467 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7468 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7470 else
7471 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7472 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7473 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7474 GMSGFMT=":"
7478 if test "$XGETTEXT" != ":"; then
7479 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7480 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7482 else
7483 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7484 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7485 XGETTEXT=":"
7487 rm -f messages.po
7490 ac_config_commands="$ac_config_commands default-1"
7493 # Make sure we can run config.sub.
7494 $ac_config_sub sun4 >/dev/null 2>&1 ||
7495 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7496 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7497 { (exit 1); exit 1; }; }
7499 echo "$as_me:$LINENO: checking build system type" >&5
7500 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7501 if test "${ac_cv_build+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 ac_cv_build_alias=$build_alias
7505 test -z "$ac_cv_build_alias" &&
7506 ac_cv_build_alias=`$ac_config_guess`
7507 test -z "$ac_cv_build_alias" &&
7508 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7509 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7510 { (exit 1); exit 1; }; }
7511 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7513 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7514 { (exit 1); exit 1; }; }
7517 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7518 echo "${ECHO_T}$ac_cv_build" >&6
7519 build=$ac_cv_build
7520 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7521 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7522 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7525 echo "$as_me:$LINENO: checking host system type" >&5
7526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7527 if test "${ac_cv_host+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 ac_cv_host_alias=$host_alias
7531 test -z "$ac_cv_host_alias" &&
7532 ac_cv_host_alias=$ac_cv_build_alias
7533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7536 { (exit 1); exit 1; }; }
7539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7540 echo "${ECHO_T}$ac_cv_host" >&6
7541 host=$ac_cv_host
7542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7547 echo "$as_me:$LINENO: checking for library containing strerror" >&5
7548 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
7549 if test "${ac_cv_search_strerror+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 ac_func_search_save_LIBS=$LIBS
7553 ac_cv_search_strerror=no
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h. */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7561 /* Override any gcc2 internal prototype to avoid an error. */
7562 #ifdef __cplusplus
7563 extern "C"
7564 #endif
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567 char strerror ();
7569 main ()
7571 strerror ();
7573 return 0;
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594 (eval $ac_try) 2>&5
7595 ac_status=$?
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_search_strerror="none required"
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7604 rm -f conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7606 if test "$ac_cv_search_strerror" = no; then
7607 for ac_lib in cposix; do
7608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 #ifdef __cplusplus
7618 extern "C"
7619 #endif
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char strerror ();
7624 main ()
7626 strerror ();
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try='test -z "$ac_c_werror_flag"
7641 || test ! -s conftest.err'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; } &&
7647 { ac_try='test -s conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 ac_cv_search_strerror="-l$ac_lib"
7654 break
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7660 rm -f conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
7662 done
7664 LIBS=$ac_func_search_save_LIBS
7666 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
7667 echo "${ECHO_T}$ac_cv_search_strerror" >&6
7668 if test "$ac_cv_search_strerror" != no; then
7669 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
7673 echo "$as_me:$LINENO: checking for egrep" >&5
7674 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7675 if test "${ac_cv_prog_egrep+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7679 then ac_cv_prog_egrep='grep -E'
7680 else ac_cv_prog_egrep='egrep'
7683 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7684 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7685 EGREP=$ac_cv_prog_egrep
7688 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7689 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7690 if test "${ac_cv_header_stdc+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 #include <stdlib.h>
7700 #include <stdarg.h>
7701 #include <string.h>
7702 #include <float.h>
7705 main ()
7709 return 0;
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try='test -s conftest.$ac_objext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_header_stdc=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_cv_header_stdc=no
7741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7743 if test $ac_cv_header_stdc = yes; then
7744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 #include <string.h>
7753 _ACEOF
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755 $EGREP "memchr" >/dev/null 2>&1; then
7757 else
7758 ac_cv_header_stdc=no
7760 rm -f conftest*
7764 if test $ac_cv_header_stdc = yes; then
7765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 #include <stdlib.h>
7774 _ACEOF
7775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7776 $EGREP "free" >/dev/null 2>&1; then
7778 else
7779 ac_cv_header_stdc=no
7781 rm -f conftest*
7785 if test $ac_cv_header_stdc = yes; then
7786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7787 if test "$cross_compiling" = yes; then
7789 else
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h. */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 #include <ctype.h>
7797 #if ((' ' & 0x0FF) == 0x020)
7798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7800 #else
7801 # define ISLOWER(c) \
7802 (('a' <= (c) && (c) <= 'i') \
7803 || ('j' <= (c) && (c) <= 'r') \
7804 || ('s' <= (c) && (c) <= 'z'))
7805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7806 #endif
7808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7810 main ()
7812 int i;
7813 for (i = 0; i < 256; i++)
7814 if (XOR (islower (i), ISLOWER (i))
7815 || toupper (i) != TOUPPER (i))
7816 exit(2);
7817 exit (0);
7819 _ACEOF
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7832 else
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ( exit $ac_status )
7838 ac_cv_header_stdc=no
7840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7844 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7845 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7846 if test $ac_cv_header_stdc = yes; then
7848 cat >>confdefs.h <<\_ACEOF
7849 #define STDC_HEADERS 1
7850 _ACEOF
7854 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7855 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7856 if test "${ac_cv_c_const+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 cat >conftest.$ac_ext <<_ACEOF
7860 /* confdefs.h. */
7861 _ACEOF
7862 cat confdefs.h >>conftest.$ac_ext
7863 cat >>conftest.$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7867 main ()
7869 /* FIXME: Include the comments suggested by Paul. */
7870 #ifndef __cplusplus
7871 /* Ultrix mips cc rejects this. */
7872 typedef int charset[2];
7873 const charset x;
7874 /* SunOS 4.1.1 cc rejects this. */
7875 char const *const *ccp;
7876 char **p;
7877 /* NEC SVR4.0.2 mips cc rejects this. */
7878 struct point {int x, y;};
7879 static struct point const zero = {0,0};
7880 /* AIX XL C 1.02.0.0 rejects this.
7881 It does not let you subtract one const X* pointer from another in
7882 an arm of an if-expression whose if-part is not a constant
7883 expression */
7884 const char *g = "string";
7885 ccp = &g + (g ? g-g : 0);
7886 /* HPUX 7.0 cc rejects these. */
7887 ++ccp;
7888 p = (char**) ccp;
7889 ccp = (char const *const *) p;
7890 { /* SCO 3.2v4 cc rejects this. */
7891 char *t;
7892 char const *s = 0 ? (char *) 0 : (char const *) 0;
7894 *t++ = 0;
7896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7897 int x[] = {25, 17};
7898 const int *foo = &x[0];
7899 ++foo;
7901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7902 typedef const int *iptr;
7903 iptr p = 0;
7904 ++p;
7906 { /* AIX XL C 1.02.0.0 rejects this saying
7907 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7908 struct s { int j; const int *ap[3]; };
7909 struct s *b; b->j = 5;
7911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7912 const int foo = 10;
7914 #endif
7917 return 0;
7919 _ACEOF
7920 rm -f conftest.$ac_objext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922 (eval $ac_compile) 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -z "$ac_c_werror_flag"
7930 || test ! -s conftest.err'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_c_const=yes
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 ac_cv_c_const=no
7949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7952 echo "${ECHO_T}$ac_cv_c_const" >&6
7953 if test $ac_cv_c_const = no; then
7955 cat >>confdefs.h <<\_ACEOF
7956 #define const
7957 _ACEOF
7961 echo "$as_me:$LINENO: checking for inline" >&5
7962 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7963 if test "${ac_cv_c_inline+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 ac_cv_c_inline=no
7967 for ac_kw in inline __inline__ __inline; do
7968 cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h. */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 #ifndef __cplusplus
7975 typedef int foo_t;
7976 static $ac_kw foo_t static_foo () {return 0; }
7977 $ac_kw foo_t foo () {return 0; }
7978 #endif
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_cv_c_inline=$ac_kw; break
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010 done
8013 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8014 echo "${ECHO_T}$ac_cv_c_inline" >&6
8017 case $ac_cv_c_inline in
8018 inline | yes) ;;
8020 case $ac_cv_c_inline in
8021 no) ac_val=;;
8022 *) ac_val=$ac_cv_c_inline;;
8023 esac
8024 cat >>confdefs.h <<_ACEOF
8025 #ifndef __cplusplus
8026 #define inline $ac_val
8027 #endif
8028 _ACEOF
8030 esac
8032 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8043 inttypes.h stdint.h unistd.h
8045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8046 echo "$as_me:$LINENO: checking for $ac_header" >&5
8047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8059 #include <$ac_header>
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8063 (eval $ac_compile) 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -z "$ac_c_werror_flag"
8071 || test ! -s conftest.err'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest.$ac_objext'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; }; then
8083 eval "$as_ac_Header=yes"
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 eval "$as_ac_Header=no"
8090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8095 cat >>confdefs.h <<_ACEOF
8096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8097 _ACEOF
8101 done
8104 echo "$as_me:$LINENO: checking for off_t" >&5
8105 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8106 if test "${ac_cv_type_off_t+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8117 main ()
8119 if ((off_t *) 0)
8120 return 0;
8121 if (sizeof (off_t))
8122 return 0;
8124 return 0;
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_type_off_t=yes
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_cv_type_off_t=no
8156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8159 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8160 if test $ac_cv_type_off_t = yes; then
8162 else
8164 cat >>confdefs.h <<_ACEOF
8165 #define off_t long
8166 _ACEOF
8170 echo "$as_me:$LINENO: checking for size_t" >&5
8171 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8172 if test "${ac_cv_type_size_t+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8183 main ()
8185 if ((size_t *) 0)
8186 return 0;
8187 if (sizeof (size_t))
8188 return 0;
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -z "$ac_c_werror_flag"
8203 || test ! -s conftest.err'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest.$ac_objext'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_type_size_t=yes
8216 else
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 ac_cv_type_size_t=no
8222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8224 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8225 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8226 if test $ac_cv_type_size_t = yes; then
8228 else
8230 cat >>confdefs.h <<_ACEOF
8231 #define size_t unsigned
8232 _ACEOF
8236 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8237 # for constant arguments. Useless!
8238 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8239 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8240 if test "${ac_cv_working_alloca_h+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #include <alloca.h>
8251 main ()
8253 char *p = (char *) alloca (2 * sizeof (int));
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest$ac_exeext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_cv_working_alloca_h=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 ac_cv_working_alloca_h=no
8287 rm -f conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8291 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8292 if test $ac_cv_working_alloca_h = yes; then
8294 cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_ALLOCA_H 1
8296 _ACEOF
8300 echo "$as_me:$LINENO: checking for alloca" >&5
8301 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8302 if test "${ac_cv_func_alloca_works+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 #ifdef __GNUC__
8312 # define alloca __builtin_alloca
8313 #else
8314 # ifdef _MSC_VER
8315 # include <malloc.h>
8316 # define alloca _alloca
8317 # else
8318 # if HAVE_ALLOCA_H
8319 # include <alloca.h>
8320 # else
8321 # ifdef _AIX
8322 #pragma alloca
8323 # else
8324 # ifndef alloca /* predefined by HP cc +Olibcalls */
8325 char *alloca ();
8326 # endif
8327 # endif
8328 # endif
8329 # endif
8330 #endif
8333 main ()
8335 char *p = (char *) alloca (1);
8337 return 0;
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag"
8350 || test ! -s conftest.err'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_func_alloca_works=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_func_alloca_works=no
8369 rm -f conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8373 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8375 if test $ac_cv_func_alloca_works = yes; then
8377 cat >>confdefs.h <<\_ACEOF
8378 #define HAVE_ALLOCA 1
8379 _ACEOF
8381 else
8382 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8383 # that cause trouble. Some versions do not even contain alloca or
8384 # contain a buggy version. If you still want to use their alloca,
8385 # use ar to extract alloca.o from them instead of compiling alloca.c.
8387 ALLOCA=alloca.$ac_objext
8389 cat >>confdefs.h <<\_ACEOF
8390 #define C_ALLOCA 1
8391 _ACEOF
8394 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8395 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8396 if test "${ac_cv_os_cray+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #if defined(CRAY) && ! defined(CRAY2)
8406 webecray
8407 #else
8408 wenotbecray
8409 #endif
8411 _ACEOF
8412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8413 $EGREP "webecray" >/dev/null 2>&1; then
8414 ac_cv_os_cray=yes
8415 else
8416 ac_cv_os_cray=no
8418 rm -f conftest*
8421 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8422 echo "${ECHO_T}$ac_cv_os_cray" >&6
8423 if test $ac_cv_os_cray = yes; then
8424 for ac_func in _getb67 GETB67 getb67; do
8425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8426 echo "$as_me:$LINENO: checking for $ac_func" >&5
8427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8428 if eval "test \"\${$as_ac_var+set}\" = set"; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8439 #define $ac_func innocuous_$ac_func
8441 /* System header to define __stub macros and hopefully few prototypes,
8442 which can conflict with char $ac_func (); below.
8443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8444 <limits.h> exists even on freestanding compilers. */
8446 #ifdef __STDC__
8447 # include <limits.h>
8448 #else
8449 # include <assert.h>
8450 #endif
8452 #undef $ac_func
8454 /* Override any gcc2 internal prototype to avoid an error. */
8455 #ifdef __cplusplus
8456 extern "C"
8458 #endif
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8461 char $ac_func ();
8462 /* The GNU C library defines this for functions which it implements
8463 to always fail with ENOSYS. Some functions are actually named
8464 something starting with __ and the normal name is an alias. */
8465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8466 choke me
8467 #else
8468 char (*f) () = $ac_func;
8469 #endif
8470 #ifdef __cplusplus
8472 #endif
8475 main ()
8477 return f != $ac_func;
8479 return 0;
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 eval "$as_ac_var=yes"
8505 else
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 eval "$as_ac_var=no"
8511 rm -f conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8516 if test `eval echo '${'$as_ac_var'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519 #define CRAY_STACKSEG_END $ac_func
8520 _ACEOF
8522 break
8525 done
8528 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8529 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8530 if test "${ac_cv_c_stack_direction+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 if test "$cross_compiling" = yes; then
8534 ac_cv_c_stack_direction=0
8535 else
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8543 find_stack_direction ()
8545 static char *addr = 0;
8546 auto char dummy;
8547 if (addr == 0)
8549 addr = &dummy;
8550 return find_stack_direction ();
8552 else
8553 return (&dummy > addr) ? 1 : -1;
8557 main ()
8559 exit (find_stack_direction () < 0);
8561 _ACEOF
8562 rm -f conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_c_stack_direction=1
8574 else
8575 echo "$as_me: program exited with status $ac_status" >&5
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8579 ( exit $ac_status )
8580 ac_cv_c_stack_direction=-1
8582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8586 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8588 cat >>confdefs.h <<_ACEOF
8589 #define STACK_DIRECTION $ac_cv_c_stack_direction
8590 _ACEOF
8597 for ac_header in stdlib.h unistd.h
8599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601 echo "$as_me:$LINENO: checking for $ac_header" >&5
8602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608 else
8609 # Is the header compilable?
8610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_includes_default
8619 #include <$ac_header>
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_header_compiler=yes
8644 else
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 ac_header_compiler=no
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652 echo "${ECHO_T}$ac_header_compiler" >&6
8654 # Is the header present?
8655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 #include <$ac_header>
8664 _ACEOF
8665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } >/dev/null; then
8673 if test -s conftest.err; then
8674 ac_cpp_err=$ac_c_preproc_warn_flag
8675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8676 else
8677 ac_cpp_err=
8679 else
8680 ac_cpp_err=yes
8682 if test -z "$ac_cpp_err"; then
8683 ac_header_preproc=yes
8684 else
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_header_preproc=no
8690 rm -f conftest.err conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692 echo "${ECHO_T}$ac_header_preproc" >&6
8694 # So? What about this header?
8695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8696 yes:no: )
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8701 ac_header_preproc=yes
8703 no:yes:* )
8704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8717 cat <<\_ASBOX
8718 ## ------------------------------- ##
8719 ## Report this to guichaz@yahoo.fr ##
8720 ## ------------------------------- ##
8721 _ASBOX
8723 sed "s/^/$as_me: WARNING: /" >&2
8725 esac
8726 echo "$as_me:$LINENO: checking for $ac_header" >&5
8727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 eval "$as_ac_Header=\$ac_header_preproc"
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8738 cat >>confdefs.h <<_ACEOF
8739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8740 _ACEOF
8744 done
8747 for ac_func in getpagesize
8749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8750 echo "$as_me:$LINENO: checking for $ac_func" >&5
8751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8752 if eval "test \"\${$as_ac_var+set}\" = set"; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8763 #define $ac_func innocuous_$ac_func
8765 /* System header to define __stub macros and hopefully few prototypes,
8766 which can conflict with char $ac_func (); below.
8767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 <limits.h> exists even on freestanding compilers. */
8770 #ifdef __STDC__
8771 # include <limits.h>
8772 #else
8773 # include <assert.h>
8774 #endif
8776 #undef $ac_func
8778 /* Override any gcc2 internal prototype to avoid an error. */
8779 #ifdef __cplusplus
8780 extern "C"
8782 #endif
8783 /* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785 char $ac_func ();
8786 /* The GNU C library defines this for functions which it implements
8787 to always fail with ENOSYS. Some functions are actually named
8788 something starting with __ and the normal name is an alias. */
8789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8790 choke me
8791 #else
8792 char (*f) () = $ac_func;
8793 #endif
8794 #ifdef __cplusplus
8796 #endif
8799 main ()
8801 return f != $ac_func;
8803 return 0;
8805 _ACEOF
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest$ac_exeext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 eval "$as_ac_var=yes"
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 eval "$as_ac_var=no"
8835 rm -f conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8840 if test `eval echo '${'$as_ac_var'}'` = yes; then
8841 cat >>confdefs.h <<_ACEOF
8842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8843 _ACEOF
8846 done
8848 echo "$as_me:$LINENO: checking for working mmap" >&5
8849 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8850 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 if test "$cross_compiling" = yes; then
8854 ac_cv_func_mmap_fixed_mapped=no
8855 else
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h. */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8862 $ac_includes_default
8863 /* malloc might have been renamed as rpl_malloc. */
8864 #undef malloc
8866 /* Thanks to Mike Haertel and Jim Avera for this test.
8867 Here is a matrix of mmap possibilities:
8868 mmap private not fixed
8869 mmap private fixed at somewhere currently unmapped
8870 mmap private fixed at somewhere already mapped
8871 mmap shared not fixed
8872 mmap shared fixed at somewhere currently unmapped
8873 mmap shared fixed at somewhere already mapped
8874 For private mappings, we should verify that changes cannot be read()
8875 back from the file, nor mmap's back from the file at a different
8876 address. (There have been systems where private was not correctly
8877 implemented like the infamous i386 svr4.0, and systems where the
8878 VM page cache was not coherent with the file system buffer cache
8879 like early versions of FreeBSD and possibly contemporary NetBSD.)
8880 For shared mappings, we should conversely verify that changes get
8881 propagated back to all the places they're supposed to be.
8883 Grep wants private fixed already mapped.
8884 The main things grep needs to know about mmap are:
8885 * does it exist and is it safe to write into the mmap'd area
8886 * how to use it (BSD variants) */
8888 #include <fcntl.h>
8889 #include <sys/mman.h>
8891 #if !STDC_HEADERS && !HAVE_STDLIB_H
8892 char *malloc ();
8893 #endif
8895 /* This mess was copied from the GNU getpagesize.h. */
8896 #if !HAVE_GETPAGESIZE
8897 /* Assume that all systems that can run configure have sys/param.h. */
8898 # if !HAVE_SYS_PARAM_H
8899 # define HAVE_SYS_PARAM_H 1
8900 # endif
8902 # ifdef _SC_PAGESIZE
8903 # define getpagesize() sysconf(_SC_PAGESIZE)
8904 # else /* no _SC_PAGESIZE */
8905 # if HAVE_SYS_PARAM_H
8906 # include <sys/param.h>
8907 # ifdef EXEC_PAGESIZE
8908 # define getpagesize() EXEC_PAGESIZE
8909 # else /* no EXEC_PAGESIZE */
8910 # ifdef NBPG
8911 # define getpagesize() NBPG * CLSIZE
8912 # ifndef CLSIZE
8913 # define CLSIZE 1
8914 # endif /* no CLSIZE */
8915 # else /* no NBPG */
8916 # ifdef NBPC
8917 # define getpagesize() NBPC
8918 # else /* no NBPC */
8919 # ifdef PAGESIZE
8920 # define getpagesize() PAGESIZE
8921 # endif /* PAGESIZE */
8922 # endif /* no NBPC */
8923 # endif /* no NBPG */
8924 # endif /* no EXEC_PAGESIZE */
8925 # else /* no HAVE_SYS_PARAM_H */
8926 # define getpagesize() 8192 /* punt totally */
8927 # endif /* no HAVE_SYS_PARAM_H */
8928 # endif /* no _SC_PAGESIZE */
8930 #endif /* no HAVE_GETPAGESIZE */
8933 main ()
8935 char *data, *data2, *data3;
8936 int i, pagesize;
8937 int fd;
8939 pagesize = getpagesize ();
8941 /* First, make a file with some known garbage in it. */
8942 data = (char *) malloc (pagesize);
8943 if (!data)
8944 exit (1);
8945 for (i = 0; i < pagesize; ++i)
8946 *(data + i) = rand ();
8947 umask (0);
8948 fd = creat ("conftest.mmap", 0600);
8949 if (fd < 0)
8950 exit (1);
8951 if (write (fd, data, pagesize) != pagesize)
8952 exit (1);
8953 close (fd);
8955 /* Next, try to mmap the file at a fixed address which already has
8956 something else allocated at it. If we can, also make sure that
8957 we see the same garbage. */
8958 fd = open ("conftest.mmap", O_RDWR);
8959 if (fd < 0)
8960 exit (1);
8961 data2 = (char *) malloc (2 * pagesize);
8962 if (!data2)
8963 exit (1);
8964 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8965 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8966 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8967 exit (1);
8968 for (i = 0; i < pagesize; ++i)
8969 if (*(data + i) != *(data2 + i))
8970 exit (1);
8972 /* Finally, make sure that changes to the mapped area do not
8973 percolate back to the file as seen by read(). (This is a bug on
8974 some variants of i386 svr4.0.) */
8975 for (i = 0; i < pagesize; ++i)
8976 *(data2 + i) = *(data2 + i) + 1;
8977 data3 = (char *) malloc (pagesize);
8978 if (!data3)
8979 exit (1);
8980 if (read (fd, data3, pagesize) != pagesize)
8981 exit (1);
8982 for (i = 0; i < pagesize; ++i)
8983 if (*(data + i) != *(data3 + i))
8984 exit (1);
8985 close (fd);
8986 exit (0);
8988 _ACEOF
8989 rm -f conftest$ac_exeext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8991 (eval $ac_link) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_cv_func_mmap_fixed_mapped=yes
9001 else
9002 echo "$as_me: program exited with status $ac_status" >&5
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 ( exit $ac_status )
9007 ac_cv_func_mmap_fixed_mapped=no
9009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9013 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9014 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_MMAP 1
9018 _ACEOF
9021 rm -f conftest.mmap
9024 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9025 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9026 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9036 #include <features.h>
9037 #ifdef __GNU_LIBRARY__
9038 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9039 Lucky GNU user
9040 #endif
9041 #endif
9043 _ACEOF
9044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9045 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9046 ac_cv_gnu_library_2_1=yes
9047 else
9048 ac_cv_gnu_library_2_1=no
9050 rm -f conftest*
9055 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9056 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9058 GLIBC21="$ac_cv_gnu_library_2_1"
9063 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9064 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9065 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9069 if test "$cross_compiling" = yes; then
9071 # Guess based on the CPU.
9072 case "$host_cpu" in
9073 alpha* | i3456786 | m68k | s390*)
9074 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9076 gt_cv_int_divbyzero_sigfpe="guessing no";;
9077 esac
9079 else
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 #include <stdlib.h>
9088 #include <signal.h>
9090 static void
9091 #ifdef __cplusplus
9092 sigfpe_handler (int sig)
9093 #else
9094 sigfpe_handler (sig) int sig;
9095 #endif
9097 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9098 exit (sig != SIGFPE);
9101 int x = 1;
9102 int y = 0;
9103 int z;
9104 int nan;
9106 int main ()
9108 signal (SIGFPE, sigfpe_handler);
9109 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9110 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9111 signal (SIGTRAP, sigfpe_handler);
9112 #endif
9113 /* Linux/SPARC yields signal SIGILL. */
9114 #if defined (__sparc__) && defined (__linux__)
9115 signal (SIGILL, sigfpe_handler);
9116 #endif
9118 z = x / y;
9119 nan = y / y;
9120 exit (1);
9123 _ACEOF
9124 rm -f conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 gt_cv_int_divbyzero_sigfpe=yes
9136 else
9137 echo "$as_me: program exited with status $ac_status" >&5
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ( exit $ac_status )
9142 gt_cv_int_divbyzero_sigfpe=no
9144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9149 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9150 case "$gt_cv_int_divbyzero_sigfpe" in
9151 *yes) value=1;;
9152 *) value=0;;
9153 esac
9155 cat >>confdefs.h <<_ACEOF
9156 #define INTDIV0_RAISES_SIGFPE $value
9157 _ACEOF
9161 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9162 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9163 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9173 #include <inttypes.h>
9175 main ()
9177 uintmax_t i = (uintmax_t) -1;
9179 return 0;
9181 _ACEOF
9182 rm -f conftest.$ac_objext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9184 (eval $ac_compile) 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 jm_ac_cv_header_inttypes_h=yes
9205 else
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 jm_ac_cv_header_inttypes_h=no
9211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9213 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
9214 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
9215 if test $jm_ac_cv_header_inttypes_h = yes; then
9217 cat >>confdefs.h <<_ACEOF
9218 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9219 _ACEOF
9224 echo "$as_me:$LINENO: checking for stdint.h" >&5
9225 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
9226 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <stdint.h>
9238 main ()
9240 uintmax_t i = (uintmax_t) -1;
9242 return 0;
9244 _ACEOF
9245 rm -f conftest.$ac_objext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9247 (eval $ac_compile) 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag"
9255 || test ! -s conftest.err'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; } &&
9261 { ac_try='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 jm_ac_cv_header_stdint_h=yes
9268 else
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 jm_ac_cv_header_stdint_h=no
9274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9276 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
9277 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
9278 if test $jm_ac_cv_header_stdint_h = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_STDINT_H_WITH_UINTMAX 1
9282 _ACEOF
9287 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9288 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9289 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 unsigned long long ull = 1; int i = 63;
9300 main ()
9302 unsigned long long ullmax = (unsigned long long) -1;
9303 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9305 return 0;
9307 _ACEOF
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310 (eval $ac_link) 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_type_unsigned_long_long=yes
9331 else
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_type_unsigned_long_long=no
9337 rm -f conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9341 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9342 if test $ac_cv_type_unsigned_long_long = yes; then
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_UNSIGNED_LONG_LONG 1
9346 _ACEOF
9353 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9355 test $ac_cv_type_unsigned_long_long = yes \
9356 && ac_type='unsigned long long' \
9357 || ac_type='unsigned long'
9359 cat >>confdefs.h <<_ACEOF
9360 #define uintmax_t $ac_type
9361 _ACEOF
9363 else
9365 cat >>confdefs.h <<\_ACEOF
9366 #define HAVE_UINTMAX_T 1
9367 _ACEOF
9372 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9373 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9374 if test "${gt_cv_header_inttypes_h+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 #include <sys/types.h>
9385 #include <inttypes.h>
9387 main ()
9391 return 0;
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 gt_cv_header_inttypes_h=yes
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 gt_cv_header_inttypes_h=no
9423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9426 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9427 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9428 if test $gt_cv_header_inttypes_h = yes; then
9430 cat >>confdefs.h <<_ACEOF
9431 #define HAVE_INTTYPES_H 1
9432 _ACEOF
9438 if test $gt_cv_header_inttypes_h = yes; then
9439 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9440 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9441 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 #include <inttypes.h>
9452 #ifdef PRId32
9453 char *p = PRId32;
9454 #endif
9457 main ()
9461 return 0;
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9466 (eval $ac_compile) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest.$ac_objext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 gt_cv_inttypes_pri_broken=no
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9491 gt_cv_inttypes_pri_broken=yes
9493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9497 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9499 if test "$gt_cv_inttypes_pri_broken" = yes; then
9501 cat >>confdefs.h <<_ACEOF
9502 #define PRI_MACROS_BROKEN 1
9503 _ACEOF
9508 if test "X$prefix" = "XNONE"; then
9509 acl_final_prefix="$ac_default_prefix"
9510 else
9511 acl_final_prefix="$prefix"
9513 if test "X$exec_prefix" = "XNONE"; then
9514 acl_final_exec_prefix='${prefix}'
9515 else
9516 acl_final_exec_prefix="$exec_prefix"
9518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9521 prefix="$acl_save_prefix"
9524 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9525 if test "${with_gnu_ld+set}" = set; then
9526 withval="$with_gnu_ld"
9527 test "$withval" = no || with_gnu_ld=yes
9528 else
9529 with_gnu_ld=no
9531 # Prepare PATH_SEPARATOR.
9532 # The user is always right.
9533 if test "${PATH_SEPARATOR+set}" != set; then
9534 echo "#! /bin/sh" >conf$$.sh
9535 echo "exit 0" >>conf$$.sh
9536 chmod +x conf$$.sh
9537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9538 PATH_SEPARATOR=';'
9539 else
9540 PATH_SEPARATOR=:
9542 rm -f conf$$.sh
9544 ac_prog=ld
9545 if test "$GCC" = yes; then
9546 # Check if gcc -print-prog-name=ld gives a path.
9547 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9548 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9549 case $host in
9550 *-*-mingw*)
9551 # gcc leaves a trailing carriage return which upsets mingw
9552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9555 esac
9556 case $ac_prog in
9557 # Accept absolute paths.
9558 [\\/]* | [A-Za-z]:[\\/]*)
9559 re_direlt='/[^/][^/]*/\.\./'
9560 # Canonicalize the path of ld
9561 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9562 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9564 done
9565 test -z "$LD" && LD="$ac_prog"
9568 # If it fails, then pretend we aren't using GCC.
9569 ac_prog=ld
9572 # If it is relative, then search for the first ld in PATH.
9573 with_gnu_ld=unknown
9575 esac
9576 elif test "$with_gnu_ld" = yes; then
9577 echo "$as_me:$LINENO: checking for GNU ld" >&5
9578 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9579 else
9580 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9581 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9583 if test "${acl_cv_path_LD+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 if test -z "$LD"; then
9587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9588 for ac_dir in $PATH; do
9589 test -z "$ac_dir" && ac_dir=.
9590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9591 acl_cv_path_LD="$ac_dir/$ac_prog"
9592 # Check to see if the program is GNU ld. I'd rather use --version,
9593 # but apparently some GNU ld's only accept -v.
9594 # Break only if it was the GNU/non-GNU ld that we prefer.
9595 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9596 test "$with_gnu_ld" != no && break
9597 else
9598 test "$with_gnu_ld" != yes && break
9601 done
9602 IFS="$ac_save_ifs"
9603 else
9604 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9608 LD="$acl_cv_path_LD"
9609 if test -n "$LD"; then
9610 echo "$as_me:$LINENO: result: $LD" >&5
9611 echo "${ECHO_T}$LD" >&6
9612 else
9613 echo "$as_me:$LINENO: result: no" >&5
9614 echo "${ECHO_T}no" >&6
9616 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9617 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9618 { (exit 1); exit 1; }; }
9619 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9620 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9621 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9625 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9626 acl_cv_prog_gnu_ld=yes
9627 else
9628 acl_cv_prog_gnu_ld=no
9631 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9632 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9633 with_gnu_ld=$acl_cv_prog_gnu_ld
9637 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9638 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9639 if test "${acl_cv_rpath+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9643 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9644 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9645 . ./conftest.sh
9646 rm -f ./conftest.sh
9647 acl_cv_rpath=done
9650 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9651 echo "${ECHO_T}$acl_cv_rpath" >&6
9652 wl="$acl_cv_wl"
9653 libext="$acl_cv_libext"
9654 shlibext="$acl_cv_shlibext"
9655 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9656 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9657 hardcode_direct="$acl_cv_hardcode_direct"
9658 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9659 # Check whether --enable-rpath or --disable-rpath was given.
9660 if test "${enable_rpath+set}" = set; then
9661 enableval="$enable_rpath"
9663 else
9664 enable_rpath=yes
9673 use_additional=yes
9675 acl_save_prefix="$prefix"
9676 prefix="$acl_final_prefix"
9677 acl_save_exec_prefix="$exec_prefix"
9678 exec_prefix="$acl_final_exec_prefix"
9680 eval additional_includedir=\"$includedir\"
9681 eval additional_libdir=\"$libdir\"
9683 exec_prefix="$acl_save_exec_prefix"
9684 prefix="$acl_save_prefix"
9687 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9688 if test "${with_libiconv_prefix+set}" = set; then
9689 withval="$with_libiconv_prefix"
9691 if test "X$withval" = "Xno"; then
9692 use_additional=no
9693 else
9694 if test "X$withval" = "X"; then
9696 acl_save_prefix="$prefix"
9697 prefix="$acl_final_prefix"
9698 acl_save_exec_prefix="$exec_prefix"
9699 exec_prefix="$acl_final_exec_prefix"
9701 eval additional_includedir=\"$includedir\"
9702 eval additional_libdir=\"$libdir\"
9704 exec_prefix="$acl_save_exec_prefix"
9705 prefix="$acl_save_prefix"
9707 else
9708 additional_includedir="$withval/include"
9709 additional_libdir="$withval/lib"
9714 LIBICONV=
9715 LTLIBICONV=
9716 INCICONV=
9717 rpathdirs=
9718 ltrpathdirs=
9719 names_already_handled=
9720 names_next_round='iconv '
9721 while test -n "$names_next_round"; do
9722 names_this_round="$names_next_round"
9723 names_next_round=
9724 for name in $names_this_round; do
9725 already_handled=
9726 for n in $names_already_handled; do
9727 if test "$n" = "$name"; then
9728 already_handled=yes
9729 break
9731 done
9732 if test -z "$already_handled"; then
9733 names_already_handled="$names_already_handled $name"
9734 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9735 eval value=\"\$HAVE_LIB$uppername\"
9736 if test -n "$value"; then
9737 if test "$value" = yes; then
9738 eval value=\"\$LIB$uppername\"
9739 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9740 eval value=\"\$LTLIB$uppername\"
9741 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9742 else
9745 else
9746 found_dir=
9747 found_la=
9748 found_so=
9749 found_a=
9750 if test $use_additional = yes; then
9751 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9752 found_dir="$additional_libdir"
9753 found_so="$additional_libdir/lib$name.$shlibext"
9754 if test -f "$additional_libdir/lib$name.la"; then
9755 found_la="$additional_libdir/lib$name.la"
9757 else
9758 if test -f "$additional_libdir/lib$name.$libext"; then
9759 found_dir="$additional_libdir"
9760 found_a="$additional_libdir/lib$name.$libext"
9761 if test -f "$additional_libdir/lib$name.la"; then
9762 found_la="$additional_libdir/lib$name.la"
9767 if test "X$found_dir" = "X"; then
9768 for x in $LDFLAGS $LTLIBICONV; do
9770 acl_save_prefix="$prefix"
9771 prefix="$acl_final_prefix"
9772 acl_save_exec_prefix="$exec_prefix"
9773 exec_prefix="$acl_final_exec_prefix"
9774 eval x=\"$x\"
9775 exec_prefix="$acl_save_exec_prefix"
9776 prefix="$acl_save_prefix"
9778 case "$x" in
9779 -L*)
9780 dir=`echo "X$x" | sed -e 's/^X-L//'`
9781 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9782 found_dir="$dir"
9783 found_so="$dir/lib$name.$shlibext"
9784 if test -f "$dir/lib$name.la"; then
9785 found_la="$dir/lib$name.la"
9787 else
9788 if test -f "$dir/lib$name.$libext"; then
9789 found_dir="$dir"
9790 found_a="$dir/lib$name.$libext"
9791 if test -f "$dir/lib$name.la"; then
9792 found_la="$dir/lib$name.la"
9797 esac
9798 if test "X$found_dir" != "X"; then
9799 break
9801 done
9803 if test "X$found_dir" != "X"; then
9804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9805 if test "X$found_so" != "X"; then
9806 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9807 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9808 else
9809 haveit=
9810 for x in $ltrpathdirs; do
9811 if test "X$x" = "X$found_dir"; then
9812 haveit=yes
9813 break
9815 done
9816 if test -z "$haveit"; then
9817 ltrpathdirs="$ltrpathdirs $found_dir"
9819 if test "$hardcode_direct" = yes; then
9820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9821 else
9822 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9824 haveit=
9825 for x in $rpathdirs; do
9826 if test "X$x" = "X$found_dir"; then
9827 haveit=yes
9828 break
9830 done
9831 if test -z "$haveit"; then
9832 rpathdirs="$rpathdirs $found_dir"
9834 else
9835 haveit=
9836 for x in $LDFLAGS $LIBICONV; do
9838 acl_save_prefix="$prefix"
9839 prefix="$acl_final_prefix"
9840 acl_save_exec_prefix="$exec_prefix"
9841 exec_prefix="$acl_final_exec_prefix"
9842 eval x=\"$x\"
9843 exec_prefix="$acl_save_exec_prefix"
9844 prefix="$acl_save_prefix"
9846 if test "X$x" = "X-L$found_dir"; then
9847 haveit=yes
9848 break
9850 done
9851 if test -z "$haveit"; then
9852 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9854 if test "$hardcode_minus_L" != no; then
9855 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9856 else
9857 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9862 else
9863 if test "X$found_a" != "X"; then
9864 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9865 else
9866 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9869 additional_includedir=
9870 case "$found_dir" in
9871 */lib | */lib/)
9872 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9873 additional_includedir="$basedir/include"
9875 esac
9876 if test "X$additional_includedir" != "X"; then
9877 if test "X$additional_includedir" != "X/usr/include"; then
9878 haveit=
9879 if test "X$additional_includedir" = "X/usr/local/include"; then
9880 if test -n "$GCC"; then
9881 case $host_os in
9882 linux*) haveit=yes;;
9883 esac
9886 if test -z "$haveit"; then
9887 for x in $CPPFLAGS $INCICONV; do
9889 acl_save_prefix="$prefix"
9890 prefix="$acl_final_prefix"
9891 acl_save_exec_prefix="$exec_prefix"
9892 exec_prefix="$acl_final_exec_prefix"
9893 eval x=\"$x\"
9894 exec_prefix="$acl_save_exec_prefix"
9895 prefix="$acl_save_prefix"
9897 if test "X$x" = "X-I$additional_includedir"; then
9898 haveit=yes
9899 break
9901 done
9902 if test -z "$haveit"; then
9903 if test -d "$additional_includedir"; then
9904 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9910 if test -n "$found_la"; then
9911 save_libdir="$libdir"
9912 case "$found_la" in
9913 */* | *\\*) . "$found_la" ;;
9914 *) . "./$found_la" ;;
9915 esac
9916 libdir="$save_libdir"
9917 for dep in $dependency_libs; do
9918 case "$dep" in
9919 -L*)
9920 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9921 if test "X$additional_libdir" != "X/usr/lib"; then
9922 haveit=
9923 if test "X$additional_libdir" = "X/usr/local/lib"; then
9924 if test -n "$GCC"; then
9925 case $host_os in
9926 linux*) haveit=yes;;
9927 esac
9930 if test -z "$haveit"; then
9931 haveit=
9932 for x in $LDFLAGS $LIBICONV; do
9934 acl_save_prefix="$prefix"
9935 prefix="$acl_final_prefix"
9936 acl_save_exec_prefix="$exec_prefix"
9937 exec_prefix="$acl_final_exec_prefix"
9938 eval x=\"$x\"
9939 exec_prefix="$acl_save_exec_prefix"
9940 prefix="$acl_save_prefix"
9942 if test "X$x" = "X-L$additional_libdir"; then
9943 haveit=yes
9944 break
9946 done
9947 if test -z "$haveit"; then
9948 if test -d "$additional_libdir"; then
9949 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9952 haveit=
9953 for x in $LDFLAGS $LTLIBICONV; do
9955 acl_save_prefix="$prefix"
9956 prefix="$acl_final_prefix"
9957 acl_save_exec_prefix="$exec_prefix"
9958 exec_prefix="$acl_final_exec_prefix"
9959 eval x=\"$x\"
9960 exec_prefix="$acl_save_exec_prefix"
9961 prefix="$acl_save_prefix"
9963 if test "X$x" = "X-L$additional_libdir"; then
9964 haveit=yes
9965 break
9967 done
9968 if test -z "$haveit"; then
9969 if test -d "$additional_libdir"; then
9970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9976 -R*)
9977 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9978 if test "$enable_rpath" != no; then
9979 haveit=
9980 for x in $rpathdirs; do
9981 if test "X$x" = "X$dir"; then
9982 haveit=yes
9983 break
9985 done
9986 if test -z "$haveit"; then
9987 rpathdirs="$rpathdirs $dir"
9989 haveit=
9990 for x in $ltrpathdirs; do
9991 if test "X$x" = "X$dir"; then
9992 haveit=yes
9993 break
9995 done
9996 if test -z "$haveit"; then
9997 ltrpathdirs="$ltrpathdirs $dir"
10001 -l*)
10002 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10004 *.la)
10005 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10008 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10011 esac
10012 done
10014 else
10015 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10020 done
10021 done
10022 if test "X$rpathdirs" != "X"; then
10023 if test -n "$hardcode_libdir_separator"; then
10024 alldirs=
10025 for found_dir in $rpathdirs; do
10026 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10027 done
10028 acl_save_libdir="$libdir"
10029 libdir="$alldirs"
10030 eval flag=\"$hardcode_libdir_flag_spec\"
10031 libdir="$acl_save_libdir"
10032 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10033 else
10034 for found_dir in $rpathdirs; do
10035 acl_save_libdir="$libdir"
10036 libdir="$found_dir"
10037 eval flag=\"$hardcode_libdir_flag_spec\"
10038 libdir="$acl_save_libdir"
10039 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10040 done
10043 if test "X$ltrpathdirs" != "X"; then
10044 for found_dir in $ltrpathdirs; do
10045 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10046 done
10062 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10063 stdlib.h string.h unistd.h sys/param.h
10065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10067 echo "$as_me:$LINENO: checking for $ac_header" >&5
10068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10074 else
10075 # Is the header compilable?
10076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 #include <$ac_header>
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_header_compiler=yes
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_header_compiler=no
10116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10118 echo "${ECHO_T}$ac_header_compiler" >&6
10120 # Is the header present?
10121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10123 cat >conftest.$ac_ext <<_ACEOF
10124 /* confdefs.h. */
10125 _ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 #include <$ac_header>
10130 _ACEOF
10131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } >/dev/null; then
10139 if test -s conftest.err; then
10140 ac_cpp_err=$ac_c_preproc_warn_flag
10141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10142 else
10143 ac_cpp_err=
10145 else
10146 ac_cpp_err=yes
10148 if test -z "$ac_cpp_err"; then
10149 ac_header_preproc=yes
10150 else
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ac_header_preproc=no
10156 rm -f conftest.err conftest.$ac_ext
10157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10158 echo "${ECHO_T}$ac_header_preproc" >&6
10160 # So? What about this header?
10161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10162 yes:no: )
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10167 ac_header_preproc=yes
10169 no:yes:* )
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10183 cat <<\_ASBOX
10184 ## ------------------------------- ##
10185 ## Report this to guichaz@yahoo.fr ##
10186 ## ------------------------------- ##
10187 _ASBOX
10189 sed "s/^/$as_me: WARNING: /" >&2
10191 esac
10192 echo "$as_me:$LINENO: checking for $ac_header" >&5
10193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197 eval "$as_ac_Header=\$ac_header_preproc"
10199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10206 _ACEOF
10210 done
10234 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
10235 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
10236 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
10237 __fsetlocking
10239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10240 echo "$as_me:$LINENO: checking for $ac_func" >&5
10241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10242 if eval "test \"\${$as_ac_var+set}\" = set"; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10253 #define $ac_func innocuous_$ac_func
10255 /* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char $ac_func (); below.
10257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10258 <limits.h> exists even on freestanding compilers. */
10260 #ifdef __STDC__
10261 # include <limits.h>
10262 #else
10263 # include <assert.h>
10264 #endif
10266 #undef $ac_func
10268 /* Override any gcc2 internal prototype to avoid an error. */
10269 #ifdef __cplusplus
10270 extern "C"
10272 #endif
10273 /* We use char because int might match the return type of a gcc2
10274 builtin and then its argument prototype would still apply. */
10275 char $ac_func ();
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10280 choke me
10281 #else
10282 char (*f) () = $ac_func;
10283 #endif
10284 #ifdef __cplusplus
10286 #endif
10289 main ()
10291 return f != $ac_func;
10293 return 0;
10295 _ACEOF
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 eval "$as_ac_var=yes"
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 eval "$as_ac_var=no"
10325 rm -f conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10330 if test `eval echo '${'$as_ac_var'}'` = yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10333 _ACEOF
10336 done
10344 am_save_CPPFLAGS="$CPPFLAGS"
10346 for element in $INCICONV; do
10347 haveit=
10348 for x in $CPPFLAGS; do
10350 acl_save_prefix="$prefix"
10351 prefix="$acl_final_prefix"
10352 acl_save_exec_prefix="$exec_prefix"
10353 exec_prefix="$acl_final_exec_prefix"
10354 eval x=\"$x\"
10355 exec_prefix="$acl_save_exec_prefix"
10356 prefix="$acl_save_prefix"
10358 if test "X$x" = "X$element"; then
10359 haveit=yes
10360 break
10362 done
10363 if test -z "$haveit"; then
10364 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10366 done
10369 echo "$as_me:$LINENO: checking for iconv" >&5
10370 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10371 if test "${am_cv_func_iconv+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10375 am_cv_func_iconv="no, consider installing GNU libiconv"
10376 am_cv_lib_iconv=no
10377 cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h. */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <stdlib.h>
10384 #include <iconv.h>
10386 main ()
10388 iconv_t cd = iconv_open("","");
10389 iconv(cd,NULL,NULL,NULL,NULL);
10390 iconv_close(cd);
10392 return 0;
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag"
10405 || test ! -s conftest.err'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
10411 { ac_try='test -s conftest$ac_exeext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 am_cv_func_iconv=yes
10418 else
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10423 rm -f conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 if test "$am_cv_func_iconv" != yes; then
10426 am_save_LIBS="$LIBS"
10427 LIBS="$LIBS $LIBICONV"
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 #include <stdlib.h>
10435 #include <iconv.h>
10437 main ()
10439 iconv_t cd = iconv_open("","");
10440 iconv(cd,NULL,NULL,NULL,NULL);
10441 iconv_close(cd);
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448 (eval $ac_link) 2>conftest.er1
10449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } &&
10455 { ac_try='test -z "$ac_c_werror_flag"
10456 || test ! -s conftest.err'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 am_cv_lib_iconv=yes
10469 am_cv_func_iconv=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10475 rm -f conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LIBS="$am_save_LIBS"
10481 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10482 echo "${ECHO_T}$am_cv_func_iconv" >&6
10483 if test "$am_cv_func_iconv" = yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_ICONV 1
10487 _ACEOF
10490 if test "$am_cv_lib_iconv" = yes; then
10491 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10492 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10493 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10494 echo "${ECHO_T}$LIBICONV" >&6
10495 else
10496 CPPFLAGS="$am_save_CPPFLAGS"
10497 LIBICONV=
10498 LTLIBICONV=
10503 if test "$am_cv_func_iconv" = yes; then
10504 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10505 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10506 if test "${am_cv_proto_iconv+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10517 #include <stdlib.h>
10518 #include <iconv.h>
10519 extern
10520 #ifdef __cplusplus
10522 #endif
10523 #if defined(__STDC__) || defined(__cplusplus)
10524 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10525 #else
10526 size_t iconv();
10527 #endif
10530 main ()
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 am_cv_proto_iconv_arg1=""
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 am_cv_proto_iconv_arg1="const"
10566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10570 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10571 echo "$as_me:$LINENO: result: ${ac_t:-
10572 }$am_cv_proto_iconv" >&5
10573 echo "${ECHO_T}${ac_t:-
10574 }$am_cv_proto_iconv" >&6
10576 cat >>confdefs.h <<_ACEOF
10577 #define ICONV_CONST $am_cv_proto_iconv_arg1
10578 _ACEOF
10583 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10584 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10585 if test "${am_cv_langinfo_codeset+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 #include <langinfo.h>
10596 main ()
10598 char* cs = nl_langinfo(CODESET);
10600 return 0;
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605 (eval $ac_link) 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -z "$ac_c_werror_flag"
10613 || test ! -s conftest.err'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; } &&
10619 { ac_try='test -s conftest$ac_exeext'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 am_cv_langinfo_codeset=yes
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 am_cv_langinfo_codeset=no
10632 rm -f conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10637 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10638 if test $am_cv_langinfo_codeset = yes; then
10640 cat >>confdefs.h <<\_ACEOF
10641 #define HAVE_LANGINFO_CODESET 1
10642 _ACEOF
10646 if test $ac_cv_header_locale_h = yes; then
10648 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10649 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10650 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <locale.h>
10661 main ()
10663 return LC_MESSAGES
10665 return 0;
10667 _ACEOF
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>conftest.er1
10671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -z "$ac_c_werror_flag"
10678 || test ! -s conftest.err'
10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680 (eval $ac_try) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; } &&
10684 { ac_try='test -s conftest$ac_exeext'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; }; then
10690 am_cv_val_LC_MESSAGES=yes
10691 else
10692 echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10695 am_cv_val_LC_MESSAGES=no
10697 rm -f conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10700 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10701 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10702 if test $am_cv_val_LC_MESSAGES = yes; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define HAVE_LC_MESSAGES 1
10706 _ACEOF
10712 for ac_prog in bison
10714 # Extract the first word of "$ac_prog", so it can be a program name with args.
10715 set dummy $ac_prog; ac_word=$2
10716 echo "$as_me:$LINENO: checking for $ac_word" >&5
10717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10718 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721 if test -n "$INTLBISON"; then
10722 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10723 else
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10731 ac_cv_prog_INTLBISON="$ac_prog"
10732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10735 done
10736 done
10740 INTLBISON=$ac_cv_prog_INTLBISON
10741 if test -n "$INTLBISON"; then
10742 echo "$as_me:$LINENO: result: $INTLBISON" >&5
10743 echo "${ECHO_T}$INTLBISON" >&6
10744 else
10745 echo "$as_me:$LINENO: result: no" >&5
10746 echo "${ECHO_T}no" >&6
10749 test -n "$INTLBISON" && break
10750 done
10752 if test -z "$INTLBISON"; then
10753 ac_verc_fail=yes
10754 else
10755 echo "$as_me:$LINENO: checking version of bison" >&5
10756 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
10757 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10758 case $ac_prog_version in
10759 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10760 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10761 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10762 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10763 esac
10764 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10765 echo "${ECHO_T}$ac_prog_version" >&6
10767 if test $ac_verc_fail = yes; then
10768 INTLBISON=:
10786 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10787 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10788 # Check whether --enable-nls or --disable-nls was given.
10789 if test "${enable_nls+set}" = set; then
10790 enableval="$enable_nls"
10791 USE_NLS=$enableval
10792 else
10793 USE_NLS=yes
10795 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10796 echo "${ECHO_T}$USE_NLS" >&6
10801 BUILD_INCLUDED_LIBINTL=no
10802 USE_INCLUDED_LIBINTL=no
10804 LIBINTL=
10805 LTLIBINTL=
10806 POSUB=
10808 if test "$USE_NLS" = "yes"; then
10809 gt_use_preinstalled_gnugettext=no
10811 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10812 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10814 # Check whether --with-included-gettext or --without-included-gettext was given.
10815 if test "${with_included_gettext+set}" = set; then
10816 withval="$with_included_gettext"
10817 nls_cv_force_use_gnu_gettext=$withval
10818 else
10819 nls_cv_force_use_gnu_gettext=no
10821 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10822 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10824 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10825 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10832 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10833 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10834 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <libintl.h>
10844 extern int _nl_msg_cat_cntr;
10845 extern int *_nl_domain_bindings;
10847 main ()
10849 bindtextdomain ("", "");
10850 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10852 return 0;
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag"
10865 || test ! -s conftest.err'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 gt_cv_func_gnugettext1_libc=yes
10878 else
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 gt_cv_func_gnugettext1_libc=no
10884 rm -f conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10887 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10888 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
10890 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10894 use_additional=yes
10896 acl_save_prefix="$prefix"
10897 prefix="$acl_final_prefix"
10898 acl_save_exec_prefix="$exec_prefix"
10899 exec_prefix="$acl_final_exec_prefix"
10901 eval additional_includedir=\"$includedir\"
10902 eval additional_libdir=\"$libdir\"
10904 exec_prefix="$acl_save_exec_prefix"
10905 prefix="$acl_save_prefix"
10908 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
10909 if test "${with_libintl_prefix+set}" = set; then
10910 withval="$with_libintl_prefix"
10912 if test "X$withval" = "Xno"; then
10913 use_additional=no
10914 else
10915 if test "X$withval" = "X"; then
10917 acl_save_prefix="$prefix"
10918 prefix="$acl_final_prefix"
10919 acl_save_exec_prefix="$exec_prefix"
10920 exec_prefix="$acl_final_exec_prefix"
10922 eval additional_includedir=\"$includedir\"
10923 eval additional_libdir=\"$libdir\"
10925 exec_prefix="$acl_save_exec_prefix"
10926 prefix="$acl_save_prefix"
10928 else
10929 additional_includedir="$withval/include"
10930 additional_libdir="$withval/lib"
10935 LIBINTL=
10936 LTLIBINTL=
10937 INCINTL=
10938 rpathdirs=
10939 ltrpathdirs=
10940 names_already_handled=
10941 names_next_round='intl '
10942 while test -n "$names_next_round"; do
10943 names_this_round="$names_next_round"
10944 names_next_round=
10945 for name in $names_this_round; do
10946 already_handled=
10947 for n in $names_already_handled; do
10948 if test "$n" = "$name"; then
10949 already_handled=yes
10950 break
10952 done
10953 if test -z "$already_handled"; then
10954 names_already_handled="$names_already_handled $name"
10955 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10956 eval value=\"\$HAVE_LIB$uppername\"
10957 if test -n "$value"; then
10958 if test "$value" = yes; then
10959 eval value=\"\$LIB$uppername\"
10960 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10961 eval value=\"\$LTLIB$uppername\"
10962 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10963 else
10966 else
10967 found_dir=
10968 found_la=
10969 found_so=
10970 found_a=
10971 if test $use_additional = yes; then
10972 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10973 found_dir="$additional_libdir"
10974 found_so="$additional_libdir/lib$name.$shlibext"
10975 if test -f "$additional_libdir/lib$name.la"; then
10976 found_la="$additional_libdir/lib$name.la"
10978 else
10979 if test -f "$additional_libdir/lib$name.$libext"; then
10980 found_dir="$additional_libdir"
10981 found_a="$additional_libdir/lib$name.$libext"
10982 if test -f "$additional_libdir/lib$name.la"; then
10983 found_la="$additional_libdir/lib$name.la"
10988 if test "X$found_dir" = "X"; then
10989 for x in $LDFLAGS $LTLIBINTL; do
10991 acl_save_prefix="$prefix"
10992 prefix="$acl_final_prefix"
10993 acl_save_exec_prefix="$exec_prefix"
10994 exec_prefix="$acl_final_exec_prefix"
10995 eval x=\"$x\"
10996 exec_prefix="$acl_save_exec_prefix"
10997 prefix="$acl_save_prefix"
10999 case "$x" in
11000 -L*)
11001 dir=`echo "X$x" | sed -e 's/^X-L//'`
11002 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11003 found_dir="$dir"
11004 found_so="$dir/lib$name.$shlibext"
11005 if test -f "$dir/lib$name.la"; then
11006 found_la="$dir/lib$name.la"
11008 else
11009 if test -f "$dir/lib$name.$libext"; then
11010 found_dir="$dir"
11011 found_a="$dir/lib$name.$libext"
11012 if test -f "$dir/lib$name.la"; then
11013 found_la="$dir/lib$name.la"
11018 esac
11019 if test "X$found_dir" != "X"; then
11020 break
11022 done
11024 if test "X$found_dir" != "X"; then
11025 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11026 if test "X$found_so" != "X"; then
11027 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11028 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11029 else
11030 haveit=
11031 for x in $ltrpathdirs; do
11032 if test "X$x" = "X$found_dir"; then
11033 haveit=yes
11034 break
11036 done
11037 if test -z "$haveit"; then
11038 ltrpathdirs="$ltrpathdirs $found_dir"
11040 if test "$hardcode_direct" = yes; then
11041 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11042 else
11043 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11044 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11045 haveit=
11046 for x in $rpathdirs; do
11047 if test "X$x" = "X$found_dir"; then
11048 haveit=yes
11049 break
11051 done
11052 if test -z "$haveit"; then
11053 rpathdirs="$rpathdirs $found_dir"
11055 else
11056 haveit=
11057 for x in $LDFLAGS $LIBINTL; do
11059 acl_save_prefix="$prefix"
11060 prefix="$acl_final_prefix"
11061 acl_save_exec_prefix="$exec_prefix"
11062 exec_prefix="$acl_final_exec_prefix"
11063 eval x=\"$x\"
11064 exec_prefix="$acl_save_exec_prefix"
11065 prefix="$acl_save_prefix"
11067 if test "X$x" = "X-L$found_dir"; then
11068 haveit=yes
11069 break
11071 done
11072 if test -z "$haveit"; then
11073 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11075 if test "$hardcode_minus_L" != no; then
11076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11077 else
11078 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11083 else
11084 if test "X$found_a" != "X"; then
11085 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11086 else
11087 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11090 additional_includedir=
11091 case "$found_dir" in
11092 */lib | */lib/)
11093 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11094 additional_includedir="$basedir/include"
11096 esac
11097 if test "X$additional_includedir" != "X"; then
11098 if test "X$additional_includedir" != "X/usr/include"; then
11099 haveit=
11100 if test "X$additional_includedir" = "X/usr/local/include"; then
11101 if test -n "$GCC"; then
11102 case $host_os in
11103 linux*) haveit=yes;;
11104 esac
11107 if test -z "$haveit"; then
11108 for x in $CPPFLAGS $INCINTL; do
11110 acl_save_prefix="$prefix"
11111 prefix="$acl_final_prefix"
11112 acl_save_exec_prefix="$exec_prefix"
11113 exec_prefix="$acl_final_exec_prefix"
11114 eval x=\"$x\"
11115 exec_prefix="$acl_save_exec_prefix"
11116 prefix="$acl_save_prefix"
11118 if test "X$x" = "X-I$additional_includedir"; then
11119 haveit=yes
11120 break
11122 done
11123 if test -z "$haveit"; then
11124 if test -d "$additional_includedir"; then
11125 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11131 if test -n "$found_la"; then
11132 save_libdir="$libdir"
11133 case "$found_la" in
11134 */* | *\\*) . "$found_la" ;;
11135 *) . "./$found_la" ;;
11136 esac
11137 libdir="$save_libdir"
11138 for dep in $dependency_libs; do
11139 case "$dep" in
11140 -L*)
11141 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11142 if test "X$additional_libdir" != "X/usr/lib"; then
11143 haveit=
11144 if test "X$additional_libdir" = "X/usr/local/lib"; then
11145 if test -n "$GCC"; then
11146 case $host_os in
11147 linux*) haveit=yes;;
11148 esac
11151 if test -z "$haveit"; then
11152 haveit=
11153 for x in $LDFLAGS $LIBINTL; do
11155 acl_save_prefix="$prefix"
11156 prefix="$acl_final_prefix"
11157 acl_save_exec_prefix="$exec_prefix"
11158 exec_prefix="$acl_final_exec_prefix"
11159 eval x=\"$x\"
11160 exec_prefix="$acl_save_exec_prefix"
11161 prefix="$acl_save_prefix"
11163 if test "X$x" = "X-L$additional_libdir"; then
11164 haveit=yes
11165 break
11167 done
11168 if test -z "$haveit"; then
11169 if test -d "$additional_libdir"; then
11170 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11173 haveit=
11174 for x in $LDFLAGS $LTLIBINTL; do
11176 acl_save_prefix="$prefix"
11177 prefix="$acl_final_prefix"
11178 acl_save_exec_prefix="$exec_prefix"
11179 exec_prefix="$acl_final_exec_prefix"
11180 eval x=\"$x\"
11181 exec_prefix="$acl_save_exec_prefix"
11182 prefix="$acl_save_prefix"
11184 if test "X$x" = "X-L$additional_libdir"; then
11185 haveit=yes
11186 break
11188 done
11189 if test -z "$haveit"; then
11190 if test -d "$additional_libdir"; then
11191 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11197 -R*)
11198 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11199 if test "$enable_rpath" != no; then
11200 haveit=
11201 for x in $rpathdirs; do
11202 if test "X$x" = "X$dir"; then
11203 haveit=yes
11204 break
11206 done
11207 if test -z "$haveit"; then
11208 rpathdirs="$rpathdirs $dir"
11210 haveit=
11211 for x in $ltrpathdirs; do
11212 if test "X$x" = "X$dir"; then
11213 haveit=yes
11214 break
11216 done
11217 if test -z "$haveit"; then
11218 ltrpathdirs="$ltrpathdirs $dir"
11222 -l*)
11223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11225 *.la)
11226 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11229 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11232 esac
11233 done
11235 else
11236 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11237 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11241 done
11242 done
11243 if test "X$rpathdirs" != "X"; then
11244 if test -n "$hardcode_libdir_separator"; then
11245 alldirs=
11246 for found_dir in $rpathdirs; do
11247 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11248 done
11249 acl_save_libdir="$libdir"
11250 libdir="$alldirs"
11251 eval flag=\"$hardcode_libdir_flag_spec\"
11252 libdir="$acl_save_libdir"
11253 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11254 else
11255 for found_dir in $rpathdirs; do
11256 acl_save_libdir="$libdir"
11257 libdir="$found_dir"
11258 eval flag=\"$hardcode_libdir_flag_spec\"
11259 libdir="$acl_save_libdir"
11260 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11261 done
11264 if test "X$ltrpathdirs" != "X"; then
11265 for found_dir in $ltrpathdirs; do
11266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11267 done
11270 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11271 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11272 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 gt_save_CPPFLAGS="$CPPFLAGS"
11276 CPPFLAGS="$CPPFLAGS $INCINTL"
11277 gt_save_LIBS="$LIBS"
11278 LIBS="$LIBS $LIBINTL"
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h. */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 #include <libintl.h>
11286 extern int _nl_msg_cat_cntr;
11287 extern
11288 #ifdef __cplusplus
11290 #endif
11291 const char *_nl_expand_alias ();
11293 main ()
11295 bindtextdomain ("", "");
11296 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -z "$ac_c_werror_flag"
11311 || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 gt_cv_func_gnugettext1_libintl=yes
11324 else
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 gt_cv_func_gnugettext1_libintl=no
11330 rm -f conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11333 LIBS="$LIBS $LIBICONV"
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h. */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <libintl.h>
11341 extern int _nl_msg_cat_cntr;
11342 extern
11343 #ifdef __cplusplus
11345 #endif
11346 const char *_nl_expand_alias ();
11348 main ()
11350 bindtextdomain ("", "");
11351 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11353 return 0;
11355 _ACEOF
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11358 (eval $ac_link) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest$ac_exeext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 LIBINTL="$LIBINTL $LIBICONV"
11379 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11380 gt_cv_func_gnugettext1_libintl=yes
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11387 rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11390 CPPFLAGS="$gt_save_CPPFLAGS"
11391 LIBS="$gt_save_LIBS"
11393 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11394 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11397 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11398 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11399 && test "$PACKAGE" != gettext-runtime \
11400 && test "$PACKAGE" != gettext-tools; }; then
11401 gt_use_preinstalled_gnugettext=yes
11402 else
11403 LIBINTL=
11404 LTLIBINTL=
11405 INCINTL=
11409 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11410 nls_cv_use_gnu_gettext=yes
11414 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11415 BUILD_INCLUDED_LIBINTL=yes
11416 USE_INCLUDED_LIBINTL=yes
11417 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11418 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11419 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11422 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11423 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11424 CATOBJEXT=.gmo
11428 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11429 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11431 cat >>confdefs.h <<\_ACEOF
11432 #define ENABLE_NLS 1
11433 _ACEOF
11435 else
11436 USE_NLS=no
11440 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11441 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11442 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11443 echo "${ECHO_T}$USE_NLS" >&6
11444 if test "$USE_NLS" = "yes"; then
11445 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11446 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11448 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11449 gt_source="external libintl"
11450 else
11451 gt_source="libc"
11453 else
11454 gt_source="included intl directory"
11456 echo "$as_me:$LINENO: result: $gt_source" >&5
11457 echo "${ECHO_T}$gt_source" >&6
11460 if test "$USE_NLS" = "yes"; then
11462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11463 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11464 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11465 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11466 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11467 echo "${ECHO_T}$LIBINTL" >&6
11469 for element in $INCINTL; do
11470 haveit=
11471 for x in $CPPFLAGS; do
11473 acl_save_prefix="$prefix"
11474 prefix="$acl_final_prefix"
11475 acl_save_exec_prefix="$exec_prefix"
11476 exec_prefix="$acl_final_exec_prefix"
11477 eval x=\"$x\"
11478 exec_prefix="$acl_save_exec_prefix"
11479 prefix="$acl_save_prefix"
11481 if test "X$x" = "X$element"; then
11482 haveit=yes
11483 break
11485 done
11486 if test -z "$haveit"; then
11487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11489 done
11494 cat >>confdefs.h <<\_ACEOF
11495 #define HAVE_GETTEXT 1
11496 _ACEOF
11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_DCGETTEXT 1
11501 _ACEOF
11505 POSUB=po
11509 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11510 BUILD_INCLUDED_LIBINTL=yes
11517 nls_cv_header_intl=
11518 nls_cv_header_libgt=
11520 DATADIRNAME=share
11523 INSTOBJEXT=.mo
11526 GENCAT=gencat
11529 if test "$USE_INCLUDED_LIBINTL" = yes; then
11530 INTLOBJS="\$(GETTOBJS)"
11534 INTL_LIBTOOL_SUFFIX_PREFIX=
11538 INTLLIBS="$LIBINTL"
11545 CFLAGS="$CFLAGS -I../${srcdir}/intl"
11546 LIBS="$LIBS $LIBINTL"
11549 ac_config_files="$ac_config_files Makefile lib/Makefile intl/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/options/Makefile src/Makefile gliv.spec"
11552 cat >confcache <<\_ACEOF
11553 # This file is a shell script that caches the results of configure
11554 # tests run on this system so they can be shared between configure
11555 # scripts and configure runs, see configure's option --config-cache.
11556 # It is not useful on other systems. If it contains results you don't
11557 # want to keep, you may remove or edit it.
11559 # config.status only pays attention to the cache file if you give it
11560 # the --recheck option to rerun configure.
11562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11564 # following values.
11566 _ACEOF
11568 # The following way of writing the cache mishandles newlines in values,
11569 # but we know of no workaround that is simple, portable, and efficient.
11570 # So, don't put newlines in cache variables' values.
11571 # Ultrix sh set writes to stderr and can't be redirected directly,
11572 # and sets the high bit in the cache file unless we assign to the vars.
11574 (set) 2>&1 |
11575 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11576 *ac_space=\ *)
11577 # `set' does not quote correctly, so add quotes (double-quote
11578 # substitution turns \\\\ into \\, and sed turns \\ into \).
11579 sed -n \
11580 "s/'/'\\\\''/g;
11581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11584 # `set' quotes correctly as required by POSIX, so do not add quotes.
11585 sed -n \
11586 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11588 esac;
11590 sed '
11591 t clear
11592 : clear
11593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11594 t end
11595 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11596 : end' >>confcache
11597 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11598 if test -w $cache_file; then
11599 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11600 cat confcache >$cache_file
11601 else
11602 echo "not updating unwritable cache $cache_file"
11605 rm -f confcache
11607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11608 # Let make expand exec_prefix.
11609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11613 # trailing colons and then remove the whole line if VPATH becomes empty
11614 # (actually we leave an empty line to preserve line numbers).
11615 if test "x$srcdir" = x.; then
11616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11617 s/:*\$(srcdir):*/:/;
11618 s/:*\${srcdir}:*/:/;
11619 s/:*@srcdir@:*/:/;
11620 s/^\([^=]*=[ ]*\):*/\1/;
11621 s/:*$//;
11622 s/^[^=]*=[ ]*$//;
11626 DEFS=-DHAVE_CONFIG_H
11628 ac_libobjs=
11629 ac_ltlibobjs=
11630 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11631 # 1. Remove the extension, and $U if already installed.
11632 ac_i=`echo "$ac_i" |
11633 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11634 # 2. Add them.
11635 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11636 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11637 done
11638 LIBOBJS=$ac_libobjs
11640 LTLIBOBJS=$ac_ltlibobjs
11643 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11644 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11645 Usually this means the macro was only invoked conditionally." >&5
11646 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11647 Usually this means the macro was only invoked conditionally." >&2;}
11648 { (exit 1); exit 1; }; }
11650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11651 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11652 Usually this means the macro was only invoked conditionally." >&5
11653 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11654 Usually this means the macro was only invoked conditionally." >&2;}
11655 { (exit 1); exit 1; }; }
11657 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
11658 { { echo "$as_me:$LINENO: error: conditional \"GETDELIM\" was never defined.
11659 Usually this means the macro was only invoked conditionally." >&5
11660 echo "$as_me: error: conditional \"GETDELIM\" was never defined.
11661 Usually this means the macro was only invoked conditionally." >&2;}
11662 { (exit 1); exit 1; }; }
11664 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
11665 { { echo "$as_me:$LINENO: error: conditional \"GETOPT_LONG\" was never defined.
11666 Usually this means the macro was only invoked conditionally." >&5
11667 echo "$as_me: error: conditional \"GETOPT_LONG\" was never defined.
11668 Usually this means the macro was only invoked conditionally." >&2;}
11669 { (exit 1); exit 1; }; }
11671 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
11672 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11673 Usually this means the macro was only invoked conditionally." >&5
11674 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11675 Usually this means the macro was only invoked conditionally." >&2;}
11676 { (exit 1); exit 1; }; }
11678 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
11679 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11680 Usually this means the macro was only invoked conditionally." >&5
11681 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
11682 Usually this means the macro was only invoked conditionally." >&2;}
11683 { (exit 1); exit 1; }; }
11686 : ${CONFIG_STATUS=./config.status}
11687 ac_clean_files_save=$ac_clean_files
11688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11691 cat >$CONFIG_STATUS <<_ACEOF
11692 #! $SHELL
11693 # Generated by $as_me.
11694 # Run this file to recreate the current configuration.
11695 # Compiler output produced by configure, useful for debugging
11696 # configure, is in config.log if it exists.
11698 debug=false
11699 ac_cs_recheck=false
11700 ac_cs_silent=false
11701 SHELL=\${CONFIG_SHELL-$SHELL}
11702 _ACEOF
11704 cat >>$CONFIG_STATUS <<\_ACEOF
11705 ## --------------------- ##
11706 ## M4sh Initialization. ##
11707 ## --------------------- ##
11709 # Be Bourne compatible
11710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11711 emulate sh
11712 NULLCMD=:
11713 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11714 # is contrary to our usage. Disable this feature.
11715 alias -g '${1+"$@"}'='"$@"'
11716 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11717 set -o posix
11719 DUALCASE=1; export DUALCASE # for MKS sh
11721 # Support unset when possible.
11722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11723 as_unset=unset
11724 else
11725 as_unset=false
11729 # Work around bugs in pre-3.0 UWIN ksh.
11730 $as_unset ENV MAIL MAILPATH
11731 PS1='$ '
11732 PS2='> '
11733 PS4='+ '
11735 # NLS nuisances.
11736 for as_var in \
11737 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11738 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11739 LC_TELEPHONE LC_TIME
11741 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11742 eval $as_var=C; export $as_var
11743 else
11744 $as_unset $as_var
11746 done
11748 # Required to use basename.
11749 if expr a : '\(a\)' >/dev/null 2>&1; then
11750 as_expr=expr
11751 else
11752 as_expr=false
11755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11756 as_basename=basename
11757 else
11758 as_basename=false
11762 # Name of the executable.
11763 as_me=`$as_basename "$0" ||
11764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11765 X"$0" : 'X\(//\)$' \| \
11766 X"$0" : 'X\(/\)$' \| \
11767 . : '\(.\)' 2>/dev/null ||
11768 echo X/"$0" |
11769 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11770 /^X\/\(\/\/\)$/{ s//\1/; q; }
11771 /^X\/\(\/\).*/{ s//\1/; q; }
11772 s/.*/./; q'`
11775 # PATH needs CR, and LINENO needs CR and PATH.
11776 # Avoid depending upon Character Ranges.
11777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11780 as_cr_digits='0123456789'
11781 as_cr_alnum=$as_cr_Letters$as_cr_digits
11783 # The user is always right.
11784 if test "${PATH_SEPARATOR+set}" != set; then
11785 echo "#! /bin/sh" >conf$$.sh
11786 echo "exit 0" >>conf$$.sh
11787 chmod +x conf$$.sh
11788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11789 PATH_SEPARATOR=';'
11790 else
11791 PATH_SEPARATOR=:
11793 rm -f conf$$.sh
11797 as_lineno_1=$LINENO
11798 as_lineno_2=$LINENO
11799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11800 test "x$as_lineno_1" != "x$as_lineno_2" &&
11801 test "x$as_lineno_3" = "x$as_lineno_2" || {
11802 # Find who we are. Look in the path if we contain no path at all
11803 # relative or not.
11804 case $0 in
11805 *[\\/]* ) as_myself=$0 ;;
11806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11812 done
11815 esac
11816 # We did not find ourselves, most probably we were run as `sh COMMAND'
11817 # in which case we are not to be found in the path.
11818 if test "x$as_myself" = x; then
11819 as_myself=$0
11821 if test ! -f "$as_myself"; then
11822 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11823 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11824 { (exit 1); exit 1; }; }
11826 case $CONFIG_SHELL in
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for as_base in sh bash ksh sh5; do
11834 case $as_dir in
11836 if ("$as_dir/$as_base" -c '
11837 as_lineno_1=$LINENO
11838 as_lineno_2=$LINENO
11839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11840 test "x$as_lineno_1" != "x$as_lineno_2" &&
11841 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11842 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11843 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11844 CONFIG_SHELL=$as_dir/$as_base
11845 export CONFIG_SHELL
11846 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11847 fi;;
11848 esac
11849 done
11850 done
11852 esac
11854 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11855 # uniformly replaced by the line number. The first 'sed' inserts a
11856 # line-number line before each line; the second 'sed' does the real
11857 # work. The second script uses 'N' to pair each line-number line
11858 # with the numbered line, and appends trailing '-' during
11859 # substitution so that $LINENO is not a special case at line end.
11860 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11861 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11862 sed '=' <$as_myself |
11863 sed '
11865 s,$,-,
11866 : loop
11867 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11868 t loop
11869 s,-$,,
11870 s,^['$as_cr_digits']*\n,,
11871 ' >$as_me.lineno &&
11872 chmod +x $as_me.lineno ||
11873 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11874 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11875 { (exit 1); exit 1; }; }
11877 # Don't try to exec as it changes $[0], causing all sort of problems
11878 # (the dirname of $[0] is not the place where we might find the
11879 # original and so on. Autoconf is especially sensible to this).
11880 . ./$as_me.lineno
11881 # Exit status is that of the last command.
11882 exit
11886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11887 *c*,-n*) ECHO_N= ECHO_C='
11888 ' ECHO_T=' ' ;;
11889 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11890 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11891 esac
11893 if expr a : '\(a\)' >/dev/null 2>&1; then
11894 as_expr=expr
11895 else
11896 as_expr=false
11899 rm -f conf$$ conf$$.exe conf$$.file
11900 echo >conf$$.file
11901 if ln -s conf$$.file conf$$ 2>/dev/null; then
11902 # We could just check for DJGPP; but this test a) works b) is more generic
11903 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11904 if test -f conf$$.exe; then
11905 # Don't use ln at all; we don't have any links
11906 as_ln_s='cp -p'
11907 else
11908 as_ln_s='ln -s'
11910 elif ln conf$$.file conf$$ 2>/dev/null; then
11911 as_ln_s=ln
11912 else
11913 as_ln_s='cp -p'
11915 rm -f conf$$ conf$$.exe conf$$.file
11917 if mkdir -p . 2>/dev/null; then
11918 as_mkdir_p=:
11919 else
11920 test -d ./-p && rmdir ./-p
11921 as_mkdir_p=false
11924 as_executable_p="test -f"
11926 # Sed expression to map a string onto a valid CPP name.
11927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11929 # Sed expression to map a string onto a valid variable name.
11930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11933 # IFS
11934 # We need space, tab and new line, in precisely that order.
11935 as_nl='
11937 IFS=" $as_nl"
11939 # CDPATH.
11940 $as_unset CDPATH
11942 exec 6>&1
11944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11945 # report actual input values of CONFIG_FILES etc. instead of their
11946 # values after options handling. Logging --version etc. is OK.
11947 exec 5>>config.log
11949 echo
11950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11951 ## Running $as_me. ##
11952 _ASBOX
11953 } >&5
11954 cat >&5 <<_CSEOF
11956 This file was extended by gliv $as_me 1.8.1, which was
11957 generated by GNU Autoconf 2.59. Invocation command line was
11959 CONFIG_FILES = $CONFIG_FILES
11960 CONFIG_HEADERS = $CONFIG_HEADERS
11961 CONFIG_LINKS = $CONFIG_LINKS
11962 CONFIG_COMMANDS = $CONFIG_COMMANDS
11963 $ $0 $@
11965 _CSEOF
11966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11967 echo >&5
11968 _ACEOF
11970 # Files that config.status was made for.
11971 if test -n "$ac_config_files"; then
11972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11975 if test -n "$ac_config_headers"; then
11976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11979 if test -n "$ac_config_links"; then
11980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11983 if test -n "$ac_config_commands"; then
11984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11987 cat >>$CONFIG_STATUS <<\_ACEOF
11989 ac_cs_usage="\
11990 \`$as_me' instantiates files from templates according to the
11991 current configuration.
11993 Usage: $0 [OPTIONS] [FILE]...
11995 -h, --help print this help, then exit
11996 -V, --version print version number, then exit
11997 -q, --quiet do not print progress messages
11998 -d, --debug don't remove temporary files
11999 --recheck update $as_me by reconfiguring in the same conditions
12000 --file=FILE[:TEMPLATE]
12001 instantiate the configuration file FILE
12002 --header=FILE[:TEMPLATE]
12003 instantiate the configuration header FILE
12005 Configuration files:
12006 $config_files
12008 Configuration headers:
12009 $config_headers
12011 Configuration commands:
12012 $config_commands
12014 Report bugs to <bug-autoconf@gnu.org>."
12015 _ACEOF
12017 cat >>$CONFIG_STATUS <<_ACEOF
12018 ac_cs_version="\\
12019 gliv config.status 1.8.1
12020 configured by $0, generated by GNU Autoconf 2.59,
12021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12023 Copyright (C) 2003 Free Software Foundation, Inc.
12024 This config.status script is free software; the Free Software Foundation
12025 gives unlimited permission to copy, distribute and modify it."
12026 srcdir=$srcdir
12027 INSTALL="$INSTALL"
12028 _ACEOF
12030 cat >>$CONFIG_STATUS <<\_ACEOF
12031 # If no file are specified by the user, then we need to provide default
12032 # value. By we need to know if files were specified by the user.
12033 ac_need_defaults=:
12034 while test $# != 0
12036 case $1 in
12037 --*=*)
12038 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12039 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12040 ac_shift=:
12043 ac_option=$1
12044 ac_optarg=$2
12045 ac_shift=shift
12047 *) # This is not an option, so the user has probably given explicit
12048 # arguments.
12049 ac_option=$1
12050 ac_need_defaults=false;;
12051 esac
12053 case $ac_option in
12054 # Handling of the options.
12055 _ACEOF
12056 cat >>$CONFIG_STATUS <<\_ACEOF
12057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12058 ac_cs_recheck=: ;;
12059 --version | --vers* | -V )
12060 echo "$ac_cs_version"; exit 0 ;;
12061 --he | --h)
12062 # Conflict between --help and --header
12063 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12064 Try \`$0 --help' for more information." >&5
12065 echo "$as_me: error: ambiguous option: $1
12066 Try \`$0 --help' for more information." >&2;}
12067 { (exit 1); exit 1; }; };;
12068 --help | --hel | -h )
12069 echo "$ac_cs_usage"; exit 0 ;;
12070 --debug | --d* | -d )
12071 debug=: ;;
12072 --file | --fil | --fi | --f )
12073 $ac_shift
12074 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12075 ac_need_defaults=false;;
12076 --header | --heade | --head | --hea )
12077 $ac_shift
12078 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12079 ac_need_defaults=false;;
12080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12082 ac_cs_silent=: ;;
12084 # This is an error.
12085 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12086 Try \`$0 --help' for more information." >&5
12087 echo "$as_me: error: unrecognized option: $1
12088 Try \`$0 --help' for more information." >&2;}
12089 { (exit 1); exit 1; }; } ;;
12091 *) ac_config_targets="$ac_config_targets $1" ;;
12093 esac
12094 shift
12095 done
12097 ac_configure_extra_args=
12099 if $ac_cs_silent; then
12100 exec 6>/dev/null
12101 ac_configure_extra_args="$ac_configure_extra_args --silent"
12104 _ACEOF
12105 cat >>$CONFIG_STATUS <<_ACEOF
12106 if \$ac_cs_recheck; then
12107 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12108 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12111 _ACEOF
12113 cat >>$CONFIG_STATUS <<_ACEOF
12115 # INIT-COMMANDS section.
12118 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12119 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12120 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12121 # from automake.
12122 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12123 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12124 LINGUAS="${LINGUAS-%UNSET%}"
12127 _ACEOF
12131 cat >>$CONFIG_STATUS <<\_ACEOF
12132 for ac_config_target in $ac_config_targets
12134 case "$ac_config_target" in
12135 # Handling of arguments.
12136 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12137 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12138 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12139 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12140 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12141 "tools/glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;;
12142 "tools/glade/actions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;;
12143 "tools/glade/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;;
12144 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12145 "gliv.spec" ) CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
12146 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12147 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12148 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12149 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12150 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12151 { (exit 1); exit 1; }; };;
12152 esac
12153 done
12155 # If the user did not use the arguments to specify the items to instantiate,
12156 # then the envvar interface is used. Set only those that are not.
12157 # We use the long form for the default assignment because of an extremely
12158 # bizarre bug on SunOS 4.1.3.
12159 if $ac_need_defaults; then
12160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12165 # Have a temporary directory for convenience. Make it in the build tree
12166 # simply because there is no reason to put it here, and in addition,
12167 # creating and moving files from /tmp can sometimes cause problems.
12168 # Create a temporary directory, and hook for its removal unless debugging.
12169 $debug ||
12171 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12172 trap '{ (exit 1); exit 1; }' 1 2 13 15
12175 # Create a (secure) tmp directory for tmp files.
12178 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12179 test -n "$tmp" && test -d "$tmp"
12180 } ||
12182 tmp=./confstat$$-$RANDOM
12183 (umask 077 && mkdir $tmp)
12184 } ||
12186 echo "$me: cannot create a temporary directory in ." >&2
12187 { (exit 1); exit 1; }
12190 _ACEOF
12192 cat >>$CONFIG_STATUS <<_ACEOF
12195 # CONFIG_FILES section.
12198 # No need to generate the scripts if there are no CONFIG_FILES.
12199 # This happens for instance when ./config.status config.h
12200 if test -n "\$CONFIG_FILES"; then
12201 # Protect against being on the right side of a sed subst in config.status.
12202 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12203 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12204 s,@SHELL@,$SHELL,;t t
12205 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12206 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12207 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12208 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12209 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12210 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12211 s,@exec_prefix@,$exec_prefix,;t t
12212 s,@prefix@,$prefix,;t t
12213 s,@program_transform_name@,$program_transform_name,;t t
12214 s,@bindir@,$bindir,;t t
12215 s,@sbindir@,$sbindir,;t t
12216 s,@libexecdir@,$libexecdir,;t t
12217 s,@datadir@,$datadir,;t t
12218 s,@sysconfdir@,$sysconfdir,;t t
12219 s,@sharedstatedir@,$sharedstatedir,;t t
12220 s,@localstatedir@,$localstatedir,;t t
12221 s,@libdir@,$libdir,;t t
12222 s,@includedir@,$includedir,;t t
12223 s,@oldincludedir@,$oldincludedir,;t t
12224 s,@infodir@,$infodir,;t t
12225 s,@mandir@,$mandir,;t t
12226 s,@build_alias@,$build_alias,;t t
12227 s,@host_alias@,$host_alias,;t t
12228 s,@target_alias@,$target_alias,;t t
12229 s,@DEFS@,$DEFS,;t t
12230 s,@ECHO_C@,$ECHO_C,;t t
12231 s,@ECHO_N@,$ECHO_N,;t t
12232 s,@ECHO_T@,$ECHO_T,;t t
12233 s,@LIBS@,$LIBS,;t t
12234 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12235 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12236 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12237 s,@CYGPATH_W@,$CYGPATH_W,;t t
12238 s,@PACKAGE@,$PACKAGE,;t t
12239 s,@VERSION@,$VERSION,;t t
12240 s,@ACLOCAL@,$ACLOCAL,;t t
12241 s,@AUTOCONF@,$AUTOCONF,;t t
12242 s,@AUTOMAKE@,$AUTOMAKE,;t t
12243 s,@AUTOHEADER@,$AUTOHEADER,;t t
12244 s,@MAKEINFO@,$MAKEINFO,;t t
12245 s,@AMTAR@,$AMTAR,;t t
12246 s,@install_sh@,$install_sh,;t t
12247 s,@STRIP@,$STRIP,;t t
12248 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12249 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12250 s,@mkdir_p@,$mkdir_p,;t t
12251 s,@AWK@,$AWK,;t t
12252 s,@SET_MAKE@,$SET_MAKE,;t t
12253 s,@am__leading_dot@,$am__leading_dot,;t t
12254 s,@CC@,$CC,;t t
12255 s,@CFLAGS@,$CFLAGS,;t t
12256 s,@LDFLAGS@,$LDFLAGS,;t t
12257 s,@CPPFLAGS@,$CPPFLAGS,;t t
12258 s,@ac_ct_CC@,$ac_ct_CC,;t t
12259 s,@EXEEXT@,$EXEEXT,;t t
12260 s,@OBJEXT@,$OBJEXT,;t t
12261 s,@DEPDIR@,$DEPDIR,;t t
12262 s,@am__include@,$am__include,;t t
12263 s,@am__quote@,$am__quote,;t t
12264 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12265 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12266 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12267 s,@CCDEPMODE@,$CCDEPMODE,;t t
12268 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12269 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12270 s,@RANLIB@,$RANLIB,;t t
12271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12272 s,@GETDELIM_TRUE@,$GETDELIM_TRUE,;t t
12273 s,@GETDELIM_FALSE@,$GETDELIM_FALSE,;t t
12274 s,@GETOPT_LONG_TRUE@,$GETOPT_LONG_TRUE,;t t
12275 s,@GETOPT_LONG_FALSE@,$GETOPT_LONG_FALSE,;t t
12276 s,@NEED_REPLACEMENTS_TRUE@,$NEED_REPLACEMENTS_TRUE,;t t
12277 s,@NEED_REPLACEMENTS_FALSE@,$NEED_REPLACEMENTS_FALSE,;t t
12278 s,@CPP@,$CPP,;t t
12279 s,@X_CFLAGS@,$X_CFLAGS,;t t
12280 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12281 s,@X_LIBS@,$X_LIBS,;t t
12282 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12283 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12284 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
12285 s,@GTK_LIBS@,$GTK_LIBS,;t t
12286 s,@GTKGLEXT_CFLAGS@,$GTKGLEXT_CFLAGS,;t t
12287 s,@GTKGLEXT_LIBS@,$GTKGLEXT_LIBS,;t t
12288 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12289 s,@USE_NLS@,$USE_NLS,;t t
12290 s,@MSGFMT@,$MSGFMT,;t t
12291 s,@GMSGFMT@,$GMSGFMT,;t t
12292 s,@XGETTEXT@,$XGETTEXT,;t t
12293 s,@MSGMERGE@,$MSGMERGE,;t t
12294 s,@build@,$build,;t t
12295 s,@build_cpu@,$build_cpu,;t t
12296 s,@build_vendor@,$build_vendor,;t t
12297 s,@build_os@,$build_os,;t t
12298 s,@host@,$host,;t t
12299 s,@host_cpu@,$host_cpu,;t t
12300 s,@host_vendor@,$host_vendor,;t t
12301 s,@host_os@,$host_os,;t t
12302 s,@EGREP@,$EGREP,;t t
12303 s,@ALLOCA@,$ALLOCA,;t t
12304 s,@GLIBC21@,$GLIBC21,;t t
12305 s,@LIBICONV@,$LIBICONV,;t t
12306 s,@LTLIBICONV@,$LTLIBICONV,;t t
12307 s,@INTLBISON@,$INTLBISON,;t t
12308 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12309 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12310 s,@CATOBJEXT@,$CATOBJEXT,;t t
12311 s,@DATADIRNAME@,$DATADIRNAME,;t t
12312 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12313 s,@GENCAT@,$GENCAT,;t t
12314 s,@INTLOBJS@,$INTLOBJS,;t t
12315 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12316 s,@INTLLIBS@,$INTLLIBS,;t t
12317 s,@LIBINTL@,$LIBINTL,;t t
12318 s,@LTLIBINTL@,$LTLIBINTL,;t t
12319 s,@POSUB@,$POSUB,;t t
12320 s,@LIBOBJS@,$LIBOBJS,;t t
12321 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12322 CEOF
12324 _ACEOF
12326 cat >>$CONFIG_STATUS <<\_ACEOF
12327 # Split the substitutions into bite-sized pieces for seds with
12328 # small command number limits, like on Digital OSF/1 and HP-UX.
12329 ac_max_sed_lines=48
12330 ac_sed_frag=1 # Number of current file.
12331 ac_beg=1 # First line for current file.
12332 ac_end=$ac_max_sed_lines # Line after last line for current file.
12333 ac_more_lines=:
12334 ac_sed_cmds=
12335 while $ac_more_lines; do
12336 if test $ac_beg -gt 1; then
12337 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12338 else
12339 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12341 if test ! -s $tmp/subs.frag; then
12342 ac_more_lines=false
12343 else
12344 # The purpose of the label and of the branching condition is to
12345 # speed up the sed processing (if there are no `@' at all, there
12346 # is no need to browse any of the substitutions).
12347 # These are the two extra sed commands mentioned above.
12348 (echo ':t
12349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12350 if test -z "$ac_sed_cmds"; then
12351 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12352 else
12353 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12355 ac_sed_frag=`expr $ac_sed_frag + 1`
12356 ac_beg=$ac_end
12357 ac_end=`expr $ac_end + $ac_max_sed_lines`
12359 done
12360 if test -z "$ac_sed_cmds"; then
12361 ac_sed_cmds=cat
12363 fi # test -n "$CONFIG_FILES"
12365 _ACEOF
12366 cat >>$CONFIG_STATUS <<\_ACEOF
12367 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12369 case $ac_file in
12370 - | *:- | *:-:* ) # input from stdin
12371 cat >$tmp/stdin
12372 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12374 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12375 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12376 * ) ac_file_in=$ac_file.in ;;
12377 esac
12379 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12380 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12382 X"$ac_file" : 'X\(//\)[^/]' \| \
12383 X"$ac_file" : 'X\(//\)$' \| \
12384 X"$ac_file" : 'X\(/\)' \| \
12385 . : '\(.\)' 2>/dev/null ||
12386 echo X"$ac_file" |
12387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12389 /^X\(\/\/\)$/{ s//\1/; q; }
12390 /^X\(\/\).*/{ s//\1/; q; }
12391 s/.*/./; q'`
12392 { if $as_mkdir_p; then
12393 mkdir -p "$ac_dir"
12394 else
12395 as_dir="$ac_dir"
12396 as_dirs=
12397 while test ! -d "$as_dir"; do
12398 as_dirs="$as_dir $as_dirs"
12399 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12401 X"$as_dir" : 'X\(//\)[^/]' \| \
12402 X"$as_dir" : 'X\(//\)$' \| \
12403 X"$as_dir" : 'X\(/\)' \| \
12404 . : '\(.\)' 2>/dev/null ||
12405 echo X"$as_dir" |
12406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12408 /^X\(\/\/\)$/{ s//\1/; q; }
12409 /^X\(\/\).*/{ s//\1/; q; }
12410 s/.*/./; q'`
12411 done
12412 test ! -n "$as_dirs" || mkdir $as_dirs
12413 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12414 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12415 { (exit 1); exit 1; }; }; }
12417 ac_builddir=.
12419 if test "$ac_dir" != .; then
12420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12421 # A "../" for each directory in $ac_dir_suffix.
12422 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12423 else
12424 ac_dir_suffix= ac_top_builddir=
12427 case $srcdir in
12428 .) # No --srcdir option. We are building in place.
12429 ac_srcdir=.
12430 if test -z "$ac_top_builddir"; then
12431 ac_top_srcdir=.
12432 else
12433 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12434 fi ;;
12435 [\\/]* | ?:[\\/]* ) # Absolute path.
12436 ac_srcdir=$srcdir$ac_dir_suffix;
12437 ac_top_srcdir=$srcdir ;;
12438 *) # Relative path.
12439 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12440 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12441 esac
12443 # Do not use `cd foo && pwd` to compute absolute paths, because
12444 # the directories may not exist.
12445 case `pwd` in
12446 .) ac_abs_builddir="$ac_dir";;
12448 case "$ac_dir" in
12449 .) ac_abs_builddir=`pwd`;;
12450 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12451 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12452 esac;;
12453 esac
12454 case $ac_abs_builddir in
12455 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12457 case ${ac_top_builddir}. in
12458 .) ac_abs_top_builddir=$ac_abs_builddir;;
12459 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12460 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12461 esac;;
12462 esac
12463 case $ac_abs_builddir in
12464 .) ac_abs_srcdir=$ac_srcdir;;
12466 case $ac_srcdir in
12467 .) ac_abs_srcdir=$ac_abs_builddir;;
12468 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12469 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12470 esac;;
12471 esac
12472 case $ac_abs_builddir in
12473 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12475 case $ac_top_srcdir in
12476 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12477 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12478 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12479 esac;;
12480 esac
12483 case $INSTALL in
12484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12485 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12486 esac
12488 if test x"$ac_file" != x-; then
12489 { echo "$as_me:$LINENO: creating $ac_file" >&5
12490 echo "$as_me: creating $ac_file" >&6;}
12491 rm -f "$ac_file"
12493 # Let's still pretend it is `configure' which instantiates (i.e., don't
12494 # use $as_me), people would be surprised to read:
12495 # /* config.h. Generated by config.status. */
12496 if test x"$ac_file" = x-; then
12497 configure_input=
12498 else
12499 configure_input="$ac_file. "
12501 configure_input=$configure_input"Generated from `echo $ac_file_in |
12502 sed 's,.*/,,'` by configure."
12504 # First look for the input files in the build tree, otherwise in the
12505 # src tree.
12506 ac_file_inputs=`IFS=:
12507 for f in $ac_file_in; do
12508 case $f in
12509 -) echo $tmp/stdin ;;
12510 [\\/$]*)
12511 # Absolute (can't be DOS-style, as IFS=:)
12512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12513 echo "$as_me: error: cannot find input file: $f" >&2;}
12514 { (exit 1); exit 1; }; }
12515 echo "$f";;
12516 *) # Relative
12517 if test -f "$f"; then
12518 # Build tree
12519 echo "$f"
12520 elif test -f "$srcdir/$f"; then
12521 # Source tree
12522 echo "$srcdir/$f"
12523 else
12524 # /dev/null tree
12525 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12526 echo "$as_me: error: cannot find input file: $f" >&2;}
12527 { (exit 1); exit 1; }; }
12528 fi;;
12529 esac
12530 done` || { (exit 1); exit 1; }
12531 _ACEOF
12532 cat >>$CONFIG_STATUS <<_ACEOF
12533 sed "$ac_vpsub
12534 $extrasub
12535 _ACEOF
12536 cat >>$CONFIG_STATUS <<\_ACEOF
12538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12539 s,@configure_input@,$configure_input,;t t
12540 s,@srcdir@,$ac_srcdir,;t t
12541 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12542 s,@top_srcdir@,$ac_top_srcdir,;t t
12543 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12544 s,@builddir@,$ac_builddir,;t t
12545 s,@abs_builddir@,$ac_abs_builddir,;t t
12546 s,@top_builddir@,$ac_top_builddir,;t t
12547 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12548 s,@INSTALL@,$ac_INSTALL,;t t
12549 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12550 rm -f $tmp/stdin
12551 if test x"$ac_file" != x-; then
12552 mv $tmp/out $ac_file
12553 else
12554 cat $tmp/out
12555 rm -f $tmp/out
12558 done
12559 _ACEOF
12560 cat >>$CONFIG_STATUS <<\_ACEOF
12563 # CONFIG_HEADER section.
12566 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12567 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12569 # ac_d sets the value in "#define NAME VALUE" lines.
12570 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12571 ac_dB='[ ].*$,\1#\2'
12572 ac_dC=' '
12573 ac_dD=',;t'
12574 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12575 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12576 ac_uB='$,\1#\2define\3'
12577 ac_uC=' '
12578 ac_uD=',;t'
12580 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12582 case $ac_file in
12583 - | *:- | *:-:* ) # input from stdin
12584 cat >$tmp/stdin
12585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12589 * ) ac_file_in=$ac_file.in ;;
12590 esac
12592 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12593 echo "$as_me: creating $ac_file" >&6;}
12595 # First look for the input files in the build tree, otherwise in the
12596 # src tree.
12597 ac_file_inputs=`IFS=:
12598 for f in $ac_file_in; do
12599 case $f in
12600 -) echo $tmp/stdin ;;
12601 [\\/$]*)
12602 # Absolute (can't be DOS-style, as IFS=:)
12603 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12604 echo "$as_me: error: cannot find input file: $f" >&2;}
12605 { (exit 1); exit 1; }; }
12606 # Do quote $f, to prevent DOS paths from being IFS'd.
12607 echo "$f";;
12608 *) # Relative
12609 if test -f "$f"; then
12610 # Build tree
12611 echo "$f"
12612 elif test -f "$srcdir/$f"; then
12613 # Source tree
12614 echo "$srcdir/$f"
12615 else
12616 # /dev/null tree
12617 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12618 echo "$as_me: error: cannot find input file: $f" >&2;}
12619 { (exit 1); exit 1; }; }
12620 fi;;
12621 esac
12622 done` || { (exit 1); exit 1; }
12623 # Remove the trailing spaces.
12624 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12626 _ACEOF
12628 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12629 # `conftest.undefs', that substitutes the proper values into
12630 # config.h.in to produce config.h. The first handles `#define'
12631 # templates, and the second `#undef' templates.
12632 # And first: Protect against being on the right side of a sed subst in
12633 # config.status. Protect against being in an unquoted here document
12634 # in config.status.
12635 rm -f conftest.defines conftest.undefs
12636 # Using a here document instead of a string reduces the quoting nightmare.
12637 # Putting comments in sed scripts is not portable.
12639 # `end' is used to avoid that the second main sed command (meant for
12640 # 0-ary CPP macros) applies to n-ary macro definitions.
12641 # See the Autoconf documentation for `clear'.
12642 cat >confdef2sed.sed <<\_ACEOF
12643 s/[\\&,]/\\&/g
12644 s,[\\$`],\\&,g
12645 t clear
12646 : clear
12647 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12648 t end
12649 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12650 : end
12651 _ACEOF
12652 # If some macros were called several times there might be several times
12653 # the same #defines, which is useless. Nevertheless, we may not want to
12654 # sort them, since we want the *last* AC-DEFINE to be honored.
12655 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12656 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12657 rm -f confdef2sed.sed
12659 # This sed command replaces #undef with comments. This is necessary, for
12660 # example, in the case of _POSIX_SOURCE, which is predefined and required
12661 # on some systems where configure will not decide to define it.
12662 cat >>conftest.undefs <<\_ACEOF
12663 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12664 _ACEOF
12666 # Break up conftest.defines because some shells have a limit on the size
12667 # of here documents, and old seds have small limits too (100 cmds).
12668 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12669 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12670 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12671 echo ' :' >>$CONFIG_STATUS
12672 rm -f conftest.tail
12673 while grep . conftest.defines >/dev/null
12675 # Write a limited-size here document to $tmp/defines.sed.
12676 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12677 # Speed up: don't consider the non `#define' lines.
12678 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12679 # Work around the forget-to-reset-the-flag bug.
12680 echo 't clr' >>$CONFIG_STATUS
12681 echo ': clr' >>$CONFIG_STATUS
12682 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12683 echo 'CEOF
12684 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12685 rm -f $tmp/in
12686 mv $tmp/out $tmp/in
12687 ' >>$CONFIG_STATUS
12688 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12689 rm -f conftest.defines
12690 mv conftest.tail conftest.defines
12691 done
12692 rm -f conftest.defines
12693 echo ' fi # grep' >>$CONFIG_STATUS
12694 echo >>$CONFIG_STATUS
12696 # Break up conftest.undefs because some shells have a limit on the size
12697 # of here documents, and old seds have small limits too (100 cmds).
12698 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12699 rm -f conftest.tail
12700 while grep . conftest.undefs >/dev/null
12702 # Write a limited-size here document to $tmp/undefs.sed.
12703 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12704 # Speed up: don't consider the non `#undef'
12705 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12706 # Work around the forget-to-reset-the-flag bug.
12707 echo 't clr' >>$CONFIG_STATUS
12708 echo ': clr' >>$CONFIG_STATUS
12709 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12710 echo 'CEOF
12711 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12712 rm -f $tmp/in
12713 mv $tmp/out $tmp/in
12714 ' >>$CONFIG_STATUS
12715 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12716 rm -f conftest.undefs
12717 mv conftest.tail conftest.undefs
12718 done
12719 rm -f conftest.undefs
12721 cat >>$CONFIG_STATUS <<\_ACEOF
12722 # Let's still pretend it is `configure' which instantiates (i.e., don't
12723 # use $as_me), people would be surprised to read:
12724 # /* config.h. Generated by config.status. */
12725 if test x"$ac_file" = x-; then
12726 echo "/* Generated by configure. */" >$tmp/config.h
12727 else
12728 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12730 cat $tmp/in >>$tmp/config.h
12731 rm -f $tmp/in
12732 if test x"$ac_file" != x-; then
12733 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12734 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12735 echo "$as_me: $ac_file is unchanged" >&6;}
12736 else
12737 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12739 X"$ac_file" : 'X\(//\)[^/]' \| \
12740 X"$ac_file" : 'X\(//\)$' \| \
12741 X"$ac_file" : 'X\(/\)' \| \
12742 . : '\(.\)' 2>/dev/null ||
12743 echo X"$ac_file" |
12744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12746 /^X\(\/\/\)$/{ s//\1/; q; }
12747 /^X\(\/\).*/{ s//\1/; q; }
12748 s/.*/./; q'`
12749 { if $as_mkdir_p; then
12750 mkdir -p "$ac_dir"
12751 else
12752 as_dir="$ac_dir"
12753 as_dirs=
12754 while test ! -d "$as_dir"; do
12755 as_dirs="$as_dir $as_dirs"
12756 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12758 X"$as_dir" : 'X\(//\)[^/]' \| \
12759 X"$as_dir" : 'X\(//\)$' \| \
12760 X"$as_dir" : 'X\(/\)' \| \
12761 . : '\(.\)' 2>/dev/null ||
12762 echo X"$as_dir" |
12763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12765 /^X\(\/\/\)$/{ s//\1/; q; }
12766 /^X\(\/\).*/{ s//\1/; q; }
12767 s/.*/./; q'`
12768 done
12769 test ! -n "$as_dirs" || mkdir $as_dirs
12770 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12771 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12772 { (exit 1); exit 1; }; }; }
12774 rm -f $ac_file
12775 mv $tmp/config.h $ac_file
12777 else
12778 cat $tmp/config.h
12779 rm -f $tmp/config.h
12781 # Compute $ac_file's index in $config_headers.
12782 _am_stamp_count=1
12783 for _am_header in $config_headers :; do
12784 case $_am_header in
12785 $ac_file | $ac_file:* )
12786 break ;;
12788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12789 esac
12790 done
12791 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12792 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12793 X$ac_file : 'X\(//\)[^/]' \| \
12794 X$ac_file : 'X\(//\)$' \| \
12795 X$ac_file : 'X\(/\)' \| \
12796 . : '\(.\)' 2>/dev/null ||
12797 echo X$ac_file |
12798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12800 /^X\(\/\/\)$/{ s//\1/; q; }
12801 /^X\(\/\).*/{ s//\1/; q; }
12802 s/.*/./; q'`/stamp-h$_am_stamp_count
12803 done
12804 _ACEOF
12805 cat >>$CONFIG_STATUS <<\_ACEOF
12808 # CONFIG_COMMANDS section.
12810 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12811 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12812 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12813 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12814 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12815 X"$ac_dest" : 'X\(//\)[^/]' \| \
12816 X"$ac_dest" : 'X\(//\)$' \| \
12817 X"$ac_dest" : 'X\(/\)' \| \
12818 . : '\(.\)' 2>/dev/null ||
12819 echo X"$ac_dest" |
12820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12822 /^X\(\/\/\)$/{ s//\1/; q; }
12823 /^X\(\/\).*/{ s//\1/; q; }
12824 s/.*/./; q'`
12825 { if $as_mkdir_p; then
12826 mkdir -p "$ac_dir"
12827 else
12828 as_dir="$ac_dir"
12829 as_dirs=
12830 while test ! -d "$as_dir"; do
12831 as_dirs="$as_dir $as_dirs"
12832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12834 X"$as_dir" : 'X\(//\)[^/]' \| \
12835 X"$as_dir" : 'X\(//\)$' \| \
12836 X"$as_dir" : 'X\(/\)' \| \
12837 . : '\(.\)' 2>/dev/null ||
12838 echo X"$as_dir" |
12839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12841 /^X\(\/\/\)$/{ s//\1/; q; }
12842 /^X\(\/\).*/{ s//\1/; q; }
12843 s/.*/./; q'`
12844 done
12845 test ! -n "$as_dirs" || mkdir $as_dirs
12846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12848 { (exit 1); exit 1; }; }; }
12850 ac_builddir=.
12852 if test "$ac_dir" != .; then
12853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12854 # A "../" for each directory in $ac_dir_suffix.
12855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12856 else
12857 ac_dir_suffix= ac_top_builddir=
12860 case $srcdir in
12861 .) # No --srcdir option. We are building in place.
12862 ac_srcdir=.
12863 if test -z "$ac_top_builddir"; then
12864 ac_top_srcdir=.
12865 else
12866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12867 fi ;;
12868 [\\/]* | ?:[\\/]* ) # Absolute path.
12869 ac_srcdir=$srcdir$ac_dir_suffix;
12870 ac_top_srcdir=$srcdir ;;
12871 *) # Relative path.
12872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12874 esac
12876 # Do not use `cd foo && pwd` to compute absolute paths, because
12877 # the directories may not exist.
12878 case `pwd` in
12879 .) ac_abs_builddir="$ac_dir";;
12881 case "$ac_dir" in
12882 .) ac_abs_builddir=`pwd`;;
12883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12885 esac;;
12886 esac
12887 case $ac_abs_builddir in
12888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12890 case ${ac_top_builddir}. in
12891 .) ac_abs_top_builddir=$ac_abs_builddir;;
12892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12894 esac;;
12895 esac
12896 case $ac_abs_builddir in
12897 .) ac_abs_srcdir=$ac_srcdir;;
12899 case $ac_srcdir in
12900 .) ac_abs_srcdir=$ac_abs_builddir;;
12901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12903 esac;;
12904 esac
12905 case $ac_abs_builddir in
12906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12908 case $ac_top_srcdir in
12909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12912 esac;;
12913 esac
12916 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12917 echo "$as_me: executing $ac_dest commands" >&6;}
12918 case $ac_dest in
12919 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12920 # Strip MF so we end up with the name of the file.
12921 mf=`echo "$mf" | sed -e 's/:.*$//'`
12922 # Check whether this is an Automake generated Makefile or not.
12923 # We used to match only the files named `Makefile.in', but
12924 # some people rename them; so instead we look at the file content.
12925 # Grep'ing the first line is not enough: some people post-process
12926 # each Makefile.in and add a new line on top of each file to say so.
12927 # So let's grep whole file.
12928 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12929 dirpart=`(dirname "$mf") 2>/dev/null ||
12930 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12931 X"$mf" : 'X\(//\)[^/]' \| \
12932 X"$mf" : 'X\(//\)$' \| \
12933 X"$mf" : 'X\(/\)' \| \
12934 . : '\(.\)' 2>/dev/null ||
12935 echo X"$mf" |
12936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12938 /^X\(\/\/\)$/{ s//\1/; q; }
12939 /^X\(\/\).*/{ s//\1/; q; }
12940 s/.*/./; q'`
12941 else
12942 continue
12944 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12945 # Extract the definition of DEP_FILES from the Makefile without
12946 # running `make'.
12947 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12948 test -z "$DEPDIR" && continue
12949 # When using ansi2knr, U may be empty or an underscore; expand it
12950 U=`sed -n -e '/^U = / s///p' < "$mf"`
12951 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12952 # We invoke sed twice because it is the simplest approach to
12953 # changing $(DEPDIR) to its actual value in the expansion.
12954 for file in `sed -n -e '
12955 /^DEP_FILES = .*\\\\$/ {
12956 s/^DEP_FILES = //
12957 :loop
12958 s/\\\\$//
12961 /\\\\$/ b loop
12964 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12966 # Make sure the directory exists.
12967 test -f "$dirpart/$file" && continue
12968 fdir=`(dirname "$file") 2>/dev/null ||
12969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12970 X"$file" : 'X\(//\)[^/]' \| \
12971 X"$file" : 'X\(//\)$' \| \
12972 X"$file" : 'X\(/\)' \| \
12973 . : '\(.\)' 2>/dev/null ||
12974 echo X"$file" |
12975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12977 /^X\(\/\/\)$/{ s//\1/; q; }
12978 /^X\(\/\).*/{ s//\1/; q; }
12979 s/.*/./; q'`
12980 { if $as_mkdir_p; then
12981 mkdir -p $dirpart/$fdir
12982 else
12983 as_dir=$dirpart/$fdir
12984 as_dirs=
12985 while test ! -d "$as_dir"; do
12986 as_dirs="$as_dir $as_dirs"
12987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12989 X"$as_dir" : 'X\(//\)[^/]' \| \
12990 X"$as_dir" : 'X\(//\)$' \| \
12991 X"$as_dir" : 'X\(/\)' \| \
12992 . : '\(.\)' 2>/dev/null ||
12993 echo X"$as_dir" |
12994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12996 /^X\(\/\/\)$/{ s//\1/; q; }
12997 /^X\(\/\).*/{ s//\1/; q; }
12998 s/.*/./; q'`
12999 done
13000 test ! -n "$as_dirs" || mkdir $as_dirs
13001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13003 { (exit 1); exit 1; }; }; }
13005 # echo "creating $dirpart/$file"
13006 echo '# dummy' > "$dirpart/$file"
13007 done
13008 done
13010 default-1 )
13011 for ac_file in $CONFIG_FILES; do
13012 # Support "outfile[:infile[:infile...]]"
13013 case "$ac_file" in
13014 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13015 esac
13016 # PO directories have a Makefile.in generated from Makefile.in.in.
13017 case "$ac_file" in */Makefile.in)
13018 # Adjust a relative srcdir.
13019 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13020 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13021 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13022 # In autoconf-2.13 it is called $ac_given_srcdir.
13023 # In autoconf-2.50 it is called $srcdir.
13024 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13025 case "$ac_given_srcdir" in
13026 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13027 /*) top_srcdir="$ac_given_srcdir" ;;
13028 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13029 esac
13030 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13031 rm -f "$ac_dir/POTFILES"
13032 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13033 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13034 POMAKEFILEDEPS="POTFILES.in"
13035 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13036 # on $ac_dir but don't depend on user-specified configuration
13037 # parameters.
13038 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13039 # The LINGUAS file contains the set of available languages.
13040 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13041 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13043 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13044 # Hide the ALL_LINGUAS assigment from automake.
13045 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13046 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13047 else
13048 # The set of available languages was given in configure.in.
13049 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13051 case "$ac_given_srcdir" in
13052 .) srcdirpre= ;;
13053 *) srcdirpre='$(srcdir)/' ;;
13054 esac
13055 POFILES=
13056 GMOFILES=
13057 UPDATEPOFILES=
13058 DUMMYPOFILES=
13059 for lang in $ALL_LINGUAS; do
13060 POFILES="$POFILES $srcdirpre$lang.po"
13061 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13062 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13063 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13064 done
13065 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13066 # environment variable.
13067 INST_LINGUAS=
13068 if test -n "$ALL_LINGUAS"; then
13069 for presentlang in $ALL_LINGUAS; do
13070 useit=no
13071 if test "%UNSET%" != "$LINGUAS"; then
13072 desiredlanguages="$LINGUAS"
13073 else
13074 desiredlanguages="$ALL_LINGUAS"
13076 for desiredlang in $desiredlanguages; do
13077 # Use the presentlang catalog if desiredlang is
13078 # a. equal to presentlang, or
13079 # b. a variant of presentlang (because in this case,
13080 # presentlang can be used as a fallback for messages
13081 # which are not translated in the desiredlang catalog).
13082 case "$desiredlang" in
13083 "$presentlang"*) useit=yes;;
13084 esac
13085 done
13086 if test $useit = yes; then
13087 INST_LINGUAS="$INST_LINGUAS $presentlang"
13089 done
13091 CATALOGS=
13092 if test -n "$INST_LINGUAS"; then
13093 for lang in $INST_LINGUAS; do
13094 CATALOGS="$CATALOGS $lang.gmo"
13095 done
13097 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13098 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13099 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13100 if test -f "$f"; then
13101 case "$f" in
13102 *.orig | *.bak | *~) ;;
13103 *) cat "$f" >> "$ac_dir/Makefile" ;;
13104 esac
13106 done
13109 esac
13110 done ;;
13111 esac
13112 done
13113 _ACEOF
13115 cat >>$CONFIG_STATUS <<\_ACEOF
13117 { (exit 0); exit 0; }
13118 _ACEOF
13119 chmod +x $CONFIG_STATUS
13120 ac_clean_files=$ac_clean_files_save
13123 # configure is writing to config.log, and then calls config.status.
13124 # config.status does its own redirection, appending to config.log.
13125 # Unfortunately, on DOS this fails, as config.log is still kept open
13126 # by configure, so config.status won't be able to write to it; its
13127 # output is simply discarded. So we exec the FD to /dev/null,
13128 # effectively closing config.log, so it can be properly (re)opened and
13129 # appended to by config.status. When coming back to configure, we
13130 # need to make the FD available again.
13131 if test "$no_create" != yes; then
13132 ac_cs_success=:
13133 ac_config_status_args=
13134 test "$silent" = yes &&
13135 ac_config_status_args="$ac_config_status_args --quiet"
13136 exec 5>/dev/null
13137 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13138 exec 5>>config.log
13139 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13140 # would make configure fail if this is the last instruction.
13141 $ac_cs_success || { (exit 1); exit 1; }
13145 echo
13146 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
13147 echo