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-included-gettext use the GNU gettext library included here"
19
--with-catgets use catgets functions if available"
21
--enable-shared[=PKGS] build shared libraries [default=yes]"
23
--enable-static[=PKGS] build static libraries [default=yes]"
25
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27
# Initialize some variables set by options.
28
# The variables have the same names as the options, with
29
# dashes changed to underlines.
31
cache_file=./config.cache
40
program_transform_name=s,x,x,
48
bindir='${exec_prefix}/bin'
49
sbindir='${exec_prefix}/sbin'
50
libexecdir='${exec_prefix}/libexec'
51
datadir='${prefix}/share'
52
sysconfdir='${prefix}/etc'
53
sharedstatedir='${prefix}/com'
54
localstatedir='${prefix}/var'
55
libdir='${exec_prefix}/lib'
56
includedir='${prefix}/include'
57
oldincludedir='/usr/include'
58
infodir='${prefix}/info'
59
mandir='${prefix}/man'
61
# Initialize some other variables.
64
SHELL=${CONFIG_SHELL-/bin/sh}
65
# Maximum number of lines to put in a shell here document.
72
# If the previous option needs an argument, assign it.
73
if test -n "$ac_prev"; then
74
eval "$ac_prev=\$ac_option"
80
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84
# Accept the important Cygnus configure options, so we can diagnose typos.
88
-bindir | --bindir | --bindi | --bind | --bin | --bi)
90
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91
bindir="$ac_optarg" ;;
93
-build | --build | --buil | --bui | --bu)
95
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
98
-cache-file | --cache-file | --cache-fil | --cache-fi \
99
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100
ac_prev=cache_file ;;
101
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103
cache_file="$ac_optarg" ;;
105
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109
datadir="$ac_optarg" ;;
111
-disable-* | --disable-*)
112
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113
# Reject names that are not valid shell variable names.
114
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118
eval "enable_${ac_feature}=no" ;;
120
-enable-* | --enable-*)
121
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122
# Reject names that are not valid shell variable names.
123
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131
eval "enable_${ac_feature}='$ac_optarg'" ;;
133
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135
| --exec | --exe | --ex)
136
ac_prev=exec_prefix ;;
137
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139
| --exec=* | --exe=* | --ex=*)
140
exec_prefix="$ac_optarg" ;;
142
-gas | --gas | --ga | --g)
143
# Obsolete; use --with-gas.
146
-help | --help | --hel | --he)
147
# Omit some internal or obsolete options to make the list less imposing.
148
# This message is too long to be a string in the A/UX 3.1 sh.
150
Usage: configure [options] [host]
151
Options: [defaults in brackets after descriptions]
153
--cache-file=FILE cache test results in FILE
154
--help print this message
155
--no-create do not create output files
156
--quiet, --silent do not print \`checking...' messages
157
--version print the version of autoconf that created configure
158
Directory and file names:
159
--prefix=PREFIX install architecture-independent files in PREFIX
161
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163
--bindir=DIR user executables in DIR [EPREFIX/bin]
164
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166
--datadir=DIR read-only architecture-independent data in DIR
168
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169
--sharedstatedir=DIR modifiable architecture-independent data in DIR
171
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
173
--includedir=DIR C header files in DIR [PREFIX/include]
174
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175
--infodir=DIR info documentation in DIR [PREFIX/info]
176
--mandir=DIR man documentation in DIR [PREFIX/man]
177
--srcdir=DIR find the sources in DIR [configure dir or ..]
178
--program-prefix=PREFIX prepend PREFIX to installed program names
179
--program-suffix=SUFFIX append SUFFIX to installed program names
180
--program-transform-name=PROGRAM
181
run sed PROGRAM on installed program names
185
--build=BUILD configure for building on BUILD [BUILD=HOST]
186
--host=HOST configure for HOST [guessed]
187
--target=TARGET configure for TARGET [TARGET=HOST]
188
Features and packages:
189
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193
--x-includes=DIR X include files are in DIR
194
--x-libraries=DIR X library files are in DIR
196
if test -n "$ac_help"; then
197
echo "--enable and --with options recognized:$ac_help"
201
-host | --host | --hos | --ho)
203
-host=* | --host=* | --hos=* | --ho=*)
206
-includedir | --includedir | --includedi | --included | --include \
207
| --includ | --inclu | --incl | --inc)
208
ac_prev=includedir ;;
209
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210
| --includ=* | --inclu=* | --incl=* | --inc=*)
211
includedir="$ac_optarg" ;;
213
-infodir | --infodir | --infodi | --infod | --info | --inf)
215
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216
infodir="$ac_optarg" ;;
218
-libdir | --libdir | --libdi | --libd)
220
-libdir=* | --libdir=* | --libdi=* | --libd=*)
221
libdir="$ac_optarg" ;;
223
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224
| --libexe | --libex | --libe)
225
ac_prev=libexecdir ;;
226
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227
| --libexe=* | --libex=* | --libe=*)
228
libexecdir="$ac_optarg" ;;
230
-localstatedir | --localstatedir | --localstatedi | --localstated \
231
| --localstate | --localstat | --localsta | --localst \
232
| --locals | --local | --loca | --loc | --lo)
233
ac_prev=localstatedir ;;
234
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
236
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237
localstatedir="$ac_optarg" ;;
239
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242
mandir="$ac_optarg" ;;
245
# Obsolete; use --without-fp.
248
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
252
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
253
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258
| --oldin | --oldi | --old | --ol | --o)
259
ac_prev=oldincludedir ;;
260
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263
oldincludedir="$ac_optarg" ;;
265
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268
prefix="$ac_optarg" ;;
270
-program-prefix | --program-prefix | --program-prefi | --program-pref \
271
| --program-pre | --program-pr | --program-p)
272
ac_prev=program_prefix ;;
273
-program-prefix=* | --program-prefix=* | --program-prefi=* \
274
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275
program_prefix="$ac_optarg" ;;
277
-program-suffix | --program-suffix | --program-suffi | --program-suff \
278
| --program-suf | --program-su | --program-s)
279
ac_prev=program_suffix ;;
280
-program-suffix=* | --program-suffix=* | --program-suffi=* \
281
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282
program_suffix="$ac_optarg" ;;
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
ac_prev=program_transform_name ;;
292
-program-transform-name=* | --program-transform-name=* \
293
| --program-transform-nam=* | --program-transform-na=* \
294
| --program-transform-n=* | --program-transform-=* \
295
| --program-transform=* | --program-transfor=* \
296
| --program-transfo=* | --program-transf=* \
297
| --program-trans=* | --program-tran=* \
298
| --progr-tra=* | --program-tr=* | --program-t=*)
299
program_transform_name="$ac_optarg" ;;
301
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
302
| -silent | --silent | --silen | --sile | --sil)
305
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309
sbindir="$ac_optarg" ;;
311
-sharedstatedir | --sharedstatedir | --sharedstatedi \
312
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313
| --sharedst | --shareds | --shared | --share | --shar \
315
ac_prev=sharedstatedir ;;
316
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320
sharedstatedir="$ac_optarg" ;;
322
-site | --site | --sit)
324
-site=* | --site=* | --sit=*)
327
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330
srcdir="$ac_optarg" ;;
332
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333
| --syscon | --sysco | --sysc | --sys | --sy)
334
ac_prev=sysconfdir ;;
335
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337
sysconfdir="$ac_optarg" ;;
339
-target | --target | --targe | --targ | --tar | --ta | --t)
341
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342
target="$ac_optarg" ;;
344
-v | -verbose | --verbose | --verbos | --verbo | --verb)
347
-version | --version | --versio | --versi | --vers)
348
echo "configure generated by autoconf version 2.13"
352
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353
# Reject names that are not valid shell variable names.
354
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357
ac_package=`echo $ac_package| sed 's/-/_/g'`
362
eval "with_${ac_package}='$ac_optarg'" ;;
364
-without-* | --without-*)
365
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366
# Reject names that are not valid shell variable names.
367
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370
ac_package=`echo $ac_package| sed 's/-/_/g'`
371
eval "with_${ac_package}=no" ;;
374
# Obsolete; use --with-x.
377
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378
| --x-incl | --x-inc | --x-in | --x-i)
379
ac_prev=x_includes ;;
380
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382
x_includes="$ac_optarg" ;;
384
-x-libraries | --x-libraries | --x-librarie | --x-librari \
385
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386
ac_prev=x_libraries ;;
387
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389
x_libraries="$ac_optarg" ;;
391
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396
echo "configure: warning: $ac_option: invalid host type" 1>&2
398
if test "x$nonopt" != xNONE; then
399
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407
if test -n "$ac_prev"; then
408
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
# File descriptor usage:
416
# 2 errors and warnings
417
# 3 some systems may open it to /dev/tty
418
# 4 used on the Kubota Titan
419
# 6 checking for... messages and results
420
# 5 compiler messages saved in config.log
421
if test "$silent" = yes; then
429
This file contains any messages produced by compilers while
430
running configure, to aid debugging if configure makes a mistake.
433
# Strip out --no-create and --no-recursion so they do not pile up.
434
# Also quote any args containing shell metacharacters.
439
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
440
| --no-cr | --no-c) ;;
441
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
442
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
450
# Only set these to C if already set. These must not be set unconditionally
451
# because not all systems understand e.g. LANG=C (notably SCO).
452
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453
# Non-C LC_CTYPE values break the ctype check.
454
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459
# confdefs.h avoids OS command line length limits that DEFS can exceed.
460
rm -rf conftest* confdefs.h
461
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
464
# A filename unique to this package, relative to the directory that
465
# configure is in, which we can look for to find out if srcdir is correct.
466
ac_unique_file=gsmlib/gsm_error.h
468
# Find the source files, if location was not specified.
469
if test -z "$srcdir"; then
470
ac_srcdir_defaulted=yes
471
# Try the directory containing this script, then its parent.
473
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476
if test ! -r $srcdir/$ac_unique_file; then
480
ac_srcdir_defaulted=no
482
if test ! -r $srcdir/$ac_unique_file; then
483
if test "$ac_srcdir_defaulted" = yes; then
484
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
# Prefer explicitly selected file to automatically selected ones.
492
if test -z "$CONFIG_SITE"; then
493
if test "x$prefix" != xNONE; then
494
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499
for ac_site_file in $CONFIG_SITE; do
500
if test -r "$ac_site_file"; then
501
echo "loading site script $ac_site_file"
506
if test -r "$cache_file"; then
507
echo "loading cache $cache_file"
510
echo "creating cache $cache_file"
515
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516
ac_cpp='$CPP $CPPFLAGS'
517
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519
cross_compiling=$ac_cv_prog_cc_cross
523
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532
ac_n= ac_c='\c' ac_t=
539
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
540
echo "configure:541: checking how to run the C preprocessor" >&5
541
# On Suns, sometimes $CPP names a directory.
542
if test -n "$CPP" && test -d "$CPP"; then
545
if test -z "$CPP"; then
546
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
547
echo $ac_n "(cached) $ac_c" 1>&6
549
# This must be in double quotes, not single quotes, because CPP may get
550
# substituted into the Makefile and "${CC-cc}" will confuse make.
552
# On the NeXT, cc -E runs the code through the compiler's parser,
553
# not just through cpp.
554
cat > conftest.$ac_ext <<EOF
555
#line 556 "configure"
556
#include "confdefs.h"
560
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
561
{ (eval echo configure:562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
562
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
563
if test -z "$ac_err"; then
567
echo "configure: failed program was:" >&5
568
cat conftest.$ac_ext >&5
570
CPP="${CC-cc} -E -traditional-cpp"
571
cat > conftest.$ac_ext <<EOF
572
#line 573 "configure"
573
#include "confdefs.h"
577
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
578
{ (eval echo configure:579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
579
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
580
if test -z "$ac_err"; then
584
echo "configure: failed program was:" >&5
585
cat conftest.$ac_ext >&5
587
CPP="${CC-cc} -nologo -E"
588
cat > conftest.$ac_ext <<EOF
589
#line 590 "configure"
590
#include "confdefs.h"
594
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
595
{ (eval echo configure:596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
596
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
597
if test -z "$ac_err"; then
601
echo "configure: failed program was:" >&5
602
cat conftest.$ac_ext >&5
611
ac_cv_prog_CPP="$CPP"
613
CPP="$ac_cv_prog_CPP"
615
ac_cv_prog_CPP="$CPP"
617
echo "$ac_t""$CPP" 1>&6
619
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
620
echo "configure:621: checking whether ${MAKE-make} sets \${MAKE}" >&5
621
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
622
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
623
echo $ac_n "(cached) $ac_c" 1>&6
625
cat > conftestmake <<\EOF
627
@echo 'ac_maketemp="${MAKE}"'
629
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
630
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
631
if test -n "$ac_maketemp"; then
632
eval ac_cv_prog_make_${ac_make}_set=yes
634
eval ac_cv_prog_make_${ac_make}_set=no
638
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
639
echo "$ac_t""yes" 1>&6
642
echo "$ac_t""no" 1>&6
643
SET_MAKE="MAKE=${MAKE-make}"
646
# Extract the first word of "gcc", so it can be a program name with args.
647
set dummy gcc; ac_word=$2
648
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649
echo "configure:650: checking for $ac_word" >&5
650
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651
echo $ac_n "(cached) $ac_c" 1>&6
653
if test -n "$CC"; then
654
ac_cv_prog_CC="$CC" # Let the user override the test.
656
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658
for ac_dir in $ac_dummy; do
659
test -z "$ac_dir" && ac_dir=.
660
if test -f $ac_dir/$ac_word; then
669
if test -n "$CC"; then
670
echo "$ac_t""$CC" 1>&6
672
echo "$ac_t""no" 1>&6
675
if test -z "$CC"; then
676
# Extract the first word of "cc", so it can be a program name with args.
677
set dummy cc; ac_word=$2
678
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679
echo "configure:680: checking for $ac_word" >&5
680
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681
echo $ac_n "(cached) $ac_c" 1>&6
683
if test -n "$CC"; then
684
ac_cv_prog_CC="$CC" # Let the user override the test.
686
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689
for ac_dir in $ac_dummy; do
690
test -z "$ac_dir" && ac_dir=.
691
if test -f $ac_dir/$ac_word; then
692
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701
if test $ac_prog_rejected = yes; then
702
# We found a bogon in the path, so make sure we never use it.
703
set dummy $ac_cv_prog_CC
705
if test $# -gt 0; then
706
# We chose a different compiler from the bogus one.
707
# However, it has the same basename, so the bogon will be chosen
708
# first if we set CC to just the basename; use the full file name.
710
set dummy "$ac_dir/$ac_word" "$@"
718
if test -n "$CC"; then
719
echo "$ac_t""$CC" 1>&6
721
echo "$ac_t""no" 1>&6
724
if test -z "$CC"; then
727
# Extract the first word of "cl", so it can be a program name with args.
728
set dummy cl; ac_word=$2
729
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730
echo "configure:731: checking for $ac_word" >&5
731
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732
echo $ac_n "(cached) $ac_c" 1>&6
734
if test -n "$CC"; then
735
ac_cv_prog_CC="$CC" # Let the user override the test.
737
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739
for ac_dir in $ac_dummy; do
740
test -z "$ac_dir" && ac_dir=.
741
if test -f $ac_dir/$ac_word; then
750
if test -n "$CC"; then
751
echo "$ac_t""$CC" 1>&6
753
echo "$ac_t""no" 1>&6
758
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762
echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766
ac_cpp='$CPP $CPPFLAGS'
767
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769
cross_compiling=$ac_cv_prog_cc_cross
771
cat > conftest.$ac_ext << EOF
773
#line 774 "configure"
774
#include "confdefs.h"
778
if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779
ac_cv_prog_cc_works=yes
780
# If we can't run a trivial program, we are probably using a cross compiler.
781
if (./conftest; exit) 2>/dev/null; then
782
ac_cv_prog_cc_cross=no
784
ac_cv_prog_cc_cross=yes
787
echo "configure: failed program was:" >&5
788
cat conftest.$ac_ext >&5
789
ac_cv_prog_cc_works=no
793
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794
ac_cpp='$CPP $CPPFLAGS'
795
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797
cross_compiling=$ac_cv_prog_cc_cross
799
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800
if test $ac_cv_prog_cc_works = no; then
801
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804
echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806
cross_compiling=$ac_cv_prog_cc_cross
808
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809
echo "configure:810: checking whether we are using GNU C" >&5
810
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811
echo $ac_n "(cached) $ac_c" 1>&6
813
cat > conftest.c <<EOF
818
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
825
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827
if test $ac_cv_prog_gcc = yes; then
833
ac_test_CFLAGS="${CFLAGS+set}"
834
ac_save_CFLAGS="$CFLAGS"
836
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837
echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839
echo $ac_n "(cached) $ac_c" 1>&6
841
echo 'void f(){}' > conftest.c
842
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852
if test "$ac_test_CFLAGS" = set; then
853
CFLAGS="$ac_save_CFLAGS"
854
elif test $ac_cv_prog_cc_g = yes; then
855
if test "$GCC" = yes; then
861
if test "$GCC" = yes; then
868
# Extract the first word of "ranlib", so it can be a program name with args.
869
set dummy ranlib; ac_word=$2
870
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871
echo "configure:872: checking for $ac_word" >&5
872
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
873
echo $ac_n "(cached) $ac_c" 1>&6
875
if test -n "$RANLIB"; then
876
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
878
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
880
for ac_dir in $ac_dummy; do
881
test -z "$ac_dir" && ac_dir=.
882
if test -f $ac_dir/$ac_word; then
883
ac_cv_prog_RANLIB="ranlib"
888
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
891
RANLIB="$ac_cv_prog_RANLIB"
892
if test -n "$RANLIB"; then
893
echo "$ac_t""$RANLIB" 1>&6
895
echo "$ac_t""no" 1>&6
898
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
899
echo "configure:900: checking for POSIXized ISC" >&5
900
if test -d /etc/conf/kconfig.d &&
901
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
903
echo "$ac_t""yes" 1>&6
904
ISC=yes # If later tests want to check for ISC.
905
cat >> confdefs.h <<\EOF
906
#define _POSIX_SOURCE 1
909
if test "$GCC" = yes; then
915
echo "$ac_t""no" 1>&6
919
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
920
echo "configure:921: checking for ANSI C header files" >&5
921
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
922
echo $ac_n "(cached) $ac_c" 1>&6
924
cat > conftest.$ac_ext <<EOF
925
#line 926 "configure"
926
#include "confdefs.h"
932
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933
{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935
if test -z "$ac_err"; then
937
ac_cv_header_stdc=yes
940
echo "configure: failed program was:" >&5
941
cat conftest.$ac_ext >&5
947
if test $ac_cv_header_stdc = yes; then
948
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
949
cat > conftest.$ac_ext <<EOF
950
#line 951 "configure"
951
#include "confdefs.h"
954
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
955
egrep "memchr" >/dev/null 2>&1; then
965
if test $ac_cv_header_stdc = yes; then
966
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
967
cat > conftest.$ac_ext <<EOF
968
#line 969 "configure"
969
#include "confdefs.h"
972
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
973
egrep "free" >/dev/null 2>&1; then
983
if test $ac_cv_header_stdc = yes; then
984
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
985
if test "$cross_compiling" = yes; then
988
cat > conftest.$ac_ext <<EOF
989
#line 990 "configure"
990
#include "confdefs.h"
992
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
993
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
994
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
995
int main () { int i; for (i = 0; i < 256; i++)
996
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1000
if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1004
echo "configure: failed program was:" >&5
1005
cat conftest.$ac_ext >&5
1007
ac_cv_header_stdc=no
1015
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1016
if test $ac_cv_header_stdc = yes; then
1017
cat >> confdefs.h <<\EOF
1018
#define STDC_HEADERS 1
1023
echo $ac_n "checking for working const""... $ac_c" 1>&6
1024
echo "configure:1025: checking for working const" >&5
1025
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1026
echo $ac_n "(cached) $ac_c" 1>&6
1028
cat > conftest.$ac_ext <<EOF
1029
#line 1030 "configure"
1030
#include "confdefs.h"
1034
/* Ultrix mips cc rejects this. */
1035
typedef int charset[2]; const charset x;
1036
/* SunOS 4.1.1 cc rejects this. */
1037
char const *const *ccp;
1039
/* NEC SVR4.0.2 mips cc rejects this. */
1040
struct point {int x, y;};
1041
static struct point const zero = {0,0};
1042
/* AIX XL C 1.02.0.0 rejects this.
1043
It does not let you subtract one const X* pointer from another in an arm
1044
of an if-expression whose if-part is not a constant expression */
1045
const char *g = "string";
1046
ccp = &g + (g ? g-g : 0);
1047
/* HPUX 7.0 cc rejects these. */
1050
ccp = (char const *const *) p;
1051
{ /* SCO 3.2v4 cc rejects this. */
1053
char const *s = 0 ? (char *) 0 : (char const *) 0;
1057
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1059
const int *foo = &x[0];
1062
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1063
typedef const int *iptr;
1067
{ /* AIX XL C 1.02.0.0 rejects this saying
1068
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1069
struct s { int j; const int *ap[3]; };
1070
struct s *b; b->j = 5;
1072
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1078
if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1082
echo "configure: failed program was:" >&5
1083
cat conftest.$ac_ext >&5
1090
echo "$ac_t""$ac_cv_c_const" 1>&6
1091
if test $ac_cv_c_const = no; then
1092
cat >> confdefs.h <<\EOF
1098
echo $ac_n "checking for inline""... $ac_c" 1>&6
1099
echo "configure:1100: checking for inline" >&5
1100
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1101
echo $ac_n "(cached) $ac_c" 1>&6
1104
for ac_kw in inline __inline__ __inline; do
1105
cat > conftest.$ac_ext <<EOF
1106
#line 1107 "configure"
1107
#include "confdefs.h"
1113
if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1115
ac_cv_c_inline=$ac_kw; break
1117
echo "configure: failed program was:" >&5
1118
cat conftest.$ac_ext >&5
1125
echo "$ac_t""$ac_cv_c_inline" 1>&6
1126
case "$ac_cv_c_inline" in
1128
no) cat >> confdefs.h <<\EOF
1132
*) cat >> confdefs.h <<EOF
1133
#define inline $ac_cv_c_inline
1138
echo $ac_n "checking for off_t""... $ac_c" 1>&6
1139
echo "configure:1140: checking for off_t" >&5
1140
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1141
echo $ac_n "(cached) $ac_c" 1>&6
1143
cat > conftest.$ac_ext <<EOF
1144
#line 1145 "configure"
1145
#include "confdefs.h"
1146
#include <sys/types.h>
1152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1153
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1155
ac_cv_type_off_t=yes
1163
echo "$ac_t""$ac_cv_type_off_t" 1>&6
1164
if test $ac_cv_type_off_t = no; then
1165
cat >> confdefs.h <<\EOF
1171
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1172
echo "configure:1173: checking for size_t" >&5
1173
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1174
echo $ac_n "(cached) $ac_c" 1>&6
1176
cat > conftest.$ac_ext <<EOF
1177
#line 1178 "configure"
1178
#include "confdefs.h"
1179
#include <sys/types.h>
1185
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1186
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1188
ac_cv_type_size_t=yes
1191
ac_cv_type_size_t=no
1196
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1197
if test $ac_cv_type_size_t = no; then
1198
cat >> confdefs.h <<\EOF
1199
#define size_t unsigned
1204
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1205
# for constant arguments. Useless!
1206
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1207
echo "configure:1208: checking for working alloca.h" >&5
1208
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1209
echo $ac_n "(cached) $ac_c" 1>&6
1211
cat > conftest.$ac_ext <<EOF
1212
#line 1213 "configure"
1213
#include "confdefs.h"
1216
char *p = alloca(2 * sizeof(int));
1219
if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1221
ac_cv_header_alloca_h=yes
1223
echo "configure: failed program was:" >&5
1224
cat conftest.$ac_ext >&5
1226
ac_cv_header_alloca_h=no
1231
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1232
if test $ac_cv_header_alloca_h = yes; then
1233
cat >> confdefs.h <<\EOF
1234
#define HAVE_ALLOCA_H 1
1239
echo $ac_n "checking for alloca""... $ac_c" 1>&6
1240
echo "configure:1241: checking for alloca" >&5
1241
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1242
echo $ac_n "(cached) $ac_c" 1>&6
1244
cat > conftest.$ac_ext <<EOF
1245
#line 1246 "configure"
1246
#include "confdefs.h"
1249
# define alloca __builtin_alloca
1252
# include <malloc.h>
1253
# define alloca _alloca
1256
# include <alloca.h>
1261
# ifndef alloca /* predefined by HP cc +Olibcalls */
1270
char *p = (char *) alloca(1);
1273
if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1275
ac_cv_func_alloca_works=yes
1277
echo "configure: failed program was:" >&5
1278
cat conftest.$ac_ext >&5
1280
ac_cv_func_alloca_works=no
1285
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1286
if test $ac_cv_func_alloca_works = yes; then
1287
cat >> confdefs.h <<\EOF
1288
#define HAVE_ALLOCA 1
1293
if test $ac_cv_func_alloca_works = no; then
1294
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
1295
# that cause trouble. Some versions do not even contain alloca or
1296
# contain a buggy version. If you still want to use their alloca,
1297
# use ar to extract alloca.o from them instead of compiling alloca.c.
1298
ALLOCA=alloca.${ac_objext}
1299
cat >> confdefs.h <<\EOF
1304
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1305
echo "configure:1306: checking whether alloca needs Cray hooks" >&5
1306
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1307
echo $ac_n "(cached) $ac_c" 1>&6
1309
cat > conftest.$ac_ext <<EOF
1310
#line 1311 "configure"
1311
#include "confdefs.h"
1312
#if defined(CRAY) && ! defined(CRAY2)
1319
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1320
egrep "webecray" >/dev/null 2>&1; then
1331
echo "$ac_t""$ac_cv_os_cray" 1>&6
1332
if test $ac_cv_os_cray = yes; then
1333
for ac_func in _getb67 GETB67 getb67; do
1334
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1335
echo "configure:1336: checking for $ac_func" >&5
1336
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1337
echo $ac_n "(cached) $ac_c" 1>&6
1339
cat > conftest.$ac_ext <<EOF
1340
#line 1341 "configure"
1341
#include "confdefs.h"
1342
/* System header to define __stub macros and hopefully few prototypes,
1343
which can conflict with char $ac_func(); below. */
1345
/* Override any gcc2 internal prototype to avoid an error. */
1346
/* We use char because int might match the return type of a gcc2
1347
builtin and then its argument prototype would still apply. */
1352
/* The GNU C library defines this for functions which it implements
1353
to always fail with ENOSYS. Some functions are actually named
1354
something starting with __ and the normal name is an alias. */
1355
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1363
if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1365
eval "ac_cv_func_$ac_func=yes"
1367
echo "configure: failed program was:" >&5
1368
cat conftest.$ac_ext >&5
1370
eval "ac_cv_func_$ac_func=no"
1375
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1376
echo "$ac_t""yes" 1>&6
1377
cat >> confdefs.h <<EOF
1378
#define CRAY_STACKSEG_END $ac_func
1383
echo "$ac_t""no" 1>&6
1389
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1390
echo "configure:1391: checking stack direction for C alloca" >&5
1391
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1392
echo $ac_n "(cached) $ac_c" 1>&6
1394
if test "$cross_compiling" = yes; then
1395
ac_cv_c_stack_direction=0
1397
cat > conftest.$ac_ext <<EOF
1398
#line 1399 "configure"
1399
#include "confdefs.h"
1400
find_stack_direction ()
1402
static char *addr = 0;
1407
return find_stack_direction ();
1410
return (&dummy > addr) ? 1 : -1;
1414
exit (find_stack_direction() < 0);
1417
if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1419
ac_cv_c_stack_direction=1
1421
echo "configure: failed program was:" >&5
1422
cat conftest.$ac_ext >&5
1424
ac_cv_c_stack_direction=-1
1431
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1432
cat >> confdefs.h <<EOF
1433
#define STACK_DIRECTION $ac_cv_c_stack_direction
1438
for ac_hdr in unistd.h
1440
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1441
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1442
echo "configure:1443: checking for $ac_hdr" >&5
1443
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1444
echo $ac_n "(cached) $ac_c" 1>&6
1446
cat > conftest.$ac_ext <<EOF
1447
#line 1448 "configure"
1448
#include "confdefs.h"
1451
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1452
{ (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1453
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1454
if test -z "$ac_err"; then
1456
eval "ac_cv_header_$ac_safe=yes"
1459
echo "configure: failed program was:" >&5
1460
cat conftest.$ac_ext >&5
1462
eval "ac_cv_header_$ac_safe=no"
1466
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1467
echo "$ac_t""yes" 1>&6
1468
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1469
cat >> confdefs.h <<EOF
1470
#define $ac_tr_hdr 1
1474
echo "$ac_t""no" 1>&6
1478
for ac_func in getpagesize
1480
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1481
echo "configure:1482: checking for $ac_func" >&5
1482
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1483
echo $ac_n "(cached) $ac_c" 1>&6
1485
cat > conftest.$ac_ext <<EOF
1486
#line 1487 "configure"
1487
#include "confdefs.h"
1488
/* System header to define __stub macros and hopefully few prototypes,
1489
which can conflict with char $ac_func(); below. */
1491
/* Override any gcc2 internal prototype to avoid an error. */
1492
/* We use char because int might match the return type of a gcc2
1493
builtin and then its argument prototype would still apply. */
1498
/* The GNU C library defines this for functions which it implements
1499
to always fail with ENOSYS. Some functions are actually named
1500
something starting with __ and the normal name is an alias. */
1501
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1509
if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511
eval "ac_cv_func_$ac_func=yes"
1513
echo "configure: failed program was:" >&5
1514
cat conftest.$ac_ext >&5
1516
eval "ac_cv_func_$ac_func=no"
1521
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1522
echo "$ac_t""yes" 1>&6
1523
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1524
cat >> confdefs.h <<EOF
1525
#define $ac_tr_func 1
1529
echo "$ac_t""no" 1>&6
1533
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1534
echo "configure:1535: checking for working mmap" >&5
1535
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1536
echo $ac_n "(cached) $ac_c" 1>&6
1538
if test "$cross_compiling" = yes; then
1539
ac_cv_func_mmap_fixed_mapped=no
1541
cat > conftest.$ac_ext <<EOF
1542
#line 1543 "configure"
1543
#include "confdefs.h"
1545
/* Thanks to Mike Haertel and Jim Avera for this test.
1546
Here is a matrix of mmap possibilities:
1547
mmap private not fixed
1548
mmap private fixed at somewhere currently unmapped
1549
mmap private fixed at somewhere already mapped
1550
mmap shared not fixed
1551
mmap shared fixed at somewhere currently unmapped
1552
mmap shared fixed at somewhere already mapped
1553
For private mappings, we should verify that changes cannot be read()
1554
back from the file, nor mmap's back from the file at a different
1555
address. (There have been systems where private was not correctly
1556
implemented like the infamous i386 svr4.0, and systems where the
1557
VM page cache was not coherent with the filesystem buffer cache
1558
like early versions of FreeBSD and possibly contemporary NetBSD.)
1559
For shared mappings, we should conversely verify that changes get
1560
propogated back to all the places they're supposed to be.
1562
Grep wants private fixed already mapped.
1563
The main things grep needs to know about mmap are:
1564
* does it exist and is it safe to write into the mmap'd area
1565
* how to use it (BSD variants) */
1566
#include <sys/types.h>
1568
#include <sys/mman.h>
1570
/* This mess was copied from the GNU getpagesize.h. */
1571
#ifndef HAVE_GETPAGESIZE
1572
# ifdef HAVE_UNISTD_H
1573
# include <unistd.h>
1576
/* Assume that all systems that can run configure have sys/param.h. */
1577
# ifndef HAVE_SYS_PARAM_H
1578
# define HAVE_SYS_PARAM_H 1
1581
# ifdef _SC_PAGESIZE
1582
# define getpagesize() sysconf(_SC_PAGESIZE)
1583
# else /* no _SC_PAGESIZE */
1584
# ifdef HAVE_SYS_PARAM_H
1585
# include <sys/param.h>
1586
# ifdef EXEC_PAGESIZE
1587
# define getpagesize() EXEC_PAGESIZE
1588
# else /* no EXEC_PAGESIZE */
1590
# define getpagesize() NBPG * CLSIZE
1593
# endif /* no CLSIZE */
1594
# else /* no NBPG */
1596
# define getpagesize() NBPC
1597
# else /* no NBPC */
1599
# define getpagesize() PAGESIZE
1600
# endif /* PAGESIZE */
1601
# endif /* no NBPC */
1602
# endif /* no NBPG */
1603
# endif /* no EXEC_PAGESIZE */
1604
# else /* no HAVE_SYS_PARAM_H */
1605
# define getpagesize() 8192 /* punt totally */
1606
# endif /* no HAVE_SYS_PARAM_H */
1607
# endif /* no _SC_PAGESIZE */
1609
#endif /* no HAVE_GETPAGESIZE */
1612
extern "C" { void *malloc(unsigned); }
1620
char *data, *data2, *data3;
1624
pagesize = getpagesize();
1627
* First, make a file with some known garbage in it.
1629
data = malloc(pagesize);
1632
for (i = 0; i < pagesize; ++i)
1633
*(data + i) = rand();
1635
fd = creat("conftestmmap", 0600);
1638
if (write(fd, data, pagesize) != pagesize)
1643
* Next, try to mmap the file at a fixed address which
1644
* already has something else allocated at it. If we can,
1645
* also make sure that we see the same garbage.
1647
fd = open("conftestmmap", O_RDWR);
1650
data2 = malloc(2 * pagesize);
1653
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1654
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1655
MAP_PRIVATE | MAP_FIXED, fd, 0L))
1657
for (i = 0; i < pagesize; ++i)
1658
if (*(data + i) != *(data2 + i))
1662
* Finally, make sure that changes to the mapped area
1663
* do not percolate back to the file as seen by read().
1664
* (This is a bug on some variants of i386 svr4.0.)
1666
for (i = 0; i < pagesize; ++i)
1667
*(data2 + i) = *(data2 + i) + 1;
1668
data3 = malloc(pagesize);
1671
if (read(fd, data3, pagesize) != pagesize)
1673
for (i = 0; i < pagesize; ++i)
1674
if (*(data + i) != *(data3 + i))
1677
unlink("conftestmmap");
1682
if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1684
ac_cv_func_mmap_fixed_mapped=yes
1686
echo "configure: failed program was:" >&5
1687
cat conftest.$ac_ext >&5
1689
ac_cv_func_mmap_fixed_mapped=no
1696
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1697
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1698
cat >> confdefs.h <<\EOF
1705
for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1706
unistd.h sys/param.h
1708
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1709
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1710
echo "configure:1711: checking for $ac_hdr" >&5
1711
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1712
echo $ac_n "(cached) $ac_c" 1>&6
1714
cat > conftest.$ac_ext <<EOF
1715
#line 1716 "configure"
1716
#include "confdefs.h"
1719
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1720
{ (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1721
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1722
if test -z "$ac_err"; then
1724
eval "ac_cv_header_$ac_safe=yes"
1727
echo "configure: failed program was:" >&5
1728
cat conftest.$ac_ext >&5
1730
eval "ac_cv_header_$ac_safe=no"
1734
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1735
echo "$ac_t""yes" 1>&6
1736
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1737
cat >> confdefs.h <<EOF
1738
#define $ac_tr_hdr 1
1742
echo "$ac_t""no" 1>&6
1746
for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1747
strdup __argz_count __argz_stringify __argz_next
1749
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1750
echo "configure:1751: checking for $ac_func" >&5
1751
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1752
echo $ac_n "(cached) $ac_c" 1>&6
1754
cat > conftest.$ac_ext <<EOF
1755
#line 1756 "configure"
1756
#include "confdefs.h"
1757
/* System header to define __stub macros and hopefully few prototypes,
1758
which can conflict with char $ac_func(); below. */
1760
/* Override any gcc2 internal prototype to avoid an error. */
1761
/* We use char because int might match the return type of a gcc2
1762
builtin and then its argument prototype would still apply. */
1767
/* The GNU C library defines this for functions which it implements
1768
to always fail with ENOSYS. Some functions are actually named
1769
something starting with __ and the normal name is an alias. */
1770
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1778
if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780
eval "ac_cv_func_$ac_func=yes"
1782
echo "configure: failed program was:" >&5
1783
cat conftest.$ac_ext >&5
1785
eval "ac_cv_func_$ac_func=no"
1790
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1791
echo "$ac_t""yes" 1>&6
1792
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1793
cat >> confdefs.h <<EOF
1794
#define $ac_tr_func 1
1798
echo "$ac_t""no" 1>&6
1803
if test "${ac_cv_func_stpcpy+set}" != "set"; then
1804
for ac_func in stpcpy
1806
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1807
echo "configure:1808: checking for $ac_func" >&5
1808
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1809
echo $ac_n "(cached) $ac_c" 1>&6
1811
cat > conftest.$ac_ext <<EOF
1812
#line 1813 "configure"
1813
#include "confdefs.h"
1814
/* System header to define __stub macros and hopefully few prototypes,
1815
which can conflict with char $ac_func(); below. */
1817
/* Override any gcc2 internal prototype to avoid an error. */
1818
/* We use char because int might match the return type of a gcc2
1819
builtin and then its argument prototype would still apply. */
1824
/* The GNU C library defines this for functions which it implements
1825
to always fail with ENOSYS. Some functions are actually named
1826
something starting with __ and the normal name is an alias. */
1827
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1835
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1837
eval "ac_cv_func_$ac_func=yes"
1839
echo "configure: failed program was:" >&5
1840
cat conftest.$ac_ext >&5
1842
eval "ac_cv_func_$ac_func=no"
1847
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1848
echo "$ac_t""yes" 1>&6
1849
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1850
cat >> confdefs.h <<EOF
1851
#define $ac_tr_func 1
1855
echo "$ac_t""no" 1>&6
1860
if test "${ac_cv_func_stpcpy}" = "yes"; then
1861
cat >> confdefs.h <<\EOF
1862
#define HAVE_STPCPY 1
1867
if test $ac_cv_header_locale_h = yes; then
1868
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1869
echo "configure:1870: checking for LC_MESSAGES" >&5
1870
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1871
echo $ac_n "(cached) $ac_c" 1>&6
1873
cat > conftest.$ac_ext <<EOF
1874
#line 1875 "configure"
1875
#include "confdefs.h"
1881
if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1883
am_cv_val_LC_MESSAGES=yes
1885
echo "configure: failed program was:" >&5
1886
cat conftest.$ac_ext >&5
1888
am_cv_val_LC_MESSAGES=no
1893
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
1894
if test $am_cv_val_LC_MESSAGES = yes; then
1895
cat >> confdefs.h <<\EOF
1896
#define HAVE_LC_MESSAGES 1
1901
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
1902
echo "configure:1903: checking whether NLS is requested" >&5
1903
# Check whether --enable-nls or --disable-nls was given.
1904
if test "${enable_nls+set}" = set; then
1905
enableval="$enable_nls"
1911
echo "$ac_t""$USE_NLS" 1>&6
1914
USE_INCLUDED_LIBINTL=no
1916
if test "$USE_NLS" = "yes"; then
1917
cat >> confdefs.h <<\EOF
1918
#define ENABLE_NLS 1
1921
echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
1922
echo "configure:1923: checking whether included gettext is requested" >&5
1923
# Check whether --with-included-gettext or --without-included-gettext was given.
1924
if test "${with_included_gettext+set}" = set; then
1925
withval="$with_included_gettext"
1926
nls_cv_force_use_gnu_gettext=$withval
1928
nls_cv_force_use_gnu_gettext=no
1931
echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
1933
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
1934
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
1936
nls_cv_header_libgt=
1939
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
1940
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
1941
echo "configure:1942: checking for libintl.h" >&5
1942
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1943
echo $ac_n "(cached) $ac_c" 1>&6
1945
cat > conftest.$ac_ext <<EOF
1946
#line 1947 "configure"
1947
#include "confdefs.h"
1948
#include <libintl.h>
1950
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951
{ (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1953
if test -z "$ac_err"; then
1955
eval "ac_cv_header_$ac_safe=yes"
1958
echo "configure: failed program was:" >&5
1959
cat conftest.$ac_ext >&5
1961
eval "ac_cv_header_$ac_safe=no"
1965
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1966
echo "$ac_t""yes" 1>&6
1967
echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
1968
echo "configure:1969: checking for gettext in libc" >&5
1969
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
1970
echo $ac_n "(cached) $ac_c" 1>&6
1972
cat > conftest.$ac_ext <<EOF
1973
#line 1974 "configure"
1974
#include "confdefs.h"
1975
#include <libintl.h>
1977
return (int) gettext ("")
1980
if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1982
gt_cv_func_gettext_libc=yes
1984
echo "configure: failed program was:" >&5
1985
cat conftest.$ac_ext >&5
1987
gt_cv_func_gettext_libc=no
1992
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
1994
if test "$gt_cv_func_gettext_libc" != "yes"; then
1995
echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
1996
echo "configure:1997: checking for bindtextdomain in -lintl" >&5
1997
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
1998
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999
echo $ac_n "(cached) $ac_c" 1>&6
2001
ac_save_LIBS="$LIBS"
2003
cat > conftest.$ac_ext <<EOF
2004
#line 2005 "configure"
2005
#include "confdefs.h"
2006
/* Override any gcc2 internal prototype to avoid an error. */
2007
/* We use char because int might match the return type of a gcc2
2008
builtin and then its argument prototype would still apply. */
2009
char bindtextdomain();
2015
if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017
eval "ac_cv_lib_$ac_lib_var=yes"
2019
echo "configure: failed program was:" >&5
2020
cat conftest.$ac_ext >&5
2022
eval "ac_cv_lib_$ac_lib_var=no"
2025
LIBS="$ac_save_LIBS"
2028
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029
echo "$ac_t""yes" 1>&6
2030
echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2031
echo "configure:2032: checking for gettext in libintl" >&5
2032
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2033
echo $ac_n "(cached) $ac_c" 1>&6
2035
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2036
echo "configure:2037: checking for gettext in -lintl" >&5
2037
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2038
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2039
echo $ac_n "(cached) $ac_c" 1>&6
2041
ac_save_LIBS="$LIBS"
2043
cat > conftest.$ac_ext <<EOF
2044
#line 2045 "configure"
2045
#include "confdefs.h"
2046
/* Override any gcc2 internal prototype to avoid an error. */
2047
/* We use char because int might match the return type of a gcc2
2048
builtin and then its argument prototype would still apply. */
2055
if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2057
eval "ac_cv_lib_$ac_lib_var=yes"
2059
echo "configure: failed program was:" >&5
2060
cat conftest.$ac_ext >&5
2062
eval "ac_cv_lib_$ac_lib_var=no"
2065
LIBS="$ac_save_LIBS"
2068
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2069
echo "$ac_t""yes" 1>&6
2070
gt_cv_func_gettext_libintl=yes
2072
echo "$ac_t""no" 1>&6
2073
gt_cv_func_gettext_libintl=no
2078
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2080
echo "$ac_t""no" 1>&6
2085
if test "$gt_cv_func_gettext_libc" = "yes" \
2086
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
2087
cat >> confdefs.h <<\EOF
2088
#define HAVE_GETTEXT 1
2091
# Extract the first word of "msgfmt", so it can be a program name with args.
2092
set dummy msgfmt; ac_word=$2
2093
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2094
echo "configure:2095: checking for $ac_word" >&5
2095
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2096
echo $ac_n "(cached) $ac_c" 1>&6
2100
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2103
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2104
for ac_dir in $PATH; do
2105
test -z "$ac_dir" && ac_dir=.
2106
if test -f $ac_dir/$ac_word; then
2107
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2108
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2114
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2118
MSGFMT="$ac_cv_path_MSGFMT"
2119
if test -n "$MSGFMT"; then
2120
echo "$ac_t""$MSGFMT" 1>&6
2122
echo "$ac_t""no" 1>&6
2124
if test "$MSGFMT" != "no"; then
2125
for ac_func in dcgettext
2127
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2128
echo "configure:2129: checking for $ac_func" >&5
2129
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2130
echo $ac_n "(cached) $ac_c" 1>&6
2132
cat > conftest.$ac_ext <<EOF
2133
#line 2134 "configure"
2134
#include "confdefs.h"
2135
/* System header to define __stub macros and hopefully few prototypes,
2136
which can conflict with char $ac_func(); below. */
2138
/* Override any gcc2 internal prototype to avoid an error. */
2139
/* We use char because int might match the return type of a gcc2
2140
builtin and then its argument prototype would still apply. */
2145
/* The GNU C library defines this for functions which it implements
2146
to always fail with ENOSYS. Some functions are actually named
2147
something starting with __ and the normal name is an alias. */
2148
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2156
if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158
eval "ac_cv_func_$ac_func=yes"
2160
echo "configure: failed program was:" >&5
2161
cat conftest.$ac_ext >&5
2163
eval "ac_cv_func_$ac_func=no"
2168
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2169
echo "$ac_t""yes" 1>&6
2170
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2171
cat >> confdefs.h <<EOF
2172
#define $ac_tr_func 1
2176
echo "$ac_t""no" 1>&6
2180
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2181
set dummy gmsgfmt; ac_word=$2
2182
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2183
echo "configure:2184: checking for $ac_word" >&5
2184
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2185
echo $ac_n "(cached) $ac_c" 1>&6
2189
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2192
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2195
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2197
for ac_dir in $ac_dummy; do
2198
test -z "$ac_dir" && ac_dir=.
2199
if test -f $ac_dir/$ac_word; then
2200
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2205
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2209
GMSGFMT="$ac_cv_path_GMSGFMT"
2210
if test -n "$GMSGFMT"; then
2211
echo "$ac_t""$GMSGFMT" 1>&6
2213
echo "$ac_t""no" 1>&6
2216
# Extract the first word of "xgettext", so it can be a program name with args.
2217
set dummy xgettext; ac_word=$2
2218
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219
echo "configure:2220: checking for $ac_word" >&5
2220
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2221
echo $ac_n "(cached) $ac_c" 1>&6
2225
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2228
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2229
for ac_dir in $PATH; do
2230
test -z "$ac_dir" && ac_dir=.
2231
if test -f $ac_dir/$ac_word; then
2232
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2233
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2239
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2243
XGETTEXT="$ac_cv_path_XGETTEXT"
2244
if test -n "$XGETTEXT"; then
2245
echo "$ac_t""$XGETTEXT" 1>&6
2247
echo "$ac_t""no" 1>&6
2250
cat > conftest.$ac_ext <<EOF
2251
#line 2252 "configure"
2252
#include "confdefs.h"
2255
extern int _nl_msg_cat_cntr;
2256
return _nl_msg_cat_cntr
2259
if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2264
echo "configure: failed program was:" >&5
2265
cat conftest.$ac_ext >&5
2276
echo "$ac_t""no" 1>&6
2280
if test "$CATOBJEXT" = "NONE"; then
2281
echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2282
echo "configure:2283: checking whether catgets can be used" >&5
2283
# Check whether --with-catgets or --without-catgets was given.
2284
if test "${with_catgets+set}" = set; then
2285
withval="$with_catgets"
2286
nls_cv_use_catgets=$withval
2288
nls_cv_use_catgets=no
2291
echo "$ac_t""$nls_cv_use_catgets" 1>&6
2293
if test "$nls_cv_use_catgets" = "yes"; then
2294
echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2295
echo "configure:2296: checking for main in -li" >&5
2296
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2297
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2298
echo $ac_n "(cached) $ac_c" 1>&6
2300
ac_save_LIBS="$LIBS"
2302
cat > conftest.$ac_ext <<EOF
2303
#line 2304 "configure"
2304
#include "confdefs.h"
2310
if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312
eval "ac_cv_lib_$ac_lib_var=yes"
2314
echo "configure: failed program was:" >&5
2315
cat conftest.$ac_ext >&5
2317
eval "ac_cv_lib_$ac_lib_var=no"
2320
LIBS="$ac_save_LIBS"
2323
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2324
echo "$ac_t""yes" 1>&6
2325
ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2326
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2327
cat >> confdefs.h <<EOF
2328
#define $ac_tr_lib 1
2334
echo "$ac_t""no" 1>&6
2337
echo $ac_n "checking for catgets""... $ac_c" 1>&6
2338
echo "configure:2339: checking for catgets" >&5
2339
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2340
echo $ac_n "(cached) $ac_c" 1>&6
2342
cat > conftest.$ac_ext <<EOF
2343
#line 2344 "configure"
2344
#include "confdefs.h"
2345
/* System header to define __stub macros and hopefully few prototypes,
2346
which can conflict with char catgets(); below. */
2348
/* Override any gcc2 internal prototype to avoid an error. */
2349
/* We use char because int might match the return type of a gcc2
2350
builtin and then its argument prototype would still apply. */
2355
/* The GNU C library defines this for functions which it implements
2356
to always fail with ENOSYS. Some functions are actually named
2357
something starting with __ and the normal name is an alias. */
2358
#if defined (__stub_catgets) || defined (__stub___catgets)
2366
if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368
eval "ac_cv_func_catgets=yes"
2370
echo "configure: failed program was:" >&5
2371
cat conftest.$ac_ext >&5
2373
eval "ac_cv_func_catgets=no"
2378
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
2379
echo "$ac_t""yes" 1>&6
2380
cat >> confdefs.h <<\EOF
2381
#define HAVE_CATGETS 1
2384
INTLOBJS="\$(CATOBJS)"
2385
# Extract the first word of "gencat", so it can be a program name with args.
2386
set dummy gencat; ac_word=$2
2387
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2388
echo "configure:2389: checking for $ac_word" >&5
2389
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
2390
echo $ac_n "(cached) $ac_c" 1>&6
2394
ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
2397
ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
2400
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2402
for ac_dir in $ac_dummy; do
2403
test -z "$ac_dir" && ac_dir=.
2404
if test -f $ac_dir/$ac_word; then
2405
ac_cv_path_GENCAT="$ac_dir/$ac_word"
2410
test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
2414
GENCAT="$ac_cv_path_GENCAT"
2415
if test -n "$GENCAT"; then
2416
echo "$ac_t""$GENCAT" 1>&6
2418
echo "$ac_t""no" 1>&6
2420
if test "$GENCAT" != "no"; then
2421
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2422
set dummy gmsgfmt; ac_word=$2
2423
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2424
echo "configure:2425: checking for $ac_word" >&5
2425
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2426
echo $ac_n "(cached) $ac_c" 1>&6
2430
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2433
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2436
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2438
for ac_dir in $ac_dummy; do
2439
test -z "$ac_dir" && ac_dir=.
2440
if test -f $ac_dir/$ac_word; then
2441
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2446
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2450
GMSGFMT="$ac_cv_path_GMSGFMT"
2451
if test -n "$GMSGFMT"; then
2452
echo "$ac_t""$GMSGFMT" 1>&6
2454
echo "$ac_t""no" 1>&6
2457
if test "$GMSGFMT" = "no"; then
2458
# Extract the first word of "msgfmt", so it can be a program name with args.
2459
set dummy msgfmt; ac_word=$2
2460
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461
echo "configure:2462: checking for $ac_word" >&5
2462
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2463
echo $ac_n "(cached) $ac_c" 1>&6
2467
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2470
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2471
for ac_dir in $PATH; do
2472
test -z "$ac_dir" && ac_dir=.
2473
if test -f $ac_dir/$ac_word; then
2474
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2475
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2481
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
2485
GMSGFMT="$ac_cv_path_GMSGFMT"
2486
if test -n "$GMSGFMT"; then
2487
echo "$ac_t""$GMSGFMT" 1>&6
2489
echo "$ac_t""no" 1>&6
2493
# Extract the first word of "xgettext", so it can be a program name with args.
2494
set dummy xgettext; ac_word=$2
2495
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2496
echo "configure:2497: checking for $ac_word" >&5
2497
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2498
echo $ac_n "(cached) $ac_c" 1>&6
2502
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2505
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2506
for ac_dir in $PATH; do
2507
test -z "$ac_dir" && ac_dir=.
2508
if test -f $ac_dir/$ac_word; then
2509
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2510
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2516
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2520
XGETTEXT="$ac_cv_path_XGETTEXT"
2521
if test -n "$XGETTEXT"; then
2522
echo "$ac_t""$XGETTEXT" 1>&6
2524
echo "$ac_t""no" 1>&6
2527
USE_INCLUDED_LIBINTL=yes
2531
INTLDEPS='$(top_builddir)/intl/libintl.a'
2533
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2534
nls_cv_header_intl=intl/libintl.h
2535
nls_cv_header_libgt=intl/libgettext.h
2538
echo "$ac_t""no" 1>&6
2544
if test "$CATOBJEXT" = "NONE"; then
2545
nls_cv_use_gnu_gettext=yes
2549
if test "$nls_cv_use_gnu_gettext" = "yes"; then
2550
INTLOBJS="\$(GETTOBJS)"
2551
# Extract the first word of "msgfmt", so it can be a program name with args.
2552
set dummy msgfmt; ac_word=$2
2553
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554
echo "configure:2555: checking for $ac_word" >&5
2555
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2556
echo $ac_n "(cached) $ac_c" 1>&6
2560
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2563
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2564
for ac_dir in $PATH; do
2565
test -z "$ac_dir" && ac_dir=.
2566
if test -f $ac_dir/$ac_word; then
2567
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2568
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2574
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2578
MSGFMT="$ac_cv_path_MSGFMT"
2579
if test -n "$MSGFMT"; then
2580
echo "$ac_t""$MSGFMT" 1>&6
2582
echo "$ac_t""no" 1>&6
2585
# Extract the first word of "gmsgfmt", so it can be a program name with args.
2586
set dummy gmsgfmt; ac_word=$2
2587
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2588
echo "configure:2589: checking for $ac_word" >&5
2589
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2590
echo $ac_n "(cached) $ac_c" 1>&6
2594
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2597
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2600
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2602
for ac_dir in $ac_dummy; do
2603
test -z "$ac_dir" && ac_dir=.
2604
if test -f $ac_dir/$ac_word; then
2605
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2610
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2614
GMSGFMT="$ac_cv_path_GMSGFMT"
2615
if test -n "$GMSGFMT"; then
2616
echo "$ac_t""$GMSGFMT" 1>&6
2618
echo "$ac_t""no" 1>&6
2621
# Extract the first word of "xgettext", so it can be a program name with args.
2622
set dummy xgettext; ac_word=$2
2623
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2624
echo "configure:2625: checking for $ac_word" >&5
2625
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2626
echo $ac_n "(cached) $ac_c" 1>&6
2630
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2633
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2634
for ac_dir in $PATH; do
2635
test -z "$ac_dir" && ac_dir=.
2636
if test -f $ac_dir/$ac_word; then
2637
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2638
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2644
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2648
XGETTEXT="$ac_cv_path_XGETTEXT"
2649
if test -n "$XGETTEXT"; then
2650
echo "$ac_t""$XGETTEXT" 1>&6
2652
echo "$ac_t""no" 1>&6
2656
USE_INCLUDED_LIBINTL=yes
2660
INTLDEPS='$(top_builddir)/intl/libintl.a'
2662
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2663
nls_cv_header_intl=intl/libintl.h
2664
nls_cv_header_libgt=intl/libgettext.h
2667
if test "$XGETTEXT" != ":"; then
2668
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2671
echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2676
# We need to process the po/ directory.
2680
nls_cv_header_intl=intl/libintl.h
2681
nls_cv_header_libgt=intl/libgettext.h
2687
# If this is used in GNU gettext we have to set USE_NLS to `yes'
2688
# because some of the sources are only built for this goal.
2689
if test "$PACKAGE" = gettext; then
2691
USE_INCLUDED_LIBINTL=yes
2694
for lang in $ALL_LINGUAS; do
2695
GMOFILES="$GMOFILES $lang.gmo"
2696
POFILES="$POFILES $lang.po"
2712
if test "x$CATOBJEXT" != "x"; then
2713
if test "x$ALL_LINGUAS" = "x"; then
2716
echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2717
echo "configure:2718: checking for catalogs to be installed" >&5
2719
for lang in ${LINGUAS=$ALL_LINGUAS}; do
2720
case "$ALL_LINGUAS" in
2721
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2724
LINGUAS=$NEW_LINGUAS
2725
echo "$ac_t""$LINGUAS" 1>&6
2728
if test -n "$LINGUAS"; then
2729
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2733
if test $ac_cv_header_locale_h = yes; then
2734
INCLUDE_LOCALE_H="#include <locale.h>"
2737
/* The system does not provide the header <locale.h>. Take care yourself. */"
2741
test -d intl || mkdir intl
2742
if test "$CATOBJEXT" = ".cat"; then
2743
ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2744
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2745
echo "configure:2746: checking for linux/version.h" >&5
2746
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2747
echo $ac_n "(cached) $ac_c" 1>&6
2749
cat > conftest.$ac_ext <<EOF
2750
#line 2751 "configure"
2751
#include "confdefs.h"
2752
#include <linux/version.h>
2754
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2755
{ (eval echo configure:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2756
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2757
if test -z "$ac_err"; then
2759
eval "ac_cv_header_$ac_safe=yes"
2762
echo "configure: failed program was:" >&5
2763
cat conftest.$ac_ext >&5
2765
eval "ac_cv_header_$ac_safe=no"
2769
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2770
echo "$ac_t""yes" 1>&6
2773
echo "$ac_t""no" 1>&6
2778
sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
2780
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2781
$srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
2783
if test "$PACKAGE" = "gettext"; then
2794
if test -n "$ac_aux_dir"; then
2795
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2797
if test -z "$MKINSTALLDIRS"; then
2798
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2805
test -d po || mkdir po
2806
if test "x$srcdir" != "x."; then
2807
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2808
posrcprefix="$srcdir/"
2810
posrcprefix="../$srcdir/"
2816
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2817
< $srcdir/po/POTFILES.in > po/POTFILES
2820
echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
2821
echo "configure:2822: checking for textdomain in -lintl" >&5
2822
ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
2823
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2824
echo $ac_n "(cached) $ac_c" 1>&6
2826
ac_save_LIBS="$LIBS"
2828
cat > conftest.$ac_ext <<EOF
2829
#line 2830 "configure"
2830
#include "confdefs.h"
2831
/* Override any gcc2 internal prototype to avoid an error. */
2832
/* We use char because int might match the return type of a gcc2
2833
builtin and then its argument prototype would still apply. */
2840
if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842
eval "ac_cv_lib_$ac_lib_var=yes"
2844
echo "configure: failed program was:" >&5
2845
cat conftest.$ac_ext >&5
2847
eval "ac_cv_lib_$ac_lib_var=no"
2850
LIBS="$ac_save_LIBS"
2853
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2854
echo "$ac_t""yes" 1>&6
2855
ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2856
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2857
cat >> confdefs.h <<EOF
2858
#define $ac_tr_lib 1
2864
echo "$ac_t""no" 1>&6
2873
for ac_dir in scripts $srcdir/scripts; do
2874
if test -f $ac_dir/install-sh; then
2876
ac_install_sh="$ac_aux_dir/install-sh -c"
2878
elif test -f $ac_dir/install.sh; then
2880
ac_install_sh="$ac_aux_dir/install.sh -c"
2884
if test -z "$ac_aux_dir"; then
2885
{ echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
2887
ac_config_guess=$ac_aux_dir/config.guess
2888
ac_config_sub=$ac_aux_dir/config.sub
2889
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2891
# Find a good install program. We prefer a C program (faster),
2892
# so one script is as good as another. But avoid the broken or
2893
# incompatible versions:
2894
# SysV /etc/install, /usr/sbin/install
2895
# SunOS /usr/etc/install
2896
# IRIX /sbin/install
2898
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2899
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2900
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2901
# ./install, which can be erroneously created by make from ./install.sh.
2902
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2903
echo "configure:2904: checking for a BSD compatible install" >&5
2904
if test -z "$INSTALL"; then
2905
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2906
echo $ac_n "(cached) $ac_c" 1>&6
2908
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2909
for ac_dir in $PATH; do
2910
# Account for people who put trailing slashes in PATH elements.
2912
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2914
# OSF1 and SCO ODT 3.0 have their own names for install.
2915
# Don't use installbsd from OSF since it installs stuff as root
2917
for ac_prog in ginstall scoinst install; do
2918
if test -f $ac_dir/$ac_prog; then
2919
if test $ac_prog = install &&
2920
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2921
# AIX install. It has an incompatible calling convention.
2924
ac_cv_path_install="$ac_dir/$ac_prog -c"
2935
if test "${ac_cv_path_install+set}" = set; then
2936
INSTALL="$ac_cv_path_install"
2938
# As a last resort, use the slow shell script. We don't cache a
2939
# path for INSTALL within a source directory, because that will
2940
# break other packages using the cache if that directory is
2941
# removed, or if the path is relative.
2942
INSTALL="$ac_install_sh"
2945
echo "$ac_t""$INSTALL" 1>&6
2947
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2948
# It thinks the first close brace ends the variable substitution.
2949
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2951
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2953
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
2957
echo "configure:2958: checking whether build environment is sane" >&5
2960
echo timestamp > conftestfile
2961
# Do `set' in a subshell so we don't clobber the current shell's
2962
# arguments. Must try -L first in case configure is actually a
2963
# symlink; some systems play weird games with the mod time of symlinks
2964
# (eg FreeBSD returns the mod time of the symlink's containing
2967
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2968
if test "$*" = "X"; then
2970
set X `ls -t $srcdir/configure conftestfile`
2972
if test "$*" != "X $srcdir/configure conftestfile" \
2973
&& test "$*" != "X conftestfile $srcdir/configure"; then
2975
# If neither matched, then we have a broken ls. This can happen
2976
# if, for instance, CONFIG_SHELL is bash and it inherits a
2977
# broken ls alias from the environment. This has actually
2978
# happened. Such a system could not be considered "sane".
2979
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
2980
alias in your environment" 1>&2; exit 1; }
2983
test "$2" = conftestfile
2989
{ echo "configure: error: newly created file is older than distributed files!
2990
Check your system clock" 1>&2; exit 1; }
2993
echo "$ac_t""yes" 1>&6
2994
if test "$program_transform_name" = s,x,x,; then
2995
program_transform_name=
2997
# Double any \ or $. echo might interpret backslashes.
2998
cat <<\EOF_SED > conftestsed
2999
s,\\,\\\\,g; s,\$,$$,g
3001
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3004
test "$program_prefix" != NONE &&
3005
program_transform_name="s,^,${program_prefix},; $program_transform_name"
3006
# Use a double $ so make ignores it.
3007
test "$program_suffix" != NONE &&
3008
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3010
# sed with no file args requires a program.
3011
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3018
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
3019
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
3021
cat >> confdefs.h <<EOF
3022
#define PACKAGE "$PACKAGE"
3025
cat >> confdefs.h <<EOF
3026
#define VERSION "$VERSION"
3031
missing_dir=`cd $ac_aux_dir && pwd`
3032
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
3033
echo "configure:3034: checking for working aclocal" >&5
3034
# Run test in a subshell; some versions of sh will print an error if
3035
# an executable is not found, even if stderr is redirected.
3036
# Redirect stdin to placate older versions of autoconf. Sigh.
3037
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
3039
echo "$ac_t""found" 1>&6
3041
ACLOCAL="$missing_dir/missing aclocal"
3042
echo "$ac_t""missing" 1>&6
3045
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
3046
echo "configure:3047: checking for working autoconf" >&5
3047
# Run test in a subshell; some versions of sh will print an error if
3048
# an executable is not found, even if stderr is redirected.
3049
# Redirect stdin to placate older versions of autoconf. Sigh.
3050
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
3052
echo "$ac_t""found" 1>&6
3054
AUTOCONF="$missing_dir/missing autoconf"
3055
echo "$ac_t""missing" 1>&6
3058
echo $ac_n "checking for working automake""... $ac_c" 1>&6
3059
echo "configure:3060: checking for working automake" >&5
3060
# Run test in a subshell; some versions of sh will print an error if
3061
# an executable is not found, even if stderr is redirected.
3062
# Redirect stdin to placate older versions of autoconf. Sigh.
3063
if (automake --version) < /dev/null > /dev/null 2>&1; then
3065
echo "$ac_t""found" 1>&6
3067
AUTOMAKE="$missing_dir/missing automake"
3068
echo "$ac_t""missing" 1>&6
3071
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
3072
echo "configure:3073: checking for working autoheader" >&5
3073
# Run test in a subshell; some versions of sh will print an error if
3074
# an executable is not found, even if stderr is redirected.
3075
# Redirect stdin to placate older versions of autoconf. Sigh.
3076
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
3077
AUTOHEADER=autoheader
3078
echo "$ac_t""found" 1>&6
3080
AUTOHEADER="$missing_dir/missing autoheader"
3081
echo "$ac_t""missing" 1>&6
3084
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
3085
echo "configure:3086: checking for working makeinfo" >&5
3086
# Run test in a subshell; some versions of sh will print an error if
3087
# an executable is not found, even if stderr is redirected.
3088
# Redirect stdin to placate older versions of autoconf. Sigh.
3089
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
3091
echo "$ac_t""found" 1>&6
3093
MAKEINFO="$missing_dir/missing makeinfo"
3094
echo "$ac_t""missing" 1>&6
3099
# Check whether --enable-shared or --disable-shared was given.
3100
if test "${enable_shared+set}" = set; then
3101
enableval="$enable_shared"
3102
p=${PACKAGE-default}
3103
case "$enableval" in
3104
yes) enable_shared=yes ;;
3105
no) enable_shared=no ;;
3108
# Look at the argument we got. We use all the common list separators.
3109
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110
for pkg in $enableval; do
3111
if test "X$pkg" = "X$p"; then
3123
if test "$CXXFLAGS" = ""; then
3129
if test x"`egrep _REENTRANT /usr/include/features.h`" != x; then
3130
CXXFLAGS="-D_REENTRANT $CXXFLAGS"
3131
CFLAGS="-D_REENTRANT $CFLAGS"
3134
CXXFLAGS="-Wall $CXXFLAGS"
3136
# Check whether --enable-static or --disable-static was given.
3137
if test "${enable_static+set}" = set; then
3138
enableval="$enable_static"
3139
p=${PACKAGE-default}
3140
case "$enableval" in
3141
yes) enable_static=yes ;;
3142
no) enable_static=no ;;
3145
# Look at the argument we got. We use all the common list separators.
3146
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3147
for pkg in $enableval; do
3148
if test "X$pkg" = "X$p"; then
3160
# Make sure we can run config.sub.
3161
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
3162
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3165
echo $ac_n "checking host system type""... $ac_c" 1>&6
3166
echo "configure:3167: checking host system type" >&5
3169
case "$host_alias" in
3173
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
3174
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3176
*) host_alias=$nonopt ;;
3180
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
3181
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3182
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3183
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3184
echo "$ac_t""$host" 1>&6
3186
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3187
if test "${with_gnu_ld+set}" = set; then
3188
withval="$with_gnu_ld"
3189
test "$withval" = no || with_gnu_ld=yes
3196
if test "$ac_cv_prog_gcc" = yes; then
3197
# Check if gcc -print-prog-name=ld gives a path.
3198
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3199
echo "configure:3200: checking for ld used by GCC" >&5
3200
ac_prog=`($CC -print-prog-name=ld) 2>&5`
3202
# Accept absolute paths.
3203
/* | [A-Za-z]:[\\/]*)
3204
test -z "$LD" && LD="$ac_prog"
3207
# If it fails, then pretend we aren't using GCC.
3211
# If it is relative, then search for the first ld in PATH.
3215
elif test "$with_gnu_ld" = yes; then
3216
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3217
echo "configure:3218: checking for GNU ld" >&5
3219
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3220
echo "configure:3221: checking for non-GNU ld" >&5
3222
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
3223
echo $ac_n "(cached) $ac_c" 1>&6
3225
if test -z "$LD"; then
3226
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3227
for ac_dir in $PATH; do
3228
test -z "$ac_dir" && ac_dir=.
3229
if test -f "$ac_dir/$ac_prog"; then
3230
ac_cv_path_LD="$ac_dir/$ac_prog"
3231
# Check to see if the program is GNU ld. I'd rather use --version,
3232
# but apparently some GNU ld's only accept -v.
3233
# Break only if it was the GNU/non-GNU ld that we prefer.
3234
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3235
test "$with_gnu_ld" != no && break
3237
test "$with_gnu_ld" != yes && break
3243
ac_cv_path_LD="$LD" # Let the user override the test with a path.
3248
if test -n "$LD"; then
3249
echo "$ac_t""$LD" 1>&6
3251
echo "$ac_t""no" 1>&6
3253
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3255
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3256
echo "configure:3257: checking if the linker ($LD) is GNU ld" >&5
3257
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
3258
echo $ac_n "(cached) $ac_c" 1>&6
3260
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3261
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3262
ac_cv_prog_gnu_ld=yes
3264
ac_cv_prog_gnu_ld=no
3268
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3271
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3272
echo "configure:3273: checking for BSD-compatible nm" >&5
3273
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
3274
echo $ac_n "(cached) $ac_c" 1>&6
3276
if test -n "$NM"; then
3277
# Let the user override the test.
3280
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3281
for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
3282
test -z "$ac_dir" && ac_dir=.
3283
if test -f $ac_dir/nm; then
3284
# Check to see if the nm accepts a BSD-compat flag.
3285
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3286
# nm: unknown option "B" ignored
3287
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3288
ac_cv_path_NM="$ac_dir/nm -B"
3289
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3290
ac_cv_path_NM="$ac_dir/nm -p"
3292
ac_cv_path_NM="$ac_dir/nm"
3298
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3303
echo "$ac_t""$NM" 1>&6
3306
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3307
echo "configure:3308: checking whether ln -s works" >&5
3308
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3309
echo $ac_n "(cached) $ac_c" 1>&6
3312
if ln -s X conftestdata 2>/dev/null
3315
ac_cv_prog_LN_S="ln -s"
3320
LN_S="$ac_cv_prog_LN_S"
3321
if test "$ac_cv_prog_LN_S" = "ln -s"; then
3322
echo "$ac_t""yes" 1>&6
3324
echo "$ac_t""no" 1>&6
3327
# Always use our own libtool.
3328
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3330
# Check for any special flags to pass to ltconfig.
3332
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3333
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3334
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
3335
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3336
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3338
# Some flags need to be propagated to the compiler or linker for good
3342
# Find out which ABI we are using.
3343
echo '#line 3344 "configure"' > conftest.$ac_ext
3344
if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345
case "`/usr/bin/file conftest.o`" in
3361
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3362
CFLAGS="$CFLAGS -belf"
3366
# Actually configure libtool. ac_aux_dir is where install-sh is found.
3367
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3368
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
3369
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3370
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3371
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3373
# Redirect the config.log output again, so that the ltconfig log is not
3374
# clobbered by the next message.
3375
exec 5>>./config.log
3378
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3379
echo "configure:3380: checking how to run the C preprocessor" >&5
3380
# On Suns, sometimes $CPP names a directory.
3381
if test -n "$CPP" && test -d "$CPP"; then
3384
if test -z "$CPP"; then
3385
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3386
echo $ac_n "(cached) $ac_c" 1>&6
3388
# This must be in double quotes, not single quotes, because CPP may get
3389
# substituted into the Makefile and "${CC-cc}" will confuse make.
3391
# On the NeXT, cc -E runs the code through the compiler's parser,
3392
# not just through cpp.
3393
cat > conftest.$ac_ext <<EOF
3394
#line 3395 "configure"
3395
#include "confdefs.h"
3399
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3400
{ (eval echo configure:3401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3401
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3402
if test -z "$ac_err"; then
3406
echo "configure: failed program was:" >&5
3407
cat conftest.$ac_ext >&5
3409
CPP="${CC-cc} -E -traditional-cpp"
3410
cat > conftest.$ac_ext <<EOF
3411
#line 3412 "configure"
3412
#include "confdefs.h"
3416
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3417
{ (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3418
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3419
if test -z "$ac_err"; then
3423
echo "configure: failed program was:" >&5
3424
cat conftest.$ac_ext >&5
3426
CPP="${CC-cc} -nologo -E"
3427
cat > conftest.$ac_ext <<EOF
3428
#line 3429 "configure"
3429
#include "confdefs.h"
3433
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3434
{ (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3435
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3436
if test -z "$ac_err"; then
3440
echo "configure: failed program was:" >&5
3441
cat conftest.$ac_ext >&5
3450
ac_cv_prog_CPP="$CPP"
3452
CPP="$ac_cv_prog_CPP"
3454
ac_cv_prog_CPP="$CPP"
3456
echo "$ac_t""$CPP" 1>&6
3458
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
3460
# Extract the first word of "$ac_prog", so it can be a program name with args.
3461
set dummy $ac_prog; ac_word=$2
3462
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3463
echo "configure:3464: checking for $ac_word" >&5
3464
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
3465
echo $ac_n "(cached) $ac_c" 1>&6
3467
if test -n "$CXX"; then
3468
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3470
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3472
for ac_dir in $ac_dummy; do
3473
test -z "$ac_dir" && ac_dir=.
3474
if test -f $ac_dir/$ac_word; then
3475
ac_cv_prog_CXX="$ac_prog"
3482
CXX="$ac_cv_prog_CXX"
3483
if test -n "$CXX"; then
3484
echo "$ac_t""$CXX" 1>&6
3486
echo "$ac_t""no" 1>&6
3489
test -n "$CXX" && break
3491
test -n "$CXX" || CXX="gcc"
3494
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3495
echo "configure:3496: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
3498
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3499
ac_cpp='$CXXCPP $CPPFLAGS'
3500
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3501
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3502
cross_compiling=$ac_cv_prog_cxx_cross
3504
cat > conftest.$ac_ext << EOF
3506
#line 3507 "configure"
3507
#include "confdefs.h"
3509
int main(){return(0);}
3511
if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3512
ac_cv_prog_cxx_works=yes
3513
# If we can't run a trivial program, we are probably using a cross compiler.
3514
if (./conftest; exit) 2>/dev/null; then
3515
ac_cv_prog_cxx_cross=no
3517
ac_cv_prog_cxx_cross=yes
3520
echo "configure: failed program was:" >&5
3521
cat conftest.$ac_ext >&5
3522
ac_cv_prog_cxx_works=no
3526
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3527
ac_cpp='$CPP $CPPFLAGS'
3528
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3529
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3530
cross_compiling=$ac_cv_prog_cc_cross
3532
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
3533
if test $ac_cv_prog_cxx_works = no; then
3534
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
3536
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3537
echo "configure:3538: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
3538
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
3539
cross_compiling=$ac_cv_prog_cxx_cross
3541
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3542
echo "configure:3543: checking whether we are using GNU C++" >&5
3543
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
3544
echo $ac_n "(cached) $ac_c" 1>&6
3546
cat > conftest.C <<EOF
3551
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:3552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3558
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
3560
if test $ac_cv_prog_gxx = yes; then
3566
ac_test_CXXFLAGS="${CXXFLAGS+set}"
3567
ac_save_CXXFLAGS="$CXXFLAGS"
3569
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3570
echo "configure:3571: checking whether ${CXX-g++} accepts -g" >&5
3571
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
3572
echo $ac_n "(cached) $ac_c" 1>&6
3574
echo 'void f(){}' > conftest.cc
3575
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
3576
ac_cv_prog_cxx_g=yes
3584
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
3585
if test "$ac_test_CXXFLAGS" = set; then
3586
CXXFLAGS="$ac_save_CXXFLAGS"
3587
elif test $ac_cv_prog_cxx_g = yes; then
3588
if test "$GXX" = yes; then
3594
if test "$GXX" = yes; then
3602
if test "$cross_compiling" = yes; then
3603
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3605
cat > conftest.$ac_ext <<EOF
3606
#line 3607 "configure"
3607
#include "confdefs.h"
3612
#if defined(__GNUC__) && \
3613
! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
3620
if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3624
echo "configure: failed program was:" >&5
3625
cat conftest.$ac_ext >&5
3627
echo "need at least gcc 2.95 to compile correctly"
3634
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3635
# for constant arguments. Useless!
3636
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3637
echo "configure:3638: checking for working alloca.h" >&5
3638
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3639
echo $ac_n "(cached) $ac_c" 1>&6
3641
cat > conftest.$ac_ext <<EOF
3642
#line 3643 "configure"
3643
#include "confdefs.h"
3646
char *p = alloca(2 * sizeof(int));
3649
if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3651
ac_cv_header_alloca_h=yes
3653
echo "configure: failed program was:" >&5
3654
cat conftest.$ac_ext >&5
3656
ac_cv_header_alloca_h=no
3661
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3662
if test $ac_cv_header_alloca_h = yes; then
3663
cat >> confdefs.h <<\EOF
3664
#define HAVE_ALLOCA_H 1
3669
echo $ac_n "checking for alloca""... $ac_c" 1>&6
3670
echo "configure:3671: checking for alloca" >&5
3671
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3672
echo $ac_n "(cached) $ac_c" 1>&6
3674
cat > conftest.$ac_ext <<EOF
3675
#line 3676 "configure"
3676
#include "confdefs.h"
3679
# define alloca __builtin_alloca
3682
# include <malloc.h>
3683
# define alloca _alloca
3686
# include <alloca.h>
3691
# ifndef alloca /* predefined by HP cc +Olibcalls */
3700
char *p = (char *) alloca(1);
3703
if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705
ac_cv_func_alloca_works=yes
3707
echo "configure: failed program was:" >&5
3708
cat conftest.$ac_ext >&5
3710
ac_cv_func_alloca_works=no
3715
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3716
if test $ac_cv_func_alloca_works = yes; then
3717
cat >> confdefs.h <<\EOF
3718
#define HAVE_ALLOCA 1
3723
if test $ac_cv_func_alloca_works = no; then
3724
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
3725
# that cause trouble. Some versions do not even contain alloca or
3726
# contain a buggy version. If you still want to use their alloca,
3727
# use ar to extract alloca.o from them instead of compiling alloca.c.
3728
ALLOCA=alloca.${ac_objext}
3729
cat >> confdefs.h <<\EOF
3734
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3735
echo "configure:3736: checking whether alloca needs Cray hooks" >&5
3736
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3737
echo $ac_n "(cached) $ac_c" 1>&6
3739
cat > conftest.$ac_ext <<EOF
3740
#line 3741 "configure"
3741
#include "confdefs.h"
3742
#if defined(CRAY) && ! defined(CRAY2)
3749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750
egrep "webecray" >/dev/null 2>&1; then
3761
echo "$ac_t""$ac_cv_os_cray" 1>&6
3762
if test $ac_cv_os_cray = yes; then
3763
for ac_func in _getb67 GETB67 getb67; do
3764
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3765
echo "configure:3766: checking for $ac_func" >&5
3766
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3767
echo $ac_n "(cached) $ac_c" 1>&6
3769
cat > conftest.$ac_ext <<EOF
3770
#line 3771 "configure"
3771
#include "confdefs.h"
3772
/* System header to define __stub macros and hopefully few prototypes,
3773
which can conflict with char $ac_func(); below. */
3775
/* Override any gcc2 internal prototype to avoid an error. */
3776
/* We use char because int might match the return type of a gcc2
3777
builtin and then its argument prototype would still apply. */
3782
/* The GNU C library defines this for functions which it implements
3783
to always fail with ENOSYS. Some functions are actually named
3784
something starting with __ and the normal name is an alias. */
3785
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3793
if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3795
eval "ac_cv_func_$ac_func=yes"
3797
echo "configure: failed program was:" >&5
3798
cat conftest.$ac_ext >&5
3800
eval "ac_cv_func_$ac_func=no"
3805
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3806
echo "$ac_t""yes" 1>&6
3807
cat >> confdefs.h <<EOF
3808
#define CRAY_STACKSEG_END $ac_func
3813
echo "$ac_t""no" 1>&6
3819
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3820
echo "configure:3821: checking stack direction for C alloca" >&5
3821
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3822
echo $ac_n "(cached) $ac_c" 1>&6
3824
if test "$cross_compiling" = yes; then
3825
ac_cv_c_stack_direction=0
3827
cat > conftest.$ac_ext <<EOF
3828
#line 3829 "configure"
3829
#include "confdefs.h"
3830
find_stack_direction ()
3832
static char *addr = 0;
3837
return find_stack_direction ();
3840
return (&dummy > addr) ? 1 : -1;
3844
exit (find_stack_direction() < 0);
3847
if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3849
ac_cv_c_stack_direction=1
3851
echo "configure: failed program was:" >&5
3852
cat conftest.$ac_ext >&5
3854
ac_cv_c_stack_direction=-1
3861
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3862
cat >> confdefs.h <<EOF
3863
#define STACK_DIRECTION $ac_cv_c_stack_direction
3869
echo $ac_n "checking for getopt_long in -lc""... $ac_c" 1>&6
3870
echo "configure:3871: checking for getopt_long in -lc" >&5
3871
ac_lib_var=`echo c'_'getopt_long | sed 'y%./+-%__p_%'`
3872
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873
echo $ac_n "(cached) $ac_c" 1>&6
3875
ac_save_LIBS="$LIBS"
3877
cat > conftest.$ac_ext <<EOF
3878
#line 3879 "configure"
3879
#include "confdefs.h"
3880
/* Override any gcc2 internal prototype to avoid an error. */
3881
/* We use char because int might match the return type of a gcc2
3882
builtin and then its argument prototype would still apply. */
3889
if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3891
eval "ac_cv_lib_$ac_lib_var=yes"
3893
echo "configure: failed program was:" >&5
3894
cat conftest.$ac_ext >&5
3896
eval "ac_cv_lib_$ac_lib_var=no"
3899
LIBS="$ac_save_LIBS"
3902
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903
echo "$ac_t""yes" 1>&6
3904
cat >> confdefs.h <<\EOF
3905
#define HAVE_GETOPT_LONG 1
3909
echo "$ac_t""no" 1>&6
3913
echo $ac_n "checking for alarm in -lc""... $ac_c" 1>&6
3914
echo "configure:3915: checking for alarm in -lc" >&5
3915
ac_lib_var=`echo c'_'alarm | sed 'y%./+-%__p_%'`
3916
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917
echo $ac_n "(cached) $ac_c" 1>&6
3919
ac_save_LIBS="$LIBS"
3921
cat > conftest.$ac_ext <<EOF
3922
#line 3923 "configure"
3923
#include "confdefs.h"
3924
/* Override any gcc2 internal prototype to avoid an error. */
3925
/* We use char because int might match the return type of a gcc2
3926
builtin and then its argument prototype would still apply. */
3933
if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935
eval "ac_cv_lib_$ac_lib_var=yes"
3937
echo "configure: failed program was:" >&5
3938
cat conftest.$ac_ext >&5
3940
eval "ac_cv_lib_$ac_lib_var=no"
3943
LIBS="$ac_save_LIBS"
3946
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3947
echo "$ac_t""yes" 1>&6
3948
cat >> confdefs.h <<\EOF
3949
#define HAVE_ALARM 1
3953
echo "$ac_t""no" 1>&6
3957
for ac_hdr in netinet/in.h
3959
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3960
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3961
echo "configure:3962: checking for $ac_hdr" >&5
3962
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3963
echo $ac_n "(cached) $ac_c" 1>&6
3965
cat > conftest.$ac_ext <<EOF
3966
#line 3967 "configure"
3967
#include "confdefs.h"
3970
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3971
{ (eval echo configure:3972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3972
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3973
if test -z "$ac_err"; then
3975
eval "ac_cv_header_$ac_safe=yes"
3978
echo "configure: failed program was:" >&5
3979
cat conftest.$ac_ext >&5
3981
eval "ac_cv_header_$ac_safe=no"
3985
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3986
echo "$ac_t""yes" 1>&6
3987
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3988
cat >> confdefs.h <<EOF
3989
#define $ac_tr_hdr 1
3993
echo "$ac_t""no" 1>&6
3998
for ac_hdr in string.h
4000
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4001
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4002
echo "configure:4003: checking for $ac_hdr" >&5
4003
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4004
echo $ac_n "(cached) $ac_c" 1>&6
4006
cat > conftest.$ac_ext <<EOF
4007
#line 4008 "configure"
4008
#include "confdefs.h"
4011
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4012
{ (eval echo configure:4013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4013
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4014
if test -z "$ac_err"; then
4016
eval "ac_cv_header_$ac_safe=yes"
4019
echo "configure: failed program was:" >&5
4020
cat conftest.$ac_ext >&5
4022
eval "ac_cv_header_$ac_safe=no"
4026
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4027
echo "$ac_t""yes" 1>&6
4028
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4029
cat >> confdefs.h <<EOF
4030
#define $ac_tr_hdr 1
4034
echo "$ac_t""no" 1>&6
4039
for ac_hdr in libintl.h
4041
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4042
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4043
echo "configure:4044: checking for $ac_hdr" >&5
4044
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4045
echo $ac_n "(cached) $ac_c" 1>&6
4047
cat > conftest.$ac_ext <<EOF
4048
#line 4049 "configure"
4049
#include "confdefs.h"
4052
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4053
{ (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4054
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4055
if test -z "$ac_err"; then
4057
eval "ac_cv_header_$ac_safe=yes"
4060
echo "configure: failed program was:" >&5
4061
cat conftest.$ac_ext >&5
4063
eval "ac_cv_header_$ac_safe=no"
4067
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4068
echo "$ac_t""yes" 1>&6
4069
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4070
cat >> confdefs.h <<EOF
4071
#define $ac_tr_hdr 1
4075
echo "$ac_t""no" 1>&6
4080
echo $ac_n "checking for working const""... $ac_c" 1>&6
4081
echo "configure:4082: checking for working const" >&5
4082
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4083
echo $ac_n "(cached) $ac_c" 1>&6
4085
cat > conftest.$ac_ext <<EOF
4086
#line 4087 "configure"
4087
#include "confdefs.h"
4091
/* Ultrix mips cc rejects this. */
4092
typedef int charset[2]; const charset x;
4093
/* SunOS 4.1.1 cc rejects this. */
4094
char const *const *ccp;
4096
/* NEC SVR4.0.2 mips cc rejects this. */
4097
struct point {int x, y;};
4098
static struct point const zero = {0,0};
4099
/* AIX XL C 1.02.0.0 rejects this.
4100
It does not let you subtract one const X* pointer from another in an arm
4101
of an if-expression whose if-part is not a constant expression */
4102
const char *g = "string";
4103
ccp = &g + (g ? g-g : 0);
4104
/* HPUX 7.0 cc rejects these. */
4107
ccp = (char const *const *) p;
4108
{ /* SCO 3.2v4 cc rejects this. */
4110
char const *s = 0 ? (char *) 0 : (char const *) 0;
4114
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4116
const int *foo = &x[0];
4119
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4120
typedef const int *iptr;
4124
{ /* AIX XL C 1.02.0.0 rejects this saying
4125
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4126
struct s { int j; const int *ap[3]; };
4127
struct s *b; b->j = 5;
4129
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4135
if { (eval echo configure:4136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139
echo "configure: failed program was:" >&5
4140
cat conftest.$ac_ext >&5
4147
echo "$ac_t""$ac_cv_c_const" 1>&6
4148
if test $ac_cv_c_const = no; then
4149
cat >> confdefs.h <<\EOF
4156
cat > conftest.$ac_ext <<EOF
4157
#line 4158 "configure"
4158
#include "confdefs.h"
4161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162
egrep "vsnprintf" >/dev/null 2>&1; then
4164
cat >> confdefs.h <<\EOF
4165
#define HAVE_VSNPRINTF 1
4172
echo $ac_n "checking size of unsigned short int""... $ac_c" 1>&6
4173
echo "configure:4174: checking size of unsigned short int" >&5
4174
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then
4175
echo $ac_n "(cached) $ac_c" 1>&6
4177
if test "$cross_compiling" = yes; then
4178
ac_cv_sizeof_unsigned_short_int=2
4180
cat > conftest.$ac_ext <<EOF
4181
#line 4182 "configure"
4182
#include "confdefs.h"
4186
FILE *f=fopen("conftestval", "w");
4188
fprintf(f, "%d\n", sizeof(unsigned short int));
4192
if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4194
ac_cv_sizeof_unsigned_short_int=`cat conftestval`
4196
echo "configure: failed program was:" >&5
4197
cat conftest.$ac_ext >&5
4199
ac_cv_sizeof_unsigned_short_int=0
4205
echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6
4206
cat >> confdefs.h <<EOF
4207
#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4211
echo $ac_n "checking size of unsigned long int""... $ac_c" 1>&6
4212
echo "configure:4213: checking size of unsigned long int" >&5
4213
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then
4214
echo $ac_n "(cached) $ac_c" 1>&6
4216
if test "$cross_compiling" = yes; then
4217
ac_cv_sizeof_unsigned_long_int=4
4219
cat > conftest.$ac_ext <<EOF
4220
#line 4221 "configure"
4221
#include "confdefs.h"
4225
FILE *f=fopen("conftestval", "w");
4227
fprintf(f, "%d\n", sizeof(unsigned long int));
4231
if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4233
ac_cv_sizeof_unsigned_long_int=`cat conftestval`
4235
echo "configure: failed program was:" >&5
4236
cat conftest.$ac_ext >&5
4238
ac_cv_sizeof_unsigned_long_int=0
4244
echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6
4245
cat >> confdefs.h <<EOF
4246
#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
4250
echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
4251
echo "configure:4252: checking size of unsigned int" >&5
4252
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
4253
echo $ac_n "(cached) $ac_c" 1>&6
4255
if test "$cross_compiling" = yes; then
4256
ac_cv_sizeof_unsigned_int=4
4258
cat > conftest.$ac_ext <<EOF
4259
#line 4260 "configure"
4260
#include "confdefs.h"
4264
FILE *f=fopen("conftestval", "w");
4266
fprintf(f, "%d\n", sizeof(unsigned int));
4270
if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4272
ac_cv_sizeof_unsigned_int=`cat conftestval`
4274
echo "configure: failed program was:" >&5
4275
cat conftest.$ac_ext >&5
4277
ac_cv_sizeof_unsigned_int=0
4283
echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
4284
cat >> confdefs.h <<EOF
4285
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4293
_localedir=`eval "echo $datadir/locale"`
4294
if test "$_localedir" = "NONE/share/locale"; then
4295
cat >> confdefs.h <<EOF
4296
#define LOCALEDIR "/usr/local/share/locale"
4300
_localedir=`echo \"$_localedir\"`
4301
cat >> confdefs.h <<EOF
4302
#define LOCALEDIR $_localedir
4309
if test x$USE_INCLUDED_LIBINTL = xyes; then
4311
COMPILE_INTL_FALSE='#'
4313
COMPILE_INTL_TRUE='#'
4318
cat > confcache <<\EOF
4319
# This file is a shell script that caches the results of configure
4320
# tests run on this system so they can be shared between configure
4321
# scripts and configure runs. It is not useful on other systems.
4322
# If it contains results you don't want to keep, you may remove or edit it.
4324
# By default, configure uses ./config.cache as the cache file,
4325
# creating it if it does not exist already. You can give configure
4326
# the --cache-file=FILE option to use a different cache file; that is
4327
# what configure does when it calls configure scripts in
4328
# subdirectories, so they share the cache.
4329
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4330
# config.status only pays attention to the cache file if you give it the
4331
# --recheck option to rerun configure.
4334
# The following way of writing the cache mishandles newlines in values,
4335
# but we know of no workaround that is simple, portable, and efficient.
4336
# So, don't put newlines in cache variables' values.
4337
# Ultrix sh set writes to stderr and can't be redirected directly,
4338
# and sets the high bit in the cache file unless we assign to the vars.
4340
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4342
# `set' does not quote correctly, so add quotes (double-quote substitution
4343
# turns \\\\ into \\, and sed turns \\ into \).
4345
-e "s/'/'\\\\''/g" \
4346
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4349
# `set' quotes correctly as required by POSIX, so do not add quotes.
4350
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4353
if cmp -s $cache_file confcache; then
4356
if test -w $cache_file; then
4357
echo "updating cache $cache_file"
4358
cat confcache > $cache_file
4360
echo "not updating unwritable cache $cache_file"
4365
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4367
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4368
# Let make expand exec_prefix.
4369
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4371
# Any assignment to VPATH causes Sun make to only execute
4372
# the first set of double-colon rules, so remove it if not needed.
4373
# If there is a colon in the path, we need to keep it.
4374
if test "x$srcdir" = x.; then
4375
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4378
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4380
DEFS=-DHAVE_CONFIG_H
4382
# Without the "./", some shells look in PATH for config.status.
4383
: ${CONFIG_STATUS=./config.status}
4385
echo creating $CONFIG_STATUS
4386
rm -f $CONFIG_STATUS
4387
cat > $CONFIG_STATUS <<EOF
4389
# Generated automatically by configure.
4390
# Run this file to recreate the current configuration.
4391
# This directory was configured as follows,
4392
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4394
# $0 $ac_configure_args
4396
# Compiler output produced by configure, useful for debugging
4397
# configure, is in ./config.log if it exists.
4399
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4402
case "\$ac_option" in
4403
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4404
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4405
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4406
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4407
echo "$CONFIG_STATUS generated by autoconf version 2.13"
4409
-help | --help | --hel | --he | --h)
4410
echo "\$ac_cs_usage"; exit 0 ;;
4411
*) echo "\$ac_cs_usage"; exit 1 ;;
4415
ac_given_srcdir=$srcdir
4416
ac_given_INSTALL="$INSTALL"
4418
trap 'rm -fr `echo "Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile
4419
doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in
4420
ext/Makefile gsm_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4422
cat >> $CONFIG_STATUS <<EOF
4424
# Protect against being on the right side of a sed subst in config.status.
4425
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4426
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4430
s%@CFLAGS@%$CFLAGS%g
4431
s%@CPPFLAGS@%$CPPFLAGS%g
4432
s%@CXXFLAGS@%$CXXFLAGS%g
4433
s%@FFLAGS@%$FFLAGS%g
4435
s%@LDFLAGS@%$LDFLAGS%g
4437
s%@exec_prefix@%$exec_prefix%g
4438
s%@prefix@%$prefix%g
4439
s%@program_transform_name@%$program_transform_name%g
4440
s%@bindir@%$bindir%g
4441
s%@sbindir@%$sbindir%g
4442
s%@libexecdir@%$libexecdir%g
4443
s%@datadir@%$datadir%g
4444
s%@sysconfdir@%$sysconfdir%g
4445
s%@sharedstatedir@%$sharedstatedir%g
4446
s%@localstatedir@%$localstatedir%g
4447
s%@libdir@%$libdir%g
4448
s%@includedir@%$includedir%g
4449
s%@oldincludedir@%$oldincludedir%g
4450
s%@infodir@%$infodir%g
4451
s%@mandir@%$mandir%g
4452
s%@SET_MAKE@%$SET_MAKE%g
4454
s%@RANLIB@%$RANLIB%g
4456
s%@ALLOCA@%$ALLOCA%g
4457
s%@USE_NLS@%$USE_NLS%g
4458
s%@MSGFMT@%$MSGFMT%g
4459
s%@GMSGFMT@%$GMSGFMT%g
4460
s%@XGETTEXT@%$XGETTEXT%g
4461
s%@GENCAT@%$GENCAT%g
4462
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4463
s%@CATALOGS@%$CATALOGS%g
4464
s%@CATOBJEXT@%$CATOBJEXT%g
4465
s%@DATADIRNAME@%$DATADIRNAME%g
4466
s%@GMOFILES@%$GMOFILES%g
4467
s%@INSTOBJEXT@%$INSTOBJEXT%g
4468
s%@INTLDEPS@%$INTLDEPS%g
4469
s%@INTLLIBS@%$INTLLIBS%g
4470
s%@INTLOBJS@%$INTLOBJS%g
4471
s%@POFILES@%$POFILES%g
4473
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4475
s%@GT_YES@%$GT_YES%g
4476
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4478
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4479
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4480
s%@INSTALL_DATA@%$INSTALL_DATA%g
4481
s%@PACKAGE@%$PACKAGE%g
4482
s%@VERSION@%$VERSION%g
4483
s%@ACLOCAL@%$ACLOCAL%g
4484
s%@AUTOCONF@%$AUTOCONF%g
4485
s%@AUTOMAKE@%$AUTOMAKE%g
4486
s%@AUTOHEADER@%$AUTOHEADER%g
4487
s%@MAKEINFO@%$MAKEINFO%g
4489
s%@host_alias@%$host_alias%g
4490
s%@host_cpu@%$host_cpu%g
4491
s%@host_vendor@%$host_vendor%g
4492
s%@host_os@%$host_os%g
4496
s%@LIBTOOL@%$LIBTOOL%g
4498
s%@GSM_VERSION@%$GSM_VERSION%g
4499
s%@COMPILE_INTL_TRUE@%$COMPILE_INTL_TRUE%g
4500
s%@COMPILE_INTL_FALSE@%$COMPILE_INTL_FALSE%g
4505
cat >> $CONFIG_STATUS <<\EOF
4507
# Split the substitutions into bite-sized pieces for seds with
4508
# small command number limits, like on Digital OSF/1 and HP-UX.
4509
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4510
ac_file=1 # Number of current file.
4511
ac_beg=1 # First line for current file.
4512
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4515
while $ac_more_lines; do
4516
if test $ac_beg -gt 1; then
4517
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4519
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4521
if test ! -s conftest.s$ac_file; then
4523
rm -f conftest.s$ac_file
4525
if test -z "$ac_sed_cmds"; then
4526
ac_sed_cmds="sed -f conftest.s$ac_file"
4528
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4530
ac_file=`expr $ac_file + 1`
4532
ac_end=`expr $ac_end + $ac_max_sed_cmds`
4535
if test -z "$ac_sed_cmds"; then
4540
cat >> $CONFIG_STATUS <<EOF
4542
CONFIG_FILES=\${CONFIG_FILES-"Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile
4543
doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in
4546
cat >> $CONFIG_STATUS <<\EOF
4547
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4548
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4550
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4551
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4552
*) ac_file_in="${ac_file}.in" ;;
4555
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4557
# Remove last slash and all that follows it. Not all systems have dirname.
4558
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4559
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4560
# The file is in a subdirectory.
4561
test ! -d "$ac_dir" && mkdir "$ac_dir"
4562
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4563
# A "../" for each directory in $ac_dir_suffix.
4564
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4566
ac_dir_suffix= ac_dots=
4569
case "$ac_given_srcdir" in
4571
if test -z "$ac_dots"; then top_srcdir=.
4572
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4573
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4575
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4576
top_srcdir="$ac_dots$ac_given_srcdir" ;;
4579
case "$ac_given_INSTALL" in
4580
[/$]*) INSTALL="$ac_given_INSTALL" ;;
4581
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4584
echo creating "$ac_file"
4586
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4588
*Makefile*) ac_comsub="1i\\
4589
# $configure_input" ;;
4593
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4595
s%@configure_input@%$configure_input%g
4596
s%@srcdir@%$srcdir%g
4597
s%@top_srcdir@%$top_srcdir%g
4598
s%@INSTALL@%$INSTALL%g
4599
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4603
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4604
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4606
# ac_d sets the value in "#define NAME VALUE" lines.
4607
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4608
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4611
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4612
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4613
ac_uB='\([ ]\)%\1#\2define\3'
4616
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4617
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4618
ac_eB='$%\1#\2define\3'
4622
if test "${CONFIG_HEADERS+set}" != set; then
4624
cat >> $CONFIG_STATUS <<EOF
4625
CONFIG_HEADERS="gsm_config.h"
4627
cat >> $CONFIG_STATUS <<\EOF
4629
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4630
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4632
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4633
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4634
*) ac_file_in="${ac_file}.in" ;;
4637
echo creating $ac_file
4639
rm -f conftest.frag conftest.in conftest.out
4640
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4641
cat $ac_file_inputs > conftest.in
4645
# Transform confdefs.h into a sed script conftest.vals that substitutes
4646
# the proper values into config.h.in to produce config.h. And first:
4647
# Protect against being on the right side of a sed subst in config.status.
4648
# Protect against being in an unquoted here document in config.status.
4650
cat > conftest.hdr <<\EOF
4653
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4657
sed -n -f conftest.hdr confdefs.h > conftest.vals
4660
# This sed command replaces #undef with comments. This is necessary, for
4661
# example, in the case of _POSIX_SOURCE, which is predefined and required
4662
# on some systems where configure will not decide to define it.
4663
cat >> conftest.vals <<\EOF
4664
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4667
# Break up conftest.vals because some shells have a limit on
4668
# the size of here documents, and old seds have small limits too.
4673
ac_lines=`grep -c . conftest.vals`
4674
# grep -c gives empty output for an empty file on some AIX systems.
4675
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4676
# Write a limited-size here document to conftest.frag.
4677
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4678
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4680
sed -f conftest.frag conftest.in > conftest.out
4682
mv conftest.out conftest.in
4684
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4686
mv conftest.tail conftest.vals
4690
cat >> $CONFIG_STATUS <<\EOF
4691
rm -f conftest.frag conftest.h
4692
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4693
cat conftest.in >> conftest.h
4695
if cmp -s $ac_file conftest.h 2>/dev/null; then
4696
echo "$ac_file is unchanged"
4699
# Remove last slash and all that follows it. Not all systems have dirname.
4700
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4701
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4702
# The file is in a subdirectory.
4703
test ! -d "$ac_dir" && mkdir "$ac_dir"
4706
mv conftest.h $ac_file
4712
cat >> $CONFIG_STATUS <<EOF
4713
ac_sources="$nls_cv_header_libgt"
4714
ac_dests="$nls_cv_header_intl"
4717
cat >> $CONFIG_STATUS <<\EOF
4718
srcdir=$ac_given_srcdir
4719
while test -n "$ac_sources"; do
4720
set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4721
set $ac_sources; ac_source=$1; shift; ac_sources=$*
4723
echo "linking $srcdir/$ac_source to $ac_dest"
4725
if test ! -r $srcdir/$ac_source; then
4726
{ echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4730
# Make relative symlinks.
4731
# Remove last slash and all that follows it. Not all systems have dirname.
4732
ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4733
if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4734
# The dest file is in a subdirectory.
4735
test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4736
ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4737
# A "../" for each directory in $ac_dest_dir_suffix.
4738
ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4740
ac_dest_dir_suffix= ac_dots=
4744
[/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4745
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4748
# Make a symlink if possible; otherwise try a hard link.
4749
if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4750
ln $srcdir/$ac_source $ac_dest; then :
4752
{ echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4756
cat >> $CONFIG_STATUS <<EOF
4761
cat >> $CONFIG_STATUS <<\EOF
4762
case "$CONFIG_FILES" in *po/Makefile.in*)
4763
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
4765
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4766
echo timestamp > stamp-h
4769
chmod +x $CONFIG_STATUS
4770
rm -fr confdefs* $ac_clean_files
4771
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4774
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile