3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --disable-nls do not use Native Language Support"
17 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
19 --disable-rpath do not hardcode runtime library paths"
21 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
22 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
24 --disable-nls do not use Native Language Support"
26 --with-included-gettext use the GNU gettext library included here"
28 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
29 --without-libintl-prefix don't search for libintl in includedir and libdir"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file
=.
/config.cache
44 program_transform_name
=s
,x
,x
,
52 bindir
='${exec_prefix}/bin'
53 sbindir
='${exec_prefix}/sbin'
54 libexecdir
='${exec_prefix}/libexec'
55 datadir
='${prefix}/share'
56 sysconfdir
='${prefix}/etc'
57 sharedstatedir
='${prefix}/com'
58 localstatedir
='${prefix}/var'
59 libdir
='${exec_prefix}/lib'
60 includedir
='${prefix}/include'
61 oldincludedir
='/usr/include'
62 infodir
='${prefix}/info'
63 mandir
='${prefix}/man'
65 # Initialize some other variables.
68 SHELL
=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
94 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
95 bindir
="$ac_optarg" ;;
97 -build |
--build |
--buil |
--bui |
--bu)
99 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 build
="$ac_optarg" ;;
102 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
103 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
104 ac_prev
=cache_file
;;
105 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
106 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
107 cache_file
="$ac_optarg" ;;
109 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
111 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
113 datadir
="$ac_optarg" ;;
115 -disable-* |
--disable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* |
--enable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
138 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
139 |
--exec |
--exe |
--ex)
140 ac_prev
=exec_prefix
;;
141 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
142 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
143 |
--exec=* |
--exe=* |
--ex=*)
144 exec_prefix
="$ac_optarg" ;;
146 -gas |
--gas |
--ga |
--g)
147 # Obsolete; use --with-gas.
150 -help |
--help |
--hel |
--he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host |
--host |
--hos |
--ho)
207 -host=* |
--host=* |
--hos=* |
--ho=*)
210 -includedir |
--includedir |
--includedi |
--included |
--include \
211 |
--includ |
--inclu |
--incl |
--inc)
212 ac_prev
=includedir
;;
213 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
214 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
215 includedir
="$ac_optarg" ;;
217 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
219 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
220 infodir
="$ac_optarg" ;;
222 -libdir |
--libdir |
--libdi |
--libd)
224 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
225 libdir
="$ac_optarg" ;;
227 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
228 |
--libexe |
--libex |
--libe)
229 ac_prev
=libexecdir
;;
230 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
231 |
--libexe=* |
--libex=* |
--libe=*)
232 libexecdir
="$ac_optarg" ;;
234 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
235 |
--localstate |
--localstat |
--localsta |
--localst \
236 |
--locals |
--local |
--loca |
--loc |
--lo)
237 ac_prev
=localstatedir
;;
238 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
239 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
240 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
241 localstatedir
="$ac_optarg" ;;
243 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
245 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
246 mandir
="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
256 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
257 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
260 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
261 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
262 |
--oldin |
--oldi |
--old |
--ol |
--o)
263 ac_prev
=oldincludedir
;;
264 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
265 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
266 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
267 oldincludedir
="$ac_optarg" ;;
269 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
271 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
272 prefix
="$ac_optarg" ;;
274 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
275 |
--program-pre |
--program-pr |
--program-p)
276 ac_prev
=program_prefix
;;
277 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
278 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
279 program_prefix
="$ac_optarg" ;;
281 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
282 |
--program-suf |
--program-su |
--program-s)
283 ac_prev
=program_suffix
;;
284 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
285 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
286 program_suffix
="$ac_optarg" ;;
288 -program-transform-name |
--program-transform-name \
289 |
--program-transform-nam |
--program-transform-na \
290 |
--program-transform-n |
--program-transform- \
291 |
--program-transform |
--program-transfor \
292 |
--program-transfo |
--program-transf \
293 |
--program-trans |
--program-tran \
294 |
--progr-tra |
--program-tr |
--program-t)
295 ac_prev
=program_transform_name
;;
296 -program-transform-name=* |
--program-transform-name=* \
297 |
--program-transform-nam=* |
--program-transform-na=* \
298 |
--program-transform-n=* |
--program-transform-=* \
299 |
--program-transform=* |
--program-transfor=* \
300 |
--program-transfo=* |
--program-transf=* \
301 |
--program-trans=* |
--program-tran=* \
302 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
303 program_transform_name
="$ac_optarg" ;;
305 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
306 |
-silent |
--silent |
--silen |
--sile |
--sil)
309 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
311 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
313 sbindir
="$ac_optarg" ;;
315 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
316 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
317 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
319 ac_prev
=sharedstatedir
;;
320 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
321 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
322 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
324 sharedstatedir
="$ac_optarg" ;;
326 -site |
--site |
--sit)
328 -site=* |
--site=* |
--sit=*)
331 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
333 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
334 srcdir
="$ac_optarg" ;;
336 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
337 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
338 ac_prev
=sysconfdir
;;
339 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
340 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
341 sysconfdir
="$ac_optarg" ;;
343 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
345 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
346 target
="$ac_optarg" ;;
348 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
351 -version |
--version |
--versio |
--versi |
--vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* |
--without-*)
369 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
382 |
--x-incl |
--x-inc |
--x-in |
--x-i)
383 ac_prev
=x_includes
;;
384 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
385 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
386 x_includes
="$ac_optarg" ;;
388 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
389 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
390 ac_prev
=x_libraries
;;
391 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
392 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
393 x_libraries
="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE
; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
444 |
--no-cr |
--no-c) ;;
445 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
446 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
447 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest
* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file
=gettext.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted
=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted
=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE
; then
498 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file
in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp
='$CPP $CPPFLAGS'
521 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling
=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
536 ac_n
= ac_c
='\c' ac_t
=
539 # Check whether --with-gnu-ld or --without-gnu-ld was given.
540 if test "${with_gnu_ld+set}" = set; then
541 withval
="$with_gnu_ld"
542 test "$withval" = no || with_gnu_ld
=yes
547 # Prepare PATH_SEPARATOR.
548 # The user is always right.
549 if test "${PATH_SEPARATOR+set}" != set; then
550 echo "#! /bin/sh" >conf$$.sh
551 echo "exit 0" >>conf$$.sh
553 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
561 if test "$GCC" = yes; then
562 # Check if gcc -print-prog-name=ld gives a path.
563 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
564 echo "configure:565: checking for ld used by GCC" >&5
567 # gcc leaves a trailing carriage return which upsets mingw
568 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
570 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
573 # Accept absolute paths.
574 [\\/]* |
[A-Za-z
]:[\\/]*)
575 re_direlt
='/[^/][^/]*/\.\./'
576 # Canonicalize the path of ld
577 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
578 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
579 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
581 test -z "$LD" && LD
="$ac_prog"
584 # If it fails, then pretend we aren't using GCC.
588 # If it is relative, then search for the first ld in PATH.
592 elif test "$with_gnu_ld" = yes; then
593 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
594 echo "configure:595: checking for GNU ld" >&5
596 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
597 echo "configure:598: checking for non-GNU ld" >&5
599 if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
602 if test -z "$LD"; then
603 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
604 for ac_dir
in $PATH; do
605 test -z "$ac_dir" && ac_dir
=.
606 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
607 acl_cv_path_LD
="$ac_dir/$ac_prog"
608 # Check to see if the program is GNU ld. I'd rather use --version,
609 # but apparently some GNU ld's only accept -v.
610 # Break only if it was the GNU/non-GNU ld that we prefer.
611 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
612 test "$with_gnu_ld" != no
&& break
614 test "$with_gnu_ld" != yes && break
620 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
625 if test -n "$LD"; then
626 echo "$ac_t""$LD" 1>&6
628 echo "$ac_t""no" 1>&6
630 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
631 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
632 echo "configure:633: checking if the linker ($LD) is GNU ld" >&5
633 if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
637 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
638 acl_cv_prog_gnu_ld
=yes
640 acl_cv_prog_gnu_ld
=no
644 echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
645 with_gnu_ld
=$acl_cv_prog_gnu_ld
652 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
653 if test -f $ac_dir/install-sh
; then
655 ac_install_sh
="$ac_aux_dir/install-sh -c"
657 elif test -f $ac_dir/install.sh
; then
659 ac_install_sh
="$ac_aux_dir/install.sh -c"
663 if test -z "$ac_aux_dir"; then
664 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
666 ac_config_guess
=$ac_aux_dir/config.guess
667 ac_config_sub
=$ac_aux_dir/config.sub
668 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
670 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
671 echo "configure:672: checking how to run the C preprocessor" >&5
672 # On Suns, sometimes $CPP names a directory.
673 if test -n "$CPP" && test -d "$CPP"; then
676 if test -z "$CPP"; then
677 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 # This must be in double quotes, not single quotes, because CPP may get
681 # substituted into the Makefile and "${CC-cc}" will confuse make.
683 # On the NeXT, cc -E runs the code through the compiler's parser,
684 # not just through cpp.
685 cat > conftest.
$ac_ext <<EOF
686 #line 687 "configure"
687 #include "confdefs.h"
691 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
692 { (eval echo configure
:693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
693 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
694 if test -z "$ac_err"; then
698 echo "configure: failed program was:" >&5
699 cat conftest.
$ac_ext >&5
701 CPP
="${CC-cc} -E -traditional-cpp"
702 cat > conftest.
$ac_ext <<EOF
703 #line 704 "configure"
704 #include "confdefs.h"
708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
709 { (eval echo configure
:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
711 if test -z "$ac_err"; then
715 echo "configure: failed program was:" >&5
716 cat conftest.
$ac_ext >&5
718 CPP
="${CC-cc} -nologo -E"
719 cat > conftest.
$ac_ext <<EOF
720 #line 721 "configure"
721 #include "confdefs.h"
725 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
726 { (eval echo configure
:727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
727 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
728 if test -z "$ac_err"; then
732 echo "configure: failed program was:" >&5
733 cat conftest.
$ac_ext >&5
742 ac_cv_prog_CPP
="$CPP"
744 CPP
="$ac_cv_prog_CPP"
746 ac_cv_prog_CPP
="$CPP"
748 echo "$ac_t""$CPP" 1>&6
751 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
752 echo "configure:753: checking for inttypes.h" >&5
753 if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 cat > conftest.
$ac_ext <<EOF
757 #line 758 "configure"
758 #include "confdefs.h"
759 #include <sys/types.h>
760 #include <inttypes.h>
762 uintmax_t i = (uintmax_t) -1;
765 if { (eval echo configure
:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
767 jm_ac_cv_header_inttypes_h
=yes
769 echo "configure: failed program was:" >&5
770 cat conftest.
$ac_ext >&5
772 jm_ac_cv_header_inttypes_h
=no
777 echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
778 if test $jm_ac_cv_header_inttypes_h = yes; then
779 cat >> confdefs.h
<<EOF
780 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
786 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
787 echo "configure:788: checking for stdint.h" >&5
788 if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 cat > conftest.
$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
794 #include <sys/types.h>
797 uintmax_t i = (uintmax_t) -1;
800 if { (eval echo configure
:801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
802 jm_ac_cv_header_stdint_h
=yes
804 echo "configure: failed program was:" >&5
805 cat conftest.
$ac_ext >&5
807 jm_ac_cv_header_stdint_h
=no
812 echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
813 if test $jm_ac_cv_header_stdint_h = yes; then
814 cat >> confdefs.h
<<EOF
815 #define HAVE_STDINT_H_WITH_UINTMAX 1
821 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
822 echo "configure:823: checking for unsigned long long" >&5
823 if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 cat > conftest.
$ac_ext <<EOF
827 #line 828 "configure"
828 #include "confdefs.h"
829 unsigned long long ull = 1; int i = 63;
831 unsigned long long ullmax = (unsigned long long) -1;
832 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
835 if { (eval echo configure
:836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
837 ac_cv_type_unsigned_long_long
=yes
839 echo "configure: failed program was:" >&5
840 cat conftest.
$ac_ext >&5
842 ac_cv_type_unsigned_long_long
=no
847 echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
848 if test $ac_cv_type_unsigned_long_long = yes; then
849 cat >> confdefs.h
<<\EOF
850 #define HAVE_UNSIGNED_LONG_LONG 1
856 if test "X$prefix" = "XNONE"; then
857 acl_final_prefix
="$ac_default_prefix"
859 acl_final_prefix
="$prefix"
861 if test "X$exec_prefix" = "XNONE"; then
862 acl_final_exec_prefix
='${prefix}'
864 acl_final_exec_prefix
="$exec_prefix"
866 acl_save_prefix
="$prefix"
867 prefix
="$acl_final_prefix"
868 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
869 prefix
="$acl_save_prefix"
872 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
873 echo "configure:874: checking for shared library run path origin" >&5
874 if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
878 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
879 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
886 echo "$ac_t""$acl_cv_rpath" 1>&6
888 libext
="$acl_cv_libext"
889 shlibext
="$acl_cv_shlibext"
890 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
891 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
892 hardcode_direct
="$acl_cv_hardcode_direct"
893 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
894 # Check whether --enable-rpath or --disable-rpath was given.
895 if test "${enable_rpath+set}" = set; then
896 enableval
="$enable_rpath"
903 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
905 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
906 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftestmake
<<\EOF
911 @
echo 'ac_maketemp="${MAKE}"'
913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915 if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_
${ac_make}_set
=yes
918 eval ac_cv_prog_make_
${ac_make}_set
=no
922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
926 echo "$ac_t""no" 1>&6
927 SET_MAKE
="MAKE=${MAKE-make}"
930 # Find a good install program. We prefer a C program (faster),
931 # so one script is as good as another. But avoid the broken or
932 # incompatible versions:
933 # SysV /etc/install, /usr/sbin/install
934 # SunOS /usr/etc/install
937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
940 # ./install, which can be erroneously created by make from ./install.sh.
941 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
942 echo "configure:943: checking for a BSD compatible install" >&5
943 if test -z "$INSTALL"; then
944 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
947 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
948 for ac_dir
in $PATH; do
949 # Account for people who put trailing slashes in PATH elements.
951 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
953 # OSF1 and SCO ODT 3.0 have their own names for install.
954 # Don't use installbsd from OSF since it installs stuff as root
956 for ac_prog
in ginstall scoinst
install; do
957 if test -f $ac_dir/$ac_prog; then
958 if test $ac_prog = install &&
959 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
960 # AIX install. It has an incompatible calling convention.
963 ac_cv_path_install
="$ac_dir/$ac_prog -c"
974 if test "${ac_cv_path_install+set}" = set; then
975 INSTALL
="$ac_cv_path_install"
977 # As a last resort, use the slow shell script. We don't cache a
978 # path for INSTALL within a source directory, because that will
979 # break other packages using the cache if that directory is
980 # removed, or if the path is relative.
981 INSTALL
="$ac_install_sh"
984 echo "$ac_t""$INSTALL" 1>&6
986 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
987 # It thinks the first close brace ends the variable substitution.
988 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
990 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
992 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
996 if test -n "$ac_aux_dir"; then
997 case "$ac_aux_dir" in
998 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
999 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1002 if test -z "$MKINSTALLDIRS"; then
1003 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
1008 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether NLS is requested" >&5
1010 # Check whether --enable-nls or --disable-nls was given.
1011 if test "${enable_nls+set}" = set; then
1012 enableval
="$enable_nls"
1018 echo "$ac_t""$USE_NLS" 1>&6
1021 # Extract the first word of "gcc", so it can be a program name with args.
1022 set dummy gcc
; ac_word
=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC
="$CC" # Let the user override the test.
1031 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1033 for ac_dir
in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir
=.
1035 if test -f $ac_dir/$ac_word; then
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1047 echo "$ac_t""no" 1>&6
1050 if test -z "$CC"; then
1051 # Extract the first word of "cc", so it can be a program name with args.
1052 set dummy cc
; ac_word
=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 if test -n "$CC"; then
1059 ac_cv_prog_CC
="$CC" # Let the user override the test.
1061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1067 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1068 ac_prog_rejected
=yes
1076 if test $ac_prog_rejected = yes; then
1077 # We found a bogon in the path, so make sure we never use it.
1078 set dummy
$ac_cv_prog_CC
1080 if test $# -gt 0; then
1081 # We chose a different compiler from the bogus one.
1082 # However, it has the same basename, so the bogon will be chosen
1083 # first if we set CC to just the basename; use the full file name.
1085 set dummy
"$ac_dir/$ac_word" "$@"
1093 if test -n "$CC"; then
1094 echo "$ac_t""$CC" 1>&6
1096 echo "$ac_t""no" 1>&6
1099 if test -z "$CC"; then
1100 case "`uname -s`" in
1102 # Extract the first word of "cl", so it can be a program name with args.
1103 set dummy cl
; ac_word
=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$CC"; then
1110 ac_cv_prog_CC
="$CC" # Let the user override the test.
1112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1114 for ac_dir
in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir
=.
1116 if test -f $ac_dir/$ac_word; then
1125 if test -n "$CC"; then
1126 echo "$ac_t""$CC" 1>&6
1128 echo "$ac_t""no" 1>&6
1133 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1136 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1141 ac_cpp
='$CPP $CPPFLAGS'
1142 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1143 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1144 cross_compiling
=$ac_cv_prog_cc_cross
1146 cat > conftest.
$ac_ext << EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1153 if { (eval echo configure
:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1154 ac_cv_prog_cc_works
=yes
1155 # If we can't run a trivial program, we are probably using a cross compiler.
1156 if (.
/conftest
; exit) 2>/dev
/null
; then
1157 ac_cv_prog_cc_cross
=no
1159 ac_cv_prog_cc_cross
=yes
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1164 ac_cv_prog_cc_works
=no
1168 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1169 ac_cpp
='$CPP $CPPFLAGS'
1170 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1171 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1172 cross_compiling
=$ac_cv_prog_cc_cross
1174 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1175 if test $ac_cv_prog_cc_works = no
; then
1176 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1178 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1180 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1181 cross_compiling
=$ac_cv_prog_cc_cross
1183 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether we are using GNU C" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 cat > conftest.c
<<EOF
1193 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1200 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1202 if test $ac_cv_prog_gcc = yes; then
1208 ac_test_CFLAGS
="${CFLAGS+set}"
1209 ac_save_CFLAGS
="$CFLAGS"
1211 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1212 echo "configure:1213: checking whether ${CC-cc} accepts -g" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 echo 'void f(){}' > conftest.c
1217 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1226 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1227 if test "$ac_test_CFLAGS" = set; then
1228 CFLAGS
="$ac_save_CFLAGS"
1229 elif test $ac_cv_prog_cc_g = yes; then
1230 if test "$GCC" = yes; then
1236 if test "$GCC" = yes; then
1244 # Make sure we can run config.sub.
1245 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1246 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1249 echo $ac_n "checking host system type""... $ac_c" 1>&6
1250 echo "configure:1251: checking host system type" >&5
1253 case "$host_alias" in
1257 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1258 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1260 *) host_alias
=$nonopt ;;
1264 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1265 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1266 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1267 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1268 echo "$ac_t""$host" 1>&6
1270 # Extract the first word of "ranlib", so it can be a program name with args.
1271 set dummy ranlib
; ac_word
=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 if test -n "$RANLIB"; then
1278 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1282 for ac_dir
in $ac_dummy; do
1283 test -z "$ac_dir" && ac_dir
=.
1284 if test -f $ac_dir/$ac_word; then
1285 ac_cv_prog_RANLIB
="ranlib"
1290 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1293 RANLIB
="$ac_cv_prog_RANLIB"
1294 if test -n "$RANLIB"; then
1295 echo "$ac_t""$RANLIB" 1>&6
1297 echo "$ac_t""no" 1>&6
1301 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1302 echo "configure:1303: checking for strerror in -lcposix" >&5
1303 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 ac_save_LIBS
="$LIBS"
1308 LIBS
="-lcposix $LIBS"
1309 cat > conftest.
$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1321 if { (eval echo configure
:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1323 eval "ac_cv_lib_$ac_lib_var=yes"
1325 echo "configure: failed program was:" >&5
1326 cat conftest.
$ac_ext >&5
1328 eval "ac_cv_lib_$ac_lib_var=no"
1331 LIBS
="$ac_save_LIBS"
1334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 LIBS
="$LIBS -lcposix"
1338 echo "$ac_t""no" 1>&6
1343 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1344 echo "configure:1345: checking for ANSI C header files" >&5
1345 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 cat > conftest.
$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1356 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1357 { (eval echo configure
:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1359 if test -z "$ac_err"; then
1361 ac_cv_header_stdc
=yes
1364 echo "configure: failed program was:" >&5
1365 cat conftest.
$ac_ext >&5
1367 ac_cv_header_stdc
=no
1371 if test $ac_cv_header_stdc = yes; then
1372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1373 cat > conftest.
$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1379 egrep "memchr" >/dev
/null
2>&1; then
1383 ac_cv_header_stdc
=no
1389 if test $ac_cv_header_stdc = yes; then
1390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1391 cat > conftest.
$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1397 egrep "free" >/dev
/null
2>&1; then
1401 ac_cv_header_stdc
=no
1407 if test $ac_cv_header_stdc = yes; then
1408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1409 if test "$cross_compiling" = yes; then
1412 cat > conftest.
$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1416 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1417 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1418 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1419 int main () { int i; for (i = 0; i < 256; i++)
1420 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1424 if { (eval echo configure
:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1428 echo "configure: failed program was:" >&5
1429 cat conftest.
$ac_ext >&5
1431 ac_cv_header_stdc
=no
1439 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1440 if test $ac_cv_header_stdc = yes; then
1441 cat >> confdefs.h
<<\EOF
1442 #define STDC_HEADERS 1
1447 echo $ac_n "checking for working const""... $ac_c" 1>&6
1448 echo "configure:1449: checking for working const" >&5
1449 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.
$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1458 /* Ultrix mips cc rejects this. */
1459 typedef int charset[2]; const charset x;
1460 /* SunOS 4.1.1 cc rejects this. */
1461 char const *const *ccp;
1463 /* NEC SVR4.0.2 mips cc rejects this. */
1464 struct point {int x, y;};
1465 static struct point const zero = {0,0};
1466 /* AIX XL C 1.02.0.0 rejects this.
1467 It does not let you subtract one const X* pointer from another in an arm
1468 of an if-expression whose if-part is not a constant expression */
1469 const char *g = "string";
1470 ccp = &g + (g ? g-g : 0);
1471 /* HPUX 7.0 cc rejects these. */
1474 ccp = (char const *const *) p;
1475 { /* SCO 3.2v4 cc rejects this. */
1477 char const *s = 0 ? (char *) 0 : (char const *) 0;
1481 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1483 const int *foo = &x[0];
1486 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1487 typedef const int *iptr;
1491 { /* AIX XL C 1.02.0.0 rejects this saying
1492 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1493 struct s { int j; const int *ap[3]; };
1494 struct s *b; b->j = 5;
1496 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1502 if { (eval echo configure
:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1506 echo "configure: failed program was:" >&5
1507 cat conftest.
$ac_ext >&5
1514 echo "$ac_t""$ac_cv_c_const" 1>&6
1515 if test $ac_cv_c_const = no
; then
1516 cat >> confdefs.h
<<\EOF
1522 echo $ac_n "checking for inline""... $ac_c" 1>&6
1523 echo "configure:1524: checking for inline" >&5
1524 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1528 for ac_kw
in inline __inline__ __inline
; do
1529 cat > conftest.
$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1537 if { (eval echo configure
:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1539 ac_cv_c_inline
=$ac_kw; break
1541 echo "configure: failed program was:" >&5
1542 cat conftest.
$ac_ext >&5
1549 echo "$ac_t""$ac_cv_c_inline" 1>&6
1550 case "$ac_cv_c_inline" in
1552 no
) cat >> confdefs.h
<<\EOF
1556 *) cat >> confdefs.h
<<EOF
1557 #define inline $ac_cv_c_inline
1562 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1563 echo "configure:1564: checking for off_t" >&5
1564 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1577 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1579 ac_cv_type_off_t
=yes
1587 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1588 if test $ac_cv_type_off_t = no
; then
1589 cat >> confdefs.h
<<\EOF
1595 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1596 echo "configure:1597: checking for size_t" >&5
1597 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.
$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1603 #include <sys/types.h>
1609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1610 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1612 ac_cv_type_size_t
=yes
1615 ac_cv_type_size_t
=no
1620 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1621 if test $ac_cv_type_size_t = no
; then
1622 cat >> confdefs.h
<<\EOF
1623 #define size_t unsigned
1628 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1629 # for constant arguments. Useless!
1630 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1631 echo "configure:1632: checking for working alloca.h" >&5
1632 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 char *p = alloca(2 * sizeof(int));
1643 if { (eval echo configure
:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1645 ac_cv_header_alloca_h
=yes
1647 echo "configure: failed program was:" >&5
1648 cat conftest.
$ac_ext >&5
1650 ac_cv_header_alloca_h
=no
1655 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1656 if test $ac_cv_header_alloca_h = yes; then
1657 cat >> confdefs.h
<<\EOF
1658 #define HAVE_ALLOCA_H 1
1663 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1664 echo "configure:1665: checking for alloca" >&5
1665 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 cat > conftest.
$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1673 # define alloca __builtin_alloca
1676 # include <malloc.h>
1677 # define alloca _alloca
1680 # include <alloca.h>
1685 # ifndef alloca /* predefined by HP cc +Olibcalls */
1694 char *p = (char *) alloca(1);
1697 if { (eval echo configure
:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1699 ac_cv_func_alloca_works
=yes
1701 echo "configure: failed program was:" >&5
1702 cat conftest.
$ac_ext >&5
1704 ac_cv_func_alloca_works
=no
1709 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1710 if test $ac_cv_func_alloca_works = yes; then
1711 cat >> confdefs.h
<<\EOF
1712 #define HAVE_ALLOCA 1
1717 if test $ac_cv_func_alloca_works = no
; then
1718 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1719 # that cause trouble. Some versions do not even contain alloca or
1720 # contain a buggy version. If you still want to use their alloca,
1721 # use ar to extract alloca.o from them instead of compiling alloca.c.
1722 ALLOCA
=alloca.
${ac_objext}
1723 cat >> confdefs.h
<<\EOF
1728 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether alloca needs Cray hooks" >&5
1730 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 #if defined(CRAY) && ! defined(CRAY2)
1743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1744 egrep "webecray" >/dev
/null
2>&1; then
1755 echo "$ac_t""$ac_cv_os_cray" 1>&6
1756 if test $ac_cv_os_cray = yes; then
1757 for ac_func
in _getb67 GETB67 getb67
; do
1758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1759 echo "configure:1760: checking for $ac_func" >&5
1760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 cat > conftest.
$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $ac_func(); below. */
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1776 /* The GNU C library defines this for functions which it implements
1777 to always fail with ENOSYS. Some functions are actually named
1778 something starting with __ and the normal name is an alias. */
1779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1787 if { (eval echo configure
:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1789 eval "ac_cv_func_$ac_func=yes"
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1794 eval "ac_cv_func_$ac_func=no"
1799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 cat >> confdefs.h
<<EOF
1802 #define CRAY_STACKSEG_END $ac_func
1807 echo "$ac_t""no" 1>&6
1813 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1814 echo "configure:1815: checking stack direction for C alloca" >&5
1815 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if test "$cross_compiling" = yes; then
1819 ac_cv_c_stack_direction
=0
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 find_stack_direction ()
1826 static char *addr = 0;
1831 return find_stack_direction ();
1834 return (&dummy > addr) ? 1 : -1;
1838 exit (find_stack_direction() < 0);
1841 if { (eval echo configure
:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1843 ac_cv_c_stack_direction
=1
1845 echo "configure: failed program was:" >&5
1846 cat conftest.
$ac_ext >&5
1848 ac_cv_c_stack_direction
=-1
1855 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1856 cat >> confdefs.h
<<EOF
1857 #define STACK_DIRECTION $ac_cv_c_stack_direction
1862 for ac_hdr
in unistd.h
1864 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_hdr" >&5
1867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1876 { (eval echo configure
:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1878 if test -z "$ac_err"; then
1880 eval "ac_cv_header_$ac_safe=yes"
1883 echo "configure: failed program was:" >&5
1884 cat conftest.
$ac_ext >&5
1886 eval "ac_cv_header_$ac_safe=no"
1890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1892 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1893 cat >> confdefs.h
<<EOF
1894 #define $ac_tr_hdr 1
1898 echo "$ac_t""no" 1>&6
1902 for ac_func
in getpagesize
1904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_func" >&5
1906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $ac_func(); below. */
1915 /* Override any gcc2 internal prototype to avoid an error. */
1916 /* We use char because int might match the return type of a gcc2
1917 builtin and then its argument prototype would still apply. */
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1933 if { (eval echo configure
:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1935 eval "ac_cv_func_$ac_func=yes"
1937 echo "configure: failed program was:" >&5
1938 cat conftest.
$ac_ext >&5
1940 eval "ac_cv_func_$ac_func=no"
1945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1948 cat >> confdefs.h
<<EOF
1949 #define $ac_tr_func 1
1953 echo "$ac_t""no" 1>&6
1957 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1958 echo "configure:1959: checking for working mmap" >&5
1959 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 if test "$cross_compiling" = yes; then
1963 ac_cv_func_mmap_fixed_mapped
=no
1965 cat > conftest.
$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1969 /* Thanks to Mike Haertel and Jim Avera for this test.
1970 Here is a matrix of mmap possibilities:
1971 mmap private not fixed
1972 mmap private fixed at somewhere currently unmapped
1973 mmap private fixed at somewhere already mapped
1974 mmap shared not fixed
1975 mmap shared fixed at somewhere currently unmapped
1976 mmap shared fixed at somewhere already mapped
1977 For private mappings, we should verify that changes cannot be read()
1978 back from the file, nor mmap's back from the file at a different
1979 address. (There have been systems where private was not correctly
1980 implemented like the infamous i386 svr4.0, and systems where the
1981 VM page cache was not coherent with the filesystem buffer cache
1982 like early versions of FreeBSD and possibly contemporary NetBSD.)
1983 For shared mappings, we should conversely verify that changes get
1984 propogated back to all the places they're supposed to be.
1986 Grep wants private fixed already mapped.
1987 The main things grep needs to know about mmap are:
1988 * does it exist and is it safe to write into the mmap'd area
1989 * how to use it (BSD variants) */
1990 #include <sys/types.h>
1992 #include <sys/mman.h>
1994 /* This mess was copied from the GNU getpagesize.h. */
1995 #ifndef HAVE_GETPAGESIZE
1996 # ifdef HAVE_UNISTD_H
1997 # include <unistd.h>
2000 /* Assume that all systems that can run configure have sys/param.h. */
2001 # ifndef HAVE_SYS_PARAM_H
2002 # define HAVE_SYS_PARAM_H 1
2005 # ifdef _SC_PAGESIZE
2006 # define getpagesize() sysconf(_SC_PAGESIZE)
2007 # else /* no _SC_PAGESIZE */
2008 # ifdef HAVE_SYS_PARAM_H
2009 # include <sys/param.h>
2010 # ifdef EXEC_PAGESIZE
2011 # define getpagesize() EXEC_PAGESIZE
2012 # else /* no EXEC_PAGESIZE */
2014 # define getpagesize() NBPG * CLSIZE
2017 # endif /* no CLSIZE */
2018 # else /* no NBPG */
2020 # define getpagesize() NBPC
2021 # else /* no NBPC */
2023 # define getpagesize() PAGESIZE
2024 # endif /* PAGESIZE */
2025 # endif /* no NBPC */
2026 # endif /* no NBPG */
2027 # endif /* no EXEC_PAGESIZE */
2028 # else /* no HAVE_SYS_PARAM_H */
2029 # define getpagesize() 8192 /* punt totally */
2030 # endif /* no HAVE_SYS_PARAM_H */
2031 # endif /* no _SC_PAGESIZE */
2033 #endif /* no HAVE_GETPAGESIZE */
2036 extern "C" { void *malloc(unsigned); }
2044 char *data, *data2, *data3;
2048 pagesize = getpagesize();
2051 * First, make a file with some known garbage in it.
2053 data = malloc(pagesize);
2056 for (i = 0; i < pagesize; ++i)
2057 *(data + i) = rand();
2059 fd = creat("conftestmmap", 0600);
2062 if (write(fd, data, pagesize) != pagesize)
2067 * Next, try to mmap the file at a fixed address which
2068 * already has something else allocated at it. If we can,
2069 * also make sure that we see the same garbage.
2071 fd = open("conftestmmap", O_RDWR);
2074 data2 = malloc(2 * pagesize);
2077 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2078 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2079 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2081 for (i = 0; i < pagesize; ++i)
2082 if (*(data + i) != *(data2 + i))
2086 * Finally, make sure that changes to the mapped area
2087 * do not percolate back to the file as seen by read().
2088 * (This is a bug on some variants of i386 svr4.0.)
2090 for (i = 0; i < pagesize; ++i)
2091 *(data2 + i) = *(data2 + i) + 1;
2092 data3 = malloc(pagesize);
2095 if (read(fd, data3, pagesize) != pagesize)
2097 for (i = 0; i < pagesize; ++i)
2098 if (*(data + i) != *(data3 + i))
2101 unlink("conftestmmap");
2106 if { (eval echo configure
:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2108 ac_cv_func_mmap_fixed_mapped
=yes
2110 echo "configure: failed program was:" >&5
2111 cat conftest.
$ac_ext >&5
2113 ac_cv_func_mmap_fixed_mapped
=no
2120 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2121 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2122 cat >> confdefs.h
<<\EOF
2129 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2130 echo "configure:2131: checking whether we are using the GNU C Library 2.1 or newer" >&5
2131 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2138 #include <features.h>
2139 #ifdef __GNU_LIBRARY__
2140 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2147 egrep "Lucky GNU user" >/dev
/null
2>&1; then
2149 ac_cv_gnu_library_2_1
=yes
2152 ac_cv_gnu_library_2_1
=no
2160 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2162 GLIBC21
="$ac_cv_gnu_library_2_1"
2167 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
2168 echo "configure:2169: checking whether integer division by zero raises SIGFPE" >&5
2169 if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2173 if test "$cross_compiling" = yes; then
2175 # Guess based on the CPU.
2177 alpha
* | i3456786 | m68k | s390
*)
2178 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
2180 gt_cv_int_divbyzero_sigfpe
="guessing no";;
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2193 sigfpe_handler (int sig)
2195 sigfpe_handler (sig) int sig;
2198 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
2199 exit (sig != SIGFPE);
2209 signal (SIGFPE, sigfpe_handler);
2210 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
2211 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
2212 signal (SIGTRAP, sigfpe_handler);
2214 /* Linux/SPARC yields signal SIGILL. */
2215 #if defined (__sparc__) && defined (__linux__)
2216 signal (SIGILL, sigfpe_handler);
2225 if { (eval echo configure
:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2227 gt_cv_int_divbyzero_sigfpe
=yes
2229 echo "configure: failed program was:" >&5
2230 cat conftest.
$ac_ext >&5
2232 gt_cv_int_divbyzero_sigfpe
=no
2240 echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
2241 case "$gt_cv_int_divbyzero_sigfpe" in
2245 cat >> confdefs.h
<<EOF
2246 #define INTDIV0_RAISES_SIGFPE $value
2253 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
2255 test $ac_cv_type_unsigned_long_long = yes \
2256 && ac_type
='unsigned long long' \
2257 || ac_type
='unsigned long'
2258 cat >> confdefs.h
<<EOF
2259 #define uintmax_t $ac_type
2263 cat >> confdefs.h
<<\EOF
2264 #define HAVE_UINTMAX_T 1
2270 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2271 echo "configure:2272: checking for inttypes.h" >&5
2272 if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 #include <sys/types.h>
2280 #include <inttypes.h>
2285 if { (eval echo configure
:2286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2287 gt_cv_header_inttypes_h
=yes
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 gt_cv_header_inttypes_h
=no
2298 echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
2299 if test $gt_cv_header_inttypes_h = yes; then
2300 cat >> confdefs.h
<<EOF
2301 #define HAVE_INTTYPES_H 1
2308 if test $gt_cv_header_inttypes_h = yes; then
2309 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
2310 echo "configure:2311: checking whether the inttypes.h PRIxNN macros are broken" >&5
2311 if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2318 #include <inttypes.h>
2327 if { (eval echo configure
:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2329 gt_cv_inttypes_pri_broken
=no
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2334 gt_cv_inttypes_pri_broken
=yes
2340 echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
2342 if test "$gt_cv_inttypes_pri_broken" = yes; then
2343 cat >> confdefs.h
<<EOF
2344 #define PRI_MACROS_BROKEN 1
2357 acl_save_prefix
="$prefix"
2358 prefix
="$acl_final_prefix"
2359 acl_save_exec_prefix
="$exec_prefix"
2360 exec_prefix
="$acl_final_exec_prefix"
2362 eval additional_includedir
=\"$includedir\"
2363 eval additional_libdir
=\"$libdir\"
2365 exec_prefix
="$acl_save_exec_prefix"
2366 prefix
="$acl_save_prefix"
2368 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2369 if test "${with_libiconv_prefix+set}" = set; then
2370 withval
="$with_libiconv_prefix"
2372 if test "X$withval" = "Xno"; then
2375 if test "X$withval" = "X"; then
2377 acl_save_prefix
="$prefix"
2378 prefix
="$acl_final_prefix"
2379 acl_save_exec_prefix
="$exec_prefix"
2380 exec_prefix
="$acl_final_exec_prefix"
2382 eval additional_includedir
=\"$includedir\"
2383 eval additional_libdir
=\"$libdir\"
2385 exec_prefix
="$acl_save_exec_prefix"
2386 prefix
="$acl_save_prefix"
2389 additional_includedir
="$withval/include"
2390 additional_libdir
="$withval/lib"
2401 names_already_handled
=
2402 names_next_round
='iconv '
2403 while test -n "$names_next_round"; do
2404 names_this_round
="$names_next_round"
2406 for name
in $names_this_round; do
2408 for n
in $names_already_handled; do
2409 if test "$n" = "$name"; then
2414 if test -z "$already_handled"; then
2415 names_already_handled
="$names_already_handled $name"
2416 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
2417 eval value
=\"\
$HAVE_LIB$uppername\"
2418 if test -n "$value"; then
2419 if test "$value" = yes; then
2420 eval value
=\"\
$LIB$uppername\"
2421 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
2422 eval value
=\"\
$LTLIB$uppername\"
2423 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
2432 if test $use_additional = yes; then
2433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
2434 found_dir
="$additional_libdir"
2435 found_so
="$additional_libdir/lib$name.$shlibext"
2436 if test -f "$additional_libdir/lib$name.la"; then
2437 found_la
="$additional_libdir/lib$name.la"
2440 if test -f "$additional_libdir/lib$name.$libext"; then
2441 found_dir
="$additional_libdir"
2442 found_a
="$additional_libdir/lib$name.$libext"
2443 if test -f "$additional_libdir/lib$name.la"; then
2444 found_la
="$additional_libdir/lib$name.la"
2449 if test "X$found_dir" = "X"; then
2450 for x
in $LDFLAGS $LTLIBICONV; do
2452 acl_save_prefix
="$prefix"
2453 prefix
="$acl_final_prefix"
2454 acl_save_exec_prefix
="$exec_prefix"
2455 exec_prefix
="$acl_final_exec_prefix"
2457 exec_prefix
="$acl_save_exec_prefix"
2458 prefix
="$acl_save_prefix"
2462 dir
=`echo "X$x" | sed -e 's/^X-L//'`
2463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
2465 found_so
="$dir/lib$name.$shlibext"
2466 if test -f "$dir/lib$name.la"; then
2467 found_la
="$dir/lib$name.la"
2470 if test -f "$dir/lib$name.$libext"; then
2472 found_a
="$dir/lib$name.$libext"
2473 if test -f "$dir/lib$name.la"; then
2474 found_la
="$dir/lib$name.la"
2480 if test "X$found_dir" != "X"; then
2485 if test "X$found_dir" != "X"; then
2486 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
2487 if test "X$found_so" != "X"; then
2488 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
2489 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
2492 for x
in $ltrpathdirs; do
2493 if test "X$x" = "X$found_dir"; then
2498 if test -z "$haveit"; then
2499 ltrpathdirs
="$ltrpathdirs $found_dir"
2501 if test "$hardcode_direct" = yes; then
2502 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
2504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
2505 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
2507 for x
in $rpathdirs; do
2508 if test "X$x" = "X$found_dir"; then
2513 if test -z "$haveit"; then
2514 rpathdirs
="$rpathdirs $found_dir"
2518 for x
in $LDFLAGS $LIBICONV; do
2520 acl_save_prefix
="$prefix"
2521 prefix
="$acl_final_prefix"
2522 acl_save_exec_prefix
="$exec_prefix"
2523 exec_prefix
="$acl_final_exec_prefix"
2525 exec_prefix
="$acl_save_exec_prefix"
2526 prefix
="$acl_save_prefix"
2528 if test "X$x" = "X-L$found_dir"; then
2533 if test -z "$haveit"; then
2534 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
2536 if test "$hardcode_minus_L" != no
; then
2537 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
2539 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
2545 if test "X$found_a" != "X"; then
2546 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
2548 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
2551 additional_includedir
=
2552 case "$found_dir" in
2554 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
2555 additional_includedir
="$basedir/include"
2558 if test "X$additional_includedir" != "X"; then
2559 if test "X$additional_includedir" != "X/usr/include"; then
2561 if test "X$additional_includedir" = "X/usr/local/include"; then
2562 if test -n "$GCC"; then
2564 linux
*) haveit
=yes;;
2568 if test -z "$haveit"; then
2569 for x
in $CPPFLAGS $INCICONV; do
2571 acl_save_prefix
="$prefix"
2572 prefix
="$acl_final_prefix"
2573 acl_save_exec_prefix
="$exec_prefix"
2574 exec_prefix
="$acl_final_exec_prefix"
2576 exec_prefix
="$acl_save_exec_prefix"
2577 prefix
="$acl_save_prefix"
2579 if test "X$x" = "X-I$additional_includedir"; then
2584 if test -z "$haveit"; then
2585 if test -d "$additional_includedir"; then
2586 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
2592 if test -n "$found_la"; then
2593 save_libdir
="$libdir"
2595 */* |
*\\*) .
"$found_la" ;;
2596 *) .
"./$found_la" ;;
2598 libdir
="$save_libdir"
2599 for dep
in $dependency_libs; do
2602 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
2603 if test "X$additional_libdir" != "X/usr/lib"; then
2605 if test "X$additional_libdir" = "X/usr/local/lib"; then
2606 if test -n "$GCC"; then
2608 linux
*) haveit
=yes;;
2612 if test -z "$haveit"; then
2614 for x
in $LDFLAGS $LIBICONV; do
2616 acl_save_prefix
="$prefix"
2617 prefix
="$acl_final_prefix"
2618 acl_save_exec_prefix
="$exec_prefix"
2619 exec_prefix
="$acl_final_exec_prefix"
2621 exec_prefix
="$acl_save_exec_prefix"
2622 prefix
="$acl_save_prefix"
2624 if test "X$x" = "X-L$additional_libdir"; then
2629 if test -z "$haveit"; then
2630 if test -d "$additional_libdir"; then
2631 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
2635 for x
in $LDFLAGS $LTLIBICONV; do
2637 acl_save_prefix
="$prefix"
2638 prefix
="$acl_final_prefix"
2639 acl_save_exec_prefix
="$exec_prefix"
2640 exec_prefix
="$acl_final_exec_prefix"
2642 exec_prefix
="$acl_save_exec_prefix"
2643 prefix
="$acl_save_prefix"
2645 if test "X$x" = "X-L$additional_libdir"; then
2650 if test -z "$haveit"; then
2651 if test -d "$additional_libdir"; then
2652 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
2659 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
2660 if test "$enable_rpath" != no
; then
2662 for x
in $rpathdirs; do
2663 if test "X$x" = "X$dir"; then
2668 if test -z "$haveit"; then
2669 rpathdirs
="$rpathdirs $dir"
2672 for x
in $ltrpathdirs; do
2673 if test "X$x" = "X$dir"; then
2678 if test -z "$haveit"; then
2679 ltrpathdirs
="$ltrpathdirs $dir"
2684 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
2687 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
2690 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
2691 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
2697 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
2698 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
2704 if test "X$rpathdirs" != "X"; then
2705 if test -n "$hardcode_libdir_separator"; then
2707 for found_dir
in $rpathdirs; do
2708 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
2710 acl_save_libdir
="$libdir"
2712 eval flag
=\"$hardcode_libdir_flag_spec\"
2713 libdir
="$acl_save_libdir"
2714 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
2716 for found_dir
in $rpathdirs; do
2717 acl_save_libdir
="$libdir"
2719 eval flag
=\"$hardcode_libdir_flag_spec\"
2720 libdir
="$acl_save_libdir"
2721 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
2725 if test "X$ltrpathdirs" != "X"; then
2726 for found_dir
in $ltrpathdirs; do
2727 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
2736 # Prepare PATH_SEPARATOR.
2737 # The user is always right.
2738 if test "${PATH_SEPARATOR+set}" != set; then
2739 echo "#! /bin/sh" >conf$$.sh
2740 echo "exit 0" >>conf$$.sh
2742 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
2750 # Find out how to test for executable files. Don't use a zero-byte file,
2751 # as systems may use methods other than mode bits to determine executability.
2752 cat >conf$$.
file <<_ASEOF
2756 chmod +x conf$$.
file
2757 if test -x conf$$.
file >/dev
/null
2>&1; then
2758 ac_executable_p
="test -x"
2760 ac_executable_p
="test -f"
2764 # Extract the first word of "msgfmt", so it can be a program name with args.
2765 set dummy msgfmt
; ac_word
=$2
2766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_word" >&5
2768 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2773 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2776 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
2777 for ac_dir
in $PATH; do
2779 test -z "$ac_dir" && ac_dir
=.
2780 for ac_exec_ext
in '' $ac_executable_extensions; do
2781 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2782 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
2783 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
2784 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
2791 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
2795 MSGFMT
="$ac_cv_path_MSGFMT"
2796 if test "$MSGFMT" != ":"; then
2797 echo "$ac_t""$MSGFMT" 1>&6
2799 echo "$ac_t""no" 1>&6
2802 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2803 set dummy gmsgfmt
; ac_word
=$2
2804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_word" >&5
2806 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2811 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2814 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2817 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2819 for ac_dir
in $ac_dummy; do
2820 test -z "$ac_dir" && ac_dir
=.
2821 if test -f $ac_dir/$ac_word; then
2822 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2827 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2831 GMSGFMT
="$ac_cv_path_GMSGFMT"
2832 if test -n "$GMSGFMT"; then
2833 echo "$ac_t""$GMSGFMT" 1>&6
2835 echo "$ac_t""no" 1>&6
2840 # Prepare PATH_SEPARATOR.
2841 # The user is always right.
2842 if test "${PATH_SEPARATOR+set}" != set; then
2843 echo "#! /bin/sh" >conf$$.sh
2844 echo "exit 0" >>conf$$.sh
2846 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
2854 # Find out how to test for executable files. Don't use a zero-byte file,
2855 # as systems may use methods other than mode bits to determine executability.
2856 cat >conf$$.
file <<_ASEOF
2860 chmod +x conf$$.
file
2861 if test -x conf$$.
file >/dev
/null
2>&1; then
2862 ac_executable_p
="test -x"
2864 ac_executable_p
="test -f"
2868 # Extract the first word of "xgettext", so it can be a program name with args.
2869 set dummy xgettext
; ac_word
=$2
2870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_word" >&5
2872 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2877 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2880 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
2881 for ac_dir
in $PATH; do
2883 test -z "$ac_dir" && ac_dir
=.
2884 for ac_exec_ext
in '' $ac_executable_extensions; do
2885 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2886 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
2887 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
2888 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
2895 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2899 XGETTEXT
="$ac_cv_path_XGETTEXT"
2900 if test "$XGETTEXT" != ":"; then
2901 echo "$ac_t""$XGETTEXT" 1>&6
2903 echo "$ac_t""no" 1>&6
2909 # Prepare PATH_SEPARATOR.
2910 # The user is always right.
2911 if test "${PATH_SEPARATOR+set}" != set; then
2912 echo "#! /bin/sh" >conf$$.sh
2913 echo "exit 0" >>conf$$.sh
2915 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
2923 # Find out how to test for executable files. Don't use a zero-byte file,
2924 # as systems may use methods other than mode bits to determine executability.
2925 cat >conf$$.
file <<_ASEOF
2929 chmod +x conf$$.
file
2930 if test -x conf$$.
file >/dev
/null
2>&1; then
2931 ac_executable_p
="test -x"
2933 ac_executable_p
="test -f"
2937 # Extract the first word of "msgmerge", so it can be a program name with args.
2938 set dummy msgmerge
; ac_word
=$2
2939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2940 echo "configure:2941: checking for $ac_word" >&5
2941 if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2946 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
2949 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
2950 for ac_dir
in $PATH; do
2952 test -z "$ac_dir" && ac_dir
=.
2953 for ac_exec_ext
in '' $ac_executable_extensions; do
2954 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2955 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
2956 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
2963 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
2967 MSGMERGE
="$ac_cv_path_MSGMERGE"
2968 if test "$MSGMERGE" != ":"; then
2969 echo "$ac_t""$MSGMERGE" 1>&6
2971 echo "$ac_t""no" 1>&6
2975 if test "$GMSGFMT" != ":"; then
2976 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
2977 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
2980 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2981 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
2986 if test "$XGETTEXT" != ":"; then
2987 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
2988 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
2991 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3001 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3002 stdlib.h string.h unistd.h sys
/param.h
3004 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3006 echo "configure:3007: checking for $ac_hdr" >&5
3007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 cat > conftest.
$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3015 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3016 { (eval echo configure
:3017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3017 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3018 if test -z "$ac_err"; then
3020 eval "ac_cv_header_$ac_safe=yes"
3023 echo "configure: failed program was:" >&5
3024 cat conftest.
$ac_ext >&5
3026 eval "ac_cv_header_$ac_safe=no"
3030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3033 cat >> confdefs.h
<<EOF
3034 #define $ac_tr_hdr 1
3038 echo "$ac_t""no" 1>&6
3042 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
3043 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
3044 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
3047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3048 echo "configure:3049: checking for $ac_func" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.
$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* System header to define __stub macros and hopefully few prototypes,
3056 which can conflict with char $ac_func(); below. */
3058 /* Override any gcc2 internal prototype to avoid an error. */
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3065 /* The GNU C library defines this for functions which it implements
3066 to always fail with ENOSYS. Some functions are actually named
3067 something starting with __ and the normal name is an alias. */
3068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3076 if { (eval echo configure
:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3078 eval "ac_cv_func_$ac_func=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.
$ac_ext >&5
3083 eval "ac_cv_func_$ac_func=no"
3088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3091 cat >> confdefs.h
<<EOF
3092 #define $ac_tr_func 1
3096 echo "$ac_t""no" 1>&6
3106 am_save_CPPFLAGS
="$CPPFLAGS"
3108 for element
in $INCICONV; do
3110 for x
in $CPPFLAGS; do
3112 acl_save_prefix
="$prefix"
3113 prefix
="$acl_final_prefix"
3114 acl_save_exec_prefix
="$exec_prefix"
3115 exec_prefix
="$acl_final_exec_prefix"
3117 exec_prefix
="$acl_save_exec_prefix"
3118 prefix
="$acl_save_prefix"
3120 if test "X$x" = "X$element"; then
3125 if test -z "$haveit"; then
3126 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
3131 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3132 echo "configure:3133: checking for iconv" >&5
3133 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3137 am_cv_func_iconv
="no, consider installing GNU libiconv"
3139 cat > conftest.
$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3145 iconv_t cd = iconv_open("","");
3146 iconv(cd,NULL,NULL,NULL,NULL);
3150 if { (eval echo configure
:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3152 am_cv_func_iconv
=yes
3154 echo "configure: failed program was:" >&5
3155 cat conftest.
$ac_ext >&5
3158 if test "$am_cv_func_iconv" != yes; then
3159 am_save_LIBS
="$LIBS"
3160 LIBS
="$LIBS $LIBICONV"
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3167 iconv_t cd = iconv_open("","");
3168 iconv(cd,NULL,NULL,NULL,NULL);
3172 if { (eval echo configure
:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3175 am_cv_func_iconv
=yes
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3181 LIBS
="$am_save_LIBS"
3186 echo "$ac_t""$am_cv_func_iconv" 1>&6
3187 if test "$am_cv_func_iconv" = yes; then
3188 cat >> confdefs.h
<<\EOF
3189 #define HAVE_ICONV 1
3193 if test "$am_cv_lib_iconv" = yes; then
3194 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
3195 echo "configure:3196: checking how to link with libiconv" >&5
3196 echo "$ac_t""$LIBICONV" 1>&6
3198 CPPFLAGS
="$am_save_CPPFLAGS"
3205 if test "$am_cv_func_iconv" = yes; then
3206 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3207 echo "configure:3208: checking for iconv declaration" >&5
3208 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.
$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3222 #if defined(__STDC__) || defined(__cplusplus)
3223 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3232 if { (eval echo configure
:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234 am_cv_proto_iconv_arg1
=""
3236 echo "configure: failed program was:" >&5
3237 cat conftest.
$ac_ext >&5
3239 am_cv_proto_iconv_arg1
="const"
3242 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
3245 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3246 echo "$ac_t""${ac_t:-
3247 }$am_cv_proto_iconv" 1>&6
3248 cat >> confdefs.h
<<EOF
3249 #define ICONV_CONST $am_cv_proto_iconv_arg1
3255 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
3256 echo "configure:3257: checking for nl_langinfo and CODESET" >&5
3257 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 cat > conftest.
$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 #include <langinfo.h>
3265 char* cs = nl_langinfo(CODESET);
3268 if { (eval echo configure
:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3270 am_cv_langinfo_codeset
=yes
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 am_cv_langinfo_codeset
=no
3281 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3282 if test $am_cv_langinfo_codeset = yes; then
3283 cat >> confdefs.h
<<\EOF
3284 #define HAVE_LANGINFO_CODESET 1
3289 if test $ac_cv_header_locale_h = yes; then
3291 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3292 echo "configure:3293: checking for LC_MESSAGES" >&5
3293 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3304 if { (eval echo configure
:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3306 am_cv_val_LC_MESSAGES
=yes
3308 echo "configure: failed program was:" >&5
3309 cat conftest.
$ac_ext >&5
3311 am_cv_val_LC_MESSAGES
=no
3316 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3317 if test $am_cv_val_LC_MESSAGES = yes; then
3318 cat >> confdefs.h
<<\EOF
3319 #define HAVE_LC_MESSAGES 1
3326 for ac_prog
in bison
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy
$ac_prog; ac_word
=$2
3330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3331 echo "configure:3332: checking for $ac_word" >&5
3332 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 if test -n "$INTLBISON"; then
3336 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
3338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3340 for ac_dir
in $ac_dummy; do
3341 test -z "$ac_dir" && ac_dir
=.
3342 if test -f $ac_dir/$ac_word; then
3343 ac_cv_prog_INTLBISON
="$ac_prog"
3350 INTLBISON
="$ac_cv_prog_INTLBISON"
3351 if test -n "$INTLBISON"; then
3352 echo "$ac_t""$INTLBISON" 1>&6
3354 echo "$ac_t""no" 1>&6
3357 test -n "$INTLBISON" && break
3360 if test -z "$INTLBISON"; then
3363 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3364 echo "configure:3365: checking version of bison" >&5
3365 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3366 case $ac_prog_version in
3367 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
3368 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
3369 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
3370 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
3372 echo "$ac_t""$ac_prog_version" 1>&6
3374 if test $ac_verc_fail = yes; then
3393 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3394 echo "configure:3395: checking whether NLS is requested" >&5
3395 # Check whether --enable-nls or --disable-nls was given.
3396 if test "${enable_nls+set}" = set; then
3397 enableval
="$enable_nls"
3403 echo "$ac_t""$USE_NLS" 1>&6
3408 BUILD_INCLUDED_LIBINTL
=no
3409 USE_INCLUDED_LIBINTL
=no
3415 if test "$USE_NLS" = "yes"; then
3416 gt_use_preinstalled_gnugettext
=no
3418 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3419 echo "configure:3420: checking whether included gettext is requested" >&5
3420 # Check whether --with-included-gettext or --without-included-gettext was given.
3421 if test "${with_included_gettext+set}" = set; then
3422 withval
="$with_included_gettext"
3423 nls_cv_force_use_gnu_gettext
=$withval
3425 nls_cv_force_use_gnu_gettext
=no
3428 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3430 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3431 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3438 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
3439 echo "configure:3440: checking for GNU gettext in libc" >&5
3440 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 cat > conftest.
$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 #include <libintl.h>
3447 extern int _nl_msg_cat_cntr;
3448 extern int *_nl_domain_bindings;
3450 bindtextdomain ("", "");
3451 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3456 gt_cv_func_gnugettext1_libc
=yes
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 gt_cv_func_gnugettext1_libc
=no
3466 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
3468 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3474 acl_save_prefix
="$prefix"
3475 prefix
="$acl_final_prefix"
3476 acl_save_exec_prefix
="$exec_prefix"
3477 exec_prefix
="$acl_final_exec_prefix"
3479 eval additional_includedir
=\"$includedir\"
3480 eval additional_libdir
=\"$libdir\"
3482 exec_prefix
="$acl_save_exec_prefix"
3483 prefix
="$acl_save_prefix"
3485 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
3486 if test "${with_libintl_prefix+set}" = set; then
3487 withval
="$with_libintl_prefix"
3489 if test "X$withval" = "Xno"; then
3492 if test "X$withval" = "X"; then
3494 acl_save_prefix
="$prefix"
3495 prefix
="$acl_final_prefix"
3496 acl_save_exec_prefix
="$exec_prefix"
3497 exec_prefix
="$acl_final_exec_prefix"
3499 eval additional_includedir
=\"$includedir\"
3500 eval additional_libdir
=\"$libdir\"
3502 exec_prefix
="$acl_save_exec_prefix"
3503 prefix
="$acl_save_prefix"
3506 additional_includedir
="$withval/include"
3507 additional_libdir
="$withval/lib"
3518 names_already_handled
=
3519 names_next_round
='intl '
3520 while test -n "$names_next_round"; do
3521 names_this_round
="$names_next_round"
3523 for name
in $names_this_round; do
3525 for n
in $names_already_handled; do
3526 if test "$n" = "$name"; then
3531 if test -z "$already_handled"; then
3532 names_already_handled
="$names_already_handled $name"
3533 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3534 eval value
=\"\
$HAVE_LIB$uppername\"
3535 if test -n "$value"; then
3536 if test "$value" = yes; then
3537 eval value
=\"\
$LIB$uppername\"
3538 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
3539 eval value
=\"\
$LTLIB$uppername\"
3540 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
3549 if test $use_additional = yes; then
3550 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3551 found_dir
="$additional_libdir"
3552 found_so
="$additional_libdir/lib$name.$shlibext"
3553 if test -f "$additional_libdir/lib$name.la"; then
3554 found_la
="$additional_libdir/lib$name.la"
3557 if test -f "$additional_libdir/lib$name.$libext"; then
3558 found_dir
="$additional_libdir"
3559 found_a
="$additional_libdir/lib$name.$libext"
3560 if test -f "$additional_libdir/lib$name.la"; then
3561 found_la
="$additional_libdir/lib$name.la"
3566 if test "X$found_dir" = "X"; then
3567 for x
in $LDFLAGS $LTLIBINTL; do
3569 acl_save_prefix
="$prefix"
3570 prefix
="$acl_final_prefix"
3571 acl_save_exec_prefix
="$exec_prefix"
3572 exec_prefix
="$acl_final_exec_prefix"
3574 exec_prefix
="$acl_save_exec_prefix"
3575 prefix
="$acl_save_prefix"
3579 dir
=`echo "X$x" | sed -e 's/^X-L//'`
3580 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3582 found_so
="$dir/lib$name.$shlibext"
3583 if test -f "$dir/lib$name.la"; then
3584 found_la
="$dir/lib$name.la"
3587 if test -f "$dir/lib$name.$libext"; then
3589 found_a
="$dir/lib$name.$libext"
3590 if test -f "$dir/lib$name.la"; then
3591 found_la
="$dir/lib$name.la"
3597 if test "X$found_dir" != "X"; then
3602 if test "X$found_dir" != "X"; then
3603 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
3604 if test "X$found_so" != "X"; then
3605 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
3606 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
3609 for x
in $ltrpathdirs; do
3610 if test "X$x" = "X$found_dir"; then
3615 if test -z "$haveit"; then
3616 ltrpathdirs
="$ltrpathdirs $found_dir"
3618 if test "$hardcode_direct" = yes; then
3619 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
3621 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
3622 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
3624 for x
in $rpathdirs; do
3625 if test "X$x" = "X$found_dir"; then
3630 if test -z "$haveit"; then
3631 rpathdirs
="$rpathdirs $found_dir"
3635 for x
in $LDFLAGS $LIBINTL; do
3637 acl_save_prefix
="$prefix"
3638 prefix
="$acl_final_prefix"
3639 acl_save_exec_prefix
="$exec_prefix"
3640 exec_prefix
="$acl_final_exec_prefix"
3642 exec_prefix
="$acl_save_exec_prefix"
3643 prefix
="$acl_save_prefix"
3645 if test "X$x" = "X-L$found_dir"; then
3650 if test -z "$haveit"; then
3651 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
3653 if test "$hardcode_minus_L" != no
; then
3654 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
3656 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
3662 if test "X$found_a" != "X"; then
3663 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
3665 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
3668 additional_includedir
=
3669 case "$found_dir" in
3671 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3672 additional_includedir
="$basedir/include"
3675 if test "X$additional_includedir" != "X"; then
3676 if test "X$additional_includedir" != "X/usr/include"; then
3678 if test "X$additional_includedir" = "X/usr/local/include"; then
3679 if test -n "$GCC"; then
3681 linux
*) haveit
=yes;;
3685 if test -z "$haveit"; then
3686 for x
in $CPPFLAGS $INCINTL; do
3688 acl_save_prefix
="$prefix"
3689 prefix
="$acl_final_prefix"
3690 acl_save_exec_prefix
="$exec_prefix"
3691 exec_prefix
="$acl_final_exec_prefix"
3693 exec_prefix
="$acl_save_exec_prefix"
3694 prefix
="$acl_save_prefix"
3696 if test "X$x" = "X-I$additional_includedir"; then
3701 if test -z "$haveit"; then
3702 if test -d "$additional_includedir"; then
3703 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
3709 if test -n "$found_la"; then
3710 save_libdir
="$libdir"
3712 */* |
*\\*) .
"$found_la" ;;
3713 *) .
"./$found_la" ;;
3715 libdir
="$save_libdir"
3716 for dep
in $dependency_libs; do
3719 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
3720 if test "X$additional_libdir" != "X/usr/lib"; then
3722 if test "X$additional_libdir" = "X/usr/local/lib"; then
3723 if test -n "$GCC"; then
3725 linux
*) haveit
=yes;;
3729 if test -z "$haveit"; then
3731 for x
in $LDFLAGS $LIBINTL; do
3733 acl_save_prefix
="$prefix"
3734 prefix
="$acl_final_prefix"
3735 acl_save_exec_prefix
="$exec_prefix"
3736 exec_prefix
="$acl_final_exec_prefix"
3738 exec_prefix
="$acl_save_exec_prefix"
3739 prefix
="$acl_save_prefix"
3741 if test "X$x" = "X-L$additional_libdir"; then
3746 if test -z "$haveit"; then
3747 if test -d "$additional_libdir"; then
3748 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
3752 for x
in $LDFLAGS $LTLIBINTL; do
3754 acl_save_prefix
="$prefix"
3755 prefix
="$acl_final_prefix"
3756 acl_save_exec_prefix
="$exec_prefix"
3757 exec_prefix
="$acl_final_exec_prefix"
3759 exec_prefix
="$acl_save_exec_prefix"
3760 prefix
="$acl_save_prefix"
3762 if test "X$x" = "X-L$additional_libdir"; then
3767 if test -z "$haveit"; then
3768 if test -d "$additional_libdir"; then
3769 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
3776 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
3777 if test "$enable_rpath" != no
; then
3779 for x
in $rpathdirs; do
3780 if test "X$x" = "X$dir"; then
3785 if test -z "$haveit"; then
3786 rpathdirs
="$rpathdirs $dir"
3789 for x
in $ltrpathdirs; do
3790 if test "X$x" = "X$dir"; then
3795 if test -z "$haveit"; then
3796 ltrpathdirs
="$ltrpathdirs $dir"
3801 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3804 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3807 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
3808 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
3814 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
3815 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
3821 if test "X$rpathdirs" != "X"; then
3822 if test -n "$hardcode_libdir_separator"; then
3824 for found_dir
in $rpathdirs; do
3825 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3827 acl_save_libdir
="$libdir"
3829 eval flag
=\"$hardcode_libdir_flag_spec\"
3830 libdir
="$acl_save_libdir"
3831 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
3833 for found_dir
in $rpathdirs; do
3834 acl_save_libdir
="$libdir"
3836 eval flag
=\"$hardcode_libdir_flag_spec\"
3837 libdir
="$acl_save_libdir"
3838 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
3842 if test "X$ltrpathdirs" != "X"; then
3843 for found_dir
in $ltrpathdirs; do
3844 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
3848 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
3849 echo "configure:3850: checking for GNU gettext in libintl" >&5
3850 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 gt_save_CPPFLAGS
="$CPPFLAGS"
3854 CPPFLAGS
="$CPPFLAGS $INCINTL"
3855 gt_save_LIBS
="$LIBS"
3856 LIBS
="$LIBS $LIBINTL"
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 #include <libintl.h>
3861 extern int _nl_msg_cat_cntr;
3866 const char *_nl_expand_alias ();
3868 bindtextdomain ("", "");
3869 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 gt_cv_func_gnugettext1_libintl
=yes
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 gt_cv_func_gnugettext1_libintl
=no
3882 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
3883 LIBS
="$LIBS $LIBICONV"
3884 cat > conftest.
$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 #include <libintl.h>
3888 extern int _nl_msg_cat_cntr;
3893 const char *_nl_expand_alias ();
3895 bindtextdomain ("", "");
3896 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
3899 if { (eval echo configure
:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3901 LIBINTL
="$LIBINTL $LIBICONV"
3902 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
3903 gt_cv_func_gnugettext1_libintl
=yes
3906 echo "configure: failed program was:" >&5
3907 cat conftest.
$ac_ext >&5
3911 CPPFLAGS
="$gt_save_CPPFLAGS"
3912 LIBS
="$gt_save_LIBS"
3915 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
3918 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
3919 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
3920 && test "$PACKAGE" != gettext-runtime \
3921 && test "$PACKAGE" != gettext-tools
; }; then
3922 gt_use_preinstalled_gnugettext
=yes
3930 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
3931 nls_cv_use_gnu_gettext
=yes
3935 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3936 BUILD_INCLUDED_LIBINTL
=yes
3937 USE_INCLUDED_LIBINTL
=yes
3938 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
3939 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
3940 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
3943 if test "$gt_use_preinstalled_gnugettext" = "yes" \
3944 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
3949 if test "$gt_use_preinstalled_gnugettext" = "yes" \
3950 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
3951 cat >> confdefs.h
<<\EOF
3952 #define ENABLE_NLS 1
3960 echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
3961 echo "configure:3962: checking whether to use NLS" >&5
3962 echo "$ac_t""$USE_NLS" 1>&6
3963 if test "$USE_NLS" = "yes"; then
3964 echo $ac_n "checking where the gettext function comes from""... $ac_c" 1>&6
3965 echo "configure:3966: checking where the gettext function comes from" >&5
3966 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
3967 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
3968 gt_source
="external libintl"
3973 gt_source
="included intl directory"
3975 echo "$ac_t""$gt_source" 1>&6
3978 if test "$USE_NLS" = "yes"; then
3980 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
3981 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
3982 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
3983 echo "configure:3984: checking how to link with libintl" >&5
3984 echo "$ac_t""$LIBINTL" 1>&6
3986 for element
in $INCINTL; do
3988 for x
in $CPPFLAGS; do
3990 acl_save_prefix
="$prefix"
3991 prefix
="$acl_final_prefix"
3992 acl_save_exec_prefix
="$exec_prefix"
3993 exec_prefix
="$acl_final_exec_prefix"
3995 exec_prefix
="$acl_save_exec_prefix"
3996 prefix
="$acl_save_prefix"
3998 if test "X$x" = "X$element"; then
4003 if test -z "$haveit"; then
4004 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
4010 cat >> confdefs.h
<<\EOF
4011 #define HAVE_GETTEXT 1
4014 cat >> confdefs.h
<<\EOF
4015 #define HAVE_DCGETTEXT 1
4024 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
4025 BUILD_INCLUDED_LIBINTL
=yes
4033 nls_cv_header_libgt
=
4044 if test "$USE_INCLUDED_LIBINTL" = yes; then
4045 INTLOBJS
="\$(GETTOBJS)"
4049 INTL_LIBTOOL_SUFFIX_PREFIX
=
4061 cat >> confdefs.h
<<\EOF
4062 #define IN_LIBINTL 1
4065 cat >> confdefs.h
<<\EOF
4066 #define IN_LIBRARY 1
4069 cat >> confdefs.h
<<\EOF
4070 #define DEPENDS_ON_LIBICONV 1
4073 cat >> confdefs.h
<<\EOF
4074 #define ENABLE_RELOCATABLE 1
4077 cat >> confdefs.h
<<\EOF
4078 #define NO_XMALLOC 1
4081 cat >> confdefs.h
<<\EOF
4082 #define set_relocation_prefix libintl_set_relocation_prefix
4085 cat >> confdefs.h
<<\EOF
4086 #define relocate libintl_relocate
4093 if test $USE_INCLUDED_LIBINTL = yes; then
4094 LIBINTL_DEP
='${top_builddir}/intl/libintl.a'
4095 INCINTL
='-I${top_builddir}/intl'
4099 cat > confcache
<<\EOF
4100 # This file is a shell script that caches the results of configure
4101 # tests run on this system so they can be shared between configure
4102 # scripts and configure runs. It is not useful on other systems.
4103 # If it contains results you don't want to keep, you may remove or edit it.
4105 # By default, configure uses ./config.cache as the cache file,
4106 # creating it if it does not exist already. You can give configure
4107 # the --cache-file=FILE option to use a different cache file; that is
4108 # what configure does when it calls configure scripts in
4109 # subdirectories, so they share the cache.
4110 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4111 # config.status only pays attention to the cache file if you give it the
4112 # --recheck option to rerun configure.
4115 # The following way of writing the cache mishandles newlines in values,
4116 # but we know of no workaround that is simple, portable, and efficient.
4117 # So, don't put newlines in cache variables' values.
4118 # Ultrix sh set writes to stderr and can't be redirected directly,
4119 # and sets the high bit in the cache file unless we assign to the vars.
4121 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4123 # `set' does not quote correctly, so add quotes (double-quote substitution
4124 # turns \\\\ into \\, and sed turns \\ into \).
4126 -e "s/'/'\\\\''/g" \
4127 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4130 # `set' quotes correctly as required by POSIX, so do not add quotes.
4131 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4134 if cmp -s $cache_file confcache
; then
4137 if test -w $cache_file; then
4138 echo "updating cache $cache_file"
4139 cat confcache
> $cache_file
4141 echo "not updating unwritable cache $cache_file"
4146 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4148 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4149 # Let make expand exec_prefix.
4150 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4152 # Any assignment to VPATH causes Sun make to only execute
4153 # the first set of double-colon rules, so remove it if not needed.
4154 # If there is a colon in the path, we need to keep it.
4155 if test "x$srcdir" = x.
; then
4156 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4159 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4161 DEFS
=-DHAVE_CONFIG_H
4163 # Without the "./", some shells look in PATH for config.status.
4164 : ${CONFIG_STATUS=./config.status}
4166 echo creating
$CONFIG_STATUS
4167 rm -f $CONFIG_STATUS
4168 cat > $CONFIG_STATUS <<EOF
4170 # Generated automatically by configure.
4171 # Run this file to recreate the current configuration.
4172 # This directory was configured as follows,
4173 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4175 # $0 $ac_configure_args
4177 # Compiler output produced by configure, useful for debugging
4178 # configure, is in ./config.log if it exists.
4180 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4183 case "\$ac_option" in
4184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4185 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4186 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4187 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4188 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4190 -help | --help | --hel | --he | --h)
4191 echo "\$ac_cs_usage"; exit 0 ;;
4192 *) echo "\$ac_cs_usage"; exit 1 ;;
4196 ac_given_srcdir=$srcdir
4197 ac_given_INSTALL="$INSTALL"
4199 trap 'rm -fr `echo "Makefile config.intl config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4201 cat >> $CONFIG_STATUS <<EOF
4203 # Protect against being on the right side of a sed subst in config.status.
4204 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4205 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4209 s%@CFLAGS@%$CFLAGS%g
4210 s%@CPPFLAGS@%$CPPFLAGS%g
4211 s%@CXXFLAGS@%$CXXFLAGS%g
4212 s%@FFLAGS@%$FFLAGS%g
4214 s%@LDFLAGS@%$LDFLAGS%g
4216 s%@exec_prefix@%$exec_prefix%g
4217 s%@prefix@%$prefix%g
4218 s%@program_transform_name@%$program_transform_name%g
4219 s%@bindir@%$bindir%g
4220 s%@sbindir@%$sbindir%g
4221 s%@libexecdir@%$libexecdir%g
4222 s%@datadir@%$datadir%g
4223 s%@sysconfdir@%$sysconfdir%g
4224 s%@sharedstatedir@%$sharedstatedir%g
4225 s%@localstatedir@%$localstatedir%g
4226 s%@libdir@%$libdir%g
4227 s%@includedir@%$includedir%g
4228 s%@oldincludedir@%$oldincludedir%g
4229 s%@infodir@%$infodir%g
4230 s%@mandir@%$mandir%g
4231 s%@SET_MAKE@%$SET_MAKE%g
4232 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4233 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4234 s%@INSTALL_DATA@%$INSTALL_DATA%g
4235 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4236 s%@USE_NLS@%$USE_NLS%g
4237 s%@MSGFMT@%$MSGFMT%g
4238 s%@GMSGFMT@%$GMSGFMT%g
4239 s%@XGETTEXT@%$XGETTEXT%g
4240 s%@MSGMERGE@%$MSGMERGE%g
4243 s%@host_alias@%$host_alias%g
4244 s%@host_cpu@%$host_cpu%g
4245 s%@host_vendor@%$host_vendor%g
4246 s%@host_os@%$host_os%g
4247 s%@RANLIB@%$RANLIB%g
4249 s%@ALLOCA@%$ALLOCA%g
4250 s%@GLIBC21@%$GLIBC21%g
4251 s%@LIBICONV@%$LIBICONV%g
4252 s%@LTLIBICONV@%$LTLIBICONV%g
4253 s%@INTLBISON@%$INTLBISON%g
4254 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
4255 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4256 s%@CATOBJEXT@%$CATOBJEXT%g
4257 s%@DATADIRNAME@%$DATADIRNAME%g
4258 s%@INSTOBJEXT@%$INSTOBJEXT%g
4259 s%@GENCAT@%$GENCAT%g
4260 s%@INTLOBJS@%$INTLOBJS%g
4261 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
4262 s%@INTLLIBS@%$INTLLIBS%g
4263 s%@LIBINTL@%$LIBINTL%g
4264 s%@LTLIBINTL@%$LTLIBINTL%g
4266 s%@LIBINTL_DEP@%$LIBINTL_DEP%g
4267 s%@INCINTL@%$INCINTL%g
4272 cat >> $CONFIG_STATUS <<\EOF
4274 # Split the substitutions into bite-sized pieces for seds with
4275 # small command number limits, like on Digital OSF/1 and HP-UX.
4276 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4277 ac_file
=1 # Number of current file.
4278 ac_beg
=1 # First line for current file.
4279 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4282 while $ac_more_lines; do
4283 if test $ac_beg -gt 1; then
4284 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4286 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4288 if test ! -s conftest.s
$ac_file; then
4290 rm -f conftest.s
$ac_file
4292 if test -z "$ac_sed_cmds"; then
4293 ac_sed_cmds
="sed -f conftest.s$ac_file"
4295 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4297 ac_file
=`expr $ac_file + 1`
4299 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4302 if test -z "$ac_sed_cmds"; then
4307 cat >> $CONFIG_STATUS <<EOF
4309 CONFIG_FILES=\${CONFIG_FILES-"Makefile config.intl"}
4311 cat >> $CONFIG_STATUS <<\EOF
4312 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4315 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4316 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4317 *) ac_file_in
="${ac_file}.in" ;;
4320 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4322 # Remove last slash and all that follows it. Not all systems have dirname.
4323 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4324 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4325 # The file is in a subdirectory.
4326 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4327 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4328 # A "../" for each directory in $ac_dir_suffix.
4329 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4331 ac_dir_suffix
= ac_dots
=
4334 case "$ac_given_srcdir" in
4336 if test -z "$ac_dots"; then top_srcdir
=.
4337 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4338 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4340 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4341 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4344 case "$ac_given_INSTALL" in
4345 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4346 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4349 echo creating
"$ac_file"
4351 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4353 *Makefile
*) ac_comsub
="1i\\
4354 # $configure_input" ;;
4358 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4360 s%@configure_input@%$configure_input%g
4361 s%@srcdir@%$srcdir%g
4362 s%@top_srcdir@%$top_srcdir%g
4363 s%@INSTALL@%$INSTALL%g
4364 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4368 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4369 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4371 # ac_d sets the value in "#define NAME VALUE" lines.
4372 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4373 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4376 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4377 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4378 ac_uB
='\([ ]\)%\1#\2define\3'
4381 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4382 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4383 ac_eB
='$%\1#\2define\3'
4387 if test "${CONFIG_HEADERS+set}" != set; then
4389 cat >> $CONFIG_STATUS <<EOF
4390 CONFIG_HEADERS="config.h"
4392 cat >> $CONFIG_STATUS <<\EOF
4394 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4395 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4397 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4398 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4399 *) ac_file_in
="${ac_file}.in" ;;
4402 echo creating
$ac_file
4404 rm -f conftest.frag conftest.
in conftest.out
4405 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4406 cat $ac_file_inputs > conftest.
in
4410 # Transform confdefs.h into a sed script conftest.vals that substitutes
4411 # the proper values into config.h.in to produce config.h. And first:
4412 # Protect against being on the right side of a sed subst in config.status.
4413 # Protect against being in an unquoted here document in config.status.
4415 cat > conftest.hdr
<<\EOF
4418 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4422 sed -n -f conftest.hdr confdefs.h > conftest.vals
4425 # This sed command replaces #undef with comments. This is necessary, for
4426 # example, in the case of _POSIX_SOURCE, which is predefined and required
4427 # on some systems where configure will not decide to define it.
4428 cat >> conftest.vals <<\EOF
4429 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4432 # Break up conftest.vals because some shells have a limit on
4433 # the size of here documents, and old seds have small limits too.
4438 ac_lines=`grep -c . conftest.vals
`
4439 # grep -c gives empty output for an empty file on some AIX systems.
4440 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4441 # Write a limited-size here document to conftest.frag.
4442 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4443 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4445 sed -f conftest.frag conftest.in > conftest.out
4447 mv conftest.out conftest.in
4449 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4451 mv conftest.tail conftest.vals
4455 cat >> $CONFIG_STATUS <<\EOF
4456 rm -f conftest.frag conftest.h
4457 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4458 cat conftest.in >> conftest.h
4460 if cmp -s $ac_file conftest.h 2>/dev/null; then
4461 echo "$ac_file is unchanged"
4464 # Remove last slash and all that follows it. Not all systems have dirname.
4465 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4466 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4467 # The file is in a subdirectory.
4468 test ! -d "$ac_dir" && mkdir "$ac_dir"
4471 mv conftest.h $ac_file
4476 cat >> $CONFIG_STATUS <<EOF
4477 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
4478 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
4480 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
4481 # Capture the value of LINGUAS because we need it to compute CATALOGS.
4482 LINGUAS="${LINGUAS-%UNSET%}"
4486 cat >> $CONFIG_STATUS <<\EOF
4488 for ac_file in $CONFIG_FILES; do
4489 # Support "outfile[:infile[:infile...]]"
4491 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
4493 # PO directories have a Makefile.in generated from Makefile.in.in.
4494 case "$ac_file" in */Makefile.in)
4495 # Adjust a relative srcdir.
4496 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
4497 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
4498 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
4499 # In autoconf-2.13 it is called $ac_given_srcdir.
4500 # In autoconf-2.50 it is called $srcdir.
4501 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
4502 case "$ac_given_srcdir" in
4503 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
4504 /*) top_srcdir="$ac_given_srcdir" ;;
4505 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
4507 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
4508 rm -f "$ac_dir/POTFILES"
4509 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
4510 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
4511 POMAKEFILEDEPS="POTFILES.in"
4512 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
4513 # on $ac_dir but don't depend on user-specified configuration
4515 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
4516 # The LINGUAS file contains the set of available languages.
4517 if test -n "$OBSOLETE_ALL_LINGUAS"; then
4518 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
4520 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
4521 # Hide the ALL_LINGUAS assigment from automake.
4522 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
4523 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
4525 # The set of available languages was given in configure.in.
4526 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
4528 case "$ac_given_srcdir" in
4530 *) srcdirpre='$(srcdir)/' ;;
4536 for lang in $ALL_LINGUAS; do
4537 POFILES="$POFILES $srcdirpre$lang.po"
4538 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
4539 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
4540 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
4542 # CATALOGS depends on both $ac_dir and the user's LINGUAS
4543 # environment variable.
4545 if test -n "$ALL_LINGUAS"; then
4546 for presentlang in $ALL_LINGUAS; do
4548 if test "%UNSET%" != "$LINGUAS"; then
4549 desiredlanguages="$LINGUAS"
4551 desiredlanguages="$ALL_LINGUAS"
4553 for desiredlang in $desiredlanguages; do
4554 # Use the presentlang catalog if desiredlang is
4555 # a. equal to presentlang, or
4556 # b. a variant of presentlang (because in this case,
4557 # presentlang can be used as a fallback for messages
4558 # which are not translated in the desiredlang catalog).
4559 case "$desiredlang" in
4560 "$presentlang"*) useit=yes;;
4563 if test $useit = yes; then
4564 INST_LINGUAS="$INST_LINGUAS $presentlang"
4569 if test -n "$INST_LINGUAS"; then
4570 for lang in $INST_LINGUAS; do
4571 CATALOGS="$CATALOGS $lang.gmo"
4574 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
4575 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
4576 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
4577 if test -f "$f"; then
4579 *.orig | *.bak | *~) ;;
4580 *) cat "$f" >> "$ac_dir/Makefile" ;;
4591 chmod +x $CONFIG_STATUS
4592 rm -fr confdefs* $ac_clean_files
4593 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1