* bfd/elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
[binutils.git] / intl / configure
blob341eea019ae37bd6b4df0a5652c597809a179930
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --disable-nls do not use Native Language Support"
16 ac_help="$ac_help
17 --with-included-gettext use the GNU gettext library included here"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
60 ac_prev=
61 for ac_option
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
67 ac_prev=
68 continue
71 case "$ac_option" in
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 *) ac_optarg= ;;
74 esac
76 # Accept the important Cygnus configure options, so we can diagnose typos.
78 case "$ac_option" in
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
81 ac_prev=bindir ;;
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
86 ac_prev=build ;;
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88 build="$ac_optarg" ;;
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92 ac_prev=cache_file ;;
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98 ac_prev=datadir ;;
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100 | --da=*)
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 case "$ac_option" in
120 *=*) ;;
121 *) ac_optarg=yes ;;
122 esac
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
136 with_gas=yes ;;
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
141 cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
152 [$ac_default_prefix]
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 [same as prefix]
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
159 [PREFIX/share]
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 [PREFIX/com]
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
175 cat << EOF
176 Host type:
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
191 exit 0 ;;
193 -host | --host | --hos | --ho)
194 ac_prev=host ;;
195 -host=* | --host=* | --hos=* | --ho=*)
196 host="$ac_optarg" ;;
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 ac_prev=infodir ;;
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
211 ac_prev=libdir ;;
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 ac_prev=mandir ;;
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
236 -nfp | --nfp | --nf)
237 # Obsolete; use --without-fp.
238 with_fp=no ;;
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 | --no-cr | --no-c)
242 no_create=yes ;;
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246 no_recursion=yes ;;
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 ac_prev=prefix ;;
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
295 silent=yes ;;
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 ac_prev=sbindir ;;
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 | --sbi=* | --sb=*)
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
306 | --sha | --sh)
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 | --sha=* | --sh=*)
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
315 ac_prev=site ;;
316 -site=* | --site=* | --sit=*)
317 site="$ac_optarg" ;;
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 ac_prev=srcdir ;;
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
332 ac_prev=target ;;
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
337 verbose=yes ;;
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.12.1"
341 exit 0 ;;
343 -with-* | --with-*)
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 case "$ac_option" in
351 *=*) ;;
352 *) ac_optarg=yes ;;
353 esac
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
365 --x)
366 # Obsolete; use --with-x.
367 with_x=yes ;;
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
393 nonopt="$ac_option"
396 esac
397 done
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414 exec 6>/dev/null
415 else
416 exec 6>&1
418 exec 5>./config.log
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
430 case "$ac_arg" in
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 esac
439 done
441 # NLS nuisances.
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=dgettext.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
464 ac_prog=$0
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 srcdir=$ac_confdir
468 if test ! -r $srcdir/$ac_unique_file; then
469 srcdir=..
471 else
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 else
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 else
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
494 . "$ac_site_file"
496 done
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
500 . $cache_file
501 else
502 echo "creating cache $cache_file"
503 > $cache_file
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
521 else
522 ac_n= ac_c='\c' ac_t=
530 ac_aux_dir=
531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
532 if test -f $ac_dir/install-sh; then
533 ac_aux_dir=$ac_dir
534 ac_install_sh="$ac_aux_dir/install-sh -c"
535 break
536 elif test -f $ac_dir/install.sh; then
537 ac_aux_dir=$ac_dir
538 ac_install_sh="$ac_aux_dir/install.sh -c"
539 break
541 done
542 if test -z "$ac_aux_dir"; then
543 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
545 ac_config_guess=$ac_aux_dir/config.guess
546 ac_config_sub=$ac_aux_dir/config.sub
547 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # Find a good install program. We prefer a C program (faster),
550 # so one script is as good as another. But avoid the broken or
551 # incompatible versions:
552 # SysV /etc/install, /usr/sbin/install
553 # SunOS /usr/etc/install
554 # IRIX /sbin/install
555 # AIX /bin/install
556 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
558 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559 # ./install, which can be erroneously created by make from ./install.sh.
560 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561 echo "configure:562: checking for a BSD compatible install" >&5
562 if test -z "$INSTALL"; then
563 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
565 else
566 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
567 for ac_dir in $PATH; do
568 # Account for people who put trailing slashes in PATH elements.
569 case "$ac_dir/" in
570 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
572 # OSF1 and SCO ODT 3.0 have their own names for install.
573 # Don't use installbsd from OSF since it installs stuff as root
574 # by default.
575 for ac_prog in ginstall scoinst install; do
576 if test -f $ac_dir/$ac_prog; then
577 if test $ac_prog = install &&
578 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
579 # AIX install. It has an incompatible calling convention.
581 else
582 ac_cv_path_install="$ac_dir/$ac_prog -c"
583 break 2
586 done
588 esac
589 done
590 IFS="$ac_save_IFS"
593 if test "${ac_cv_path_install+set}" = set; then
594 INSTALL="$ac_cv_path_install"
595 else
596 # As a last resort, use the slow shell script. We don't cache a
597 # path for INSTALL within a source directory, because that will
598 # break other packages using the cache if that directory is
599 # removed, or if the path is relative.
600 INSTALL="$ac_install_sh"
603 echo "$ac_t""$INSTALL" 1>&6
605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606 # It thinks the first close brace ends the variable substitution.
607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
614 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
615 echo "configure:616: checking how to run the C preprocessor" >&5
616 # On Suns, sometimes $CPP names a directory.
617 if test -n "$CPP" && test -d "$CPP"; then
618 CPP=
620 if test -z "$CPP"; then
621 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
623 else
624 # This must be in double quotes, not single quotes, because CPP may get
625 # substituted into the Makefile and "${CC-cc}" will confuse make.
626 CPP="${CC-cc} -E"
627 # On the NeXT, cc -E runs the code through the compiler's parser,
628 # not just through cpp.
629 cat > conftest.$ac_ext <<EOF
630 #line 631 "configure"
631 #include "confdefs.h"
632 #include <assert.h>
633 Syntax Error
635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
636 { (eval echo configure:637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
637 ac_err=`grep -v '^ *+' conftest.out`
638 if test -z "$ac_err"; then
640 else
641 echo "$ac_err" >&5
642 echo "configure: failed program was:" >&5
643 cat conftest.$ac_ext >&5
644 rm -rf conftest*
645 CPP="${CC-cc} -E -traditional-cpp"
646 cat > conftest.$ac_ext <<EOF
647 #line 648 "configure"
648 #include "confdefs.h"
649 #include <assert.h>
650 Syntax Error
652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
653 { (eval echo configure:654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
654 ac_err=`grep -v '^ *+' conftest.out`
655 if test -z "$ac_err"; then
657 else
658 echo "$ac_err" >&5
659 echo "configure: failed program was:" >&5
660 cat conftest.$ac_ext >&5
661 rm -rf conftest*
662 CPP=/lib/cpp
664 rm -f conftest*
666 rm -f conftest*
667 ac_cv_prog_CPP="$CPP"
669 CPP="$ac_cv_prog_CPP"
670 else
671 ac_cv_prog_CPP="$CPP"
673 echo "$ac_t""$CPP" 1>&6
675 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
676 echo "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
677 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
678 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680 else
681 cat > conftestmake <<\EOF
682 all:
683 @echo 'ac_maketemp="${MAKE}"'
685 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
686 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
687 if test -n "$ac_maketemp"; then
688 eval ac_cv_prog_make_${ac_make}_set=yes
689 else
690 eval ac_cv_prog_make_${ac_make}_set=no
692 rm -f conftestmake
694 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
695 echo "$ac_t""yes" 1>&6
696 SET_MAKE=
697 else
698 echo "$ac_t""no" 1>&6
699 SET_MAKE="MAKE=${MAKE-make}"
702 # Extract the first word of "gcc", so it can be a program name with args.
703 set dummy gcc; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708 else
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
711 else
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
713 for ac_dir in $PATH; do
714 test -z "$ac_dir" && ac_dir=.
715 if test -f $ac_dir/$ac_word; then
716 ac_cv_prog_CC="gcc"
717 break
719 done
720 IFS="$ac_save_ifs"
723 CC="$ac_cv_prog_CC"
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
726 else
727 echo "$ac_t""no" 1>&6
730 if test -z "$CC"; then
731 # Extract the first word of "cc", so it can be a program name with args.
732 set dummy cc; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
740 else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
742 ac_prog_rejected=no
743 for ac_dir in $PATH; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
747 ac_prog_rejected=yes
748 continue
750 ac_cv_prog_CC="cc"
751 break
753 done
754 IFS="$ac_save_ifs"
755 if test $ac_prog_rejected = yes; then
756 # We found a bogon in the path, so make sure we never use it.
757 set dummy $ac_cv_prog_CC
758 shift
759 if test $# -gt 0; then
760 # We chose a different compiler from the bogus one.
761 # However, it has the same basename, so the bogon will be chosen
762 # first if we set CC to just the basename; use the full file name.
763 shift
764 set dummy "$ac_dir/$ac_word" "$@"
765 shift
766 ac_cv_prog_CC="$@"
771 CC="$ac_cv_prog_CC"
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
774 else
775 echo "$ac_t""no" 1>&6
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784 ac_ext=c
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
794 main(){return(0);}
796 if { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
797 ac_cv_prog_cc_works=yes
798 # If we can't run a trivial program, we are probably using a cross compiler.
799 if (./conftest; exit) 2>/dev/null; then
800 ac_cv_prog_cc_cross=no
801 else
802 ac_cv_prog_cc_cross=yes
804 else
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
807 ac_cv_prog_cc_works=no
809 rm -fr conftest*
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 cat > conftest.c <<EOF
826 #ifdef __GNUC__
827 yes;
828 #endif
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831 ac_cv_prog_gcc=yes
832 else
833 ac_cv_prog_gcc=no
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
840 GCC=yes
841 ac_test_CFLAGS="${CFLAGS+set}"
842 ac_save_CFLAGS="$CFLAGS"
843 CFLAGS=
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848 else
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 ac_cv_prog_cc_g=yes
852 else
853 ac_cv_prog_cc_g=no
855 rm -f conftest*
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
863 CFLAGS="-g -O2"
864 else
865 CFLAGS="-O2"
867 else
868 GCC=
869 test "${CFLAGS+set}" = set || CFLAGS="-g"
872 # Extract the first word of "ranlib", so it can be a program name with args.
873 set dummy ranlib; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878 else
879 if test -n "$RANLIB"; then
880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
881 else
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883 for ac_dir in $PATH; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
886 ac_cv_prog_RANLIB="ranlib"
887 break
889 done
890 IFS="$ac_save_ifs"
891 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
894 RANLIB="$ac_cv_prog_RANLIB"
895 if test -n "$RANLIB"; then
896 echo "$ac_t""$RANLIB" 1>&6
897 else
898 echo "$ac_t""no" 1>&6
901 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
902 echo "configure:903: checking for POSIXized ISC" >&5
903 if test -d /etc/conf/kconfig.d &&
904 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
905 then
906 echo "$ac_t""yes" 1>&6
907 ISC=yes # If later tests want to check for ISC.
908 cat >> confdefs.h <<\EOF
909 #define _POSIX_SOURCE 1
912 if test "$GCC" = yes; then
913 CC="$CC -posix"
914 else
915 CC="$CC -Xp"
917 else
918 echo "$ac_t""no" 1>&6
919 ISC=
922 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
923 echo "configure:924: checking for ANSI C header files" >&5
924 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926 else
927 cat > conftest.$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
930 #include <stdlib.h>
931 #include <stdarg.h>
932 #include <string.h>
933 #include <float.h>
935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936 { (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937 ac_err=`grep -v '^ *+' conftest.out`
938 if test -z "$ac_err"; then
939 rm -rf conftest*
940 ac_cv_header_stdc=yes
941 else
942 echo "$ac_err" >&5
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 rm -rf conftest*
946 ac_cv_header_stdc=no
948 rm -f conftest*
950 if test $ac_cv_header_stdc = yes; then
951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
952 cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
955 #include <string.h>
957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
958 egrep "memchr" >/dev/null 2>&1; then
960 else
961 rm -rf conftest*
962 ac_cv_header_stdc=no
964 rm -f conftest*
968 if test $ac_cv_header_stdc = yes; then
969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
970 cat > conftest.$ac_ext <<EOF
971 #line 972 "configure"
972 #include "confdefs.h"
973 #include <stdlib.h>
975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
976 egrep "free" >/dev/null 2>&1; then
978 else
979 rm -rf conftest*
980 ac_cv_header_stdc=no
982 rm -f conftest*
986 if test $ac_cv_header_stdc = yes; then
987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
988 if test "$cross_compiling" = yes; then
990 else
991 cat > conftest.$ac_ext <<EOF
992 #line 993 "configure"
993 #include "confdefs.h"
994 #include <ctype.h>
995 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
996 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
997 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
998 int main () { int i; for (i = 0; i < 256; i++)
999 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1000 exit (0); }
1003 if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1004 then
1006 else
1007 echo "configure: failed program was:" >&5
1008 cat conftest.$ac_ext >&5
1009 rm -fr conftest*
1010 ac_cv_header_stdc=no
1012 rm -fr conftest*
1018 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1019 if test $ac_cv_header_stdc = yes; then
1020 cat >> confdefs.h <<\EOF
1021 #define STDC_HEADERS 1
1026 echo $ac_n "checking for working const""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working const" >&5
1028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031 cat > conftest.$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1035 int main() {
1037 /* Ultrix mips cc rejects this. */
1038 typedef int charset[2]; const charset x;
1039 /* SunOS 4.1.1 cc rejects this. */
1040 char const *const *ccp;
1041 char **p;
1042 /* NEC SVR4.0.2 mips cc rejects this. */
1043 struct point {int x, y;};
1044 static struct point const zero = {0,0};
1045 /* AIX XL C 1.02.0.0 rejects this.
1046 It does not let you subtract one const X* pointer from another in an arm
1047 of an if-expression whose if-part is not a constant expression */
1048 const char *g = "string";
1049 ccp = &g + (g ? g-g : 0);
1050 /* HPUX 7.0 cc rejects these. */
1051 ++ccp;
1052 p = (char**) ccp;
1053 ccp = (char const *const *) p;
1054 { /* SCO 3.2v4 cc rejects this. */
1055 char *t;
1056 char const *s = 0 ? (char *) 0 : (char const *) 0;
1058 *t++ = 0;
1060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1061 int x[] = {25, 17};
1062 const int *foo = &x[0];
1063 ++foo;
1065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1066 typedef const int *iptr;
1067 iptr p = 0;
1068 ++p;
1070 { /* AIX XL C 1.02.0.0 rejects this saying
1071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1072 struct s { int j; const int *ap[3]; };
1073 struct s *b; b->j = 5;
1075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1076 const int foo = 10;
1079 ; return 0; }
1081 if { (eval echo configure:1082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1082 rm -rf conftest*
1083 ac_cv_c_const=yes
1084 else
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1087 rm -rf conftest*
1088 ac_cv_c_const=no
1090 rm -f conftest*
1093 echo "$ac_t""$ac_cv_c_const" 1>&6
1094 if test $ac_cv_c_const = no; then
1095 cat >> confdefs.h <<\EOF
1096 #define const
1101 echo $ac_n "checking for inline""... $ac_c" 1>&6
1102 echo "configure:1103: checking for inline" >&5
1103 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106 ac_cv_c_inline=no
1107 for ac_kw in inline __inline__ __inline; do
1108 cat > conftest.$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1112 int main() {
1113 } $ac_kw foo() {
1114 ; return 0; }
1116 if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1117 rm -rf conftest*
1118 ac_cv_c_inline=$ac_kw; break
1119 else
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1123 rm -f conftest*
1124 done
1128 echo "$ac_t""$ac_cv_c_inline" 1>&6
1129 case "$ac_cv_c_inline" in
1130 inline | yes) ;;
1131 no) cat >> confdefs.h <<\EOF
1132 #define inline
1135 *) cat >> confdefs.h <<EOF
1136 #define inline $ac_cv_c_inline
1139 esac
1141 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1142 echo "configure:1143: checking for off_t" >&5
1143 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1145 else
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 #include <sys/types.h>
1150 #if STDC_HEADERS
1151 #include <stdlib.h>
1152 #include <stddef.h>
1153 #endif
1155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1156 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1157 rm -rf conftest*
1158 ac_cv_type_off_t=yes
1159 else
1160 rm -rf conftest*
1161 ac_cv_type_off_t=no
1163 rm -f conftest*
1166 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1167 if test $ac_cv_type_off_t = no; then
1168 cat >> confdefs.h <<\EOF
1169 #define off_t long
1174 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1175 echo "configure:1176: checking for size_t" >&5
1176 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1182 #include <sys/types.h>
1183 #if STDC_HEADERS
1184 #include <stdlib.h>
1185 #include <stddef.h>
1186 #endif
1188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1189 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1190 rm -rf conftest*
1191 ac_cv_type_size_t=yes
1192 else
1193 rm -rf conftest*
1194 ac_cv_type_size_t=no
1196 rm -f conftest*
1199 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1200 if test $ac_cv_type_size_t = no; then
1201 cat >> confdefs.h <<\EOF
1202 #define size_t unsigned
1207 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1208 # for constant arguments. Useless!
1209 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1210 echo "configure:1211: checking for working alloca.h" >&5
1211 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1217 #include <alloca.h>
1218 int main() {
1219 char *p = alloca(2 * sizeof(int));
1220 ; return 0; }
1222 if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1223 rm -rf conftest*
1224 ac_cv_header_alloca_h=yes
1225 else
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1228 rm -rf conftest*
1229 ac_cv_header_alloca_h=no
1231 rm -f conftest*
1234 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1235 if test $ac_cv_header_alloca_h = yes; then
1236 cat >> confdefs.h <<\EOF
1237 #define HAVE_ALLOCA_H 1
1242 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1243 echo "configure:1244: checking for alloca" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1251 #ifdef __GNUC__
1252 # define alloca __builtin_alloca
1253 #else
1254 # if HAVE_ALLOCA_H
1255 # include <alloca.h>
1256 # else
1257 # ifdef _AIX
1258 #pragma alloca
1259 # else
1260 # ifndef alloca /* predefined by HP cc +Olibcalls */
1261 char *alloca ();
1262 # endif
1263 # endif
1264 # endif
1265 #endif
1267 int main() {
1268 char *p = (char *) alloca(1);
1269 ; return 0; }
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1272 rm -rf conftest*
1273 ac_cv_func_alloca_works=yes
1274 else
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1277 rm -rf conftest*
1278 ac_cv_func_alloca_works=no
1280 rm -f conftest*
1283 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1284 if test $ac_cv_func_alloca_works = yes; then
1285 cat >> confdefs.h <<\EOF
1286 #define HAVE_ALLOCA 1
1291 if test $ac_cv_func_alloca_works = no; then
1292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1293 # that cause trouble. Some versions do not even contain alloca or
1294 # contain a buggy version. If you still want to use their alloca,
1295 # use ar to extract alloca.o from them instead of compiling alloca.c.
1296 ALLOCA=alloca.o
1297 cat >> confdefs.h <<\EOF
1298 #define C_ALLOCA 1
1302 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether alloca needs Cray hooks" >&5
1304 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 #if defined(CRAY) && ! defined(CRAY2)
1311 webecray
1312 #else
1313 wenotbecray
1314 #endif
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "webecray" >/dev/null 2>&1; then
1319 rm -rf conftest*
1320 ac_cv_os_cray=yes
1321 else
1322 rm -rf conftest*
1323 ac_cv_os_cray=no
1325 rm -f conftest*
1329 echo "$ac_t""$ac_cv_os_cray" 1>&6
1330 if test $ac_cv_os_cray = yes; then
1331 for ac_func in _getb67 GETB67 getb67; do
1332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_func" >&5
1334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337 cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1340 /* System header to define __stub macros and hopefully few prototypes,
1341 which can conflict with char $ac_func(); below. */
1342 #include <assert.h>
1343 /* Override any gcc2 internal prototype to avoid an error. */
1344 /* We use char because int might match the return type of a gcc2
1345 builtin and then its argument prototype would still apply. */
1346 char $ac_func();
1348 int main() {
1350 /* The GNU C library defines this for functions which it implements
1351 to always fail with ENOSYS. Some functions are actually named
1352 something starting with __ and the normal name is an alias. */
1353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1354 choke me
1355 #else
1356 $ac_func();
1357 #endif
1359 ; return 0; }
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1362 rm -rf conftest*
1363 eval "ac_cv_func_$ac_func=yes"
1364 else
1365 echo "configure: failed program was:" >&5
1366 cat conftest.$ac_ext >&5
1367 rm -rf conftest*
1368 eval "ac_cv_func_$ac_func=no"
1370 rm -f conftest*
1373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1374 echo "$ac_t""yes" 1>&6
1375 cat >> confdefs.h <<EOF
1376 #define CRAY_STACKSEG_END $ac_func
1379 break
1380 else
1381 echo "$ac_t""no" 1>&6
1384 done
1387 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1388 echo "configure:1389: checking stack direction for C alloca" >&5
1389 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1391 else
1392 if test "$cross_compiling" = yes; then
1393 ac_cv_c_stack_direction=0
1394 else
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398 find_stack_direction ()
1400 static char *addr = 0;
1401 auto char dummy;
1402 if (addr == 0)
1404 addr = &dummy;
1405 return find_stack_direction ();
1407 else
1408 return (&dummy > addr) ? 1 : -1;
1410 main ()
1412 exit (find_stack_direction() < 0);
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1416 then
1417 ac_cv_c_stack_direction=1
1418 else
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 rm -fr conftest*
1422 ac_cv_c_stack_direction=-1
1424 rm -fr conftest*
1429 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1430 cat >> confdefs.h <<EOF
1431 #define STACK_DIRECTION $ac_cv_c_stack_direction
1436 for ac_hdr in unistd.h
1438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_hdr" >&5
1441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1443 else
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1447 #include <$ac_hdr>
1449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1450 { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1451 ac_err=`grep -v '^ *+' conftest.out`
1452 if test -z "$ac_err"; then
1453 rm -rf conftest*
1454 eval "ac_cv_header_$ac_safe=yes"
1455 else
1456 echo "$ac_err" >&5
1457 echo "configure: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1459 rm -rf conftest*
1460 eval "ac_cv_header_$ac_safe=no"
1462 rm -f conftest*
1464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1465 echo "$ac_t""yes" 1>&6
1466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1467 cat >> confdefs.h <<EOF
1468 #define $ac_tr_hdr 1
1471 else
1472 echo "$ac_t""no" 1>&6
1474 done
1476 for ac_func in getpagesize
1478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_func" >&5
1480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* System header to define __stub macros and hopefully few prototypes,
1487 which can conflict with char $ac_func(); below. */
1488 #include <assert.h>
1489 /* Override any gcc2 internal prototype to avoid an error. */
1490 /* We use char because int might match the return type of a gcc2
1491 builtin and then its argument prototype would still apply. */
1492 char $ac_func();
1494 int main() {
1496 /* The GNU C library defines this for functions which it implements
1497 to always fail with ENOSYS. Some functions are actually named
1498 something starting with __ and the normal name is an alias. */
1499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1500 choke me
1501 #else
1502 $ac_func();
1503 #endif
1505 ; return 0; }
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1508 rm -rf conftest*
1509 eval "ac_cv_func_$ac_func=yes"
1510 else
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1513 rm -rf conftest*
1514 eval "ac_cv_func_$ac_func=no"
1516 rm -f conftest*
1519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1520 echo "$ac_t""yes" 1>&6
1521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1522 cat >> confdefs.h <<EOF
1523 #define $ac_tr_func 1
1526 else
1527 echo "$ac_t""no" 1>&6
1529 done
1531 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1532 echo "configure:1533: checking for working mmap" >&5
1533 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1535 else
1536 if test "$cross_compiling" = yes; then
1537 ac_cv_func_mmap_fixed_mapped=no
1538 else
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1543 /* Thanks to Mike Haertel and Jim Avera for this test.
1544 Here is a matrix of mmap possibilities:
1545 mmap private not fixed
1546 mmap private fixed at somewhere currently unmapped
1547 mmap private fixed at somewhere already mapped
1548 mmap shared not fixed
1549 mmap shared fixed at somewhere currently unmapped
1550 mmap shared fixed at somewhere already mapped
1551 For private mappings, we should verify that changes cannot be read()
1552 back from the file, nor mmap's back from the file at a different
1553 address. (There have been systems where private was not correctly
1554 implemented like the infamous i386 svr4.0, and systems where the
1555 VM page cache was not coherent with the filesystem buffer cache
1556 like early versions of FreeBSD and possibly contemporary NetBSD.)
1557 For shared mappings, we should conversely verify that changes get
1558 propogated back to all the places they're supposed to be.
1560 Grep wants private fixed already mapped.
1561 The main things grep needs to know about mmap are:
1562 * does it exist and is it safe to write into the mmap'd area
1563 * how to use it (BSD variants) */
1564 #include <sys/types.h>
1565 #include <fcntl.h>
1566 #include <sys/mman.h>
1568 /* This mess was copied from the GNU getpagesize.h. */
1569 #ifndef HAVE_GETPAGESIZE
1570 # ifdef HAVE_UNISTD_H
1571 # include <unistd.h>
1572 # endif
1574 /* Assume that all systems that can run configure have sys/param.h. */
1575 # ifndef HAVE_SYS_PARAM_H
1576 # define HAVE_SYS_PARAM_H 1
1577 # endif
1579 # ifdef _SC_PAGESIZE
1580 # define getpagesize() sysconf(_SC_PAGESIZE)
1581 # else /* no _SC_PAGESIZE */
1582 # ifdef HAVE_SYS_PARAM_H
1583 # include <sys/param.h>
1584 # ifdef EXEC_PAGESIZE
1585 # define getpagesize() EXEC_PAGESIZE
1586 # else /* no EXEC_PAGESIZE */
1587 # ifdef NBPG
1588 # define getpagesize() NBPG * CLSIZE
1589 # ifndef CLSIZE
1590 # define CLSIZE 1
1591 # endif /* no CLSIZE */
1592 # else /* no NBPG */
1593 # ifdef NBPC
1594 # define getpagesize() NBPC
1595 # else /* no NBPC */
1596 # ifdef PAGESIZE
1597 # define getpagesize() PAGESIZE
1598 # endif /* PAGESIZE */
1599 # endif /* no NBPC */
1600 # endif /* no NBPG */
1601 # endif /* no EXEC_PAGESIZE */
1602 # else /* no HAVE_SYS_PARAM_H */
1603 # define getpagesize() 8192 /* punt totally */
1604 # endif /* no HAVE_SYS_PARAM_H */
1605 # endif /* no _SC_PAGESIZE */
1607 #endif /* no HAVE_GETPAGESIZE */
1609 #ifdef __cplusplus
1610 extern "C" { void *malloc(unsigned); }
1611 #else
1612 char *malloc();
1613 #endif
1616 main()
1618 char *data, *data2, *data3;
1619 int i, pagesize;
1620 int fd;
1622 pagesize = getpagesize();
1625 * First, make a file with some known garbage in it.
1627 data = malloc(pagesize);
1628 if (!data)
1629 exit(1);
1630 for (i = 0; i < pagesize; ++i)
1631 *(data + i) = rand();
1632 umask(0);
1633 fd = creat("conftestmmap", 0600);
1634 if (fd < 0)
1635 exit(1);
1636 if (write(fd, data, pagesize) != pagesize)
1637 exit(1);
1638 close(fd);
1641 * Next, try to mmap the file at a fixed address which
1642 * already has something else allocated at it. If we can,
1643 * also make sure that we see the same garbage.
1645 fd = open("conftestmmap", O_RDWR);
1646 if (fd < 0)
1647 exit(1);
1648 data2 = malloc(2 * pagesize);
1649 if (!data2)
1650 exit(1);
1651 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1652 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1653 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1654 exit(1);
1655 for (i = 0; i < pagesize; ++i)
1656 if (*(data + i) != *(data2 + i))
1657 exit(1);
1660 * Finally, make sure that changes to the mapped area
1661 * do not percolate back to the file as seen by read().
1662 * (This is a bug on some variants of i386 svr4.0.)
1664 for (i = 0; i < pagesize; ++i)
1665 *(data2 + i) = *(data2 + i) + 1;
1666 data3 = malloc(pagesize);
1667 if (!data3)
1668 exit(1);
1669 if (read(fd, data3, pagesize) != pagesize)
1670 exit(1);
1671 for (i = 0; i < pagesize; ++i)
1672 if (*(data + i) != *(data3 + i))
1673 exit(1);
1674 close(fd);
1675 unlink("conftestmmap");
1676 exit(0);
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1681 then
1682 ac_cv_func_mmap_fixed_mapped=yes
1683 else
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1686 rm -fr conftest*
1687 ac_cv_func_mmap_fixed_mapped=no
1689 rm -fr conftest*
1694 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1696 cat >> confdefs.h <<\EOF
1697 #define HAVE_MMAP 1
1703 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1704 unistd.h values.h sys/param.h
1706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_hdr" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 #include <$ac_hdr>
1717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1718 { (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1719 ac_err=`grep -v '^ *+' conftest.out`
1720 if test -z "$ac_err"; then
1721 rm -rf conftest*
1722 eval "ac_cv_header_$ac_safe=yes"
1723 else
1724 echo "$ac_err" >&5
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 rm -rf conftest*
1728 eval "ac_cv_header_$ac_safe=no"
1730 rm -f conftest*
1732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1735 cat >> confdefs.h <<EOF
1736 #define $ac_tr_hdr 1
1739 else
1740 echo "$ac_t""no" 1>&6
1742 done
1744 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1745 __argz_count __argz_stringify __argz_next
1747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_func" >&5
1749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $ac_func(); below. */
1757 #include <assert.h>
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1761 char $ac_func();
1763 int main() {
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1769 choke me
1770 #else
1771 $ac_func();
1772 #endif
1774 ; return 0; }
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1777 rm -rf conftest*
1778 eval "ac_cv_func_$ac_func=yes"
1779 else
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1782 rm -rf conftest*
1783 eval "ac_cv_func_$ac_func=no"
1785 rm -f conftest*
1788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1791 cat >> confdefs.h <<EOF
1792 #define $ac_tr_func 1
1795 else
1796 echo "$ac_t""no" 1>&6
1798 done
1801 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1802 for ac_func in stpcpy
1804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1805 echo "configure:1806: checking for $ac_func" >&5
1806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $ac_func(); below. */
1814 #include <assert.h>
1815 /* Override any gcc2 internal prototype to avoid an error. */
1816 /* We use char because int might match the return type of a gcc2
1817 builtin and then its argument prototype would still apply. */
1818 char $ac_func();
1820 int main() {
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1826 choke me
1827 #else
1828 $ac_func();
1829 #endif
1831 ; return 0; }
1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1834 rm -rf conftest*
1835 eval "ac_cv_func_$ac_func=yes"
1836 else
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1839 rm -rf conftest*
1840 eval "ac_cv_func_$ac_func=no"
1842 rm -f conftest*
1845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1848 cat >> confdefs.h <<EOF
1849 #define $ac_tr_func 1
1852 else
1853 echo "$ac_t""no" 1>&6
1855 done
1858 if test "${ac_cv_func_stpcpy}" = "yes"; then
1859 cat >> confdefs.h <<\EOF
1860 #define HAVE_STPCPY 1
1865 if test $ac_cv_header_locale_h = yes; then
1866 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1867 echo "configure:1868: checking for LC_MESSAGES" >&5
1868 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1870 else
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 #include <locale.h>
1875 int main() {
1876 return LC_MESSAGES
1877 ; return 0; }
1879 if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1880 rm -rf conftest*
1881 am_cv_val_LC_MESSAGES=yes
1882 else
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 rm -rf conftest*
1886 am_cv_val_LC_MESSAGES=no
1888 rm -f conftest*
1891 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
1892 if test $am_cv_val_LC_MESSAGES = yes; then
1893 cat >> confdefs.h <<\EOF
1894 #define HAVE_LC_MESSAGES 1
1899 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
1900 echo "configure:1901: checking whether NLS is requested" >&5
1901 # Check whether --enable-nls or --disable-nls was given.
1902 if test "${enable_nls+set}" = set; then
1903 enableval="$enable_nls"
1904 USE_NLS=$enableval
1905 else
1906 USE_NLS=yes
1909 echo "$ac_t""$USE_NLS" 1>&6
1912 USE_INCLUDED_LIBINTL=no
1914 if test "$USE_NLS" = "yes"; then
1915 cat >> confdefs.h <<\EOF
1916 #define ENABLE_NLS 1
1919 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether included gettext is requested" >&5
1921 # Check whether --with-included-gettext or --without-included-gettext was given.
1922 if test "${with_included_gettext+set}" = set; then
1923 withval="$with_included_gettext"
1924 nls_cv_force_use_gnu_gettext=$withval
1925 else
1926 nls_cv_force_use_gnu_gettext=no
1929 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
1931 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
1932 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
1933 nls_cv_header_intl=
1934 nls_cv_header_libgt=
1935 CATOBJEXT=NONE
1937 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
1938 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
1939 echo "configure:1940: checking for libintl.h" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <libintl.h>
1948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err=`grep -v '^ *+' conftest.out`
1951 if test -z "$ac_err"; then
1952 rm -rf conftest*
1953 eval "ac_cv_header_$ac_safe=yes"
1954 else
1955 echo "$ac_err" >&5
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1958 rm -rf conftest*
1959 eval "ac_cv_header_$ac_safe=no"
1961 rm -f conftest*
1963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
1966 echo "configure:1967: checking for gettext in libc" >&5
1967 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 #include <libintl.h>
1974 int main() {
1975 return (int) gettext ("")
1976 ; return 0; }
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1979 rm -rf conftest*
1980 gt_cv_func_gettext_libc=yes
1981 else
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1984 rm -rf conftest*
1985 gt_cv_func_gettext_libc=no
1987 rm -f conftest*
1990 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
1992 if test "$gt_cv_func_gettext_libc" != "yes"; then
1993 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
1994 echo "configure:1995: checking for bindtextdomain in -lintl" >&5
1995 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
1996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998 else
1999 ac_save_LIBS="$LIBS"
2000 LIBS="-lintl $LIBS"
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 /* Override any gcc2 internal prototype to avoid an error. */
2005 /* We use char because int might match the return type of a gcc2
2006 builtin and then its argument prototype would still apply. */
2007 char bindtextdomain();
2009 int main() {
2010 bindtextdomain()
2011 ; return 0; }
2013 if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2014 rm -rf conftest*
2015 eval "ac_cv_lib_$ac_lib_var=yes"
2016 else
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
2020 eval "ac_cv_lib_$ac_lib_var=no"
2022 rm -f conftest*
2023 LIBS="$ac_save_LIBS"
2026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2029 echo "configure:2030: checking for gettext in libintl" >&5
2030 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2032 else
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2037 int main() {
2038 return (int) gettext ("")
2039 ; return 0; }
2041 if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2042 rm -rf conftest*
2043 gt_cv_func_gettext_libintl=yes
2044 else
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2047 rm -rf conftest*
2048 gt_cv_func_gettext_libintl=no
2050 rm -f conftest*
2053 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2054 else
2055 echo "$ac_t""no" 1>&6
2060 if test "$gt_cv_func_gettext_libc" = "yes" \
2061 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2062 cat >> confdefs.h <<\EOF
2063 #define HAVE_GETTEXT 1
2066 # Extract the first word of "msgfmt", so it can be a program name with args.
2067 set dummy msgfmt; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 case "$MSGFMT" in
2075 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2079 for ac_dir in $PATH; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f $ac_dir/$ac_word; then
2082 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2083 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2084 break
2087 done
2088 IFS="$ac_save_ifs"
2089 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2091 esac
2093 MSGFMT="$ac_cv_path_MSGFMT"
2094 if test -n "$MSGFMT"; then
2095 echo "$ac_t""$MSGFMT" 1>&6
2096 else
2097 echo "$ac_t""no" 1>&6
2099 if test "$MSGFMT" != "no"; then
2100 for ac_func in dcgettext
2102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_func" >&5
2104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* System header to define __stub macros and hopefully few prototypes,
2111 which can conflict with char $ac_func(); below. */
2112 #include <assert.h>
2113 /* Override any gcc2 internal prototype to avoid an error. */
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2116 char $ac_func();
2118 int main() {
2120 /* The GNU C library defines this for functions which it implements
2121 to always fail with ENOSYS. Some functions are actually named
2122 something starting with __ and the normal name is an alias. */
2123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2124 choke me
2125 #else
2126 $ac_func();
2127 #endif
2129 ; return 0; }
2131 if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2132 rm -rf conftest*
2133 eval "ac_cv_func_$ac_func=yes"
2134 else
2135 echo "configure: failed program was:" >&5
2136 cat conftest.$ac_ext >&5
2137 rm -rf conftest*
2138 eval "ac_cv_func_$ac_func=no"
2140 rm -f conftest*
2143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2146 cat >> confdefs.h <<EOF
2147 #define $ac_tr_func 1
2150 else
2151 echo "$ac_t""no" 1>&6
2153 done
2155 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2156 set dummy gmsgfmt; ac_word=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2159 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2161 else
2162 case "$GMSGFMT" in
2164 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2166 ?:/*)
2167 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2171 for ac_dir in $PATH; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2175 break
2177 done
2178 IFS="$ac_save_ifs"
2179 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2181 esac
2183 GMSGFMT="$ac_cv_path_GMSGFMT"
2184 if test -n "$GMSGFMT"; then
2185 echo "$ac_t""$GMSGFMT" 1>&6
2186 else
2187 echo "$ac_t""no" 1>&6
2190 # Extract the first word of "xgettext", so it can be a program name with args.
2191 set dummy xgettext; ac_word=$2
2192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_word" >&5
2194 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 case "$XGETTEXT" in
2199 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2203 for ac_dir in $PATH; do
2204 test -z "$ac_dir" && ac_dir=.
2205 if test -f $ac_dir/$ac_word; then
2206 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2207 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2208 break
2211 done
2212 IFS="$ac_save_ifs"
2213 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2215 esac
2217 XGETTEXT="$ac_cv_path_XGETTEXT"
2218 if test -n "$XGETTEXT"; then
2219 echo "$ac_t""$XGETTEXT" 1>&6
2220 else
2221 echo "$ac_t""no" 1>&6
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2228 int main() {
2229 extern int _nl_msg_cat_cntr;
2230 return _nl_msg_cat_cntr
2231 ; return 0; }
2233 if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2234 rm -rf conftest*
2235 CATOBJEXT=.gmo
2236 DATADIRNAME=share
2237 else
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 rm -rf conftest*
2241 CATOBJEXT=.mo
2242 DATADIRNAME=lib
2244 rm -f conftest*
2245 INSTOBJEXT=.mo
2249 else
2250 echo "$ac_t""no" 1>&6
2255 if test "$CATOBJEXT" = "NONE"; then
2256 nls_cv_use_gnu_gettext=yes
2260 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2261 INTLOBJS="\$(GETTOBJS)"
2262 # Extract the first word of "msgfmt", so it can be a program name with args.
2263 set dummy msgfmt; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2268 else
2269 case "$MSGFMT" in
2271 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2275 for ac_dir in $PATH; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/$ac_word; then
2278 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2279 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2280 break
2283 done
2284 IFS="$ac_save_ifs"
2285 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2287 esac
2289 MSGFMT="$ac_cv_path_MSGFMT"
2290 if test -n "$MSGFMT"; then
2291 echo "$ac_t""$MSGFMT" 1>&6
2292 else
2293 echo "$ac_t""no" 1>&6
2296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2297 set dummy gmsgfmt; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 case "$GMSGFMT" in
2305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2307 ?:/*)
2308 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2312 for ac_dir in $PATH; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2316 break
2318 done
2319 IFS="$ac_save_ifs"
2320 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2322 esac
2324 GMSGFMT="$ac_cv_path_GMSGFMT"
2325 if test -n "$GMSGFMT"; then
2326 echo "$ac_t""$GMSGFMT" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2331 # Extract the first word of "xgettext", so it can be a program name with args.
2332 set dummy xgettext; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338 case "$XGETTEXT" in
2340 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2344 for ac_dir in $PATH; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2348 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2349 break
2352 done
2353 IFS="$ac_save_ifs"
2354 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2356 esac
2358 XGETTEXT="$ac_cv_path_XGETTEXT"
2359 if test -n "$XGETTEXT"; then
2360 echo "$ac_t""$XGETTEXT" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2366 USE_INCLUDED_LIBINTL=yes
2367 CATOBJEXT=.gmo
2368 INSTOBJEXT=.mo
2369 DATADIRNAME=share
2370 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2371 INTLLIBS=$INTLDEPS
2372 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2373 nls_cv_header_intl=libintl.h
2374 nls_cv_header_libgt=libgettext.h
2377 if test "$XGETTEXT" != ":"; then
2378 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2380 else
2381 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2382 XGETTEXT=":"
2386 # We need to process the po/ directory.
2387 POSUB=po
2388 else
2389 DATADIRNAME=share
2390 nls_cv_header_intl=libintl.h
2391 nls_cv_header_libgt=libgettext.h
2394 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2395 # because some of the sources are only built for this goal.
2396 if test "$PACKAGE" = gettext; then
2397 USE_NLS=yes
2398 USE_INCLUDED_LIBINTL=yes
2401 for lang in $ALL_LINGUAS; do
2402 GMOFILES="$GMOFILES $lang.gmo"
2403 POFILES="$POFILES $lang.po"
2404 done
2419 if test "x$CATOBJEXT" != "x"; then
2420 if test "x$ALL_LINGUAS" = "x"; then
2421 LINGUAS=
2422 else
2423 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2424 echo "configure:2425: checking for catalogs to be installed" >&5
2425 NEW_LINGUAS=
2426 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2427 case "$ALL_LINGUAS" in
2428 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2429 esac
2430 done
2431 LINGUAS=$NEW_LINGUAS
2432 echo "$ac_t""$LINGUAS" 1>&6
2435 if test -n "$LINGUAS"; then
2436 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2440 if test $ac_cv_header_locale_h = yes; then
2441 INCLUDE_LOCALE_H="#include <locale.h>"
2442 else
2443 INCLUDE_LOCALE_H="\
2444 /* The system does not provide the header <locale.h>. Take care yourself. */"
2448 if test -f $srcdir/po2tbl.sed.in; then
2449 if test "$CATOBJEXT" = ".cat"; then
2450 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2451 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2452 echo "configure:2453: checking for linux/version.h" >&5
2453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2455 else
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <linux/version.h>
2461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err=`grep -v '^ *+' conftest.out`
2464 if test -z "$ac_err"; then
2465 rm -rf conftest*
2466 eval "ac_cv_header_$ac_safe=yes"
2467 else
2468 echo "$ac_err" >&5
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2471 rm -rf conftest*
2472 eval "ac_cv_header_$ac_safe=no"
2474 rm -f conftest*
2476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2478 msgformat=linux
2479 else
2480 echo "$ac_t""no" 1>&6
2481 msgformat=xopen
2485 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2487 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2488 $srcdir/po2tbl.sed.in > po2tbl.sed
2491 if test "$PACKAGE" = "gettext"; then
2492 GT_NO="#NO#"
2493 GT_YES=
2494 else
2495 GT_NO=
2496 GT_YES="#YES#"
2501 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2507 if test -d $srcdir/po; then
2508 test -d po || mkdir po
2509 if test "x$srcdir" != "x."; then
2510 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2511 posrcprefix="$srcdir/"
2512 else
2513 posrcprefix="../$srcdir/"
2515 else
2516 posrcprefix="../"
2518 rm -f po/POTFILES
2519 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2520 < $srcdir/po/POTFILES.in > po/POTFILES
2525 trap '' 1 2 15
2526 cat > confcache <<\EOF
2527 # This file is a shell script that caches the results of configure
2528 # tests run on this system so they can be shared between configure
2529 # scripts and configure runs. It is not useful on other systems.
2530 # If it contains results you don't want to keep, you may remove or edit it.
2532 # By default, configure uses ./config.cache as the cache file,
2533 # creating it if it does not exist already. You can give configure
2534 # the --cache-file=FILE option to use a different cache file; that is
2535 # what configure does when it calls configure scripts in
2536 # subdirectories, so they share the cache.
2537 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2538 # config.status only pays attention to the cache file if you give it the
2539 # --recheck option to rerun configure.
2542 # The following way of writing the cache mishandles newlines in values,
2543 # but we know of no workaround that is simple, portable, and efficient.
2544 # So, don't put newlines in cache variables' values.
2545 # Ultrix sh set writes to stderr and can't be redirected directly,
2546 # and sets the high bit in the cache file unless we assign to the vars.
2547 (set) 2>&1 |
2548 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2549 *ac_space=\ *)
2550 # `set' does not quote correctly, so add quotes (double-quote substitution
2551 # turns \\\\ into \\, and sed turns \\ into \).
2552 sed -n \
2553 -e "s/'/'\\\\''/g" \
2554 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2557 # `set' quotes correctly as required by POSIX, so do not add quotes.
2558 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2560 esac >> confcache
2561 if cmp -s $cache_file confcache; then
2563 else
2564 if test -w $cache_file; then
2565 echo "updating cache $cache_file"
2566 cat confcache > $cache_file
2567 else
2568 echo "not updating unwritable cache $cache_file"
2571 rm -f confcache
2573 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2576 # Let make expand exec_prefix.
2577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2579 # Any assignment to VPATH causes Sun make to only execute
2580 # the first set of double-colon rules, so remove it if not needed.
2581 # If there is a colon in the path, we need to keep it.
2582 if test "x$srcdir" = x.; then
2583 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2586 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2588 DEFS=-DHAVE_CONFIG_H
2590 # Without the "./", some shells look in PATH for config.status.
2591 : ${CONFIG_STATUS=./config.status}
2593 echo creating $CONFIG_STATUS
2594 rm -f $CONFIG_STATUS
2595 cat > $CONFIG_STATUS <<EOF
2596 #! /bin/sh
2597 # Generated automatically by configure.
2598 # Run this file to recreate the current configuration.
2599 # This directory was configured as follows,
2600 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2602 # $0 $ac_configure_args
2604 # Compiler output produced by configure, useful for debugging
2605 # configure, is in ./config.log if it exists.
2607 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2608 for ac_option
2610 case "\$ac_option" in
2611 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2612 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2613 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2614 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2615 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2616 exit 0 ;;
2617 -help | --help | --hel | --he | --h)
2618 echo "\$ac_cs_usage"; exit 0 ;;
2619 *) echo "\$ac_cs_usage"; exit 1 ;;
2620 esac
2621 done
2623 ac_given_srcdir=$srcdir
2624 ac_given_INSTALL="$INSTALL"
2626 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2628 cat >> $CONFIG_STATUS <<EOF
2630 # Protect against being on the right side of a sed subst in config.status.
2631 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2632 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2633 $ac_vpsub
2634 $extrasub
2635 s%@SHELL@%$SHELL%g
2636 s%@CFLAGS@%$CFLAGS%g
2637 s%@CPPFLAGS@%$CPPFLAGS%g
2638 s%@CXXFLAGS@%$CXXFLAGS%g
2639 s%@DEFS@%$DEFS%g
2640 s%@LDFLAGS@%$LDFLAGS%g
2641 s%@LIBS@%$LIBS%g
2642 s%@exec_prefix@%$exec_prefix%g
2643 s%@prefix@%$prefix%g
2644 s%@program_transform_name@%$program_transform_name%g
2645 s%@bindir@%$bindir%g
2646 s%@sbindir@%$sbindir%g
2647 s%@libexecdir@%$libexecdir%g
2648 s%@datadir@%$datadir%g
2649 s%@sysconfdir@%$sysconfdir%g
2650 s%@sharedstatedir@%$sharedstatedir%g
2651 s%@localstatedir@%$localstatedir%g
2652 s%@libdir@%$libdir%g
2653 s%@includedir@%$includedir%g
2654 s%@oldincludedir@%$oldincludedir%g
2655 s%@infodir@%$infodir%g
2656 s%@mandir@%$mandir%g
2657 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2658 s%@INSTALL_DATA@%$INSTALL_DATA%g
2659 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2660 s%@SET_MAKE@%$SET_MAKE%g
2661 s%@CC@%$CC%g
2662 s%@RANLIB@%$RANLIB%g
2663 s%@CPP@%$CPP%g
2664 s%@ALLOCA@%$ALLOCA%g
2665 s%@USE_NLS@%$USE_NLS%g
2666 s%@MSGFMT@%$MSGFMT%g
2667 s%@GMSGFMT@%$GMSGFMT%g
2668 s%@XGETTEXT@%$XGETTEXT%g
2669 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
2670 s%@CATALOGS@%$CATALOGS%g
2671 s%@CATOBJEXT@%$CATOBJEXT%g
2672 s%@DATADIRNAME@%$DATADIRNAME%g
2673 s%@GMOFILES@%$GMOFILES%g
2674 s%@INSTOBJEXT@%$INSTOBJEXT%g
2675 s%@INTLDEPS@%$INTLDEPS%g
2676 s%@INTLLIBS@%$INTLLIBS%g
2677 s%@INTLOBJS@%$INTLOBJS%g
2678 s%@POFILES@%$POFILES%g
2679 s%@POSUB@%$POSUB%g
2680 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
2681 s%@GT_NO@%$GT_NO%g
2682 s%@GT_YES@%$GT_YES%g
2683 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
2684 s%@l@%$l%g
2686 CEOF
2689 cat >> $CONFIG_STATUS <<\EOF
2691 # Split the substitutions into bite-sized pieces for seds with
2692 # small command number limits, like on Digital OSF/1 and HP-UX.
2693 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2694 ac_file=1 # Number of current file.
2695 ac_beg=1 # First line for current file.
2696 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2697 ac_more_lines=:
2698 ac_sed_cmds=""
2699 while $ac_more_lines; do
2700 if test $ac_beg -gt 1; then
2701 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2702 else
2703 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2705 if test ! -s conftest.s$ac_file; then
2706 ac_more_lines=false
2707 rm -f conftest.s$ac_file
2708 else
2709 if test -z "$ac_sed_cmds"; then
2710 ac_sed_cmds="sed -f conftest.s$ac_file"
2711 else
2712 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2714 ac_file=`expr $ac_file + 1`
2715 ac_beg=$ac_end
2716 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2718 done
2719 if test -z "$ac_sed_cmds"; then
2720 ac_sed_cmds=cat
2724 cat >> $CONFIG_STATUS <<EOF
2726 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2728 cat >> $CONFIG_STATUS <<\EOF
2729 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2731 case "$ac_file" in
2732 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2733 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2734 *) ac_file_in="${ac_file}.in" ;;
2735 esac
2737 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2739 # Remove last slash and all that follows it. Not all systems have dirname.
2740 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2741 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2742 # The file is in a subdirectory.
2743 test ! -d "$ac_dir" && mkdir "$ac_dir"
2744 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2745 # A "../" for each directory in $ac_dir_suffix.
2746 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2747 else
2748 ac_dir_suffix= ac_dots=
2751 case "$ac_given_srcdir" in
2752 .) srcdir=.
2753 if test -z "$ac_dots"; then top_srcdir=.
2754 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2755 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2756 *) # Relative path.
2757 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2758 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2759 esac
2761 case "$ac_given_INSTALL" in
2762 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2763 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2764 esac
2766 echo creating "$ac_file"
2767 rm -f "$ac_file"
2768 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2769 case "$ac_file" in
2770 *Makefile*) ac_comsub="1i\\
2771 # $configure_input" ;;
2772 *) ac_comsub= ;;
2773 esac
2775 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2776 sed -e "$ac_comsub
2777 s%@configure_input@%$configure_input%g
2778 s%@srcdir@%$srcdir%g
2779 s%@top_srcdir@%$top_srcdir%g
2780 s%@INSTALL@%$INSTALL%g
2781 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2782 fi; done
2783 rm -f conftest.s*
2785 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2786 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2788 # ac_d sets the value in "#define NAME VALUE" lines.
2789 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2790 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2791 ac_dC='\3'
2792 ac_dD='%g'
2793 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2794 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2795 ac_uB='\([ ]\)%\1#\2define\3'
2796 ac_uC=' '
2797 ac_uD='\4%g'
2798 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2799 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2800 ac_eB='$%\1#\2define\3'
2801 ac_eC=' '
2802 ac_eD='%g'
2804 if test "${CONFIG_HEADERS+set}" != set; then
2806 cat >> $CONFIG_STATUS <<EOF
2807 CONFIG_HEADERS="config.h:config.in"
2809 cat >> $CONFIG_STATUS <<\EOF
2811 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2813 case "$ac_file" in
2814 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2815 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2816 *) ac_file_in="${ac_file}.in" ;;
2817 esac
2819 echo creating $ac_file
2821 rm -f conftest.frag conftest.in conftest.out
2822 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2823 cat $ac_file_inputs > conftest.in
2827 # Transform confdefs.h into a sed script conftest.vals that substitutes
2828 # the proper values into config.h.in to produce config.h. And first:
2829 # Protect against being on the right side of a sed subst in config.status.
2830 # Protect against being in an unquoted here document in config.status.
2831 rm -f conftest.vals
2832 cat > conftest.hdr <<\EOF
2833 s/[\\&%]/\\&/g
2834 s%[\\$`]%\\&%g
2835 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2836 s%ac_d%ac_u%gp
2837 s%ac_u%ac_e%gp
2839 sed -n -f conftest.hdr confdefs.h > conftest.vals
2840 rm -f conftest.hdr
2842 # This sed command replaces #undef with comments. This is necessary, for
2843 # example, in the case of _POSIX_SOURCE, which is predefined and required
2844 # on some systems where configure will not decide to define it.
2845 cat >> conftest.vals <<\EOF
2846 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2849 # Break up conftest.vals because some shells have a limit on
2850 # the size of here documents, and old seds have small limits too.
2852 rm -f conftest.tail
2853 while :
2855 ac_lines=`grep -c . conftest.vals`
2856 # grep -c gives empty output for an empty file on some AIX systems.
2857 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2858 # Write a limited-size here document to conftest.frag.
2859 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2860 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2861 echo 'CEOF
2862 sed -f conftest.frag conftest.in > conftest.out
2863 rm -f conftest.in
2864 mv conftest.out conftest.in
2865 ' >> $CONFIG_STATUS
2866 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2867 rm -f conftest.vals
2868 mv conftest.tail conftest.vals
2869 done
2870 rm -f conftest.vals
2872 cat >> $CONFIG_STATUS <<\EOF
2873 rm -f conftest.frag conftest.h
2874 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2875 cat conftest.in >> conftest.h
2876 rm -f conftest.in
2877 if cmp -s $ac_file conftest.h 2>/dev/null; then
2878 echo "$ac_file is unchanged"
2879 rm -f conftest.h
2880 else
2881 # Remove last slash and all that follows it. Not all systems have dirname.
2882 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2883 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2884 # The file is in a subdirectory.
2885 test ! -d "$ac_dir" && mkdir "$ac_dir"
2887 rm -f $ac_file
2888 mv conftest.h $ac_file
2890 fi; done
2894 cat >> $CONFIG_STATUS <<EOF
2895 ac_sources="$nls_cv_header_libgt"
2896 ac_dests="$nls_cv_header_intl"
2899 cat >> $CONFIG_STATUS <<\EOF
2900 srcdir=$ac_given_srcdir
2901 while test -n "$ac_sources"; do
2902 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2903 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2905 echo "linking $srcdir/$ac_source to $ac_dest"
2907 if test ! -r $srcdir/$ac_source; then
2908 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2910 rm -f $ac_dest
2912 # Make relative symlinks.
2913 # Remove last slash and all that follows it. Not all systems have dirname.
2914 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2915 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2916 # The dest file is in a subdirectory.
2917 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2918 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2919 # A "../" for each directory in $ac_dest_dir_suffix.
2920 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2921 else
2922 ac_dest_dir_suffix= ac_dots=
2925 case "$srcdir" in
2926 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2927 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2928 esac
2930 # Make a symlink if possible; otherwise try a hard link.
2931 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2932 ln $srcdir/$ac_source $ac_dest; then :
2933 else
2934 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2936 done
2938 cat >> $CONFIG_STATUS <<EOF
2942 cat >> $CONFIG_STATUS <<\EOF
2943 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2945 exit 0
2947 chmod +x $CONFIG_STATUS
2948 rm -fr confdefs* $ac_clean_files
2949 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1