Add compressed SVG extension : .svgz.
[gliv.git] / configure
blob594d46c452f2dfa16e39b681b6ba33fa5827ca10
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for gliv 1.8.2.
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.2'
273 PACKAGE_STRING='gliv 1.8.2'
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.2 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.2:";;
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.2
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.2, 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.2'
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*
3335 OLD_CFLAGS="$CFLAGS"
3336 CFLAGS="$CFLAGS -w"
3337 echo "$as_me:$LINENO: checking for library containing atan2" >&5
3338 echo $ECHO_N "checking for library containing atan2... $ECHO_C" >&6
3339 if test "${ac_cv_search_atan2+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 ac_func_search_save_LIBS=$LIBS
3343 ac_cv_search_atan2=no
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 #ifdef __cplusplus
3353 extern "C"
3354 #endif
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3357 char atan2 ();
3359 main ()
3361 atan2 ();
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest$ac_exeext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 ac_cv_search_atan2="none required"
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3394 rm -f conftest.err conftest.$ac_objext \
3395 conftest$ac_exeext conftest.$ac_ext
3396 if test "$ac_cv_search_atan2" = no; then
3397 for ac_lib in m mx; do
3398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char atan2 ();
3414 main ()
3416 atan2 ();
3418 return 0;
3420 _ACEOF
3421 rm -f conftest.$ac_objext conftest$ac_exeext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3423 (eval $ac_link) 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest$ac_exeext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_search_atan2="-l$ac_lib"
3444 break
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f conftest.err conftest.$ac_objext \
3451 conftest$ac_exeext conftest.$ac_ext
3452 done
3454 LIBS=$ac_func_search_save_LIBS
3456 echo "$as_me:$LINENO: result: $ac_cv_search_atan2" >&5
3457 echo "${ECHO_T}$ac_cv_search_atan2" >&6
3458 if test "$ac_cv_search_atan2" != no; then
3459 test "$ac_cv_search_atan2" = "none required" || LIBS="$ac_cv_search_atan2 $LIBS"
3461 cat >>confdefs.h <<\_ACEOF
3462 #define HAVE_ATAN2 1
3463 _ACEOF
3467 CFLAGS="$OLD_CFLAGS"
3470 # Checks for hypot (SVID 3, BSD 4.3).
3471 # The replacement is #defined in the source.
3472 OLD_CFLAGS="$CFLAGS"
3473 CFLAGS="$CFLAGS -w"
3474 echo "$as_me:$LINENO: checking for library containing hypot" >&5
3475 echo $ECHO_N "checking for library containing hypot... $ECHO_C" >&6
3476 if test "${ac_cv_search_hypot+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 ac_func_search_save_LIBS=$LIBS
3480 ac_cv_search_hypot=no
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 #ifdef __cplusplus
3490 extern "C"
3491 #endif
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494 char hypot ();
3496 main ()
3498 hypot ();
3500 return 0;
3502 _ACEOF
3503 rm -f conftest.$ac_objext conftest$ac_exeext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505 (eval $ac_link) 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_c_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest$ac_exeext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_cv_search_hypot="none required"
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3531 rm -f conftest.err conftest.$ac_objext \
3532 conftest$ac_exeext conftest.$ac_ext
3533 if test "$ac_cv_search_hypot" = no; then
3534 for ac_lib in m mx; do
3535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3536 cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h. */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 #ifdef __cplusplus
3545 extern "C"
3546 #endif
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char hypot ();
3551 main ()
3553 hypot ();
3555 return 0;
3557 _ACEOF
3558 rm -f conftest.$ac_objext conftest$ac_exeext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3560 (eval $ac_link) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest$ac_exeext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_search_hypot="-l$ac_lib"
3581 break
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f conftest.err conftest.$ac_objext \
3588 conftest$ac_exeext conftest.$ac_ext
3589 done
3591 LIBS=$ac_func_search_save_LIBS
3593 echo "$as_me:$LINENO: result: $ac_cv_search_hypot" >&5
3594 echo "${ECHO_T}$ac_cv_search_hypot" >&6
3595 if test "$ac_cv_search_hypot" != no; then
3596 test "$ac_cv_search_hypot" = "none required" || LIBS="$ac_cv_search_hypot $LIBS"
3598 cat >>confdefs.h <<\_ACEOF
3599 #define HAVE_HYPOT 1
3600 _ACEOF
3604 CFLAGS="$OLD_CFLAGS"
3607 # Checks for math functions using floats.
3608 # Using floats instead of doubles makes gcc use SSE with -msse
3609 # The replacement are #defined in math_floats.h.
3610 OLD_CFLAGS="$CFLAGS"
3611 CFLAGS="$CFLAGS -w"
3612 echo "$as_me:$LINENO: checking for library containing sqrtf" >&5
3613 echo $ECHO_N "checking for library containing sqrtf... $ECHO_C" >&6
3614 if test "${ac_cv_search_sqrtf+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 ac_func_search_save_LIBS=$LIBS
3618 ac_cv_search_sqrtf=no
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3626 /* Override any gcc2 internal prototype to avoid an error. */
3627 #ifdef __cplusplus
3628 extern "C"
3629 #endif
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3632 char sqrtf ();
3634 main ()
3636 sqrtf ();
3638 return 0;
3640 _ACEOF
3641 rm -f conftest.$ac_objext conftest$ac_exeext
3642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643 (eval $ac_link) 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
3650 { ac_try='test -z "$ac_c_werror_flag"
3651 || test ! -s conftest.err'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_search_sqrtf="none required"
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f conftest.err conftest.$ac_objext \
3670 conftest$ac_exeext conftest.$ac_ext
3671 if test "$ac_cv_search_sqrtf" = no; then
3672 for ac_lib in m mx; do
3673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 #ifdef __cplusplus
3683 extern "C"
3684 #endif
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687 char sqrtf ();
3689 main ()
3691 sqrtf ();
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext conftest$ac_exeext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>conftest.er1
3699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } &&
3705 { ac_try='test -z "$ac_c_werror_flag"
3706 || test ! -s conftest.err'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; } &&
3712 { ac_try='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_search_sqrtf="-l$ac_lib"
3719 break
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3725 rm -f conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
3727 done
3729 LIBS=$ac_func_search_save_LIBS
3731 echo "$as_me:$LINENO: result: $ac_cv_search_sqrtf" >&5
3732 echo "${ECHO_T}$ac_cv_search_sqrtf" >&6
3733 if test "$ac_cv_search_sqrtf" != no; then
3734 test "$ac_cv_search_sqrtf" = "none required" || LIBS="$ac_cv_search_sqrtf $LIBS"
3736 cat >>confdefs.h <<\_ACEOF
3737 #define HAVE_SQRTF 1
3738 _ACEOF
3742 CFLAGS="$OLD_CFLAGS"
3743 OLD_CFLAGS="$CFLAGS"
3744 CFLAGS="$CFLAGS -w"
3745 echo "$as_me:$LINENO: checking for library containing hypotf" >&5
3746 echo $ECHO_N "checking for library containing hypotf... $ECHO_C" >&6
3747 if test "${ac_cv_search_hypotf+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 ac_func_search_save_LIBS=$LIBS
3751 ac_cv_search_hypotf=no
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3759 /* Override any gcc2 internal prototype to avoid an error. */
3760 #ifdef __cplusplus
3761 extern "C"
3762 #endif
3763 /* We use char because int might match the return type of a gcc2
3764 builtin and then its argument prototype would still apply. */
3765 char hypotf ();
3767 main ()
3769 hypotf ();
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.$ac_objext conftest$ac_exeext
3775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776 (eval $ac_link) 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -z "$ac_c_werror_flag"
3784 || test ! -s conftest.err'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try='test -s conftest$ac_exeext'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5
3793 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; }; then
3796 ac_cv_search_hypotf="none required"
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3802 rm -f conftest.err conftest.$ac_objext \
3803 conftest$ac_exeext conftest.$ac_ext
3804 if test "$ac_cv_search_hypotf" = no; then
3805 for ac_lib in m mx; do
3806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3807 cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h. */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3814 /* Override any gcc2 internal prototype to avoid an error. */
3815 #ifdef __cplusplus
3816 extern "C"
3817 #endif
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3820 char hypotf ();
3822 main ()
3824 hypotf ();
3826 return 0;
3828 _ACEOF
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest$ac_exeext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_search_hypotf="-l$ac_lib"
3852 break
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3858 rm -f conftest.err conftest.$ac_objext \
3859 conftest$ac_exeext conftest.$ac_ext
3860 done
3862 LIBS=$ac_func_search_save_LIBS
3864 echo "$as_me:$LINENO: result: $ac_cv_search_hypotf" >&5
3865 echo "${ECHO_T}$ac_cv_search_hypotf" >&6
3866 if test "$ac_cv_search_hypotf" != no; then
3867 test "$ac_cv_search_hypotf" = "none required" || LIBS="$ac_cv_search_hypotf $LIBS"
3869 cat >>confdefs.h <<\_ACEOF
3870 #define HAVE_HYPOTF 1
3871 _ACEOF
3875 CFLAGS="$OLD_CFLAGS"
3876 OLD_CFLAGS="$CFLAGS"
3877 CFLAGS="$CFLAGS -w"
3878 echo "$as_me:$LINENO: checking for library containing atan2f" >&5
3879 echo $ECHO_N "checking for library containing atan2f... $ECHO_C" >&6
3880 if test "${ac_cv_search_atan2f+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 ac_func_search_save_LIBS=$LIBS
3884 ac_cv_search_atan2f=no
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 #ifdef __cplusplus
3894 extern "C"
3895 #endif
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3898 char atan2f ();
3900 main ()
3902 atan2f ();
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try='test -s conftest$ac_exeext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_cv_search_atan2f="none required"
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3935 rm -f conftest.err conftest.$ac_objext \
3936 conftest$ac_exeext conftest.$ac_ext
3937 if test "$ac_cv_search_atan2f" = no; then
3938 for ac_lib in m mx; do
3939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 #ifdef __cplusplus
3949 extern "C"
3950 #endif
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3953 char atan2f ();
3955 main ()
3957 atan2f ();
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.$ac_objext conftest$ac_exeext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964 (eval $ac_link) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_c_werror_flag"
3972 || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest$ac_exeext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_cv_search_atan2f="-l$ac_lib"
3985 break
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3991 rm -f conftest.err conftest.$ac_objext \
3992 conftest$ac_exeext conftest.$ac_ext
3993 done
3995 LIBS=$ac_func_search_save_LIBS
3997 echo "$as_me:$LINENO: result: $ac_cv_search_atan2f" >&5
3998 echo "${ECHO_T}$ac_cv_search_atan2f" >&6
3999 if test "$ac_cv_search_atan2f" != no; then
4000 test "$ac_cv_search_atan2f" = "none required" || LIBS="$ac_cv_search_atan2f $LIBS"
4002 cat >>confdefs.h <<\_ACEOF
4003 #define HAVE_ATAN2F 1
4004 _ACEOF
4008 CFLAGS="$OLD_CFLAGS"
4009 OLD_CFLAGS="$CFLAGS"
4010 CFLAGS="$CFLAGS -w"
4011 echo "$as_me:$LINENO: checking for library containing powf" >&5
4012 echo $ECHO_N "checking for library containing powf... $ECHO_C" >&6
4013 if test "${ac_cv_search_powf+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 ac_func_search_save_LIBS=$LIBS
4017 ac_cv_search_powf=no
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4025 /* Override any gcc2 internal prototype to avoid an error. */
4026 #ifdef __cplusplus
4027 extern "C"
4028 #endif
4029 /* We use char because int might match the return type of a gcc2
4030 builtin and then its argument prototype would still apply. */
4031 char powf ();
4033 main ()
4035 powf ();
4037 return 0;
4039 _ACEOF
4040 rm -f conftest.$ac_objext conftest$ac_exeext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042 (eval $ac_link) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_c_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest$ac_exeext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_cv_search_powf="none required"
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4068 rm -f conftest.err conftest.$ac_objext \
4069 conftest$ac_exeext conftest.$ac_ext
4070 if test "$ac_cv_search_powf" = no; then
4071 for ac_lib in m mx; do
4072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 #ifdef __cplusplus
4082 extern "C"
4083 #endif
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4086 char powf ();
4088 main ()
4090 powf ();
4092 return 0;
4094 _ACEOF
4095 rm -f conftest.$ac_objext conftest$ac_exeext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097 (eval $ac_link) 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest$ac_exeext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_search_powf="-l$ac_lib"
4118 break
4119 else
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4124 rm -f conftest.err conftest.$ac_objext \
4125 conftest$ac_exeext conftest.$ac_ext
4126 done
4128 LIBS=$ac_func_search_save_LIBS
4130 echo "$as_me:$LINENO: result: $ac_cv_search_powf" >&5
4131 echo "${ECHO_T}$ac_cv_search_powf" >&6
4132 if test "$ac_cv_search_powf" != no; then
4133 test "$ac_cv_search_powf" = "none required" || LIBS="$ac_cv_search_powf $LIBS"
4135 cat >>confdefs.h <<\_ACEOF
4136 #define HAVE_POWF 1
4137 _ACEOF
4141 CFLAGS="$OLD_CFLAGS"
4142 OLD_CFLAGS="$CFLAGS"
4143 CFLAGS="$CFLAGS -w"
4144 echo "$as_me:$LINENO: checking for library containing ceilf" >&5
4145 echo $ECHO_N "checking for library containing ceilf... $ECHO_C" >&6
4146 if test "${ac_cv_search_ceilf+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 ac_func_search_save_LIBS=$LIBS
4150 ac_cv_search_ceilf=no
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 #ifdef __cplusplus
4160 extern "C"
4161 #endif
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4164 char ceilf ();
4166 main ()
4168 ceilf ();
4170 return 0;
4172 _ACEOF
4173 rm -f conftest.$ac_objext conftest$ac_exeext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_c_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest$ac_exeext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 ac_cv_search_ceilf="none required"
4196 else
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4201 rm -f conftest.err conftest.$ac_objext \
4202 conftest$ac_exeext conftest.$ac_ext
4203 if test "$ac_cv_search_ceilf" = no; then
4204 for ac_lib in m mx; do
4205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 #ifdef __cplusplus
4215 extern "C"
4216 #endif
4217 /* We use char because int might match the return type of a gcc2
4218 builtin and then its argument prototype would still apply. */
4219 char ceilf ();
4221 main ()
4223 ceilf ();
4225 return 0;
4227 _ACEOF
4228 rm -f conftest.$ac_objext conftest$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -z "$ac_c_werror_flag"
4238 || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_search_ceilf="-l$ac_lib"
4251 break
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4257 rm -f conftest.err conftest.$ac_objext \
4258 conftest$ac_exeext conftest.$ac_ext
4259 done
4261 LIBS=$ac_func_search_save_LIBS
4263 echo "$as_me:$LINENO: result: $ac_cv_search_ceilf" >&5
4264 echo "${ECHO_T}$ac_cv_search_ceilf" >&6
4265 if test "$ac_cv_search_ceilf" != no; then
4266 test "$ac_cv_search_ceilf" = "none required" || LIBS="$ac_cv_search_ceilf $LIBS"
4268 cat >>confdefs.h <<\_ACEOF
4269 #define HAVE_CEILF 1
4270 _ACEOF
4274 CFLAGS="$OLD_CFLAGS"
4275 OLD_CFLAGS="$CFLAGS"
4276 CFLAGS="$CFLAGS -w"
4277 echo "$as_me:$LINENO: checking for library containing cosf" >&5
4278 echo $ECHO_N "checking for library containing cosf... $ECHO_C" >&6
4279 if test "${ac_cv_search_cosf+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 ac_func_search_save_LIBS=$LIBS
4283 ac_cv_search_cosf=no
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 /* Override any gcc2 internal prototype to avoid an error. */
4292 #ifdef __cplusplus
4293 extern "C"
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char cosf ();
4299 main ()
4301 cosf ();
4303 return 0;
4305 _ACEOF
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308 (eval $ac_link) 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -z "$ac_c_werror_flag"
4316 || test ! -s conftest.err'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 (eval $ac_try) 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; } &&
4322 { ac_try='test -s conftest$ac_exeext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_search_cosf="none required"
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4334 rm -f conftest.err conftest.$ac_objext \
4335 conftest$ac_exeext conftest.$ac_ext
4336 if test "$ac_cv_search_cosf" = no; then
4337 for ac_lib in m mx; do
4338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4346 /* Override any gcc2 internal prototype to avoid an error. */
4347 #ifdef __cplusplus
4348 extern "C"
4349 #endif
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4352 char cosf ();
4354 main ()
4356 cosf ();
4358 return 0;
4360 _ACEOF
4361 rm -f conftest.$ac_objext conftest$ac_exeext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4363 (eval $ac_link) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -z "$ac_c_werror_flag"
4371 || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_search_cosf="-l$ac_lib"
4384 break
4385 else
4386 echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4390 rm -f conftest.err conftest.$ac_objext \
4391 conftest$ac_exeext conftest.$ac_ext
4392 done
4394 LIBS=$ac_func_search_save_LIBS
4396 echo "$as_me:$LINENO: result: $ac_cv_search_cosf" >&5
4397 echo "${ECHO_T}$ac_cv_search_cosf" >&6
4398 if test "$ac_cv_search_cosf" != no; then
4399 test "$ac_cv_search_cosf" = "none required" || LIBS="$ac_cv_search_cosf $LIBS"
4401 cat >>confdefs.h <<\_ACEOF
4402 #define HAVE_COSF 1
4403 _ACEOF
4407 CFLAGS="$OLD_CFLAGS"
4408 OLD_CFLAGS="$CFLAGS"
4409 CFLAGS="$CFLAGS -w"
4410 echo "$as_me:$LINENO: checking for library containing sinf" >&5
4411 echo $ECHO_N "checking for library containing sinf... $ECHO_C" >&6
4412 if test "${ac_cv_search_sinf+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 ac_func_search_save_LIBS=$LIBS
4416 ac_cv_search_sinf=no
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 /* Override any gcc2 internal prototype to avoid an error. */
4425 #ifdef __cplusplus
4426 extern "C"
4427 #endif
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4430 char sinf ();
4432 main ()
4434 sinf ();
4436 return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest$ac_exeext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_cv_search_sinf="none required"
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4467 rm -f conftest.err conftest.$ac_objext \
4468 conftest$ac_exeext conftest.$ac_ext
4469 if test "$ac_cv_search_sinf" = no; then
4470 for ac_lib in m mx; do
4471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4472 cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4479 /* Override any gcc2 internal prototype to avoid an error. */
4480 #ifdef __cplusplus
4481 extern "C"
4482 #endif
4483 /* We use char because int might match the return type of a gcc2
4484 builtin and then its argument prototype would still apply. */
4485 char sinf ();
4487 main ()
4489 sinf ();
4491 return 0;
4493 _ACEOF
4494 rm -f conftest.$ac_objext conftest$ac_exeext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4496 (eval $ac_link) 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_c_werror_flag"
4504 || test ! -s conftest.err'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; } &&
4510 { ac_try='test -s conftest$ac_exeext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_cv_search_sinf="-l$ac_lib"
4517 break
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4523 rm -f conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
4525 done
4527 LIBS=$ac_func_search_save_LIBS
4529 echo "$as_me:$LINENO: result: $ac_cv_search_sinf" >&5
4530 echo "${ECHO_T}$ac_cv_search_sinf" >&6
4531 if test "$ac_cv_search_sinf" != no; then
4532 test "$ac_cv_search_sinf" = "none required" || LIBS="$ac_cv_search_sinf $LIBS"
4534 cat >>confdefs.h <<\_ACEOF
4535 #define HAVE_SINF 1
4536 _ACEOF
4540 CFLAGS="$OLD_CFLAGS"
4541 OLD_CFLAGS="$CFLAGS"
4542 CFLAGS="$CFLAGS -w"
4543 echo "$as_me:$LINENO: checking for library containing acosf" >&5
4544 echo $ECHO_N "checking for library containing acosf... $ECHO_C" >&6
4545 if test "${ac_cv_search_acosf+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 ac_func_search_save_LIBS=$LIBS
4549 ac_cv_search_acosf=no
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 #ifdef __cplusplus
4559 extern "C"
4560 #endif
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4563 char acosf ();
4565 main ()
4567 acosf ();
4569 return 0;
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574 (eval $ac_link) 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -z "$ac_c_werror_flag"
4582 || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_cv_search_acosf="none required"
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f conftest.err conftest.$ac_objext \
4601 conftest$ac_exeext conftest.$ac_ext
4602 if test "$ac_cv_search_acosf" = no; then
4603 for ac_lib in m mx; do
4604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 #ifdef __cplusplus
4614 extern "C"
4615 #endif
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4618 char acosf ();
4620 main ()
4622 acosf ();
4624 return 0;
4626 _ACEOF
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629 (eval $ac_link) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest$ac_exeext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_cv_search_acosf="-l$ac_lib"
4650 break
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4656 rm -f conftest.err conftest.$ac_objext \
4657 conftest$ac_exeext conftest.$ac_ext
4658 done
4660 LIBS=$ac_func_search_save_LIBS
4662 echo "$as_me:$LINENO: result: $ac_cv_search_acosf" >&5
4663 echo "${ECHO_T}$ac_cv_search_acosf" >&6
4664 if test "$ac_cv_search_acosf" != no; then
4665 test "$ac_cv_search_acosf" = "none required" || LIBS="$ac_cv_search_acosf $LIBS"
4667 cat >>confdefs.h <<\_ACEOF
4668 #define HAVE_ACOSF 1
4669 _ACEOF
4673 CFLAGS="$OLD_CFLAGS"
4674 OLD_CFLAGS="$CFLAGS"
4675 CFLAGS="$CFLAGS -w"
4676 echo "$as_me:$LINENO: checking for library containing fmodf" >&5
4677 echo $ECHO_N "checking for library containing fmodf... $ECHO_C" >&6
4678 if test "${ac_cv_search_fmodf+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 ac_func_search_save_LIBS=$LIBS
4682 ac_cv_search_fmodf=no
4683 cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h. */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 #ifdef __cplusplus
4692 extern "C"
4693 #endif
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4696 char fmodf ();
4698 main ()
4700 fmodf ();
4702 return 0;
4704 _ACEOF
4705 rm -f conftest.$ac_objext conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try='test -z "$ac_c_werror_flag"
4715 || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest$ac_exeext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_search_fmodf="none required"
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4733 rm -f conftest.err conftest.$ac_objext \
4734 conftest$ac_exeext conftest.$ac_ext
4735 if test "$ac_cv_search_fmodf" = no; then
4736 for ac_lib in m mx; do
4737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 #ifdef __cplusplus
4747 extern "C"
4748 #endif
4749 /* We use char because int might match the return type of a gcc2
4750 builtin and then its argument prototype would still apply. */
4751 char fmodf ();
4753 main ()
4755 fmodf ();
4757 return 0;
4759 _ACEOF
4760 rm -f conftest.$ac_objext conftest$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -z "$ac_c_werror_flag"
4770 || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest$ac_exeext'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then
4782 ac_cv_search_fmodf="-l$ac_lib"
4783 break
4784 else
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4789 rm -f conftest.err conftest.$ac_objext \
4790 conftest$ac_exeext conftest.$ac_ext
4791 done
4793 LIBS=$ac_func_search_save_LIBS
4795 echo "$as_me:$LINENO: result: $ac_cv_search_fmodf" >&5
4796 echo "${ECHO_T}$ac_cv_search_fmodf" >&6
4797 if test "$ac_cv_search_fmodf" != no; then
4798 test "$ac_cv_search_fmodf" = "none required" || LIBS="$ac_cv_search_fmodf $LIBS"
4800 cat >>confdefs.h <<\_ACEOF
4801 #define HAVE_FMODF 1
4802 _ACEOF
4806 CFLAGS="$OLD_CFLAGS"
4807 OLD_CFLAGS="$CFLAGS"
4808 CFLAGS="$CFLAGS -w"
4809 echo "$as_me:$LINENO: checking for library containing fabsf" >&5
4810 echo $ECHO_N "checking for library containing fabsf... $ECHO_C" >&6
4811 if test "${ac_cv_search_fabsf+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 ac_func_search_save_LIBS=$LIBS
4815 ac_cv_search_fabsf=no
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4823 /* Override any gcc2 internal prototype to avoid an error. */
4824 #ifdef __cplusplus
4825 extern "C"
4826 #endif
4827 /* We use char because int might match the return type of a gcc2
4828 builtin and then its argument prototype would still apply. */
4829 char fabsf ();
4831 main ()
4833 fabsf ();
4835 return 0;
4837 _ACEOF
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840 (eval $ac_link) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -z "$ac_c_werror_flag"
4848 || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest$ac_exeext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_search_fabsf="none required"
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4866 rm -f conftest.err conftest.$ac_objext \
4867 conftest$ac_exeext conftest.$ac_ext
4868 if test "$ac_cv_search_fabsf" = no; then
4869 for ac_lib in m mx; do
4870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 #ifdef __cplusplus
4880 extern "C"
4881 #endif
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4884 char fabsf ();
4886 main ()
4888 fabsf ();
4890 return 0;
4892 _ACEOF
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_search_fabsf="-l$ac_lib"
4916 break
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4922 rm -f conftest.err conftest.$ac_objext \
4923 conftest$ac_exeext conftest.$ac_ext
4924 done
4926 LIBS=$ac_func_search_save_LIBS
4928 echo "$as_me:$LINENO: result: $ac_cv_search_fabsf" >&5
4929 echo "${ECHO_T}$ac_cv_search_fabsf" >&6
4930 if test "$ac_cv_search_fabsf" != no; then
4931 test "$ac_cv_search_fabsf" = "none required" || LIBS="$ac_cv_search_fabsf $LIBS"
4933 cat >>confdefs.h <<\_ACEOF
4934 #define HAVE_FABSF 1
4935 _ACEOF
4939 CFLAGS="$OLD_CFLAGS"
4941 # If we don't have ftello, we'll use ftell.
4943 for ac_func in ftello
4945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4946 echo "$as_me:$LINENO: checking for $ac_func" >&5
4947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4948 if eval "test \"\${$as_ac_var+set}\" = set"; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4959 #define $ac_func innocuous_$ac_func
4961 /* System header to define __stub macros and hopefully few prototypes,
4962 which can conflict with char $ac_func (); below.
4963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 <limits.h> exists even on freestanding compilers. */
4966 #ifdef __STDC__
4967 # include <limits.h>
4968 #else
4969 # include <assert.h>
4970 #endif
4972 #undef $ac_func
4974 /* Override any gcc2 internal prototype to avoid an error. */
4975 #ifdef __cplusplus
4976 extern "C"
4978 #endif
4979 /* We use char because int might match the return type of a gcc2
4980 builtin and then its argument prototype would still apply. */
4981 char $ac_func ();
4982 /* The GNU C library defines this for functions which it implements
4983 to always fail with ENOSYS. Some functions are actually named
4984 something starting with __ and the normal name is an alias. */
4985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4986 choke me
4987 #else
4988 char (*f) () = $ac_func;
4989 #endif
4990 #ifdef __cplusplus
4992 #endif
4995 main ()
4997 return f != $ac_func;
4999 return 0;
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 eval "$as_ac_var=yes"
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 eval "$as_ac_var=no"
5031 rm -f conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5036 if test `eval echo '${'$as_ac_var'}'` = yes; then
5037 cat >>confdefs.h <<_ACEOF
5038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5039 _ACEOF
5042 done
5046 # Checks for getdelim, this is a GNU extension.
5047 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5049 for ac_func in getdelim
5051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5052 echo "$as_me:$LINENO: checking for $ac_func" >&5
5053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_var+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5065 #define $ac_func innocuous_$ac_func
5067 /* System header to define __stub macros and hopefully few prototypes,
5068 which can conflict with char $ac_func (); below.
5069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 <limits.h> exists even on freestanding compilers. */
5072 #ifdef __STDC__
5073 # include <limits.h>
5074 #else
5075 # include <assert.h>
5076 #endif
5078 #undef $ac_func
5080 /* Override any gcc2 internal prototype to avoid an error. */
5081 #ifdef __cplusplus
5082 extern "C"
5084 #endif
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5087 char $ac_func ();
5088 /* The GNU C library defines this for functions which it implements
5089 to always fail with ENOSYS. Some functions are actually named
5090 something starting with __ and the normal name is an alias. */
5091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5092 choke me
5093 #else
5094 char (*f) () = $ac_func;
5095 #endif
5096 #ifdef __cplusplus
5098 #endif
5101 main ()
5103 return f != $ac_func;
5105 return 0;
5107 _ACEOF
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 eval "$as_ac_var=yes"
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 eval "$as_ac_var=no"
5137 rm -f conftest.err conftest.$ac_objext \
5138 conftest$ac_exeext conftest.$ac_ext
5140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5142 if test `eval echo '${'$as_ac_var'}'` = yes; then
5143 cat >>confdefs.h <<_ACEOF
5144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5145 _ACEOF
5147 have_getdelim="yes"
5149 else
5151 have_getdelim="no"
5154 done
5159 if test "$have_getdelim" = "yes"; then
5160 GETDELIM_TRUE=
5161 GETDELIM_FALSE='#'
5162 else
5163 GETDELIM_TRUE='#'
5164 GETDELIM_FALSE=
5169 # Checks for getopt_long, another GNU extension.
5171 for ac_func in getopt_long
5173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5174 echo "$as_me:$LINENO: checking for $ac_func" >&5
5175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5176 if eval "test \"\${$as_ac_var+set}\" = set"; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h. */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5187 #define $ac_func innocuous_$ac_func
5189 /* System header to define __stub macros and hopefully few prototypes,
5190 which can conflict with char $ac_func (); below.
5191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 <limits.h> exists even on freestanding compilers. */
5194 #ifdef __STDC__
5195 # include <limits.h>
5196 #else
5197 # include <assert.h>
5198 #endif
5200 #undef $ac_func
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 #ifdef __cplusplus
5204 extern "C"
5206 #endif
5207 /* We use char because int might match the return type of a gcc2
5208 builtin and then its argument prototype would still apply. */
5209 char $ac_func ();
5210 /* The GNU C library defines this for functions which it implements
5211 to always fail with ENOSYS. Some functions are actually named
5212 something starting with __ and the normal name is an alias. */
5213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5214 choke me
5215 #else
5216 char (*f) () = $ac_func;
5217 #endif
5218 #ifdef __cplusplus
5220 #endif
5223 main ()
5225 return f != $ac_func;
5227 return 0;
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag"
5240 || test ! -s conftest.err'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; } &&
5246 { ac_try='test -s conftest$ac_exeext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 eval "$as_ac_var=yes"
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5257 eval "$as_ac_var=no"
5259 rm -f conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
5262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5264 if test `eval echo '${'$as_ac_var'}'` = yes; then
5265 cat >>confdefs.h <<_ACEOF
5266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5267 _ACEOF
5269 have_getopt_long="yes"
5271 else
5273 have_getopt_long="no"
5276 done
5281 if test "$have_getopt_long" = "yes"; then
5282 GETOPT_LONG_TRUE=
5283 GETOPT_LONG_FALSE='#'
5284 else
5285 GETOPT_LONG_TRUE='#'
5286 GETOPT_LONG_FALSE=
5291 if test "$have_getdelim" = "no" ||
5292 test "$have_getopt_long" = "no"; then
5295 if true; then
5296 NEED_REPLACEMENTS_TRUE=
5297 NEED_REPLACEMENTS_FALSE='#'
5298 else
5299 NEED_REPLACEMENTS_TRUE='#'
5300 NEED_REPLACEMENTS_FALSE=
5303 CFLAGS="$CFLAGS -I${srcdir}/../lib"
5304 else
5307 if false; then
5308 NEED_REPLACEMENTS_TRUE=
5309 NEED_REPLACEMENTS_FALSE='#'
5310 else
5311 NEED_REPLACEMENTS_TRUE='#'
5312 NEED_REPLACEMENTS_FALSE=
5318 # Checks for flavours of varargs macros (borrowed from glib-2)
5319 # ISO C99
5320 echo "$as_me:$LINENO: checking for ISO C99 varargs macros" >&5
5321 echo $ECHO_N "checking for ISO C99 varargs macros... $ECHO_C" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5331 main ()
5334 int a(int p1, int p2, int p3);
5335 #define call_a(...) a(1,__VA_ARGS__)
5336 call_a(2,3);
5339 return 0;
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -z "$ac_c_werror_flag"
5352 || test ! -s conftest.err'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; } &&
5358 { ac_try='test -s conftest.$ac_objext'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5364 have_iso_c_varargs=yes
5365 else
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 have_iso_c_varargs=no
5371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373 echo "$as_me:$LINENO: result: $have_iso_c_varargs" >&5
5374 echo "${ECHO_T}$have_iso_c_varargs" >&6
5376 if test $have_iso_c_varargs = yes; then
5377 iso_c_varargs=1
5378 else
5379 iso_c_varargs=0
5383 cat >>confdefs.h <<_ACEOF
5384 #define HAVE_ISO_C_VARARGS $iso_c_varargs
5385 _ACEOF
5388 if test $have_iso_c_varargs = no; then
5389 { echo "$as_me:$LINENO: WARNING: No ISO C99 variadic macros" >&5
5390 echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;}
5393 # Checks for X.
5394 ac_ext=c
5395 ac_cpp='$CPP $CPPFLAGS'
5396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5400 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5401 # On Suns, sometimes $CPP names a directory.
5402 if test -n "$CPP" && test -d "$CPP"; then
5403 CPP=
5405 if test -z "$CPP"; then
5406 if test "${ac_cv_prog_CPP+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 # Double quotes because CPP needs to be expanded
5410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5412 ac_preproc_ok=false
5413 for ac_c_preproc_warn_flag in '' yes
5415 # Use a header file that comes with gcc, so configuring glibc
5416 # with a fresh cross-compiler works.
5417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418 # <limits.h> exists even on freestanding compilers.
5419 # On the NeXT, cc -E runs the code through the compiler's parser,
5420 # not just through cpp. "Syntax error" is here to catch this case.
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #ifdef __STDC__
5428 # include <limits.h>
5429 #else
5430 # include <assert.h>
5431 #endif
5432 Syntax error
5433 _ACEOF
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445 else
5446 ac_cpp_err=
5448 else
5449 ac_cpp_err=yes
5451 if test -z "$ac_cpp_err"; then
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 # Broken: fails on valid input.
5458 continue
5460 rm -f conftest.err conftest.$ac_ext
5462 # OK, works on sane cases. Now check whether non-existent headers
5463 # can be detected and how.
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 #include <ac_nonexistent.h>
5471 _ACEOF
5472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } >/dev/null; then
5480 if test -s conftest.err; then
5481 ac_cpp_err=$ac_c_preproc_warn_flag
5482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5483 else
5484 ac_cpp_err=
5486 else
5487 ac_cpp_err=yes
5489 if test -z "$ac_cpp_err"; then
5490 # Broken: success on invalid input.
5491 continue
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 # Passes both tests.
5497 ac_preproc_ok=:
5498 break
5500 rm -f conftest.err conftest.$ac_ext
5502 done
5503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5504 rm -f conftest.err conftest.$ac_ext
5505 if $ac_preproc_ok; then
5506 break
5509 done
5510 ac_cv_prog_CPP=$CPP
5513 CPP=$ac_cv_prog_CPP
5514 else
5515 ac_cv_prog_CPP=$CPP
5517 echo "$as_me:$LINENO: result: $CPP" >&5
5518 echo "${ECHO_T}$CPP" >&6
5519 ac_preproc_ok=false
5520 for ac_c_preproc_warn_flag in '' yes
5522 # Use a header file that comes with gcc, so configuring glibc
5523 # with a fresh cross-compiler works.
5524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5525 # <limits.h> exists even on freestanding compilers.
5526 # On the NeXT, cc -E runs the code through the compiler's parser,
5527 # not just through cpp. "Syntax error" is here to catch this case.
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h. */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #ifdef __STDC__
5535 # include <limits.h>
5536 #else
5537 # include <assert.h>
5538 #endif
5539 Syntax error
5540 _ACEOF
5541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev/null; then
5549 if test -s conftest.err; then
5550 ac_cpp_err=$ac_c_preproc_warn_flag
5551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5552 else
5553 ac_cpp_err=
5555 else
5556 ac_cpp_err=yes
5558 if test -z "$ac_cpp_err"; then
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 # Broken: fails on valid input.
5565 continue
5567 rm -f conftest.err conftest.$ac_ext
5569 # OK, works on sane cases. Now check whether non-existent headers
5570 # can be detected and how.
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <ac_nonexistent.h>
5578 _ACEOF
5579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } >/dev/null; then
5587 if test -s conftest.err; then
5588 ac_cpp_err=$ac_c_preproc_warn_flag
5589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5590 else
5591 ac_cpp_err=
5593 else
5594 ac_cpp_err=yes
5596 if test -z "$ac_cpp_err"; then
5597 # Broken: success on invalid input.
5598 continue
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 # Passes both tests.
5604 ac_preproc_ok=:
5605 break
5607 rm -f conftest.err conftest.$ac_ext
5609 done
5610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5611 rm -f conftest.err conftest.$ac_ext
5612 if $ac_preproc_ok; then
5614 else
5615 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5616 See \`config.log' for more details." >&5
5617 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5618 See \`config.log' for more details." >&2;}
5619 { (exit 1); exit 1; }; }
5622 ac_ext=c
5623 ac_cpp='$CPP $CPPFLAGS'
5624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629 echo "$as_me:$LINENO: checking for X" >&5
5630 echo $ECHO_N "checking for X... $ECHO_C" >&6
5633 # Check whether --with-x or --without-x was given.
5634 if test "${with_x+set}" = set; then
5635 withval="$with_x"
5638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5639 if test "x$with_x" = xno; then
5640 # The user explicitly disabled X.
5641 have_x=disabled
5642 else
5643 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5644 # Both variables are already set.
5645 have_x=yes
5646 else
5647 if test "${ac_cv_have_x+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 # One or both of the vars are not set, and there is no cached value.
5651 ac_x_includes=no ac_x_libraries=no
5652 rm -fr conftest.dir
5653 if mkdir conftest.dir; then
5654 cd conftest.dir
5655 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5656 cat >Imakefile <<'_ACEOF'
5657 acfindx:
5658 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5659 _ACEOF
5660 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5662 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5663 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5664 for ac_extension in a so sl; do
5665 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5666 test -f $ac_im_libdir/libX11.$ac_extension; then
5667 ac_im_usrlibdir=$ac_im_libdir; break
5669 done
5670 # Screen out bogus values from the imake configuration. They are
5671 # bogus both because they are the default anyway, and because
5672 # using them would break gcc on systems where it needs fixed includes.
5673 case $ac_im_incroot in
5674 /usr/include) ;;
5675 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5676 esac
5677 case $ac_im_usrlibdir in
5678 /usr/lib | /lib) ;;
5679 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5680 esac
5682 cd ..
5683 rm -fr conftest.dir
5686 # Standard set of common directories for X headers.
5687 # Check X11 before X11Rn because it is often a symlink to the current release.
5688 ac_x_header_dirs='
5689 /usr/X11/include
5690 /usr/X11R6/include
5691 /usr/X11R5/include
5692 /usr/X11R4/include
5694 /usr/include/X11
5695 /usr/include/X11R6
5696 /usr/include/X11R5
5697 /usr/include/X11R4
5699 /usr/local/X11/include
5700 /usr/local/X11R6/include
5701 /usr/local/X11R5/include
5702 /usr/local/X11R4/include
5704 /usr/local/include/X11
5705 /usr/local/include/X11R6
5706 /usr/local/include/X11R5
5707 /usr/local/include/X11R4
5709 /usr/X386/include
5710 /usr/x386/include
5711 /usr/XFree86/include/X11
5713 /usr/include
5714 /usr/local/include
5715 /usr/unsupported/include
5716 /usr/athena/include
5717 /usr/local/x11r5/include
5718 /usr/lpp/Xamples/include
5720 /usr/openwin/include
5721 /usr/openwin/share/include'
5723 if test "$ac_x_includes" = no; then
5724 # Guess where to find include files, by looking for Intrinsic.h.
5725 # First, try using that file with no special directory specified.
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <X11/Intrinsic.h>
5733 _ACEOF
5734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } >/dev/null; then
5742 if test -s conftest.err; then
5743 ac_cpp_err=$ac_c_preproc_warn_flag
5744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745 else
5746 ac_cpp_err=
5748 else
5749 ac_cpp_err=yes
5751 if test -z "$ac_cpp_err"; then
5752 # We can compile using X headers with no special include directory.
5753 ac_x_includes=
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 for ac_dir in $ac_x_header_dirs; do
5759 if test -r "$ac_dir/X11/Intrinsic.h"; then
5760 ac_x_includes=$ac_dir
5761 break
5763 done
5765 rm -f conftest.err conftest.$ac_ext
5766 fi # $ac_x_includes = no
5768 if test "$ac_x_libraries" = no; then
5769 # Check for the libraries.
5770 # See if we find them without any special options.
5771 # Don't add to $LIBS permanently.
5772 ac_save_LIBS=$LIBS
5773 LIBS="-lXt $LIBS"
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #include <X11/Intrinsic.h>
5782 main ()
5784 XtMalloc (0)
5786 return 0;
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag"
5799 || test ! -s conftest.err'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; } &&
5805 { ac_try='test -s conftest$ac_exeext'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 LIBS=$ac_save_LIBS
5812 # We can link X programs with no special library path.
5813 ac_x_libraries=
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 LIBS=$ac_save_LIBS
5819 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5821 # Don't even attempt the hair of trying to link an X program!
5822 for ac_extension in a so sl; do
5823 if test -r $ac_dir/libXt.$ac_extension; then
5824 ac_x_libraries=$ac_dir
5825 break 2
5827 done
5828 done
5830 rm -f conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 fi # $ac_x_libraries = no
5834 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5835 # Didn't find X anywhere. Cache the known absence of X.
5836 ac_cv_have_x="have_x=no"
5837 else
5838 # Record where we found X for the cache.
5839 ac_cv_have_x="have_x=yes \
5840 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5845 eval "$ac_cv_have_x"
5846 fi # $with_x != no
5848 if test "$have_x" != yes; then
5849 echo "$as_me:$LINENO: result: $have_x" >&5
5850 echo "${ECHO_T}$have_x" >&6
5851 no_x=yes
5852 else
5853 # If each of the values was on the command line, it overrides each guess.
5854 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5855 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5856 # Update the cache value to reflect the command line values.
5857 ac_cv_have_x="have_x=yes \
5858 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5859 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5860 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5863 if test "$no_x" = yes; then
5864 # Not all programs may use this symbol, but it does not hurt to define it.
5866 cat >>confdefs.h <<\_ACEOF
5867 #define X_DISPLAY_MISSING 1
5868 _ACEOF
5870 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5871 else
5872 if test -n "$x_includes"; then
5873 X_CFLAGS="$X_CFLAGS -I$x_includes"
5876 # It would also be nice to do this for all -L options, not just this one.
5877 if test -n "$x_libraries"; then
5878 X_LIBS="$X_LIBS -L$x_libraries"
5879 # For Solaris; some versions of Sun CC require a space after -R and
5880 # others require no space. Words are not sufficient . . . .
5881 case `(uname -sr) 2>/dev/null` in
5882 "SunOS 5"*)
5883 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5884 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5885 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5894 main ()
5898 return 0;
5900 _ACEOF
5901 rm -f conftest.$ac_objext conftest$ac_exeext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>conftest.er1
5904 ac_status=$?
5905 grep -v '^ *+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } &&
5910 { ac_try='test -z "$ac_c_werror_flag"
5911 || test ! -s conftest.err'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest$ac_exeext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5923 ac_R_nospace=yes
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_R_nospace=no
5930 rm -f conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5932 if test $ac_R_nospace = yes; then
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 X_LIBS="$X_LIBS -R$x_libraries"
5936 else
5937 LIBS="$ac_xsave_LIBS -R $x_libraries"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5946 main ()
5950 return 0;
5952 _ACEOF
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag"
5963 || test ! -s conftest.err'
5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 (eval $ac_try) 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }; } &&
5969 { ac_try='test -s conftest$ac_exeext'
5970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 (eval $ac_try) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 ac_R_space=yes
5976 else
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 ac_R_space=no
5982 rm -f conftest.err conftest.$ac_objext \
5983 conftest$ac_exeext conftest.$ac_ext
5984 if test $ac_R_space = yes; then
5985 echo "$as_me:$LINENO: result: yes" >&5
5986 echo "${ECHO_T}yes" >&6
5987 X_LIBS="$X_LIBS -R $x_libraries"
5988 else
5989 echo "$as_me:$LINENO: result: neither works" >&5
5990 echo "${ECHO_T}neither works" >&6
5993 LIBS=$ac_xsave_LIBS
5994 esac
5997 # Check for system-dependent libraries X programs must link with.
5998 # Do this before checking for the system-independent R6 libraries
5999 # (-lICE), since we may need -lsocket or whatever for X linking.
6001 if test "$ISC" = yes; then
6002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6003 else
6004 # Martyn Johnson says this is needed for Ultrix, if the X
6005 # libraries were built with DECnet support. And Karl Berry says
6006 # the Alpha needs dnet_stub (dnet does not exist).
6007 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6015 /* Override any gcc2 internal prototype to avoid an error. */
6016 #ifdef __cplusplus
6017 extern "C"
6018 #endif
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char XOpenDisplay ();
6023 main ()
6025 XOpenDisplay ();
6027 return 0;
6029 _ACEOF
6030 rm -f conftest.$ac_objext conftest$ac_exeext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6032 (eval $ac_link) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6058 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6059 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-ldnet $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6071 /* Override any gcc2 internal prototype to avoid an error. */
6072 #ifdef __cplusplus
6073 extern "C"
6074 #endif
6075 /* We use char because int might match the return type of a gcc2
6076 builtin and then its argument prototype would still apply. */
6077 char dnet_ntoa ();
6079 main ()
6081 dnet_ntoa ();
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088 (eval $ac_link) 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest$ac_exeext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 ac_cv_lib_dnet_dnet_ntoa=yes
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_cv_lib_dnet_dnet_ntoa=no
6115 rm -f conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS=$ac_check_lib_save_LIBS
6119 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6120 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6121 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6122 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6125 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6126 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6127 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6128 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 ac_check_lib_save_LIBS=$LIBS
6132 LIBS="-ldnet_stub $LIBS"
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 #ifdef __cplusplus
6142 extern "C"
6143 #endif
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146 char dnet_ntoa ();
6148 main ()
6150 dnet_ntoa ();
6152 return 0;
6154 _ACEOF
6155 rm -f conftest.$ac_objext conftest$ac_exeext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 ac_cv_lib_dnet_stub_dnet_ntoa=no
6184 rm -f conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6186 LIBS=$ac_check_lib_save_LIBS
6188 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6189 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6190 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6191 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6196 rm -f conftest.err conftest.$ac_objext \
6197 conftest$ac_exeext conftest.$ac_ext
6198 LIBS="$ac_xsave_LIBS"
6200 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6201 # to get the SysV transport functions.
6202 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6203 # needs -lnsl.
6204 # The nsl library prevents programs from opening the X display
6205 # on Irix 5.2, according to T.E. Dickey.
6206 # The functions gethostbyname, getservbyname, and inet_addr are
6207 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6208 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6209 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6210 if test "${ac_cv_func_gethostbyname+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6219 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6221 #define gethostbyname innocuous_gethostbyname
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char gethostbyname (); below.
6225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 <limits.h> exists even on freestanding compilers. */
6228 #ifdef __STDC__
6229 # include <limits.h>
6230 #else
6231 # include <assert.h>
6232 #endif
6234 #undef gethostbyname
6236 /* Override any gcc2 internal prototype to avoid an error. */
6237 #ifdef __cplusplus
6238 extern "C"
6240 #endif
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6243 char gethostbyname ();
6244 /* The GNU C library defines this for functions which it implements
6245 to always fail with ENOSYS. Some functions are actually named
6246 something starting with __ and the normal name is an alias. */
6247 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6248 choke me
6249 #else
6250 char (*f) () = gethostbyname;
6251 #endif
6252 #ifdef __cplusplus
6254 #endif
6257 main ()
6259 return f != gethostbyname;
6261 return 0;
6263 _ACEOF
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>conftest.er1
6267 ac_status=$?
6268 grep -v '^ *+' conftest.er1 >conftest.err
6269 rm -f conftest.er1
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest$ac_exeext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_func_gethostbyname=yes
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_cv_func_gethostbyname=no
6293 rm -f conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6296 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6297 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6299 if test $ac_cv_func_gethostbyname = no; then
6300 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6301 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6302 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 ac_check_lib_save_LIBS=$LIBS
6306 LIBS="-lnsl $LIBS"
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 /* Override any gcc2 internal prototype to avoid an error. */
6315 #ifdef __cplusplus
6316 extern "C"
6317 #endif
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6320 char gethostbyname ();
6322 main ()
6324 gethostbyname ();
6326 return 0;
6328 _ACEOF
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6331 (eval $ac_link) 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_c_werror_flag"
6339 || test ! -s conftest.err'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest$ac_exeext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
6351 ac_cv_lib_nsl_gethostbyname=yes
6352 else
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ac_cv_lib_nsl_gethostbyname=no
6358 rm -f conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6360 LIBS=$ac_check_lib_save_LIBS
6362 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6363 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6364 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6368 if test $ac_cv_lib_nsl_gethostbyname = no; then
6369 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6370 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6371 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 ac_check_lib_save_LIBS=$LIBS
6375 LIBS="-lbsd $LIBS"
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389 char gethostbyname ();
6391 main ()
6393 gethostbyname ();
6395 return 0;
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_lib_bsd_gethostbyname=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_cv_lib_bsd_gethostbyname=no
6427 rm -f conftest.err conftest.$ac_objext \
6428 conftest$ac_exeext conftest.$ac_ext
6429 LIBS=$ac_check_lib_save_LIBS
6431 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6432 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6433 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6441 # socket/setsockopt and other routines are undefined under SCO ODT
6442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6443 # on later versions), says Simon Leinen: it contains gethostby*
6444 # variants that don't use the name server (or something). -lsocket
6445 # must be given before -lnsl if both are needed. We assume that
6446 # if connect needs -lnsl, so does gethostbyname.
6447 echo "$as_me:$LINENO: checking for connect" >&5
6448 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6449 if test "${ac_cv_func_connect+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6460 #define connect innocuous_connect
6462 /* System header to define __stub macros and hopefully few prototypes,
6463 which can conflict with char connect (); below.
6464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6465 <limits.h> exists even on freestanding compilers. */
6467 #ifdef __STDC__
6468 # include <limits.h>
6469 #else
6470 # include <assert.h>
6471 #endif
6473 #undef connect
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 #ifdef __cplusplus
6477 extern "C"
6479 #endif
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6482 char connect ();
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_connect) || defined (__stub___connect)
6487 choke me
6488 #else
6489 char (*f) () = connect;
6490 #endif
6491 #ifdef __cplusplus
6493 #endif
6496 main ()
6498 return f != connect;
6500 return 0;
6502 _ACEOF
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest$ac_exeext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
6525 ac_cv_func_connect=yes
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_cv_func_connect=no
6532 rm -f conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6536 echo "${ECHO_T}$ac_cv_func_connect" >&6
6538 if test $ac_cv_func_connect = no; then
6539 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6540 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6541 if test "${ac_cv_lib_socket_connect+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544 ac_check_lib_save_LIBS=$LIBS
6545 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6553 /* Override any gcc2 internal prototype to avoid an error. */
6554 #ifdef __cplusplus
6555 extern "C"
6556 #endif
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6559 char connect ();
6561 main ()
6563 connect ();
6565 return 0;
6567 _ACEOF
6568 rm -f conftest.$ac_objext conftest$ac_exeext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6570 (eval $ac_link) 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -z "$ac_c_werror_flag"
6578 || test ! -s conftest.err'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; } &&
6584 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6590 ac_cv_lib_socket_connect=yes
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ac_cv_lib_socket_connect=no
6597 rm -f conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599 LIBS=$ac_check_lib_save_LIBS
6601 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6602 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6603 if test $ac_cv_lib_socket_connect = yes; then
6604 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6609 # Guillermo Gomez says -lposix is necessary on A/UX.
6610 echo "$as_me:$LINENO: checking for remove" >&5
6611 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6612 if test "${ac_cv_func_remove+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6623 #define remove innocuous_remove
6625 /* System header to define __stub macros and hopefully few prototypes,
6626 which can conflict with char remove (); below.
6627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6628 <limits.h> exists even on freestanding compilers. */
6630 #ifdef __STDC__
6631 # include <limits.h>
6632 #else
6633 # include <assert.h>
6634 #endif
6636 #undef remove
6638 /* Override any gcc2 internal prototype to avoid an error. */
6639 #ifdef __cplusplus
6640 extern "C"
6642 #endif
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6645 char remove ();
6646 /* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */
6649 #if defined (__stub_remove) || defined (__stub___remove)
6650 choke me
6651 #else
6652 char (*f) () = remove;
6653 #endif
6654 #ifdef __cplusplus
6656 #endif
6659 main ()
6661 return f != remove;
6663 return 0;
6665 _ACEOF
6666 rm -f conftest.$ac_objext conftest$ac_exeext
6667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668 (eval $ac_link) 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try='test -z "$ac_c_werror_flag"
6676 || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest$ac_exeext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_func_remove=yes
6689 else
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ac_cv_func_remove=no
6695 rm -f conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6698 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6699 echo "${ECHO_T}$ac_cv_func_remove" >&6
6701 if test $ac_cv_func_remove = no; then
6702 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6703 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6704 if test "${ac_cv_lib_posix_remove+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 ac_check_lib_save_LIBS=$LIBS
6708 LIBS="-lposix $LIBS"
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6716 /* Override any gcc2 internal prototype to avoid an error. */
6717 #ifdef __cplusplus
6718 extern "C"
6719 #endif
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6722 char remove ();
6724 main ()
6726 remove ();
6728 return 0;
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
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); }; } &&
6747 { ac_try='test -s conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_lib_posix_remove=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_cv_lib_posix_remove=no
6760 rm -f conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 LIBS=$ac_check_lib_save_LIBS
6764 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6765 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6766 if test $ac_cv_lib_posix_remove = yes; then
6767 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6772 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6773 echo "$as_me:$LINENO: checking for shmat" >&5
6774 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6775 if test "${ac_cv_func_shmat+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6786 #define shmat innocuous_shmat
6788 /* System header to define __stub macros and hopefully few prototypes,
6789 which can conflict with char shmat (); below.
6790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6791 <limits.h> exists even on freestanding compilers. */
6793 #ifdef __STDC__
6794 # include <limits.h>
6795 #else
6796 # include <assert.h>
6797 #endif
6799 #undef shmat
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 #ifdef __cplusplus
6803 extern "C"
6805 #endif
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6808 char shmat ();
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined (__stub_shmat) || defined (__stub___shmat)
6813 choke me
6814 #else
6815 char (*f) () = shmat;
6816 #endif
6817 #ifdef __cplusplus
6819 #endif
6822 main ()
6824 return f != shmat;
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_func_shmat=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_func_shmat=no
6858 rm -f conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
6861 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6862 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6864 if test $ac_cv_func_shmat = no; then
6865 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6866 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6867 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 ac_check_lib_save_LIBS=$LIBS
6871 LIBS="-lipc $LIBS"
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 #ifdef __cplusplus
6881 extern "C"
6882 #endif
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6885 char shmat ();
6887 main ()
6889 shmat ();
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896 (eval $ac_link) 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_cv_lib_ipc_shmat=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_cv_lib_ipc_shmat=no
6923 rm -f conftest.err conftest.$ac_objext \
6924 conftest$ac_exeext conftest.$ac_ext
6925 LIBS=$ac_check_lib_save_LIBS
6927 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6928 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6929 if test $ac_cv_lib_ipc_shmat = yes; then
6930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6936 # Check for libraries that X11R6 Xt/Xaw programs need.
6937 ac_save_LDFLAGS=$LDFLAGS
6938 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6939 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6940 # check for ICE first), but we must link in the order -lSM -lICE or
6941 # we get undefined symbols. So assume we have SM if we have ICE.
6942 # These have to be linked with before -lX11, unlike the other
6943 # libraries we check for below, so use a different variable.
6944 # John Interrante, Karl Berry
6945 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6946 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6947 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 ac_check_lib_save_LIBS=$LIBS
6951 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6959 /* Override any gcc2 internal prototype to avoid an error. */
6960 #ifdef __cplusplus
6961 extern "C"
6962 #endif
6963 /* We use char because int might match the return type of a gcc2
6964 builtin and then its argument prototype would still apply. */
6965 char IceConnectionNumber ();
6967 main ()
6969 IceConnectionNumber ();
6971 return 0;
6973 _ACEOF
6974 rm -f conftest.$ac_objext conftest$ac_exeext
6975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6976 (eval $ac_link) 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -z "$ac_c_werror_flag"
6984 || test ! -s conftest.err'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; } &&
6990 { ac_try='test -s conftest$ac_exeext'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
6996 ac_cv_lib_ICE_IceConnectionNumber=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_lib_ICE_IceConnectionNumber=no
7003 rm -f conftest.err conftest.$ac_objext \
7004 conftest$ac_exeext conftest.$ac_ext
7005 LIBS=$ac_check_lib_save_LIBS
7007 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7008 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7009 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7010 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7013 LDFLAGS=$ac_save_LDFLAGS
7017 CFLAGS="$X_CFLAGS $CFLAGS"
7018 LDFLAGS="$X_PRE_LIBS -lX11 $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
7021 # Checks for OpenGL.
7022 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
7023 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
7024 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lGL $LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7036 /* Override any gcc2 internal prototype to avoid an error. */
7037 #ifdef __cplusplus
7038 extern "C"
7039 #endif
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7042 char glBegin ();
7044 main ()
7046 glBegin ();
7048 return 0;
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>conftest.er1
7054 ac_status=$?
7055 grep -v '^ *+' conftest.er1 >conftest.err
7056 rm -f conftest.er1
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -z "$ac_c_werror_flag"
7061 || test ! -s conftest.err'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; } &&
7067 { ac_try='test -s conftest$ac_exeext'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_lib_GL_glBegin=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_lib_GL_glBegin=no
7080 rm -f conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7082 LIBS=$ac_check_lib_save_LIBS
7084 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
7085 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
7086 if test $ac_cv_lib_GL_glBegin = yes; then
7087 LDFLAGS="-lGL $LDFLAGS"
7088 else
7089 ogl="no"
7092 if test "x$ogl" = "xno"; then
7093 { echo "$as_me:$LINENO: Maybe libGL requires libpthread..." >&5
7094 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
7095 unset ac_cv_lib_GL_glBegin
7096 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
7097 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
7098 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 ac_check_lib_save_LIBS=$LIBS
7102 LIBS="-lGL -lpthread $LIBS"
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7110 /* Override any gcc2 internal prototype to avoid an error. */
7111 #ifdef __cplusplus
7112 extern "C"
7113 #endif
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116 char glBegin ();
7118 main ()
7120 glBegin ();
7122 return 0;
7124 _ACEOF
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest$ac_exeext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_lib_GL_glBegin=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_lib_GL_glBegin=no
7154 rm -f conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7158 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
7159 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
7160 if test $ac_cv_lib_GL_glBegin = yes; then
7161 LDFLAGS="-lpthread -lGL $LDFLAGS"
7162 else
7163 { { echo "$as_me:$LINENO: error: Cannot use -lGL" >&5
7164 echo "$as_me: error: Cannot use -lGL" >&2;}
7165 { (exit 1); exit 1; }; }
7171 # Checks for gtk.
7172 # Check whether --enable-gtktest or --disable-gtktest was given.
7173 if test "${enable_gtktest+set}" = set; then
7174 enableval="$enable_gtktest"
7176 else
7177 enable_gtktest=yes
7180 pkg_config_args=gtk+-2.0
7181 for module in . gthread
7183 case "$module" in
7184 gthread)
7185 pkg_config_args="$pkg_config_args gthread-2.0"
7187 esac
7188 done
7190 no_gtk=""
7192 # Extract the first word of "pkg-config", so it can be a program name with args.
7193 set dummy pkg-config; ac_word=$2
7194 echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 case $PKG_CONFIG in
7200 [\\/]* | ?:[\\/]*)
7201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7220 esac
7222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7224 if test -n "$PKG_CONFIG"; then
7225 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7226 echo "${ECHO_T}$PKG_CONFIG" >&6
7227 else
7228 echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6
7233 if test x$PKG_CONFIG != xno ; then
7234 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7236 else
7237 echo *** pkg-config too old; version 0.7 or better required.
7238 no_gtk=yes
7239 PKG_CONFIG=no
7241 else
7242 no_gtk=yes
7245 min_gtk_version=2.2.0
7246 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
7247 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
7249 if test x$PKG_CONFIG != xno ; then
7250 ## don't try to run the test against uninstalled libtool libs
7251 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7252 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7253 enable_gtktest=no
7256 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7258 else
7259 no_gtk=yes
7263 if test x"$no_gtk" = x ; then
7264 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7265 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7266 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7267 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7268 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7269 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7270 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7271 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7272 if test "x$enable_gtktest" = "xyes" ; then
7273 ac_save_CFLAGS="$CFLAGS"
7274 ac_save_LIBS="$LIBS"
7275 CFLAGS="$CFLAGS $GTK_CFLAGS"
7276 LIBS="$GTK_LIBS $LIBS"
7277 rm -f conf.gtktest
7278 if test "$cross_compiling" = yes; then
7279 echo $ac_n "cross compiling; assumed OK... $ac_c"
7280 else
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7288 #include <gtk/gtk.h>
7289 #include <stdio.h>
7290 #include <stdlib.h>
7293 main ()
7295 int major, minor, micro;
7296 char *tmp_version;
7298 system ("touch conf.gtktest");
7300 /* HP/UX 9 (%@#!) writes to sscanf strings */
7301 tmp_version = g_strdup("$min_gtk_version");
7302 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7303 printf("%s, bad version string\n", "$min_gtk_version");
7304 exit(1);
7307 if ((gtk_major_version != $gtk_config_major_version) ||
7308 (gtk_minor_version != $gtk_config_minor_version) ||
7309 (gtk_micro_version != $gtk_config_micro_version))
7311 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7312 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7313 gtk_major_version, gtk_minor_version, gtk_micro_version);
7314 printf ("*** was found! If pkg-config was correct, then it is best\n");
7315 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7316 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7317 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7318 printf("*** required on your system.\n");
7319 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7320 printf("*** to point to the correct configuration files\n");
7322 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7323 (gtk_minor_version != GTK_MINOR_VERSION) ||
7324 (gtk_micro_version != GTK_MICRO_VERSION))
7326 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7327 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7328 printf("*** library (version %d.%d.%d)\n",
7329 gtk_major_version, gtk_minor_version, gtk_micro_version);
7331 else
7333 if ((gtk_major_version > major) ||
7334 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7335 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7337 return 0;
7339 else
7341 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7342 gtk_major_version, gtk_minor_version, gtk_micro_version);
7343 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7344 major, minor, micro);
7345 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7346 printf("***\n");
7347 printf("*** If you have already installed a sufficiently new version, this error\n");
7348 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7349 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7350 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7351 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7352 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7353 printf("*** so that the correct libraries are found at run-time))\n");
7356 return 1;
7359 _ACEOF
7360 rm -f conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7372 else
7373 echo "$as_me: program exited with status $ac_status" >&5
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 ( exit $ac_status )
7378 no_gtk=yes
7380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7382 CFLAGS="$ac_save_CFLAGS"
7383 LIBS="$ac_save_LIBS"
7386 if test "x$no_gtk" = x ; then
7387 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7388 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
7390 CFLAGS="$GTK_CFLAGS $CFLAGS"
7391 LDFLAGS="$GTK_LIBS $LDFLAGS"
7392 GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
7394 else
7395 echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7397 if test "$PKG_CONFIG" = "no" ; then
7398 echo "*** A new enough version of pkg-config was not found."
7399 echo "*** See http://pkgconfig.sourceforge.net"
7400 else
7401 if test -f conf.gtktest ; then
7403 else
7404 echo "*** Could not run GTK+ test program, checking why..."
7405 ac_save_CFLAGS="$CFLAGS"
7406 ac_save_LIBS="$LIBS"
7407 CFLAGS="$CFLAGS $GTK_CFLAGS"
7408 LIBS="$LIBS $GTK_LIBS"
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7416 #include <gtk/gtk.h>
7417 #include <stdio.h>
7420 main ()
7422 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7424 return 0;
7426 _ACEOF
7427 rm -f conftest.$ac_objext conftest$ac_exeext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7429 (eval $ac_link) 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } &&
7436 { ac_try='test -z "$ac_c_werror_flag"
7437 || test ! -s conftest.err'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; } &&
7443 { ac_try='test -s conftest$ac_exeext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 echo "*** The test program compiled, but did not run. This usually means"
7450 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7451 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7452 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7453 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7454 echo "*** is required on your system"
7455 echo "***"
7456 echo "*** If you have an old version installed, it is best to remove it, although"
7457 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 echo "*** The test program failed to compile or link. See the file config.log for the"
7463 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7465 rm -f conftest.err conftest.$ac_objext \
7466 conftest$ac_exeext conftest.$ac_ext
7467 CFLAGS="$ac_save_CFLAGS"
7468 LIBS="$ac_save_LIBS"
7471 GTK_CFLAGS=""
7472 GTK_LIBS=""
7473 exit 1
7477 rm -f conf.gtktest
7480 # Checks for GtkGLExt.
7482 succeeded=no
7484 if test -z "$PKG_CONFIG"; then
7485 # Extract the first word of "pkg-config", so it can be a program name with args.
7486 set dummy pkg-config; ac_word=$2
7487 echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 case $PKG_CONFIG in
7493 [\\/]* | ?:[\\/]*)
7494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7513 esac
7515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7517 if test -n "$PKG_CONFIG"; then
7518 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7519 echo "${ECHO_T}$PKG_CONFIG" >&6
7520 else
7521 echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7527 if test "$PKG_CONFIG" = "no" ; then
7528 echo "*** The pkg-config script could not be found. Make sure it is"
7529 echo "*** in your path, or set the PKG_CONFIG environment variable"
7530 echo "*** to the full path to pkg-config."
7531 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7532 else
7533 PKG_CONFIG_MIN_VERSION=0.9.0
7534 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7535 echo "$as_me:$LINENO: checking for gtkglext-1.0 >= 0.7.0" >&5
7536 echo $ECHO_N "checking for gtkglext-1.0 >= 0.7.0... $ECHO_C" >&6
7538 if $PKG_CONFIG --exists "gtkglext-1.0 >= 0.7.0" ; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540 echo "${ECHO_T}yes" >&6
7541 succeeded=yes
7543 echo "$as_me:$LINENO: checking GTKGLEXT_CFLAGS" >&5
7544 echo $ECHO_N "checking GTKGLEXT_CFLAGS... $ECHO_C" >&6
7545 GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0"`
7546 echo "$as_me:$LINENO: result: $GTKGLEXT_CFLAGS" >&5
7547 echo "${ECHO_T}$GTKGLEXT_CFLAGS" >&6
7549 echo "$as_me:$LINENO: checking GTKGLEXT_LIBS" >&5
7550 echo $ECHO_N "checking GTKGLEXT_LIBS... $ECHO_C" >&6
7551 GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0"`
7552 echo "$as_me:$LINENO: result: $GTKGLEXT_LIBS" >&5
7553 echo "${ECHO_T}$GTKGLEXT_LIBS" >&6
7554 else
7555 GTKGLEXT_CFLAGS=""
7556 GTKGLEXT_LIBS=""
7557 ## If we have a custom action on failure, don't print errors, but
7558 ## do set a variable so people can do so.
7559 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 0.7.0"`
7560 echo $GTKGLEXT_PKG_ERRORS
7565 else
7566 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7567 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7571 if test $succeeded = yes; then
7573 else
7574 { { 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
7575 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;}
7576 { (exit 1); exit 1; }; }
7579 CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
7580 LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
7581 GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
7583 # I18n.
7584 ALL_LINGUAS=$(echo po/*.po | sed 's|\.po||g' | sed 's|po/||g')
7587 MKINSTALLDIRS=
7588 if test -n "$ac_aux_dir"; then
7589 case "$ac_aux_dir" in
7590 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7591 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7592 esac
7594 if test -z "$MKINSTALLDIRS"; then
7595 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7600 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7601 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7602 # Check whether --enable-nls or --disable-nls was given.
7603 if test "${enable_nls+set}" = set; then
7604 enableval="$enable_nls"
7605 USE_NLS=$enableval
7606 else
7607 USE_NLS=yes
7609 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7610 echo "${ECHO_T}$USE_NLS" >&6
7617 # Prepare PATH_SEPARATOR.
7618 # The user is always right.
7619 if test "${PATH_SEPARATOR+set}" != set; then
7620 echo "#! /bin/sh" >conf$$.sh
7621 echo "exit 0" >>conf$$.sh
7622 chmod +x conf$$.sh
7623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7624 PATH_SEPARATOR=';'
7625 else
7626 PATH_SEPARATOR=:
7628 rm -f conf$$.sh
7631 # Find out how to test for executable files. Don't use a zero-byte file,
7632 # as systems may use methods other than mode bits to determine executability.
7633 cat >conf$$.file <<_ASEOF
7634 #! /bin/sh
7635 exit 0
7636 _ASEOF
7637 chmod +x conf$$.file
7638 if test -x conf$$.file >/dev/null 2>&1; then
7639 ac_executable_p="test -x"
7640 else
7641 ac_executable_p="test -f"
7643 rm -f conf$$.file
7645 # Extract the first word of "msgfmt", so it can be a program name with args.
7646 set dummy msgfmt; ac_word=$2
7647 echo "$as_me:$LINENO: checking for $ac_word" >&5
7648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7649 if test "${ac_cv_path_MSGFMT+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 case "$MSGFMT" in
7653 [\\/]* | ?:[\\/]*)
7654 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7657 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7658 for ac_dir in $PATH; do
7659 IFS="$ac_save_IFS"
7660 test -z "$ac_dir" && ac_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7663 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7664 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7665 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7666 break 2
7669 done
7670 done
7671 IFS="$ac_save_IFS"
7672 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7674 esac
7676 MSGFMT="$ac_cv_path_MSGFMT"
7677 if test "$MSGFMT" != ":"; then
7678 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7679 echo "${ECHO_T}$MSGFMT" >&6
7680 else
7681 echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7685 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7686 set dummy gmsgfmt; ac_word=$2
7687 echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 case $GMSGFMT in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7711 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7713 esac
7715 GMSGFMT=$ac_cv_path_GMSGFMT
7717 if test -n "$GMSGFMT"; then
7718 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7719 echo "${ECHO_T}$GMSGFMT" >&6
7720 else
7721 echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6
7727 # Prepare PATH_SEPARATOR.
7728 # The user is always right.
7729 if test "${PATH_SEPARATOR+set}" != set; then
7730 echo "#! /bin/sh" >conf$$.sh
7731 echo "exit 0" >>conf$$.sh
7732 chmod +x conf$$.sh
7733 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7734 PATH_SEPARATOR=';'
7735 else
7736 PATH_SEPARATOR=:
7738 rm -f conf$$.sh
7741 # Find out how to test for executable files. Don't use a zero-byte file,
7742 # as systems may use methods other than mode bits to determine executability.
7743 cat >conf$$.file <<_ASEOF
7744 #! /bin/sh
7745 exit 0
7746 _ASEOF
7747 chmod +x conf$$.file
7748 if test -x conf$$.file >/dev/null 2>&1; then
7749 ac_executable_p="test -x"
7750 else
7751 ac_executable_p="test -f"
7753 rm -f conf$$.file
7755 # Extract the first word of "xgettext", so it can be a program name with args.
7756 set dummy xgettext; ac_word=$2
7757 echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7759 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 case "$XGETTEXT" in
7763 [\\/]* | ?:[\\/]*)
7764 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7767 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7768 for ac_dir in $PATH; do
7769 IFS="$ac_save_IFS"
7770 test -z "$ac_dir" && ac_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7773 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7774 (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
7775 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7776 break 2
7779 done
7780 done
7781 IFS="$ac_save_IFS"
7782 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7784 esac
7786 XGETTEXT="$ac_cv_path_XGETTEXT"
7787 if test "$XGETTEXT" != ":"; then
7788 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7789 echo "${ECHO_T}$XGETTEXT" >&6
7790 else
7791 echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6
7795 rm -f messages.po
7798 # Prepare PATH_SEPARATOR.
7799 # The user is always right.
7800 if test "${PATH_SEPARATOR+set}" != set; then
7801 echo "#! /bin/sh" >conf$$.sh
7802 echo "exit 0" >>conf$$.sh
7803 chmod +x conf$$.sh
7804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7805 PATH_SEPARATOR=';'
7806 else
7807 PATH_SEPARATOR=:
7809 rm -f conf$$.sh
7812 # Find out how to test for executable files. Don't use a zero-byte file,
7813 # as systems may use methods other than mode bits to determine executability.
7814 cat >conf$$.file <<_ASEOF
7815 #! /bin/sh
7816 exit 0
7817 _ASEOF
7818 chmod +x conf$$.file
7819 if test -x conf$$.file >/dev/null 2>&1; then
7820 ac_executable_p="test -x"
7821 else
7822 ac_executable_p="test -f"
7824 rm -f conf$$.file
7826 # Extract the first word of "msgmerge", so it can be a program name with args.
7827 set dummy msgmerge; ac_word=$2
7828 echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 case "$MSGMERGE" in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7838 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7839 for ac_dir in $PATH; do
7840 IFS="$ac_save_IFS"
7841 test -z "$ac_dir" && ac_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7844 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7845 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7846 break 2
7849 done
7850 done
7851 IFS="$ac_save_IFS"
7852 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7854 esac
7856 MSGMERGE="$ac_cv_path_MSGMERGE"
7857 if test "$MSGMERGE" != ":"; then
7858 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7859 echo "${ECHO_T}$MSGMERGE" >&6
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7866 if test "$GMSGFMT" != ":"; then
7867 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7868 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7870 else
7871 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7872 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7873 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7874 GMSGFMT=":"
7878 if test "$XGETTEXT" != ":"; then
7879 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7880 (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
7882 else
7883 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7884 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7885 XGETTEXT=":"
7887 rm -f messages.po
7890 ac_config_commands="$ac_config_commands default-1"
7893 # Make sure we can run config.sub.
7894 $ac_config_sub sun4 >/dev/null 2>&1 ||
7895 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7896 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7897 { (exit 1); exit 1; }; }
7899 echo "$as_me:$LINENO: checking build system type" >&5
7900 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7901 if test "${ac_cv_build+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 ac_cv_build_alias=$build_alias
7905 test -z "$ac_cv_build_alias" &&
7906 ac_cv_build_alias=`$ac_config_guess`
7907 test -z "$ac_cv_build_alias" &&
7908 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7909 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7910 { (exit 1); exit 1; }; }
7911 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7913 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7914 { (exit 1); exit 1; }; }
7917 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7918 echo "${ECHO_T}$ac_cv_build" >&6
7919 build=$ac_cv_build
7920 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7921 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7922 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7925 echo "$as_me:$LINENO: checking host system type" >&5
7926 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7927 if test "${ac_cv_host+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930 ac_cv_host_alias=$host_alias
7931 test -z "$ac_cv_host_alias" &&
7932 ac_cv_host_alias=$ac_cv_build_alias
7933 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7934 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7935 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7936 { (exit 1); exit 1; }; }
7939 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7940 echo "${ECHO_T}$ac_cv_host" >&6
7941 host=$ac_cv_host
7942 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7943 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7944 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7947 echo "$as_me:$LINENO: checking for library containing strerror" >&5
7948 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
7949 if test "${ac_cv_search_strerror+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 ac_func_search_save_LIBS=$LIBS
7953 ac_cv_search_strerror=no
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 #ifdef __cplusplus
7963 extern "C"
7964 #endif
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char strerror ();
7969 main ()
7971 strerror ();
7973 return 0;
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag"
7986 || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_search_strerror="none required"
7999 else
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8004 rm -f conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 if test "$ac_cv_search_strerror" = no; then
8007 for ac_lib in cposix; do
8008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8016 /* Override any gcc2 internal prototype to avoid an error. */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char strerror ();
8024 main ()
8026 strerror ();
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8033 (eval $ac_link) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_search_strerror="-l$ac_lib"
8054 break
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8060 rm -f conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 done
8064 LIBS=$ac_func_search_save_LIBS
8066 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
8067 echo "${ECHO_T}$ac_cv_search_strerror" >&6
8068 if test "$ac_cv_search_strerror" != no; then
8069 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
8073 echo "$as_me:$LINENO: checking for egrep" >&5
8074 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8075 if test "${ac_cv_prog_egrep+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8079 then ac_cv_prog_egrep='grep -E'
8080 else ac_cv_prog_egrep='egrep'
8083 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8084 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8085 EGREP=$ac_cv_prog_egrep
8088 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8089 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8090 if test "${ac_cv_header_stdc+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 #include <stdlib.h>
8100 #include <stdarg.h>
8101 #include <string.h>
8102 #include <float.h>
8105 main ()
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_header_stdc=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_header_stdc=no
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8143 if test $ac_cv_header_stdc = yes; then
8144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <string.h>
8153 _ACEOF
8154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8155 $EGREP "memchr" >/dev/null 2>&1; then
8157 else
8158 ac_cv_header_stdc=no
8160 rm -f conftest*
8164 if test $ac_cv_header_stdc = yes; then
8165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include <stdlib.h>
8174 _ACEOF
8175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176 $EGREP "free" >/dev/null 2>&1; then
8178 else
8179 ac_cv_header_stdc=no
8181 rm -f conftest*
8185 if test $ac_cv_header_stdc = yes; then
8186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8187 if test "$cross_compiling" = yes; then
8189 else
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 #include <ctype.h>
8197 #if ((' ' & 0x0FF) == 0x020)
8198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8200 #else
8201 # define ISLOWER(c) \
8202 (('a' <= (c) && (c) <= 'i') \
8203 || ('j' <= (c) && (c) <= 'r') \
8204 || ('s' <= (c) && (c) <= 'z'))
8205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8206 #endif
8208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8210 main ()
8212 int i;
8213 for (i = 0; i < 256; i++)
8214 if (XOR (islower (i), ISLOWER (i))
8215 || toupper (i) != TOUPPER (i))
8216 exit(2);
8217 exit (0);
8219 _ACEOF
8220 rm -f conftest$ac_exeext
8221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8222 (eval $ac_link) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8232 else
8233 echo "$as_me: program exited with status $ac_status" >&5
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 ( exit $ac_status )
8238 ac_cv_header_stdc=no
8240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8245 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8246 if test $ac_cv_header_stdc = yes; then
8248 cat >>confdefs.h <<\_ACEOF
8249 #define STDC_HEADERS 1
8250 _ACEOF
8254 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8255 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8256 if test "${ac_cv_c_const+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8267 main ()
8269 /* FIXME: Include the comments suggested by Paul. */
8270 #ifndef __cplusplus
8271 /* Ultrix mips cc rejects this. */
8272 typedef int charset[2];
8273 const charset x;
8274 /* SunOS 4.1.1 cc rejects this. */
8275 char const *const *ccp;
8276 char **p;
8277 /* NEC SVR4.0.2 mips cc rejects this. */
8278 struct point {int x, y;};
8279 static struct point const zero = {0,0};
8280 /* AIX XL C 1.02.0.0 rejects this.
8281 It does not let you subtract one const X* pointer from another in
8282 an arm of an if-expression whose if-part is not a constant
8283 expression */
8284 const char *g = "string";
8285 ccp = &g + (g ? g-g : 0);
8286 /* HPUX 7.0 cc rejects these. */
8287 ++ccp;
8288 p = (char**) ccp;
8289 ccp = (char const *const *) p;
8290 { /* SCO 3.2v4 cc rejects this. */
8291 char *t;
8292 char const *s = 0 ? (char *) 0 : (char const *) 0;
8294 *t++ = 0;
8296 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8297 int x[] = {25, 17};
8298 const int *foo = &x[0];
8299 ++foo;
8301 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8302 typedef const int *iptr;
8303 iptr p = 0;
8304 ++p;
8306 { /* AIX XL C 1.02.0.0 rejects this saying
8307 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8308 struct s { int j; const int *ap[3]; };
8309 struct s *b; b->j = 5;
8311 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8312 const int foo = 10;
8314 #endif
8317 return 0;
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322 (eval $ac_compile) 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -z "$ac_c_werror_flag"
8330 || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_c_const=yes
8343 else
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_cv_c_const=no
8349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8352 echo "${ECHO_T}$ac_cv_c_const" >&6
8353 if test $ac_cv_c_const = no; then
8355 cat >>confdefs.h <<\_ACEOF
8356 #define const
8357 _ACEOF
8361 echo "$as_me:$LINENO: checking for inline" >&5
8362 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8363 if test "${ac_cv_c_inline+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 ac_cv_c_inline=no
8367 for ac_kw in inline __inline__ __inline; do
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 #ifndef __cplusplus
8375 typedef int foo_t;
8376 static $ac_kw foo_t static_foo () {return 0; }
8377 $ac_kw foo_t foo () {return 0; }
8378 #endif
8380 _ACEOF
8381 rm -f conftest.$ac_objext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383 (eval $ac_compile) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_c_inline=$ac_kw; break
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 done
8413 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8414 echo "${ECHO_T}$ac_cv_c_inline" >&6
8417 case $ac_cv_c_inline in
8418 inline | yes) ;;
8420 case $ac_cv_c_inline in
8421 no) ac_val=;;
8422 *) ac_val=$ac_cv_c_inline;;
8423 esac
8424 cat >>confdefs.h <<_ACEOF
8425 #ifndef __cplusplus
8426 #define inline $ac_val
8427 #endif
8428 _ACEOF
8430 esac
8432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8443 inttypes.h stdint.h unistd.h
8445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8459 #include <$ac_header>
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463 (eval $ac_compile) 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 eval "$as_ac_Header=yes"
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 eval "$as_ac_Header=no"
8490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8495 cat >>confdefs.h <<_ACEOF
8496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8497 _ACEOF
8501 done
8504 echo "$as_me:$LINENO: checking for off_t" >&5
8505 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8506 if test "${ac_cv_type_off_t+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h. */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 $ac_includes_default
8517 main ()
8519 if ((off_t *) 0)
8520 return 0;
8521 if (sizeof (off_t))
8522 return 0;
8524 return 0;
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_type_off_t=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_cv_type_off_t=no
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8559 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8560 if test $ac_cv_type_off_t = yes; then
8562 else
8564 cat >>confdefs.h <<_ACEOF
8565 #define off_t long
8566 _ACEOF
8570 echo "$as_me:$LINENO: checking for size_t" >&5
8571 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8572 if test "${ac_cv_type_size_t+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 $ac_includes_default
8583 main ()
8585 if ((size_t *) 0)
8586 return 0;
8587 if (sizeof (size_t))
8588 return 0;
8590 return 0;
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8595 (eval $ac_compile) 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag"
8603 || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest.$ac_objext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_type_size_t=yes
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cv_type_size_t=no
8622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8624 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8625 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8626 if test $ac_cv_type_size_t = yes; then
8628 else
8630 cat >>confdefs.h <<_ACEOF
8631 #define size_t unsigned
8632 _ACEOF
8636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8637 # for constant arguments. Useless!
8638 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8639 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8640 if test "${ac_cv_working_alloca_h+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <alloca.h>
8651 main ()
8653 char *p = (char *) alloca (2 * sizeof (int));
8655 return 0;
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_working_alloca_h=yes
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_cv_working_alloca_h=no
8687 rm -f conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8691 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8692 if test $ac_cv_working_alloca_h = yes; then
8694 cat >>confdefs.h <<\_ACEOF
8695 #define HAVE_ALLOCA_H 1
8696 _ACEOF
8700 echo "$as_me:$LINENO: checking for alloca" >&5
8701 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8702 if test "${ac_cv_func_alloca_works+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h. */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 #ifdef __GNUC__
8712 # define alloca __builtin_alloca
8713 #else
8714 # ifdef _MSC_VER
8715 # include <malloc.h>
8716 # define alloca _alloca
8717 # else
8718 # if HAVE_ALLOCA_H
8719 # include <alloca.h>
8720 # else
8721 # ifdef _AIX
8722 #pragma alloca
8723 # else
8724 # ifndef alloca /* predefined by HP cc +Olibcalls */
8725 char *alloca ();
8726 # endif
8727 # endif
8728 # endif
8729 # endif
8730 #endif
8733 main ()
8735 char *p = (char *) alloca (1);
8737 return 0;
8739 _ACEOF
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8742 (eval $ac_link) 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag"
8750 || test ! -s conftest.err'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; } &&
8756 { ac_try='test -s conftest$ac_exeext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_cv_func_alloca_works=yes
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8767 ac_cv_func_alloca_works=no
8769 rm -f conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8773 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8775 if test $ac_cv_func_alloca_works = yes; then
8777 cat >>confdefs.h <<\_ACEOF
8778 #define HAVE_ALLOCA 1
8779 _ACEOF
8781 else
8782 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8783 # that cause trouble. Some versions do not even contain alloca or
8784 # contain a buggy version. If you still want to use their alloca,
8785 # use ar to extract alloca.o from them instead of compiling alloca.c.
8787 ALLOCA=alloca.$ac_objext
8789 cat >>confdefs.h <<\_ACEOF
8790 #define C_ALLOCA 1
8791 _ACEOF
8794 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8795 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8796 if test "${ac_cv_os_cray+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 #if defined(CRAY) && ! defined(CRAY2)
8806 webecray
8807 #else
8808 wenotbecray
8809 #endif
8811 _ACEOF
8812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8813 $EGREP "webecray" >/dev/null 2>&1; then
8814 ac_cv_os_cray=yes
8815 else
8816 ac_cv_os_cray=no
8818 rm -f conftest*
8821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8822 echo "${ECHO_T}$ac_cv_os_cray" >&6
8823 if test $ac_cv_os_cray = yes; then
8824 for ac_func in _getb67 GETB67 getb67; do
8825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8826 echo "$as_me:$LINENO: checking for $ac_func" >&5
8827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8828 if eval "test \"\${$as_ac_var+set}\" = set"; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831 cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h. */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8839 #define $ac_func innocuous_$ac_func
8841 /* System header to define __stub macros and hopefully few prototypes,
8842 which can conflict with char $ac_func (); below.
8843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8844 <limits.h> exists even on freestanding compilers. */
8846 #ifdef __STDC__
8847 # include <limits.h>
8848 #else
8849 # include <assert.h>
8850 #endif
8852 #undef $ac_func
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 #ifdef __cplusplus
8856 extern "C"
8858 #endif
8859 /* We use char because int might match the return type of a gcc2
8860 builtin and then its argument prototype would still apply. */
8861 char $ac_func ();
8862 /* The GNU C library defines this for functions which it implements
8863 to always fail with ENOSYS. Some functions are actually named
8864 something starting with __ and the normal name is an alias. */
8865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8866 choke me
8867 #else
8868 char (*f) () = $ac_func;
8869 #endif
8870 #ifdef __cplusplus
8872 #endif
8875 main ()
8877 return f != $ac_func;
8879 return 0;
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 eval "$as_ac_var=yes"
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 eval "$as_ac_var=no"
8911 rm -f conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8916 if test `eval echo '${'$as_ac_var'}'` = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919 #define CRAY_STACKSEG_END $ac_func
8920 _ACEOF
8922 break
8925 done
8928 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8930 if test "${ac_cv_c_stack_direction+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 if test "$cross_compiling" = yes; then
8934 ac_cv_c_stack_direction=0
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8943 find_stack_direction ()
8945 static char *addr = 0;
8946 auto char dummy;
8947 if (addr == 0)
8949 addr = &dummy;
8950 return find_stack_direction ();
8952 else
8953 return (&dummy > addr) ? 1 : -1;
8957 main ()
8959 exit (find_stack_direction () < 0);
8961 _ACEOF
8962 rm -f conftest$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_cv_c_stack_direction=1
8974 else
8975 echo "$as_me: program exited with status $ac_status" >&5
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ( exit $ac_status )
8980 ac_cv_c_stack_direction=-1
8982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8986 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8988 cat >>confdefs.h <<_ACEOF
8989 #define STACK_DIRECTION $ac_cv_c_stack_direction
8990 _ACEOF
8997 for ac_header in stdlib.h unistd.h
8999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9001 echo "$as_me:$LINENO: checking for $ac_header" >&5
9002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9008 else
9009 # Is the header compilable?
9010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9019 #include <$ac_header>
9020 _ACEOF
9021 rm -f conftest.$ac_objext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9023 (eval $ac_compile) 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -z "$ac_c_werror_flag"
9031 || test ! -s conftest.err'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 (eval $ac_try) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; } &&
9037 { ac_try='test -s conftest.$ac_objext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_header_compiler=yes
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_header_compiler=no
9050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9052 echo "${ECHO_T}$ac_header_compiler" >&6
9054 # Is the header present?
9055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 #include <$ac_header>
9064 _ACEOF
9065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } >/dev/null; then
9073 if test -s conftest.err; then
9074 ac_cpp_err=$ac_c_preproc_warn_flag
9075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9076 else
9077 ac_cpp_err=
9079 else
9080 ac_cpp_err=yes
9082 if test -z "$ac_cpp_err"; then
9083 ac_header_preproc=yes
9084 else
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9088 ac_header_preproc=no
9090 rm -f conftest.err conftest.$ac_ext
9091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9092 echo "${ECHO_T}$ac_header_preproc" >&6
9094 # So? What about this header?
9095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9096 yes:no: )
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9101 ac_header_preproc=yes
9103 no:yes:* )
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9117 cat <<\_ASBOX
9118 ## ------------------------------- ##
9119 ## Report this to guichaz@yahoo.fr ##
9120 ## ------------------------------- ##
9121 _ASBOX
9123 sed "s/^/$as_me: WARNING: /" >&2
9125 esac
9126 echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 eval "$as_ac_Header=\$ac_header_preproc"
9133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9138 cat >>confdefs.h <<_ACEOF
9139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9140 _ACEOF
9144 done
9147 for ac_func in getpagesize
9149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9150 echo "$as_me:$LINENO: checking for $ac_func" >&5
9151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9152 if eval "test \"\${$as_ac_var+set}\" = set"; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9163 #define $ac_func innocuous_$ac_func
9165 /* System header to define __stub macros and hopefully few prototypes,
9166 which can conflict with char $ac_func (); below.
9167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9168 <limits.h> exists even on freestanding compilers. */
9170 #ifdef __STDC__
9171 # include <limits.h>
9172 #else
9173 # include <assert.h>
9174 #endif
9176 #undef $ac_func
9178 /* Override any gcc2 internal prototype to avoid an error. */
9179 #ifdef __cplusplus
9180 extern "C"
9182 #endif
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char $ac_func ();
9186 /* The GNU C library defines this for functions which it implements
9187 to always fail with ENOSYS. Some functions are actually named
9188 something starting with __ and the normal name is an alias. */
9189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9190 choke me
9191 #else
9192 char (*f) () = $ac_func;
9193 #endif
9194 #ifdef __cplusplus
9196 #endif
9199 main ()
9201 return f != $ac_func;
9203 return 0;
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -z "$ac_c_werror_flag"
9216 || test ! -s conftest.err'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 (eval $ac_try) 2>&5
9225 ac_status=$?
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 eval "$as_ac_var=yes"
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 eval "$as_ac_var=no"
9235 rm -f conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9240 if test `eval echo '${'$as_ac_var'}'` = yes; then
9241 cat >>confdefs.h <<_ACEOF
9242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9243 _ACEOF
9246 done
9248 echo "$as_me:$LINENO: checking for working mmap" >&5
9249 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9250 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 if test "$cross_compiling" = yes; then
9254 ac_cv_func_mmap_fixed_mapped=no
9255 else
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 $ac_includes_default
9263 /* malloc might have been renamed as rpl_malloc. */
9264 #undef malloc
9266 /* Thanks to Mike Haertel and Jim Avera for this test.
9267 Here is a matrix of mmap possibilities:
9268 mmap private not fixed
9269 mmap private fixed at somewhere currently unmapped
9270 mmap private fixed at somewhere already mapped
9271 mmap shared not fixed
9272 mmap shared fixed at somewhere currently unmapped
9273 mmap shared fixed at somewhere already mapped
9274 For private mappings, we should verify that changes cannot be read()
9275 back from the file, nor mmap's back from the file at a different
9276 address. (There have been systems where private was not correctly
9277 implemented like the infamous i386 svr4.0, and systems where the
9278 VM page cache was not coherent with the file system buffer cache
9279 like early versions of FreeBSD and possibly contemporary NetBSD.)
9280 For shared mappings, we should conversely verify that changes get
9281 propagated back to all the places they're supposed to be.
9283 Grep wants private fixed already mapped.
9284 The main things grep needs to know about mmap are:
9285 * does it exist and is it safe to write into the mmap'd area
9286 * how to use it (BSD variants) */
9288 #include <fcntl.h>
9289 #include <sys/mman.h>
9291 #if !STDC_HEADERS && !HAVE_STDLIB_H
9292 char *malloc ();
9293 #endif
9295 /* This mess was copied from the GNU getpagesize.h. */
9296 #if !HAVE_GETPAGESIZE
9297 /* Assume that all systems that can run configure have sys/param.h. */
9298 # if !HAVE_SYS_PARAM_H
9299 # define HAVE_SYS_PARAM_H 1
9300 # endif
9302 # ifdef _SC_PAGESIZE
9303 # define getpagesize() sysconf(_SC_PAGESIZE)
9304 # else /* no _SC_PAGESIZE */
9305 # if HAVE_SYS_PARAM_H
9306 # include <sys/param.h>
9307 # ifdef EXEC_PAGESIZE
9308 # define getpagesize() EXEC_PAGESIZE
9309 # else /* no EXEC_PAGESIZE */
9310 # ifdef NBPG
9311 # define getpagesize() NBPG * CLSIZE
9312 # ifndef CLSIZE
9313 # define CLSIZE 1
9314 # endif /* no CLSIZE */
9315 # else /* no NBPG */
9316 # ifdef NBPC
9317 # define getpagesize() NBPC
9318 # else /* no NBPC */
9319 # ifdef PAGESIZE
9320 # define getpagesize() PAGESIZE
9321 # endif /* PAGESIZE */
9322 # endif /* no NBPC */
9323 # endif /* no NBPG */
9324 # endif /* no EXEC_PAGESIZE */
9325 # else /* no HAVE_SYS_PARAM_H */
9326 # define getpagesize() 8192 /* punt totally */
9327 # endif /* no HAVE_SYS_PARAM_H */
9328 # endif /* no _SC_PAGESIZE */
9330 #endif /* no HAVE_GETPAGESIZE */
9333 main ()
9335 char *data, *data2, *data3;
9336 int i, pagesize;
9337 int fd;
9339 pagesize = getpagesize ();
9341 /* First, make a file with some known garbage in it. */
9342 data = (char *) malloc (pagesize);
9343 if (!data)
9344 exit (1);
9345 for (i = 0; i < pagesize; ++i)
9346 *(data + i) = rand ();
9347 umask (0);
9348 fd = creat ("conftest.mmap", 0600);
9349 if (fd < 0)
9350 exit (1);
9351 if (write (fd, data, pagesize) != pagesize)
9352 exit (1);
9353 close (fd);
9355 /* Next, try to mmap the file at a fixed address which already has
9356 something else allocated at it. If we can, also make sure that
9357 we see the same garbage. */
9358 fd = open ("conftest.mmap", O_RDWR);
9359 if (fd < 0)
9360 exit (1);
9361 data2 = (char *) malloc (2 * pagesize);
9362 if (!data2)
9363 exit (1);
9364 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9365 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9366 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9367 exit (1);
9368 for (i = 0; i < pagesize; ++i)
9369 if (*(data + i) != *(data2 + i))
9370 exit (1);
9372 /* Finally, make sure that changes to the mapped area do not
9373 percolate back to the file as seen by read(). (This is a bug on
9374 some variants of i386 svr4.0.) */
9375 for (i = 0; i < pagesize; ++i)
9376 *(data2 + i) = *(data2 + i) + 1;
9377 data3 = (char *) malloc (pagesize);
9378 if (!data3)
9379 exit (1);
9380 if (read (fd, data3, pagesize) != pagesize)
9381 exit (1);
9382 for (i = 0; i < pagesize; ++i)
9383 if (*(data + i) != *(data3 + i))
9384 exit (1);
9385 close (fd);
9386 exit (0);
9388 _ACEOF
9389 rm -f conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_cv_func_mmap_fixed_mapped=yes
9401 else
9402 echo "$as_me: program exited with status $ac_status" >&5
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ( exit $ac_status )
9407 ac_cv_func_mmap_fixed_mapped=no
9409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9413 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9414 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_MMAP 1
9418 _ACEOF
9421 rm -f conftest.mmap
9424 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9425 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9426 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h. */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9436 #include <features.h>
9437 #ifdef __GNU_LIBRARY__
9438 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9439 Lucky GNU user
9440 #endif
9441 #endif
9443 _ACEOF
9444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9445 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9446 ac_cv_gnu_library_2_1=yes
9447 else
9448 ac_cv_gnu_library_2_1=no
9450 rm -f conftest*
9455 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9456 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9458 GLIBC21="$ac_cv_gnu_library_2_1"
9463 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9464 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9465 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9469 if test "$cross_compiling" = yes; then
9471 # Guess based on the CPU.
9472 case "$host_cpu" in
9473 alpha* | i3456786 | m68k | s390*)
9474 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9476 gt_cv_int_divbyzero_sigfpe="guessing no";;
9477 esac
9479 else
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9487 #include <stdlib.h>
9488 #include <signal.h>
9490 static void
9491 #ifdef __cplusplus
9492 sigfpe_handler (int sig)
9493 #else
9494 sigfpe_handler (sig) int sig;
9495 #endif
9497 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9498 exit (sig != SIGFPE);
9501 int x = 1;
9502 int y = 0;
9503 int z;
9504 int nan;
9506 int main ()
9508 signal (SIGFPE, sigfpe_handler);
9509 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9510 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9511 signal (SIGTRAP, sigfpe_handler);
9512 #endif
9513 /* Linux/SPARC yields signal SIGILL. */
9514 #if defined (__sparc__) && defined (__linux__)
9515 signal (SIGILL, sigfpe_handler);
9516 #endif
9518 z = x / y;
9519 nan = y / y;
9520 exit (1);
9523 _ACEOF
9524 rm -f conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526 (eval $ac_link) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 gt_cv_int_divbyzero_sigfpe=yes
9536 else
9537 echo "$as_me: program exited with status $ac_status" >&5
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ( exit $ac_status )
9542 gt_cv_int_divbyzero_sigfpe=no
9544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9548 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9549 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9550 case "$gt_cv_int_divbyzero_sigfpe" in
9551 *yes) value=1;;
9552 *) value=0;;
9553 esac
9555 cat >>confdefs.h <<_ACEOF
9556 #define INTDIV0_RAISES_SIGFPE $value
9557 _ACEOF
9561 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9562 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9563 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <sys/types.h>
9573 #include <inttypes.h>
9575 main ()
9577 uintmax_t i = (uintmax_t) -1;
9579 return 0;
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 jm_ac_cv_header_inttypes_h=yes
9605 else
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 jm_ac_cv_header_inttypes_h=no
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
9614 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
9615 if test $jm_ac_cv_header_inttypes_h = yes; then
9617 cat >>confdefs.h <<_ACEOF
9618 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9619 _ACEOF
9624 echo "$as_me:$LINENO: checking for stdint.h" >&5
9625 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
9626 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <sys/types.h>
9636 #include <stdint.h>
9638 main ()
9640 uintmax_t i = (uintmax_t) -1;
9642 return 0;
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 jm_ac_cv_header_stdint_h=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 jm_ac_cv_header_stdint_h=no
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9676 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
9677 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
9678 if test $jm_ac_cv_header_stdint_h = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define HAVE_STDINT_H_WITH_UINTMAX 1
9682 _ACEOF
9687 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9688 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9689 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 unsigned long long ull = 1; int i = 63;
9700 main ()
9702 unsigned long long ullmax = (unsigned long long) -1;
9703 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9705 return 0;
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_type_unsigned_long_long=yes
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_cv_type_unsigned_long_long=no
9737 rm -f conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9741 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9742 if test $ac_cv_type_unsigned_long_long = yes; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define HAVE_UNSIGNED_LONG_LONG 1
9746 _ACEOF
9753 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9755 test $ac_cv_type_unsigned_long_long = yes \
9756 && ac_type='unsigned long long' \
9757 || ac_type='unsigned long'
9759 cat >>confdefs.h <<_ACEOF
9760 #define uintmax_t $ac_type
9761 _ACEOF
9763 else
9765 cat >>confdefs.h <<\_ACEOF
9766 #define HAVE_UINTMAX_T 1
9767 _ACEOF
9772 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9773 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9774 if test "${gt_cv_header_inttypes_h+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9778 cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h. */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 #include <sys/types.h>
9785 #include <inttypes.h>
9787 main ()
9791 return 0;
9793 _ACEOF
9794 rm -f conftest.$ac_objext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796 (eval $ac_compile) 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag"
9804 || test ! -s conftest.err'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; } &&
9810 { ac_try='test -s conftest.$ac_objext'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 gt_cv_header_inttypes_h=yes
9817 else
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 gt_cv_header_inttypes_h=no
9823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9826 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9827 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9828 if test $gt_cv_header_inttypes_h = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_INTTYPES_H 1
9832 _ACEOF
9838 if test $gt_cv_header_inttypes_h = yes; then
9839 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9840 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9841 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 #include <inttypes.h>
9852 #ifdef PRId32
9853 char *p = PRId32;
9854 #endif
9857 main ()
9861 return 0;
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 gt_cv_inttypes_pri_broken=no
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 gt_cv_inttypes_pri_broken=yes
9893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9896 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9897 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9899 if test "$gt_cv_inttypes_pri_broken" = yes; then
9901 cat >>confdefs.h <<_ACEOF
9902 #define PRI_MACROS_BROKEN 1
9903 _ACEOF
9908 if test "X$prefix" = "XNONE"; then
9909 acl_final_prefix="$ac_default_prefix"
9910 else
9911 acl_final_prefix="$prefix"
9913 if test "X$exec_prefix" = "XNONE"; then
9914 acl_final_exec_prefix='${prefix}'
9915 else
9916 acl_final_exec_prefix="$exec_prefix"
9918 acl_save_prefix="$prefix"
9919 prefix="$acl_final_prefix"
9920 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9921 prefix="$acl_save_prefix"
9924 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9925 if test "${with_gnu_ld+set}" = set; then
9926 withval="$with_gnu_ld"
9927 test "$withval" = no || with_gnu_ld=yes
9928 else
9929 with_gnu_ld=no
9931 # Prepare PATH_SEPARATOR.
9932 # The user is always right.
9933 if test "${PATH_SEPARATOR+set}" != set; then
9934 echo "#! /bin/sh" >conf$$.sh
9935 echo "exit 0" >>conf$$.sh
9936 chmod +x conf$$.sh
9937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9938 PATH_SEPARATOR=';'
9939 else
9940 PATH_SEPARATOR=:
9942 rm -f conf$$.sh
9944 ac_prog=ld
9945 if test "$GCC" = yes; then
9946 # Check if gcc -print-prog-name=ld gives a path.
9947 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9948 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9949 case $host in
9950 *-*-mingw*)
9951 # gcc leaves a trailing carriage return which upsets mingw
9952 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9954 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9955 esac
9956 case $ac_prog in
9957 # Accept absolute paths.
9958 [\\/]* | [A-Za-z]:[\\/]*)
9959 re_direlt='/[^/][^/]*/\.\./'
9960 # Canonicalize the path of ld
9961 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9962 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9963 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9964 done
9965 test -z "$LD" && LD="$ac_prog"
9968 # If it fails, then pretend we aren't using GCC.
9969 ac_prog=ld
9972 # If it is relative, then search for the first ld in PATH.
9973 with_gnu_ld=unknown
9975 esac
9976 elif test "$with_gnu_ld" = yes; then
9977 echo "$as_me:$LINENO: checking for GNU ld" >&5
9978 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9979 else
9980 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9981 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9983 if test "${acl_cv_path_LD+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 if test -z "$LD"; then
9987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9988 for ac_dir in $PATH; do
9989 test -z "$ac_dir" && ac_dir=.
9990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9991 acl_cv_path_LD="$ac_dir/$ac_prog"
9992 # Check to see if the program is GNU ld. I'd rather use --version,
9993 # but apparently some GNU ld's only accept -v.
9994 # Break only if it was the GNU/non-GNU ld that we prefer.
9995 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9996 test "$with_gnu_ld" != no && break
9997 else
9998 test "$with_gnu_ld" != yes && break
10001 done
10002 IFS="$ac_save_ifs"
10003 else
10004 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10008 LD="$acl_cv_path_LD"
10009 if test -n "$LD"; then
10010 echo "$as_me:$LINENO: result: $LD" >&5
10011 echo "${ECHO_T}$LD" >&6
10012 else
10013 echo "$as_me:$LINENO: result: no" >&5
10014 echo "${ECHO_T}no" >&6
10016 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10017 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10018 { (exit 1); exit 1; }; }
10019 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10020 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10021 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10025 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10026 acl_cv_prog_gnu_ld=yes
10027 else
10028 acl_cv_prog_gnu_ld=no
10031 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10032 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10033 with_gnu_ld=$acl_cv_prog_gnu_ld
10037 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10038 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10039 if test "${acl_cv_rpath+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10043 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10044 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10045 . ./conftest.sh
10046 rm -f ./conftest.sh
10047 acl_cv_rpath=done
10050 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10051 echo "${ECHO_T}$acl_cv_rpath" >&6
10052 wl="$acl_cv_wl"
10053 libext="$acl_cv_libext"
10054 shlibext="$acl_cv_shlibext"
10055 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10056 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10057 hardcode_direct="$acl_cv_hardcode_direct"
10058 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10059 # Check whether --enable-rpath or --disable-rpath was given.
10060 if test "${enable_rpath+set}" = set; then
10061 enableval="$enable_rpath"
10063 else
10064 enable_rpath=yes
10073 use_additional=yes
10075 acl_save_prefix="$prefix"
10076 prefix="$acl_final_prefix"
10077 acl_save_exec_prefix="$exec_prefix"
10078 exec_prefix="$acl_final_exec_prefix"
10080 eval additional_includedir=\"$includedir\"
10081 eval additional_libdir=\"$libdir\"
10083 exec_prefix="$acl_save_exec_prefix"
10084 prefix="$acl_save_prefix"
10087 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10088 if test "${with_libiconv_prefix+set}" = set; then
10089 withval="$with_libiconv_prefix"
10091 if test "X$withval" = "Xno"; then
10092 use_additional=no
10093 else
10094 if test "X$withval" = "X"; then
10096 acl_save_prefix="$prefix"
10097 prefix="$acl_final_prefix"
10098 acl_save_exec_prefix="$exec_prefix"
10099 exec_prefix="$acl_final_exec_prefix"
10101 eval additional_includedir=\"$includedir\"
10102 eval additional_libdir=\"$libdir\"
10104 exec_prefix="$acl_save_exec_prefix"
10105 prefix="$acl_save_prefix"
10107 else
10108 additional_includedir="$withval/include"
10109 additional_libdir="$withval/lib"
10114 LIBICONV=
10115 LTLIBICONV=
10116 INCICONV=
10117 rpathdirs=
10118 ltrpathdirs=
10119 names_already_handled=
10120 names_next_round='iconv '
10121 while test -n "$names_next_round"; do
10122 names_this_round="$names_next_round"
10123 names_next_round=
10124 for name in $names_this_round; do
10125 already_handled=
10126 for n in $names_already_handled; do
10127 if test "$n" = "$name"; then
10128 already_handled=yes
10129 break
10131 done
10132 if test -z "$already_handled"; then
10133 names_already_handled="$names_already_handled $name"
10134 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10135 eval value=\"\$HAVE_LIB$uppername\"
10136 if test -n "$value"; then
10137 if test "$value" = yes; then
10138 eval value=\"\$LIB$uppername\"
10139 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10140 eval value=\"\$LTLIB$uppername\"
10141 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10142 else
10145 else
10146 found_dir=
10147 found_la=
10148 found_so=
10149 found_a=
10150 if test $use_additional = yes; then
10151 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10152 found_dir="$additional_libdir"
10153 found_so="$additional_libdir/lib$name.$shlibext"
10154 if test -f "$additional_libdir/lib$name.la"; then
10155 found_la="$additional_libdir/lib$name.la"
10157 else
10158 if test -f "$additional_libdir/lib$name.$libext"; then
10159 found_dir="$additional_libdir"
10160 found_a="$additional_libdir/lib$name.$libext"
10161 if test -f "$additional_libdir/lib$name.la"; then
10162 found_la="$additional_libdir/lib$name.la"
10167 if test "X$found_dir" = "X"; then
10168 for x in $LDFLAGS $LTLIBICONV; do
10170 acl_save_prefix="$prefix"
10171 prefix="$acl_final_prefix"
10172 acl_save_exec_prefix="$exec_prefix"
10173 exec_prefix="$acl_final_exec_prefix"
10174 eval x=\"$x\"
10175 exec_prefix="$acl_save_exec_prefix"
10176 prefix="$acl_save_prefix"
10178 case "$x" in
10179 -L*)
10180 dir=`echo "X$x" | sed -e 's/^X-L//'`
10181 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10182 found_dir="$dir"
10183 found_so="$dir/lib$name.$shlibext"
10184 if test -f "$dir/lib$name.la"; then
10185 found_la="$dir/lib$name.la"
10187 else
10188 if test -f "$dir/lib$name.$libext"; then
10189 found_dir="$dir"
10190 found_a="$dir/lib$name.$libext"
10191 if test -f "$dir/lib$name.la"; then
10192 found_la="$dir/lib$name.la"
10197 esac
10198 if test "X$found_dir" != "X"; then
10199 break
10201 done
10203 if test "X$found_dir" != "X"; then
10204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10205 if test "X$found_so" != "X"; then
10206 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10207 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10208 else
10209 haveit=
10210 for x in $ltrpathdirs; do
10211 if test "X$x" = "X$found_dir"; then
10212 haveit=yes
10213 break
10215 done
10216 if test -z "$haveit"; then
10217 ltrpathdirs="$ltrpathdirs $found_dir"
10219 if test "$hardcode_direct" = yes; then
10220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10221 else
10222 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10223 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10224 haveit=
10225 for x in $rpathdirs; do
10226 if test "X$x" = "X$found_dir"; then
10227 haveit=yes
10228 break
10230 done
10231 if test -z "$haveit"; then
10232 rpathdirs="$rpathdirs $found_dir"
10234 else
10235 haveit=
10236 for x in $LDFLAGS $LIBICONV; do
10238 acl_save_prefix="$prefix"
10239 prefix="$acl_final_prefix"
10240 acl_save_exec_prefix="$exec_prefix"
10241 exec_prefix="$acl_final_exec_prefix"
10242 eval x=\"$x\"
10243 exec_prefix="$acl_save_exec_prefix"
10244 prefix="$acl_save_prefix"
10246 if test "X$x" = "X-L$found_dir"; then
10247 haveit=yes
10248 break
10250 done
10251 if test -z "$haveit"; then
10252 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10254 if test "$hardcode_minus_L" != no; then
10255 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10256 else
10257 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10262 else
10263 if test "X$found_a" != "X"; then
10264 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10265 else
10266 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10269 additional_includedir=
10270 case "$found_dir" in
10271 */lib | */lib/)
10272 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10273 additional_includedir="$basedir/include"
10275 esac
10276 if test "X$additional_includedir" != "X"; then
10277 if test "X$additional_includedir" != "X/usr/include"; then
10278 haveit=
10279 if test "X$additional_includedir" = "X/usr/local/include"; then
10280 if test -n "$GCC"; then
10281 case $host_os in
10282 linux*) haveit=yes;;
10283 esac
10286 if test -z "$haveit"; then
10287 for x in $CPPFLAGS $INCICONV; do
10289 acl_save_prefix="$prefix"
10290 prefix="$acl_final_prefix"
10291 acl_save_exec_prefix="$exec_prefix"
10292 exec_prefix="$acl_final_exec_prefix"
10293 eval x=\"$x\"
10294 exec_prefix="$acl_save_exec_prefix"
10295 prefix="$acl_save_prefix"
10297 if test "X$x" = "X-I$additional_includedir"; then
10298 haveit=yes
10299 break
10301 done
10302 if test -z "$haveit"; then
10303 if test -d "$additional_includedir"; then
10304 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10310 if test -n "$found_la"; then
10311 save_libdir="$libdir"
10312 case "$found_la" in
10313 */* | *\\*) . "$found_la" ;;
10314 *) . "./$found_la" ;;
10315 esac
10316 libdir="$save_libdir"
10317 for dep in $dependency_libs; do
10318 case "$dep" in
10319 -L*)
10320 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10321 if test "X$additional_libdir" != "X/usr/lib"; then
10322 haveit=
10323 if test "X$additional_libdir" = "X/usr/local/lib"; then
10324 if test -n "$GCC"; then
10325 case $host_os in
10326 linux*) haveit=yes;;
10327 esac
10330 if test -z "$haveit"; then
10331 haveit=
10332 for x in $LDFLAGS $LIBICONV; do
10334 acl_save_prefix="$prefix"
10335 prefix="$acl_final_prefix"
10336 acl_save_exec_prefix="$exec_prefix"
10337 exec_prefix="$acl_final_exec_prefix"
10338 eval x=\"$x\"
10339 exec_prefix="$acl_save_exec_prefix"
10340 prefix="$acl_save_prefix"
10342 if test "X$x" = "X-L$additional_libdir"; then
10343 haveit=yes
10344 break
10346 done
10347 if test -z "$haveit"; then
10348 if test -d "$additional_libdir"; then
10349 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10352 haveit=
10353 for x in $LDFLAGS $LTLIBICONV; do
10355 acl_save_prefix="$prefix"
10356 prefix="$acl_final_prefix"
10357 acl_save_exec_prefix="$exec_prefix"
10358 exec_prefix="$acl_final_exec_prefix"
10359 eval x=\"$x\"
10360 exec_prefix="$acl_save_exec_prefix"
10361 prefix="$acl_save_prefix"
10363 if test "X$x" = "X-L$additional_libdir"; then
10364 haveit=yes
10365 break
10367 done
10368 if test -z "$haveit"; then
10369 if test -d "$additional_libdir"; then
10370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10376 -R*)
10377 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10378 if test "$enable_rpath" != no; then
10379 haveit=
10380 for x in $rpathdirs; do
10381 if test "X$x" = "X$dir"; then
10382 haveit=yes
10383 break
10385 done
10386 if test -z "$haveit"; then
10387 rpathdirs="$rpathdirs $dir"
10389 haveit=
10390 for x in $ltrpathdirs; do
10391 if test "X$x" = "X$dir"; then
10392 haveit=yes
10393 break
10395 done
10396 if test -z "$haveit"; then
10397 ltrpathdirs="$ltrpathdirs $dir"
10401 -l*)
10402 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10404 *.la)
10405 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10408 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10409 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10411 esac
10412 done
10414 else
10415 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10420 done
10421 done
10422 if test "X$rpathdirs" != "X"; then
10423 if test -n "$hardcode_libdir_separator"; then
10424 alldirs=
10425 for found_dir in $rpathdirs; do
10426 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10427 done
10428 acl_save_libdir="$libdir"
10429 libdir="$alldirs"
10430 eval flag=\"$hardcode_libdir_flag_spec\"
10431 libdir="$acl_save_libdir"
10432 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10433 else
10434 for found_dir in $rpathdirs; do
10435 acl_save_libdir="$libdir"
10436 libdir="$found_dir"
10437 eval flag=\"$hardcode_libdir_flag_spec\"
10438 libdir="$acl_save_libdir"
10439 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10440 done
10443 if test "X$ltrpathdirs" != "X"; then
10444 for found_dir in $ltrpathdirs; do
10445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10446 done
10462 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10463 stdlib.h string.h unistd.h sys/param.h
10465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467 echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10474 else
10475 # Is the header compilable?
10476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 #include <$ac_header>
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -z "$ac_c_werror_flag"
10497 || test ! -s conftest.err'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; } &&
10503 { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
10509 ac_header_compiler=yes
10510 else
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_compiler=no
10516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10518 echo "${ECHO_T}$ac_header_compiler" >&6
10520 # Is the header present?
10521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 #include <$ac_header>
10530 _ACEOF
10531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } >/dev/null; then
10539 if test -s conftest.err; then
10540 ac_cpp_err=$ac_c_preproc_warn_flag
10541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10542 else
10543 ac_cpp_err=
10545 else
10546 ac_cpp_err=yes
10548 if test -z "$ac_cpp_err"; then
10549 ac_header_preproc=yes
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 ac_header_preproc=no
10556 rm -f conftest.err conftest.$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10558 echo "${ECHO_T}$ac_header_preproc" >&6
10560 # So? What about this header?
10561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10562 yes:no: )
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10567 ac_header_preproc=yes
10569 no:yes:* )
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10583 cat <<\_ASBOX
10584 ## ------------------------------- ##
10585 ## Report this to guichaz@yahoo.fr ##
10586 ## ------------------------------- ##
10587 _ASBOX
10589 sed "s/^/$as_me: WARNING: /" >&2
10591 esac
10592 echo "$as_me:$LINENO: checking for $ac_header" >&5
10593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 eval "$as_ac_Header=\$ac_header_preproc"
10599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10604 cat >>confdefs.h <<_ACEOF
10605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10606 _ACEOF
10610 done
10634 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
10635 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
10636 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
10637 __fsetlocking
10639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10642 if eval "test \"\${$as_ac_var+set}\" = set"; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645 cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h. */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10653 #define $ac_func innocuous_$ac_func
10655 /* System header to define __stub macros and hopefully few prototypes,
10656 which can conflict with char $ac_func (); below.
10657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658 <limits.h> exists even on freestanding compilers. */
10660 #ifdef __STDC__
10661 # include <limits.h>
10662 #else
10663 # include <assert.h>
10664 #endif
10666 #undef $ac_func
10668 /* Override any gcc2 internal prototype to avoid an error. */
10669 #ifdef __cplusplus
10670 extern "C"
10672 #endif
10673 /* We use char because int might match the return type of a gcc2
10674 builtin and then its argument prototype would still apply. */
10675 char $ac_func ();
10676 /* The GNU C library defines this for functions which it implements
10677 to always fail with ENOSYS. Some functions are actually named
10678 something starting with __ and the normal name is an alias. */
10679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10680 choke me
10681 #else
10682 char (*f) () = $ac_func;
10683 #endif
10684 #ifdef __cplusplus
10686 #endif
10689 main ()
10691 return f != $ac_func;
10693 return 0;
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag"
10706 || test ! -s conftest.err'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest$ac_exeext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 eval "$as_ac_var=yes"
10719 else
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 eval "$as_ac_var=no"
10725 rm -f conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10730 if test `eval echo '${'$as_ac_var'}'` = yes; then
10731 cat >>confdefs.h <<_ACEOF
10732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10733 _ACEOF
10736 done
10744 am_save_CPPFLAGS="$CPPFLAGS"
10746 for element in $INCICONV; do
10747 haveit=
10748 for x in $CPPFLAGS; do
10750 acl_save_prefix="$prefix"
10751 prefix="$acl_final_prefix"
10752 acl_save_exec_prefix="$exec_prefix"
10753 exec_prefix="$acl_final_exec_prefix"
10754 eval x=\"$x\"
10755 exec_prefix="$acl_save_exec_prefix"
10756 prefix="$acl_save_prefix"
10758 if test "X$x" = "X$element"; then
10759 haveit=yes
10760 break
10762 done
10763 if test -z "$haveit"; then
10764 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10766 done
10769 echo "$as_me:$LINENO: checking for iconv" >&5
10770 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10771 if test "${am_cv_func_iconv+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10775 am_cv_func_iconv="no, consider installing GNU libiconv"
10776 am_cv_lib_iconv=no
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 #include <stdlib.h>
10784 #include <iconv.h>
10786 main ()
10788 iconv_t cd = iconv_open("","");
10789 iconv(cd,NULL,NULL,NULL,NULL);
10790 iconv_close(cd);
10792 return 0;
10794 _ACEOF
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797 (eval $ac_link) 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -z "$ac_c_werror_flag"
10805 || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 am_cv_func_iconv=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10823 rm -f conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 if test "$am_cv_func_iconv" != yes; then
10826 am_save_LIBS="$LIBS"
10827 LIBS="$LIBS $LIBICONV"
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h. */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <stdlib.h>
10835 #include <iconv.h>
10837 main ()
10839 iconv_t cd = iconv_open("","");
10840 iconv(cd,NULL,NULL,NULL,NULL);
10841 iconv_close(cd);
10843 return 0;
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>conftest.er1
10849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag"
10856 || test ! -s conftest.err'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; } &&
10862 { ac_try='test -s conftest$ac_exeext'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10868 am_cv_lib_iconv=yes
10869 am_cv_func_iconv=yes
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10875 rm -f conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10877 LIBS="$am_save_LIBS"
10881 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10882 echo "${ECHO_T}$am_cv_func_iconv" >&6
10883 if test "$am_cv_func_iconv" = yes; then
10885 cat >>confdefs.h <<\_ACEOF
10886 #define HAVE_ICONV 1
10887 _ACEOF
10890 if test "$am_cv_lib_iconv" = yes; then
10891 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10892 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10893 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10894 echo "${ECHO_T}$LIBICONV" >&6
10895 else
10896 CPPFLAGS="$am_save_CPPFLAGS"
10897 LIBICONV=
10898 LTLIBICONV=
10903 if test "$am_cv_func_iconv" = yes; then
10904 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10905 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10906 if test "${am_cv_proto_iconv+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10917 #include <stdlib.h>
10918 #include <iconv.h>
10919 extern
10920 #ifdef __cplusplus
10922 #endif
10923 #if defined(__STDC__) || defined(__cplusplus)
10924 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10925 #else
10926 size_t iconv();
10927 #endif
10930 main ()
10934 return 0;
10936 _ACEOF
10937 rm -f conftest.$ac_objext
10938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag"
10947 || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 am_cv_proto_iconv_arg1=""
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 am_cv_proto_iconv_arg1="const"
10966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10967 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);"
10970 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10971 echo "$as_me:$LINENO: result: ${ac_t:-
10972 }$am_cv_proto_iconv" >&5
10973 echo "${ECHO_T}${ac_t:-
10974 }$am_cv_proto_iconv" >&6
10976 cat >>confdefs.h <<_ACEOF
10977 #define ICONV_CONST $am_cv_proto_iconv_arg1
10978 _ACEOF
10983 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10984 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10985 if test "${am_cv_langinfo_codeset+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h. */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 #include <langinfo.h>
10996 main ()
10998 char* cs = nl_langinfo(CODESET);
11000 return 0;
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005 (eval $ac_link) 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 am_cv_langinfo_codeset=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 am_cv_langinfo_codeset=no
11032 rm -f conftest.err conftest.$ac_objext \
11033 conftest$ac_exeext conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11037 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11038 if test $am_cv_langinfo_codeset = yes; then
11040 cat >>confdefs.h <<\_ACEOF
11041 #define HAVE_LANGINFO_CODESET 1
11042 _ACEOF
11046 if test $ac_cv_header_locale_h = yes; then
11048 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11049 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11050 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <locale.h>
11061 main ()
11063 return LC_MESSAGES
11065 return 0;
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest$ac_exeext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 am_cv_val_LC_MESSAGES=yes
11091 else
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 am_cv_val_LC_MESSAGES=no
11097 rm -f conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11100 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11101 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11102 if test $am_cv_val_LC_MESSAGES = yes; then
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_LC_MESSAGES 1
11106 _ACEOF
11112 for ac_prog in bison
11114 # Extract the first word of "$ac_prog", so it can be a program name with args.
11115 set dummy $ac_prog; ac_word=$2
11116 echo "$as_me:$LINENO: checking for $ac_word" >&5
11117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11118 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 if test -n "$INTLBISON"; then
11122 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11123 else
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11131 ac_cv_prog_INTLBISON="$ac_prog"
11132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 break 2
11135 done
11136 done
11140 INTLBISON=$ac_cv_prog_INTLBISON
11141 if test -n "$INTLBISON"; then
11142 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11143 echo "${ECHO_T}$INTLBISON" >&6
11144 else
11145 echo "$as_me:$LINENO: result: no" >&5
11146 echo "${ECHO_T}no" >&6
11149 test -n "$INTLBISON" && break
11150 done
11152 if test -z "$INTLBISON"; then
11153 ac_verc_fail=yes
11154 else
11155 echo "$as_me:$LINENO: checking version of bison" >&5
11156 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11157 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11158 case $ac_prog_version in
11159 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11160 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11161 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11162 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11163 esac
11164 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11165 echo "${ECHO_T}$ac_prog_version" >&6
11167 if test $ac_verc_fail = yes; then
11168 INTLBISON=:
11186 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11187 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11188 # Check whether --enable-nls or --disable-nls was given.
11189 if test "${enable_nls+set}" = set; then
11190 enableval="$enable_nls"
11191 USE_NLS=$enableval
11192 else
11193 USE_NLS=yes
11195 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11196 echo "${ECHO_T}$USE_NLS" >&6
11201 BUILD_INCLUDED_LIBINTL=no
11202 USE_INCLUDED_LIBINTL=no
11204 LIBINTL=
11205 LTLIBINTL=
11206 POSUB=
11208 if test "$USE_NLS" = "yes"; then
11209 gt_use_preinstalled_gnugettext=no
11211 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11212 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11214 # Check whether --with-included-gettext or --without-included-gettext was given.
11215 if test "${with_included_gettext+set}" = set; then
11216 withval="$with_included_gettext"
11217 nls_cv_force_use_gnu_gettext=$withval
11218 else
11219 nls_cv_force_use_gnu_gettext=no
11221 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11222 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11224 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11225 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11232 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11233 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11234 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <libintl.h>
11244 extern int _nl_msg_cat_cntr;
11245 extern int *_nl_domain_bindings;
11247 main ()
11249 bindtextdomain ("", "");
11250 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11252 return 0;
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag"
11265 || test ! -s conftest.err'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 gt_cv_func_gnugettext1_libc=yes
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 gt_cv_func_gnugettext1_libc=no
11284 rm -f conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11288 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11290 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11294 use_additional=yes
11296 acl_save_prefix="$prefix"
11297 prefix="$acl_final_prefix"
11298 acl_save_exec_prefix="$exec_prefix"
11299 exec_prefix="$acl_final_exec_prefix"
11301 eval additional_includedir=\"$includedir\"
11302 eval additional_libdir=\"$libdir\"
11304 exec_prefix="$acl_save_exec_prefix"
11305 prefix="$acl_save_prefix"
11308 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
11309 if test "${with_libintl_prefix+set}" = set; then
11310 withval="$with_libintl_prefix"
11312 if test "X$withval" = "Xno"; then
11313 use_additional=no
11314 else
11315 if test "X$withval" = "X"; then
11317 acl_save_prefix="$prefix"
11318 prefix="$acl_final_prefix"
11319 acl_save_exec_prefix="$exec_prefix"
11320 exec_prefix="$acl_final_exec_prefix"
11322 eval additional_includedir=\"$includedir\"
11323 eval additional_libdir=\"$libdir\"
11325 exec_prefix="$acl_save_exec_prefix"
11326 prefix="$acl_save_prefix"
11328 else
11329 additional_includedir="$withval/include"
11330 additional_libdir="$withval/lib"
11335 LIBINTL=
11336 LTLIBINTL=
11337 INCINTL=
11338 rpathdirs=
11339 ltrpathdirs=
11340 names_already_handled=
11341 names_next_round='intl '
11342 while test -n "$names_next_round"; do
11343 names_this_round="$names_next_round"
11344 names_next_round=
11345 for name in $names_this_round; do
11346 already_handled=
11347 for n in $names_already_handled; do
11348 if test "$n" = "$name"; then
11349 already_handled=yes
11350 break
11352 done
11353 if test -z "$already_handled"; then
11354 names_already_handled="$names_already_handled $name"
11355 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11356 eval value=\"\$HAVE_LIB$uppername\"
11357 if test -n "$value"; then
11358 if test "$value" = yes; then
11359 eval value=\"\$LIB$uppername\"
11360 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11361 eval value=\"\$LTLIB$uppername\"
11362 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11363 else
11366 else
11367 found_dir=
11368 found_la=
11369 found_so=
11370 found_a=
11371 if test $use_additional = yes; then
11372 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11373 found_dir="$additional_libdir"
11374 found_so="$additional_libdir/lib$name.$shlibext"
11375 if test -f "$additional_libdir/lib$name.la"; then
11376 found_la="$additional_libdir/lib$name.la"
11378 else
11379 if test -f "$additional_libdir/lib$name.$libext"; then
11380 found_dir="$additional_libdir"
11381 found_a="$additional_libdir/lib$name.$libext"
11382 if test -f "$additional_libdir/lib$name.la"; then
11383 found_la="$additional_libdir/lib$name.la"
11388 if test "X$found_dir" = "X"; then
11389 for x in $LDFLAGS $LTLIBINTL; do
11391 acl_save_prefix="$prefix"
11392 prefix="$acl_final_prefix"
11393 acl_save_exec_prefix="$exec_prefix"
11394 exec_prefix="$acl_final_exec_prefix"
11395 eval x=\"$x\"
11396 exec_prefix="$acl_save_exec_prefix"
11397 prefix="$acl_save_prefix"
11399 case "$x" in
11400 -L*)
11401 dir=`echo "X$x" | sed -e 's/^X-L//'`
11402 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11403 found_dir="$dir"
11404 found_so="$dir/lib$name.$shlibext"
11405 if test -f "$dir/lib$name.la"; then
11406 found_la="$dir/lib$name.la"
11408 else
11409 if test -f "$dir/lib$name.$libext"; then
11410 found_dir="$dir"
11411 found_a="$dir/lib$name.$libext"
11412 if test -f "$dir/lib$name.la"; then
11413 found_la="$dir/lib$name.la"
11418 esac
11419 if test "X$found_dir" != "X"; then
11420 break
11422 done
11424 if test "X$found_dir" != "X"; then
11425 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11426 if test "X$found_so" != "X"; then
11427 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11429 else
11430 haveit=
11431 for x in $ltrpathdirs; do
11432 if test "X$x" = "X$found_dir"; then
11433 haveit=yes
11434 break
11436 done
11437 if test -z "$haveit"; then
11438 ltrpathdirs="$ltrpathdirs $found_dir"
11440 if test "$hardcode_direct" = yes; then
11441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11442 else
11443 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11444 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11445 haveit=
11446 for x in $rpathdirs; do
11447 if test "X$x" = "X$found_dir"; then
11448 haveit=yes
11449 break
11451 done
11452 if test -z "$haveit"; then
11453 rpathdirs="$rpathdirs $found_dir"
11455 else
11456 haveit=
11457 for x in $LDFLAGS $LIBINTL; do
11459 acl_save_prefix="$prefix"
11460 prefix="$acl_final_prefix"
11461 acl_save_exec_prefix="$exec_prefix"
11462 exec_prefix="$acl_final_exec_prefix"
11463 eval x=\"$x\"
11464 exec_prefix="$acl_save_exec_prefix"
11465 prefix="$acl_save_prefix"
11467 if test "X$x" = "X-L$found_dir"; then
11468 haveit=yes
11469 break
11471 done
11472 if test -z "$haveit"; then
11473 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11475 if test "$hardcode_minus_L" != no; then
11476 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11477 else
11478 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11483 else
11484 if test "X$found_a" != "X"; then
11485 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11486 else
11487 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11490 additional_includedir=
11491 case "$found_dir" in
11492 */lib | */lib/)
11493 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11494 additional_includedir="$basedir/include"
11496 esac
11497 if test "X$additional_includedir" != "X"; then
11498 if test "X$additional_includedir" != "X/usr/include"; then
11499 haveit=
11500 if test "X$additional_includedir" = "X/usr/local/include"; then
11501 if test -n "$GCC"; then
11502 case $host_os in
11503 linux*) haveit=yes;;
11504 esac
11507 if test -z "$haveit"; then
11508 for x in $CPPFLAGS $INCINTL; do
11510 acl_save_prefix="$prefix"
11511 prefix="$acl_final_prefix"
11512 acl_save_exec_prefix="$exec_prefix"
11513 exec_prefix="$acl_final_exec_prefix"
11514 eval x=\"$x\"
11515 exec_prefix="$acl_save_exec_prefix"
11516 prefix="$acl_save_prefix"
11518 if test "X$x" = "X-I$additional_includedir"; then
11519 haveit=yes
11520 break
11522 done
11523 if test -z "$haveit"; then
11524 if test -d "$additional_includedir"; then
11525 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11531 if test -n "$found_la"; then
11532 save_libdir="$libdir"
11533 case "$found_la" in
11534 */* | *\\*) . "$found_la" ;;
11535 *) . "./$found_la" ;;
11536 esac
11537 libdir="$save_libdir"
11538 for dep in $dependency_libs; do
11539 case "$dep" in
11540 -L*)
11541 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11542 if test "X$additional_libdir" != "X/usr/lib"; then
11543 haveit=
11544 if test "X$additional_libdir" = "X/usr/local/lib"; then
11545 if test -n "$GCC"; then
11546 case $host_os in
11547 linux*) haveit=yes;;
11548 esac
11551 if test -z "$haveit"; then
11552 haveit=
11553 for x in $LDFLAGS $LIBINTL; do
11555 acl_save_prefix="$prefix"
11556 prefix="$acl_final_prefix"
11557 acl_save_exec_prefix="$exec_prefix"
11558 exec_prefix="$acl_final_exec_prefix"
11559 eval x=\"$x\"
11560 exec_prefix="$acl_save_exec_prefix"
11561 prefix="$acl_save_prefix"
11563 if test "X$x" = "X-L$additional_libdir"; then
11564 haveit=yes
11565 break
11567 done
11568 if test -z "$haveit"; then
11569 if test -d "$additional_libdir"; then
11570 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11573 haveit=
11574 for x in $LDFLAGS $LTLIBINTL; do
11576 acl_save_prefix="$prefix"
11577 prefix="$acl_final_prefix"
11578 acl_save_exec_prefix="$exec_prefix"
11579 exec_prefix="$acl_final_exec_prefix"
11580 eval x=\"$x\"
11581 exec_prefix="$acl_save_exec_prefix"
11582 prefix="$acl_save_prefix"
11584 if test "X$x" = "X-L$additional_libdir"; then
11585 haveit=yes
11586 break
11588 done
11589 if test -z "$haveit"; then
11590 if test -d "$additional_libdir"; then
11591 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11597 -R*)
11598 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11599 if test "$enable_rpath" != no; then
11600 haveit=
11601 for x in $rpathdirs; do
11602 if test "X$x" = "X$dir"; then
11603 haveit=yes
11604 break
11606 done
11607 if test -z "$haveit"; then
11608 rpathdirs="$rpathdirs $dir"
11610 haveit=
11611 for x in $ltrpathdirs; do
11612 if test "X$x" = "X$dir"; then
11613 haveit=yes
11614 break
11616 done
11617 if test -z "$haveit"; then
11618 ltrpathdirs="$ltrpathdirs $dir"
11622 -l*)
11623 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11625 *.la)
11626 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11629 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11630 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11632 esac
11633 done
11635 else
11636 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11637 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11641 done
11642 done
11643 if test "X$rpathdirs" != "X"; then
11644 if test -n "$hardcode_libdir_separator"; then
11645 alldirs=
11646 for found_dir in $rpathdirs; do
11647 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11648 done
11649 acl_save_libdir="$libdir"
11650 libdir="$alldirs"
11651 eval flag=\"$hardcode_libdir_flag_spec\"
11652 libdir="$acl_save_libdir"
11653 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11654 else
11655 for found_dir in $rpathdirs; do
11656 acl_save_libdir="$libdir"
11657 libdir="$found_dir"
11658 eval flag=\"$hardcode_libdir_flag_spec\"
11659 libdir="$acl_save_libdir"
11660 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11661 done
11664 if test "X$ltrpathdirs" != "X"; then
11665 for found_dir in $ltrpathdirs; do
11666 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11667 done
11670 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11671 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11672 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 gt_save_CPPFLAGS="$CPPFLAGS"
11676 CPPFLAGS="$CPPFLAGS $INCINTL"
11677 gt_save_LIBS="$LIBS"
11678 LIBS="$LIBS $LIBINTL"
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 #include <libintl.h>
11686 extern int _nl_msg_cat_cntr;
11687 extern
11688 #ifdef __cplusplus
11690 #endif
11691 const char *_nl_expand_alias ();
11693 main ()
11695 bindtextdomain ("", "");
11696 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11698 return 0;
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag"
11711 || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 gt_cv_func_gnugettext1_libintl=yes
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 gt_cv_func_gnugettext1_libintl=no
11730 rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11733 LIBS="$LIBS $LIBICONV"
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 #include <libintl.h>
11741 extern int _nl_msg_cat_cntr;
11742 extern
11743 #ifdef __cplusplus
11745 #endif
11746 const char *_nl_expand_alias ();
11748 main ()
11750 bindtextdomain ("", "");
11751 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11753 return 0;
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758 (eval $ac_link) 2>conftest.er1
11759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -z "$ac_c_werror_flag"
11766 || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 LIBINTL="$LIBINTL $LIBICONV"
11779 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11780 gt_cv_func_gnugettext1_libintl=yes
11782 else
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11787 rm -f conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11790 CPPFLAGS="$gt_save_CPPFLAGS"
11791 LIBS="$gt_save_LIBS"
11793 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11794 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11797 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11798 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11799 && test "$PACKAGE" != gettext-runtime \
11800 && test "$PACKAGE" != gettext-tools; }; then
11801 gt_use_preinstalled_gnugettext=yes
11802 else
11803 LIBINTL=
11804 LTLIBINTL=
11805 INCINTL=
11809 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11810 nls_cv_use_gnu_gettext=yes
11814 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11815 BUILD_INCLUDED_LIBINTL=yes
11816 USE_INCLUDED_LIBINTL=yes
11817 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11818 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11819 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11822 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11823 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11824 CATOBJEXT=.gmo
11828 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11829 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define ENABLE_NLS 1
11833 _ACEOF
11835 else
11836 USE_NLS=no
11840 echo "$as_me:$LINENO: checking whether to use NLS" >&5
11841 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
11842 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11843 echo "${ECHO_T}$USE_NLS" >&6
11844 if test "$USE_NLS" = "yes"; then
11845 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11846 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
11847 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11848 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11849 gt_source="external libintl"
11850 else
11851 gt_source="libc"
11853 else
11854 gt_source="included intl directory"
11856 echo "$as_me:$LINENO: result: $gt_source" >&5
11857 echo "${ECHO_T}$gt_source" >&6
11860 if test "$USE_NLS" = "yes"; then
11862 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11863 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11864 echo "$as_me:$LINENO: checking how to link with libintl" >&5
11865 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
11866 echo "$as_me:$LINENO: result: $LIBINTL" >&5
11867 echo "${ECHO_T}$LIBINTL" >&6
11869 for element in $INCINTL; do
11870 haveit=
11871 for x in $CPPFLAGS; do
11873 acl_save_prefix="$prefix"
11874 prefix="$acl_final_prefix"
11875 acl_save_exec_prefix="$exec_prefix"
11876 exec_prefix="$acl_final_exec_prefix"
11877 eval x=\"$x\"
11878 exec_prefix="$acl_save_exec_prefix"
11879 prefix="$acl_save_prefix"
11881 if test "X$x" = "X$element"; then
11882 haveit=yes
11883 break
11885 done
11886 if test -z "$haveit"; then
11887 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11889 done
11894 cat >>confdefs.h <<\_ACEOF
11895 #define HAVE_GETTEXT 1
11896 _ACEOF
11899 cat >>confdefs.h <<\_ACEOF
11900 #define HAVE_DCGETTEXT 1
11901 _ACEOF
11905 POSUB=po
11909 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11910 BUILD_INCLUDED_LIBINTL=yes
11917 nls_cv_header_intl=
11918 nls_cv_header_libgt=
11920 DATADIRNAME=share
11923 INSTOBJEXT=.mo
11926 GENCAT=gencat
11929 if test "$USE_INCLUDED_LIBINTL" = yes; then
11930 INTLOBJS="\$(GETTOBJS)"
11934 INTL_LIBTOOL_SUFFIX_PREFIX=
11938 INTLLIBS="$LIBINTL"
11945 CFLAGS="$CFLAGS -I../${srcdir}/intl"
11946 LIBS="$LIBS $LIBINTL"
11949 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"
11952 cat >confcache <<\_ACEOF
11953 # This file is a shell script that caches the results of configure
11954 # tests run on this system so they can be shared between configure
11955 # scripts and configure runs, see configure's option --config-cache.
11956 # It is not useful on other systems. If it contains results you don't
11957 # want to keep, you may remove or edit it.
11959 # config.status only pays attention to the cache file if you give it
11960 # the --recheck option to rerun configure.
11962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11964 # following values.
11966 _ACEOF
11968 # The following way of writing the cache mishandles newlines in values,
11969 # but we know of no workaround that is simple, portable, and efficient.
11970 # So, don't put newlines in cache variables' values.
11971 # Ultrix sh set writes to stderr and can't be redirected directly,
11972 # and sets the high bit in the cache file unless we assign to the vars.
11974 (set) 2>&1 |
11975 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11976 *ac_space=\ *)
11977 # `set' does not quote correctly, so add quotes (double-quote
11978 # substitution turns \\\\ into \\, and sed turns \\ into \).
11979 sed -n \
11980 "s/'/'\\\\''/g;
11981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11984 # `set' quotes correctly as required by POSIX, so do not add quotes.
11985 sed -n \
11986 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11988 esac;
11990 sed '
11991 t clear
11992 : clear
11993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11994 t end
11995 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11996 : end' >>confcache
11997 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11998 if test -w $cache_file; then
11999 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12000 cat confcache >$cache_file
12001 else
12002 echo "not updating unwritable cache $cache_file"
12005 rm -f confcache
12007 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12008 # Let make expand exec_prefix.
12009 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12013 # trailing colons and then remove the whole line if VPATH becomes empty
12014 # (actually we leave an empty line to preserve line numbers).
12015 if test "x$srcdir" = x.; then
12016 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12017 s/:*\$(srcdir):*/:/;
12018 s/:*\${srcdir}:*/:/;
12019 s/:*@srcdir@:*/:/;
12020 s/^\([^=]*=[ ]*\):*/\1/;
12021 s/:*$//;
12022 s/^[^=]*=[ ]*$//;
12026 DEFS=-DHAVE_CONFIG_H
12028 ac_libobjs=
12029 ac_ltlibobjs=
12030 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12031 # 1. Remove the extension, and $U if already installed.
12032 ac_i=`echo "$ac_i" |
12033 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12034 # 2. Add them.
12035 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12036 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12037 done
12038 LIBOBJS=$ac_libobjs
12040 LTLIBOBJS=$ac_ltlibobjs
12043 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12044 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12045 Usually this means the macro was only invoked conditionally." >&5
12046 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12047 Usually this means the macro was only invoked conditionally." >&2;}
12048 { (exit 1); exit 1; }; }
12050 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12051 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12052 Usually this means the macro was only invoked conditionally." >&5
12053 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12054 Usually this means the macro was only invoked conditionally." >&2;}
12055 { (exit 1); exit 1; }; }
12057 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then
12058 { { echo "$as_me:$LINENO: error: conditional \"GETDELIM\" was never defined.
12059 Usually this means the macro was only invoked conditionally." >&5
12060 echo "$as_me: error: conditional \"GETDELIM\" was never defined.
12061 Usually this means the macro was only invoked conditionally." >&2;}
12062 { (exit 1); exit 1; }; }
12064 if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
12065 { { echo "$as_me:$LINENO: error: conditional \"GETOPT_LONG\" was never defined.
12066 Usually this means the macro was only invoked conditionally." >&5
12067 echo "$as_me: error: conditional \"GETOPT_LONG\" was never defined.
12068 Usually this means the macro was only invoked conditionally." >&2;}
12069 { (exit 1); exit 1; }; }
12071 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12072 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
12073 Usually this means the macro was only invoked conditionally." >&5
12074 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
12075 Usually this means the macro was only invoked conditionally." >&2;}
12076 { (exit 1); exit 1; }; }
12078 if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then
12079 { { echo "$as_me:$LINENO: error: conditional \"NEED_REPLACEMENTS\" was never defined.
12080 Usually this means the macro was only invoked conditionally." >&5
12081 echo "$as_me: error: conditional \"NEED_REPLACEMENTS\" was never defined.
12082 Usually this means the macro was only invoked conditionally." >&2;}
12083 { (exit 1); exit 1; }; }
12086 : ${CONFIG_STATUS=./config.status}
12087 ac_clean_files_save=$ac_clean_files
12088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12089 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12090 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12091 cat >$CONFIG_STATUS <<_ACEOF
12092 #! $SHELL
12093 # Generated by $as_me.
12094 # Run this file to recreate the current configuration.
12095 # Compiler output produced by configure, useful for debugging
12096 # configure, is in config.log if it exists.
12098 debug=false
12099 ac_cs_recheck=false
12100 ac_cs_silent=false
12101 SHELL=\${CONFIG_SHELL-$SHELL}
12102 _ACEOF
12104 cat >>$CONFIG_STATUS <<\_ACEOF
12105 ## --------------------- ##
12106 ## M4sh Initialization. ##
12107 ## --------------------- ##
12109 # Be Bourne compatible
12110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12111 emulate sh
12112 NULLCMD=:
12113 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12114 # is contrary to our usage. Disable this feature.
12115 alias -g '${1+"$@"}'='"$@"'
12116 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12117 set -o posix
12119 DUALCASE=1; export DUALCASE # for MKS sh
12121 # Support unset when possible.
12122 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12123 as_unset=unset
12124 else
12125 as_unset=false
12129 # Work around bugs in pre-3.0 UWIN ksh.
12130 $as_unset ENV MAIL MAILPATH
12131 PS1='$ '
12132 PS2='> '
12133 PS4='+ '
12135 # NLS nuisances.
12136 for as_var in \
12137 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12138 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12139 LC_TELEPHONE LC_TIME
12141 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12142 eval $as_var=C; export $as_var
12143 else
12144 $as_unset $as_var
12146 done
12148 # Required to use basename.
12149 if expr a : '\(a\)' >/dev/null 2>&1; then
12150 as_expr=expr
12151 else
12152 as_expr=false
12155 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12156 as_basename=basename
12157 else
12158 as_basename=false
12162 # Name of the executable.
12163 as_me=`$as_basename "$0" ||
12164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12165 X"$0" : 'X\(//\)$' \| \
12166 X"$0" : 'X\(/\)$' \| \
12167 . : '\(.\)' 2>/dev/null ||
12168 echo X/"$0" |
12169 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12170 /^X\/\(\/\/\)$/{ s//\1/; q; }
12171 /^X\/\(\/\).*/{ s//\1/; q; }
12172 s/.*/./; q'`
12175 # PATH needs CR, and LINENO needs CR and PATH.
12176 # Avoid depending upon Character Ranges.
12177 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12178 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12179 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12180 as_cr_digits='0123456789'
12181 as_cr_alnum=$as_cr_Letters$as_cr_digits
12183 # The user is always right.
12184 if test "${PATH_SEPARATOR+set}" != set; then
12185 echo "#! /bin/sh" >conf$$.sh
12186 echo "exit 0" >>conf$$.sh
12187 chmod +x conf$$.sh
12188 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12189 PATH_SEPARATOR=';'
12190 else
12191 PATH_SEPARATOR=:
12193 rm -f conf$$.sh
12197 as_lineno_1=$LINENO
12198 as_lineno_2=$LINENO
12199 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12200 test "x$as_lineno_1" != "x$as_lineno_2" &&
12201 test "x$as_lineno_3" = "x$as_lineno_2" || {
12202 # Find who we are. Look in the path if we contain no path at all
12203 # relative or not.
12204 case $0 in
12205 *[\\/]* ) as_myself=$0 ;;
12206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12212 done
12215 esac
12216 # We did not find ourselves, most probably we were run as `sh COMMAND'
12217 # in which case we are not to be found in the path.
12218 if test "x$as_myself" = x; then
12219 as_myself=$0
12221 if test ! -f "$as_myself"; then
12222 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12223 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12224 { (exit 1); exit 1; }; }
12226 case $CONFIG_SHELL in
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for as_base in sh bash ksh sh5; do
12234 case $as_dir in
12236 if ("$as_dir/$as_base" -c '
12237 as_lineno_1=$LINENO
12238 as_lineno_2=$LINENO
12239 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12240 test "x$as_lineno_1" != "x$as_lineno_2" &&
12241 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12242 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12243 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12244 CONFIG_SHELL=$as_dir/$as_base
12245 export CONFIG_SHELL
12246 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12247 fi;;
12248 esac
12249 done
12250 done
12252 esac
12254 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12255 # uniformly replaced by the line number. The first 'sed' inserts a
12256 # line-number line before each line; the second 'sed' does the real
12257 # work. The second script uses 'N' to pair each line-number line
12258 # with the numbered line, and appends trailing '-' during
12259 # substitution so that $LINENO is not a special case at line end.
12260 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12261 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12262 sed '=' <$as_myself |
12263 sed '
12265 s,$,-,
12266 : loop
12267 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12268 t loop
12269 s,-$,,
12270 s,^['$as_cr_digits']*\n,,
12271 ' >$as_me.lineno &&
12272 chmod +x $as_me.lineno ||
12273 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12274 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12275 { (exit 1); exit 1; }; }
12277 # Don't try to exec as it changes $[0], causing all sort of problems
12278 # (the dirname of $[0] is not the place where we might find the
12279 # original and so on. Autoconf is especially sensible to this).
12280 . ./$as_me.lineno
12281 # Exit status is that of the last command.
12282 exit
12286 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12287 *c*,-n*) ECHO_N= ECHO_C='
12288 ' ECHO_T=' ' ;;
12289 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12290 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12291 esac
12293 if expr a : '\(a\)' >/dev/null 2>&1; then
12294 as_expr=expr
12295 else
12296 as_expr=false
12299 rm -f conf$$ conf$$.exe conf$$.file
12300 echo >conf$$.file
12301 if ln -s conf$$.file conf$$ 2>/dev/null; then
12302 # We could just check for DJGPP; but this test a) works b) is more generic
12303 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12304 if test -f conf$$.exe; then
12305 # Don't use ln at all; we don't have any links
12306 as_ln_s='cp -p'
12307 else
12308 as_ln_s='ln -s'
12310 elif ln conf$$.file conf$$ 2>/dev/null; then
12311 as_ln_s=ln
12312 else
12313 as_ln_s='cp -p'
12315 rm -f conf$$ conf$$.exe conf$$.file
12317 if mkdir -p . 2>/dev/null; then
12318 as_mkdir_p=:
12319 else
12320 test -d ./-p && rmdir ./-p
12321 as_mkdir_p=false
12324 as_executable_p="test -f"
12326 # Sed expression to map a string onto a valid CPP name.
12327 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12329 # Sed expression to map a string onto a valid variable name.
12330 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12333 # IFS
12334 # We need space, tab and new line, in precisely that order.
12335 as_nl='
12337 IFS=" $as_nl"
12339 # CDPATH.
12340 $as_unset CDPATH
12342 exec 6>&1
12344 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12345 # report actual input values of CONFIG_FILES etc. instead of their
12346 # values after options handling. Logging --version etc. is OK.
12347 exec 5>>config.log
12349 echo
12350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12351 ## Running $as_me. ##
12352 _ASBOX
12353 } >&5
12354 cat >&5 <<_CSEOF
12356 This file was extended by gliv $as_me 1.8.2, which was
12357 generated by GNU Autoconf 2.59. Invocation command line was
12359 CONFIG_FILES = $CONFIG_FILES
12360 CONFIG_HEADERS = $CONFIG_HEADERS
12361 CONFIG_LINKS = $CONFIG_LINKS
12362 CONFIG_COMMANDS = $CONFIG_COMMANDS
12363 $ $0 $@
12365 _CSEOF
12366 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12367 echo >&5
12368 _ACEOF
12370 # Files that config.status was made for.
12371 if test -n "$ac_config_files"; then
12372 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12375 if test -n "$ac_config_headers"; then
12376 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12379 if test -n "$ac_config_links"; then
12380 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12383 if test -n "$ac_config_commands"; then
12384 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12387 cat >>$CONFIG_STATUS <<\_ACEOF
12389 ac_cs_usage="\
12390 \`$as_me' instantiates files from templates according to the
12391 current configuration.
12393 Usage: $0 [OPTIONS] [FILE]...
12395 -h, --help print this help, then exit
12396 -V, --version print version number, then exit
12397 -q, --quiet do not print progress messages
12398 -d, --debug don't remove temporary files
12399 --recheck update $as_me by reconfiguring in the same conditions
12400 --file=FILE[:TEMPLATE]
12401 instantiate the configuration file FILE
12402 --header=FILE[:TEMPLATE]
12403 instantiate the configuration header FILE
12405 Configuration files:
12406 $config_files
12408 Configuration headers:
12409 $config_headers
12411 Configuration commands:
12412 $config_commands
12414 Report bugs to <bug-autoconf@gnu.org>."
12415 _ACEOF
12417 cat >>$CONFIG_STATUS <<_ACEOF
12418 ac_cs_version="\\
12419 gliv config.status 1.8.2
12420 configured by $0, generated by GNU Autoconf 2.59,
12421 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12423 Copyright (C) 2003 Free Software Foundation, Inc.
12424 This config.status script is free software; the Free Software Foundation
12425 gives unlimited permission to copy, distribute and modify it."
12426 srcdir=$srcdir
12427 INSTALL="$INSTALL"
12428 _ACEOF
12430 cat >>$CONFIG_STATUS <<\_ACEOF
12431 # If no file are specified by the user, then we need to provide default
12432 # value. By we need to know if files were specified by the user.
12433 ac_need_defaults=:
12434 while test $# != 0
12436 case $1 in
12437 --*=*)
12438 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12439 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12440 ac_shift=:
12443 ac_option=$1
12444 ac_optarg=$2
12445 ac_shift=shift
12447 *) # This is not an option, so the user has probably given explicit
12448 # arguments.
12449 ac_option=$1
12450 ac_need_defaults=false;;
12451 esac
12453 case $ac_option in
12454 # Handling of the options.
12455 _ACEOF
12456 cat >>$CONFIG_STATUS <<\_ACEOF
12457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12458 ac_cs_recheck=: ;;
12459 --version | --vers* | -V )
12460 echo "$ac_cs_version"; exit 0 ;;
12461 --he | --h)
12462 # Conflict between --help and --header
12463 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12464 Try \`$0 --help' for more information." >&5
12465 echo "$as_me: error: ambiguous option: $1
12466 Try \`$0 --help' for more information." >&2;}
12467 { (exit 1); exit 1; }; };;
12468 --help | --hel | -h )
12469 echo "$ac_cs_usage"; exit 0 ;;
12470 --debug | --d* | -d )
12471 debug=: ;;
12472 --file | --fil | --fi | --f )
12473 $ac_shift
12474 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12475 ac_need_defaults=false;;
12476 --header | --heade | --head | --hea )
12477 $ac_shift
12478 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12479 ac_need_defaults=false;;
12480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12481 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12482 ac_cs_silent=: ;;
12484 # This is an error.
12485 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12486 Try \`$0 --help' for more information." >&5
12487 echo "$as_me: error: unrecognized option: $1
12488 Try \`$0 --help' for more information." >&2;}
12489 { (exit 1); exit 1; }; } ;;
12491 *) ac_config_targets="$ac_config_targets $1" ;;
12493 esac
12494 shift
12495 done
12497 ac_configure_extra_args=
12499 if $ac_cs_silent; then
12500 exec 6>/dev/null
12501 ac_configure_extra_args="$ac_configure_extra_args --silent"
12504 _ACEOF
12505 cat >>$CONFIG_STATUS <<_ACEOF
12506 if \$ac_cs_recheck; then
12507 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12508 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12511 _ACEOF
12513 cat >>$CONFIG_STATUS <<_ACEOF
12515 # INIT-COMMANDS section.
12518 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12519 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12520 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12521 # from automake.
12522 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12523 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12524 LINGUAS="${LINGUAS-%UNSET%}"
12527 _ACEOF
12531 cat >>$CONFIG_STATUS <<\_ACEOF
12532 for ac_config_target in $ac_config_targets
12534 case "$ac_config_target" in
12535 # Handling of arguments.
12536 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12537 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12538 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12539 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12540 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12541 "tools/glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;;
12542 "tools/glade/actions/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;;
12543 "tools/glade/options/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;;
12544 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12545 "gliv.spec" ) CONFIG_FILES="$CONFIG_FILES gliv.spec" ;;
12546 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12547 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12548 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12550 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12551 { (exit 1); exit 1; }; };;
12552 esac
12553 done
12555 # If the user did not use the arguments to specify the items to instantiate,
12556 # then the envvar interface is used. Set only those that are not.
12557 # We use the long form for the default assignment because of an extremely
12558 # bizarre bug on SunOS 4.1.3.
12559 if $ac_need_defaults; then
12560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12562 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12565 # Have a temporary directory for convenience. Make it in the build tree
12566 # simply because there is no reason to put it here, and in addition,
12567 # creating and moving files from /tmp can sometimes cause problems.
12568 # Create a temporary directory, and hook for its removal unless debugging.
12569 $debug ||
12571 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12572 trap '{ (exit 1); exit 1; }' 1 2 13 15
12575 # Create a (secure) tmp directory for tmp files.
12578 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12579 test -n "$tmp" && test -d "$tmp"
12580 } ||
12582 tmp=./confstat$$-$RANDOM
12583 (umask 077 && mkdir $tmp)
12584 } ||
12586 echo "$me: cannot create a temporary directory in ." >&2
12587 { (exit 1); exit 1; }
12590 _ACEOF
12592 cat >>$CONFIG_STATUS <<_ACEOF
12595 # CONFIG_FILES section.
12598 # No need to generate the scripts if there are no CONFIG_FILES.
12599 # This happens for instance when ./config.status config.h
12600 if test -n "\$CONFIG_FILES"; then
12601 # Protect against being on the right side of a sed subst in config.status.
12602 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12603 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12604 s,@SHELL@,$SHELL,;t t
12605 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12606 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12607 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12608 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12609 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12610 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12611 s,@exec_prefix@,$exec_prefix,;t t
12612 s,@prefix@,$prefix,;t t
12613 s,@program_transform_name@,$program_transform_name,;t t
12614 s,@bindir@,$bindir,;t t
12615 s,@sbindir@,$sbindir,;t t
12616 s,@libexecdir@,$libexecdir,;t t
12617 s,@datadir@,$datadir,;t t
12618 s,@sysconfdir@,$sysconfdir,;t t
12619 s,@sharedstatedir@,$sharedstatedir,;t t
12620 s,@localstatedir@,$localstatedir,;t t
12621 s,@libdir@,$libdir,;t t
12622 s,@includedir@,$includedir,;t t
12623 s,@oldincludedir@,$oldincludedir,;t t
12624 s,@infodir@,$infodir,;t t
12625 s,@mandir@,$mandir,;t t
12626 s,@build_alias@,$build_alias,;t t
12627 s,@host_alias@,$host_alias,;t t
12628 s,@target_alias@,$target_alias,;t t
12629 s,@DEFS@,$DEFS,;t t
12630 s,@ECHO_C@,$ECHO_C,;t t
12631 s,@ECHO_N@,$ECHO_N,;t t
12632 s,@ECHO_T@,$ECHO_T,;t t
12633 s,@LIBS@,$LIBS,;t t
12634 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12635 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12636 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12637 s,@CYGPATH_W@,$CYGPATH_W,;t t
12638 s,@PACKAGE@,$PACKAGE,;t t
12639 s,@VERSION@,$VERSION,;t t
12640 s,@ACLOCAL@,$ACLOCAL,;t t
12641 s,@AUTOCONF@,$AUTOCONF,;t t
12642 s,@AUTOMAKE@,$AUTOMAKE,;t t
12643 s,@AUTOHEADER@,$AUTOHEADER,;t t
12644 s,@MAKEINFO@,$MAKEINFO,;t t
12645 s,@AMTAR@,$AMTAR,;t t
12646 s,@install_sh@,$install_sh,;t t
12647 s,@STRIP@,$STRIP,;t t
12648 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12649 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12650 s,@mkdir_p@,$mkdir_p,;t t
12651 s,@AWK@,$AWK,;t t
12652 s,@SET_MAKE@,$SET_MAKE,;t t
12653 s,@am__leading_dot@,$am__leading_dot,;t t
12654 s,@CC@,$CC,;t t
12655 s,@CFLAGS@,$CFLAGS,;t t
12656 s,@LDFLAGS@,$LDFLAGS,;t t
12657 s,@CPPFLAGS@,$CPPFLAGS,;t t
12658 s,@ac_ct_CC@,$ac_ct_CC,;t t
12659 s,@EXEEXT@,$EXEEXT,;t t
12660 s,@OBJEXT@,$OBJEXT,;t t
12661 s,@DEPDIR@,$DEPDIR,;t t
12662 s,@am__include@,$am__include,;t t
12663 s,@am__quote@,$am__quote,;t t
12664 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12665 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12666 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12667 s,@CCDEPMODE@,$CCDEPMODE,;t t
12668 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12669 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12670 s,@RANLIB@,$RANLIB,;t t
12671 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12672 s,@GETDELIM_TRUE@,$GETDELIM_TRUE,;t t
12673 s,@GETDELIM_FALSE@,$GETDELIM_FALSE,;t t
12674 s,@GETOPT_LONG_TRUE@,$GETOPT_LONG_TRUE,;t t
12675 s,@GETOPT_LONG_FALSE@,$GETOPT_LONG_FALSE,;t t
12676 s,@NEED_REPLACEMENTS_TRUE@,$NEED_REPLACEMENTS_TRUE,;t t
12677 s,@NEED_REPLACEMENTS_FALSE@,$NEED_REPLACEMENTS_FALSE,;t t
12678 s,@CPP@,$CPP,;t t
12679 s,@X_CFLAGS@,$X_CFLAGS,;t t
12680 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12681 s,@X_LIBS@,$X_LIBS,;t t
12682 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12683 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12684 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
12685 s,@GTK_LIBS@,$GTK_LIBS,;t t
12686 s,@GTKGLEXT_CFLAGS@,$GTKGLEXT_CFLAGS,;t t
12687 s,@GTKGLEXT_LIBS@,$GTKGLEXT_LIBS,;t t
12688 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12689 s,@USE_NLS@,$USE_NLS,;t t
12690 s,@MSGFMT@,$MSGFMT,;t t
12691 s,@GMSGFMT@,$GMSGFMT,;t t
12692 s,@XGETTEXT@,$XGETTEXT,;t t
12693 s,@MSGMERGE@,$MSGMERGE,;t t
12694 s,@build@,$build,;t t
12695 s,@build_cpu@,$build_cpu,;t t
12696 s,@build_vendor@,$build_vendor,;t t
12697 s,@build_os@,$build_os,;t t
12698 s,@host@,$host,;t t
12699 s,@host_cpu@,$host_cpu,;t t
12700 s,@host_vendor@,$host_vendor,;t t
12701 s,@host_os@,$host_os,;t t
12702 s,@EGREP@,$EGREP,;t t
12703 s,@ALLOCA@,$ALLOCA,;t t
12704 s,@GLIBC21@,$GLIBC21,;t t
12705 s,@LIBICONV@,$LIBICONV,;t t
12706 s,@LTLIBICONV@,$LTLIBICONV,;t t
12707 s,@INTLBISON@,$INTLBISON,;t t
12708 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12709 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12710 s,@CATOBJEXT@,$CATOBJEXT,;t t
12711 s,@DATADIRNAME@,$DATADIRNAME,;t t
12712 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12713 s,@GENCAT@,$GENCAT,;t t
12714 s,@INTLOBJS@,$INTLOBJS,;t t
12715 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12716 s,@INTLLIBS@,$INTLLIBS,;t t
12717 s,@LIBINTL@,$LIBINTL,;t t
12718 s,@LTLIBINTL@,$LTLIBINTL,;t t
12719 s,@POSUB@,$POSUB,;t t
12720 s,@LIBOBJS@,$LIBOBJS,;t t
12721 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12722 CEOF
12724 _ACEOF
12726 cat >>$CONFIG_STATUS <<\_ACEOF
12727 # Split the substitutions into bite-sized pieces for seds with
12728 # small command number limits, like on Digital OSF/1 and HP-UX.
12729 ac_max_sed_lines=48
12730 ac_sed_frag=1 # Number of current file.
12731 ac_beg=1 # First line for current file.
12732 ac_end=$ac_max_sed_lines # Line after last line for current file.
12733 ac_more_lines=:
12734 ac_sed_cmds=
12735 while $ac_more_lines; do
12736 if test $ac_beg -gt 1; then
12737 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12738 else
12739 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12741 if test ! -s $tmp/subs.frag; then
12742 ac_more_lines=false
12743 else
12744 # The purpose of the label and of the branching condition is to
12745 # speed up the sed processing (if there are no `@' at all, there
12746 # is no need to browse any of the substitutions).
12747 # These are the two extra sed commands mentioned above.
12748 (echo ':t
12749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12750 if test -z "$ac_sed_cmds"; then
12751 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12752 else
12753 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12755 ac_sed_frag=`expr $ac_sed_frag + 1`
12756 ac_beg=$ac_end
12757 ac_end=`expr $ac_end + $ac_max_sed_lines`
12759 done
12760 if test -z "$ac_sed_cmds"; then
12761 ac_sed_cmds=cat
12763 fi # test -n "$CONFIG_FILES"
12765 _ACEOF
12766 cat >>$CONFIG_STATUS <<\_ACEOF
12767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12769 case $ac_file in
12770 - | *:- | *:-:* ) # input from stdin
12771 cat >$tmp/stdin
12772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12776 * ) ac_file_in=$ac_file.in ;;
12777 esac
12779 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12782 X"$ac_file" : 'X\(//\)[^/]' \| \
12783 X"$ac_file" : 'X\(//\)$' \| \
12784 X"$ac_file" : 'X\(/\)' \| \
12785 . : '\(.\)' 2>/dev/null ||
12786 echo X"$ac_file" |
12787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12789 /^X\(\/\/\)$/{ s//\1/; q; }
12790 /^X\(\/\).*/{ s//\1/; q; }
12791 s/.*/./; q'`
12792 { if $as_mkdir_p; then
12793 mkdir -p "$ac_dir"
12794 else
12795 as_dir="$ac_dir"
12796 as_dirs=
12797 while test ! -d "$as_dir"; do
12798 as_dirs="$as_dir $as_dirs"
12799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12801 X"$as_dir" : 'X\(//\)[^/]' \| \
12802 X"$as_dir" : 'X\(//\)$' \| \
12803 X"$as_dir" : 'X\(/\)' \| \
12804 . : '\(.\)' 2>/dev/null ||
12805 echo X"$as_dir" |
12806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12808 /^X\(\/\/\)$/{ s//\1/; q; }
12809 /^X\(\/\).*/{ s//\1/; q; }
12810 s/.*/./; q'`
12811 done
12812 test ! -n "$as_dirs" || mkdir $as_dirs
12813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12815 { (exit 1); exit 1; }; }; }
12817 ac_builddir=.
12819 if test "$ac_dir" != .; then
12820 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12821 # A "../" for each directory in $ac_dir_suffix.
12822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12823 else
12824 ac_dir_suffix= ac_top_builddir=
12827 case $srcdir in
12828 .) # No --srcdir option. We are building in place.
12829 ac_srcdir=.
12830 if test -z "$ac_top_builddir"; then
12831 ac_top_srcdir=.
12832 else
12833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12834 fi ;;
12835 [\\/]* | ?:[\\/]* ) # Absolute path.
12836 ac_srcdir=$srcdir$ac_dir_suffix;
12837 ac_top_srcdir=$srcdir ;;
12838 *) # Relative path.
12839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12841 esac
12843 # Do not use `cd foo && pwd` to compute absolute paths, because
12844 # the directories may not exist.
12845 case `pwd` in
12846 .) ac_abs_builddir="$ac_dir";;
12848 case "$ac_dir" in
12849 .) ac_abs_builddir=`pwd`;;
12850 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12851 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12852 esac;;
12853 esac
12854 case $ac_abs_builddir in
12855 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12857 case ${ac_top_builddir}. in
12858 .) ac_abs_top_builddir=$ac_abs_builddir;;
12859 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12860 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12861 esac;;
12862 esac
12863 case $ac_abs_builddir in
12864 .) ac_abs_srcdir=$ac_srcdir;;
12866 case $ac_srcdir in
12867 .) ac_abs_srcdir=$ac_abs_builddir;;
12868 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12869 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12870 esac;;
12871 esac
12872 case $ac_abs_builddir in
12873 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12875 case $ac_top_srcdir in
12876 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12877 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12878 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12879 esac;;
12880 esac
12883 case $INSTALL in
12884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12885 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12886 esac
12888 if test x"$ac_file" != x-; then
12889 { echo "$as_me:$LINENO: creating $ac_file" >&5
12890 echo "$as_me: creating $ac_file" >&6;}
12891 rm -f "$ac_file"
12893 # Let's still pretend it is `configure' which instantiates (i.e., don't
12894 # use $as_me), people would be surprised to read:
12895 # /* config.h. Generated by config.status. */
12896 if test x"$ac_file" = x-; then
12897 configure_input=
12898 else
12899 configure_input="$ac_file. "
12901 configure_input=$configure_input"Generated from `echo $ac_file_in |
12902 sed 's,.*/,,'` by configure."
12904 # First look for the input files in the build tree, otherwise in the
12905 # src tree.
12906 ac_file_inputs=`IFS=:
12907 for f in $ac_file_in; do
12908 case $f in
12909 -) echo $tmp/stdin ;;
12910 [\\/$]*)
12911 # Absolute (can't be DOS-style, as IFS=:)
12912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12913 echo "$as_me: error: cannot find input file: $f" >&2;}
12914 { (exit 1); exit 1; }; }
12915 echo "$f";;
12916 *) # Relative
12917 if test -f "$f"; then
12918 # Build tree
12919 echo "$f"
12920 elif test -f "$srcdir/$f"; then
12921 # Source tree
12922 echo "$srcdir/$f"
12923 else
12924 # /dev/null tree
12925 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12926 echo "$as_me: error: cannot find input file: $f" >&2;}
12927 { (exit 1); exit 1; }; }
12928 fi;;
12929 esac
12930 done` || { (exit 1); exit 1; }
12931 _ACEOF
12932 cat >>$CONFIG_STATUS <<_ACEOF
12933 sed "$ac_vpsub
12934 $extrasub
12935 _ACEOF
12936 cat >>$CONFIG_STATUS <<\_ACEOF
12938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12939 s,@configure_input@,$configure_input,;t t
12940 s,@srcdir@,$ac_srcdir,;t t
12941 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12942 s,@top_srcdir@,$ac_top_srcdir,;t t
12943 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12944 s,@builddir@,$ac_builddir,;t t
12945 s,@abs_builddir@,$ac_abs_builddir,;t t
12946 s,@top_builddir@,$ac_top_builddir,;t t
12947 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12948 s,@INSTALL@,$ac_INSTALL,;t t
12949 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12950 rm -f $tmp/stdin
12951 if test x"$ac_file" != x-; then
12952 mv $tmp/out $ac_file
12953 else
12954 cat $tmp/out
12955 rm -f $tmp/out
12958 done
12959 _ACEOF
12960 cat >>$CONFIG_STATUS <<\_ACEOF
12963 # CONFIG_HEADER section.
12966 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12967 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12969 # ac_d sets the value in "#define NAME VALUE" lines.
12970 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12971 ac_dB='[ ].*$,\1#\2'
12972 ac_dC=' '
12973 ac_dD=',;t'
12974 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12975 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12976 ac_uB='$,\1#\2define\3'
12977 ac_uC=' '
12978 ac_uD=',;t'
12980 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12982 case $ac_file in
12983 - | *:- | *:-:* ) # input from stdin
12984 cat >$tmp/stdin
12985 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12987 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12989 * ) ac_file_in=$ac_file.in ;;
12990 esac
12992 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12993 echo "$as_me: creating $ac_file" >&6;}
12995 # First look for the input files in the build tree, otherwise in the
12996 # src tree.
12997 ac_file_inputs=`IFS=:
12998 for f in $ac_file_in; do
12999 case $f in
13000 -) echo $tmp/stdin ;;
13001 [\\/$]*)
13002 # Absolute (can't be DOS-style, as IFS=:)
13003 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13004 echo "$as_me: error: cannot find input file: $f" >&2;}
13005 { (exit 1); exit 1; }; }
13006 # Do quote $f, to prevent DOS paths from being IFS'd.
13007 echo "$f";;
13008 *) # Relative
13009 if test -f "$f"; then
13010 # Build tree
13011 echo "$f"
13012 elif test -f "$srcdir/$f"; then
13013 # Source tree
13014 echo "$srcdir/$f"
13015 else
13016 # /dev/null tree
13017 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13018 echo "$as_me: error: cannot find input file: $f" >&2;}
13019 { (exit 1); exit 1; }; }
13020 fi;;
13021 esac
13022 done` || { (exit 1); exit 1; }
13023 # Remove the trailing spaces.
13024 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13026 _ACEOF
13028 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13029 # `conftest.undefs', that substitutes the proper values into
13030 # config.h.in to produce config.h. The first handles `#define'
13031 # templates, and the second `#undef' templates.
13032 # And first: Protect against being on the right side of a sed subst in
13033 # config.status. Protect against being in an unquoted here document
13034 # in config.status.
13035 rm -f conftest.defines conftest.undefs
13036 # Using a here document instead of a string reduces the quoting nightmare.
13037 # Putting comments in sed scripts is not portable.
13039 # `end' is used to avoid that the second main sed command (meant for
13040 # 0-ary CPP macros) applies to n-ary macro definitions.
13041 # See the Autoconf documentation for `clear'.
13042 cat >confdef2sed.sed <<\_ACEOF
13043 s/[\\&,]/\\&/g
13044 s,[\\$`],\\&,g
13045 t clear
13046 : clear
13047 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13048 t end
13049 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13050 : end
13051 _ACEOF
13052 # If some macros were called several times there might be several times
13053 # the same #defines, which is useless. Nevertheless, we may not want to
13054 # sort them, since we want the *last* AC-DEFINE to be honored.
13055 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13056 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13057 rm -f confdef2sed.sed
13059 # This sed command replaces #undef with comments. This is necessary, for
13060 # example, in the case of _POSIX_SOURCE, which is predefined and required
13061 # on some systems where configure will not decide to define it.
13062 cat >>conftest.undefs <<\_ACEOF
13063 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13064 _ACEOF
13066 # Break up conftest.defines because some shells have a limit on the size
13067 # of here documents, and old seds have small limits too (100 cmds).
13068 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13069 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13070 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13071 echo ' :' >>$CONFIG_STATUS
13072 rm -f conftest.tail
13073 while grep . conftest.defines >/dev/null
13075 # Write a limited-size here document to $tmp/defines.sed.
13076 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13077 # Speed up: don't consider the non `#define' lines.
13078 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13079 # Work around the forget-to-reset-the-flag bug.
13080 echo 't clr' >>$CONFIG_STATUS
13081 echo ': clr' >>$CONFIG_STATUS
13082 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13083 echo 'CEOF
13084 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13085 rm -f $tmp/in
13086 mv $tmp/out $tmp/in
13087 ' >>$CONFIG_STATUS
13088 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13089 rm -f conftest.defines
13090 mv conftest.tail conftest.defines
13091 done
13092 rm -f conftest.defines
13093 echo ' fi # grep' >>$CONFIG_STATUS
13094 echo >>$CONFIG_STATUS
13096 # Break up conftest.undefs because some shells have a limit on the size
13097 # of here documents, and old seds have small limits too (100 cmds).
13098 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13099 rm -f conftest.tail
13100 while grep . conftest.undefs >/dev/null
13102 # Write a limited-size here document to $tmp/undefs.sed.
13103 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13104 # Speed up: don't consider the non `#undef'
13105 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13106 # Work around the forget-to-reset-the-flag bug.
13107 echo 't clr' >>$CONFIG_STATUS
13108 echo ': clr' >>$CONFIG_STATUS
13109 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13110 echo 'CEOF
13111 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13112 rm -f $tmp/in
13113 mv $tmp/out $tmp/in
13114 ' >>$CONFIG_STATUS
13115 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13116 rm -f conftest.undefs
13117 mv conftest.tail conftest.undefs
13118 done
13119 rm -f conftest.undefs
13121 cat >>$CONFIG_STATUS <<\_ACEOF
13122 # Let's still pretend it is `configure' which instantiates (i.e., don't
13123 # use $as_me), people would be surprised to read:
13124 # /* config.h. Generated by config.status. */
13125 if test x"$ac_file" = x-; then
13126 echo "/* Generated by configure. */" >$tmp/config.h
13127 else
13128 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13130 cat $tmp/in >>$tmp/config.h
13131 rm -f $tmp/in
13132 if test x"$ac_file" != x-; then
13133 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13135 echo "$as_me: $ac_file is unchanged" >&6;}
13136 else
13137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13139 X"$ac_file" : 'X\(//\)[^/]' \| \
13140 X"$ac_file" : 'X\(//\)$' \| \
13141 X"$ac_file" : 'X\(/\)' \| \
13142 . : '\(.\)' 2>/dev/null ||
13143 echo X"$ac_file" |
13144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13146 /^X\(\/\/\)$/{ s//\1/; q; }
13147 /^X\(\/\).*/{ s//\1/; q; }
13148 s/.*/./; q'`
13149 { if $as_mkdir_p; then
13150 mkdir -p "$ac_dir"
13151 else
13152 as_dir="$ac_dir"
13153 as_dirs=
13154 while test ! -d "$as_dir"; do
13155 as_dirs="$as_dir $as_dirs"
13156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13158 X"$as_dir" : 'X\(//\)[^/]' \| \
13159 X"$as_dir" : 'X\(//\)$' \| \
13160 X"$as_dir" : 'X\(/\)' \| \
13161 . : '\(.\)' 2>/dev/null ||
13162 echo X"$as_dir" |
13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13165 /^X\(\/\/\)$/{ s//\1/; q; }
13166 /^X\(\/\).*/{ s//\1/; q; }
13167 s/.*/./; q'`
13168 done
13169 test ! -n "$as_dirs" || mkdir $as_dirs
13170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13172 { (exit 1); exit 1; }; }; }
13174 rm -f $ac_file
13175 mv $tmp/config.h $ac_file
13177 else
13178 cat $tmp/config.h
13179 rm -f $tmp/config.h
13181 # Compute $ac_file's index in $config_headers.
13182 _am_stamp_count=1
13183 for _am_header in $config_headers :; do
13184 case $_am_header in
13185 $ac_file | $ac_file:* )
13186 break ;;
13188 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13189 esac
13190 done
13191 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13192 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13193 X$ac_file : 'X\(//\)[^/]' \| \
13194 X$ac_file : 'X\(//\)$' \| \
13195 X$ac_file : 'X\(/\)' \| \
13196 . : '\(.\)' 2>/dev/null ||
13197 echo X$ac_file |
13198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13200 /^X\(\/\/\)$/{ s//\1/; q; }
13201 /^X\(\/\).*/{ s//\1/; q; }
13202 s/.*/./; q'`/stamp-h$_am_stamp_count
13203 done
13204 _ACEOF
13205 cat >>$CONFIG_STATUS <<\_ACEOF
13208 # CONFIG_COMMANDS section.
13210 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13211 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13212 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13213 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13214 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13215 X"$ac_dest" : 'X\(//\)[^/]' \| \
13216 X"$ac_dest" : 'X\(//\)$' \| \
13217 X"$ac_dest" : 'X\(/\)' \| \
13218 . : '\(.\)' 2>/dev/null ||
13219 echo X"$ac_dest" |
13220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13222 /^X\(\/\/\)$/{ s//\1/; q; }
13223 /^X\(\/\).*/{ s//\1/; q; }
13224 s/.*/./; q'`
13225 { if $as_mkdir_p; then
13226 mkdir -p "$ac_dir"
13227 else
13228 as_dir="$ac_dir"
13229 as_dirs=
13230 while test ! -d "$as_dir"; do
13231 as_dirs="$as_dir $as_dirs"
13232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13234 X"$as_dir" : 'X\(//\)[^/]' \| \
13235 X"$as_dir" : 'X\(//\)$' \| \
13236 X"$as_dir" : 'X\(/\)' \| \
13237 . : '\(.\)' 2>/dev/null ||
13238 echo X"$as_dir" |
13239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13241 /^X\(\/\/\)$/{ s//\1/; q; }
13242 /^X\(\/\).*/{ s//\1/; q; }
13243 s/.*/./; q'`
13244 done
13245 test ! -n "$as_dirs" || mkdir $as_dirs
13246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13248 { (exit 1); exit 1; }; }; }
13250 ac_builddir=.
13252 if test "$ac_dir" != .; then
13253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13254 # A "../" for each directory in $ac_dir_suffix.
13255 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13256 else
13257 ac_dir_suffix= ac_top_builddir=
13260 case $srcdir in
13261 .) # No --srcdir option. We are building in place.
13262 ac_srcdir=.
13263 if test -z "$ac_top_builddir"; then
13264 ac_top_srcdir=.
13265 else
13266 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13267 fi ;;
13268 [\\/]* | ?:[\\/]* ) # Absolute path.
13269 ac_srcdir=$srcdir$ac_dir_suffix;
13270 ac_top_srcdir=$srcdir ;;
13271 *) # Relative path.
13272 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13273 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13274 esac
13276 # Do not use `cd foo && pwd` to compute absolute paths, because
13277 # the directories may not exist.
13278 case `pwd` in
13279 .) ac_abs_builddir="$ac_dir";;
13281 case "$ac_dir" in
13282 .) ac_abs_builddir=`pwd`;;
13283 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13284 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13285 esac;;
13286 esac
13287 case $ac_abs_builddir in
13288 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13290 case ${ac_top_builddir}. in
13291 .) ac_abs_top_builddir=$ac_abs_builddir;;
13292 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13293 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13294 esac;;
13295 esac
13296 case $ac_abs_builddir in
13297 .) ac_abs_srcdir=$ac_srcdir;;
13299 case $ac_srcdir in
13300 .) ac_abs_srcdir=$ac_abs_builddir;;
13301 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13302 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13303 esac;;
13304 esac
13305 case $ac_abs_builddir in
13306 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13308 case $ac_top_srcdir in
13309 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13310 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13311 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13312 esac;;
13313 esac
13316 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13317 echo "$as_me: executing $ac_dest commands" >&6;}
13318 case $ac_dest in
13319 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13320 # Strip MF so we end up with the name of the file.
13321 mf=`echo "$mf" | sed -e 's/:.*$//'`
13322 # Check whether this is an Automake generated Makefile or not.
13323 # We used to match only the files named `Makefile.in', but
13324 # some people rename them; so instead we look at the file content.
13325 # Grep'ing the first line is not enough: some people post-process
13326 # each Makefile.in and add a new line on top of each file to say so.
13327 # So let's grep whole file.
13328 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13329 dirpart=`(dirname "$mf") 2>/dev/null ||
13330 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13331 X"$mf" : 'X\(//\)[^/]' \| \
13332 X"$mf" : 'X\(//\)$' \| \
13333 X"$mf" : 'X\(/\)' \| \
13334 . : '\(.\)' 2>/dev/null ||
13335 echo X"$mf" |
13336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13338 /^X\(\/\/\)$/{ s//\1/; q; }
13339 /^X\(\/\).*/{ s//\1/; q; }
13340 s/.*/./; q'`
13341 else
13342 continue
13344 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13345 # Extract the definition of DEP_FILES from the Makefile without
13346 # running `make'.
13347 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13348 test -z "$DEPDIR" && continue
13349 # When using ansi2knr, U may be empty or an underscore; expand it
13350 U=`sed -n -e '/^U = / s///p' < "$mf"`
13351 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13352 # We invoke sed twice because it is the simplest approach to
13353 # changing $(DEPDIR) to its actual value in the expansion.
13354 for file in `sed -n -e '
13355 /^DEP_FILES = .*\\\\$/ {
13356 s/^DEP_FILES = //
13357 :loop
13358 s/\\\\$//
13361 /\\\\$/ b loop
13364 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13365 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13366 # Make sure the directory exists.
13367 test -f "$dirpart/$file" && continue
13368 fdir=`(dirname "$file") 2>/dev/null ||
13369 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13370 X"$file" : 'X\(//\)[^/]' \| \
13371 X"$file" : 'X\(//\)$' \| \
13372 X"$file" : 'X\(/\)' \| \
13373 . : '\(.\)' 2>/dev/null ||
13374 echo X"$file" |
13375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13377 /^X\(\/\/\)$/{ s//\1/; q; }
13378 /^X\(\/\).*/{ s//\1/; q; }
13379 s/.*/./; q'`
13380 { if $as_mkdir_p; then
13381 mkdir -p $dirpart/$fdir
13382 else
13383 as_dir=$dirpart/$fdir
13384 as_dirs=
13385 while test ! -d "$as_dir"; do
13386 as_dirs="$as_dir $as_dirs"
13387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13389 X"$as_dir" : 'X\(//\)[^/]' \| \
13390 X"$as_dir" : 'X\(//\)$' \| \
13391 X"$as_dir" : 'X\(/\)' \| \
13392 . : '\(.\)' 2>/dev/null ||
13393 echo X"$as_dir" |
13394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13396 /^X\(\/\/\)$/{ s//\1/; q; }
13397 /^X\(\/\).*/{ s//\1/; q; }
13398 s/.*/./; q'`
13399 done
13400 test ! -n "$as_dirs" || mkdir $as_dirs
13401 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13402 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13403 { (exit 1); exit 1; }; }; }
13405 # echo "creating $dirpart/$file"
13406 echo '# dummy' > "$dirpart/$file"
13407 done
13408 done
13410 default-1 )
13411 for ac_file in $CONFIG_FILES; do
13412 # Support "outfile[:infile[:infile...]]"
13413 case "$ac_file" in
13414 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13415 esac
13416 # PO directories have a Makefile.in generated from Makefile.in.in.
13417 case "$ac_file" in */Makefile.in)
13418 # Adjust a relative srcdir.
13419 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13420 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13421 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13422 # In autoconf-2.13 it is called $ac_given_srcdir.
13423 # In autoconf-2.50 it is called $srcdir.
13424 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13425 case "$ac_given_srcdir" in
13426 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13427 /*) top_srcdir="$ac_given_srcdir" ;;
13428 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13429 esac
13430 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13431 rm -f "$ac_dir/POTFILES"
13432 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13433 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13434 POMAKEFILEDEPS="POTFILES.in"
13435 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13436 # on $ac_dir but don't depend on user-specified configuration
13437 # parameters.
13438 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13439 # The LINGUAS file contains the set of available languages.
13440 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13441 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13443 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13444 # Hide the ALL_LINGUAS assigment from automake.
13445 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13446 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13447 else
13448 # The set of available languages was given in configure.in.
13449 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13451 case "$ac_given_srcdir" in
13452 .) srcdirpre= ;;
13453 *) srcdirpre='$(srcdir)/' ;;
13454 esac
13455 POFILES=
13456 GMOFILES=
13457 UPDATEPOFILES=
13458 DUMMYPOFILES=
13459 for lang in $ALL_LINGUAS; do
13460 POFILES="$POFILES $srcdirpre$lang.po"
13461 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13462 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13463 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13464 done
13465 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13466 # environment variable.
13467 INST_LINGUAS=
13468 if test -n "$ALL_LINGUAS"; then
13469 for presentlang in $ALL_LINGUAS; do
13470 useit=no
13471 if test "%UNSET%" != "$LINGUAS"; then
13472 desiredlanguages="$LINGUAS"
13473 else
13474 desiredlanguages="$ALL_LINGUAS"
13476 for desiredlang in $desiredlanguages; do
13477 # Use the presentlang catalog if desiredlang is
13478 # a. equal to presentlang, or
13479 # b. a variant of presentlang (because in this case,
13480 # presentlang can be used as a fallback for messages
13481 # which are not translated in the desiredlang catalog).
13482 case "$desiredlang" in
13483 "$presentlang"*) useit=yes;;
13484 esac
13485 done
13486 if test $useit = yes; then
13487 INST_LINGUAS="$INST_LINGUAS $presentlang"
13489 done
13491 CATALOGS=
13492 if test -n "$INST_LINGUAS"; then
13493 for lang in $INST_LINGUAS; do
13494 CATALOGS="$CATALOGS $lang.gmo"
13495 done
13497 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13498 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"
13499 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13500 if test -f "$f"; then
13501 case "$f" in
13502 *.orig | *.bak | *~) ;;
13503 *) cat "$f" >> "$ac_dir/Makefile" ;;
13504 esac
13506 done
13509 esac
13510 done ;;
13511 esac
13512 done
13513 _ACEOF
13515 cat >>$CONFIG_STATUS <<\_ACEOF
13517 { (exit 0); exit 0; }
13518 _ACEOF
13519 chmod +x $CONFIG_STATUS
13520 ac_clean_files=$ac_clean_files_save
13523 # configure is writing to config.log, and then calls config.status.
13524 # config.status does its own redirection, appending to config.log.
13525 # Unfortunately, on DOS this fails, as config.log is still kept open
13526 # by configure, so config.status won't be able to write to it; its
13527 # output is simply discarded. So we exec the FD to /dev/null,
13528 # effectively closing config.log, so it can be properly (re)opened and
13529 # appended to by config.status. When coming back to configure, we
13530 # need to make the FD available again.
13531 if test "$no_create" != yes; then
13532 ac_cs_success=:
13533 ac_config_status_args=
13534 test "$silent" = yes &&
13535 ac_config_status_args="$ac_config_status_args --quiet"
13536 exec 5>/dev/null
13537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13538 exec 5>>config.log
13539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13540 # would make configure fail if this is the last instruction.
13541 $ac_cs_success || { (exit 1); exit 1; }
13545 echo
13546 echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION"
13547 echo