filename | configure |
changeset | 180:e6dcf9b65658 |
prev | 94:8d80d9c7cc7d |
next | 360:dff4a3bbac0c |
author | nkeynes |
date | Mon Jan 29 11:25:40 2007 +0000 (17 years ago) |
permissions | -rwxr-xr-x |
last change | Change to use common render_unpack_vertexes Parse the mode word in more detail |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="configure.in"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP EGREP PKG_CONFIG ac_pt_PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
774 ac_env_PKG_CONFIG_value=$PKG_CONFIG
775 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
776 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
777 ac_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set}
778 ac_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS
779 ac_cv_env_PACKAGE_CFLAGS_set=${PACKAGE_CFLAGS+set}
780 ac_cv_env_PACKAGE_CFLAGS_value=$PACKAGE_CFLAGS
781 ac_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set}
782 ac_env_PACKAGE_LIBS_value=$PACKAGE_LIBS
783 ac_cv_env_PACKAGE_LIBS_set=${PACKAGE_LIBS+set}
784 ac_cv_env_PACKAGE_LIBS_value=$PACKAGE_LIBS
786 #
787 # Report the --help message.
788 #
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
792 cat <<_ACEOF
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
802 Configuration:
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
813 _ACEOF
815 cat <<_ACEOF
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX]
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
842 _ACEOF
844 cat <<\_ACEOF
846 Program names:
847 --program-prefix=PREFIX prepend PREFIX to installed program names
848 --program-suffix=SUFFIX append SUFFIX to installed program names
849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850 _ACEOF
851 fi
853 if test -n "$ac_init_help"; then
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 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-dependency-tracking Speeds up one-time builds
863 --enable-dependency-tracking Do not reject slow dependency extractors
865 Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
873 PKG_CONFIG path to pkg-config utility
874 PACKAGE_CFLAGS
875 C compiler flags for PACKAGE, overriding pkg-config
876 PACKAGE_LIBS
877 linker flags for PACKAGE, overriding pkg-config
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
882 _ACEOF
883 fi
885 if test "$ac_init_help" = "recursive"; then
886 # If there are subdirs, report their specific --help.
887 ac_popdir=`pwd`
888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889 test -d $ac_dir || continue
890 ac_builddir=.
892 if test "$ac_dir" != .; then
893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894 # A "../" for each directory in $ac_dir_suffix.
895 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897 ac_dir_suffix= ac_top_builddir=
898 fi
900 case $srcdir in
901 .) # No --srcdir option. We are building in place.
902 ac_srcdir=.
903 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=.
905 else
906 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907 fi ;;
908 [\\/]* | ?:[\\/]* ) # Absolute path.
909 ac_srcdir=$srcdir$ac_dir_suffix;
910 ac_top_srcdir=$srcdir ;;
911 *) # Relative path.
912 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921 case "$ac_dir" in
922 .) ac_abs_builddir=`pwd`;;
923 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930 case ${ac_top_builddir}. in
931 .) ac_abs_top_builddir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939 case $ac_srcdir in
940 .) ac_abs_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948 case $ac_top_srcdir in
949 .) ac_abs_top_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 esac;;
953 esac
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 fi
970 cd "$ac_popdir"
971 done
972 fi
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982 exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59. Invocation command line was
992 $ $0 $@
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 _ASUNAME
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023 IFS=$as_save_IFS
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1026 done
1028 } >&5
1030 cat >&5 <<_ACEOF
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1037 _ACEOF
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052 for ac_arg
1053 do
1054 case $ac_arg in
1055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 continue ;;
1059 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 esac
1062 case $ac_pass in
1063 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064 2)
1065 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066 if test $ac_must_keep_next = true; then
1067 ac_must_keep_next=false # Got value, back to normal.
1068 else
1069 case $ac_arg in
1070 *=* | --config-cache | -C | -disable-* | --disable-* \
1071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073 | -with-* | --with-* | -without-* | --without-* | --x)
1074 case "$ac_configure_args0 " in
1075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 esac
1077 ;;
1078 -* ) ac_must_keep_next=true ;;
1079 esac
1080 fi
1081 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082 # Get rid of the leading space.
1083 ac_sep=" "
1084 ;;
1085 esac
1086 done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log. We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097 # Save into config.log some information that might help in debugging.
1098 {
1099 echo
1101 cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106 echo
1107 # The following way of writing the cache mishandles newlines in values,
1108 {
1109 (set) 2>&1 |
1110 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 *ac_space=\ *)
1112 sed -n \
1113 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 ;;
1116 *)
1117 sed -n \
1118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ;;
1120 esac;
1121 }
1122 echo
1124 cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129 echo
1130 for ac_var in $ac_subst_vars
1131 do
1132 eval ac_val=$`echo $ac_var`
1133 echo "$ac_var='"'"'$ac_val'"'"'"
1134 done | sort
1135 echo
1137 if test -n "$ac_subst_files"; then
1138 cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_files
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150 fi
1152 if test -s confdefs.h; then
1153 cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158 echo
1159 sed "/^$/d" confdefs.h | sort
1160 echo
1161 fi
1162 test "$ac_signal" != 0 &&
1163 echo "$as_me: caught signal $ac_signal"
1164 echo "$as_me: exit $exit_status"
1165 } >&5
1166 rm -f core *.core &&
1167 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 exit $exit_status
1169 ' 0
1170 for ac_signal in 1 2 13 15; do
1171 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1180 # Predefined preprocessor variables.
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210 if test "x$prefix" != xNONE; then
1211 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212 else
1213 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217 if test -r "$ac_site_file"; then
1218 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220 sed 's/^/| /' "$ac_site_file" >&5
1221 . "$ac_site_file"
1222 fi
1223 done
1225 if test -r "$cache_file"; then
1226 # Some versions of bash will fail to source /dev/null (special
1227 # files actually), so we avoid doing that.
1228 if test -f "$cache_file"; then
1229 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231 case $cache_file in
1232 [\\/]* | ?:[\\/]* ) . $cache_file;;
1233 *) . ./$cache_file;;
1234 esac
1235 fi
1236 else
1237 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239 >$cache_file
1240 fi
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248 eval ac_new_set=\$ac_env_${ac_var}_set
1249 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250 eval ac_new_val="\$ac_env_${ac_var}_value"
1251 case $ac_old_set,$ac_new_set in
1252 set,)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,set)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,);;
1261 *)
1262 if test "x$ac_old_val" != "x$ac_new_val"; then
1263 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1266 echo "$as_me: former value: $ac_old_val" >&2;}
1267 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1268 echo "$as_me: current value: $ac_new_val" >&2;}
1269 ac_cache_corrupted=:
1270 fi;;
1271 esac
1272 # Pass precious variables to config.status.
1273 if test "$ac_new_set" = set; then
1274 case $ac_new_val in
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 *) ac_arg=$ac_var=$ac_new_val ;;
1278 esac
1279 case " $ac_configure_args " in
1280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1281 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 esac
1283 fi
1284 done
1285 if $ac_cache_corrupted; then
1286 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290 { (exit 1); exit 1; }; }
1291 fi
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 am__api_version="1.7"
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1321 ac_aux_dir=$ac_dir
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 break
1324 elif test -f $ac_dir/install.sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 break
1328 elif test -f $ac_dir/shtool; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 break
1332 fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1349 # AIX /bin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # OS/2's system install, which has a completely different semantic
1355 # ./install, which can be erroneously created by make from ./install.sh.
1356 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1357 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1358 if test -z "$INSTALL"; then
1359 if test "${ac_cv_path_install+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1364 do
1365 IFS=$as_save_IFS
1366 test -z "$as_dir" && as_dir=.
1367 # Account for people who put trailing slashes in PATH elements.
1368 case $as_dir/ in
1369 ./ | .// | /cC/* | \
1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372 /usr/ucb/* ) ;;
1373 *)
1374 # OSF1 and SCO ODT 3.0 have their own names for install.
1375 # Don't use installbsd from OSF since it installs stuff as root
1376 # by default.
1377 for ac_prog in ginstall scoinst install; do
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1380 if test $ac_prog = install &&
1381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # AIX install. It has an incompatible calling convention.
1383 :
1384 elif test $ac_prog = install &&
1385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1386 # program-specific install script used by HP pwplus--don't use.
1387 :
1388 else
1389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1390 break 3
1391 fi
1392 fi
1393 done
1394 done
1395 ;;
1396 esac
1397 done
1400 fi
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL=$ac_cv_path_install
1403 else
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL=$ac_install_sh
1409 fi
1410 fi
1411 echo "$as_me:$LINENO: result: $INSTALL" >&5
1412 echo "${ECHO_T}$INSTALL" >&6
1414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1415 # It thinks the first close brace ends the variable substitution.
1416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1423 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1424 # Just in case
1425 sleep 1
1426 echo timestamp > conftest.file
1427 # Do `set' in a subshell so we don't clobber the current shell's
1428 # arguments. Must try -L first in case configure is actually a
1429 # symlink; some systems play weird games with the mod time of symlinks
1430 # (eg FreeBSD returns the mod time of the symlink's containing
1431 # directory).
1432 if (
1433 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1434 if test "$*" = "X"; then
1435 # -L didn't work.
1436 set X `ls -t $srcdir/configure conftest.file`
1437 fi
1438 rm -f conftest.file
1439 if test "$*" != "X $srcdir/configure conftest.file" \
1440 && test "$*" != "X conftest.file $srcdir/configure"; then
1442 # If neither matched, then we have a broken ls. This can happen
1443 # if, for instance, CONFIG_SHELL is bash and it inherits a
1444 # broken ls alias from the environment. This has actually
1445 # happened. Such a system could not be considered "sane".
1446 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&5
1448 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1449 alias in your environment" >&2;}
1450 { (exit 1); exit 1; }; }
1451 fi
1453 test "$2" = conftest.file
1454 )
1455 then
1456 # Ok.
1457 :
1458 else
1459 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1460 Check your system clock" >&5
1461 echo "$as_me: error: newly created file is older than distributed files!
1462 Check your system clock" >&2;}
1463 { (exit 1); exit 1; }; }
1464 fi
1465 echo "$as_me:$LINENO: result: yes" >&5
1466 echo "${ECHO_T}yes" >&6
1467 test "$program_prefix" != NONE &&
1468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1469 # Use a double $ so make ignores it.
1470 test "$program_suffix" != NONE &&
1471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1472 # Double any \ or $. echo might interpret backslashes.
1473 # By default was `s,x,x', remove it if useless.
1474 cat <<\_ACEOF >conftest.sed
1475 s/[\\$]/&&/g;s/;s,x,x,$//
1476 _ACEOF
1477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478 rm conftest.sed
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487 am_missing_run="$MISSING --run "
1488 else
1489 am_missing_run=
1490 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 fi
1494 for ac_prog in gawk mawk nawk awk
1495 do
1496 # Extract the first word of "$ac_prog", so it can be a program name with args.
1497 set dummy $ac_prog; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_AWK+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 if test -n "$AWK"; then
1504 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_AWK="$ac_prog"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 break 2
1516 fi
1517 done
1518 done
1520 fi
1521 fi
1522 AWK=$ac_cv_prog_AWK
1523 if test -n "$AWK"; then
1524 echo "$as_me:$LINENO: result: $AWK" >&5
1525 echo "${ECHO_T}$AWK" >&6
1526 else
1527 echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1529 fi
1531 test -n "$AWK" && break
1532 done
1534 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1535 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1536 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540 cat >conftest.make <<\_ACEOF
1541 all:
1542 @echo 'ac_maketemp="$(MAKE)"'
1543 _ACEOF
1544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546 if test -n "$ac_maketemp"; then
1547 eval ac_cv_prog_make_${ac_make}_set=yes
1548 else
1549 eval ac_cv_prog_make_${ac_make}_set=no
1550 fi
1551 rm -f conftest.make
1552 fi
1553 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 SET_MAKE=
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 SET_MAKE="MAKE=${MAKE-make}"
1561 fi
1563 rm -rf .tst 2>/dev/null
1564 mkdir .tst 2>/dev/null
1565 if test -d .tst; then
1566 am__leading_dot=.
1567 else
1568 am__leading_dot=_
1569 fi
1570 rmdir .tst 2>/dev/null
1572 # test to see if srcdir already configured
1573 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1574 test -f $srcdir/config.status; then
1575 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1576 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1577 { (exit 1); exit 1; }; }
1578 fi
1580 # test whether we have cygpath
1581 if test -z "$CYGPATH_W"; then
1582 if (cygpath --version) >/dev/null 2>/dev/null; then
1583 CYGPATH_W='cygpath -w'
1584 else
1585 CYGPATH_W=echo
1586 fi
1587 fi
1590 # Define the identity of the package.
1591 PACKAGE=dream
1592 VERSION=0.1
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE "$PACKAGE"
1597 _ACEOF
1600 cat >>confdefs.h <<_ACEOF
1601 #define VERSION "$VERSION"
1602 _ACEOF
1604 # Some tools Automake needs.
1606 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1609 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1612 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1615 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1618 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1621 AMTAR=${AMTAR-"${am_missing_run}tar"}
1623 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1625 # Installed binaries are usually stripped using `strip' when the user
1626 # run `make install-strip'. However `strip' might not be the right
1627 # tool to use in cross-compilation environments, therefore Automake
1628 # will honor the `STRIP' environment variable to overrule this program.
1629 if test "$cross_compiling" != no; then
1630 if test -n "$ac_tool_prefix"; then
1631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1632 set dummy ${ac_tool_prefix}strip; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_STRIP+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 if test -n "$STRIP"; then
1639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652 done
1653 done
1655 fi
1656 fi
1657 STRIP=$ac_cv_prog_STRIP
1658 if test -n "$STRIP"; then
1659 echo "$as_me:$LINENO: result: $STRIP" >&5
1660 echo "${ECHO_T}$STRIP" >&6
1661 else
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1664 fi
1666 fi
1667 if test -z "$ac_cv_prog_STRIP"; then
1668 ac_ct_STRIP=$STRIP
1669 # Extract the first word of "strip", so it can be a program name with args.
1670 set dummy strip; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 if test -n "$ac_ct_STRIP"; then
1677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_ac_ct_STRIP="strip"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690 done
1691 done
1693 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1694 fi
1695 fi
1696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1697 if test -n "$ac_ct_STRIP"; then
1698 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1699 echo "${ECHO_T}$ac_ct_STRIP" >&6
1700 else
1701 echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 fi
1705 STRIP=$ac_ct_STRIP
1706 else
1707 STRIP="$ac_cv_prog_STRIP"
1708 fi
1710 fi
1711 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1713 # We need awk for the "check" target. The system "awk" is bad on
1714 # some platforms.
1718 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1719 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1720 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1721 if test "${enable_maintainer_mode+set}" = set; then
1722 enableval="$enable_maintainer_mode"
1723 USE_MAINTAINER_MODE=$enableval
1724 else
1725 USE_MAINTAINER_MODE=no
1726 fi;
1727 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1728 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1731 if test $USE_MAINTAINER_MODE = yes; then
1732 MAINTAINER_MODE_TRUE=
1733 MAINTAINER_MODE_FALSE='#'
1734 else
1735 MAINTAINER_MODE_TRUE='#'
1736 MAINTAINER_MODE_FALSE=
1737 fi
1739 MAINT=$MAINTAINER_MODE_TRUE
1742 ac_config_headers="$ac_config_headers config.h"
1745 DEPDIR="${am__leading_dot}deps"
1747 ac_config_commands="$ac_config_commands depfiles"
1750 am_make=${MAKE-make}
1751 cat > confinc << 'END'
1752 am__doit:
1753 @echo done
1754 .PHONY: am__doit
1755 END
1756 # If we don't find an include directive, just comment out the code.
1757 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1759 am__include="#"
1760 am__quote=
1761 _am_result=none
1762 # First try GNU make style include.
1763 echo "include confinc" > confmf
1764 # We grep out `Entering directory' and `Leaving directory'
1765 # messages which can occur if `w' ends up in MAKEFLAGS.
1766 # In particular we don't look at `^make:' because GNU make might
1767 # be invoked under some other name (usually "gmake"), in which
1768 # case it prints its new name instead of `make'.
1769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1770 am__include=include
1771 am__quote=
1772 _am_result=GNU
1773 fi
1774 # Now try BSD make style include.
1775 if test "$am__include" = "#"; then
1776 echo '.include "confinc"' > confmf
1777 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1778 am__include=.include
1779 am__quote="\""
1780 _am_result=BSD
1781 fi
1782 fi
1785 echo "$as_me:$LINENO: result: $_am_result" >&5
1786 echo "${ECHO_T}$_am_result" >&6
1787 rm -f confinc confmf
1789 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1790 if test "${enable_dependency_tracking+set}" = set; then
1791 enableval="$enable_dependency_tracking"
1793 fi;
1794 if test "x$enable_dependency_tracking" != xno; then
1795 am_depcomp="$ac_aux_dir/depcomp"
1796 AMDEPBACKSLASH='\'
1797 fi
1800 if test "x$enable_dependency_tracking" != xno; then
1801 AMDEP_TRUE=
1802 AMDEP_FALSE='#'
1803 else
1804 AMDEP_TRUE='#'
1805 AMDEP_FALSE=
1806 fi
1810 ac_ext=c
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837 done
1838 done
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853 ac_ct_CC=$CC
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1889 CC=$ac_ct_CC
1890 else
1891 CC="$ac_cv_prog_CC"
1892 fi
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1916 fi
1917 done
1918 done
1920 fi
1921 fi
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1931 fi
1932 if test -z "$ac_cv_prog_CC"; then
1933 ac_ct_CC=$CC
1934 # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955 done
1956 done
1958 fi
1959 fi
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1964 else
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1969 CC=$ac_ct_CC
1970 else
1971 CC="$ac_cv_prog_CC"
1972 fi
1974 fi
1975 if test -z "$CC"; then
1976 # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 ac_prog_rejected=no
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
1996 continue
1997 fi
1998 ac_cv_prog_CC="cc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002 done
2003 done
2005 if test $ac_prog_rejected = yes; then
2006 # We found a bogon in the path, so make sure we never use it.
2007 set dummy $ac_cv_prog_CC
2008 shift
2009 if test $# != 0; then
2010 # We chose a different compiler from the bogus one.
2011 # However, it has the same basename, so the bogon will be chosen
2012 # first if we set CC to just the basename; use the full file name.
2013 shift
2014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 fi
2016 fi
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2028 fi
2029 if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2031 for ac_prog in cl
2032 do
2033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054 done
2055 done
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2068 test -n "$CC" && break
2069 done
2070 fi
2071 if test -z "$CC"; then
2072 ac_ct_CC=$CC
2073 for ac_prog in cl
2074 do
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_ac_ct_CC="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096 done
2097 done
2099 fi
2100 fi
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2105 else
2106 echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2108 fi
2110 test -n "$ac_ct_CC" && break
2111 done
2113 CC=$ac_ct_CC
2114 fi
2116 fi
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127 "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130 (eval $ac_compiler --version </dev/null >&5) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135 (eval $ac_compiler -v </dev/null >&5) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140 (eval $ac_compiler -V </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h. */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2152 int
2153 main ()
2154 {
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169 (eval $ac_link_default) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Find the output, starting from the most likely. This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175 # resort.
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 ac_cv_exeext=
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 do
2183 test -f "$ac_file" || continue
2184 case $ac_file in
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186 ;;
2187 conftest.$ac_ext )
2188 # This is the source file.
2189 ;;
2190 [ab].out )
2191 # We found the default executable, but exeext='' is most
2192 # certainly right.
2193 break;;
2194 *.* )
2195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # FIXME: I believe we export ac_cv_exeext for Libtool,
2197 # but it would be cool to find out if it's true. Does anybody
2198 # maintain Libtool? --akim.
2199 export ac_cv_exeext
2200 break;;
2201 * )
2202 break;;
2203 esac
2204 done
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
2214 fi
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2220 # Check the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 cross_compiling=no
2234 else
2235 if test "$cross_compiling" = maybe; then
2236 cross_compiling=yes
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2245 fi
2246 fi
2247 fi
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run. If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276 export ac_cv_exeext
2277 break;;
2278 * ) break;;
2279 esac
2280 done
2281 else
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2287 fi
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2308 int
2309 main ()
2310 {
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323 case $ac_file in
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326 break;;
2327 esac
2328 done
2329 else
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2345 ac_objext=$OBJEXT
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2358 int
2359 main ()
2360 {
2361 #ifndef __GNUC__
2362 choke me
2363 #endif
2365 ;
2366 return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 ac_compiler_gnu=yes
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 ac_compiler_gnu=no
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400 fi
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2406 CFLAGS="-g"
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412 cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h. */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2419 int
2420 main ()
2421 {
2423 ;
2424 return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>conftest.er1
2430 ac_status=$?
2431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_cv_prog_cc_g=yes
2449 else
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2453 ac_cv_prog_cc_g=no
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459 if test "$ac_test_CFLAGS" = set; then
2460 CFLAGS=$ac_save_CFLAGS
2461 elif test $ac_cv_prog_cc_g = yes; then
2462 if test "$GCC" = yes; then
2463 CFLAGS="-g -O2"
2464 else
2465 CFLAGS="-g"
2466 fi
2467 else
2468 if test "$GCC" = yes; then
2469 CFLAGS="-O2"
2470 else
2471 CFLAGS=
2472 fi
2473 fi
2474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479 ac_cv_prog_cc_stdc=no
2480 ac_save_CC=$CC
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487 #include <stdarg.h>
2488 #include <stdio.h>
2489 #include <sys/types.h>
2490 #include <sys/stat.h>
2491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2492 struct buf { int x; };
2493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494 static char *e (p, i)
2495 char **p;
2496 int i;
2497 {
2498 return p[i];
2499 }
2500 static char *f (char * (*g) (char **, int), char **p, ...)
2501 {
2502 char *s;
2503 va_list v;
2504 va_start (v,p);
2505 s = g (p, va_arg (v,int));
2506 va_end (v);
2507 return s;
2508 }
2510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2511 function prototypes and stuff, but not '\xHH' hex character constants.
2512 These don't provoke an error unfortunately, instead are silently treated
2513 as 'x'. The following induces an error, until -std1 is added to get
2514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2515 array size at least. It's necessary to write '\x00'==0 to get something
2516 that's true only with -std1. */
2517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519 int test (int i, double x);
2520 struct s1 {int (*f) (int a);};
2521 struct s2 {int (*f) (double a);};
2522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523 int argc;
2524 char **argv;
2525 int
2526 main ()
2527 {
2528 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2529 ;
2530 return 0;
2531 }
2532 _ACEOF
2533 # Don't try gcc -ansi; that turns off useful extensions and
2534 # breaks some systems' header files.
2535 # AIX -qlanglvl=ansi
2536 # Ultrix and OSF/1 -std1
2537 # HP-UX 10.20 and later -Ae
2538 # HP-UX older versions -Aa -D_HPUX_SOURCE
2539 # SVR4 -Xc -D__EXTENSIONS__
2540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541 do
2542 CC="$ac_save_CC $ac_arg"
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc=$ac_arg
2565 break
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2570 fi
2571 rm -f conftest.err conftest.$ac_objext
2572 done
2573 rm -f conftest.$ac_ext conftest.$ac_objext
2574 CC=$ac_save_CC
2576 fi
2578 case "x$ac_cv_prog_cc_stdc" in
2579 x|xno)
2580 echo "$as_me:$LINENO: result: none needed" >&5
2581 echo "${ECHO_T}none needed" >&6 ;;
2582 *)
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2585 CC="$CC $ac_cv_prog_cc_stdc" ;;
2586 esac
2588 # Some people use a C++ compiler to compile C. Since we use `exit',
2589 # in C++ we need to declare it. In case someone uses the same compiler
2590 # for both compiling C and C++ we need to have the C++ compiler decide
2591 # the declaration of exit, since it's the most demanding environment.
2592 cat >conftest.$ac_ext <<_ACEOF
2593 #ifndef __cplusplus
2594 choke me
2595 #endif
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 for ac_declaration in \
2619 '' \
2620 'extern "C" void std::exit (int) throw (); using std::exit;' \
2621 'extern "C" void std::exit (int); using std::exit;' \
2622 'extern "C" void exit (int) throw ();' \
2623 'extern "C" void exit (int);' \
2624 'void exit (int);'
2625 do
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2632 $ac_declaration
2633 #include <stdlib.h>
2634 int
2635 main ()
2636 {
2637 exit (42);
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 :
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 continue
2669 fi
2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h. */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2677 $ac_declaration
2678 int
2679 main ()
2680 {
2681 exit (42);
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 break
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2712 fi
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 done
2715 rm -f conftest*
2716 if test -n "$ac_declaration"; then
2717 echo '#ifdef __cplusplus' >>confdefs.h
2718 echo $ac_declaration >>confdefs.h
2719 echo '#endif' >>confdefs.h
2720 fi
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 depcc="$CC" am_compiler_list=
2736 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742 # We make a subdir and do the tests there. Otherwise we can end up
2743 # making bogus files that we don't know about and never remove. For
2744 # instance it was reported that on HP-UX the gcc test will end up
2745 # making a dummy file named `D' -- because `-MD' means `put the output
2746 # in D'.
2747 mkdir conftest.dir
2748 # Copy depcomp to subdir because otherwise we won't find it if we're
2749 # using a relative directory.
2750 cp "$am_depcomp" conftest.dir
2751 cd conftest.dir
2752 # We will build objects and dependencies in a subdirectory because
2753 # it helps to detect inapplicable dependency modes. For instance
2754 # both Tru64's cc and ICC support -MD to output dependencies as a
2755 # side effect of compilation, but ICC will put the dependencies in
2756 # the current directory while Tru64 will put them in the object
2757 # directory.
2758 mkdir sub
2760 am_cv_CC_dependencies_compiler_type=none
2761 if test "$am_compiler_list" = ""; then
2762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2763 fi
2764 for depmode in $am_compiler_list; do
2765 # Setup a source with many dependencies, because some compilers
2766 # like to wrap large dependency lists on column 80 (with \), and
2767 # we should not choose a depcomp mode which is confused by this.
2768 #
2769 # We need to recreate these files for each test, as the compiler may
2770 # overwrite some of them when testing with obscure command lines.
2771 # This happens at least with the AIX C compiler.
2772 : > sub/conftest.c
2773 for i in 1 2 3 4 5 6; do
2774 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2775 : > sub/conftst$i.h
2776 done
2777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2779 case $depmode in
2780 nosideeffect)
2781 # after this tag, mechanisms are not by side-effect, so they'll
2782 # only be used when explicitly requested
2783 if test "x$enable_dependency_tracking" = xyes; then
2784 continue
2785 else
2786 break
2787 fi
2788 ;;
2789 none) break ;;
2790 esac
2791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2792 # mode. It turns out that the SunPro C++ compiler does not properly
2793 # handle `-M -o', and we need to detect this.
2794 if depmode=$depmode \
2795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2798 >/dev/null 2>conftest.err &&
2799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2802 # icc doesn't choke on unknown options, it will just issue warnings
2803 # (even with -Werror). So we grep stderr for any message
2804 # that says an option was ignored.
2805 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2806 am_cv_CC_dependencies_compiler_type=$depmode
2807 break
2808 fi
2809 fi
2810 done
2812 cd ..
2813 rm -rf conftest.dir
2814 else
2815 am_cv_CC_dependencies_compiler_type=none
2816 fi
2818 fi
2819 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2820 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2821 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2825 if
2826 test "x$enable_dependency_tracking" != xno \
2827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2828 am__fastdepCC_TRUE=
2829 am__fastdepCC_FALSE='#'
2830 else
2831 am__fastdepCC_TRUE='#'
2832 am__fastdepCC_FALSE=
2833 fi
2838 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2839 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2840 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 ac_check_lib_save_LIBS=$LIBS
2844 LIBS="-lcposix $LIBS"
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2852 /* Override any gcc2 internal prototype to avoid an error. */
2853 #ifdef __cplusplus
2854 extern "C"
2855 #endif
2856 /* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
2858 char strerror ();
2859 int
2860 main ()
2861 {
2862 strerror ();
2863 ;
2864 return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext conftest$ac_exeext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>conftest.er1
2870 ac_status=$?
2871 grep -v '^ *+' conftest.er1 >conftest.err
2872 rm -f conftest.er1
2873 cat conftest.err >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest$ac_exeext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 ac_cv_lib_cposix_strerror=yes
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 ac_cv_lib_cposix_strerror=no
2894 fi
2895 rm -f conftest.err conftest.$ac_objext \
2896 conftest$ac_exeext conftest.$ac_ext
2897 LIBS=$ac_check_lib_save_LIBS
2898 fi
2899 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2900 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2901 if test $ac_cv_lib_cposix_strerror = yes; then
2902 LIBS="$LIBS -lcposix"
2903 fi
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 if test -n "$ac_tool_prefix"; then
2913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_CC+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6
2943 else
2944 echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2946 fi
2948 fi
2949 if test -z "$ac_cv_prog_CC"; then
2950 ac_ct_CC=$CC
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980 echo "${ECHO_T}$ac_ct_CC" >&6
2981 else
2982 echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2984 fi
2986 CC=$ac_ct_CC
2987 else
2988 CC="$ac_cv_prog_CC"
2989 fi
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}cc; ac_word=$2
2995 echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2997 if test "${ac_cv_prog_CC+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="${ac_tool_prefix}cc"
3011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3017 fi
3018 fi
3019 CC=$ac_cv_prog_CC
3020 if test -n "$CC"; then
3021 echo "$as_me:$LINENO: result: $CC" >&5
3022 echo "${ECHO_T}$CC" >&6
3023 else
3024 echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6
3026 fi
3028 fi
3029 if test -z "$ac_cv_prog_CC"; then
3030 ac_ct_CC=$CC
3031 # Extract the first word of "cc", so it can be a program name with args.
3032 set dummy cc; ac_word=$2
3033 echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_ac_ct_CC="cc"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3055 fi
3056 fi
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3060 echo "${ECHO_T}$ac_ct_CC" >&6
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3064 fi
3066 CC=$ac_ct_CC
3067 else
3068 CC="$ac_cv_prog_CC"
3069 fi
3071 fi
3072 if test -z "$CC"; then
3073 # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_prog_CC+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 ac_prog_rejected=no
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092 ac_prog_rejected=yes
3093 continue
3094 fi
3095 ac_cv_prog_CC="cc"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3105 shift
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3110 shift
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112 fi
3113 fi
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 echo "$as_me:$LINENO: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6
3120 else
3121 echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3123 fi
3125 fi
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in cl
3129 do
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 echo "$as_me:$LINENO: result: $CC" >&5
3159 echo "${ECHO_T}$CC" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3163 fi
3165 test -n "$CC" && break
3166 done
3167 fi
3168 if test -z "$CC"; then
3169 ac_ct_CC=$CC
3170 for ac_prog in cl
3171 do
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_CC="$ac_prog"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3196 fi
3197 fi
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3201 echo "${ECHO_T}$ac_ct_CC" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3207 test -n "$ac_ct_CC" && break
3208 done
3210 CC=$ac_ct_CC
3211 fi
3213 fi
3216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details." >&5
3218 echo "$as_me: error: no acceptable C compiler found in \$PATH
3219 See \`config.log' for more details." >&2;}
3220 { (exit 1); exit 1; }; }
3222 # Provide some information about the compiler.
3223 echo "$as_me:$LINENO:" \
3224 "checking for C compiler version" >&5
3225 ac_compiler=`set X $ac_compile; echo $2`
3226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3227 (eval $ac_compiler --version </dev/null >&5) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3232 (eval $ac_compiler -v </dev/null >&5) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }
3236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3237 (eval $ac_compiler -V </dev/null >&5) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3242 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3243 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3244 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 int
3255 main ()
3256 {
3257 #ifndef __GNUC__
3258 choke me
3259 #endif
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; } &&
3280 { ac_try='test -s conftest.$ac_objext'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 (eval $ac_try) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 ac_compiler_gnu=yes
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 ac_compiler_gnu=no
3292 fi
3293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3296 fi
3297 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3298 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3299 GCC=`test $ac_compiler_gnu = yes && echo yes`
3300 ac_test_CFLAGS=${CFLAGS+set}
3301 ac_save_CFLAGS=$CFLAGS
3302 CFLAGS="-g"
3303 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3305 if test "${ac_cv_prog_cc_g+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h. */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3315 int
3316 main ()
3317 {
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_cv_prog_cc_g=yes
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 ac_cv_prog_cc_g=no
3350 fi
3351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 fi
3353 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3355 if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357 elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3359 CFLAGS="-g -O2"
3360 else
3361 CFLAGS="-g"
3362 fi
3363 else
3364 if test "$GCC" = yes; then
3365 CFLAGS="-O2"
3366 else
3367 CFLAGS=
3368 fi
3369 fi
3370 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3371 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3372 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 ac_cv_prog_cc_stdc=no
3376 ac_save_CC=$CC
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include <stdarg.h>
3384 #include <stdio.h>
3385 #include <sys/types.h>
3386 #include <sys/stat.h>
3387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3388 struct buf { int x; };
3389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3390 static char *e (p, i)
3391 char **p;
3392 int i;
3393 {
3394 return p[i];
3395 }
3396 static char *f (char * (*g) (char **, int), char **p, ...)
3397 {
3398 char *s;
3399 va_list v;
3400 va_start (v,p);
3401 s = g (p, va_arg (v,int));
3402 va_end (v);
3403 return s;
3404 }
3406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3407 function prototypes and stuff, but not '\xHH' hex character constants.
3408 These don't provoke an error unfortunately, instead are silently treated
3409 as 'x'. The following induces an error, until -std1 is added to get
3410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3411 array size at least. It's necessary to write '\x00'==0 to get something
3412 that's true only with -std1. */
3413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419 int argc;
3420 char **argv;
3421 int
3422 main ()
3423 {
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 # Don't try gcc -ansi; that turns off useful extensions and
3430 # breaks some systems' header files.
3431 # AIX -qlanglvl=ansi
3432 # Ultrix and OSF/1 -std1
3433 # HP-UX 10.20 and later -Ae
3434 # HP-UX older versions -Aa -D_HPUX_SOURCE
3435 # SVR4 -Xc -D__EXTENSIONS__
3436 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 do
3438 CC="$ac_save_CC $ac_arg"
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_cv_prog_cc_stdc=$ac_arg
3461 break
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 fi
3467 rm -f conftest.err conftest.$ac_objext
3468 done
3469 rm -f conftest.$ac_ext conftest.$ac_objext
3470 CC=$ac_save_CC
3472 fi
3474 case "x$ac_cv_prog_cc_stdc" in
3475 x|xno)
3476 echo "$as_me:$LINENO: result: none needed" >&5
3477 echo "${ECHO_T}none needed" >&6 ;;
3478 *)
3479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3480 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3481 CC="$CC $ac_cv_prog_cc_stdc" ;;
3482 esac
3484 # Some people use a C++ compiler to compile C. Since we use `exit',
3485 # in C++ we need to declare it. In case someone uses the same compiler
3486 # for both compiling C and C++ we need to have the C++ compiler decide
3487 # the declaration of exit, since it's the most demanding environment.
3488 cat >conftest.$ac_ext <<_ACEOF
3489 #ifndef __cplusplus
3490 choke me
3491 #endif
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 for ac_declaration in \
3515 '' \
3516 'extern "C" void std::exit (int) throw (); using std::exit;' \
3517 'extern "C" void std::exit (int); using std::exit;' \
3518 'extern "C" void exit (int) throw ();' \
3519 'extern "C" void exit (int);' \
3520 'void exit (int);'
3521 do
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 $ac_declaration
3529 #include <stdlib.h>
3530 int
3531 main ()
3532 {
3533 exit (42);
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3540 (eval $ac_compile) 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
3547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 :
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 continue
3565 fi
3566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 $ac_declaration
3574 int
3575 main ()
3576 {
3577 exit (42);
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599 (eval $ac_try) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 break
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 fi
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 done
3611 rm -f conftest*
3612 if test -n "$ac_declaration"; then
3613 echo '#ifdef __cplusplus' >>confdefs.h
3614 echo $ac_declaration >>confdefs.h
3615 echo '#endif' >>confdefs.h
3616 fi
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 fi
3623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 depcc="$CC" am_compiler_list=
3632 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3633 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3634 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3638 # We make a subdir and do the tests there. Otherwise we can end up
3639 # making bogus files that we don't know about and never remove. For
3640 # instance it was reported that on HP-UX the gcc test will end up
3641 # making a dummy file named `D' -- because `-MD' means `put the output
3642 # in D'.
3643 mkdir conftest.dir
3644 # Copy depcomp to subdir because otherwise we won't find it if we're
3645 # using a relative directory.
3646 cp "$am_depcomp" conftest.dir
3647 cd conftest.dir
3648 # We will build objects and dependencies in a subdirectory because
3649 # it helps to detect inapplicable dependency modes. For instance
3650 # both Tru64's cc and ICC support -MD to output dependencies as a
3651 # side effect of compilation, but ICC will put the dependencies in
3652 # the current directory while Tru64 will put them in the object
3653 # directory.
3654 mkdir sub
3656 am_cv_CC_dependencies_compiler_type=none
3657 if test "$am_compiler_list" = ""; then
3658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3659 fi
3660 for depmode in $am_compiler_list; do
3661 # Setup a source with many dependencies, because some compilers
3662 # like to wrap large dependency lists on column 80 (with \), and
3663 # we should not choose a depcomp mode which is confused by this.
3664 #
3665 # We need to recreate these files for each test, as the compiler may
3666 # overwrite some of them when testing with obscure command lines.
3667 # This happens at least with the AIX C compiler.
3668 : > sub/conftest.c
3669 for i in 1 2 3 4 5 6; do
3670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3671 : > sub/conftst$i.h
3672 done
3673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3675 case $depmode in
3676 nosideeffect)
3677 # after this tag, mechanisms are not by side-effect, so they'll
3678 # only be used when explicitly requested
3679 if test "x$enable_dependency_tracking" = xyes; then
3680 continue
3681 else
3682 break
3683 fi
3684 ;;
3685 none) break ;;
3686 esac
3687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3688 # mode. It turns out that the SunPro C++ compiler does not properly
3689 # handle `-M -o', and we need to detect this.
3690 if depmode=$depmode \
3691 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3692 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3693 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3694 >/dev/null 2>conftest.err &&
3695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3696 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3698 # icc doesn't choke on unknown options, it will just issue warnings
3699 # (even with -Werror). So we grep stderr for any message
3700 # that says an option was ignored.
3701 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3702 am_cv_CC_dependencies_compiler_type=$depmode
3703 break
3704 fi
3705 fi
3706 done
3708 cd ..
3709 rm -rf conftest.dir
3710 else
3711 am_cv_CC_dependencies_compiler_type=none
3712 fi
3714 fi
3715 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3716 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3717 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3721 if
3722 test "x$enable_dependency_tracking" != xno \
3723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3724 am__fastdepCC_TRUE=
3725 am__fastdepCC_FALSE='#'
3726 else
3727 am__fastdepCC_TRUE='#'
3728 am__fastdepCC_FALSE=
3729 fi
3735 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3736 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3737 if test "${am_cv_prog_cc_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 am_cv_prog_cc_stdc=no
3741 ac_save_CC="$CC"
3742 # Don't try gcc -ansi; that turns off useful extensions and
3743 # breaks some systems' header files.
3744 # AIX -qlanglvl=ansi
3745 # Ultrix and OSF/1 -std1
3746 # HP-UX 10.20 and later -Ae
3747 # HP-UX older versions -Aa -D_HPUX_SOURCE
3748 # SVR4 -Xc -D__EXTENSIONS__
3749 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3750 do
3751 CC="$ac_save_CC $ac_arg"
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. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3768 {
3769 return p[i];
3770 }
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3772 {
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3779 }
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3787 int
3788 main ()
3789 {
3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3818 am_cv_prog_cc_stdc="$ac_arg"; break
3819 else
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 fi
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825 done
3826 CC="$ac_save_CC"
3828 fi
3830 if test -z "$am_cv_prog_cc_stdc"; then
3831 echo "$as_me:$LINENO: result: none needed" >&5
3832 echo "${ECHO_T}none needed" >&6
3833 else
3834 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3835 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3836 fi
3837 case "x$am_cv_prog_cc_stdc" in
3838 x|xno) ;;
3839 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3840 esac
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3848 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3849 # On Suns, sometimes $CPP names a directory.
3850 if test -n "$CPP" && test -d "$CPP"; then
3851 CPP=
3852 fi
3853 if test -z "$CPP"; then
3854 if test "${ac_cv_prog_CPP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 # Double quotes because CPP needs to be expanded
3858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3859 do
3860 ac_preproc_ok=false
3861 for ac_c_preproc_warn_flag in '' yes
3862 do
3863 # Use a header file that comes with gcc, so configuring glibc
3864 # with a fresh cross-compiler works.
3865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3866 # <limits.h> exists even on freestanding compilers.
3867 # On the NeXT, cc -E runs the code through the compiler's parser,
3868 # not just through cpp. "Syntax error" is here to catch this case.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #ifdef __STDC__
3876 # include <limits.h>
3877 #else
3878 # include <assert.h>
3879 #endif
3880 Syntax error
3881 _ACEOF
3882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } >/dev/null; then
3890 if test -s conftest.err; then
3891 ac_cpp_err=$ac_c_preproc_warn_flag
3892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3893 else
3894 ac_cpp_err=
3895 fi
3896 else
3897 ac_cpp_err=yes
3898 fi
3899 if test -z "$ac_cpp_err"; then
3900 :
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 # Broken: fails on valid input.
3906 continue
3907 fi
3908 rm -f conftest.err conftest.$ac_ext
3910 # OK, works on sane cases. Now check whether non-existent headers
3911 # can be detected and how.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3919 _ACEOF
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3931 else
3932 ac_cpp_err=
3933 fi
3934 else
3935 ac_cpp_err=yes
3936 fi
3937 if test -z "$ac_cpp_err"; then
3938 # Broken: success on invalid input.
3939 continue
3940 else
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 # Passes both tests.
3945 ac_preproc_ok=:
3946 break
3947 fi
3948 rm -f conftest.err conftest.$ac_ext
3950 done
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then
3954 break
3955 fi
3957 done
3958 ac_cv_prog_CPP=$CPP
3960 fi
3961 CPP=$ac_cv_prog_CPP
3962 else
3963 ac_cv_prog_CPP=$CPP
3964 fi
3965 echo "$as_me:$LINENO: result: $CPP" >&5
3966 echo "${ECHO_T}$CPP" >&6
3967 ac_preproc_ok=false
3968 for ac_c_preproc_warn_flag in '' yes
3969 do
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987 Syntax error
3988 _ACEOF
3989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } >/dev/null; then
3997 if test -s conftest.err; then
3998 ac_cpp_err=$ac_c_preproc_warn_flag
3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4000 else
4001 ac_cpp_err=
4002 fi
4003 else
4004 ac_cpp_err=yes
4005 fi
4006 if test -z "$ac_cpp_err"; then
4007 :
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 # Broken: fails on valid input.
4013 continue
4014 fi
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether non-existent headers
4018 # can be detected and how.
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4026 _ACEOF
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4038 else
4039 ac_cpp_err=
4040 fi
4041 else
4042 ac_cpp_err=yes
4043 fi
4044 if test -z "$ac_cpp_err"; then
4045 # Broken: success on invalid input.
4046 continue
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 # Passes both tests.
4052 ac_preproc_ok=:
4053 break
4054 fi
4055 rm -f conftest.err conftest.$ac_ext
4057 done
4058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4059 rm -f conftest.err conftest.$ac_ext
4060 if $ac_preproc_ok; then
4061 :
4062 else
4063 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4064 See \`config.log' for more details." >&5
4065 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4066 See \`config.log' for more details." >&2;}
4067 { (exit 1); exit 1; }; }
4068 fi
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 echo "$as_me:$LINENO: checking for egrep" >&5
4078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4079 if test "${ac_cv_prog_egrep+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4083 then ac_cv_prog_egrep='grep -E'
4084 else ac_cv_prog_egrep='egrep'
4085 fi
4086 fi
4087 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4088 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4089 EGREP=$ac_cv_prog_egrep
4092 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4094 if test "${ac_cv_header_stdc+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <stdlib.h>
4104 #include <stdarg.h>
4105 #include <string.h>
4106 #include <float.h>
4108 int
4109 main ()
4110 {
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_header_stdc=yes
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 ac_cv_header_stdc=no
4143 fi
4144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146 if test $ac_cv_header_stdc = yes; then
4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h. */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 #include <string.h>
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "memchr" >/dev/null 2>&1; then
4159 :
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4165 fi
4167 if test $ac_cv_header_stdc = yes; then
4168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4169 cat >conftest.$ac_ext <<_ACEOF
4170 /* confdefs.h. */
4171 _ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4175 #include <stdlib.h>
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then
4180 :
4181 else
4182 ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest*
4186 fi
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then
4191 :
4192 else
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ctype.h>
4200 #if ((' ' & 0x0FF) == 0x020)
4201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4203 #else
4204 # define ISLOWER(c) \
4205 (('a' <= (c) && (c) <= 'i') \
4206 || ('j' <= (c) && (c) <= 'r') \
4207 || ('s' <= (c) && (c) <= 'z'))
4208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4209 #endif
4211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4212 int
4213 main ()
4214 {
4215 int i;
4216 for (i = 0; i < 256; i++)
4217 if (XOR (islower (i), ISLOWER (i))
4218 || toupper (i) != TOUPPER (i))
4219 exit(2);
4220 exit (0);
4221 }
4222 _ACEOF
4223 rm -f conftest$ac_exeext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 :
4235 else
4236 echo "$as_me: program exited with status $ac_status" >&5
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 ( exit $ac_status )
4241 ac_cv_header_stdc=no
4242 fi
4243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 fi
4246 fi
4247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4249 if test $ac_cv_header_stdc = yes; then
4251 cat >>confdefs.h <<\_ACEOF
4252 #define STDC_HEADERS 1
4253 _ACEOF
4255 fi
4260 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4263 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 case $PKG_CONFIG in
4270 [\\/]* | ?:[\\/]*)
4271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4272 ;;
4273 *)
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4288 ;;
4289 esac
4290 fi
4291 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4293 if test -n "$PKG_CONFIG"; then
4294 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4295 echo "${ECHO_T}$PKG_CONFIG" >&6
4296 else
4297 echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6
4299 fi
4301 fi
4302 if test -z "$ac_cv_path_PKG_CONFIG"; then
4303 ac_pt_PKG_CONFIG=$PKG_CONFIG
4304 # Extract the first word of "pkg-config", so it can be a program name with args.
4305 set dummy pkg-config; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 case $ac_pt_PKG_CONFIG in
4312 [\\/]* | ?:[\\/]*)
4313 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4314 ;;
4315 *)
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4330 ;;
4331 esac
4332 fi
4333 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4335 if test -n "$ac_pt_PKG_CONFIG"; then
4336 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4337 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4338 else
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4341 fi
4343 PKG_CONFIG=$ac_pt_PKG_CONFIG
4344 else
4345 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4346 fi
4348 fi
4349 if test -n "$PKG_CONFIG"; then
4350 _pkg_min_version=0.9.0
4351 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4352 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4353 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4354 echo "$as_me:$LINENO: result: yes" >&5
4355 echo "${ECHO_T}yes" >&6
4356 else
4357 echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4359 PKG_CONFIG=""
4360 fi
4362 fi
4364 pkg_failed=no
4365 echo "$as_me:$LINENO: checking for PACKAGE" >&5
4366 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6
4368 if test -n "$PKG_CONFIG"; then
4369 if test -n "$PACKAGE_CFLAGS"; then
4370 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
4371 else
4372 if test -n "$PKG_CONFIG" && \
4373 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libgnomeui-2.0 esound \"") >&5
4374 ($PKG_CONFIG --exists --print-errors " libgnomeui-2.0 esound ") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; then
4378 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " libgnomeui-2.0 esound " 2>/dev/null`
4379 else
4380 pkg_failed=yes
4381 fi
4382 fi
4383 else
4384 pkg_failed=untried
4385 fi
4386 if test -n "$PKG_CONFIG"; then
4387 if test -n "$PACKAGE_LIBS"; then
4388 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
4389 else
4390 if test -n "$PKG_CONFIG" && \
4391 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libgnomeui-2.0 esound \"") >&5
4392 ($PKG_CONFIG --exists --print-errors " libgnomeui-2.0 esound ") 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; then
4396 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " libgnomeui-2.0 esound " 2>/dev/null`
4397 else
4398 pkg_failed=yes
4399 fi
4400 fi
4401 else
4402 pkg_failed=untried
4403 fi
4407 if test $pkg_failed = yes; then
4409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4410 _pkg_short_errors_supported=yes
4411 else
4412 _pkg_short_errors_supported=no
4413 fi
4414 if test $_pkg_short_errors_supported = yes; then
4415 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
4416 else
4417 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
4418 fi
4419 # Put the nasty error message in config.log where it belongs
4420 echo "$PACKAGE_PKG_ERRORS" >&5
4422 { { echo "$as_me:$LINENO: error: Package requirements ( libgnomeui-2.0 esound ) were not met:
4424 $PACKAGE_PKG_ERRORS
4426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4427 installed software in a non-standard prefix.
4429 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4430 and PACKAGE_LIBS to avoid the need to call pkg-config.
4431 See the pkg-config man page for more details.
4432 " >&5
4433 echo "$as_me: error: Package requirements ( libgnomeui-2.0 esound ) were not met:
4435 $PACKAGE_PKG_ERRORS
4437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4438 installed software in a non-standard prefix.
4440 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4441 and PACKAGE_LIBS to avoid the need to call pkg-config.
4442 See the pkg-config man page for more details.
4443 " >&2;}
4444 { (exit 1); exit 1; }; }
4445 elif test $pkg_failed = untried; then
4446 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
4447 is in your PATH or set the PKG_CONFIG environment variable to the full
4448 path to pkg-config.
4450 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4451 and PACKAGE_LIBS to avoid the need to call pkg-config.
4452 See the pkg-config man page for more details.
4454 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4455 See \`config.log' for more details." >&5
4456 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
4457 is in your PATH or set the PKG_CONFIG environment variable to the full
4458 path to pkg-config.
4460 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4461 and PACKAGE_LIBS to avoid the need to call pkg-config.
4462 See the pkg-config man page for more details.
4464 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4465 See \`config.log' for more details." >&2;}
4466 { (exit 1); exit 1; }; }
4467 else
4468 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
4469 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
4470 echo "$as_me:$LINENO: result: yes" >&5
4471 echo "${ECHO_T}yes" >&6
4472 :
4473 fi
4478 echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
4479 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6
4480 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lGL $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 /* confdefs.h. */
4487 _ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 #ifdef __cplusplus
4494 extern "C"
4495 #endif
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4498 char glXQueryVersion ();
4499 int
4500 main ()
4501 {
4502 glXQueryVersion ();
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4509 (eval $ac_link) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_lib_GL_glXQueryVersion=yes
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 ac_cv_lib_GL_glXQueryVersion=no
4534 fi
4535 rm -f conftest.err conftest.$ac_objext \
4536 conftest$ac_exeext conftest.$ac_ext
4537 LIBS=$ac_check_lib_save_LIBS
4538 fi
4539 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
4540 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6
4541 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
4542 cat >>confdefs.h <<_ACEOF
4543 #define HAVE_LIBGL 1
4544 _ACEOF
4546 LIBS="-lGL $LIBS"
4548 fi
4551 GETTEXT_PACKAGE=dream
4553 cat >>confdefs.h <<_ACEOF
4554 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4555 _ACEOF
4558 ALL_LINGUAS=""
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4571 do
4572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 $ac_includes_default
4586 #include <$ac_header>
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 (eval $ac_try) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4609 eval "$as_ac_Header=yes"
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 eval "$as_ac_Header=no"
4615 fi
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 fi
4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4621 cat >>confdefs.h <<_ACEOF
4622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4623 _ACEOF
4625 fi
4627 done
4632 for ac_header in locale.h
4633 do
4634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 fi
4641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4643 else
4644 # Is the header compilable?
4645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 $ac_includes_default
4654 #include <$ac_header>
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; } &&
4671 { ac_try='test -s conftest.$ac_objext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 ac_header_compiler=yes
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 ac_header_compiler=no
4683 fi
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4686 echo "${ECHO_T}$ac_header_compiler" >&6
4688 # Is the header present?
4689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h. */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4697 #include <$ac_header>
4698 _ACEOF
4699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null; then
4707 if test -s conftest.err; then
4708 ac_cpp_err=$ac_c_preproc_warn_flag
4709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4710 else
4711 ac_cpp_err=
4712 fi
4713 else
4714 ac_cpp_err=yes
4715 fi
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_preproc=no
4723 fi
4724 rm -f conftest.err conftest.$ac_ext
4725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4726 echo "${ECHO_T}$ac_header_preproc" >&6
4728 # So? What about this header?
4729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4730 yes:no: )
4731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4735 ac_header_preproc=yes
4736 ;;
4737 no:yes:* )
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4750 (
4751 cat <<\_ASBOX
4752 ## ------------------------------------------ ##
4753 ## Report this to the AC_PACKAGE_NAME lists. ##
4754 ## ------------------------------------------ ##
4755 _ASBOX
4756 ) |
4757 sed "s/^/$as_me: WARNING: /" >&2
4758 ;;
4759 esac
4760 echo "$as_me:$LINENO: checking for $ac_header" >&5
4761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 eval "$as_ac_Header=\$ac_header_preproc"
4766 fi
4767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770 fi
4771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4774 _ACEOF
4776 fi
4778 done
4780 if test $ac_cv_header_locale_h = yes; then
4781 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4782 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4783 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <locale.h>
4793 int
4794 main ()
4795 {
4796 return LC_MESSAGES
4797 ;
4798 return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 am_cv_val_LC_MESSAGES=yes
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 am_cv_val_LC_MESSAGES=no
4828 fi
4829 rm -f conftest.err conftest.$ac_objext \
4830 conftest$ac_exeext conftest.$ac_ext
4831 fi
4832 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4833 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4834 if test $am_cv_val_LC_MESSAGES = yes; then
4836 cat >>confdefs.h <<\_ACEOF
4837 #define HAVE_LC_MESSAGES 1
4838 _ACEOF
4840 fi
4841 fi
4842 USE_NLS=yes
4845 gt_cv_have_gettext=no
4847 CATOBJEXT=NONE
4848 XGETTEXT=:
4849 INTLLIBS=
4851 if test "${ac_cv_header_libintl_h+set}" = set; then
4852 echo "$as_me:$LINENO: checking for libintl.h" >&5
4853 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4854 if test "${ac_cv_header_libintl_h+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 fi
4857 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4858 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4859 else
4860 # Is the header compilable?
4861 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4862 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 $ac_includes_default
4870 #include <libintl.h>
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_header_compiler=yes
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 ac_header_compiler=no
4899 fi
4900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4902 echo "${ECHO_T}$ac_header_compiler" >&6
4904 # Is the header present?
4905 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4906 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 #include <libintl.h>
4914 _ACEOF
4915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } >/dev/null; then
4923 if test -s conftest.err; then
4924 ac_cpp_err=$ac_c_preproc_warn_flag
4925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4926 else
4927 ac_cpp_err=
4928 fi
4929 else
4930 ac_cpp_err=yes
4931 fi
4932 if test -z "$ac_cpp_err"; then
4933 ac_header_preproc=yes
4934 else
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 ac_header_preproc=no
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4942 echo "${ECHO_T}$ac_header_preproc" >&6
4944 # So? What about this header?
4945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4946 yes:no: )
4947 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4948 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4950 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4951 ac_header_preproc=yes
4952 ;;
4953 no:yes:* )
4954 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4955 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4956 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4957 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4959 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4961 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4963 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4964 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4965 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4966 (
4967 cat <<\_ASBOX
4968 ## ------------------------------------------ ##
4969 ## Report this to the AC_PACKAGE_NAME lists. ##
4970 ## ------------------------------------------ ##
4971 _ASBOX
4972 ) |
4973 sed "s/^/$as_me: WARNING: /" >&2
4974 ;;
4975 esac
4976 echo "$as_me:$LINENO: checking for libintl.h" >&5
4977 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4978 if test "${ac_cv_header_libintl_h+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 ac_cv_header_libintl_h=$ac_header_preproc
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4984 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4986 fi
4987 if test $ac_cv_header_libintl_h = yes; then
4988 gt_cv_func_dgettext_libintl="no"
4989 libintl_extra_libs=""
4991 #
4992 # First check in libc
4993 #
4994 echo "$as_me:$LINENO: checking for ngettext in libc" >&5
4995 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
4996 if test "${gt_cv_func_ngettext_libc+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5006 #include <libintl.h>
5008 int
5009 main ()
5010 {
5011 return !ngettext ("","", 1)
5012 ;
5013 return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 gt_cv_func_ngettext_libc=yes
5038 else
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 gt_cv_func_ngettext_libc=no
5043 fi
5044 rm -f conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5047 fi
5048 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5049 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
5051 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5052 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5053 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
5054 if test "${gt_cv_func_dgettext_libc+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. */
5064 #include <libintl.h>
5066 int
5067 main ()
5068 {
5069 return !dgettext ("","")
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076 (eval $ac_link) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest$ac_exeext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 gt_cv_func_dgettext_libc=yes
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 gt_cv_func_dgettext_libc=no
5101 fi
5102 rm -f conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5105 fi
5106 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5107 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
5108 fi
5110 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5112 for ac_func in bind_textdomain_codeset
5113 do
5114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5115 echo "$as_me:$LINENO: checking for $ac_func" >&5
5116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117 if eval "test \"\${$as_ac_var+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5128 #define $ac_func innocuous_$ac_func
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func (); below.
5132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 <limits.h> exists even on freestanding compilers. */
5135 #ifdef __STDC__
5136 # include <limits.h>
5137 #else
5138 # include <assert.h>
5139 #endif
5141 #undef $ac_func
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 #ifdef __cplusplus
5145 extern "C"
5146 {
5147 #endif
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5150 char $ac_func ();
5151 /* The GNU C library defines this for functions which it implements
5152 to always fail with ENOSYS. Some functions are actually named
5153 something starting with __ and the normal name is an alias. */
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5155 choke me
5156 #else
5157 char (*f) () = $ac_func;
5158 #endif
5159 #ifdef __cplusplus
5160 }
5161 #endif
5163 int
5164 main ()
5165 {
5166 return f != $ac_func;
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest.$ac_objext conftest$ac_exeext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5173 (eval $ac_link) 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; } &&
5186 { ac_try='test -s conftest$ac_exeext'
5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 (eval $ac_try) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 eval "$as_ac_var=yes"
5193 else
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 eval "$as_ac_var=no"
5198 fi
5199 rm -f conftest.err conftest.$ac_objext \
5200 conftest$ac_exeext conftest.$ac_ext
5201 fi
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5204 if test `eval echo '${'$as_ac_var'}'` = yes; then
5205 cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5207 _ACEOF
5209 fi
5210 done
5212 fi
5214 #
5215 # If we don't have everything we want, check in libintl
5216 #
5217 if test "$gt_cv_func_dgettext_libc" != "yes" \
5218 || test "$gt_cv_func_ngettext_libc" != "yes" \
5219 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5221 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5222 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5223 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 ac_check_lib_save_LIBS=$LIBS
5227 LIBS="-lintl $LIBS"
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 #ifdef __cplusplus
5237 extern "C"
5238 #endif
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char bindtextdomain ();
5242 int
5243 main ()
5244 {
5245 bindtextdomain ();
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_lib_intl_bindtextdomain=yes
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 ac_cv_lib_intl_bindtextdomain=no
5277 fi
5278 rm -f conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
5280 LIBS=$ac_check_lib_save_LIBS
5281 fi
5282 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5283 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5284 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5285 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5286 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
5287 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 ac_check_lib_save_LIBS=$LIBS
5291 LIBS="-lintl $LIBS"
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 #ifdef __cplusplus
5301 extern "C"
5302 #endif
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5305 char ngettext ();
5306 int
5307 main ()
5308 {
5309 ngettext ();
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 rm -f conftest.$ac_objext conftest$ac_exeext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316 (eval $ac_link) 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; } &&
5329 { ac_try='test -s conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_lib_intl_ngettext=yes
5336 else
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_cv_lib_intl_ngettext=no
5341 fi
5342 rm -f conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344 LIBS=$ac_check_lib_save_LIBS
5345 fi
5346 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5347 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5348 if test $ac_cv_lib_intl_ngettext = yes; then
5349 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5350 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
5351 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 ac_check_lib_save_LIBS=$LIBS
5355 LIBS="-lintl $LIBS"
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5363 /* Override any gcc2 internal prototype to avoid an error. */
5364 #ifdef __cplusplus
5365 extern "C"
5366 #endif
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5369 char dgettext ();
5370 int
5371 main ()
5372 {
5373 dgettext ();
5374 ;
5375 return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest$ac_exeext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_lib_intl_dgettext=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_cv_lib_intl_dgettext=no
5405 fi
5406 rm -f conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 LIBS=$ac_check_lib_save_LIBS
5409 fi
5410 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5411 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
5412 if test $ac_cv_lib_intl_dgettext = yes; then
5413 gt_cv_func_dgettext_libintl=yes
5414 fi
5416 fi
5418 fi
5421 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5422 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
5423 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: " >&5
5425 echo "${ECHO_T}" >&6
5426 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5427 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
5428 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lintl -liconv $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h. */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 #ifdef __cplusplus
5442 extern "C"
5443 #endif
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5446 char ngettext ();
5447 int
5448 main ()
5449 {
5450 ngettext ();
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457 (eval $ac_link) 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_lib_intl_ngettext=yes
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_cv_lib_intl_ngettext=no
5482 fi
5483 rm -f conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485 LIBS=$ac_check_lib_save_LIBS
5486 fi
5487 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5488 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5489 if test $ac_cv_lib_intl_ngettext = yes; then
5490 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5491 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
5492 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lintl -liconv $LIBS"
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5505 #ifdef __cplusplus
5506 extern "C"
5507 #endif
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5510 char dcgettext ();
5511 int
5512 main ()
5513 {
5514 dcgettext ();
5515 ;
5516 return 0;
5517 }
5518 _ACEOF
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_lib_intl_dcgettext=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_cv_lib_intl_dcgettext=no
5546 fi
5547 rm -f conftest.err conftest.$ac_objext \
5548 conftest$ac_exeext conftest.$ac_ext
5549 LIBS=$ac_check_lib_save_LIBS
5550 fi
5551 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5552 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
5553 if test $ac_cv_lib_intl_dcgettext = yes; then
5554 gt_cv_func_dgettext_libintl=yes
5555 libintl_extra_libs=-liconv
5556 else
5557 :
5558 fi
5560 else
5561 :
5562 fi
5564 fi
5566 #
5567 # If we found libintl, then check in it for bind_textdomain_codeset();
5568 # we'll prefer libc if neither have bind_textdomain_codeset(),
5569 # and both have dgettext and ngettext
5570 #
5571 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5572 glib_save_LIBS="$LIBS"
5573 LIBS="$LIBS -lintl $libintl_extra_libs"
5574 unset ac_cv_func_bind_textdomain_codeset
5576 for ac_func in bind_textdomain_codeset
5577 do
5578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5579 echo "$as_me:$LINENO: checking for $ac_func" >&5
5580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5581 if eval "test \"\${$as_ac_var+set}\" = set"; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5592 #define $ac_func innocuous_$ac_func
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char $ac_func (); below.
5596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5597 <limits.h> exists even on freestanding compilers. */
5599 #ifdef __STDC__
5600 # include <limits.h>
5601 #else
5602 # include <assert.h>
5603 #endif
5605 #undef $ac_func
5607 /* Override any gcc2 internal prototype to avoid an error. */
5608 #ifdef __cplusplus
5609 extern "C"
5610 {
5611 #endif
5612 /* We use char because int might match the return type of a gcc2
5613 builtin and then its argument prototype would still apply. */
5614 char $ac_func ();
5615 /* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 choke me
5620 #else
5621 char (*f) () = $ac_func;
5622 #endif
5623 #ifdef __cplusplus
5624 }
5625 #endif
5627 int
5628 main ()
5629 {
5630 return f != $ac_func;
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 eval "$as_ac_var=yes"
5657 else
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5661 eval "$as_ac_var=no"
5662 fi
5663 rm -f conftest.err conftest.$ac_objext \
5664 conftest$ac_exeext conftest.$ac_ext
5665 fi
5666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5668 if test `eval echo '${'$as_ac_var'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5671 _ACEOF
5673 fi
5674 done
5676 LIBS="$glib_save_LIBS"
5678 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5679 gt_cv_func_dgettext_libc=no
5680 else
5681 if test "$gt_cv_func_dgettext_libc" = "yes" \
5682 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5683 gt_cv_func_dgettext_libintl=no
5684 fi
5685 fi
5686 fi
5687 fi
5689 if test "$gt_cv_func_dgettext_libc" = "yes" \
5690 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5691 gt_cv_have_gettext=yes
5692 fi
5694 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5695 INTLLIBS="-lintl $libintl_extra_libs"
5696 fi
5698 if test "$gt_cv_have_gettext" = "yes"; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_GETTEXT 1
5702 _ACEOF
5704 # Extract the first word of "msgfmt", so it can be a program name with args.
5705 set dummy msgfmt; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_path_MSGFMT+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 case "$MSGFMT" in
5712 /*)
5713 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5714 ;;
5715 *)
5716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5717 for ac_dir in $PATH; do
5718 test -z "$ac_dir" && ac_dir=.
5719 if test -f $ac_dir/$ac_word; then
5720 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5721 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5722 break
5723 fi
5724 fi
5725 done
5726 IFS="$ac_save_ifs"
5727 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5728 ;;
5729 esac
5730 fi
5731 MSGFMT="$ac_cv_path_MSGFMT"
5732 if test "$MSGFMT" != "no"; then
5733 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5734 echo "${ECHO_T}$MSGFMT" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738 fi
5739 if test "$MSGFMT" != "no"; then
5740 glib_save_LIBS="$LIBS"
5741 LIBS="$LIBS $INTLLIBS"
5743 for ac_func in dcgettext
5744 do
5745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5746 echo "$as_me:$LINENO: checking for $ac_func" >&5
5747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5748 if eval "test \"\${$as_ac_var+set}\" = set"; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5759 #define $ac_func innocuous_$ac_func
5761 /* System header to define __stub macros and hopefully few prototypes,
5762 which can conflict with char $ac_func (); below.
5763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5764 <limits.h> exists even on freestanding compilers. */
5766 #ifdef __STDC__
5767 # include <limits.h>
5768 #else
5769 # include <assert.h>
5770 #endif
5772 #undef $ac_func
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 #ifdef __cplusplus
5776 extern "C"
5777 {
5778 #endif
5779 /* We use char because int might match the return type of a gcc2
5780 builtin and then its argument prototype would still apply. */
5781 char $ac_func ();
5782 /* The GNU C library defines this for functions which it implements
5783 to always fail with ENOSYS. Some functions are actually named
5784 something starting with __ and the normal name is an alias. */
5785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5786 choke me
5787 #else
5788 char (*f) () = $ac_func;
5789 #endif
5790 #ifdef __cplusplus
5791 }
5792 #endif
5794 int
5795 main ()
5796 {
5797 return f != $ac_func;
5798 ;
5799 return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 (eval $ac_try) 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 eval "$as_ac_var=yes"
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 eval "$as_ac_var=no"
5829 fi
5830 rm -f conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 fi
5833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5835 if test `eval echo '${'$as_ac_var'}'` = yes; then
5836 cat >>confdefs.h <<_ACEOF
5837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5838 _ACEOF
5840 fi
5841 done
5843 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5844 set dummy gmsgfmt; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850 case $GMSGFMT in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5853 ;;
5854 *)
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5869 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5870 ;;
5871 esac
5872 fi
5873 GMSGFMT=$ac_cv_path_GMSGFMT
5875 if test -n "$GMSGFMT"; then
5876 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5877 echo "${ECHO_T}$GMSGFMT" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5883 # Extract the first word of "xgettext", so it can be a program name with args.
5884 set dummy xgettext; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 case "$XGETTEXT" in
5891 /*)
5892 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5893 ;;
5894 *)
5895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5896 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f $ac_dir/$ac_word; then
5899 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5900 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5901 break
5902 fi
5903 fi
5904 done
5905 IFS="$ac_save_ifs"
5906 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5907 ;;
5908 esac
5909 fi
5910 XGETTEXT="$ac_cv_path_XGETTEXT"
5911 if test "$XGETTEXT" != ":"; then
5912 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5913 echo "${ECHO_T}$XGETTEXT" >&6
5914 else
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5926 int
5927 main ()
5928 {
5929 extern int _nl_msg_cat_cntr;
5930 return _nl_msg_cat_cntr
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 CATOBJEXT=.gmo
5957 DATADIRNAME=share
5958 else
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 case $host in
5963 *-*-solaris*)
5964 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
5965 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
5966 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
5976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5977 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
5979 /* System header to define __stub macros and hopefully few prototypes,
5980 which can conflict with char bind_textdomain_codeset (); below.
5981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 <limits.h> exists even on freestanding compilers. */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5990 #undef bind_textdomain_codeset
5992 /* Override any gcc2 internal prototype to avoid an error. */
5993 #ifdef __cplusplus
5994 extern "C"
5995 {
5996 #endif
5997 /* We use char because int might match the return type of a gcc2
5998 builtin and then its argument prototype would still apply. */
5999 char bind_textdomain_codeset ();
6000 /* The GNU C library defines this for functions which it implements
6001 to always fail with ENOSYS. Some functions are actually named
6002 something starting with __ and the normal name is an alias. */
6003 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
6004 choke me
6005 #else
6006 char (*f) () = bind_textdomain_codeset;
6007 #endif
6008 #ifdef __cplusplus
6009 }
6010 #endif
6012 int
6013 main ()
6014 {
6015 return f != bind_textdomain_codeset;
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022 (eval $ac_link) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 (eval $ac_try) 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; } &&
6035 { ac_try='test -s conftest$ac_exeext'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_func_bind_textdomain_codeset=yes
6042 else
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6046 ac_cv_func_bind_textdomain_codeset=no
6047 fi
6048 rm -f conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 fi
6051 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6052 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
6053 if test $ac_cv_func_bind_textdomain_codeset = yes; then
6054 CATOBJEXT=.gmo
6055 DATADIRNAME=share
6056 else
6057 CATOBJEXT=.mo
6058 DATADIRNAME=lib
6059 fi
6061 ;;
6062 *)
6063 CATOBJEXT=.mo
6064 DATADIRNAME=lib
6065 ;;
6066 esac
6067 fi
6068 rm -f conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 LIBS="$glib_save_LIBS"
6071 INSTOBJEXT=.mo
6072 else
6073 gt_cv_have_gettext=no
6074 fi
6075 fi
6077 fi
6081 if test "$gt_cv_have_gettext" = "yes" ; then
6083 cat >>confdefs.h <<\_ACEOF
6084 #define ENABLE_NLS 1
6085 _ACEOF
6087 fi
6089 if test "$XGETTEXT" != ":"; then
6090 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6091 : ;
6092 else
6093 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6094 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6095 XGETTEXT=":"
6096 fi
6097 fi
6099 # We need to process the po/ directory.
6100 POSUB=po
6102 ac_config_commands="$ac_config_commands default-1"
6105 for lang in $ALL_LINGUAS; do
6106 GMOFILES="$GMOFILES $lang.gmo"
6107 POFILES="$POFILES $lang.po"
6108 done
6122 if test "$gt_cv_have_gettext" = "yes"; then
6123 if test "x$ALL_LINGUAS" = "x"; then
6124 LINGUAS=
6125 else
6126 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6127 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6128 NEW_LINGUAS=
6129 for presentlang in $ALL_LINGUAS; do
6130 useit=no
6131 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
6132 desiredlanguages="$LINGUAS"
6133 else
6134 desiredlanguages="$ALL_LINGUAS"
6135 fi
6136 for desiredlang in $desiredlanguages; do
6137 # Use the presentlang catalog if desiredlang is
6138 # a. equal to presentlang, or
6139 # b. a variant of presentlang (because in this case,
6140 # presentlang can be used as a fallback for messages
6141 # which are not translated in the desiredlang catalog).
6142 case "$desiredlang" in
6143 "$presentlang"*) useit=yes;;
6144 esac
6145 done
6146 if test $useit = yes; then
6147 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6148 fi
6149 done
6150 LINGUAS=$NEW_LINGUAS
6151 echo "$as_me:$LINENO: result: $LINGUAS" >&5
6152 echo "${ECHO_T}$LINGUAS" >&6
6153 fi
6155 if test -n "$LINGUAS"; then
6156 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6157 fi
6158 fi
6160 MKINSTALLDIRS=
6161 if test -n "$ac_aux_dir"; then
6162 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6163 fi
6164 if test -z "$MKINSTALLDIRS"; then
6165 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6166 fi
6169 test -d po || mkdir po
6170 if test "x$srcdir" != "x."; then
6171 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6172 posrcprefix="$srcdir/"
6173 else
6174 posrcprefix="../$srcdir/"
6175 fi
6176 else
6177 posrcprefix="../"
6178 fi
6179 rm -f po/POTFILES
6180 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6181 < $srcdir/po/POTFILES.in > po/POTFILES
6184 CFLAGS='-g3'
6187 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
6188 cat >confcache <<\_ACEOF
6189 # This file is a shell script that caches the results of configure
6190 # tests run on this system so they can be shared between configure
6191 # scripts and configure runs, see configure's option --config-cache.
6192 # It is not useful on other systems. If it contains results you don't
6193 # want to keep, you may remove or edit it.
6194 #
6195 # config.status only pays attention to the cache file if you give it
6196 # the --recheck option to rerun configure.
6197 #
6198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6200 # following values.
6202 _ACEOF
6204 # The following way of writing the cache mishandles newlines in values,
6205 # but we know of no workaround that is simple, portable, and efficient.
6206 # So, don't put newlines in cache variables' values.
6207 # Ultrix sh set writes to stderr and can't be redirected directly,
6208 # and sets the high bit in the cache file unless we assign to the vars.
6209 {
6210 (set) 2>&1 |
6211 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6212 *ac_space=\ *)
6213 # `set' does not quote correctly, so add quotes (double-quote
6214 # substitution turns \\\\ into \\, and sed turns \\ into \).
6215 sed -n \
6216 "s/'/'\\\\''/g;
6217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6218 ;;
6219 *)
6220 # `set' quotes correctly as required by POSIX, so do not add quotes.
6221 sed -n \
6222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6223 ;;
6224 esac;
6225 } |
6226 sed '
6227 t clear
6228 : clear
6229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6230 t end
6231 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6232 : end' >>confcache
6233 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6234 if test -w $cache_file; then
6235 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6236 cat confcache >$cache_file
6237 else
6238 echo "not updating unwritable cache $cache_file"
6239 fi
6240 fi
6241 rm -f confcache
6243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6244 # Let make expand exec_prefix.
6245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6247 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6248 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6249 # trailing colons and then remove the whole line if VPATH becomes empty
6250 # (actually we leave an empty line to preserve line numbers).
6251 if test "x$srcdir" = x.; then
6252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6253 s/:*\$(srcdir):*/:/;
6254 s/:*\${srcdir}:*/:/;
6255 s/:*@srcdir@:*/:/;
6256 s/^\([^=]*=[ ]*\):*/\1/;
6257 s/:*$//;
6258 s/^[^=]*=[ ]*$//;
6259 }'
6260 fi
6262 DEFS=-DHAVE_CONFIG_H
6264 ac_libobjs=
6265 ac_ltlibobjs=
6266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6267 # 1. Remove the extension, and $U if already installed.
6268 ac_i=`echo "$ac_i" |
6269 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6270 # 2. Add them.
6271 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6272 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6273 done
6274 LIBOBJS=$ac_libobjs
6276 LTLIBOBJS=$ac_ltlibobjs
6279 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6280 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6281 Usually this means the macro was only invoked conditionally." >&5
6282 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6283 Usually this means the macro was only invoked conditionally." >&2;}
6284 { (exit 1); exit 1; }; }
6285 fi
6286 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6287 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6288 Usually this means the macro was only invoked conditionally." >&5
6289 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6290 Usually this means the macro was only invoked conditionally." >&2;}
6291 { (exit 1); exit 1; }; }
6292 fi
6293 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6294 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6295 Usually this means the macro was only invoked conditionally." >&5
6296 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6297 Usually this means the macro was only invoked conditionally." >&2;}
6298 { (exit 1); exit 1; }; }
6299 fi
6300 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6301 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6302 Usually this means the macro was only invoked conditionally." >&5
6303 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6304 Usually this means the macro was only invoked conditionally." >&2;}
6305 { (exit 1); exit 1; }; }
6306 fi
6308 : ${CONFIG_STATUS=./config.status}
6309 ac_clean_files_save=$ac_clean_files
6310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6311 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6312 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6313 cat >$CONFIG_STATUS <<_ACEOF
6314 #! $SHELL
6315 # Generated by $as_me.
6316 # Run this file to recreate the current configuration.
6317 # Compiler output produced by configure, useful for debugging
6318 # configure, is in config.log if it exists.
6320 debug=false
6321 ac_cs_recheck=false
6322 ac_cs_silent=false
6323 SHELL=\${CONFIG_SHELL-$SHELL}
6324 _ACEOF
6326 cat >>$CONFIG_STATUS <<\_ACEOF
6327 ## --------------------- ##
6328 ## M4sh Initialization. ##
6329 ## --------------------- ##
6331 # Be Bourne compatible
6332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6333 emulate sh
6334 NULLCMD=:
6335 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6336 # is contrary to our usage. Disable this feature.
6337 alias -g '${1+"$@"}'='"$@"'
6338 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6339 set -o posix
6340 fi
6341 DUALCASE=1; export DUALCASE # for MKS sh
6343 # Support unset when possible.
6344 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6345 as_unset=unset
6346 else
6347 as_unset=false
6348 fi
6351 # Work around bugs in pre-3.0 UWIN ksh.
6352 $as_unset ENV MAIL MAILPATH
6353 PS1='$ '
6354 PS2='> '
6355 PS4='+ '
6357 # NLS nuisances.
6358 for as_var in \
6359 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6360 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6361 LC_TELEPHONE LC_TIME
6362 do
6363 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6364 eval $as_var=C; export $as_var
6365 else
6366 $as_unset $as_var
6367 fi
6368 done
6370 # Required to use basename.
6371 if expr a : '\(a\)' >/dev/null 2>&1; then
6372 as_expr=expr
6373 else
6374 as_expr=false
6375 fi
6377 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6378 as_basename=basename
6379 else
6380 as_basename=false
6381 fi
6384 # Name of the executable.
6385 as_me=`$as_basename "$0" ||
6386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6387 X"$0" : 'X\(//\)$' \| \
6388 X"$0" : 'X\(/\)$' \| \
6389 . : '\(.\)' 2>/dev/null ||
6390 echo X/"$0" |
6391 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6392 /^X\/\(\/\/\)$/{ s//\1/; q; }
6393 /^X\/\(\/\).*/{ s//\1/; q; }
6394 s/.*/./; q'`
6397 # PATH needs CR, and LINENO needs CR and PATH.
6398 # Avoid depending upon Character Ranges.
6399 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6402 as_cr_digits='0123456789'
6403 as_cr_alnum=$as_cr_Letters$as_cr_digits
6405 # The user is always right.
6406 if test "${PATH_SEPARATOR+set}" != set; then
6407 echo "#! /bin/sh" >conf$$.sh
6408 echo "exit 0" >>conf$$.sh
6409 chmod +x conf$$.sh
6410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6411 PATH_SEPARATOR=';'
6412 else
6413 PATH_SEPARATOR=:
6414 fi
6415 rm -f conf$$.sh
6416 fi
6419 as_lineno_1=$LINENO
6420 as_lineno_2=$LINENO
6421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6422 test "x$as_lineno_1" != "x$as_lineno_2" &&
6423 test "x$as_lineno_3" = "x$as_lineno_2" || {
6424 # Find who we are. Look in the path if we contain no path at all
6425 # relative or not.
6426 case $0 in
6427 *[\\/]* ) as_myself=$0 ;;
6428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6434 done
6436 ;;
6437 esac
6438 # We did not find ourselves, most probably we were run as `sh COMMAND'
6439 # in which case we are not to be found in the path.
6440 if test "x$as_myself" = x; then
6441 as_myself=$0
6442 fi
6443 if test ! -f "$as_myself"; then
6444 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6445 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6446 { (exit 1); exit 1; }; }
6447 fi
6448 case $CONFIG_SHELL in
6449 '')
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for as_base in sh bash ksh sh5; do
6456 case $as_dir in
6457 /*)
6458 if ("$as_dir/$as_base" -c '
6459 as_lineno_1=$LINENO
6460 as_lineno_2=$LINENO
6461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6462 test "x$as_lineno_1" != "x$as_lineno_2" &&
6463 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6464 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6465 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6466 CONFIG_SHELL=$as_dir/$as_base
6467 export CONFIG_SHELL
6468 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6469 fi;;
6470 esac
6471 done
6472 done
6473 ;;
6474 esac
6476 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6477 # uniformly replaced by the line number. The first 'sed' inserts a
6478 # line-number line before each line; the second 'sed' does the real
6479 # work. The second script uses 'N' to pair each line-number line
6480 # with the numbered line, and appends trailing '-' during
6481 # substitution so that $LINENO is not a special case at line end.
6482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6483 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6484 sed '=' <$as_myself |
6485 sed '
6486 N
6487 s,$,-,
6488 : loop
6489 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6490 t loop
6491 s,-$,,
6492 s,^['$as_cr_digits']*\n,,
6493 ' >$as_me.lineno &&
6494 chmod +x $as_me.lineno ||
6495 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6496 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6497 { (exit 1); exit 1; }; }
6499 # Don't try to exec as it changes $[0], causing all sort of problems
6500 # (the dirname of $[0] is not the place where we might find the
6501 # original and so on. Autoconf is especially sensible to this).
6502 . ./$as_me.lineno
6503 # Exit status is that of the last command.
6504 exit
6505 }
6508 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6509 *c*,-n*) ECHO_N= ECHO_C='
6510 ' ECHO_T=' ' ;;
6511 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6512 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6513 esac
6515 if expr a : '\(a\)' >/dev/null 2>&1; then
6516 as_expr=expr
6517 else
6518 as_expr=false
6519 fi
6521 rm -f conf$$ conf$$.exe conf$$.file
6522 echo >conf$$.file
6523 if ln -s conf$$.file conf$$ 2>/dev/null; then
6524 # We could just check for DJGPP; but this test a) works b) is more generic
6525 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6526 if test -f conf$$.exe; then
6527 # Don't use ln at all; we don't have any links
6528 as_ln_s='cp -p'
6529 else
6530 as_ln_s='ln -s'
6531 fi
6532 elif ln conf$$.file conf$$ 2>/dev/null; then
6533 as_ln_s=ln
6534 else
6535 as_ln_s='cp -p'
6536 fi
6537 rm -f conf$$ conf$$.exe conf$$.file
6539 if mkdir -p . 2>/dev/null; then
6540 as_mkdir_p=:
6541 else
6542 test -d ./-p && rmdir ./-p
6543 as_mkdir_p=false
6544 fi
6546 as_executable_p="test -f"
6548 # Sed expression to map a string onto a valid CPP name.
6549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6551 # Sed expression to map a string onto a valid variable name.
6552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6555 # IFS
6556 # We need space, tab and new line, in precisely that order.
6557 as_nl='
6558 '
6559 IFS=" $as_nl"
6561 # CDPATH.
6562 $as_unset CDPATH
6564 exec 6>&1
6566 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6567 # report actual input values of CONFIG_FILES etc. instead of their
6568 # values after options handling. Logging --version etc. is OK.
6569 exec 5>>config.log
6570 {
6571 echo
6572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6573 ## Running $as_me. ##
6574 _ASBOX
6575 } >&5
6576 cat >&5 <<_CSEOF
6578 This file was extended by $as_me, which was
6579 generated by GNU Autoconf 2.59. Invocation command line was
6581 CONFIG_FILES = $CONFIG_FILES
6582 CONFIG_HEADERS = $CONFIG_HEADERS
6583 CONFIG_LINKS = $CONFIG_LINKS
6584 CONFIG_COMMANDS = $CONFIG_COMMANDS
6585 $ $0 $@
6587 _CSEOF
6588 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6589 echo >&5
6590 _ACEOF
6592 # Files that config.status was made for.
6593 if test -n "$ac_config_files"; then
6594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6595 fi
6597 if test -n "$ac_config_headers"; then
6598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6599 fi
6601 if test -n "$ac_config_links"; then
6602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6603 fi
6605 if test -n "$ac_config_commands"; then
6606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6607 fi
6609 cat >>$CONFIG_STATUS <<\_ACEOF
6611 ac_cs_usage="\
6612 \`$as_me' instantiates files from templates according to the
6613 current configuration.
6615 Usage: $0 [OPTIONS] [FILE]...
6617 -h, --help print this help, then exit
6618 -V, --version print version number, then exit
6619 -q, --quiet do not print progress messages
6620 -d, --debug don't remove temporary files
6621 --recheck update $as_me by reconfiguring in the same conditions
6622 --file=FILE[:TEMPLATE]
6623 instantiate the configuration file FILE
6624 --header=FILE[:TEMPLATE]
6625 instantiate the configuration header FILE
6627 Configuration files:
6628 $config_files
6630 Configuration headers:
6631 $config_headers
6633 Configuration commands:
6634 $config_commands
6636 Report bugs to <bug-autoconf@gnu.org>."
6637 _ACEOF
6639 cat >>$CONFIG_STATUS <<_ACEOF
6640 ac_cs_version="\\
6641 config.status
6642 configured by $0, generated by GNU Autoconf 2.59,
6643 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6645 Copyright (C) 2003 Free Software Foundation, Inc.
6646 This config.status script is free software; the Free Software Foundation
6647 gives unlimited permission to copy, distribute and modify it."
6648 srcdir=$srcdir
6649 INSTALL="$INSTALL"
6650 _ACEOF
6652 cat >>$CONFIG_STATUS <<\_ACEOF
6653 # If no file are specified by the user, then we need to provide default
6654 # value. By we need to know if files were specified by the user.
6655 ac_need_defaults=:
6656 while test $# != 0
6657 do
6658 case $1 in
6659 --*=*)
6660 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6662 ac_shift=:
6663 ;;
6664 -*)
6665 ac_option=$1
6666 ac_optarg=$2
6667 ac_shift=shift
6668 ;;
6669 *) # This is not an option, so the user has probably given explicit
6670 # arguments.
6671 ac_option=$1
6672 ac_need_defaults=false;;
6673 esac
6675 case $ac_option in
6676 # Handling of the options.
6677 _ACEOF
6678 cat >>$CONFIG_STATUS <<\_ACEOF
6679 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6680 ac_cs_recheck=: ;;
6681 --version | --vers* | -V )
6682 echo "$ac_cs_version"; exit 0 ;;
6683 --he | --h)
6684 # Conflict between --help and --header
6685 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6686 Try \`$0 --help' for more information." >&5
6687 echo "$as_me: error: ambiguous option: $1
6688 Try \`$0 --help' for more information." >&2;}
6689 { (exit 1); exit 1; }; };;
6690 --help | --hel | -h )
6691 echo "$ac_cs_usage"; exit 0 ;;
6692 --debug | --d* | -d )
6693 debug=: ;;
6694 --file | --fil | --fi | --f )
6695 $ac_shift
6696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6697 ac_need_defaults=false;;
6698 --header | --heade | --head | --hea )
6699 $ac_shift
6700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6701 ac_need_defaults=false;;
6702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6704 ac_cs_silent=: ;;
6706 # This is an error.
6707 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6708 Try \`$0 --help' for more information." >&5
6709 echo "$as_me: error: unrecognized option: $1
6710 Try \`$0 --help' for more information." >&2;}
6711 { (exit 1); exit 1; }; } ;;
6713 *) ac_config_targets="$ac_config_targets $1" ;;
6715 esac
6716 shift
6717 done
6719 ac_configure_extra_args=
6721 if $ac_cs_silent; then
6722 exec 6>/dev/null
6723 ac_configure_extra_args="$ac_configure_extra_args --silent"
6724 fi
6726 _ACEOF
6727 cat >>$CONFIG_STATUS <<_ACEOF
6728 if \$ac_cs_recheck; then
6729 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6730 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6731 fi
6733 _ACEOF
6735 cat >>$CONFIG_STATUS <<_ACEOF
6736 #
6737 # INIT-COMMANDS section.
6738 #
6740 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6743 _ACEOF
6747 cat >>$CONFIG_STATUS <<\_ACEOF
6748 for ac_config_target in $ac_config_targets
6749 do
6750 case "$ac_config_target" in
6751 # Handling of arguments.
6752 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6753 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6754 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
6755 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6756 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6757 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6758 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6759 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6760 { (exit 1); exit 1; }; };;
6761 esac
6762 done
6764 # If the user did not use the arguments to specify the items to instantiate,
6765 # then the envvar interface is used. Set only those that are not.
6766 # We use the long form for the default assignment because of an extremely
6767 # bizarre bug on SunOS 4.1.3.
6768 if $ac_need_defaults; then
6769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6772 fi
6774 # Have a temporary directory for convenience. Make it in the build tree
6775 # simply because there is no reason to put it here, and in addition,
6776 # creating and moving files from /tmp can sometimes cause problems.
6777 # Create a temporary directory, and hook for its removal unless debugging.
6778 $debug ||
6779 {
6780 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6781 trap '{ (exit 1); exit 1; }' 1 2 13 15
6782 }
6784 # Create a (secure) tmp directory for tmp files.
6786 {
6787 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6788 test -n "$tmp" && test -d "$tmp"
6789 } ||
6790 {
6791 tmp=./confstat$$-$RANDOM
6792 (umask 077 && mkdir $tmp)
6793 } ||
6794 {
6795 echo "$me: cannot create a temporary directory in ." >&2
6796 { (exit 1); exit 1; }
6797 }
6799 _ACEOF
6801 cat >>$CONFIG_STATUS <<_ACEOF
6803 #
6804 # CONFIG_FILES section.
6805 #
6807 # No need to generate the scripts if there are no CONFIG_FILES.
6808 # This happens for instance when ./config.status config.h
6809 if test -n "\$CONFIG_FILES"; then
6810 # Protect against being on the right side of a sed subst in config.status.
6811 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6812 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6813 s,@SHELL@,$SHELL,;t t
6814 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6815 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6816 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6817 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6818 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6819 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6820 s,@exec_prefix@,$exec_prefix,;t t
6821 s,@prefix@,$prefix,;t t
6822 s,@program_transform_name@,$program_transform_name,;t t
6823 s,@bindir@,$bindir,;t t
6824 s,@sbindir@,$sbindir,;t t
6825 s,@libexecdir@,$libexecdir,;t t
6826 s,@datadir@,$datadir,;t t
6827 s,@sysconfdir@,$sysconfdir,;t t
6828 s,@sharedstatedir@,$sharedstatedir,;t t
6829 s,@localstatedir@,$localstatedir,;t t
6830 s,@libdir@,$libdir,;t t
6831 s,@includedir@,$includedir,;t t
6832 s,@oldincludedir@,$oldincludedir,;t t
6833 s,@infodir@,$infodir,;t t
6834 s,@mandir@,$mandir,;t t
6835 s,@build_alias@,$build_alias,;t t
6836 s,@host_alias@,$host_alias,;t t
6837 s,@target_alias@,$target_alias,;t t
6838 s,@DEFS@,$DEFS,;t t
6839 s,@ECHO_C@,$ECHO_C,;t t
6840 s,@ECHO_N@,$ECHO_N,;t t
6841 s,@ECHO_T@,$ECHO_T,;t t
6842 s,@LIBS@,$LIBS,;t t
6843 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6844 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6845 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6846 s,@CYGPATH_W@,$CYGPATH_W,;t t
6847 s,@PACKAGE@,$PACKAGE,;t t
6848 s,@VERSION@,$VERSION,;t t
6849 s,@ACLOCAL@,$ACLOCAL,;t t
6850 s,@AUTOCONF@,$AUTOCONF,;t t
6851 s,@AUTOMAKE@,$AUTOMAKE,;t t
6852 s,@AUTOHEADER@,$AUTOHEADER,;t t
6853 s,@MAKEINFO@,$MAKEINFO,;t t
6854 s,@AMTAR@,$AMTAR,;t t
6855 s,@install_sh@,$install_sh,;t t
6856 s,@STRIP@,$STRIP,;t t
6857 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6858 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6859 s,@AWK@,$AWK,;t t
6860 s,@SET_MAKE@,$SET_MAKE,;t t
6861 s,@am__leading_dot@,$am__leading_dot,;t t
6862 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6863 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6864 s,@MAINT@,$MAINT,;t t
6865 s,@CC@,$CC,;t t
6866 s,@CFLAGS@,$CFLAGS,;t t
6867 s,@LDFLAGS@,$LDFLAGS,;t t
6868 s,@CPPFLAGS@,$CPPFLAGS,;t t
6869 s,@ac_ct_CC@,$ac_ct_CC,;t t
6870 s,@EXEEXT@,$EXEEXT,;t t
6871 s,@OBJEXT@,$OBJEXT,;t t
6872 s,@DEPDIR@,$DEPDIR,;t t
6873 s,@am__include@,$am__include,;t t
6874 s,@am__quote@,$am__quote,;t t
6875 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6876 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6877 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6878 s,@CCDEPMODE@,$CCDEPMODE,;t t
6879 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6880 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6881 s,@CPP@,$CPP,;t t
6882 s,@EGREP@,$EGREP,;t t
6883 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
6884 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
6885 s,@PACKAGE_CFLAGS@,$PACKAGE_CFLAGS,;t t
6886 s,@PACKAGE_LIBS@,$PACKAGE_LIBS,;t t
6887 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
6888 s,@USE_NLS@,$USE_NLS,;t t
6889 s,@MSGFMT@,$MSGFMT,;t t
6890 s,@GMSGFMT@,$GMSGFMT,;t t
6891 s,@XGETTEXT@,$XGETTEXT,;t t
6892 s,@CATALOGS@,$CATALOGS,;t t
6893 s,@CATOBJEXT@,$CATOBJEXT,;t t
6894 s,@DATADIRNAME@,$DATADIRNAME,;t t
6895 s,@GMOFILES@,$GMOFILES,;t t
6896 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6897 s,@INTLLIBS@,$INTLLIBS,;t t
6898 s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
6899 s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
6900 s,@POFILES@,$POFILES,;t t
6901 s,@POSUB@,$POSUB,;t t
6902 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6903 s,@LIBOBJS@,$LIBOBJS,;t t
6904 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6905 CEOF
6907 _ACEOF
6909 cat >>$CONFIG_STATUS <<\_ACEOF
6910 # Split the substitutions into bite-sized pieces for seds with
6911 # small command number limits, like on Digital OSF/1 and HP-UX.
6912 ac_max_sed_lines=48
6913 ac_sed_frag=1 # Number of current file.
6914 ac_beg=1 # First line for current file.
6915 ac_end=$ac_max_sed_lines # Line after last line for current file.
6916 ac_more_lines=:
6917 ac_sed_cmds=
6918 while $ac_more_lines; do
6919 if test $ac_beg -gt 1; then
6920 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6921 else
6922 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6923 fi
6924 if test ! -s $tmp/subs.frag; then
6925 ac_more_lines=false
6926 else
6927 # The purpose of the label and of the branching condition is to
6928 # speed up the sed processing (if there are no `@' at all, there
6929 # is no need to browse any of the substitutions).
6930 # These are the two extra sed commands mentioned above.
6931 (echo ':t
6932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6933 if test -z "$ac_sed_cmds"; then
6934 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6935 else
6936 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6937 fi
6938 ac_sed_frag=`expr $ac_sed_frag + 1`
6939 ac_beg=$ac_end
6940 ac_end=`expr $ac_end + $ac_max_sed_lines`
6941 fi
6942 done
6943 if test -z "$ac_sed_cmds"; then
6944 ac_sed_cmds=cat
6945 fi
6946 fi # test -n "$CONFIG_FILES"
6948 _ACEOF
6949 cat >>$CONFIG_STATUS <<\_ACEOF
6950 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6952 case $ac_file in
6953 - | *:- | *:-:* ) # input from stdin
6954 cat >$tmp/stdin
6955 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6957 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6958 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6959 * ) ac_file_in=$ac_file.in ;;
6960 esac
6962 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6963 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6965 X"$ac_file" : 'X\(//\)[^/]' \| \
6966 X"$ac_file" : 'X\(//\)$' \| \
6967 X"$ac_file" : 'X\(/\)' \| \
6968 . : '\(.\)' 2>/dev/null ||
6969 echo X"$ac_file" |
6970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6972 /^X\(\/\/\)$/{ s//\1/; q; }
6973 /^X\(\/\).*/{ s//\1/; q; }
6974 s/.*/./; q'`
6975 { if $as_mkdir_p; then
6976 mkdir -p "$ac_dir"
6977 else
6978 as_dir="$ac_dir"
6979 as_dirs=
6980 while test ! -d "$as_dir"; do
6981 as_dirs="$as_dir $as_dirs"
6982 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6984 X"$as_dir" : 'X\(//\)[^/]' \| \
6985 X"$as_dir" : 'X\(//\)$' \| \
6986 X"$as_dir" : 'X\(/\)' \| \
6987 . : '\(.\)' 2>/dev/null ||
6988 echo X"$as_dir" |
6989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6991 /^X\(\/\/\)$/{ s//\1/; q; }
6992 /^X\(\/\).*/{ s//\1/; q; }
6993 s/.*/./; q'`
6994 done
6995 test ! -n "$as_dirs" || mkdir $as_dirs
6996 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6997 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6998 { (exit 1); exit 1; }; }; }
7000 ac_builddir=.
7002 if test "$ac_dir" != .; then
7003 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7004 # A "../" for each directory in $ac_dir_suffix.
7005 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7006 else
7007 ac_dir_suffix= ac_top_builddir=
7008 fi
7010 case $srcdir in
7011 .) # No --srcdir option. We are building in place.
7012 ac_srcdir=.
7013 if test -z "$ac_top_builddir"; then
7014 ac_top_srcdir=.
7015 else
7016 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7017 fi ;;
7018 [\\/]* | ?:[\\/]* ) # Absolute path.
7019 ac_srcdir=$srcdir$ac_dir_suffix;
7020 ac_top_srcdir=$srcdir ;;
7021 *) # Relative path.
7022 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7023 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7024 esac
7026 # Do not use `cd foo && pwd` to compute absolute paths, because
7027 # the directories may not exist.
7028 case `pwd` in
7029 .) ac_abs_builddir="$ac_dir";;
7030 *)
7031 case "$ac_dir" in
7032 .) ac_abs_builddir=`pwd`;;
7033 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7034 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7035 esac;;
7036 esac
7037 case $ac_abs_builddir in
7038 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7039 *)
7040 case ${ac_top_builddir}. in
7041 .) ac_abs_top_builddir=$ac_abs_builddir;;
7042 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7043 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7044 esac;;
7045 esac
7046 case $ac_abs_builddir in
7047 .) ac_abs_srcdir=$ac_srcdir;;
7048 *)
7049 case $ac_srcdir in
7050 .) ac_abs_srcdir=$ac_abs_builddir;;
7051 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7052 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7053 esac;;
7054 esac
7055 case $ac_abs_builddir in
7056 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7057 *)
7058 case $ac_top_srcdir in
7059 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7060 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7061 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7062 esac;;
7063 esac
7066 case $INSTALL in
7067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7068 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7069 esac
7071 # Let's still pretend it is `configure' which instantiates (i.e., don't
7072 # use $as_me), people would be surprised to read:
7073 # /* config.h. Generated by config.status. */
7074 if test x"$ac_file" = x-; then
7075 configure_input=
7076 else
7077 configure_input="$ac_file. "
7078 fi
7079 configure_input=$configure_input"Generated from `echo $ac_file_in |
7080 sed 's,.*/,,'` by configure."
7082 # First look for the input files in the build tree, otherwise in the
7083 # src tree.
7084 ac_file_inputs=`IFS=:
7085 for f in $ac_file_in; do
7086 case $f in
7087 -) echo $tmp/stdin ;;
7088 [\\/$]*)
7089 # Absolute (can't be DOS-style, as IFS=:)
7090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7091 echo "$as_me: error: cannot find input file: $f" >&2;}
7092 { (exit 1); exit 1; }; }
7093 echo "$f";;
7094 *) # Relative
7095 if test -f "$f"; then
7096 # Build tree
7097 echo "$f"
7098 elif test -f "$srcdir/$f"; then
7099 # Source tree
7100 echo "$srcdir/$f"
7101 else
7102 # /dev/null tree
7103 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7104 echo "$as_me: error: cannot find input file: $f" >&2;}
7105 { (exit 1); exit 1; }; }
7106 fi;;
7107 esac
7108 done` || { (exit 1); exit 1; }
7110 if test x"$ac_file" != x-; then
7111 { echo "$as_me:$LINENO: creating $ac_file" >&5
7112 echo "$as_me: creating $ac_file" >&6;}
7113 rm -f "$ac_file"
7114 fi
7115 _ACEOF
7116 cat >>$CONFIG_STATUS <<_ACEOF
7117 sed "$ac_vpsub
7118 $extrasub
7119 _ACEOF
7120 cat >>$CONFIG_STATUS <<\_ACEOF
7121 :t
7122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7123 s,@configure_input@,$configure_input,;t t
7124 s,@srcdir@,$ac_srcdir,;t t
7125 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7126 s,@top_srcdir@,$ac_top_srcdir,;t t
7127 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7128 s,@builddir@,$ac_builddir,;t t
7129 s,@abs_builddir@,$ac_abs_builddir,;t t
7130 s,@top_builddir@,$ac_top_builddir,;t t
7131 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7132 s,@INSTALL@,$ac_INSTALL,;t t
7133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7134 rm -f $tmp/stdin
7135 if test x"$ac_file" != x-; then
7136 mv $tmp/out $ac_file
7137 else
7138 cat $tmp/out
7139 rm -f $tmp/out
7140 fi
7142 done
7143 _ACEOF
7144 cat >>$CONFIG_STATUS <<\_ACEOF
7146 #
7147 # CONFIG_HEADER section.
7148 #
7150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7152 #
7153 # ac_d sets the value in "#define NAME VALUE" lines.
7154 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7155 ac_dB='[ ].*$,\1#\2'
7156 ac_dC=' '
7157 ac_dD=',;t'
7158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7159 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7160 ac_uB='$,\1#\2define\3'
7161 ac_uC=' '
7162 ac_uD=',;t'
7164 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7166 case $ac_file in
7167 - | *:- | *:-:* ) # input from stdin
7168 cat >$tmp/stdin
7169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7173 * ) ac_file_in=$ac_file.in ;;
7174 esac
7176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7177 echo "$as_me: creating $ac_file" >&6;}
7179 # First look for the input files in the build tree, otherwise in the
7180 # src tree.
7181 ac_file_inputs=`IFS=:
7182 for f in $ac_file_in; do
7183 case $f in
7184 -) echo $tmp/stdin ;;
7185 [\\/$]*)
7186 # Absolute (can't be DOS-style, as IFS=:)
7187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7188 echo "$as_me: error: cannot find input file: $f" >&2;}
7189 { (exit 1); exit 1; }; }
7190 # Do quote $f, to prevent DOS paths from being IFS'd.
7191 echo "$f";;
7192 *) # Relative
7193 if test -f "$f"; then
7194 # Build tree
7195 echo "$f"
7196 elif test -f "$srcdir/$f"; then
7197 # Source tree
7198 echo "$srcdir/$f"
7199 else
7200 # /dev/null tree
7201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7202 echo "$as_me: error: cannot find input file: $f" >&2;}
7203 { (exit 1); exit 1; }; }
7204 fi;;
7205 esac
7206 done` || { (exit 1); exit 1; }
7207 # Remove the trailing spaces.
7208 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7210 _ACEOF
7212 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7213 # `conftest.undefs', that substitutes the proper values into
7214 # config.h.in to produce config.h. The first handles `#define'
7215 # templates, and the second `#undef' templates.
7216 # And first: Protect against being on the right side of a sed subst in
7217 # config.status. Protect against being in an unquoted here document
7218 # in config.status.
7219 rm -f conftest.defines conftest.undefs
7220 # Using a here document instead of a string reduces the quoting nightmare.
7221 # Putting comments in sed scripts is not portable.
7222 #
7223 # `end' is used to avoid that the second main sed command (meant for
7224 # 0-ary CPP macros) applies to n-ary macro definitions.
7225 # See the Autoconf documentation for `clear'.
7226 cat >confdef2sed.sed <<\_ACEOF
7227 s/[\\&,]/\\&/g
7228 s,[\\$`],\\&,g
7229 t clear
7230 : clear
7231 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7232 t end
7233 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7234 : end
7235 _ACEOF
7236 # If some macros were called several times there might be several times
7237 # the same #defines, which is useless. Nevertheless, we may not want to
7238 # sort them, since we want the *last* AC-DEFINE to be honored.
7239 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7240 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7241 rm -f confdef2sed.sed
7243 # This sed command replaces #undef with comments. This is necessary, for
7244 # example, in the case of _POSIX_SOURCE, which is predefined and required
7245 # on some systems where configure will not decide to define it.
7246 cat >>conftest.undefs <<\_ACEOF
7247 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7248 _ACEOF
7250 # Break up conftest.defines because some shells have a limit on the size
7251 # of here documents, and old seds have small limits too (100 cmds).
7252 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7253 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7254 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7255 echo ' :' >>$CONFIG_STATUS
7256 rm -f conftest.tail
7257 while grep . conftest.defines >/dev/null
7258 do
7259 # Write a limited-size here document to $tmp/defines.sed.
7260 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7261 # Speed up: don't consider the non `#define' lines.
7262 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7263 # Work around the forget-to-reset-the-flag bug.
7264 echo 't clr' >>$CONFIG_STATUS
7265 echo ': clr' >>$CONFIG_STATUS
7266 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7267 echo 'CEOF
7268 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7269 rm -f $tmp/in
7270 mv $tmp/out $tmp/in
7271 ' >>$CONFIG_STATUS
7272 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7273 rm -f conftest.defines
7274 mv conftest.tail conftest.defines
7275 done
7276 rm -f conftest.defines
7277 echo ' fi # grep' >>$CONFIG_STATUS
7278 echo >>$CONFIG_STATUS
7280 # Break up conftest.undefs because some shells have a limit on the size
7281 # of here documents, and old seds have small limits too (100 cmds).
7282 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7283 rm -f conftest.tail
7284 while grep . conftest.undefs >/dev/null
7285 do
7286 # Write a limited-size here document to $tmp/undefs.sed.
7287 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7288 # Speed up: don't consider the non `#undef'
7289 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7290 # Work around the forget-to-reset-the-flag bug.
7291 echo 't clr' >>$CONFIG_STATUS
7292 echo ': clr' >>$CONFIG_STATUS
7293 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7294 echo 'CEOF
7295 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7296 rm -f $tmp/in
7297 mv $tmp/out $tmp/in
7298 ' >>$CONFIG_STATUS
7299 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7300 rm -f conftest.undefs
7301 mv conftest.tail conftest.undefs
7302 done
7303 rm -f conftest.undefs
7305 cat >>$CONFIG_STATUS <<\_ACEOF
7306 # Let's still pretend it is `configure' which instantiates (i.e., don't
7307 # use $as_me), people would be surprised to read:
7308 # /* config.h. Generated by config.status. */
7309 if test x"$ac_file" = x-; then
7310 echo "/* Generated by configure. */" >$tmp/config.h
7311 else
7312 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7313 fi
7314 cat $tmp/in >>$tmp/config.h
7315 rm -f $tmp/in
7316 if test x"$ac_file" != x-; then
7317 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7318 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7319 echo "$as_me: $ac_file is unchanged" >&6;}
7320 else
7321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7323 X"$ac_file" : 'X\(//\)[^/]' \| \
7324 X"$ac_file" : 'X\(//\)$' \| \
7325 X"$ac_file" : 'X\(/\)' \| \
7326 . : '\(.\)' 2>/dev/null ||
7327 echo X"$ac_file" |
7328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7330 /^X\(\/\/\)$/{ s//\1/; q; }
7331 /^X\(\/\).*/{ s//\1/; q; }
7332 s/.*/./; q'`
7333 { if $as_mkdir_p; then
7334 mkdir -p "$ac_dir"
7335 else
7336 as_dir="$ac_dir"
7337 as_dirs=
7338 while test ! -d "$as_dir"; do
7339 as_dirs="$as_dir $as_dirs"
7340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7342 X"$as_dir" : 'X\(//\)[^/]' \| \
7343 X"$as_dir" : 'X\(//\)$' \| \
7344 X"$as_dir" : 'X\(/\)' \| \
7345 . : '\(.\)' 2>/dev/null ||
7346 echo X"$as_dir" |
7347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7349 /^X\(\/\/\)$/{ s//\1/; q; }
7350 /^X\(\/\).*/{ s//\1/; q; }
7351 s/.*/./; q'`
7352 done
7353 test ! -n "$as_dirs" || mkdir $as_dirs
7354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7355 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7356 { (exit 1); exit 1; }; }; }
7358 rm -f $ac_file
7359 mv $tmp/config.h $ac_file
7360 fi
7361 else
7362 cat $tmp/config.h
7363 rm -f $tmp/config.h
7364 fi
7365 # Compute $ac_file's index in $config_headers.
7366 _am_stamp_count=1
7367 for _am_header in $config_headers :; do
7368 case $_am_header in
7369 $ac_file | $ac_file:* )
7370 break ;;
7371 * )
7372 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7373 esac
7374 done
7375 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7376 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7377 X$ac_file : 'X\(//\)[^/]' \| \
7378 X$ac_file : 'X\(//\)$' \| \
7379 X$ac_file : 'X\(/\)' \| \
7380 . : '\(.\)' 2>/dev/null ||
7381 echo X$ac_file |
7382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7384 /^X\(\/\/\)$/{ s//\1/; q; }
7385 /^X\(\/\).*/{ s//\1/; q; }
7386 s/.*/./; q'`/stamp-h$_am_stamp_count
7387 done
7388 _ACEOF
7389 cat >>$CONFIG_STATUS <<\_ACEOF
7391 #
7392 # CONFIG_COMMANDS section.
7393 #
7394 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7395 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7396 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7397 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7398 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7399 X"$ac_dest" : 'X\(//\)[^/]' \| \
7400 X"$ac_dest" : 'X\(//\)$' \| \
7401 X"$ac_dest" : 'X\(/\)' \| \
7402 . : '\(.\)' 2>/dev/null ||
7403 echo X"$ac_dest" |
7404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7406 /^X\(\/\/\)$/{ s//\1/; q; }
7407 /^X\(\/\).*/{ s//\1/; q; }
7408 s/.*/./; q'`
7409 { if $as_mkdir_p; then
7410 mkdir -p "$ac_dir"
7411 else
7412 as_dir="$ac_dir"
7413 as_dirs=
7414 while test ! -d "$as_dir"; do
7415 as_dirs="$as_dir $as_dirs"
7416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7418 X"$as_dir" : 'X\(//\)[^/]' \| \
7419 X"$as_dir" : 'X\(//\)$' \| \
7420 X"$as_dir" : 'X\(/\)' \| \
7421 . : '\(.\)' 2>/dev/null ||
7422 echo X"$as_dir" |
7423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7425 /^X\(\/\/\)$/{ s//\1/; q; }
7426 /^X\(\/\).*/{ s//\1/; q; }
7427 s/.*/./; q'`
7428 done
7429 test ! -n "$as_dirs" || mkdir $as_dirs
7430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7432 { (exit 1); exit 1; }; }; }
7434 ac_builddir=.
7436 if test "$ac_dir" != .; then
7437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7438 # A "../" for each directory in $ac_dir_suffix.
7439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7440 else
7441 ac_dir_suffix= ac_top_builddir=
7442 fi
7444 case $srcdir in
7445 .) # No --srcdir option. We are building in place.
7446 ac_srcdir=.
7447 if test -z "$ac_top_builddir"; then
7448 ac_top_srcdir=.
7449 else
7450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7451 fi ;;
7452 [\\/]* | ?:[\\/]* ) # Absolute path.
7453 ac_srcdir=$srcdir$ac_dir_suffix;
7454 ac_top_srcdir=$srcdir ;;
7455 *) # Relative path.
7456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7457 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7458 esac
7460 # Do not use `cd foo && pwd` to compute absolute paths, because
7461 # the directories may not exist.
7462 case `pwd` in
7463 .) ac_abs_builddir="$ac_dir";;
7464 *)
7465 case "$ac_dir" in
7466 .) ac_abs_builddir=`pwd`;;
7467 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7468 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7469 esac;;
7470 esac
7471 case $ac_abs_builddir in
7472 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7473 *)
7474 case ${ac_top_builddir}. in
7475 .) ac_abs_top_builddir=$ac_abs_builddir;;
7476 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7477 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7478 esac;;
7479 esac
7480 case $ac_abs_builddir in
7481 .) ac_abs_srcdir=$ac_srcdir;;
7482 *)
7483 case $ac_srcdir in
7484 .) ac_abs_srcdir=$ac_abs_builddir;;
7485 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7486 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7487 esac;;
7488 esac
7489 case $ac_abs_builddir in
7490 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7491 *)
7492 case $ac_top_srcdir in
7493 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7494 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7495 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7496 esac;;
7497 esac
7500 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7501 echo "$as_me: executing $ac_dest commands" >&6;}
7502 case $ac_dest in
7503 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7504 # Strip MF so we end up with the name of the file.
7505 mf=`echo "$mf" | sed -e 's/:.*$//'`
7506 # Check whether this is an Automake generated Makefile or not.
7507 # We used to match only the files named `Makefile.in', but
7508 # some people rename them; so instead we look at the file content.
7509 # Grep'ing the first line is not enough: some people post-process
7510 # each Makefile.in and add a new line on top of each file to say so.
7511 # So let's grep whole file.
7512 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7513 dirpart=`(dirname "$mf") 2>/dev/null ||
7514 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7515 X"$mf" : 'X\(//\)[^/]' \| \
7516 X"$mf" : 'X\(//\)$' \| \
7517 X"$mf" : 'X\(/\)' \| \
7518 . : '\(.\)' 2>/dev/null ||
7519 echo X"$mf" |
7520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7522 /^X\(\/\/\)$/{ s//\1/; q; }
7523 /^X\(\/\).*/{ s//\1/; q; }
7524 s/.*/./; q'`
7525 else
7526 continue
7527 fi
7528 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7529 # Extract the definition of DEP_FILES from the Makefile without
7530 # running `make'.
7531 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7532 test -z "$DEPDIR" && continue
7533 # When using ansi2knr, U may be empty or an underscore; expand it
7534 U=`sed -n -e '/^U = / s///p' < "$mf"`
7535 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7536 # We invoke sed twice because it is the simplest approach to
7537 # changing $(DEPDIR) to its actual value in the expansion.
7538 for file in `sed -n -e '
7539 /^DEP_FILES = .*\\\\$/ {
7540 s/^DEP_FILES = //
7541 :loop
7542 s/\\\\$//
7543 p
7544 n
7545 /\\\\$/ b loop
7546 p
7547 }
7548 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7550 # Make sure the directory exists.
7551 test -f "$dirpart/$file" && continue
7552 fdir=`(dirname "$file") 2>/dev/null ||
7553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7554 X"$file" : 'X\(//\)[^/]' \| \
7555 X"$file" : 'X\(//\)$' \| \
7556 X"$file" : 'X\(/\)' \| \
7557 . : '\(.\)' 2>/dev/null ||
7558 echo X"$file" |
7559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7561 /^X\(\/\/\)$/{ s//\1/; q; }
7562 /^X\(\/\).*/{ s//\1/; q; }
7563 s/.*/./; q'`
7564 { if $as_mkdir_p; then
7565 mkdir -p $dirpart/$fdir
7566 else
7567 as_dir=$dirpart/$fdir
7568 as_dirs=
7569 while test ! -d "$as_dir"; do
7570 as_dirs="$as_dir $as_dirs"
7571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7573 X"$as_dir" : 'X\(//\)[^/]' \| \
7574 X"$as_dir" : 'X\(//\)$' \| \
7575 X"$as_dir" : 'X\(/\)' \| \
7576 . : '\(.\)' 2>/dev/null ||
7577 echo X"$as_dir" |
7578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7580 /^X\(\/\/\)$/{ s//\1/; q; }
7581 /^X\(\/\).*/{ s//\1/; q; }
7582 s/.*/./; q'`
7583 done
7584 test ! -n "$as_dirs" || mkdir $as_dirs
7585 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7586 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7587 { (exit 1); exit 1; }; }; }
7589 # echo "creating $dirpart/$file"
7590 echo '# dummy' > "$dirpart/$file"
7591 done
7592 done
7593 ;;
7594 default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
7595 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7596 esac ;;
7597 esac
7598 done
7599 _ACEOF
7601 cat >>$CONFIG_STATUS <<\_ACEOF
7603 { (exit 0); exit 0; }
7604 _ACEOF
7605 chmod +x $CONFIG_STATUS
7606 ac_clean_files=$ac_clean_files_save
7609 # configure is writing to config.log, and then calls config.status.
7610 # config.status does its own redirection, appending to config.log.
7611 # Unfortunately, on DOS this fails, as config.log is still kept open
7612 # by configure, so config.status won't be able to write to it; its
7613 # output is simply discarded. So we exec the FD to /dev/null,
7614 # effectively closing config.log, so it can be properly (re)opened and
7615 # appended to by config.status. When coming back to configure, we
7616 # need to make the FD available again.
7617 if test "$no_create" != yes; then
7618 ac_cs_success=:
7619 ac_config_status_args=
7620 test "$silent" = yes &&
7621 ac_config_status_args="$ac_config_status_args --quiet"
7622 exec 5>/dev/null
7623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7624 exec 5>>config.log
7625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7626 # would make configure fail if this is the last instruction.
7627 $ac_cs_success || { (exit 1); exit 1; }
7628 fi
.