Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="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"
311
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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=''
314
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
334
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'
352
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
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
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 ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
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 ;;
394
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" ;;
403
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'" ;;
416
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 ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
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 ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
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 ;;
465
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 ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
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 ;;
491
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 ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
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 ;;
512
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 ;;
519
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 ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
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 ;;
546
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 ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
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 ;;
574
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 ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
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'" ;;
598
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" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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 ;;
618
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 ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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 ;;
640
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 ;;
648
649 esac
650 done
651
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
657
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
668
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
680
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
687
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
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
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
785
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.
794
795 Usage: $0 [OPTION]... [VAR=VALUE]...
796
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.
799
800 Defaults for the options are specified in brackets.
801
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 \`..']
812
813 _ACEOF
814
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]
821
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'.
826
827 For better control, use the options below.
828
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
843
844 cat <<\_ACEOF
845
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
852
853 if test -n "$ac_init_help"; then
854
855 cat <<\_ACEOF
856
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
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
871 PKG_CONFIG path to pkg-config utility
872 PACKAGE_CFLAGS
873 C compiler flags for PACKAGE, overriding pkg-config
874 PACKAGE_LIBS
875 linker flags for PACKAGE, overriding pkg-config
876
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
879
880 _ACEOF
881 fi
882
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
889
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895 ac_dir_suffix= ac_top_builddir=
896 fi
897
898 case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
913
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
918 *)
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *)
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
936 *)
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *)
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951 esac
952
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 fi
968 cd "$ac_popdir"
969 done
970 fi
971
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980 exit 0
981 fi
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
986
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
989
990 $ $0 $@
991
992 _ACEOF
993 {
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
998
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015
1016 _ASUNAME
1017
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1020 do
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024 done
1025
1026 } >&5
1027
1028 cat >&5 <<_ACEOF
1029
1030
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1034
1035 _ACEOF
1036
1037
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1049 do
1050 for ac_arg
1051 do
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 2)
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1066 else
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1075 ;;
1076 -* ) ac_must_keep_next=true ;;
1077 esac
1078 fi
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1082 ;;
1083 esac
1084 done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1096 {
1097 echo
1098
1099 cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1106 {
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 ;;
1114 *)
1115 sed -n \
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ;;
1118 esac;
1119 }
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1143 do
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1148 fi
1149
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1159 fi
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1167 ' 0
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1172
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1177
1178 # Predefined preprocessor variables.
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1203
1204
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 fi
1213 fi
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1219 . "$ac_site_file"
1220 fi
1221 done
1222
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1233 fi
1234 else
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1238 fi
1239
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1259 *)
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1268 fi;;
1269 esac
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1272 case $ac_new_val in
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1276 esac
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280 esac
1281 fi
1282 done
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1289 fi
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315 am__api_version="1.4"
1316 ac_aux_dir=
1317 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1318 if test -f $ac_dir/install-sh; then
1319 ac_aux_dir=$ac_dir
1320 ac_install_sh="$ac_aux_dir/install-sh -c"
1321 break
1322 elif test -f $ac_dir/install.sh; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/install.sh -c"
1325 break
1326 elif test -f $ac_dir/shtool; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/shtool install -c"
1329 break
1330 fi
1331 done
1332 if test -z "$ac_aux_dir"; then
1333 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1334 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1335 { (exit 1); exit 1; }; }
1336 fi
1337 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1338 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1339 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1347 # AIX /bin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # OS/2's system install, which has a completely different semantic
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 for as_dir in $PATH
1362 do
1363 IFS=$as_save_IFS
1364 test -z "$as_dir" && as_dir=.
1365 # Account for people who put trailing slashes in PATH elements.
1366 case $as_dir/ in
1367 ./ | .// | /cC/* | \
1368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1370 /usr/ucb/* ) ;;
1371 *)
1372 # OSF1 and SCO ODT 3.0 have their own names for install.
1373 # Don't use installbsd from OSF since it installs stuff as root
1374 # by default.
1375 for ac_prog in ginstall scoinst install; do
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378 if test $ac_prog = install &&
1379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380 # AIX install. It has an incompatible calling convention.
1381 :
1382 elif test $ac_prog = install &&
1383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384 # program-specific install script used by HP pwplus--don't use.
1385 :
1386 else
1387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1388 break 3
1389 fi
1390 fi
1391 done
1392 done
1393 ;;
1394 esac
1395 done
1396
1397
1398 fi
1399 if test "${ac_cv_path_install+set}" = set; then
1400 INSTALL=$ac_cv_path_install
1401 else
1402 # As a last resort, use the slow shell script. We don't cache a
1403 # path for INSTALL within a source directory, because that will
1404 # break other packages using the cache if that directory is
1405 # removed, or if the path is relative.
1406 INSTALL=$ac_install_sh
1407 fi
1408 fi
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1411
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1415
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1417
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 # Just in case
1423 sleep 1
1424 echo timestamp > conftestfile
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments. Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1429 # directory).
1430 if (
1431 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1432 if test "$*" = "X"; then
1433 # -L didn't work.
1434 set X `ls -t $srcdir/configure conftestfile`
1435 fi
1436 if test "$*" != "X $srcdir/configure conftestfile" \
1437 && test "$*" != "X conftestfile $srcdir/configure"; then
1438
1439 # If neither matched, then we have a broken ls. This can happen
1440 # if, for instance, CONFIG_SHELL is bash and it inherits a
1441 # broken ls alias from the environment. This has actually
1442 # happened. Such a system could not be considered "sane".
1443 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1444 alias in your environment" >&5
1445 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1446 alias in your environment" >&2;}
1447 { (exit 1); exit 1; }; }
1448 fi
1449
1450 test "$2" = conftestfile
1451 )
1452 then
1453 # Ok.
1454 :
1455 else
1456 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1457 Check your system clock" >&5
1458 echo "$as_me: error: newly created file is older than distributed files!
1459 Check your system clock" >&2;}
1460 { (exit 1); exit 1; }; }
1461 fi
1462 rm -f conftest*
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $. echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1474 _ACEOF
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1476 rm conftest.sed
1477
1478 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1479 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1480 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1481 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 cat >conftest.make <<\_ACEOF
1485 all:
1486 @echo 'ac_maketemp="$(MAKE)"'
1487 _ACEOF
1488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1489 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1490 if test -n "$ac_maketemp"; then
1491 eval ac_cv_prog_make_${ac_make}_set=yes
1492 else
1493 eval ac_cv_prog_make_${ac_make}_set=no
1494 fi
1495 rm -f conftest.make
1496 fi
1497 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1498 echo "$as_me:$LINENO: result: yes" >&5
1499 echo "${ECHO_T}yes" >&6
1500 SET_MAKE=
1501 else
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 SET_MAKE="MAKE=${MAKE-make}"
1505 fi
1506
1507
1508 PACKAGE=hspell-gui
1509
1510 VERSION=0.2.6
1511
1512 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1513 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1514 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1515 { (exit 1); exit 1; }; }
1516 fi
1517
1518 cat >>confdefs.h <<_ACEOF
1519 #define PACKAGE "$PACKAGE"
1520 _ACEOF
1521
1522
1523 cat >>confdefs.h <<_ACEOF
1524 #define VERSION "$VERSION"
1525 _ACEOF
1526
1527
1528
1529 missing_dir=`cd $ac_aux_dir && pwd`
1530 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1531 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1532 # Run test in a subshell; some versions of sh will print an error if
1533 # an executable is not found, even if stderr is redirected.
1534 # Redirect stdin to placate older versions of autoconf. Sigh.
1535 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1536 ACLOCAL=aclocal-${am__api_version}
1537 echo "$as_me:$LINENO: result: found" >&5
1538 echo "${ECHO_T}found" >&6
1539 else
1540 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1541 echo "$as_me:$LINENO: result: missing" >&5
1542 echo "${ECHO_T}missing" >&6
1543 fi
1544
1545 echo "$as_me:$LINENO: checking for working autoconf" >&5
1546 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1547 # Run test in a subshell; some versions of sh will print an error if
1548 # an executable is not found, even if stderr is redirected.
1549 # Redirect stdin to placate older versions of autoconf. Sigh.
1550 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1551 AUTOCONF=autoconf
1552 echo "$as_me:$LINENO: result: found" >&5
1553 echo "${ECHO_T}found" >&6
1554 else
1555 AUTOCONF="$missing_dir/missing autoconf"
1556 echo "$as_me:$LINENO: result: missing" >&5
1557 echo "${ECHO_T}missing" >&6
1558 fi
1559
1560 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1561 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1562 # Run test in a subshell; some versions of sh will print an error if
1563 # an executable is not found, even if stderr is redirected.
1564 # Redirect stdin to placate older versions of autoconf. Sigh.
1565 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1566 AUTOMAKE=automake-${am__api_version}
1567 echo "$as_me:$LINENO: result: found" >&5
1568 echo "${ECHO_T}found" >&6
1569 else
1570 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1571 echo "$as_me:$LINENO: result: missing" >&5
1572 echo "${ECHO_T}missing" >&6
1573 fi
1574
1575 echo "$as_me:$LINENO: checking for working autoheader" >&5
1576 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1577 # Run test in a subshell; some versions of sh will print an error if
1578 # an executable is not found, even if stderr is redirected.
1579 # Redirect stdin to placate older versions of autoconf. Sigh.
1580 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1581 AUTOHEADER=autoheader
1582 echo "$as_me:$LINENO: result: found" >&5
1583 echo "${ECHO_T}found" >&6
1584 else
1585 AUTOHEADER="$missing_dir/missing autoheader"
1586 echo "$as_me:$LINENO: result: missing" >&5
1587 echo "${ECHO_T}missing" >&6
1588 fi
1589
1590 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1591 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1592 # Run test in a subshell; some versions of sh will print an error if
1593 # an executable is not found, even if stderr is redirected.
1594 # Redirect stdin to placate older versions of autoconf. Sigh.
1595 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1596 MAKEINFO=makeinfo
1597 echo "$as_me:$LINENO: result: found" >&5
1598 echo "${ECHO_T}found" >&6
1599 else
1600 MAKEINFO="$missing_dir/missing makeinfo"
1601 echo "$as_me:$LINENO: result: missing" >&5
1602 echo "${ECHO_T}missing" >&6
1603 fi
1604
1605
1606
1607 ac_config_headers="$ac_config_headers config.h"
1608
1609 ac_config_commands="$ac_config_commands default-1"
1610
1611 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1612 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1613 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1614 if test "${enable_maintainer_mode+set}" = set; then
1615 enableval="$enable_maintainer_mode"
1616 USE_MAINTAINER_MODE=$enableval
1617 else
1618 USE_MAINTAINER_MODE=no
1619 fi;
1620 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1621 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1622
1623
1624 if test $USE_MAINTAINER_MODE = yes; then
1625 MAINTAINER_MODE_TRUE=
1626 MAINTAINER_MODE_FALSE='#'
1627 else
1628 MAINTAINER_MODE_TRUE='#'
1629 MAINTAINER_MODE_FALSE=
1630 fi
1631 MAINT=$MAINTAINER_MODE_TRUE
1632
1633
1634
1635 ac_ext=c
1636 ac_cpp='$CPP $CPPFLAGS'
1637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640 if test -n "$ac_tool_prefix"; then
1641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1642 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662 done
1663 done
1664
1665 fi
1666 fi
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1671 else
1672 echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 fi
1677 if test -z "$ac_cv_prog_CC"; then
1678 ac_ct_CC=$CC
1679 # Extract the first word of "gcc", so it can be a program name with args.
1680 set dummy gcc; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 if test -n "$ac_ct_CC"; then
1687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_ac_ct_CC="gcc"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1699 fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1706 if test -n "$ac_ct_CC"; then
1707 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708 echo "${ECHO_T}$ac_ct_CC" >&6
1709 else
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714 CC=$ac_ct_CC
1715 else
1716 CC="$ac_cv_prog_CC"
1717 fi
1718
1719 if test -z "$CC"; then
1720 if test -n "$ac_tool_prefix"; then
1721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1722 set dummy ${ac_tool_prefix}cc; ac_word=$2
1723 echo "$as_me:$LINENO: checking for $ac_word" >&5
1724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725 if test "${ac_cv_prog_CC+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 else
1728 if test -n "$CC"; then
1729 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 else
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734 IFS=$as_save_IFS
1735 test -z "$as_dir" && as_dir=.
1736 for ac_exec_ext in '' $ac_executable_extensions; do
1737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738 ac_cv_prog_CC="${ac_tool_prefix}cc"
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 break 2
1741 fi
1742 done
1743 done
1744
1745 fi
1746 fi
1747 CC=$ac_cv_prog_CC
1748 if test -n "$CC"; then
1749 echo "$as_me:$LINENO: result: $CC" >&5
1750 echo "${ECHO_T}$CC" >&6
1751 else
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 fi
1757 if test -z "$ac_cv_prog_CC"; then
1758 ac_ct_CC=$CC
1759 # Extract the first word of "cc", so it can be a program name with args.
1760 set dummy cc; ac_word=$2
1761 echo "$as_me:$LINENO: checking for $ac_word" >&5
1762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1764 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 else
1766 if test -n "$ac_ct_CC"; then
1767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1768 else
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 for ac_exec_ext in '' $ac_executable_extensions; do
1775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776 ac_cv_prog_ac_ct_CC="cc"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778 break 2
1779 fi
1780 done
1781 done
1782
1783 fi
1784 fi
1785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1786 if test -n "$ac_ct_CC"; then
1787 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1788 echo "${ECHO_T}$ac_ct_CC" >&6
1789 else
1790 echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794 CC=$ac_ct_CC
1795 else
1796 CC="$ac_cv_prog_CC"
1797 fi
1798
1799 fi
1800 if test -z "$CC"; then
1801 # Extract the first word of "cc", so it can be a program name with args.
1802 set dummy cc; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else
1811 ac_prog_rejected=no
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1820 ac_prog_rejected=yes
1821 continue
1822 fi
1823 ac_cv_prog_CC="cc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827 done
1828 done
1829
1830 if test $ac_prog_rejected = yes; then
1831 # We found a bogon in the path, so make sure we never use it.
1832 set dummy $ac_cv_prog_CC
1833 shift
1834 if test $# != 0; then
1835 # We chose a different compiler from the bogus one.
1836 # However, it has the same basename, so the bogon will be chosen
1837 # first if we set CC to just the basename; use the full file name.
1838 shift
1839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840 fi
1841 fi
1842 fi
1843 fi
1844 CC=$ac_cv_prog_CC
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1848 else
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1851 fi
1852
1853 fi
1854 if test -z "$CC"; then
1855 if test -n "$ac_tool_prefix"; then
1856 for ac_prog in cl
1857 do
1858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$CC"; then
1866 ac_cv_prog_CC="$CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 CC=$ac_cv_prog_CC
1885 if test -n "$CC"; then
1886 echo "$as_me:$LINENO: result: $CC" >&5
1887 echo "${ECHO_T}$CC" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893 test -n "$CC" && break
1894 done
1895 fi
1896 if test -z "$CC"; then
1897 ac_ct_CC=$CC
1898 for ac_prog in cl
1899 do
1900 # Extract the first word of "$ac_prog", so it can be a program name with args.
1901 set dummy $ac_prog; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_CC"; then
1908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_CC="$ac_prog"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921 done
1922 done
1923
1924 fi
1925 fi
1926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1930 else
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935 test -n "$ac_ct_CC" && break
1936 done
1937
1938 CC=$ac_ct_CC
1939 fi
1940
1941 fi
1942
1943
1944 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: no acceptable C compiler found in \$PATH
1947 See \`config.log' for more details." >&2;}
1948 { (exit 1); exit 1; }; }
1949
1950 # Provide some information about the compiler.
1951 echo "$as_me:$LINENO:" \
1952 "checking for C compiler version" >&5
1953 ac_compiler=`set X $ac_compile; echo $2`
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1955 (eval $ac_compiler --version </dev/null >&5) 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1960 (eval $ac_compiler -v </dev/null >&5) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1964 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1965 (eval $ac_compiler -V </dev/null >&5) 2>&5
1966 ac_status=$?
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); }
1969
1970 cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h. */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h. */
1976
1977 int
1978 main ()
1979 {
1980
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 ac_clean_files_save=$ac_clean_files
1986 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1987 # Try to create an executable without -o first, disregard a.out.
1988 # It will help us diagnose broken compilers, and finding out an intuition
1989 # of exeext.
1990 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1991 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1992 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1994 (eval $ac_link_default) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 # Find the output, starting from the most likely. This scheme is
1999 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2000 # resort.
2001
2002 # Be careful to initialize this variable, since it used to be cached.
2003 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2004 ac_cv_exeext=
2005 # b.out is created by i960 compilers.
2006 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2007 do
2008 test -f "$ac_file" || continue
2009 case $ac_file in
2010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2011 ;;
2012 conftest.$ac_ext )
2013 # This is the source file.
2014 ;;
2015 [ab].out )
2016 # We found the default executable, but exeext='' is most
2017 # certainly right.
2018 break;;
2019 *.* )
2020 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2021 # FIXME: I believe we export ac_cv_exeext for Libtool,
2022 # but it would be cool to find out if it's true. Does anybody
2023 # maintain Libtool? --akim.
2024 export ac_cv_exeext
2025 break;;
2026 * )
2027 break;;
2028 esac
2029 done
2030 else
2031 echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2035 See \`config.log' for more details." >&5
2036 echo "$as_me: error: C compiler cannot create executables
2037 See \`config.log' for more details." >&2;}
2038 { (exit 77); exit 77; }; }
2039 fi
2040
2041 ac_exeext=$ac_cv_exeext
2042 echo "$as_me:$LINENO: result: $ac_file" >&5
2043 echo "${ECHO_T}$ac_file" >&6
2044
2045 # Check the compiler produces executables we can run. If not, either
2046 # the compiler is broken, or we cross compile.
2047 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2048 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2049 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2050 # If not cross compiling, check that we can run a simple program.
2051 if test "$cross_compiling" != yes; then
2052 if { ac_try='./$ac_file'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2058 cross_compiling=no
2059 else
2060 if test "$cross_compiling" = maybe; then
2061 cross_compiling=yes
2062 else
2063 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2064 If you meant to cross compile, use \`--host'.
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'.
2068 See \`config.log' for more details." >&2;}
2069 { (exit 1); exit 1; }; }
2070 fi
2071 fi
2072 fi
2073 echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6
2075
2076 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2077 ac_clean_files=$ac_clean_files_save
2078 # Check the compiler produces executables we can run. If not, either
2079 # the compiler is broken, or we cross compile.
2080 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2081 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2082 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2083 echo "${ECHO_T}$cross_compiling" >&6
2084
2085 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2086 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2088 (eval $ac_link) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; then
2092 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2093 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2094 # work properly (i.e., refer to `conftest.exe'), while it won't with
2095 # `rm'.
2096 for ac_file in conftest.exe conftest conftest.*; do
2097 test -f "$ac_file" || continue
2098 case $ac_file in
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2100 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2101 export ac_cv_exeext
2102 break;;
2103 * ) break;;
2104 esac
2105 done
2106 else
2107 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116 echo "${ECHO_T}$ac_cv_exeext" >&6
2117
2118 rm -f conftest.$ac_ext
2119 EXEEXT=$ac_cv_exeext
2120 ac_exeext=$EXEEXT
2121 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2122 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2123 if test "${ac_cv_objext+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2132
2133 int
2134 main ()
2135 {
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 rm -f conftest.o conftest.obj
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; then
2147 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2148 case $ac_file in
2149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2151 break;;
2152 esac
2153 done
2154 else
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2163 fi
2164
2165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2166 fi
2167 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2168 echo "${ECHO_T}$ac_cv_objext" >&6
2169 OBJEXT=$ac_cv_objext
2170 ac_objext=$OBJEXT
2171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h. */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2182
2183 int
2184 main ()
2185 {
2186 #ifndef __GNUC__
2187 choke me
2188 #endif
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_compiler_gnu=yes
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_compiler_gnu=no
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2224
2225 fi
2226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228 GCC=`test $ac_compiler_gnu = yes && echo yes`
2229 ac_test_CFLAGS=${CFLAGS+set}
2230 ac_save_CFLAGS=$CFLAGS
2231 CFLAGS="-g"
2232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234 if test "${ac_cv_prog_cc_g+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243
2244 int
2245 main ()
2246 {
2247
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2255 ac_status=$?
2256 grep -v '^ *+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 ac_cv_prog_cc_g=yes
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 ac_cv_prog_cc_g=no
2279 fi
2280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2283 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2284 if test "$ac_test_CFLAGS" = set; then
2285 CFLAGS=$ac_save_CFLAGS
2286 elif test $ac_cv_prog_cc_g = yes; then
2287 if test "$GCC" = yes; then
2288 CFLAGS="-g -O2"
2289 else
2290 CFLAGS="-g"
2291 fi
2292 else
2293 if test "$GCC" = yes; then
2294 CFLAGS="-O2"
2295 else
2296 CFLAGS=
2297 fi
2298 fi
2299 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2300 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2301 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 ac_cv_prog_cc_stdc=no
2305 ac_save_CC=$CC
2306 cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h. */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2312 #include <stdarg.h>
2313 #include <stdio.h>
2314 #include <sys/types.h>
2315 #include <sys/stat.h>
2316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2317 struct buf { int x; };
2318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2319 static char *e (p, i)
2320 char **p;
2321 int i;
2322 {
2323 return p[i];
2324 }
2325 static char *f (char * (*g) (char **, int), char **p, ...)
2326 {
2327 char *s;
2328 va_list v;
2329 va_start (v,p);
2330 s = g (p, va_arg (v,int));
2331 va_end (v);
2332 return s;
2333 }
2334
2335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2336 function prototypes and stuff, but not '\xHH' hex character constants.
2337 These don't provoke an error unfortunately, instead are silently treated
2338 as 'x'. The following induces an error, until -std1 is added to get
2339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2340 array size at least. It's necessary to write '\x00'==0 to get something
2341 that's true only with -std1. */
2342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2343
2344 int test (int i, double x);
2345 struct s1 {int (*f) (int a);};
2346 struct s2 {int (*f) (double a);};
2347 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2348 int argc;
2349 char **argv;
2350 int
2351 main ()
2352 {
2353 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 ;
2355 return 0;
2356 }
2357 _ACEOF
2358 # Don't try gcc -ansi; that turns off useful extensions and
2359 # breaks some systems' header files.
2360 # AIX -qlanglvl=ansi
2361 # Ultrix and OSF/1 -std1
2362 # HP-UX 10.20 and later -Ae
2363 # HP-UX older versions -Aa -D_HPUX_SOURCE
2364 # SVR4 -Xc -D__EXTENSIONS__
2365 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2366 do
2367 CC="$ac_save_CC $ac_arg"
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2371 ac_status=$?
2372 grep -v '^ *+' conftest.er1 >conftest.err
2373 rm -f conftest.er1
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; } &&
2383 { ac_try='test -s conftest.$ac_objext'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 (eval $ac_try) 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2389 ac_cv_prog_cc_stdc=$ac_arg
2390 break
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 fi
2396 rm -f conftest.err conftest.$ac_objext
2397 done
2398 rm -f conftest.$ac_ext conftest.$ac_objext
2399 CC=$ac_save_CC
2400
2401 fi
2402
2403 case "x$ac_cv_prog_cc_stdc" in
2404 x|xno)
2405 echo "$as_me:$LINENO: result: none needed" >&5
2406 echo "${ECHO_T}none needed" >&6 ;;
2407 *)
2408 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2409 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2410 CC="$CC $ac_cv_prog_cc_stdc" ;;
2411 esac
2412
2413 # Some people use a C++ compiler to compile C. Since we use `exit',
2414 # in C++ we need to declare it. In case someone uses the same compiler
2415 # for both compiling C and C++ we need to have the C++ compiler decide
2416 # the declaration of exit, since it's the most demanding environment.
2417 cat >conftest.$ac_ext <<_ACEOF
2418 #ifndef __cplusplus
2419 choke me
2420 #endif
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 for ac_declaration in \
2444 '' \
2445 'extern "C" void std::exit (int) throw (); using std::exit;' \
2446 'extern "C" void std::exit (int); using std::exit;' \
2447 'extern "C" void exit (int) throw ();' \
2448 'extern "C" void exit (int);' \
2449 'void exit (int);'
2450 do
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 $ac_declaration
2458 #include <stdlib.h>
2459 int
2460 main ()
2461 {
2462 exit (42);
2463 ;
2464 return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>conftest.er1
2470 ac_status=$?
2471 grep -v '^ *+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2488 :
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 continue
2494 fi
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h. */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2502 $ac_declaration
2503 int
2504 main ()
2505 {
2506 exit (42);
2507 ;
2508 return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>conftest.er1
2514 ac_status=$?
2515 grep -v '^ *+' conftest.er1 >conftest.err
2516 rm -f conftest.er1
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 (eval $ac_try) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 (eval $ac_try) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2532 break
2533 else
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 rm -f conftest*
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2545 fi
2546
2547 else
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 fi
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560
2561 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2562 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2563 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 ac_check_lib_save_LIBS=$LIBS
2567 LIBS="-lcposix $LIBS"
2568 cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h. */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2574
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 /* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2581 char strerror ();
2582 int
2583 main ()
2584 {
2585 strerror ();
2586 ;
2587 return 0;
2588 }
2589 _ACEOF
2590 rm -f conftest.$ac_objext conftest$ac_exeext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592 (eval $ac_link) 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest$ac_exeext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_lib_cposix_strerror=yes
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 ac_cv_lib_cposix_strerror=no
2617 fi
2618 rm -f conftest.err conftest.$ac_objext \
2619 conftest$ac_exeext conftest.$ac_ext
2620 LIBS=$ac_check_lib_save_LIBS
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2623 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2624 if test $ac_cv_lib_cposix_strerror = yes; then
2625 LIBS="$LIBS -lcposix"
2626 fi
2627
2628
2629
2630 ac_ext=c
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635 if test -n "$ac_tool_prefix"; then
2636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2638 echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664 echo "$as_me:$LINENO: result: $CC" >&5
2665 echo "${ECHO_T}$CC" >&6
2666 else
2667 echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2669 fi
2670
2671 fi
2672 if test -z "$ac_cv_prog_CC"; then
2673 ac_ct_CC=$CC
2674 # Extract the first word of "gcc", so it can be a program name with args.
2675 set dummy gcc; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$ac_ct_CC"; then
2682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_CC="gcc"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709 CC=$ac_ct_CC
2710 else
2711 CC="$ac_cv_prog_CC"
2712 fi
2713
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739
2740 fi
2741 fi
2742 CC=$ac_cv_prog_CC
2743 if test -n "$CC"; then
2744 echo "$as_me:$LINENO: result: $CC" >&5
2745 echo "${ECHO_T}$CC" >&6
2746 else
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749 fi
2750
2751 fi
2752 if test -z "$ac_cv_prog_CC"; then
2753 ac_ct_CC=$CC
2754 # Extract the first word of "cc", so it can be a program name with args.
2755 set dummy cc; ac_word=$2
2756 echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 if test -n "$ac_ct_CC"; then
2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_ac_ct_CC="cc"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777
2778 fi
2779 fi
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 echo "${ECHO_T}$ac_ct_CC" >&6
2784 else
2785 echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6
2787 fi
2788
2789 CC=$ac_ct_CC
2790 else
2791 CC="$ac_cv_prog_CC"
2792 fi
2793
2794 fi
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 ac_prog_rejected=no
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815 ac_prog_rejected=yes
2816 continue
2817 fi
2818 ac_cv_prog_CC="cc"
2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824
2825 if test $ac_prog_rejected = yes; then
2826 # We found a bogon in the path, so make sure we never use it.
2827 set dummy $ac_cv_prog_CC
2828 shift
2829 if test $# != 0; then
2830 # We chose a different compiler from the bogus one.
2831 # However, it has the same basename, so the bogon will be chosen
2832 # first if we set CC to just the basename; use the full file name.
2833 shift
2834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2835 fi
2836 fi
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6
2843 else
2844 echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2846 fi
2847
2848 fi
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 for ac_prog in cl
2852 do
2853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876
2877 fi
2878 fi
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6
2883 else
2884 echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2886 fi
2887
2888 test -n "$CC" && break
2889 done
2890 fi
2891 if test -z "$CC"; then
2892 ac_ct_CC=$CC
2893 for ac_prog in cl
2894 do
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918
2919 fi
2920 fi
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2924 echo "${ECHO_T}$ac_ct_CC" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2928 fi
2929
2930 test -n "$ac_ct_CC" && break
2931 done
2932
2933 CC=$ac_ct_CC
2934 fi
2935
2936 fi
2937
2938
2939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: no acceptable C compiler found in \$PATH
2942 See \`config.log' for more details." >&2;}
2943 { (exit 1); exit 1; }; }
2944
2945 # Provide some information about the compiler.
2946 echo "$as_me:$LINENO:" \
2947 "checking for C compiler version" >&5
2948 ac_compiler=`set X $ac_compile; echo $2`
2949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2950 (eval $ac_compiler --version </dev/null >&5) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }
2954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2955 (eval $ac_compiler -v </dev/null >&5) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2960 (eval $ac_compiler -V </dev/null >&5) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964
2965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976
2977 int
2978 main ()
2979 {
2980 #ifndef __GNUC__
2981 choke me
2982 #endif
2983
2984 ;
2985 return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 ac_compiler_gnu=yes
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 ac_compiler_gnu=no
3015 fi
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3018
3019 fi
3020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3022 GCC=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CFLAGS=${CFLAGS+set}
3024 ac_save_CFLAGS=$CFLAGS
3025 CFLAGS="-g"
3026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3028 if test "${ac_cv_prog_cc_g+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037
3038 int
3039 main ()
3040 {
3041
3042 ;
3043 return 0;
3044 }
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3048 (eval $ac_compile) 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } &&
3055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 (eval $ac_try) 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 (eval $ac_try) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3067 ac_cv_prog_cc_g=yes
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 ac_cv_prog_cc_g=no
3073 fi
3074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075 fi
3076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3078 if test "$ac_test_CFLAGS" = set; then
3079 CFLAGS=$ac_save_CFLAGS
3080 elif test $ac_cv_prog_cc_g = yes; then
3081 if test "$GCC" = yes; then
3082 CFLAGS="-g -O2"
3083 else
3084 CFLAGS="-g"
3085 fi
3086 else
3087 if test "$GCC" = yes; then
3088 CFLAGS="-O2"
3089 else
3090 CFLAGS=
3091 fi
3092 fi
3093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 ac_cv_prog_cc_stdc=no
3099 ac_save_CC=$CC
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <stdarg.h>
3107 #include <stdio.h>
3108 #include <sys/types.h>
3109 #include <sys/stat.h>
3110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3111 struct buf { int x; };
3112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3113 static char *e (p, i)
3114 char **p;
3115 int i;
3116 {
3117 return p[i];
3118 }
3119 static char *f (char * (*g) (char **, int), char **p, ...)
3120 {
3121 char *s;
3122 va_list v;
3123 va_start (v,p);
3124 s = g (p, va_arg (v,int));
3125 va_end (v);
3126 return s;
3127 }
3128
3129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3130 function prototypes and stuff, but not '\xHH' hex character constants.
3131 These don't provoke an error unfortunately, instead are silently treated
3132 as 'x'. The following induces an error, until -std1 is added to get
3133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3134 array size at least. It's necessary to write '\x00'==0 to get something
3135 that's true only with -std1. */
3136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3137
3138 int test (int i, double x);
3139 struct s1 {int (*f) (int a);};
3140 struct s2 {int (*f) (double a);};
3141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3142 int argc;
3143 char **argv;
3144 int
3145 main ()
3146 {
3147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 # Don't try gcc -ansi; that turns off useful extensions and
3153 # breaks some systems' header files.
3154 # AIX -qlanglvl=ansi
3155 # Ultrix and OSF/1 -std1
3156 # HP-UX 10.20 and later -Ae
3157 # HP-UX older versions -Aa -D_HPUX_SOURCE
3158 # SVR4 -Xc -D__EXTENSIONS__
3159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3160 do
3161 CC="$ac_save_CC $ac_arg"
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_prog_cc_stdc=$ac_arg
3184 break
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 fi
3190 rm -f conftest.err conftest.$ac_objext
3191 done
3192 rm -f conftest.$ac_ext conftest.$ac_objext
3193 CC=$ac_save_CC
3194
3195 fi
3196
3197 case "x$ac_cv_prog_cc_stdc" in
3198 x|xno)
3199 echo "$as_me:$LINENO: result: none needed" >&5
3200 echo "${ECHO_T}none needed" >&6 ;;
3201 *)
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3204 CC="$CC $ac_cv_prog_cc_stdc" ;;
3205 esac
3206
3207 # Some people use a C++ compiler to compile C. Since we use `exit',
3208 # in C++ we need to declare it. In case someone uses the same compiler
3209 # for both compiling C and C++ we need to have the C++ compiler decide
3210 # the declaration of exit, since it's the most demanding environment.
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #ifndef __cplusplus
3213 choke me
3214 #endif
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>conftest.er1
3219 ac_status=$?
3220 grep -v '^ *+' conftest.er1 >conftest.err
3221 rm -f conftest.er1
3222 cat conftest.err >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); } &&
3225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; } &&
3231 { ac_try='test -s conftest.$ac_objext'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 for ac_declaration in \
3238 '' \
3239 'extern "C" void std::exit (int) throw (); using std::exit;' \
3240 'extern "C" void std::exit (int); using std::exit;' \
3241 'extern "C" void exit (int) throw ();' \
3242 'extern "C" void exit (int);' \
3243 'void exit (int);'
3244 do
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251 $ac_declaration
3252 #include <stdlib.h>
3253 int
3254 main ()
3255 {
3256 exit (42);
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 :
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 continue
3288 fi
3289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 $ac_declaration
3297 int
3298 main ()
3299 {
3300 exit (42);
3301 ;
3302 return 0;
3303 }
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307 (eval $ac_compile) 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322 (eval $ac_try) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 break
3327 else
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331 fi
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3333 done
3334 rm -f conftest*
3335 if test -n "$ac_declaration"; then
3336 echo '#ifdef __cplusplus' >>confdefs.h
3337 echo $ac_declaration >>confdefs.h
3338 echo '#endif' >>confdefs.h
3339 fi
3340
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 fi
3346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353
3354
3355
3356 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3357 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3358 if test "${am_cv_prog_cc_stdc+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 am_cv_prog_cc_stdc=no
3362 ac_save_CC="$CC"
3363 # Don't try gcc -ansi; that turns off useful extensions and
3364 # breaks some systems' header files.
3365 # AIX -qlanglvl=ansi
3366 # Ultrix and OSF/1 -std1
3367 # HP-UX -Aa -D_HPUX_SOURCE
3368 # SVR4 -Xc -D__EXTENSIONS__
3369 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3370 do
3371 CC="$ac_save_CC $ac_arg"
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 #include <stdarg.h>
3379 #include <stdio.h>
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3386 char **p;
3387 int i;
3388 {
3389 return p[i];
3390 }
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3392 {
3393 char *s;
3394 va_list v;
3395 va_start (v,p);
3396 s = g (p, va_arg (v,int));
3397 va_end (v);
3398 return s;
3399 }
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3406
3407 int
3408 main ()
3409 {
3410
3411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 am_cv_prog_cc_stdc="$ac_arg"; break
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 fi
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 done
3446 CC="$ac_save_CC"
3447
3448 fi
3449
3450 if test -z "$am_cv_prog_cc_stdc"; then
3451 echo "$as_me:$LINENO: result: none needed" >&5
3452 echo "${ECHO_T}none needed" >&6
3453 else
3454 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3455 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3456 fi
3457 case "x$am_cv_prog_cc_stdc" in
3458 x|xno) ;;
3459 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3460 esac
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3468 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3471 CPP=
3472 fi
3473 if test -z "$CPP"; then
3474 if test "${ac_cv_prog_CPP+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 # Double quotes because CPP needs to be expanded
3478 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479 do
3480 ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3482 do
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #ifdef __STDC__
3496 # include <limits.h>
3497 #else
3498 # include <assert.h>
3499 #endif
3500 Syntax error
3501 _ACEOF
3502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null; then
3510 if test -s conftest.err; then
3511 ac_cpp_err=$ac_c_preproc_warn_flag
3512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3513 else
3514 ac_cpp_err=
3515 fi
3516 else
3517 ac_cpp_err=yes
3518 fi
3519 if test -z "$ac_cpp_err"; then
3520 :
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 # Broken: fails on valid input.
3526 continue
3527 fi
3528 rm -f conftest.err conftest.$ac_ext
3529
3530 # OK, works on sane cases. Now check whether non-existent headers
3531 # can be detected and how.
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <ac_nonexistent.h>
3539 _ACEOF
3540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } >/dev/null; then
3548 if test -s conftest.err; then
3549 ac_cpp_err=$ac_c_preproc_warn_flag
3550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3551 else
3552 ac_cpp_err=
3553 fi
3554 else
3555 ac_cpp_err=yes
3556 fi
3557 if test -z "$ac_cpp_err"; then
3558 # Broken: success on invalid input.
3559 continue
3560 else
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 # Passes both tests.
3565 ac_preproc_ok=:
3566 break
3567 fi
3568 rm -f conftest.err conftest.$ac_ext
3569
3570 done
3571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3572 rm -f conftest.err conftest.$ac_ext
3573 if $ac_preproc_ok; then
3574 break
3575 fi
3576
3577 done
3578 ac_cv_prog_CPP=$CPP
3579
3580 fi
3581 CPP=$ac_cv_prog_CPP
3582 else
3583 ac_cv_prog_CPP=$CPP
3584 fi
3585 echo "$as_me:$LINENO: result: $CPP" >&5
3586 echo "${ECHO_T}$CPP" >&6
3587 ac_preproc_ok=false
3588 for ac_c_preproc_warn_flag in '' yes
3589 do
3590 # Use a header file that comes with gcc, so configuring glibc
3591 # with a fresh cross-compiler works.
3592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593 # <limits.h> exists even on freestanding compilers.
3594 # On the NeXT, cc -E runs the code through the compiler's parser,
3595 # not just through cpp. "Syntax error" is here to catch this case.
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 #ifdef __STDC__
3603 # include <limits.h>
3604 #else
3605 # include <assert.h>
3606 #endif
3607 Syntax error
3608 _ACEOF
3609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } >/dev/null; then
3617 if test -s conftest.err; then
3618 ac_cpp_err=$ac_c_preproc_warn_flag
3619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3620 else
3621 ac_cpp_err=
3622 fi
3623 else
3624 ac_cpp_err=yes
3625 fi
3626 if test -z "$ac_cpp_err"; then
3627 :
3628 else
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 # Broken: fails on valid input.
3633 continue
3634 fi
3635 rm -f conftest.err conftest.$ac_ext
3636
3637 # OK, works on sane cases. Now check whether non-existent headers
3638 # can be detected and how.
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include <ac_nonexistent.h>
3646 _ACEOF
3647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3649 ac_status=$?
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } >/dev/null; then
3655 if test -s conftest.err; then
3656 ac_cpp_err=$ac_c_preproc_warn_flag
3657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3658 else
3659 ac_cpp_err=
3660 fi
3661 else
3662 ac_cpp_err=yes
3663 fi
3664 if test -z "$ac_cpp_err"; then
3665 # Broken: success on invalid input.
3666 continue
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 # Passes both tests.
3672 ac_preproc_ok=:
3673 break
3674 fi
3675 rm -f conftest.err conftest.$ac_ext
3676
3677 done
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.$ac_ext
3680 if $ac_preproc_ok; then
3681 :
3682 else
3683 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3684 See \`config.log' for more details." >&5
3685 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3686 See \`config.log' for more details." >&2;}
3687 { (exit 1); exit 1; }; }
3688 fi
3689
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696
3697 echo "$as_me:$LINENO: checking for egrep" >&5
3698 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3699 if test "${ac_cv_prog_egrep+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3703 then ac_cv_prog_egrep='grep -E'
3704 else ac_cv_prog_egrep='egrep'
3705 fi
3706 fi
3707 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3708 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3709 EGREP=$ac_cv_prog_egrep
3710
3711
3712 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3714 if test "${ac_cv_header_stdc+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723 #include <stdlib.h>
3724 #include <stdarg.h>
3725 #include <string.h>
3726 #include <float.h>
3727
3728 int
3729 main ()
3730 {
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_header_stdc=yes
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_cv_header_stdc=no
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765
3766 if test $ac_cv_header_stdc = yes; then
3767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 #include <string.h>
3775
3776 _ACEOF
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "memchr" >/dev/null 2>&1; then
3779 :
3780 else
3781 ac_cv_header_stdc=no
3782 fi
3783 rm -f conftest*
3784
3785 fi
3786
3787 if test $ac_cv_header_stdc = yes; then
3788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795 #include <stdlib.h>
3796
3797 _ACEOF
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "free" >/dev/null 2>&1; then
3800 :
3801 else
3802 ac_cv_header_stdc=no
3803 fi
3804 rm -f conftest*
3805
3806 fi
3807
3808 if test $ac_cv_header_stdc = yes; then
3809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3810 if test "$cross_compiling" = yes; then
3811 :
3812 else
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <ctype.h>
3820 #if ((' ' & 0x0FF) == 0x020)
3821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823 #else
3824 # define ISLOWER(c) \
3825 (('a' <= (c) && (c) <= 'i') \
3826 || ('j' <= (c) && (c) <= 'r') \
3827 || ('s' <= (c) && (c) <= 'z'))
3828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829 #endif
3830
3831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832 int
3833 main ()
3834 {
3835 int i;
3836 for (i = 0; i < 256; i++)
3837 if (XOR (islower (i), ISLOWER (i))
3838 || toupper (i) != TOUPPER (i))
3839 exit(2);
3840 exit (0);
3841 }
3842 _ACEOF
3843 rm -f conftest$ac_exeext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 (eval $ac_link) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 :
3855 else
3856 echo "$as_me: program exited with status $ac_status" >&5
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 ( exit $ac_status )
3861 ac_cv_header_stdc=no
3862 fi
3863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3864 fi
3865 fi
3866 fi
3867 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3868 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3869 if test $ac_cv_header_stdc = yes; then
3870
3871 cat >>confdefs.h <<\_ACEOF
3872 #define STDC_HEADERS 1
3873 _ACEOF
3874
3875 fi
3876
3877
3878 pkg_modules="gtk+-2.0 >= 2.0.0 libpanelapplet-2.0"
3879
3880
3881 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3884 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 case $PKG_CONFIG in
3891 [\\/]* | ?:[\\/]*)
3892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3893 ;;
3894 *)
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908
3909 ;;
3910 esac
3911 fi
3912 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3913
3914 if test -n "$PKG_CONFIG"; then
3915 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3916 echo "${ECHO_T}$PKG_CONFIG" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3920 fi
3921
3922 fi
3923 if test -z "$ac_cv_path_PKG_CONFIG"; then
3924 ac_pt_PKG_CONFIG=$PKG_CONFIG
3925 # Extract the first word of "pkg-config", so it can be a program name with args.
3926 set dummy pkg-config; ac_word=$2
3927 echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932 case $ac_pt_PKG_CONFIG in
3933 [\\/]* | ?:[\\/]*)
3934 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3935 ;;
3936 *)
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950
3951 ;;
3952 esac
3953 fi
3954 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3955
3956 if test -n "$ac_pt_PKG_CONFIG"; then
3957 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3958 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3962 fi
3963
3964 PKG_CONFIG=$ac_pt_PKG_CONFIG
3965 else
3966 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3967 fi
3968
3969 fi
3970 if test -n "$PKG_CONFIG"; then
3971 _pkg_min_version=0.9.0
3972 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3973 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3974 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3975 echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 PKG_CONFIG=""
3981 fi
3982
3983 fi
3984
3985 pkg_failed=no
3986 echo "$as_me:$LINENO: checking for PACKAGE" >&5
3987 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6
3988
3989 if test -n "$PKG_CONFIG"; then
3990 if test -n "$PACKAGE_CFLAGS"; then
3991 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
3992 else
3993 if test -n "$PKG_CONFIG" && \
3994 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
3995 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; then
3999 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
4000 else
4001 pkg_failed=yes
4002 fi
4003 fi
4004 else
4005 pkg_failed=untried
4006 fi
4007 if test -n "$PKG_CONFIG"; then
4008 if test -n "$PACKAGE_LIBS"; then
4009 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
4010 else
4011 if test -n "$PKG_CONFIG" && \
4012 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
4013 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; then
4017 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
4018 else
4019 pkg_failed=yes
4020 fi
4021 fi
4022 else
4023 pkg_failed=untried
4024 fi
4025
4026
4027
4028 if test $pkg_failed = yes; then
4029
4030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4031 _pkg_short_errors_supported=yes
4032 else
4033 _pkg_short_errors_supported=no
4034 fi
4035 if test $_pkg_short_errors_supported = yes; then
4036 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
4037 else
4038 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
4039 fi
4040 # Put the nasty error message in config.log where it belongs
4041 echo "$PACKAGE_PKG_ERRORS" >&5
4042
4043 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
4044
4045 $PACKAGE_PKG_ERRORS
4046
4047 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4048 installed software in a non-standard prefix.
4049
4050 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4051 and PACKAGE_LIBS to avoid the need to call pkg-config.
4052 See the pkg-config man page for more details.
4053 " >&5
4054 echo "$as_me: error: Package requirements ($pkg_modules) were not met:
4055
4056 $PACKAGE_PKG_ERRORS
4057
4058 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4059 installed software in a non-standard prefix.
4060
4061 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4062 and PACKAGE_LIBS to avoid the need to call pkg-config.
4063 See the pkg-config man page for more details.
4064 " >&2;}
4065 { (exit 1); exit 1; }; }
4066 elif test $pkg_failed = untried; then
4067 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
4068 is in your PATH or set the PKG_CONFIG environment variable to the full
4069 path to pkg-config.
4070
4071 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4072 and PACKAGE_LIBS to avoid the need to call pkg-config.
4073 See the pkg-config man page for more details.
4074
4075 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4076 See \`config.log' for more details." >&5
4077 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
4078 is in your PATH or set the PKG_CONFIG environment variable to the full
4079 path to pkg-config.
4080
4081 Alternatively, you may set the environment variables PACKAGE_CFLAGS
4082 and PACKAGE_LIBS to avoid the need to call pkg-config.
4083 See the pkg-config man page for more details.
4084
4085 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
4086 See \`config.log' for more details." >&2;}
4087 { (exit 1); exit 1; }; }
4088 else
4089 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
4090 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
4091 echo "$as_me:$LINENO: result: yes" >&5
4092 echo "${ECHO_T}yes" >&6
4093 :
4094 fi
4095
4096
4097
4098 GETTEXT_PACKAGE=hspell-gui
4099
4100 cat >>confdefs.h <<_ACEOF
4101 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4102 _ACEOF
4103
4104
4105 ALL_LINGUAS="he sv"
4106 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4117 inttypes.h stdint.h unistd.h
4118 do
4119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4120 echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4132
4133 #include <$ac_header>
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 eval "$as_ac_Header=yes"
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 eval "$as_ac_Header=no"
4162 fi
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4164 fi
4165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168 cat >>confdefs.h <<_ACEOF
4169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4170 _ACEOF
4171
4172 fi
4173
4174 done
4175
4176
4177
4178
4179 for ac_header in locale.h
4180 do
4181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4183 echo "$as_me:$LINENO: checking for $ac_header" >&5
4184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 fi
4188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4190 else
4191 # Is the header compilable?
4192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 $ac_includes_default
4201 #include <$ac_header>
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_header_compiler=yes
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_header_compiler=no
4230 fi
4231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4233 echo "${ECHO_T}$ac_header_compiler" >&6
4234
4235 # Is the header present?
4236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 #include <$ac_header>
4245 _ACEOF
4246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } >/dev/null; then
4254 if test -s conftest.err; then
4255 ac_cpp_err=$ac_c_preproc_warn_flag
4256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4257 else
4258 ac_cpp_err=
4259 fi
4260 else
4261 ac_cpp_err=yes
4262 fi
4263 if test -z "$ac_cpp_err"; then
4264 ac_header_preproc=yes
4265 else
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ac_header_preproc=no
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273 echo "${ECHO_T}$ac_header_preproc" >&6
4274
4275 # So? What about this header?
4276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4277 yes:no: )
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4282 ac_header_preproc=yes
4283 ;;
4284 no:yes:* )
4285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4297 (
4298 cat <<\_ASBOX
4299 ## ------------------------------------------ ##
4300 ## Report this to the AC_PACKAGE_NAME lists. ##
4301 ## ------------------------------------------ ##
4302 _ASBOX
4303 ) |
4304 sed "s/^/$as_me: WARNING: /" >&2
4305 ;;
4306 esac
4307 echo "$as_me:$LINENO: checking for $ac_header" >&5
4308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 eval "$as_ac_Header=\$ac_header_preproc"
4313 fi
4314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316
4317 fi
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327 if test $ac_cv_header_locale_h = yes; then
4328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4329 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4330 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <locale.h>
4340 int
4341 main ()
4342 {
4343 return LC_MESSAGES
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext conftest$ac_exeext
4349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350 (eval $ac_link) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 am_cv_val_LC_MESSAGES=yes
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 am_cv_val_LC_MESSAGES=no
4375 fi
4376 rm -f conftest.err conftest.$ac_objext \
4377 conftest$ac_exeext conftest.$ac_ext
4378 fi
4379 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4380 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4381 if test $am_cv_val_LC_MESSAGES = yes; then
4382
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_LC_MESSAGES 1
4385 _ACEOF
4386
4387 fi
4388 fi
4389 USE_NLS=yes
4390
4391
4392 gt_cv_have_gettext=no
4393
4394 CATOBJEXT=NONE
4395 XGETTEXT=:
4396 INTLLIBS=
4397
4398 if test "${ac_cv_header_libintl_h+set}" = set; then
4399 echo "$as_me:$LINENO: checking for libintl.h" >&5
4400 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4401 if test "${ac_cv_header_libintl_h+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4405 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4406 else
4407 # Is the header compilable?
4408 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4409 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <libintl.h>
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_header_compiler=yes
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 ac_header_compiler=no
4446 fi
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4450
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4453 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <libintl.h>
4461 _ACEOF
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4473 else
4474 ac_cpp_err=
4475 fi
4476 else
4477 ac_cpp_err=yes
4478 fi
4479 if test -z "$ac_cpp_err"; then
4480 ac_header_preproc=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ac_header_preproc=no
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4490
4491 # So? What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4493 yes:no: )
4494 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc=yes
4499 ;;
4500 no:yes:* )
4501 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4513 (
4514 cat <<\_ASBOX
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists. ##
4517 ## ------------------------------------------ ##
4518 _ASBOX
4519 ) |
4520 sed "s/^/$as_me: WARNING: /" >&2
4521 ;;
4522 esac
4523 echo "$as_me:$LINENO: checking for libintl.h" >&5
4524 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4525 if test "${ac_cv_header_libintl_h+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 ac_cv_header_libintl_h=$ac_header_preproc
4529 fi
4530 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4531 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4532
4533 fi
4534 if test $ac_cv_header_libintl_h = yes; then
4535 gt_cv_func_dgettext_libintl="no"
4536 libintl_extra_libs=""
4537
4538 #
4539 # First check in libc
4540 #
4541 echo "$as_me:$LINENO: checking for ngettext in libc" >&5
4542 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
4543 if test "${gt_cv_func_ngettext_libc+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552
4553 #include <libintl.h>
4554
4555 int
4556 main ()
4557 {
4558 return !ngettext ("","", 1)
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest$ac_exeext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 gt_cv_func_ngettext_libc=yes
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 gt_cv_func_ngettext_libc=no
4590 fi
4591 rm -f conftest.err conftest.$ac_objext \
4592 conftest$ac_exeext conftest.$ac_ext
4593
4594 fi
4595 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
4596 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
4597
4598 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4599 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
4600 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
4601 if test "${gt_cv_func_dgettext_libc+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610
4611 #include <libintl.h>
4612
4613 int
4614 main ()
4615 {
4616 return !dgettext ("","")
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; } &&
4636 { ac_try='test -s conftest$ac_exeext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 gt_cv_func_dgettext_libc=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 gt_cv_func_dgettext_libc=no
4648 fi
4649 rm -f conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4651
4652 fi
4653 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
4654 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
4655 fi
4656
4657 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
4658
4659 for ac_func in bind_textdomain_codeset
4660 do
4661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4662 echo "$as_me:$LINENO: checking for $ac_func" >&5
4663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4664 if eval "test \"\${$as_ac_var+set}\" = set"; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4675 #define $ac_func innocuous_$ac_func
4676
4677 /* System header to define __stub macros and hopefully few prototypes,
4678 which can conflict with char $ac_func (); below.
4679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4680 <limits.h> exists even on freestanding compilers. */
4681
4682 #ifdef __STDC__
4683 # include <limits.h>
4684 #else
4685 # include <assert.h>
4686 #endif
4687
4688 #undef $ac_func
4689
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 #ifdef __cplusplus
4692 extern "C"
4693 {
4694 #endif
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4697 char $ac_func ();
4698 /* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4702 choke me
4703 #else
4704 char (*f) () = $ac_func;
4705 #endif
4706 #ifdef __cplusplus
4707 }
4708 #endif
4709
4710 int
4711 main ()
4712 {
4713 return f != $ac_func;
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest$ac_exeext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 eval "$as_ac_var=yes"
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 eval "$as_ac_var=no"
4745 fi
4746 rm -f conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4748 fi
4749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4751 if test `eval echo '${'$as_ac_var'}'` = yes; then
4752 cat >>confdefs.h <<_ACEOF
4753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4754 _ACEOF
4755
4756 fi
4757 done
4758
4759 fi
4760
4761 #
4762 # If we don't have everything we want, check in libintl
4763 #
4764 if test "$gt_cv_func_dgettext_libc" != "yes" \
4765 || test "$gt_cv_func_ngettext_libc" != "yes" \
4766 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
4767
4768 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4769 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4770 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 ac_check_lib_save_LIBS=$LIBS
4774 LIBS="-lintl $LIBS"
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h. */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4781
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 #ifdef __cplusplus
4784 extern "C"
4785 #endif
4786 /* We use char because int might match the return type of a gcc2
4787 builtin and then its argument prototype would still apply. */
4788 char bindtextdomain ();
4789 int
4790 main ()
4791 {
4792 bindtextdomain ();
4793 ;
4794 return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4799 (eval $ac_link) 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_cv_lib_intl_bindtextdomain=yes
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_cv_lib_intl_bindtextdomain=no
4824 fi
4825 rm -f conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 LIBS=$ac_check_lib_save_LIBS
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
4830 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
4831 if test $ac_cv_lib_intl_bindtextdomain = yes; then
4832 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
4833 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
4834 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 ac_check_lib_save_LIBS=$LIBS
4838 LIBS="-lintl $LIBS"
4839 cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h. */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845
4846 /* Override any gcc2 internal prototype to avoid an error. */
4847 #ifdef __cplusplus
4848 extern "C"
4849 #endif
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4852 char ngettext ();
4853 int
4854 main ()
4855 {
4856 ngettext ();
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext conftest$ac_exeext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4863 (eval $ac_link) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest$ac_exeext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_cv_lib_intl_ngettext=yes
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_lib_intl_ngettext=no
4888 fi
4889 rm -f conftest.err conftest.$ac_objext \
4890 conftest$ac_exeext conftest.$ac_ext
4891 LIBS=$ac_check_lib_save_LIBS
4892 fi
4893 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
4894 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
4895 if test $ac_cv_lib_intl_ngettext = yes; then
4896 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
4897 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
4898 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901 ac_check_lib_save_LIBS=$LIBS
4902 LIBS="-lintl $LIBS"
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 #ifdef __cplusplus
4912 extern "C"
4913 #endif
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4916 char dgettext ();
4917 int
4918 main ()
4919 {
4920 dgettext ();
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext conftest$ac_exeext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4927 (eval $ac_link) 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_lib_intl_dgettext=yes
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4950
4951 ac_cv_lib_intl_dgettext=no
4952 fi
4953 rm -f conftest.err conftest.$ac_objext \
4954 conftest$ac_exeext conftest.$ac_ext
4955 LIBS=$ac_check_lib_save_LIBS
4956 fi
4957 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
4958 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
4959 if test $ac_cv_lib_intl_dgettext = yes; then
4960 gt_cv_func_dgettext_libintl=yes
4961 fi
4962
4963 fi
4964
4965 fi
4966
4967
4968 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
4969 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
4970 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
4971 echo "$as_me:$LINENO: result: " >&5
4972 echo "${ECHO_T}" >&6
4973 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
4974 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
4975 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978 ac_check_lib_save_LIBS=$LIBS
4979 LIBS="-lintl -liconv $LIBS"
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 #ifdef __cplusplus
4989 extern "C"
4990 #endif
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993 char ngettext ();
4994 int
4995 main ()
4996 {
4997 ngettext ();
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 (eval $ac_try) 2>&5
5020 ac_status=$?
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 ac_cv_lib_intl_ngettext=yes
5024 else
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 ac_cv_lib_intl_ngettext=no
5029 fi
5030 rm -f conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 LIBS=$ac_check_lib_save_LIBS
5033 fi
5034 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5035 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
5036 if test $ac_cv_lib_intl_ngettext = yes; then
5037 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5038 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
5039 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lintl -liconv $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 #ifdef __cplusplus
5053 extern "C"
5054 #endif
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5057 char dcgettext ();
5058 int
5059 main ()
5060 {
5061 dcgettext ();
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_lib_intl_dcgettext=yes
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_cv_lib_intl_dcgettext=no
5093 fi
5094 rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5097 fi
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5099 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
5100 if test $ac_cv_lib_intl_dcgettext = yes; then
5101 gt_cv_func_dgettext_libintl=yes
5102 libintl_extra_libs=-liconv
5103 else
5104 :
5105 fi
5106
5107 else
5108 :
5109 fi
5110
5111 fi
5112
5113 #
5114 # If we found libintl, then check in it for bind_textdomain_codeset();
5115 # we'll prefer libc if neither have bind_textdomain_codeset(),
5116 # and both have dgettext and ngettext
5117 #
5118 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5119 glib_save_LIBS="$LIBS"
5120 LIBS="$LIBS -lintl $libintl_extra_libs"
5121 unset ac_cv_func_bind_textdomain_codeset
5122
5123 for ac_func in bind_textdomain_codeset
5124 do
5125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5126 echo "$as_me:$LINENO: checking for $ac_func" >&5
5127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5128 if eval "test \"\${$as_ac_var+set}\" = set"; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5139 #define $ac_func innocuous_$ac_func
5140
5141 /* System header to define __stub macros and hopefully few prototypes,
5142 which can conflict with char $ac_func (); below.
5143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5144 <limits.h> exists even on freestanding compilers. */
5145
5146 #ifdef __STDC__
5147 # include <limits.h>
5148 #else
5149 # include <assert.h>
5150 #endif
5151
5152 #undef $ac_func
5153
5154 /* Override any gcc2 internal prototype to avoid an error. */
5155 #ifdef __cplusplus
5156 extern "C"
5157 {
5158 #endif
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5161 char $ac_func ();
5162 /* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5166 choke me
5167 #else
5168 char (*f) () = $ac_func;
5169 #endif
5170 #ifdef __cplusplus
5171 }
5172 #endif
5173
5174 int
5175 main ()
5176 {
5177 return f != $ac_func;
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184 (eval $ac_link) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 eval "$as_ac_var=yes"
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 eval "$as_ac_var=no"
5209 fi
5210 rm -f conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 fi
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5215 if test `eval echo '${'$as_ac_var'}'` = yes; then
5216 cat >>confdefs.h <<_ACEOF
5217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5218 _ACEOF
5219
5220 fi
5221 done
5222
5223 LIBS="$glib_save_LIBS"
5224
5225 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5226 gt_cv_func_dgettext_libc=no
5227 else
5228 if test "$gt_cv_func_dgettext_libc" = "yes" \
5229 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5230 gt_cv_func_dgettext_libintl=no
5231 fi
5232 fi
5233 fi
5234 fi
5235
5236 if test "$gt_cv_func_dgettext_libc" = "yes" \
5237 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5238 gt_cv_have_gettext=yes
5239 fi
5240
5241 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5242 INTLLIBS="-lintl $libintl_extra_libs"
5243 fi
5244
5245 if test "$gt_cv_have_gettext" = "yes"; then
5246
5247 cat >>confdefs.h <<\_ACEOF
5248 #define HAVE_GETTEXT 1
5249 _ACEOF
5250
5251 # Extract the first word of "msgfmt", so it can be a program name with args.
5252 set dummy msgfmt; ac_word=$2
5253 echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255 if test "${ac_cv_path_MSGFMT+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 case "$MSGFMT" in
5259 /*)
5260 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5261 ;;
5262 *)
5263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5264 for ac_dir in $PATH; do
5265 test -z "$ac_dir" && ac_dir=.
5266 if test -f $ac_dir/$ac_word; then
5267 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5268 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5269 break
5270 fi
5271 fi
5272 done
5273 IFS="$ac_save_ifs"
5274 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5275 ;;
5276 esac
5277 fi
5278 MSGFMT="$ac_cv_path_MSGFMT"
5279 if test "$MSGFMT" != "no"; then
5280 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5281 echo "${ECHO_T}$MSGFMT" >&6
5282 else
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5285 fi
5286 if test "$MSGFMT" != "no"; then
5287 glib_save_LIBS="$LIBS"
5288 LIBS="$LIBS $INTLLIBS"
5289
5290 for ac_func in dcgettext
5291 do
5292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5293 echo "$as_me:$LINENO: checking for $ac_func" >&5
5294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5295 if eval "test \"\${$as_ac_var+set}\" = set"; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5306 #define $ac_func innocuous_$ac_func
5307
5308 /* System header to define __stub macros and hopefully few prototypes,
5309 which can conflict with char $ac_func (); below.
5310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 <limits.h> exists even on freestanding compilers. */
5312
5313 #ifdef __STDC__
5314 # include <limits.h>
5315 #else
5316 # include <assert.h>
5317 #endif
5318
5319 #undef $ac_func
5320
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 #ifdef __cplusplus
5323 extern "C"
5324 {
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5328 char $ac_func ();
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5333 choke me
5334 #else
5335 char (*f) () = $ac_func;
5336 #endif
5337 #ifdef __cplusplus
5338 }
5339 #endif
5340
5341 int
5342 main ()
5343 {
5344 return f != $ac_func;
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351 (eval $ac_link) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 eval "$as_ac_var=yes"
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 eval "$as_ac_var=no"
5376 fi
5377 rm -f conftest.err conftest.$ac_objext \
5378 conftest$ac_exeext conftest.$ac_ext
5379 fi
5380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5382 if test `eval echo '${'$as_ac_var'}'` = yes; then
5383 cat >>confdefs.h <<_ACEOF
5384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5385 _ACEOF
5386
5387 fi
5388 done
5389
5390 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5391 set dummy gmsgfmt; ac_word=$2
5392 echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 case $GMSGFMT in
5398 [\\/]* | ?:[\\/]*)
5399 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5400 ;;
5401 *)
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413 done
5414 done
5415
5416 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5417 ;;
5418 esac
5419 fi
5420 GMSGFMT=$ac_cv_path_GMSGFMT
5421
5422 if test -n "$GMSGFMT"; then
5423 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5424 echo "${ECHO_T}$GMSGFMT" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6
5428 fi
5429
5430 # Extract the first word of "xgettext", so it can be a program name with args.
5431 set dummy xgettext; ac_word=$2
5432 echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 case "$XGETTEXT" in
5438 /*)
5439 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5440 ;;
5441 *)
5442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5443 for ac_dir in $PATH; do
5444 test -z "$ac_dir" && ac_dir=.
5445 if test -f $ac_dir/$ac_word; then
5446 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5447 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5448 break
5449 fi
5450 fi
5451 done
5452 IFS="$ac_save_ifs"
5453 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5454 ;;
5455 esac
5456 fi
5457 XGETTEXT="$ac_cv_path_XGETTEXT"
5458 if test "$XGETTEXT" != ":"; then
5459 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5460 echo "${ECHO_T}$XGETTEXT" >&6
5461 else
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472
5473 int
5474 main ()
5475 {
5476 extern int _nl_msg_cat_cntr;
5477 return _nl_msg_cat_cntr
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484 (eval $ac_link) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest$ac_exeext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 CATOBJEXT=.gmo
5504 DATADIRNAME=share
5505 else
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 case $host in
5510 *-*-solaris*)
5511 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
5512 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
5513 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
5523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5524 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
5525
5526 /* System header to define __stub macros and hopefully few prototypes,
5527 which can conflict with char bind_textdomain_codeset (); below.
5528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529 <limits.h> exists even on freestanding compilers. */
5530
5531 #ifdef __STDC__
5532 # include <limits.h>
5533 #else
5534 # include <assert.h>
5535 #endif
5536
5537 #undef bind_textdomain_codeset
5538
5539 /* Override any gcc2 internal prototype to avoid an error. */
5540 #ifdef __cplusplus
5541 extern "C"
5542 {
5543 #endif
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char bind_textdomain_codeset ();
5547 /* The GNU C library defines this for functions which it implements
5548 to always fail with ENOSYS. Some functions are actually named
5549 something starting with __ and the normal name is an alias. */
5550 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
5551 choke me
5552 #else
5553 char (*f) () = bind_textdomain_codeset;
5554 #endif
5555 #ifdef __cplusplus
5556 }
5557 #endif
5558
5559 int
5560 main ()
5561 {
5562 return f != bind_textdomain_codeset;
5563 ;
5564 return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 (eval $ac_try) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; } &&
5582 { ac_try='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_cv_func_bind_textdomain_codeset=yes
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ac_cv_func_bind_textdomain_codeset=no
5594 fi
5595 rm -f conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 fi
5598 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
5599 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
5600 if test $ac_cv_func_bind_textdomain_codeset = yes; then
5601 CATOBJEXT=.gmo
5602 DATADIRNAME=share
5603 else
5604 CATOBJEXT=.mo
5605 DATADIRNAME=lib
5606 fi
5607
5608 ;;
5609 *)
5610 CATOBJEXT=.mo
5611 DATADIRNAME=lib
5612 ;;
5613 esac
5614 fi
5615 rm -f conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617 LIBS="$glib_save_LIBS"
5618 INSTOBJEXT=.mo
5619 else
5620 gt_cv_have_gettext=no
5621 fi
5622 fi
5623
5624 fi
5625
5626
5627
5628 if test "$gt_cv_have_gettext" = "yes" ; then
5629
5630 cat >>confdefs.h <<\_ACEOF
5631 #define ENABLE_NLS 1
5632 _ACEOF
5633
5634 fi
5635
5636 if test "$XGETTEXT" != ":"; then
5637 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5638 : ;
5639 else
5640 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5641 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5642 XGETTEXT=":"
5643 fi
5644 fi
5645
5646 # We need to process the po/ directory.
5647 POSUB=po
5648
5649 ac_config_commands="$ac_config_commands default-2"
5650
5651
5652 for lang in $ALL_LINGUAS; do
5653 GMOFILES="$GMOFILES $lang.gmo"
5654 POFILES="$POFILES $lang.po"
5655 done
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 if test "$gt_cv_have_gettext" = "yes"; then
5670 if test "x$ALL_LINGUAS" = "x"; then
5671 LINGUAS=
5672 else
5673 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5674 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5675 NEW_LINGUAS=
5676 for presentlang in $ALL_LINGUAS; do
5677 useit=no
5678 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5679 desiredlanguages="$LINGUAS"
5680 else
5681 desiredlanguages="$ALL_LINGUAS"
5682 fi
5683 for desiredlang in $desiredlanguages; do
5684 # Use the presentlang catalog if desiredlang is
5685 # a. equal to presentlang, or
5686 # b. a variant of presentlang (because in this case,
5687 # presentlang can be used as a fallback for messages
5688 # which are not translated in the desiredlang catalog).
5689 case "$desiredlang" in
5690 "$presentlang"*) useit=yes;;
5691 esac
5692 done
5693 if test $useit = yes; then
5694 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5695 fi
5696 done
5697 LINGUAS=$NEW_LINGUAS
5698 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5699 echo "${ECHO_T}$LINGUAS" >&6
5700 fi
5701
5702 if test -n "$LINGUAS"; then
5703 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5704 fi
5705 fi
5706
5707 MKINSTALLDIRS=
5708 if test -n "$ac_aux_dir"; then
5709 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5710 fi
5711 if test -z "$MKINSTALLDIRS"; then
5712 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5713 fi
5714
5715
5716 test -d po || mkdir po
5717 if test "x$srcdir" != "x."; then
5718 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5719 posrcprefix="$srcdir/"
5720 else
5721 posrcprefix="../$srcdir/"
5722 fi
5723 else
5724 posrcprefix="../"
5725 fi
5726 rm -f po/POTFILES
5727 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5728 < $srcdir/po/POTFILES.in > po/POTFILES
5729
5730
5731 LIBEXECDIR=${prefix}/libexec
5732
5733 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
5734 cat >confcache <<\_ACEOF
5735 # This file is a shell script that caches the results of configure
5736 # tests run on this system so they can be shared between configure
5737 # scripts and configure runs, see configure's option --config-cache.
5738 # It is not useful on other systems. If it contains results you don't
5739 # want to keep, you may remove or edit it.
5740 #
5741 # config.status only pays attention to the cache file if you give it
5742 # the --recheck option to rerun configure.
5743 #
5744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5746 # following values.
5747
5748 _ACEOF
5749
5750 # The following way of writing the cache mishandles newlines in values,
5751 # but we know of no workaround that is simple, portable, and efficient.
5752 # So, don't put newlines in cache variables' values.
5753 # Ultrix sh set writes to stderr and can't be redirected directly,
5754 # and sets the high bit in the cache file unless we assign to the vars.
5755 {
5756 (set) 2>&1 |
5757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5758 *ac_space=\ *)
5759 # `set' does not quote correctly, so add quotes (double-quote
5760 # substitution turns \\\\ into \\, and sed turns \\ into \).
5761 sed -n \
5762 "s/'/'\\\\''/g;
5763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5764 ;;
5765 *)
5766 # `set' quotes correctly as required by POSIX, so do not add quotes.
5767 sed -n \
5768 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5769 ;;
5770 esac;
5771 } |
5772 sed '
5773 t clear
5774 : clear
5775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5776 t end
5777 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5778 : end' >>confcache
5779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5780 if test -w $cache_file; then
5781 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5782 cat confcache >$cache_file
5783 else
5784 echo "not updating unwritable cache $cache_file"
5785 fi
5786 fi
5787 rm -f confcache
5788
5789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5790 # Let make expand exec_prefix.
5791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5792
5793 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5794 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5795 # trailing colons and then remove the whole line if VPATH becomes empty
5796 # (actually we leave an empty line to preserve line numbers).
5797 if test "x$srcdir" = x.; then
5798 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5799 s/:*\$(srcdir):*/:/;
5800 s/:*\${srcdir}:*/:/;
5801 s/:*@srcdir@:*/:/;
5802 s/^\([^=]*=[ ]*\):*/\1/;
5803 s/:*$//;
5804 s/^[^=]*=[ ]*$//;
5805 }'
5806 fi
5807
5808 DEFS=-DHAVE_CONFIG_H
5809
5810 ac_libobjs=
5811 ac_ltlibobjs=
5812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5813 # 1. Remove the extension, and $U if already installed.
5814 ac_i=`echo "$ac_i" |
5815 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5816 # 2. Add them.
5817 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5818 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5819 done
5820 LIBOBJS=$ac_libobjs
5821
5822 LTLIBOBJS=$ac_ltlibobjs
5823
5824
5825
5826 : ${CONFIG_STATUS=./config.status}
5827 ac_clean_files_save=$ac_clean_files
5828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5831 cat >$CONFIG_STATUS <<_ACEOF
5832 #! $SHELL
5833 # Generated by $as_me.
5834 # Run this file to recreate the current configuration.
5835 # Compiler output produced by configure, useful for debugging
5836 # configure, is in config.log if it exists.
5837
5838 debug=false
5839 ac_cs_recheck=false
5840 ac_cs_silent=false
5841 SHELL=\${CONFIG_SHELL-$SHELL}
5842 _ACEOF
5843
5844 cat >>$CONFIG_STATUS <<\_ACEOF
5845 ## --------------------- ##
5846 ## M4sh Initialization. ##
5847 ## --------------------- ##
5848
5849 # Be Bourne compatible
5850 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5851 emulate sh
5852 NULLCMD=:
5853 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5854 # is contrary to our usage. Disable this feature.
5855 alias -g '${1+"$@"}'='"$@"'
5856 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5857 set -o posix
5858 fi
5859 DUALCASE=1; export DUALCASE # for MKS sh
5860
5861 # Support unset when possible.
5862 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5863 as_unset=unset
5864 else
5865 as_unset=false
5866 fi
5867
5868
5869 # Work around bugs in pre-3.0 UWIN ksh.
5870 $as_unset ENV MAIL MAILPATH
5871 PS1='$ '
5872 PS2='> '
5873 PS4='+ '
5874
5875 # NLS nuisances.
5876 for as_var in \
5877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5879 LC_TELEPHONE LC_TIME
5880 do
5881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5882 eval $as_var=C; export $as_var
5883 else
5884 $as_unset $as_var
5885 fi
5886 done
5887
5888 # Required to use basename.
5889 if expr a : '\(a\)' >/dev/null 2>&1; then
5890 as_expr=expr
5891 else
5892 as_expr=false
5893 fi
5894
5895 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5896 as_basename=basename
5897 else
5898 as_basename=false
5899 fi
5900
5901
5902 # Name of the executable.
5903 as_me=`$as_basename "$0" ||
5904 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5905 X"$0" : 'X\(//\)$' \| \
5906 X"$0" : 'X\(/\)$' \| \
5907 . : '\(.\)' 2>/dev/null ||
5908 echo X/"$0" |
5909 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5910 /^X\/\(\/\/\)$/{ s//\1/; q; }
5911 /^X\/\(\/\).*/{ s//\1/; q; }
5912 s/.*/./; q'`
5913
5914
5915 # PATH needs CR, and LINENO needs CR and PATH.
5916 # Avoid depending upon Character Ranges.
5917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5920 as_cr_digits='0123456789'
5921 as_cr_alnum=$as_cr_Letters$as_cr_digits
5922
5923 # The user is always right.
5924 if test "${PATH_SEPARATOR+set}" != set; then
5925 echo "#! /bin/sh" >conf$$.sh
5926 echo "exit 0" >>conf$$.sh
5927 chmod +x conf$$.sh
5928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5929 PATH_SEPARATOR=';'
5930 else
5931 PATH_SEPARATOR=:
5932 fi
5933 rm -f conf$$.sh
5934 fi
5935
5936
5937 as_lineno_1=$LINENO
5938 as_lineno_2=$LINENO
5939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5940 test "x$as_lineno_1" != "x$as_lineno_2" &&
5941 test "x$as_lineno_3" = "x$as_lineno_2" || {
5942 # Find who we are. Look in the path if we contain no path at all
5943 # relative or not.
5944 case $0 in
5945 *[\\/]* ) as_myself=$0 ;;
5946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5952 done
5953
5954 ;;
5955 esac
5956 # We did not find ourselves, most probably we were run as `sh COMMAND'
5957 # in which case we are not to be found in the path.
5958 if test "x$as_myself" = x; then
5959 as_myself=$0
5960 fi
5961 if test ! -f "$as_myself"; then
5962 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5963 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5964 { (exit 1); exit 1; }; }
5965 fi
5966 case $CONFIG_SHELL in
5967 '')
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for as_base in sh bash ksh sh5; do
5974 case $as_dir in
5975 /*)
5976 if ("$as_dir/$as_base" -c '
5977 as_lineno_1=$LINENO
5978 as_lineno_2=$LINENO
5979 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5980 test "x$as_lineno_1" != "x$as_lineno_2" &&
5981 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5982 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5983 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5984 CONFIG_SHELL=$as_dir/$as_base
5985 export CONFIG_SHELL
5986 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5987 fi;;
5988 esac
5989 done
5990 done
5991 ;;
5992 esac
5993
5994 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5995 # uniformly replaced by the line number. The first 'sed' inserts a
5996 # line-number line before each line; the second 'sed' does the real
5997 # work. The second script uses 'N' to pair each line-number line
5998 # with the numbered line, and appends trailing '-' during
5999 # substitution so that $LINENO is not a special case at line end.
6000 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6001 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6002 sed '=' <$as_myself |
6003 sed '
6004 N
6005 s,$,-,
6006 : loop
6007 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6008 t loop
6009 s,-$,,
6010 s,^['$as_cr_digits']*\n,,
6011 ' >$as_me.lineno &&
6012 chmod +x $as_me.lineno ||
6013 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6014 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6015 { (exit 1); exit 1; }; }
6016
6017 # Don't try to exec as it changes $[0], causing all sort of problems
6018 # (the dirname of $[0] is not the place where we might find the
6019 # original and so on. Autoconf is especially sensible to this).
6020 . ./$as_me.lineno
6021 # Exit status is that of the last command.
6022 exit
6023 }
6024
6025
6026 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6027 *c*,-n*) ECHO_N= ECHO_C='
6028 ' ECHO_T=' ' ;;
6029 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6030 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6031 esac
6032
6033 if expr a : '\(a\)' >/dev/null 2>&1; then
6034 as_expr=expr
6035 else
6036 as_expr=false
6037 fi
6038
6039 rm -f conf$$ conf$$.exe conf$$.file
6040 echo >conf$$.file
6041 if ln -s conf$$.file conf$$ 2>/dev/null; then
6042 # We could just check for DJGPP; but this test a) works b) is more generic
6043 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6044 if test -f conf$$.exe; then
6045 # Don't use ln at all; we don't have any links
6046 as_ln_s='cp -p'
6047 else
6048 as_ln_s='ln -s'
6049 fi
6050 elif ln conf$$.file conf$$ 2>/dev/null; then
6051 as_ln_s=ln
6052 else
6053 as_ln_s='cp -p'
6054 fi
6055 rm -f conf$$ conf$$.exe conf$$.file
6056
6057 if mkdir -p . 2>/dev/null; then
6058 as_mkdir_p=:
6059 else
6060 test -d ./-p && rmdir ./-p
6061 as_mkdir_p=false
6062 fi
6063
6064 as_executable_p="test -f"
6065
6066 # Sed expression to map a string onto a valid CPP name.
6067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6068
6069 # Sed expression to map a string onto a valid variable name.
6070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6071
6072
6073 # IFS
6074 # We need space, tab and new line, in precisely that order.
6075 as_nl='
6076 '
6077 IFS=" $as_nl"
6078
6079 # CDPATH.
6080 $as_unset CDPATH
6081
6082 exec 6>&1
6083
6084 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6085 # report actual input values of CONFIG_FILES etc. instead of their
6086 # values after options handling. Logging --version etc. is OK.
6087 exec 5>>config.log
6088 {
6089 echo
6090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6091 ## Running $as_me. ##
6092 _ASBOX
6093 } >&5
6094 cat >&5 <<_CSEOF
6095
6096 This file was extended by $as_me, which was
6097 generated by GNU Autoconf 2.59. Invocation command line was
6098
6099 CONFIG_FILES = $CONFIG_FILES
6100 CONFIG_HEADERS = $CONFIG_HEADERS
6101 CONFIG_LINKS = $CONFIG_LINKS
6102 CONFIG_COMMANDS = $CONFIG_COMMANDS
6103 $ $0 $@
6104
6105 _CSEOF
6106 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6107 echo >&5
6108 _ACEOF
6109
6110 # Files that config.status was made for.
6111 if test -n "$ac_config_files"; then
6112 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6113 fi
6114
6115 if test -n "$ac_config_headers"; then
6116 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6117 fi
6118
6119 if test -n "$ac_config_links"; then
6120 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6121 fi
6122
6123 if test -n "$ac_config_commands"; then
6124 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6125 fi
6126
6127 cat >>$CONFIG_STATUS <<\_ACEOF
6128
6129 ac_cs_usage="\
6130 \`$as_me' instantiates files from templates according to the
6131 current configuration.
6132
6133 Usage: $0 [OPTIONS] [FILE]...
6134
6135 -h, --help print this help, then exit
6136 -V, --version print version number, then exit
6137 -q, --quiet do not print progress messages
6138 -d, --debug don't remove temporary files
6139 --recheck update $as_me by reconfiguring in the same conditions
6140 --file=FILE[:TEMPLATE]
6141 instantiate the configuration file FILE
6142 --header=FILE[:TEMPLATE]
6143 instantiate the configuration header FILE
6144
6145 Configuration files:
6146 $config_files
6147
6148 Configuration headers:
6149 $config_headers
6150
6151 Configuration commands:
6152 $config_commands
6153
6154 Report bugs to <[email protected]>."
6155 _ACEOF
6156
6157 cat >>$CONFIG_STATUS <<_ACEOF
6158 ac_cs_version="\\
6159 config.status
6160 configured by $0, generated by GNU Autoconf 2.59,
6161 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6162
6163 Copyright (C) 2003 Free Software Foundation, Inc.
6164 This config.status script is free software; the Free Software Foundation
6165 gives unlimited permission to copy, distribute and modify it."
6166 srcdir=$srcdir
6167 INSTALL="$INSTALL"
6168 _ACEOF
6169
6170 cat >>$CONFIG_STATUS <<\_ACEOF
6171 # If no file are specified by the user, then we need to provide default
6172 # value. By we need to know if files were specified by the user.
6173 ac_need_defaults=:
6174 while test $# != 0
6175 do
6176 case $1 in
6177 --*=*)
6178 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6180 ac_shift=:
6181 ;;
6182 -*)
6183 ac_option=$1
6184 ac_optarg=$2
6185 ac_shift=shift
6186 ;;
6187 *) # This is not an option, so the user has probably given explicit
6188 # arguments.
6189 ac_option=$1
6190 ac_need_defaults=false;;
6191 esac
6192
6193 case $ac_option in
6194 # Handling of the options.
6195 _ACEOF
6196 cat >>$CONFIG_STATUS <<\_ACEOF
6197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6198 ac_cs_recheck=: ;;
6199 --version | --vers* | -V )
6200 echo "$ac_cs_version"; exit 0 ;;
6201 --he | --h)
6202 # Conflict between --help and --header
6203 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6204 Try \`$0 --help' for more information." >&5
6205 echo "$as_me: error: ambiguous option: $1
6206 Try \`$0 --help' for more information." >&2;}
6207 { (exit 1); exit 1; }; };;
6208 --help | --hel | -h )
6209 echo "$ac_cs_usage"; exit 0 ;;
6210 --debug | --d* | -d )
6211 debug=: ;;
6212 --file | --fil | --fi | --f )
6213 $ac_shift
6214 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6215 ac_need_defaults=false;;
6216 --header | --heade | --head | --hea )
6217 $ac_shift
6218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6219 ac_need_defaults=false;;
6220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6222 ac_cs_silent=: ;;
6223
6224 # This is an error.
6225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6226 Try \`$0 --help' for more information." >&5
6227 echo "$as_me: error: unrecognized option: $1
6228 Try \`$0 --help' for more information." >&2;}
6229 { (exit 1); exit 1; }; } ;;
6230
6231 *) ac_config_targets="$ac_config_targets $1" ;;
6232
6233 esac
6234 shift
6235 done
6236
6237 ac_configure_extra_args=
6238
6239 if $ac_cs_silent; then
6240 exec 6>/dev/null
6241 ac_configure_extra_args="$ac_configure_extra_args --silent"
6242 fi
6243
6244 _ACEOF
6245 cat >>$CONFIG_STATUS <<_ACEOF
6246 if \$ac_cs_recheck; then
6247 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6248 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6249 fi
6250
6251 _ACEOF
6252
6253 cat >>$CONFIG_STATUS <<_ACEOF
6254 #
6255 # INIT-COMMANDS section.
6256 #
6257
6258
6259
6260
6261 _ACEOF
6262
6263
6264
6265 cat >>$CONFIG_STATUS <<\_ACEOF
6266 for ac_config_target in $ac_config_targets
6267 do
6268 case "$ac_config_target" in
6269 # Handling of arguments.
6270 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6271 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6272 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
6273 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6274 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
6275 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6278 { (exit 1); exit 1; }; };;
6279 esac
6280 done
6281
6282 # If the user did not use the arguments to specify the items to instantiate,
6283 # then the envvar interface is used. Set only those that are not.
6284 # We use the long form for the default assignment because of an extremely
6285 # bizarre bug on SunOS 4.1.3.
6286 if $ac_need_defaults; then
6287 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6288 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6289 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6290 fi
6291
6292 # Have a temporary directory for convenience. Make it in the build tree
6293 # simply because there is no reason to put it here, and in addition,
6294 # creating and moving files from /tmp can sometimes cause problems.
6295 # Create a temporary directory, and hook for its removal unless debugging.
6296 $debug ||
6297 {
6298 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6299 trap '{ (exit 1); exit 1; }' 1 2 13 15
6300 }
6301
6302 # Create a (secure) tmp directory for tmp files.
6303
6304 {
6305 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6306 test -n "$tmp" && test -d "$tmp"
6307 } ||
6308 {
6309 tmp=./confstat$$-$RANDOM
6310 (umask 077 && mkdir $tmp)
6311 } ||
6312 {
6313 echo "$me: cannot create a temporary directory in ." >&2
6314 { (exit 1); exit 1; }
6315 }
6316
6317 _ACEOF
6318
6319 cat >>$CONFIG_STATUS <<_ACEOF
6320
6321 #
6322 # CONFIG_FILES section.
6323 #
6324
6325 # No need to generate the scripts if there are no CONFIG_FILES.
6326 # This happens for instance when ./config.status config.h
6327 if test -n "\$CONFIG_FILES"; then
6328 # Protect against being on the right side of a sed subst in config.status.
6329 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6330 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6331 s,@SHELL@,$SHELL,;t t
6332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6338 s,@exec_prefix@,$exec_prefix,;t t
6339 s,@prefix@,$prefix,;t t
6340 s,@program_transform_name@,$program_transform_name,;t t
6341 s,@bindir@,$bindir,;t t
6342 s,@sbindir@,$sbindir,;t t
6343 s,@libexecdir@,$libexecdir,;t t
6344 s,@datadir@,$datadir,;t t
6345 s,@sysconfdir@,$sysconfdir,;t t
6346 s,@sharedstatedir@,$sharedstatedir,;t t
6347 s,@localstatedir@,$localstatedir,;t t
6348 s,@libdir@,$libdir,;t t
6349 s,@includedir@,$includedir,;t t
6350 s,@oldincludedir@,$oldincludedir,;t t
6351 s,@infodir@,$infodir,;t t
6352 s,@mandir@,$mandir,;t t
6353 s,@build_alias@,$build_alias,;t t
6354 s,@host_alias@,$host_alias,;t t
6355 s,@target_alias@,$target_alias,;t t
6356 s,@DEFS@,$DEFS,;t t
6357 s,@ECHO_C@,$ECHO_C,;t t
6358 s,@ECHO_N@,$ECHO_N,;t t
6359 s,@ECHO_T@,$ECHO_T,;t t
6360 s,@LIBS@,$LIBS,;t t
6361 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6362 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6363 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6364 s,@PACKAGE@,$PACKAGE,;t t
6365 s,@VERSION@,$VERSION,;t t
6366 s,@ACLOCAL@,$ACLOCAL,;t t
6367 s,@AUTOCONF@,$AUTOCONF,;t t
6368 s,@AUTOMAKE@,$AUTOMAKE,;t t
6369 s,@AUTOHEADER@,$AUTOHEADER,;t t
6370 s,@MAKEINFO@,$MAKEINFO,;t t
6371 s,@SET_MAKE@,$SET_MAKE,;t t
6372 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6373 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6374 s,@MAINT@,$MAINT,;t t
6375 s,@CC@,$CC,;t t
6376 s,@CFLAGS@,$CFLAGS,;t t
6377 s,@LDFLAGS@,$LDFLAGS,;t t
6378 s,@CPPFLAGS@,$CPPFLAGS,;t t
6379 s,@ac_ct_CC@,$ac_ct_CC,;t t
6380 s,@EXEEXT@,$EXEEXT,;t t
6381 s,@OBJEXT@,$OBJEXT,;t t
6382 s,@CPP@,$CPP,;t t
6383 s,@EGREP@,$EGREP,;t t
6384 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
6385 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
6386 s,@PACKAGE_CFLAGS@,$PACKAGE_CFLAGS,;t t
6387 s,@PACKAGE_LIBS@,$PACKAGE_LIBS,;t t
6388 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
6389 s,@USE_NLS@,$USE_NLS,;t t
6390 s,@MSGFMT@,$MSGFMT,;t t
6391 s,@GMSGFMT@,$GMSGFMT,;t t
6392 s,@XGETTEXT@,$XGETTEXT,;t t
6393 s,@CATALOGS@,$CATALOGS,;t t
6394 s,@CATOBJEXT@,$CATOBJEXT,;t t
6395 s,@DATADIRNAME@,$DATADIRNAME,;t t
6396 s,@GMOFILES@,$GMOFILES,;t t
6397 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6398 s,@INTLLIBS@,$INTLLIBS,;t t
6399 s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
6400 s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
6401 s,@POFILES@,$POFILES,;t t
6402 s,@POSUB@,$POSUB,;t t
6403 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6404 s,@LIBOBJS@,$LIBOBJS,;t t
6405 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6406 CEOF
6407
6408 _ACEOF
6409
6410 cat >>$CONFIG_STATUS <<\_ACEOF
6411 # Split the substitutions into bite-sized pieces for seds with
6412 # small command number limits, like on Digital OSF/1 and HP-UX.
6413 ac_max_sed_lines=48
6414 ac_sed_frag=1 # Number of current file.
6415 ac_beg=1 # First line for current file.
6416 ac_end=$ac_max_sed_lines # Line after last line for current file.
6417 ac_more_lines=:
6418 ac_sed_cmds=
6419 while $ac_more_lines; do
6420 if test $ac_beg -gt 1; then
6421 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6422 else
6423 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6424 fi
6425 if test ! -s $tmp/subs.frag; then
6426 ac_more_lines=false
6427 else
6428 # The purpose of the label and of the branching condition is to
6429 # speed up the sed processing (if there are no `@' at all, there
6430 # is no need to browse any of the substitutions).
6431 # These are the two extra sed commands mentioned above.
6432 (echo ':t
6433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6434 if test -z "$ac_sed_cmds"; then
6435 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6436 else
6437 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6438 fi
6439 ac_sed_frag=`expr $ac_sed_frag + 1`
6440 ac_beg=$ac_end
6441 ac_end=`expr $ac_end + $ac_max_sed_lines`
6442 fi
6443 done
6444 if test -z "$ac_sed_cmds"; then
6445 ac_sed_cmds=cat
6446 fi
6447 fi # test -n "$CONFIG_FILES"
6448
6449 _ACEOF
6450 cat >>$CONFIG_STATUS <<\_ACEOF
6451 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6452 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6453 case $ac_file in
6454 - | *:- | *:-:* ) # input from stdin
6455 cat >$tmp/stdin
6456 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6457 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6458 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6459 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6460 * ) ac_file_in=$ac_file.in ;;
6461 esac
6462
6463 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6466 X"$ac_file" : 'X\(//\)[^/]' \| \
6467 X"$ac_file" : 'X\(//\)$' \| \
6468 X"$ac_file" : 'X\(/\)' \| \
6469 . : '\(.\)' 2>/dev/null ||
6470 echo X"$ac_file" |
6471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6473 /^X\(\/\/\)$/{ s//\1/; q; }
6474 /^X\(\/\).*/{ s//\1/; q; }
6475 s/.*/./; q'`
6476 { if $as_mkdir_p; then
6477 mkdir -p "$ac_dir"
6478 else
6479 as_dir="$ac_dir"
6480 as_dirs=
6481 while test ! -d "$as_dir"; do
6482 as_dirs="$as_dir $as_dirs"
6483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6485 X"$as_dir" : 'X\(//\)[^/]' \| \
6486 X"$as_dir" : 'X\(//\)$' \| \
6487 X"$as_dir" : 'X\(/\)' \| \
6488 . : '\(.\)' 2>/dev/null ||
6489 echo X"$as_dir" |
6490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6492 /^X\(\/\/\)$/{ s//\1/; q; }
6493 /^X\(\/\).*/{ s//\1/; q; }
6494 s/.*/./; q'`
6495 done
6496 test ! -n "$as_dirs" || mkdir $as_dirs
6497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6499 { (exit 1); exit 1; }; }; }
6500
6501 ac_builddir=.
6502
6503 if test "$ac_dir" != .; then
6504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6505 # A "../" for each directory in $ac_dir_suffix.
6506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6507 else
6508 ac_dir_suffix= ac_top_builddir=
6509 fi
6510
6511 case $srcdir in
6512 .) # No --srcdir option. We are building in place.
6513 ac_srcdir=.
6514 if test -z "$ac_top_builddir"; then
6515 ac_top_srcdir=.
6516 else
6517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6518 fi ;;
6519 [\\/]* | ?:[\\/]* ) # Absolute path.
6520 ac_srcdir=$srcdir$ac_dir_suffix;
6521 ac_top_srcdir=$srcdir ;;
6522 *) # Relative path.
6523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6525 esac
6526
6527 # Do not use `cd foo && pwd` to compute absolute paths, because
6528 # the directories may not exist.
6529 case `pwd` in
6530 .) ac_abs_builddir="$ac_dir";;
6531 *)
6532 case "$ac_dir" in
6533 .) ac_abs_builddir=`pwd`;;
6534 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6535 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6536 esac;;
6537 esac
6538 case $ac_abs_builddir in
6539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6540 *)
6541 case ${ac_top_builddir}. in
6542 .) ac_abs_top_builddir=$ac_abs_builddir;;
6543 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6544 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6545 esac;;
6546 esac
6547 case $ac_abs_builddir in
6548 .) ac_abs_srcdir=$ac_srcdir;;
6549 *)
6550 case $ac_srcdir in
6551 .) ac_abs_srcdir=$ac_abs_builddir;;
6552 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6553 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6554 esac;;
6555 esac
6556 case $ac_abs_builddir in
6557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6558 *)
6559 case $ac_top_srcdir in
6560 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6561 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6562 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6563 esac;;
6564 esac
6565
6566
6567 case $INSTALL in
6568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6569 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6570 esac
6571
6572 # Let's still pretend it is `configure' which instantiates (i.e., don't
6573 # use $as_me), people would be surprised to read:
6574 # /* config.h. Generated by config.status. */
6575 if test x"$ac_file" = x-; then
6576 configure_input=
6577 else
6578 configure_input="$ac_file. "
6579 fi
6580 configure_input=$configure_input"Generated from `echo $ac_file_in |
6581 sed 's,.*/,,'` by configure."
6582
6583 # First look for the input files in the build tree, otherwise in the
6584 # src tree.
6585 ac_file_inputs=`IFS=:
6586 for f in $ac_file_in; do
6587 case $f in
6588 -) echo $tmp/stdin ;;
6589 [\\/$]*)
6590 # Absolute (can't be DOS-style, as IFS=:)
6591 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6592 echo "$as_me: error: cannot find input file: $f" >&2;}
6593 { (exit 1); exit 1; }; }
6594 echo "$f";;
6595 *) # Relative
6596 if test -f "$f"; then
6597 # Build tree
6598 echo "$f"
6599 elif test -f "$srcdir/$f"; then
6600 # Source tree
6601 echo "$srcdir/$f"
6602 else
6603 # /dev/null tree
6604 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6605 echo "$as_me: error: cannot find input file: $f" >&2;}
6606 { (exit 1); exit 1; }; }
6607 fi;;
6608 esac
6609 done` || { (exit 1); exit 1; }
6610
6611 if test x"$ac_file" != x-; then
6612 { echo "$as_me:$LINENO: creating $ac_file" >&5
6613 echo "$as_me: creating $ac_file" >&6;}
6614 rm -f "$ac_file"
6615 fi
6616 _ACEOF
6617 cat >>$CONFIG_STATUS <<_ACEOF
6618 sed "$ac_vpsub
6619 $extrasub
6620 _ACEOF
6621 cat >>$CONFIG_STATUS <<\_ACEOF
6622 :t
6623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6624 s,@configure_input@,$configure_input,;t t
6625 s,@srcdir@,$ac_srcdir,;t t
6626 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6627 s,@top_srcdir@,$ac_top_srcdir,;t t
6628 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6629 s,@builddir@,$ac_builddir,;t t
6630 s,@abs_builddir@,$ac_abs_builddir,;t t
6631 s,@top_builddir@,$ac_top_builddir,;t t
6632 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6633 s,@INSTALL@,$ac_INSTALL,;t t
6634 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6635 rm -f $tmp/stdin
6636 if test x"$ac_file" != x-; then
6637 mv $tmp/out $ac_file
6638 else
6639 cat $tmp/out
6640 rm -f $tmp/out
6641 fi
6642
6643 done
6644 _ACEOF
6645 cat >>$CONFIG_STATUS <<\_ACEOF
6646
6647 #
6648 # CONFIG_HEADER section.
6649 #
6650
6651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6653 #
6654 # ac_d sets the value in "#define NAME VALUE" lines.
6655 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6656 ac_dB='[ ].*$,\1#\2'
6657 ac_dC=' '
6658 ac_dD=',;t'
6659 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6660 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6661 ac_uB='$,\1#\2define\3'
6662 ac_uC=' '
6663 ac_uD=',;t'
6664
6665 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6667 case $ac_file in
6668 - | *:- | *:-:* ) # input from stdin
6669 cat >$tmp/stdin
6670 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6672 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6674 * ) ac_file_in=$ac_file.in ;;
6675 esac
6676
6677 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6678 echo "$as_me: creating $ac_file" >&6;}
6679
6680 # First look for the input files in the build tree, otherwise in the
6681 # src tree.
6682 ac_file_inputs=`IFS=:
6683 for f in $ac_file_in; do
6684 case $f in
6685 -) echo $tmp/stdin ;;
6686 [\\/$]*)
6687 # Absolute (can't be DOS-style, as IFS=:)
6688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6689 echo "$as_me: error: cannot find input file: $f" >&2;}
6690 { (exit 1); exit 1; }; }
6691 # Do quote $f, to prevent DOS paths from being IFS'd.
6692 echo "$f";;
6693 *) # Relative
6694 if test -f "$f"; then
6695 # Build tree
6696 echo "$f"
6697 elif test -f "$srcdir/$f"; then
6698 # Source tree
6699 echo "$srcdir/$f"
6700 else
6701 # /dev/null tree
6702 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6703 echo "$as_me: error: cannot find input file: $f" >&2;}
6704 { (exit 1); exit 1; }; }
6705 fi;;
6706 esac
6707 done` || { (exit 1); exit 1; }
6708 # Remove the trailing spaces.
6709 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6710
6711 _ACEOF
6712
6713 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6714 # `conftest.undefs', that substitutes the proper values into
6715 # config.h.in to produce config.h. The first handles `#define'
6716 # templates, and the second `#undef' templates.
6717 # And first: Protect against being on the right side of a sed subst in
6718 # config.status. Protect against being in an unquoted here document
6719 # in config.status.
6720 rm -f conftest.defines conftest.undefs
6721 # Using a here document instead of a string reduces the quoting nightmare.
6722 # Putting comments in sed scripts is not portable.
6723 #
6724 # `end' is used to avoid that the second main sed command (meant for
6725 # 0-ary CPP macros) applies to n-ary macro definitions.
6726 # See the Autoconf documentation for `clear'.
6727 cat >confdef2sed.sed <<\_ACEOF
6728 s/[\\&,]/\\&/g
6729 s,[\\$`],\\&,g
6730 t clear
6731 : clear
6732 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6733 t end
6734 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6735 : end
6736 _ACEOF
6737 # If some macros were called several times there might be several times
6738 # the same #defines, which is useless. Nevertheless, we may not want to
6739 # sort them, since we want the *last* AC-DEFINE to be honored.
6740 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6741 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6742 rm -f confdef2sed.sed
6743
6744 # This sed command replaces #undef with comments. This is necessary, for
6745 # example, in the case of _POSIX_SOURCE, which is predefined and required
6746 # on some systems where configure will not decide to define it.
6747 cat >>conftest.undefs <<\_ACEOF
6748 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6749 _ACEOF
6750
6751 # Break up conftest.defines because some shells have a limit on the size
6752 # of here documents, and old seds have small limits too (100 cmds).
6753 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6754 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6755 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6756 echo ' :' >>$CONFIG_STATUS
6757 rm -f conftest.tail
6758 while grep . conftest.defines >/dev/null
6759 do
6760 # Write a limited-size here document to $tmp/defines.sed.
6761 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6762 # Speed up: don't consider the non `#define' lines.
6763 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6764 # Work around the forget-to-reset-the-flag bug.
6765 echo 't clr' >>$CONFIG_STATUS
6766 echo ': clr' >>$CONFIG_STATUS
6767 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6768 echo 'CEOF
6769 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6770 rm -f $tmp/in
6771 mv $tmp/out $tmp/in
6772 ' >>$CONFIG_STATUS
6773 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6774 rm -f conftest.defines
6775 mv conftest.tail conftest.defines
6776 done
6777 rm -f conftest.defines
6778 echo ' fi # grep' >>$CONFIG_STATUS
6779 echo >>$CONFIG_STATUS
6780
6781 # Break up conftest.undefs because some shells have a limit on the size
6782 # of here documents, and old seds have small limits too (100 cmds).
6783 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6784 rm -f conftest.tail
6785 while grep . conftest.undefs >/dev/null
6786 do
6787 # Write a limited-size here document to $tmp/undefs.sed.
6788 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6789 # Speed up: don't consider the non `#undef'
6790 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6791 # Work around the forget-to-reset-the-flag bug.
6792 echo 't clr' >>$CONFIG_STATUS
6793 echo ': clr' >>$CONFIG_STATUS
6794 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6795 echo 'CEOF
6796 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6797 rm -f $tmp/in
6798 mv $tmp/out $tmp/in
6799 ' >>$CONFIG_STATUS
6800 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6801 rm -f conftest.undefs
6802 mv conftest.tail conftest.undefs
6803 done
6804 rm -f conftest.undefs
6805
6806 cat >>$CONFIG_STATUS <<\_ACEOF
6807 # Let's still pretend it is `configure' which instantiates (i.e., don't
6808 # use $as_me), people would be surprised to read:
6809 # /* config.h. Generated by config.status. */
6810 if test x"$ac_file" = x-; then
6811 echo "/* Generated by configure. */" >$tmp/config.h
6812 else
6813 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6814 fi
6815 cat $tmp/in >>$tmp/config.h
6816 rm -f $tmp/in
6817 if test x"$ac_file" != x-; then
6818 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6819 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6820 echo "$as_me: $ac_file is unchanged" >&6;}
6821 else
6822 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6824 X"$ac_file" : 'X\(//\)[^/]' \| \
6825 X"$ac_file" : 'X\(//\)$' \| \
6826 X"$ac_file" : 'X\(/\)' \| \
6827 . : '\(.\)' 2>/dev/null ||
6828 echo X"$ac_file" |
6829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6831 /^X\(\/\/\)$/{ s//\1/; q; }
6832 /^X\(\/\).*/{ s//\1/; q; }
6833 s/.*/./; q'`
6834 { if $as_mkdir_p; then
6835 mkdir -p "$ac_dir"
6836 else
6837 as_dir="$ac_dir"
6838 as_dirs=
6839 while test ! -d "$as_dir"; do
6840 as_dirs="$as_dir $as_dirs"
6841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6843 X"$as_dir" : 'X\(//\)[^/]' \| \
6844 X"$as_dir" : 'X\(//\)$' \| \
6845 X"$as_dir" : 'X\(/\)' \| \
6846 . : '\(.\)' 2>/dev/null ||
6847 echo X"$as_dir" |
6848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6850 /^X\(\/\/\)$/{ s//\1/; q; }
6851 /^X\(\/\).*/{ s//\1/; q; }
6852 s/.*/./; q'`
6853 done
6854 test ! -n "$as_dirs" || mkdir $as_dirs
6855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6857 { (exit 1); exit 1; }; }; }
6858
6859 rm -f $ac_file
6860 mv $tmp/config.h $ac_file
6861 fi
6862 else
6863 cat $tmp/config.h
6864 rm -f $tmp/config.h
6865 fi
6866 done
6867 _ACEOF
6868 cat >>$CONFIG_STATUS <<\_ACEOF
6869
6870 #
6871 # CONFIG_COMMANDS section.
6872 #
6873 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6874 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6875 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6876 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6877 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6878 X"$ac_dest" : 'X\(//\)[^/]' \| \
6879 X"$ac_dest" : 'X\(//\)$' \| \
6880 X"$ac_dest" : 'X\(/\)' \| \
6881 . : '\(.\)' 2>/dev/null ||
6882 echo X"$ac_dest" |
6883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6885 /^X\(\/\/\)$/{ s//\1/; q; }
6886 /^X\(\/\).*/{ s//\1/; q; }
6887 s/.*/./; q'`
6888 { if $as_mkdir_p; then
6889 mkdir -p "$ac_dir"
6890 else
6891 as_dir="$ac_dir"
6892 as_dirs=
6893 while test ! -d "$as_dir"; do
6894 as_dirs="$as_dir $as_dirs"
6895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6897 X"$as_dir" : 'X\(//\)[^/]' \| \
6898 X"$as_dir" : 'X\(//\)$' \| \
6899 X"$as_dir" : 'X\(/\)' \| \
6900 . : '\(.\)' 2>/dev/null ||
6901 echo X"$as_dir" |
6902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6904 /^X\(\/\/\)$/{ s//\1/; q; }
6905 /^X\(\/\).*/{ s//\1/; q; }
6906 s/.*/./; q'`
6907 done
6908 test ! -n "$as_dirs" || mkdir $as_dirs
6909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6910 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6911 { (exit 1); exit 1; }; }; }
6912
6913 ac_builddir=.
6914
6915 if test "$ac_dir" != .; then
6916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6917 # A "../" for each directory in $ac_dir_suffix.
6918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6919 else
6920 ac_dir_suffix= ac_top_builddir=
6921 fi
6922
6923 case $srcdir in
6924 .) # No --srcdir option. We are building in place.
6925 ac_srcdir=.
6926 if test -z "$ac_top_builddir"; then
6927 ac_top_srcdir=.
6928 else
6929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6930 fi ;;
6931 [\\/]* | ?:[\\/]* ) # Absolute path.
6932 ac_srcdir=$srcdir$ac_dir_suffix;
6933 ac_top_srcdir=$srcdir ;;
6934 *) # Relative path.
6935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6937 esac
6938
6939 # Do not use `cd foo && pwd` to compute absolute paths, because
6940 # the directories may not exist.
6941 case `pwd` in
6942 .) ac_abs_builddir="$ac_dir";;
6943 *)
6944 case "$ac_dir" in
6945 .) ac_abs_builddir=`pwd`;;
6946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6948 esac;;
6949 esac
6950 case $ac_abs_builddir in
6951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6952 *)
6953 case ${ac_top_builddir}. in
6954 .) ac_abs_top_builddir=$ac_abs_builddir;;
6955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6957 esac;;
6958 esac
6959 case $ac_abs_builddir in
6960 .) ac_abs_srcdir=$ac_srcdir;;
6961 *)
6962 case $ac_srcdir in
6963 .) ac_abs_srcdir=$ac_abs_builddir;;
6964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6966 esac;;
6967 esac
6968 case $ac_abs_builddir in
6969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6970 *)
6971 case $ac_top_srcdir in
6972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6975 esac;;
6976 esac
6977
6978
6979 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6980 echo "$as_me: executing $ac_dest commands" >&6;}
6981 case $ac_dest in
6982 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6983 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
6984 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6985 esac ;;
6986 esac
6987 done
6988 _ACEOF
6989
6990 cat >>$CONFIG_STATUS <<\_ACEOF
6991
6992 { (exit 0); exit 0; }
6993 _ACEOF
6994 chmod +x $CONFIG_STATUS
6995 ac_clean_files=$ac_clean_files_save
6996
6997
6998 # configure is writing to config.log, and then calls config.status.
6999 # config.status does its own redirection, appending to config.log.
7000 # Unfortunately, on DOS this fails, as config.log is still kept open
7001 # by configure, so config.status won't be able to write to it; its
7002 # output is simply discarded. So we exec the FD to /dev/null,
7003 # effectively closing config.log, so it can be properly (re)opened and
7004 # appended to by config.status. When coming back to configure, we
7005 # need to make the FD available again.
7006 if test "$no_create" != yes; then
7007 ac_cs_success=:
7008 ac_config_status_args=
7009 test "$silent" = yes &&
7010 ac_config_status_args="$ac_config_status_args --quiet"
7011 exec 5>/dev/null
7012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7013 exec 5>>config.log
7014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7015 # would make configure fail if this is the last instruction.
7016 $ac_cs_success || { (exit 1); exit 1; }
7017 fi
7018