]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprof/configure
* configure.in: Change version number to 2.9.4
[thirdparty/binutils-gdb.git] / gprof / configure
CommitLineData
7858d8dc
C
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
274e44ae 4# Generated automatically using autoconf version 2.12.1
8530ae8e 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7858d8dc
C
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
ba8e3a2e 14ac_help="$ac_help
86884cd1
ILT
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
274e44ae 18ac_help="$ac_help
86884cd1
ILT
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
274e44ae 22ac_help="$ac_help
86884cd1 23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16a02269
TT
24ac_help="$ac_help
25 --disable-nls do not use Native Language Support"
26ac_help="$ac_help
27 --with-included-gettext use the GNU gettext library included here"
2f1fec47
ILT
28ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
7858d8dc
C
31
32# Initialize some variables set by options.
33# The variables have the same names as the options, with
34# dashes changed to underlines.
35build=NONE
36cache_file=./config.cache
37exec_prefix=NONE
38host=NONE
39no_create=
40nonopt=NONE
41no_recursion=
42prefix=NONE
43program_prefix=NONE
44program_suffix=NONE
45program_transform_name=s,x,x,
46silent=
47site=
48srcdir=
49target=NONE
50verbose=
51x_includes=NONE
52x_libraries=NONE
ba8e3a2e
ILT
53bindir='${exec_prefix}/bin'
54sbindir='${exec_prefix}/sbin'
55libexecdir='${exec_prefix}/libexec'
56datadir='${prefix}/share'
57sysconfdir='${prefix}/etc'
58sharedstatedir='${prefix}/com'
59localstatedir='${prefix}/var'
60libdir='${exec_prefix}/lib'
61includedir='${prefix}/include'
62oldincludedir='/usr/include'
63infodir='${prefix}/info'
64mandir='${prefix}/man'
7858d8dc
C
65
66# Initialize some other variables.
67subdirs=
ba8e3a2e 68MFLAGS= MAKEFLAGS=
c3de2a19 69SHELL=${CONFIG_SHELL-/bin/sh}
4947b15f
ILT
70# Maximum number of lines to put in a shell here document.
71ac_max_here_lines=12
7858d8dc
C
72
73ac_prev=
74for ac_option
75do
76
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
82 fi
83
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
88
89 # Accept the important Cygnus configure options, so we can diagnose typos.
90
91 case "$ac_option" in
92
ba8e3a2e
ILT
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
97
98 -build | --build | --buil | --bui | --bu)
7858d8dc 99 ac_prev=build ;;
ba8e3a2e 100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
7858d8dc
C
101 build="$ac_optarg" ;;
102
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
109
ba8e3a2e
ILT
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
115
7858d8dc
C
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
124
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
137
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
146
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
150
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155Usage: configure [options] [host]
156Options: [defaults in brackets after descriptions]
157Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
ba8e3a2e 166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7858d8dc 167 [same as prefix]
ba8e3a2e
ILT
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
7858d8dc
C
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
ba8e3a2e
ILT
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
187EOF
188 cat << EOF
7858d8dc
C
189Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
7858d8dc 200EOF
ba8e3a2e
ILT
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
7858d8dc
C
204 exit 0 ;;
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
210
ba8e3a2e
ILT
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
227
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
234
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
248
7858d8dc
C
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
ba8e3a2e
ILT
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
269
7858d8dc
C
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
274
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
281
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
288
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
ba8e3a2e
ILT
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
326
7858d8dc
C
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
331
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
336
ba8e3a2e
ILT
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
343
7858d8dc
C
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
348
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
351
352 -version | --version | --versio | --versi | --vers)
274e44ae 353 echo "configure generated by autoconf version 2.12.1"
7858d8dc
C
354 exit 0 ;;
355
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
368
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
377
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
381
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
388
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
395
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 ;;
398
ba8e3a2e 399 *)
7858d8dc
C
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 fi
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 fi
406 nonopt="$ac_option"
407 ;;
408
409 esac
410done
411
412if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414fi
415
416trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418# File descriptor usage:
419# 0 standard input
420# 1 file creation
421# 2 errors and warnings
422# 3 some systems may open it to /dev/tty
423# 4 used on the Kubota Titan
424# 6 checking for... messages and results
425# 5 compiler messages saved in config.log
426if test "$silent" = yes; then
427 exec 6>/dev/null
428else
429 exec 6>&1
430fi
431exec 5>./config.log
432
433echo "\
434This file contains any messages produced by compilers while
435running configure, to aid debugging if configure makes a mistake.
436" 1>&5
437
438# Strip out --no-create and --no-recursion so they do not pile up.
439# Also quote any args containing shell metacharacters.
440ac_configure_args=
441for ac_arg
442do
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452done
453
454# NLS nuisances.
4947b15f
ILT
455# Only set these to C if already set. These must not be set unconditionally
456# because not all systems understand e.g. LANG=C (notably SCO).
457# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458# Non-C LC_CTYPE values break the ctype check.
7858d8dc 459if test "${LANG+set}" = set; then LANG=C; export LANG; fi
4947b15f
ILT
460if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
7858d8dc
C
463
464# confdefs.h avoids OS command line length limits that DEFS can exceed.
465rm -rf conftest* confdefs.h
466# AIX cpp loses on an empty file, so make sure it contains at least a newline.
467echo > confdefs.h
468
469# A filename unique to this package, relative to the directory that
470# configure is in, which we can look for to find out if srcdir is correct.
471ac_unique_file=gprof.c
472
473# Find the source files, if location was not specified.
474if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
483 fi
484else
485 ac_srcdir_defaulted=no
486fi
487if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 fi
493fi
494srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496# Prefer explicitly selected file to automatically selected ones.
497if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 fi
503fi
504for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
508 fi
509done
510
511if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514else
515 echo "creating cache $cache_file"
516 > $cache_file
517fi
518
519ac_ext=c
520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ea2488ad
ILT
521ac_cpp='$CPP $CPPFLAGS'
522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4947b15f 524cross_compiling=$ac_cv_prog_cc_cross
7858d8dc
C
525
526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
533 fi
534else
535 ac_n= ac_c='\c' ac_t=
536fi
537
538
539
2f1fec47
ILT
540ac_aux_dir=
541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
550 fi
551done
552if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554fi
555ac_config_guess=$ac_aux_dir/config.guess
556ac_config_sub=$ac_aux_dir/config.sub
557ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558
559
560# Do some error checking and defaulting for the host and target type.
561# The inputs are:
562# configure --host=HOST --target=TARGET --build=BUILD NONOPT
563#
564# The rules are:
565# 1. You are not allowed to specify --host, --target, and nonopt at the
566# same time.
567# 2. Host defaults to nonopt.
568# 3. If nonopt is not specified, then host defaults to the current host,
569# as determined by config.guess.
570# 4. Target and build default to nonopt.
571# 5. If nonopt is not specified, then target and build default to host.
572
573# The aliases save the names the user supplied, while $host etc.
574# will get canonicalized.
575case $host---$target---$nonopt in
576NONE---*---* | *---NONE---* | *---*---NONE) ;;
577*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
578esac
579
580
581# Make sure we can run config.sub.
274e44ae 582if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2f1fec47
ILT
583else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584fi
585
586echo $ac_n "checking host system type""... $ac_c" 1>&6
16a02269 587echo "configure:588: checking host system type" >&5
2f1fec47
ILT
588
589host_alias=$host
590case "$host_alias" in
591NONE)
592 case $nonopt in
593 NONE)
274e44ae 594 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2f1fec47
ILT
595 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
596 fi ;;
597 *) host_alias=$nonopt ;;
598 esac ;;
599esac
600
274e44ae 601host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2f1fec47
ILT
602host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605echo "$ac_t""$host" 1>&6
606
607echo $ac_n "checking target system type""... $ac_c" 1>&6
16a02269 608echo "configure:609: checking target system type" >&5
2f1fec47
ILT
609
610target_alias=$target
611case "$target_alias" in
612NONE)
613 case $nonopt in
614 NONE) target_alias=$host_alias ;;
615 *) target_alias=$nonopt ;;
616 esac ;;
617esac
618
274e44ae 619target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2f1fec47
ILT
620target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623echo "$ac_t""$target" 1>&6
624
625echo $ac_n "checking build system type""... $ac_c" 1>&6
16a02269 626echo "configure:627: checking build system type" >&5
2f1fec47
ILT
627
628build_alias=$build
629case "$build_alias" in
630NONE)
631 case $nonopt in
632 NONE) build_alias=$host_alias ;;
633 *) build_alias=$nonopt ;;
634 esac ;;
635esac
636
274e44ae 637build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2f1fec47
ILT
638build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641echo "$ac_t""$build" 1>&6
642
643test "$host_alias" != "$target_alias" &&
644 test "$program_prefix$program_suffix$program_transform_name" = \
645 NONENONEs,x,x, &&
646 program_prefix=${target_alias}-
647
648
649# Find a good install program. We prefer a C program (faster),
650# so one script is as good as another. But avoid the broken or
651# incompatible versions:
652# SysV /etc/install, /usr/sbin/install
653# SunOS /usr/etc/install
654# IRIX /sbin/install
655# AIX /bin/install
c3de2a19 656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2f1fec47
ILT
657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
659# ./install, which can be erroneously created by make from ./install.sh.
660echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
16a02269 661echo "configure:662: checking for a BSD compatible install" >&5
2f1fec47
ILT
662if test -z "$INSTALL"; then
663if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665else
666 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
667 for ac_dir in $PATH; do
668 # Account for people who put trailing slashes in PATH elements.
669 case "$ac_dir/" in
670 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
671 *)
672 # OSF1 and SCO ODT 3.0 have their own names for install.
c3de2a19
ILT
673 # Don't use installbsd from OSF since it installs stuff as root
674 # by default.
675 for ac_prog in ginstall scoinst install; do
2f1fec47
ILT
676 if test -f $ac_dir/$ac_prog; then
677 if test $ac_prog = install &&
678 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
679 # AIX install. It has an incompatible calling convention.
2f1fec47
ILT
680 :
681 else
682 ac_cv_path_install="$ac_dir/$ac_prog -c"
683 break 2
684 fi
685 fi
686 done
687 ;;
688 esac
689 done
690 IFS="$ac_save_IFS"
691
692fi
693 if test "${ac_cv_path_install+set}" = set; then
694 INSTALL="$ac_cv_path_install"
695 else
696 # As a last resort, use the slow shell script. We don't cache a
697 # path for INSTALL within a source directory, because that will
698 # break other packages using the cache if that directory is
699 # removed, or if the path is relative.
700 INSTALL="$ac_install_sh"
701 fi
702fi
703echo "$ac_t""$INSTALL" 1>&6
704
705# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
706# It thinks the first close brace ends the variable substitution.
707test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
708
709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
710
711
712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
713
2f1fec47 714echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
16a02269 715echo "configure:716: checking whether build environment is sane" >&5
2f1fec47
ILT
716# Just in case
717sleep 1
718echo timestamp > conftestfile
719# Do `set' in a subshell so we don't clobber the current shell's
720# arguments. Must try -L first in case configure is actually a
721# symlink; some systems play weird games with the mod time of symlinks
722# (eg FreeBSD returns the mod time of the symlink's containing
723# directory).
724if (
725 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
86884cd1 726 if test "$*" = "X"; then
2f1fec47
ILT
727 # -L didn't work.
728 set X `ls -t $srcdir/configure conftestfile`
729 fi
86884cd1
ILT
730 if test "$*" != "X $srcdir/configure conftestfile" \
731 && test "$*" != "X conftestfile $srcdir/configure"; then
732
733 # If neither matched, then we have a broken ls. This can happen
734 # if, for instance, CONFIG_SHELL is bash and it inherits a
735 # broken ls alias from the environment. This has actually
736 # happened. Such a system could not be considered "sane".
737 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
738alias in your environment" 1>&2; exit 1; }
739 fi
740
2f1fec47
ILT
741 test "$2" = conftestfile
742 )
743then
744 # Ok.
745 :
746else
747 { echo "configure: error: newly created file is older than distributed files!
748Check your system clock" 1>&2; exit 1; }
749fi
750rm -f conftest*
751echo "$ac_t""yes" 1>&6
752if test "$program_transform_name" = s,x,x,; then
753 program_transform_name=
754else
755 # Double any \ or $. echo might interpret backslashes.
756 cat <<\EOF_SED > conftestsed
757s,\\,\\\\,g; s,\$,$$,g
758EOF_SED
759 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
760 rm -f conftestsed
761fi
762test "$program_prefix" != NONE &&
763 program_transform_name="s,^,${program_prefix},; $program_transform_name"
764# Use a double $ so make ignores it.
765test "$program_suffix" != NONE &&
766 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
767
768# sed with no file args requires a program.
769test "$program_transform_name" = "" && program_transform_name="s,x,x,"
770
86884cd1 771echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
16a02269 772echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
86884cd1
ILT
773set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
774if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776else
777 cat > conftestmake <<\EOF
778all:
779 @echo 'ac_maketemp="${MAKE}"'
780EOF
781# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
782eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
783if test -n "$ac_maketemp"; then
784 eval ac_cv_prog_make_${ac_make}_set=yes
785else
786 eval ac_cv_prog_make_${ac_make}_set=no
787fi
788rm -f conftestmake
789fi
790if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
791 echo "$ac_t""yes" 1>&6
792 SET_MAKE=
793else
794 echo "$ac_t""no" 1>&6
795 SET_MAKE="MAKE=${MAKE-make}"
796fi
797
798
799PACKAGE=gprof
800
cc4f98f5 801VERSION=2.9.4
86884cd1
ILT
802
803if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
804 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
805fi
806cat >> confdefs.h <<EOF
807#define PACKAGE "$PACKAGE"
808EOF
809
810cat >> confdefs.h <<EOF
811#define VERSION "$VERSION"
812EOF
813
814
815
2f1fec47
ILT
816missing_dir=`cd $ac_aux_dir && pwd`
817echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
16a02269 818echo "configure:819: checking for working aclocal" >&5
2f1fec47
ILT
819# Run test in a subshell; some versions of sh will print an error if
820# an executable is not found, even if stderr is redirected.
50fb7977
ILT
821# Redirect stdin to placate older versions of autoconf. Sigh.
822if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
823 ACLOCAL=aclocal
824 echo "$ac_t""found" 1>&6
825else
826 ACLOCAL="$missing_dir/missing aclocal"
827 echo "$ac_t""missing" 1>&6
828fi
829
830echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
16a02269 831echo "configure:832: checking for working autoconf" >&5
2f1fec47
ILT
832# Run test in a subshell; some versions of sh will print an error if
833# an executable is not found, even if stderr is redirected.
50fb7977
ILT
834# Redirect stdin to placate older versions of autoconf. Sigh.
835if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
836 AUTOCONF=autoconf
837 echo "$ac_t""found" 1>&6
838else
839 AUTOCONF="$missing_dir/missing autoconf"
840 echo "$ac_t""missing" 1>&6
841fi
842
843echo $ac_n "checking for working automake""... $ac_c" 1>&6
16a02269 844echo "configure:845: checking for working automake" >&5
2f1fec47
ILT
845# Run test in a subshell; some versions of sh will print an error if
846# an executable is not found, even if stderr is redirected.
50fb7977
ILT
847# Redirect stdin to placate older versions of autoconf. Sigh.
848if (automake --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
849 AUTOMAKE=automake
850 echo "$ac_t""found" 1>&6
851else
852 AUTOMAKE="$missing_dir/missing automake"
853 echo "$ac_t""missing" 1>&6
854fi
855
856echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
16a02269 857echo "configure:858: checking for working autoheader" >&5
2f1fec47
ILT
858# Run test in a subshell; some versions of sh will print an error if
859# an executable is not found, even if stderr is redirected.
50fb7977
ILT
860# Redirect stdin to placate older versions of autoconf. Sigh.
861if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
862 AUTOHEADER=autoheader
863 echo "$ac_t""found" 1>&6
864else
865 AUTOHEADER="$missing_dir/missing autoheader"
866 echo "$ac_t""missing" 1>&6
867fi
868
869echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
16a02269 870echo "configure:871: checking for working makeinfo" >&5
2f1fec47
ILT
871# Run test in a subshell; some versions of sh will print an error if
872# an executable is not found, even if stderr is redirected.
50fb7977
ILT
873# Redirect stdin to placate older versions of autoconf. Sigh.
874if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2f1fec47
ILT
875 MAKEINFO=makeinfo
876 echo "$ac_t""found" 1>&6
877else
878 MAKEINFO="$missing_dir/missing makeinfo"
879 echo "$ac_t""missing" 1>&6
880fi
881
86884cd1
ILT
882
883
884# Check whether --enable-shared or --disable-shared was given.
885if test "${enable_shared+set}" = set; then
886 enableval="$enable_shared"
887 p=${PACKAGE-default}
888case "$enableval" in
889yes) enable_shared=yes ;;
890no) enable_shared=no ;;
891*)
892 enable_shared=no
893 # Look at the argument we got. We use all the common list separators.
894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
895 for pkg in $enableval; do
896 if test "X$pkg" = "X$p"; then
897 enable_shared=yes
898 fi
899 done
900 IFS="$ac_save_ifs"
901 ;;
902esac
2f1fec47 903else
86884cd1 904 enable_shared=yes
2f1fec47 905fi
86884cd1
ILT
906
907# Check whether --enable-static or --disable-static was given.
908if test "${enable_static+set}" = set; then
909 enableval="$enable_static"
910 p=${PACKAGE-default}
911case "$enableval" in
912yes) enable_static=yes ;;
913no) enable_static=no ;;
914*)
915 enable_static=no
916 # Look at the argument we got. We use all the common list separators.
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
918 for pkg in $enableval; do
919 if test "X$pkg" = "X$p"; then
920 enable_static=yes
921 fi
922 done
923 IFS="$ac_save_ifs"
924 ;;
925esac
2f1fec47 926else
86884cd1 927 enable_static=yes
2f1fec47
ILT
928fi
929
fa1a1b32
ILT
930# Extract the first word of "ranlib", so it can be a program name with args.
931set dummy ranlib; ac_word=$2
932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16a02269 933echo "configure:934: checking for $ac_word" >&5
fa1a1b32
ILT
934if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936else
937 if test -n "$RANLIB"; then
938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
939else
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
941 for ac_dir in $PATH; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_RANLIB="ranlib"
945 break
946 fi
947 done
948 IFS="$ac_save_ifs"
949 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
950fi
951fi
952RANLIB="$ac_cv_prog_RANLIB"
953if test -n "$RANLIB"; then
954 echo "$ac_t""$RANLIB" 1>&6
955else
956 echo "$ac_t""no" 1>&6
957fi
958
7858d8dc
C
959# Extract the first word of "gcc", so it can be a program name with args.
960set dummy gcc; ac_word=$2
961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16a02269 962echo "configure:963: checking for $ac_word" >&5
7858d8dc
C
963if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
965else
966 if test -n "$CC"; then
967 ac_cv_prog_CC="$CC" # Let the user override the test.
968else
969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
970 for ac_dir in $PATH; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_CC="gcc"
974 break
975 fi
976 done
977 IFS="$ac_save_ifs"
7858d8dc
C
978fi
979fi
980CC="$ac_cv_prog_CC"
981if test -n "$CC"; then
982 echo "$ac_t""$CC" 1>&6
983else
984 echo "$ac_t""no" 1>&6
985fi
986
ea2488ad
ILT
987if test -z "$CC"; then
988 # Extract the first word of "cc", so it can be a program name with args.
989set dummy cc; ac_word=$2
990echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16a02269 991echo "configure:992: checking for $ac_word" >&5
ea2488ad
ILT
992if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
994else
995 if test -n "$CC"; then
996 ac_cv_prog_CC="$CC" # Let the user override the test.
997else
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
999 ac_prog_rejected=no
1000 for ac_dir in $PATH; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1003 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1004 ac_prog_rejected=yes
1005 continue
1006 fi
1007 ac_cv_prog_CC="cc"
1008 break
1009 fi
1010 done
1011 IFS="$ac_save_ifs"
1012if test $ac_prog_rejected = yes; then
1013 # We found a bogon in the path, so make sure we never use it.
1014 set dummy $ac_cv_prog_CC
1015 shift
1016 if test $# -gt 0; then
1017 # We chose a different compiler from the bogus one.
1018 # However, it has the same basename, so the bogon will be chosen
1019 # first if we set CC to just the basename; use the full file name.
1020 shift
1021 set dummy "$ac_dir/$ac_word" "$@"
1022 shift
1023 ac_cv_prog_CC="$@"
1024 fi
1025fi
1026fi
1027fi
1028CC="$ac_cv_prog_CC"
1029if test -n "$CC"; then
1030 echo "$ac_t""$CC" 1>&6
1031else
1032 echo "$ac_t""no" 1>&6
1033fi
1034
1035 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1036fi
7858d8dc 1037
4947b15f 1038echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
16a02269 1039echo "configure:1040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
4947b15f
ILT
1040
1041ac_ext=c
1042# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043ac_cpp='$CPP $CPPFLAGS'
1044ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046cross_compiling=$ac_cv_prog_cc_cross
1047
1048cat > conftest.$ac_ext <<EOF
16a02269 1049#line 1050 "configure"
4947b15f
ILT
1050#include "confdefs.h"
1051main(){return(0);}
1052EOF
16a02269 1053if { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4947b15f
ILT
1054 ac_cv_prog_cc_works=yes
1055 # If we can't run a trivial program, we are probably using a cross compiler.
1056 if (./conftest; exit) 2>/dev/null; then
1057 ac_cv_prog_cc_cross=no
1058 else
1059 ac_cv_prog_cc_cross=yes
1060 fi
1061else
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1064 ac_cv_prog_cc_works=no
1065fi
1066rm -fr conftest*
1067
1068echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1069if test $ac_cv_prog_cc_works = no; then
1070 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1071fi
1072echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
16a02269 1073echo "configure:1074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
4947b15f
ILT
1074echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1075cross_compiling=$ac_cv_prog_cc_cross
1076
7858d8dc 1077echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
16a02269 1078echo "configure:1079: checking whether we are using GNU C" >&5
7858d8dc
C
1079if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081else
1082 cat > conftest.c <<EOF
1083#ifdef __GNUC__
1084 yes;
1085#endif
1086EOF
16a02269 1087if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7858d8dc
C
1088 ac_cv_prog_gcc=yes
1089else
1090 ac_cv_prog_gcc=no
1091fi
1092fi
ba8e3a2e 1093
7858d8dc 1094echo "$ac_t""$ac_cv_prog_gcc" 1>&6
4947b15f 1095
7858d8dc
C
1096if test $ac_cv_prog_gcc = yes; then
1097 GCC=yes
4947b15f
ILT
1098 ac_test_CFLAGS="${CFLAGS+set}"
1099 ac_save_CFLAGS="$CFLAGS"
1100 CFLAGS=
1101 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
16a02269 1102echo "configure:1103: checking whether ${CC-cc} accepts -g" >&5
4947b15f 1103if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7858d8dc
C
1104 echo $ac_n "(cached) $ac_c" 1>&6
1105else
1106 echo 'void f(){}' > conftest.c
1107if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
4947b15f 1108 ac_cv_prog_cc_g=yes
7858d8dc 1109else
4947b15f 1110 ac_cv_prog_cc_g=no
7858d8dc
C
1111fi
1112rm -f conftest*
1113
1114fi
ba8e3a2e 1115
4947b15f
ILT
1116echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1117 if test "$ac_test_CFLAGS" = set; then
1118 CFLAGS="$ac_save_CFLAGS"
1119 elif test $ac_cv_prog_cc_g = yes; then
1120 CFLAGS="-g -O2"
1121 else
1122 CFLAGS="-O2"
7858d8dc
C
1123 fi
1124else
1125 GCC=
1126 test "${CFLAGS+set}" = set || CFLAGS="-g"
1127fi
1128
274e44ae
ILT
1129# Check whether --with-gnu-ld or --without-gnu-ld was given.
1130if test "${with_gnu_ld+set}" = set; then
1131 withval="$with_gnu_ld"
1132 test "$withval" = no || with_gnu_ld=yes
1133else
1134 with_gnu_ld=no
39c3964f 1135fi
274e44ae 1136
fa1a1b32
ILT
1137
1138ac_prog=ld
1139if test "$ac_cv_prog_gcc" = yes; then
1140 # Check if gcc -print-prog-name=ld gives a path.
1141 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
16a02269 1142echo "configure:1143: checking for ld used by GCC" >&5
fa1a1b32
ILT
1143 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1144 case "$ac_prog" in
1145 # Accept absolute paths.
86884cd1 1146 /* | [A-Za-z]:\\*)
fa1a1b32
ILT
1147 test -z "$LD" && LD="$ac_prog"
1148 ;;
1149 "")
1150 # If it fails, then pretend we aren't using GCC.
1151 ac_prog=ld
1152 ;;
1153 *)
1154 # If it is relative, then search for the first ld in PATH.
1155 with_gnu_ld=unknown
1156 ;;
1157 esac
1158elif test "$with_gnu_ld" = yes; then
274e44ae 1159 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
16a02269 1160echo "configure:1161: checking for GNU ld" >&5
274e44ae
ILT
1161else
1162 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
16a02269 1163echo "configure:1164: checking for non-GNU ld" >&5
274e44ae
ILT
1164fi
1165if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167else
fa1a1b32 1168 if test -z "$LD"; then
274e44ae
ILT
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1170 for ac_dir in $PATH; do
1171 test -z "$ac_dir" && ac_dir=.
fa1a1b32
ILT
1172 if test -f "$ac_dir/$ac_prog"; then
1173 ac_cv_path_LD="$ac_dir/$ac_prog"
274e44ae
ILT
1174 # Check to see if the program is GNU ld. I'd rather use --version,
1175 # but apparently some GNU ld's only accept -v.
1176 # Break only if it was the GNU/non-GNU ld that we prefer.
fa1a1b32
ILT
1177 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1178 test "$with_gnu_ld" != no && break
274e44ae
ILT
1179 else
1180 test "$with_gnu_ld" != yes && break
1181 fi
1182 fi
1183 done
1184 IFS="$ac_save_ifs"
fa1a1b32 1185else
42a62317 1186 ac_cv_path_LD="$LD" # Let the user override the test with a path.
fa1a1b32 1187fi
274e44ae
ILT
1188fi
1189
1190LD="$ac_cv_path_LD"
1191if test -n "$LD"; then
1192 echo "$ac_t""$LD" 1>&6
1193else
1194 echo "$ac_t""no" 1>&6
1195fi
1196test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1197
fa1a1b32 1198echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
16a02269 1199echo "configure:1200: checking if the linker ($LD) is GNU ld" >&5
274e44ae
ILT
1200if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202else
1203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
fa1a1b32 1204if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
274e44ae
ILT
1205 ac_cv_prog_gnu_ld=yes
1206else
1207 ac_cv_prog_gnu_ld=no
1208fi
1209fi
1210
1211echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1212
1213
fa1a1b32 1214echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
16a02269 1215echo "configure:1216: checking for BSD-compatible nm" >&5
fa1a1b32
ILT
1216if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218else
16a02269 1219 if test -z "$NM"; then
fa1a1b32
ILT
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1221 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
86884cd1 1222 test -z "$ac_dir" && ac_dir=.
fa1a1b32
ILT
1223 if test -f $ac_dir/nm; then
1224 # Check to see if the nm accepts a BSD-compat flag.
86884cd1 1225 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
fa1a1b32 1226 # nm: unknown option "B" ignored
86884cd1 1227 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
fa1a1b32 1228 ac_cv_path_NM="$ac_dir/nm -B"
86884cd1 1229 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
fa1a1b32
ILT
1230 ac_cv_path_NM="$ac_dir/nm -p"
1231 else
1232 ac_cv_path_NM="$ac_dir/nm"
1233 fi
1234 break
1235 fi
1236 done
1237 IFS="$ac_save_ifs"
1238 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
16a02269
TT
1239else
1240 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1241fi
fa1a1b32
ILT
1242fi
1243
1244NM="$ac_cv_path_NM"
1245echo "$ac_t""$NM" 1>&6
1246
1247
274e44ae 1248echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
16a02269 1249echo "configure:1250: checking whether ln -s works" >&5
274e44ae
ILT
1250if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252else
1253 rm -f conftestdata
1254if ln -s X conftestdata 2>/dev/null
1255then
1256 rm -f conftestdata
1257 ac_cv_prog_LN_S="ln -s"
1258else
1259 ac_cv_prog_LN_S=ln
1260fi
1261fi
1262LN_S="$ac_cv_prog_LN_S"
1263if test "$ac_cv_prog_LN_S" = "ln -s"; then
1264 echo "$ac_t""yes" 1>&6
1265else
1266 echo "$ac_t""no" 1>&6
1267fi
1268
16a02269
TT
1269if test $host != $build; then
1270 ac_tool_prefix=${host_alias}-
1271else
1272 ac_tool_prefix=
1273fi
1274
274e44ae 1275# Always use our own libtool.
c3de2a19 1276LIBTOOL='$(SHELL) $(top_builddir)/libtool'
274e44ae 1277
86884cd1
ILT
1278# Check for any special flags to pass to ltconfig.
1279libtool_flags=
1280test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1281test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
274e44ae
ILT
1282test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1283test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1284test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1285
1286# Some flags need to be propagated to the compiler or linker for good
1287# libtool support.
1288case "$host" in
86884cd1 1289*-*-irix6*)
641146fe 1290 # Find out which ABI we are using.
16a02269
TT
1291 echo '#line 1292 "configure"' > conftest.$ac_ext
1292 if { (eval echo configure:1293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
641146fe
ILT
1293 case "`/usr/bin/file conftest.o`" in
1294 *32-bit*)
1295 LD="${LD-ld} -32"
fa1a1b32 1296 ;;
641146fe
ILT
1297 *N32*)
1298 LD="${LD-ld} -n32"
1299 ;;
1300 *64-bit*)
1301 LD="${LD-ld} -64"
fa1a1b32
ILT
1302 ;;
1303 esac
641146fe
ILT
1304 fi
1305 rm -rf conftest*
274e44ae
ILT
1306 ;;
1307
1308*-*-sco3.2v5*)
1309 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1310 CFLAGS="$CFLAGS -belf"
1311 ;;
16a02269
TT
1312
1313*-*-cygwin32*)
1314 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1315set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317echo "configure:1318: checking for $ac_word" >&5
1318if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320else
1321 if test -n "$DLLTOOL"; then
1322 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1323else
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1325 for ac_dir in $PATH; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1329 break
1330 fi
1331 done
1332 IFS="$ac_save_ifs"
1333fi
1334fi
1335DLLTOOL="$ac_cv_prog_DLLTOOL"
1336if test -n "$DLLTOOL"; then
1337 echo "$ac_t""$DLLTOOL" 1>&6
1338else
1339 echo "$ac_t""no" 1>&6
1340fi
1341
1342
1343if test -z "$ac_cv_prog_DLLTOOL"; then
1344if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "dlltool", so it can be a program name with args.
1346set dummy dlltool; ac_word=$2
1347echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1348echo "configure:1349: checking for $ac_word" >&5
1349if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1351else
1352 if test -n "$DLLTOOL"; then
1353 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1354else
1355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1356 for ac_dir in $PATH; do
1357 test -z "$ac_dir" && ac_dir=.
1358 if test -f $ac_dir/$ac_word; then
1359 ac_cv_prog_DLLTOOL="dlltool"
1360 break
1361 fi
1362 done
1363 IFS="$ac_save_ifs"
1364 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1365fi
1366fi
1367DLLTOOL="$ac_cv_prog_DLLTOOL"
1368if test -n "$DLLTOOL"; then
1369 echo "$ac_t""$DLLTOOL" 1>&6
1370else
1371 echo "$ac_t""no" 1>&6
1372fi
1373
1374else
1375 DLLTOOL="false"
1376fi
1377fi
1378
1379# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1380set dummy ${ac_tool_prefix}as; ac_word=$2
1381echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382echo "configure:1383: checking for $ac_word" >&5
1383if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385else
1386 if test -n "$AS"; then
1387 ac_cv_prog_AS="$AS" # Let the user override the test.
1388else
1389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1390 for ac_dir in $PATH; do
1391 test -z "$ac_dir" && ac_dir=.
1392 if test -f $ac_dir/$ac_word; then
1393 ac_cv_prog_AS="${ac_tool_prefix}as"
1394 break
1395 fi
1396 done
1397 IFS="$ac_save_ifs"
1398fi
1399fi
1400AS="$ac_cv_prog_AS"
1401if test -n "$AS"; then
1402 echo "$ac_t""$AS" 1>&6
1403else
1404 echo "$ac_t""no" 1>&6
1405fi
1406
1407
1408if test -z "$ac_cv_prog_AS"; then
1409if test -n "$ac_tool_prefix"; then
1410 # Extract the first word of "as", so it can be a program name with args.
1411set dummy as; ac_word=$2
1412echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413echo "configure:1414: checking for $ac_word" >&5
1414if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416else
1417 if test -n "$AS"; then
1418 ac_cv_prog_AS="$AS" # Let the user override the test.
1419else
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1421 for ac_dir in $PATH; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1424 ac_cv_prog_AS="as"
1425 break
1426 fi
1427 done
1428 IFS="$ac_save_ifs"
1429 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1430fi
1431fi
1432AS="$ac_cv_prog_AS"
1433if test -n "$AS"; then
1434 echo "$ac_t""$AS" 1>&6
1435else
1436 echo "$ac_t""no" 1>&6
1437fi
1438
1439else
1440 AS="false"
1441fi
1442fi
1443
1444
1445 ;;
1446
274e44ae
ILT
1447esac
1448
1449# Actually configure libtool. ac_aux_dir is where install-sh is found.
1450CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
fa1a1b32 1451LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
16a02269 1452DLLTOOL="$DLLTOOL" AS="$AS" \
274e44ae
ILT
1453${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1454$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1455|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1456
1457
1458
1459
1460
1461
1462# Extract the first word of "gcc", so it can be a program name with args.
1463set dummy gcc; ac_word=$2
1464echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16a02269 1465echo "configure:1466: checking for $ac_word" >&5
274e44ae
ILT
1466if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1473 for ac_dir in $PATH; do
1474 test -z "$ac_dir" && ac_dir=.
1475 if test -f $ac_dir/$ac_word; then
1476 ac_cv_prog_CC="gcc"
1477 break
1478 fi
1479 done
1480 IFS="$ac_save_ifs"
1481fi
1482fi
1483CC="$ac_cv_prog_CC"
1484if test -n "$CC"; then
1485 echo "$ac_t""$CC" 1>&6
1486else
1487 echo "$ac_t""no" 1>&6
1488fi
1489
1490if test -z "$CC"; then
1491 # Extract the first word of "cc", so it can be a program name with args.
1492set dummy cc; ac_word=$2
1493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16a02269 1494echo "configure:1495: checking for $ac_word" >&5
274e44ae
ILT
1495if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1497else
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1500else
1501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1502 ac_prog_rejected=no
1503 for ac_dir in $PATH; do
1504 test -z "$ac_dir" && ac_dir=.
1505 if test -f $ac_dir/$ac_word; then
1506 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1507 ac_prog_rejected=yes
1508 continue
1509 fi
1510 ac_cv_prog_CC="cc"
1511 break
1512 fi
1513 done
1514 IFS="$ac_save_ifs"
1515if test $ac_prog_rejected = yes; then
1516 # We found a bogon in the path, so make sure we never use it.
1517 set dummy $ac_cv_prog_CC
1518 shift
1519 if test $# -gt 0; then
1520 # We chose a different compiler from the bogus one.
1521 # However, it has the same basename, so the bogon will be chosen
1522 # first if we set CC to just the basename; use the full file name.
1523 shift
1524 set dummy "$ac_dir/$ac_word" "$@"
1525 shift
1526 ac_cv_prog_CC="$@"
1527 fi
1528fi
1529fi
1530fi
1531CC="$ac_cv_prog_CC"
1532if test -n "$CC"; then
1533 echo "$ac_t""$CC" 1>&6
1534else
1535 echo "$ac_t""no" 1>&6
1536fi
1537
1538 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1539fi
1540
1541echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
16a02269 1542echo "configure:1543: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
274e44ae
ILT
1543
1544ac_ext=c
1545# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1546ac_cpp='$CPP $CPPFLAGS'
1547ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1548ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1549cross_compiling=$ac_cv_prog_cc_cross
1550
1551cat > conftest.$ac_ext <<EOF
16a02269 1552#line 1553 "configure"
274e44ae
ILT
1553#include "confdefs.h"
1554main(){return(0);}
1555EOF
16a02269 1556if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
274e44ae
ILT
1557 ac_cv_prog_cc_works=yes
1558 # If we can't run a trivial program, we are probably using a cross compiler.
1559 if (./conftest; exit) 2>/dev/null; then
1560 ac_cv_prog_cc_cross=no
39c3964f 1561 else
274e44ae 1562 ac_cv_prog_cc_cross=yes
39c3964f 1563 fi
274e44ae
ILT
1564else
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 ac_cv_prog_cc_works=no
39c3964f 1568fi
274e44ae 1569rm -fr conftest*
39c3964f 1570
274e44ae
ILT
1571echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1572if test $ac_cv_prog_cc_works = no; then
1573 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1574fi
1575echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
16a02269 1576echo "configure:1577: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
274e44ae
ILT
1577echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1578cross_compiling=$ac_cv_prog_cc_cross
39c3964f 1579
274e44ae 1580echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
16a02269 1581echo "configure:1582: checking whether we are using GNU C" >&5
274e44ae
ILT
1582if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584else
1585 cat > conftest.c <<EOF
1586#ifdef __GNUC__
1587 yes;
1588#endif
1589EOF
16a02269 1590if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
274e44ae
ILT
1591 ac_cv_prog_gcc=yes
1592else
1593 ac_cv_prog_gcc=no
1594fi
1595fi
1596
1597echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1598
1599if test $ac_cv_prog_gcc = yes; then
1600 GCC=yes
1601 ac_test_CFLAGS="${CFLAGS+set}"
1602 ac_save_CFLAGS="$CFLAGS"
1603 CFLAGS=
1604 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
16a02269 1605echo "configure:1606: checking whether ${CC-cc} accepts -g" >&5
274e44ae
ILT
1606if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1608else
1609 echo 'void f(){}' > conftest.c
1610if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1611 ac_cv_prog_cc_g=yes
1612else
1613 ac_cv_prog_cc_g=no
1614fi
1615rm -f conftest*
1616
1617fi
1618
1619echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1620 if test "$ac_test_CFLAGS" = set; then
1621 CFLAGS="$ac_save_CFLAGS"
1622 elif test $ac_cv_prog_cc_g = yes; then
1623 CFLAGS="-g -O2"
1624 else
1625 CFLAGS="-O2"
1626 fi
1627else
1628 GCC=
1629 test "${CFLAGS+set}" = set || CFLAGS="-g"
1630fi
1631
1632
1633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
39c3964f
JM
1634
1635
e3c0e00b 1636echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
16a02269 1637echo "configure:1638: checking for POSIXized ISC" >&5
e3c0e00b
ILT
1638if test -d /etc/conf/kconfig.d &&
1639 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1640then
1641 echo "$ac_t""yes" 1>&6
1642 ISC=yes # If later tests want to check for ISC.
1643 cat >> confdefs.h <<\EOF
1644#define _POSIX_SOURCE 1
1645EOF
1646
1647 if test "$GCC" = yes; then
1648 CC="$CC -posix"
1649 else
1650 CC="$CC -Xp"
1651 fi
1652else
1653 echo "$ac_t""no" 1>&6
1654 ISC=
1655fi
1656
1657
16a02269
TT
1658ALL_LINGUAS=
1659echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1660echo "configure:1661: checking how to run the C preprocessor" >&5
1661# On Suns, sometimes $CPP names a directory.
1662if test -n "$CPP" && test -d "$CPP"; then
1663 CPP=
1664fi
1665if test -z "$CPP"; then
1666if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668else
1669 # This must be in double quotes, not single quotes, because CPP may get
1670 # substituted into the Makefile and "${CC-cc}" will confuse make.
1671 CPP="${CC-cc} -E"
1672 # On the NeXT, cc -E runs the code through the compiler's parser,
1673 # not just through cpp.
1674 cat > conftest.$ac_ext <<EOF
1675#line 1676 "configure"
1676#include "confdefs.h"
1677#include <assert.h>
1678Syntax Error
22395d7e 1679EOF
16a02269
TT
1680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681{ (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682ac_err=`grep -v '^ *+' conftest.out`
1683if test -z "$ac_err"; then
1684 :
2f1fec47 1685else
16a02269
TT
1686 echo "$ac_err" >&5
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1689 rm -rf conftest*
1690 CPP="${CC-cc} -E -traditional-cpp"
1691 cat > conftest.$ac_ext <<EOF
1692#line 1693 "configure"
1693#include "confdefs.h"
1694#include <assert.h>
1695Syntax Error
1696EOF
1697ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1698{ (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1699ac_err=`grep -v '^ *+' conftest.out`
1700if test -z "$ac_err"; then
1701 :
1702else
1703 echo "$ac_err" >&5
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 rm -rf conftest*
1707 CPP=/lib/cpp
2f1fec47 1708fi
16a02269
TT
1709rm -f conftest*
1710fi
1711rm -f conftest*
1712 ac_cv_prog_CPP="$CPP"
1713fi
1714 CPP="$ac_cv_prog_CPP"
1715else
1716 ac_cv_prog_CPP="$CPP"
1717fi
1718echo "$ac_t""$CPP" 1>&6
2f1fec47 1719
16a02269
TT
1720echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1721echo "configure:1722: checking for ANSI C header files" >&5
1722if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2f1fec47
ILT
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724else
274e44ae 1725 cat > conftest.$ac_ext <<EOF
16a02269 1726#line 1727 "configure"
274e44ae 1727#include "confdefs.h"
16a02269
TT
1728#include <stdlib.h>
1729#include <stdarg.h>
1730#include <string.h>
1731#include <float.h>
2f1fec47 1732EOF
16a02269
TT
1733ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734{ (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735ac_err=`grep -v '^ *+' conftest.out`
1736if test -z "$ac_err"; then
274e44ae 1737 rm -rf conftest*
16a02269 1738 ac_cv_header_stdc=yes
2f1fec47 1739else
16a02269 1740 echo "$ac_err" >&5
274e44ae
ILT
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1743 rm -rf conftest*
16a02269
TT
1744 ac_cv_header_stdc=no
1745fi
1746rm -f conftest*
1747
1748if test $ac_cv_header_stdc = yes; then
1749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1750cat > conftest.$ac_ext <<EOF
1751#line 1752 "configure"
1752#include "confdefs.h"
1753#include <string.h>
1754EOF
1755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1756 egrep "memchr" >/dev/null 2>&1; then
1757 :
1758else
1759 rm -rf conftest*
1760 ac_cv_header_stdc=no
2f1fec47
ILT
1761fi
1762rm -f conftest*
16a02269
TT
1763
1764fi
1765
1766if test $ac_cv_header_stdc = yes; then
1767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1768cat > conftest.$ac_ext <<EOF
1769#line 1770 "configure"
1770#include "confdefs.h"
1771#include <stdlib.h>
1772EOF
1773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1774 egrep "free" >/dev/null 2>&1; then
1775 :
1776else
1777 rm -rf conftest*
1778 ac_cv_header_stdc=no
1779fi
274e44ae 1780rm -f conftest*
16a02269 1781
2f1fec47 1782fi
2f1fec47 1783
16a02269
TT
1784if test $ac_cv_header_stdc = yes; then
1785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1786if test "$cross_compiling" = yes; then
1787 :
1788else
1789 cat > conftest.$ac_ext <<EOF
1790#line 1791 "configure"
1791#include "confdefs.h"
1792#include <ctype.h>
1793#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1794#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1795#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1796int main () { int i; for (i = 0; i < 256; i++)
1797if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1798exit (0); }
1799
1800EOF
1801if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1802then
1803 :
1804else
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1807 rm -fr conftest*
1808 ac_cv_header_stdc=no
1809fi
1810rm -fr conftest*
1811fi
1812
1813fi
1814fi
1815
1816echo "$ac_t""$ac_cv_header_stdc" 1>&6
1817if test $ac_cv_header_stdc = yes; then
1818 cat >> confdefs.h <<\EOF
1819#define STDC_HEADERS 1
1820EOF
1821
1822fi
1823
1824echo $ac_n "checking for working const""... $ac_c" 1>&6
1825echo "configure:1826: checking for working const" >&5
1826if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
c3de2a19
ILT
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828else
1829 cat > conftest.$ac_ext <<EOF
16a02269 1830#line 1831 "configure"
c3de2a19
ILT
1831#include "confdefs.h"
1832
1833int main() {
16a02269
TT
1834
1835/* Ultrix mips cc rejects this. */
1836typedef int charset[2]; const charset x;
1837/* SunOS 4.1.1 cc rejects this. */
1838char const *const *ccp;
1839char **p;
1840/* NEC SVR4.0.2 mips cc rejects this. */
1841struct point {int x, y;};
1842static struct point const zero = {0,0};
1843/* AIX XL C 1.02.0.0 rejects this.
1844 It does not let you subtract one const X* pointer from another in an arm
1845 of an if-expression whose if-part is not a constant expression */
1846const char *g = "string";
1847ccp = &g + (g ? g-g : 0);
1848/* HPUX 7.0 cc rejects these. */
1849++ccp;
1850p = (char**) ccp;
1851ccp = (char const *const *) p;
1852{ /* SCO 3.2v4 cc rejects this. */
1853 char *t;
1854 char const *s = 0 ? (char *) 0 : (char const *) 0;
1855
1856 *t++ = 0;
1857}
1858{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1859 int x[] = {25, 17};
1860 const int *foo = &x[0];
1861 ++foo;
1862}
1863{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1864 typedef const int *iptr;
1865 iptr p = 0;
1866 ++p;
1867}
1868{ /* AIX XL C 1.02.0.0 rejects this saying
1869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1870 struct s { int j; const int *ap[3]; };
1871 struct s *b; b->j = 5;
1872}
1873{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1874 const int foo = 10;
1875}
1876
c3de2a19
ILT
1877; return 0; }
1878EOF
16a02269 1879if { (eval echo configure:1880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
c3de2a19 1880 rm -rf conftest*
16a02269 1881 ac_cv_c_const=yes
c3de2a19
ILT
1882else
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 rm -rf conftest*
16a02269 1886 ac_cv_c_const=no
c3de2a19
ILT
1887fi
1888rm -f conftest*
c3de2a19
ILT
1889fi
1890
16a02269
TT
1891echo "$ac_t""$ac_cv_c_const" 1>&6
1892if test $ac_cv_c_const = no; then
1893 cat >> confdefs.h <<\EOF
1894#define const
1895EOF
c3de2a19 1896
16a02269 1897fi
274e44ae 1898
16a02269
TT
1899echo $ac_n "checking for inline""... $ac_c" 1>&6
1900echo "configure:1901: checking for inline" >&5
1901if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
274e44ae
ILT
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903else
16a02269
TT
1904 ac_cv_c_inline=no
1905for ac_kw in inline __inline__ __inline; do
1906 cat > conftest.$ac_ext <<EOF
1907#line 1908 "configure"
1908#include "confdefs.h"
1909
274e44ae 1910int main() {
16a02269
TT
1911} $ac_kw foo() {
1912; return 0; }
274e44ae 1913EOF
16a02269
TT
1914if { (eval echo configure:1915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1915 rm -rf conftest*
1916 ac_cv_c_inline=$ac_kw; break
1917else
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
274e44ae 1920fi
16a02269
TT
1921rm -f conftest*
1922done
274e44ae 1923
274e44ae 1924fi
2f1fec47 1925
16a02269
TT
1926echo "$ac_t""$ac_cv_c_inline" 1>&6
1927case "$ac_cv_c_inline" in
1928 inline | yes) ;;
1929 no) cat >> confdefs.h <<\EOF
1930#define inline
1931EOF
1932 ;;
1933 *) cat >> confdefs.h <<EOF
1934#define inline $ac_cv_c_inline
1935EOF
1936 ;;
1937esac
2f1fec47 1938
16a02269
TT
1939echo $ac_n "checking for off_t""... $ac_c" 1>&6
1940echo "configure:1941: checking for off_t" >&5
1941if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1943else
1944 cat > conftest.$ac_ext <<EOF
1945#line 1946 "configure"
1946#include "confdefs.h"
1947#include <sys/types.h>
1948#if STDC_HEADERS
1949#include <stdlib.h>
1950#include <stddef.h>
1951#endif
1952EOF
1953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1954 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1955 rm -rf conftest*
1956 ac_cv_type_off_t=yes
1957else
1958 rm -rf conftest*
1959 ac_cv_type_off_t=no
1960fi
1961rm -f conftest*
1962
1963fi
1964echo "$ac_t""$ac_cv_type_off_t" 1>&6
1965if test $ac_cv_type_off_t = no; then
1966 cat >> confdefs.h <<\EOF
1967#define off_t long
1968EOF
1969
1970fi
1971
1972echo $ac_n "checking for size_t""... $ac_c" 1>&6
1973echo "configure:1974: checking for size_t" >&5
1974if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1976else
1977 cat > conftest.$ac_ext <<EOF
1978#line 1979 "configure"
1979#include "confdefs.h"
1980#include <sys/types.h>
1981#if STDC_HEADERS
1982#include <stdlib.h>
1983#include <stddef.h>
1984#endif
1985EOF
1986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1987 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1988 rm -rf conftest*
1989 ac_cv_type_size_t=yes
1990else
1991 rm -rf conftest*
1992 ac_cv_type_size_t=no
1993fi
1994rm -f conftest*
1995
1996fi
1997echo "$ac_t""$ac_cv_type_size_t" 1>&6
1998if test $ac_cv_type_size_t = no; then
1999 cat >> confdefs.h <<\EOF
2000#define size_t unsigned
2001EOF
2002
2003fi
2004
2005# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2006# for constant arguments. Useless!
2007echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2008echo "configure:2009: checking for working alloca.h" >&5
2009if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2011else
2012 cat > conftest.$ac_ext <<EOF
2013#line 2014 "configure"
2014#include "confdefs.h"
2015#include <alloca.h>
2016int main() {
2017char *p = alloca(2 * sizeof(int));
2018; return 0; }
2019EOF
2020if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2021 rm -rf conftest*
2022 ac_cv_header_alloca_h=yes
2023else
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 rm -rf conftest*
2027 ac_cv_header_alloca_h=no
2028fi
2029rm -f conftest*
2030fi
2031
2032echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2033if test $ac_cv_header_alloca_h = yes; then
2034 cat >> confdefs.h <<\EOF
2035#define HAVE_ALLOCA_H 1
2036EOF
2037
2038fi
2039
2040echo $ac_n "checking for alloca""... $ac_c" 1>&6
2041echo "configure:2042: checking for alloca" >&5
2042if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045 cat > conftest.$ac_ext <<EOF
2046#line 2047 "configure"
2047#include "confdefs.h"
2048
2049#ifdef __GNUC__
2050# define alloca __builtin_alloca
2051#else
2052# if HAVE_ALLOCA_H
2053# include <alloca.h>
2054# else
2055# ifdef _AIX
2056 #pragma alloca
2057# else
2058# ifndef alloca /* predefined by HP cc +Olibcalls */
2059char *alloca ();
2060# endif
2061# endif
2062# endif
2063#endif
2064
2065int main() {
2066char *p = (char *) alloca(1);
2067; return 0; }
2068EOF
2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2070 rm -rf conftest*
2071 ac_cv_func_alloca_works=yes
2072else
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 rm -rf conftest*
2076 ac_cv_func_alloca_works=no
2077fi
2078rm -f conftest*
2079fi
2080
2081echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2082if test $ac_cv_func_alloca_works = yes; then
2083 cat >> confdefs.h <<\EOF
2084#define HAVE_ALLOCA 1
2085EOF
2086
2087fi
2088
2089if test $ac_cv_func_alloca_works = no; then
2090 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2091 # that cause trouble. Some versions do not even contain alloca or
2092 # contain a buggy version. If you still want to use their alloca,
2093 # use ar to extract alloca.o from them instead of compiling alloca.c.
2094 ALLOCA=alloca.o
2095 cat >> confdefs.h <<\EOF
2096#define C_ALLOCA 1
2097EOF
2098
2099
2100echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2101echo "configure:2102: checking whether alloca needs Cray hooks" >&5
2102if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104else
2105 cat > conftest.$ac_ext <<EOF
2106#line 2107 "configure"
2107#include "confdefs.h"
2108#if defined(CRAY) && ! defined(CRAY2)
2109webecray
2110#else
2111wenotbecray
2112#endif
2113
2114EOF
2115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2116 egrep "webecray" >/dev/null 2>&1; then
2117 rm -rf conftest*
2118 ac_cv_os_cray=yes
2119else
2120 rm -rf conftest*
2121 ac_cv_os_cray=no
2122fi
2123rm -f conftest*
2124
2125fi
2126
2127echo "$ac_t""$ac_cv_os_cray" 1>&6
2128if test $ac_cv_os_cray = yes; then
2129for ac_func in _getb67 GETB67 getb67; do
2130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131echo "configure:2132: checking for $ac_func" >&5
2132if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134else
2135 cat > conftest.$ac_ext <<EOF
2136#line 2137 "configure"
2137#include "confdefs.h"
2138/* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $ac_func(); below. */
2140#include <assert.h>
2141/* Override any gcc2 internal prototype to avoid an error. */
2142/* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2144char $ac_func();
2145
2146int main() {
2147
2148/* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2152choke me
2153#else
2154$ac_func();
2155#endif
2156
2157; return 0; }
2158EOF
2159if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2160 rm -rf conftest*
2161 eval "ac_cv_func_$ac_func=yes"
2162else
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 rm -rf conftest*
2166 eval "ac_cv_func_$ac_func=no"
2167fi
2168rm -f conftest*
2169fi
2170
2171if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 cat >> confdefs.h <<EOF
2174#define CRAY_STACKSEG_END $ac_func
2175EOF
2176
2177 break
2178else
2179 echo "$ac_t""no" 1>&6
2180fi
2181
2182done
2183fi
2184
2185echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2186echo "configure:2187: checking stack direction for C alloca" >&5
2187if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189else
2190 if test "$cross_compiling" = yes; then
2191 ac_cv_c_stack_direction=0
2192else
2193 cat > conftest.$ac_ext <<EOF
2194#line 2195 "configure"
2195#include "confdefs.h"
2196find_stack_direction ()
2197{
2198 static char *addr = 0;
2199 auto char dummy;
2200 if (addr == 0)
2201 {
2202 addr = &dummy;
2203 return find_stack_direction ();
2204 }
2205 else
2206 return (&dummy > addr) ? 1 : -1;
2207}
2208main ()
2209{
2210 exit (find_stack_direction() < 0);
2211}
2212EOF
2213if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2214then
2215 ac_cv_c_stack_direction=1
2216else
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2219 rm -fr conftest*
2220 ac_cv_c_stack_direction=-1
2221fi
2222rm -fr conftest*
2223fi
2224
2225fi
2226
2227echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2228cat >> confdefs.h <<EOF
2229#define STACK_DIRECTION $ac_cv_c_stack_direction
2230EOF
2231
2232fi
2233
2234for ac_hdr in unistd.h
2235do
2236ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2237echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2238echo "configure:2239: checking for $ac_hdr" >&5
2239if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2241else
2242 cat > conftest.$ac_ext <<EOF
2243#line 2244 "configure"
2244#include "confdefs.h"
2245#include <$ac_hdr>
2246EOF
2247ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248{ (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249ac_err=`grep -v '^ *+' conftest.out`
2250if test -z "$ac_err"; then
2251 rm -rf conftest*
2252 eval "ac_cv_header_$ac_safe=yes"
2253else
2254 echo "$ac_err" >&5
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_header_$ac_safe=no"
2259fi
2260rm -f conftest*
2261fi
2262if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2263 echo "$ac_t""yes" 1>&6
2264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2265 cat >> confdefs.h <<EOF
2266#define $ac_tr_hdr 1
2267EOF
2268
2269else
2270 echo "$ac_t""no" 1>&6
2271fi
2272done
2273
2274for ac_func in getpagesize
2275do
2276echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2277echo "configure:2278: checking for $ac_func" >&5
2278if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2280else
2281 cat > conftest.$ac_ext <<EOF
2282#line 2283 "configure"
2283#include "confdefs.h"
2284/* System header to define __stub macros and hopefully few prototypes,
2285 which can conflict with char $ac_func(); below. */
2286#include <assert.h>
2287/* Override any gcc2 internal prototype to avoid an error. */
2288/* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2290char $ac_func();
2291
2292int main() {
2293
2294/* The GNU C library defines this for functions which it implements
2295 to always fail with ENOSYS. Some functions are actually named
2296 something starting with __ and the normal name is an alias. */
2297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2298choke me
2299#else
2300$ac_func();
2301#endif
2302
2303; return 0; }
2304EOF
2305if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2306 rm -rf conftest*
2307 eval "ac_cv_func_$ac_func=yes"
2308else
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 rm -rf conftest*
2312 eval "ac_cv_func_$ac_func=no"
2313fi
2314rm -f conftest*
2315fi
2316
2317if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2320 cat >> confdefs.h <<EOF
2321#define $ac_tr_func 1
2322EOF
2323
2324else
2325 echo "$ac_t""no" 1>&6
2326fi
2327done
2328
2329echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2330echo "configure:2331: checking for working mmap" >&5
2331if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333else
2334 if test "$cross_compiling" = yes; then
2335 ac_cv_func_mmap_fixed_mapped=no
2336else
2337 cat > conftest.$ac_ext <<EOF
2338#line 2339 "configure"
2339#include "confdefs.h"
2340
2341/* Thanks to Mike Haertel and Jim Avera for this test.
2342 Here is a matrix of mmap possibilities:
2343 mmap private not fixed
2344 mmap private fixed at somewhere currently unmapped
2345 mmap private fixed at somewhere already mapped
2346 mmap shared not fixed
2347 mmap shared fixed at somewhere currently unmapped
2348 mmap shared fixed at somewhere already mapped
2349 For private mappings, we should verify that changes cannot be read()
2350 back from the file, nor mmap's back from the file at a different
2351 address. (There have been systems where private was not correctly
2352 implemented like the infamous i386 svr4.0, and systems where the
2353 VM page cache was not coherent with the filesystem buffer cache
2354 like early versions of FreeBSD and possibly contemporary NetBSD.)
2355 For shared mappings, we should conversely verify that changes get
2356 propogated back to all the places they're supposed to be.
2357
2358 Grep wants private fixed already mapped.
2359 The main things grep needs to know about mmap are:
2360 * does it exist and is it safe to write into the mmap'd area
2361 * how to use it (BSD variants) */
2362#include <sys/types.h>
2363#include <fcntl.h>
2364#include <sys/mman.h>
2365
2366/* This mess was copied from the GNU getpagesize.h. */
2367#ifndef HAVE_GETPAGESIZE
2368# ifdef HAVE_UNISTD_H
2369# include <unistd.h>
2370# endif
2371
2372/* Assume that all systems that can run configure have sys/param.h. */
2373# ifndef HAVE_SYS_PARAM_H
2374# define HAVE_SYS_PARAM_H 1
2375# endif
2376
2377# ifdef _SC_PAGESIZE
2378# define getpagesize() sysconf(_SC_PAGESIZE)
2379# else /* no _SC_PAGESIZE */
2380# ifdef HAVE_SYS_PARAM_H
2381# include <sys/param.h>
2382# ifdef EXEC_PAGESIZE
2383# define getpagesize() EXEC_PAGESIZE
2384# else /* no EXEC_PAGESIZE */
2385# ifdef NBPG
2386# define getpagesize() NBPG * CLSIZE
2387# ifndef CLSIZE
2388# define CLSIZE 1
2389# endif /* no CLSIZE */
2390# else /* no NBPG */
2391# ifdef NBPC
2392# define getpagesize() NBPC
2393# else /* no NBPC */
2394# ifdef PAGESIZE
2395# define getpagesize() PAGESIZE
2396# endif /* PAGESIZE */
2397# endif /* no NBPC */
2398# endif /* no NBPG */
2399# endif /* no EXEC_PAGESIZE */
2400# else /* no HAVE_SYS_PARAM_H */
2401# define getpagesize() 8192 /* punt totally */
2402# endif /* no HAVE_SYS_PARAM_H */
2403# endif /* no _SC_PAGESIZE */
2404
2405#endif /* no HAVE_GETPAGESIZE */
2406
2407#ifdef __cplusplus
2408extern "C" { void *malloc(unsigned); }
2409#else
2410char *malloc();
2411#endif
2412
2413int
2414main()
2415{
2416 char *data, *data2, *data3;
2417 int i, pagesize;
2418 int fd;
2419
2420 pagesize = getpagesize();
2421
2422 /*
2423 * First, make a file with some known garbage in it.
2424 */
2425 data = malloc(pagesize);
2426 if (!data)
2427 exit(1);
2428 for (i = 0; i < pagesize; ++i)
2429 *(data + i) = rand();
2430 umask(0);
2431 fd = creat("conftestmmap", 0600);
2432 if (fd < 0)
2433 exit(1);
2434 if (write(fd, data, pagesize) != pagesize)
2435 exit(1);
2436 close(fd);
2437
2438 /*
2439 * Next, try to mmap the file at a fixed address which
2440 * already has something else allocated at it. If we can,
2441 * also make sure that we see the same garbage.
2442 */
2443 fd = open("conftestmmap", O_RDWR);
2444 if (fd < 0)
2445 exit(1);
2446 data2 = malloc(2 * pagesize);
2447 if (!data2)
2448 exit(1);
2449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2450 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2452 exit(1);
2453 for (i = 0; i < pagesize; ++i)
2454 if (*(data + i) != *(data2 + i))
2455 exit(1);
2456
2457 /*
2458 * Finally, make sure that changes to the mapped area
2459 * do not percolate back to the file as seen by read().
2460 * (This is a bug on some variants of i386 svr4.0.)
2461 */
2462 for (i = 0; i < pagesize; ++i)
2463 *(data2 + i) = *(data2 + i) + 1;
2464 data3 = malloc(pagesize);
2465 if (!data3)
2466 exit(1);
2467 if (read(fd, data3, pagesize) != pagesize)
2468 exit(1);
2469 for (i = 0; i < pagesize; ++i)
2470 if (*(data + i) != *(data3 + i))
2471 exit(1);
2472 close(fd);
2473 unlink("conftestmmap");
2474 exit(0);
2475}
2476
2477EOF
2478if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2479then
2480 ac_cv_func_mmap_fixed_mapped=yes
2481else
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2484 rm -fr conftest*
2485 ac_cv_func_mmap_fixed_mapped=no
2486fi
2487rm -fr conftest*
2488fi
2489
2490fi
2491
2492echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2493if test $ac_cv_func_mmap_fixed_mapped = yes; then
2494 cat >> confdefs.h <<\EOF
2495#define HAVE_MMAP 1
2496EOF
2497
2498fi
2499
2500
2501 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2502unistd.h values.h sys/param.h
2503do
2504ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506echo "configure:2507: checking for $ac_hdr" >&5
2507if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509else
2510 cat > conftest.$ac_ext <<EOF
2511#line 2512 "configure"
2512#include "confdefs.h"
2513#include <$ac_hdr>
2514EOF
2515ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516{ (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517ac_err=`grep -v '^ *+' conftest.out`
2518if test -z "$ac_err"; then
2519 rm -rf conftest*
2520 eval "ac_cv_header_$ac_safe=yes"
2521else
2522 echo "$ac_err" >&5
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 eval "ac_cv_header_$ac_safe=no"
2527fi
2528rm -f conftest*
2529fi
2530if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h <<EOF
2534#define $ac_tr_hdr 1
2535EOF
2536
2537else
2538 echo "$ac_t""no" 1>&6
2539fi
2540done
2541
2542 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2543__argz_count __argz_stringify __argz_next
2544do
2545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2546echo "configure:2547: checking for $ac_func" >&5
2547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2549else
2550 cat > conftest.$ac_ext <<EOF
2551#line 2552 "configure"
2552#include "confdefs.h"
2553/* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char $ac_func(); below. */
2555#include <assert.h>
2556/* Override any gcc2 internal prototype to avoid an error. */
2557/* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2559char $ac_func();
2560
2561int main() {
2562
2563/* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2567choke me
2568#else
2569$ac_func();
2570#endif
2571
2572; return 0; }
2573EOF
2574if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2575 rm -rf conftest*
2576 eval "ac_cv_func_$ac_func=yes"
2577else
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 rm -rf conftest*
2581 eval "ac_cv_func_$ac_func=no"
2582fi
2583rm -f conftest*
2584fi
2585
2586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2589 cat >> confdefs.h <<EOF
2590#define $ac_tr_func 1
2591EOF
2592
2593else
2594 echo "$ac_t""no" 1>&6
2595fi
2596done
2597
2598
2599 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2600 for ac_func in stpcpy
2601do
2602echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2603echo "configure:2604: checking for $ac_func" >&5
2604if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2606else
2607 cat > conftest.$ac_ext <<EOF
2608#line 2609 "configure"
2609#include "confdefs.h"
2610/* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $ac_func(); below. */
2612#include <assert.h>
2613/* Override any gcc2 internal prototype to avoid an error. */
2614/* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616char $ac_func();
2617
2618int main() {
2619
2620/* The GNU C library defines this for functions which it implements
2621 to always fail with ENOSYS. Some functions are actually named
2622 something starting with __ and the normal name is an alias. */
2623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2624choke me
2625#else
2626$ac_func();
2627#endif
2628
2629; return 0; }
2630EOF
2631if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2632 rm -rf conftest*
2633 eval "ac_cv_func_$ac_func=yes"
2634else
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2637 rm -rf conftest*
2638 eval "ac_cv_func_$ac_func=no"
2639fi
2640rm -f conftest*
2641fi
2642
2643if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2646 cat >> confdefs.h <<EOF
2647#define $ac_tr_func 1
2648EOF
2649
2650else
2651 echo "$ac_t""no" 1>&6
2652fi
2653done
2654
2655 fi
2656 if test "${ac_cv_func_stpcpy}" = "yes"; then
2657 cat >> confdefs.h <<\EOF
2658#define HAVE_STPCPY 1
2659EOF
2660
2661 fi
2662
2663 if test $ac_cv_header_locale_h = yes; then
2664 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2665echo "configure:2666: checking for LC_MESSAGES" >&5
2666if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668else
2669 cat > conftest.$ac_ext <<EOF
2670#line 2671 "configure"
2671#include "confdefs.h"
2672#include <locale.h>
2673int main() {
2674return LC_MESSAGES
2675; return 0; }
2676EOF
2677if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2678 rm -rf conftest*
2679 am_cv_val_LC_MESSAGES=yes
2680else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 am_cv_val_LC_MESSAGES=no
2685fi
2686rm -f conftest*
2687fi
2688
2689echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2690 if test $am_cv_val_LC_MESSAGES = yes; then
2691 cat >> confdefs.h <<\EOF
2692#define HAVE_LC_MESSAGES 1
2693EOF
2694
2695 fi
2696 fi
2697 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2698echo "configure:2699: checking whether NLS is requested" >&5
2699 # Check whether --enable-nls or --disable-nls was given.
2700if test "${enable_nls+set}" = set; then
2701 enableval="$enable_nls"
2702 USE_NLS=$enableval
2703else
2704 USE_NLS=yes
2705fi
2706
2707 echo "$ac_t""$USE_NLS" 1>&6
2708
2709
2710 USE_INCLUDED_LIBINTL=no
2711
2712 if test "$USE_NLS" = "yes"; then
2713 cat >> confdefs.h <<\EOF
2714#define ENABLE_NLS 1
2715EOF
2716
2717 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2718echo "configure:2719: checking whether included gettext is requested" >&5
2719 # Check whether --with-included-gettext or --without-included-gettext was given.
2720if test "${with_included_gettext+set}" = set; then
2721 withval="$with_included_gettext"
2722 nls_cv_force_use_gnu_gettext=$withval
2723else
2724 nls_cv_force_use_gnu_gettext=no
2725fi
2726
2727 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2728
2729 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2730 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2731 nls_cv_header_intl=
2732 nls_cv_header_libgt=
2733 CATOBJEXT=NONE
2734
2735 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2736echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2737echo "configure:2738: checking for libintl.h" >&5
2738if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740else
2741 cat > conftest.$ac_ext <<EOF
2742#line 2743 "configure"
2743#include "confdefs.h"
2744#include <libintl.h>
2745EOF
2746ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747{ (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748ac_err=`grep -v '^ *+' conftest.out`
2749if test -z "$ac_err"; then
2750 rm -rf conftest*
2751 eval "ac_cv_header_$ac_safe=yes"
2752else
2753 echo "$ac_err" >&5
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 rm -rf conftest*
2757 eval "ac_cv_header_$ac_safe=no"
2758fi
2759rm -f conftest*
2760fi
2761if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2764echo "configure:2765: checking for gettext in libc" >&5
2765if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2767else
2768 cat > conftest.$ac_ext <<EOF
2769#line 2770 "configure"
2770#include "confdefs.h"
2771#include <libintl.h>
2772int main() {
2773return (int) gettext ("")
2774; return 0; }
2775EOF
2776if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2777 rm -rf conftest*
2778 gt_cv_func_gettext_libc=yes
2779else
2780 echo "configure: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2782 rm -rf conftest*
2783 gt_cv_func_gettext_libc=no
2784fi
2785rm -f conftest*
2786fi
2787
2788echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2789
2790 if test "$gt_cv_func_gettext_libc" != "yes"; then
2791 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2792echo "configure:2793: checking for bindtextdomain in -lintl" >&5
2793ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796else
2797 ac_save_LIBS="$LIBS"
2798LIBS="-lintl $LIBS"
2799cat > conftest.$ac_ext <<EOF
2800#line 2801 "configure"
2801#include "confdefs.h"
2802/* Override any gcc2 internal prototype to avoid an error. */
2803/* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805char bindtextdomain();
2806
2807int main() {
2808bindtextdomain()
2809; return 0; }
2810EOF
2811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2812 rm -rf conftest*
2813 eval "ac_cv_lib_$ac_lib_var=yes"
2814else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 rm -rf conftest*
2818 eval "ac_cv_lib_$ac_lib_var=no"
2819fi
2820rm -f conftest*
2821LIBS="$ac_save_LIBS"
2822
2823fi
2824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2827echo "configure:2828: checking for gettext in libintl" >&5
2828if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830else
2831 cat > conftest.$ac_ext <<EOF
2832#line 2833 "configure"
2833#include "confdefs.h"
2834
2835int main() {
2836return (int) gettext ("")
2837; return 0; }
2838EOF
2839if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2840 rm -rf conftest*
2841 gt_cv_func_gettext_libintl=yes
2842else
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845 rm -rf conftest*
2846 gt_cv_func_gettext_libintl=no
2847fi
2848rm -f conftest*
2849fi
2850
2851echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2852else
2853 echo "$ac_t""no" 1>&6
2854fi
2855
2856 fi
2857
2858 if test "$gt_cv_func_gettext_libc" = "yes" \
2859 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2860 cat >> confdefs.h <<\EOF
2861#define HAVE_GETTEXT 1
2862EOF
2863
2864 # Extract the first word of "msgfmt", so it can be a program name with args.
2865set dummy msgfmt; ac_word=$2
2866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2867echo "configure:2868: checking for $ac_word" >&5
2868if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870else
2871 case "$MSGFMT" in
2872 /*)
2873 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2874 ;;
2875 *)
2876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2877 for ac_dir in $PATH; do
2878 test -z "$ac_dir" && ac_dir=.
2879 if test -f $ac_dir/$ac_word; then
2880 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2881 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2882 break
2883 fi
2884 fi
2885 done
2886 IFS="$ac_save_ifs"
2887 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2888 ;;
2889esac
2890fi
2891MSGFMT="$ac_cv_path_MSGFMT"
2892if test -n "$MSGFMT"; then
2893 echo "$ac_t""$MSGFMT" 1>&6
2894else
2895 echo "$ac_t""no" 1>&6
2896fi
2897 if test "$MSGFMT" != "no"; then
2898 for ac_func in dcgettext
2899do
2900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2901echo "configure:2902: checking for $ac_func" >&5
2902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2904else
2905 cat > conftest.$ac_ext <<EOF
2906#line 2907 "configure"
2907#include "confdefs.h"
2908/* System header to define __stub macros and hopefully few prototypes,
2909 which can conflict with char $ac_func(); below. */
2910#include <assert.h>
2911/* Override any gcc2 internal prototype to avoid an error. */
2912/* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2914char $ac_func();
2915
2916int main() {
2917
2918/* The GNU C library defines this for functions which it implements
2919 to always fail with ENOSYS. Some functions are actually named
2920 something starting with __ and the normal name is an alias. */
2921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2922choke me
2923#else
2924$ac_func();
2925#endif
2926
2927; return 0; }
2928EOF
2929if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2930 rm -rf conftest*
2931 eval "ac_cv_func_$ac_func=yes"
2932else
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2935 rm -rf conftest*
2936 eval "ac_cv_func_$ac_func=no"
2937fi
2938rm -f conftest*
2939fi
2940
2941if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2944 cat >> confdefs.h <<EOF
2945#define $ac_tr_func 1
2946EOF
2947
2948else
2949 echo "$ac_t""no" 1>&6
2950fi
2951done
2952
2953 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2954set dummy gmsgfmt; ac_word=$2
2955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2956echo "configure:2957: checking for $ac_word" >&5
2957if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959else
2960 case "$GMSGFMT" in
2961 /*)
2962 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2963 ;;
2964 ?:/*)
2965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2966 ;;
2967 *)
2968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2969 for ac_dir in $PATH; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2973 break
2974 fi
2975 done
2976 IFS="$ac_save_ifs"
2977 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2978 ;;
2979esac
2980fi
2981GMSGFMT="$ac_cv_path_GMSGFMT"
2982if test -n "$GMSGFMT"; then
2983 echo "$ac_t""$GMSGFMT" 1>&6
2984else
2985 echo "$ac_t""no" 1>&6
2986fi
2987
2988 # Extract the first word of "xgettext", so it can be a program name with args.
2989set dummy xgettext; ac_word=$2
2990echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991echo "configure:2992: checking for $ac_word" >&5
2992if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2994else
2995 case "$XGETTEXT" in
2996 /*)
2997 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2998 ;;
2999 *)
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3001 for ac_dir in $PATH; do
3002 test -z "$ac_dir" && ac_dir=.
3003 if test -f $ac_dir/$ac_word; then
3004 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3005 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3006 break
3007 fi
3008 fi
3009 done
3010 IFS="$ac_save_ifs"
3011 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3012 ;;
3013esac
3014fi
3015XGETTEXT="$ac_cv_path_XGETTEXT"
3016if test -n "$XGETTEXT"; then
3017 echo "$ac_t""$XGETTEXT" 1>&6
3018else
3019 echo "$ac_t""no" 1>&6
3020fi
3021
3022 cat > conftest.$ac_ext <<EOF
3023#line 3024 "configure"
3024#include "confdefs.h"
3025
3026int main() {
3027extern int _nl_msg_cat_cntr;
3028 return _nl_msg_cat_cntr
3029; return 0; }
3030EOF
3031if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3032 rm -rf conftest*
3033 CATOBJEXT=.gmo
3034 DATADIRNAME=share
3035else
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 rm -rf conftest*
3039 CATOBJEXT=.mo
3040 DATADIRNAME=lib
3041fi
3042rm -f conftest*
3043 INSTOBJEXT=.mo
3044 fi
3045 fi
3046
3047else
3048 echo "$ac_t""no" 1>&6
3049fi
3050
3051
3052
3053 if test "$CATOBJEXT" = "NONE"; then
3054 nls_cv_use_gnu_gettext=yes
3055 fi
3056 fi
3057
3058 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3059 INTLOBJS="\$(GETTOBJS)"
3060 # Extract the first word of "msgfmt", so it can be a program name with args.
3061set dummy msgfmt; ac_word=$2
3062echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3063echo "configure:3064: checking for $ac_word" >&5
3064if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066else
3067 case "$MSGFMT" in
3068 /*)
3069 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3070 ;;
3071 *)
3072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3073 for ac_dir in $PATH; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f $ac_dir/$ac_word; then
3076 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3077 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3078 break
3079 fi
3080 fi
3081 done
3082 IFS="$ac_save_ifs"
3083 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3084 ;;
3085esac
3086fi
3087MSGFMT="$ac_cv_path_MSGFMT"
3088if test -n "$MSGFMT"; then
3089 echo "$ac_t""$MSGFMT" 1>&6
3090else
3091 echo "$ac_t""no" 1>&6
3092fi
3093
3094 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3095set dummy gmsgfmt; ac_word=$2
3096echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3097echo "configure:3098: checking for $ac_word" >&5
3098if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3100else
3101 case "$GMSGFMT" in
3102 /*)
3103 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3104 ;;
3105 ?:/*)
3106 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3107 ;;
3108 *)
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3110 for ac_dir in $PATH; do
3111 test -z "$ac_dir" && ac_dir=.
3112 if test -f $ac_dir/$ac_word; then
3113 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3114 break
3115 fi
3116 done
3117 IFS="$ac_save_ifs"
3118 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3119 ;;
3120esac
3121fi
3122GMSGFMT="$ac_cv_path_GMSGFMT"
3123if test -n "$GMSGFMT"; then
3124 echo "$ac_t""$GMSGFMT" 1>&6
3125else
3126 echo "$ac_t""no" 1>&6
3127fi
3128
3129 # Extract the first word of "xgettext", so it can be a program name with args.
3130set dummy xgettext; ac_word=$2
3131echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3132echo "configure:3133: checking for $ac_word" >&5
3133if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3135else
3136 case "$XGETTEXT" in
3137 /*)
3138 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3139 ;;
3140 *)
3141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3142 for ac_dir in $PATH; do
3143 test -z "$ac_dir" && ac_dir=.
3144 if test -f $ac_dir/$ac_word; then
3145 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3146 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3147 break
3148 fi
3149 fi
3150 done
3151 IFS="$ac_save_ifs"
3152 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3153 ;;
3154esac
3155fi
3156XGETTEXT="$ac_cv_path_XGETTEXT"
3157if test -n "$XGETTEXT"; then
3158 echo "$ac_t""$XGETTEXT" 1>&6
3159else
3160 echo "$ac_t""no" 1>&6
3161fi
3162
3163
3164 USE_INCLUDED_LIBINTL=yes
3165 CATOBJEXT=.gmo
3166 INSTOBJEXT=.mo
3167 DATADIRNAME=share
3168 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3169 INTLLIBS=$INTLDEPS
3170 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3171 nls_cv_header_intl=libintl.h
3172 nls_cv_header_libgt=libgettext.h
3173 fi
3174
3175 if test "$XGETTEXT" != ":"; then
3176 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3177 : ;
3178 else
3179 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3180 XGETTEXT=":"
3181 fi
3182 fi
3183
3184 # We need to process the po/ directory.
3185 POSUB=po
3186 else
3187 DATADIRNAME=share
3188 nls_cv_header_intl=libintl.h
3189 nls_cv_header_libgt=libgettext.h
3190 fi
3191
3192 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3193 # because some of the sources are only built for this goal.
3194 if test "$PACKAGE" = gettext; then
3195 USE_NLS=yes
3196 USE_INCLUDED_LIBINTL=yes
3197 fi
3198
3199 for lang in $ALL_LINGUAS; do
3200 GMOFILES="$GMOFILES $lang.gmo"
3201 POFILES="$POFILES $lang.po"
3202 done
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217 if test "x$CATOBJEXT" != "x"; then
3218 if test "x$ALL_LINGUAS" = "x"; then
3219 LINGUAS=
3220 else
3221 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3222echo "configure:3223: checking for catalogs to be installed" >&5
3223 NEW_LINGUAS=
3224 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3225 case "$ALL_LINGUAS" in
3226 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3227 esac
3228 done
3229 LINGUAS=$NEW_LINGUAS
3230 echo "$ac_t""$LINGUAS" 1>&6
3231 fi
3232
3233 if test -n "$LINGUAS"; then
3234 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3235 fi
3236 fi
3237
3238 if test $ac_cv_header_locale_h = yes; then
3239 INCLUDE_LOCALE_H="#include <locale.h>"
3240 else
3241 INCLUDE_LOCALE_H="\
3242/* The system does not provide the header <locale.h>. Take care yourself. */"
3243 fi
3244
3245
3246 if test -f $srcdir/po2tbl.sed.in; then
3247 if test "$CATOBJEXT" = ".cat"; then
3248 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3249echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3250echo "configure:3251: checking for linux/version.h" >&5
3251if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3253else
3254 cat > conftest.$ac_ext <<EOF
3255#line 3256 "configure"
3256#include "confdefs.h"
3257#include <linux/version.h>
3258EOF
3259ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3260{ (eval echo configure:3261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3261ac_err=`grep -v '^ *+' conftest.out`
3262if test -z "$ac_err"; then
3263 rm -rf conftest*
3264 eval "ac_cv_header_$ac_safe=yes"
3265else
3266 echo "$ac_err" >&5
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 rm -rf conftest*
3270 eval "ac_cv_header_$ac_safe=no"
3271fi
3272rm -f conftest*
3273fi
3274if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 msgformat=linux
3277else
3278 echo "$ac_t""no" 1>&6
3279msgformat=xopen
3280fi
3281
3282
3283 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3284 fi
3285 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3286 $srcdir/po2tbl.sed.in > po2tbl.sed
3287 fi
3288
3289 if test "$PACKAGE" = "gettext"; then
3290 GT_NO="#NO#"
3291 GT_YES=
3292 else
3293 GT_NO=
3294 GT_YES="#YES#"
3295 fi
3296
3297
3298
3299 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3300
3301
3302 l=
3303
3304
3305 if test -d $srcdir/po; then
3306 test -d po || mkdir po
3307 if test "x$srcdir" != "x."; then
3308 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3309 posrcprefix="$srcdir/"
3310 else
3311 posrcprefix="../$srcdir/"
3312 fi
3313 else
3314 posrcprefix="../"
3315 fi
3316 rm -f po/POTFILES
3317 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3318 < $srcdir/po/POTFILES.in > po/POTFILES
3319 fi
3320
3321
3322case "${target}" in
3323*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3324 cat >> confdefs.h <<\EOF
3325#define BSD44_FORMAT 1
3326EOF
3327
3328 ;;
3329esac
3330
3331echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3332echo "configure:3333: checking whether to enable maintainer-specific portions of Makefiles" >&5
3333 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3334if test "${enable_maintainer_mode+set}" = set; then
3335 enableval="$enable_maintainer_mode"
3336 USE_MAINTAINER_MODE=$enableval
3337else
3338 USE_MAINTAINER_MODE=no
3339fi
3340
3341 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3342 if test $USE_MAINTAINER_MODE = yes; then
3343 MAINT=
3344 else
3345 MAINT='#M#'
3346 fi
3347
3348
3349echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3350echo "configure:3351: checking for Cygwin32 environment" >&5
3351if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3353else
3354 cat > conftest.$ac_ext <<EOF
3355#line 3356 "configure"
3356#include "confdefs.h"
3357
3358int main() {
3359return __CYGWIN32__;
3360; return 0; }
3361EOF
3362if { (eval echo configure:3363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363 rm -rf conftest*
3364 am_cv_cygwin32=yes
3365else
3366 echo "configure: failed program was:" >&5
3367 cat conftest.$ac_ext >&5
3368 rm -rf conftest*
3369 am_cv_cygwin32=no
3370fi
3371rm -f conftest*
3372rm -f conftest*
3373fi
3374
3375echo "$ac_t""$am_cv_cygwin32" 1>&6
3376CYGWIN32=
3377test "$am_cv_cygwin32" = yes && CYGWIN32=yes
3378echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
3379echo "configure:3380: checking for Mingw32 environment" >&5
3380if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3382else
3383 cat > conftest.$ac_ext <<EOF
3384#line 3385 "configure"
3385#include "confdefs.h"
3386
3387int main() {
3388return __MINGW32__;
3389; return 0; }
3390EOF
3391if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 rm -rf conftest*
3393 am_cv_mingw32=yes
3394else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 am_cv_mingw32=no
3399fi
3400rm -f conftest*
3401rm -f conftest*
3402fi
3403
3404echo "$ac_t""$am_cv_mingw32" 1>&6
3405MINGW32=
3406test "$am_cv_mingw32" = yes && MINGW32=yes
3407
3408
3409echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3410echo "configure:3411: checking for executable suffix" >&5
3411if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3413else
3414 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
3415am_cv_exeext=.exe
3416else
3417cat > am_c_test.c << 'EOF'
3418int main() {
3419/* Nothing needed here */
3420}
3421EOF
3422${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
3423am_cv_exeext=
3424for file in am_c_test.*; do
3425 case $file in
3426 *.c) ;;
3427 *.o) ;;
3428 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
3429 esac
3430done
3431rm -f am_c_test*
3432fi
3433
3434test x"${am_cv_exeext}" = x && am_cv_exeext=no
3435fi
3436EXEEXT=""
3437test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
3438echo "$ac_t""${am_cv_exeext}" 1>&6
3439
3440
3441trap '' 1 2 15
3442cat > confcache <<\EOF
3443# This file is a shell script that caches the results of configure
3444# tests run on this system so they can be shared between configure
3445# scripts and configure runs. It is not useful on other systems.
3446# If it contains results you don't want to keep, you may remove or edit it.
3447#
3448# By default, configure uses ./config.cache as the cache file,
3449# creating it if it does not exist already. You can give configure
3450# the --cache-file=FILE option to use a different cache file; that is
3451# what configure does when it calls configure scripts in
3452# subdirectories, so they share the cache.
7858d8dc
C
3453# Giving --cache-file=/dev/null disables caching, for debugging configure.
3454# config.status only pays attention to the cache file if you give it the
3455# --recheck option to rerun configure.
3456#
3457EOF
4947b15f
ILT
3458# The following way of writing the cache mishandles newlines in values,
3459# but we know of no workaround that is simple, portable, and efficient.
3460# So, don't put newlines in cache variables' values.
7858d8dc
C
3461# Ultrix sh set writes to stderr and can't be redirected directly,
3462# and sets the high bit in the cache file unless we assign to the vars.
3463(set) 2>&1 |
c3de2a19 3464 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
4947b15f
ILT
3465 *ac_space=\ *)
3466 # `set' does not quote correctly, so add quotes (double-quote substitution
3467 # turns \\\\ into \\, and sed turns \\ into \).
3468 sed -n \
3469 -e "s/'/'\\\\''/g" \
3470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3471 ;;
3472 *)
3473 # `set' quotes correctly as required by POSIX, so do not add quotes.
3474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3475 ;;
3476 esac >> confcache
7858d8dc
C
3477if cmp -s $cache_file confcache; then
3478 :
3479else
3480 if test -w $cache_file; then
3481 echo "updating cache $cache_file"
3482 cat confcache > $cache_file
3483 else
3484 echo "not updating unwritable cache $cache_file"
3485 fi
3486fi
3487rm -f confcache
3488
3489trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3490
3491test "x$prefix" = xNONE && prefix=$ac_default_prefix
3492# Let make expand exec_prefix.
3493test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3494
3495# Any assignment to VPATH causes Sun make to only execute
3496# the first set of double-colon rules, so remove it if not needed.
3497# If there is a colon in the path, we need to keep it.
3498if test "x$srcdir" = x.; then
3499 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3500fi
3501
3502trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3503
274e44ae 3504DEFS=-DHAVE_CONFIG_H
7858d8dc
C
3505
3506# Without the "./", some shells look in PATH for config.status.
3507: ${CONFIG_STATUS=./config.status}
3508
3509echo creating $CONFIG_STATUS
3510rm -f $CONFIG_STATUS
3511cat > $CONFIG_STATUS <<EOF
3512#! /bin/sh
3513# Generated automatically by configure.
3514# Run this file to recreate the current configuration.
3515# This directory was configured as follows,
3516# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3517#
3518# $0 $ac_configure_args
3519#
3520# Compiler output produced by configure, useful for debugging
3521# configure, is in ./config.log if it exists.
3522
3523ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3524for ac_option
3525do
3526 case "\$ac_option" in
3527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3528 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3529 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3530 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
274e44ae 3531 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
7858d8dc
C
3532 exit 0 ;;
3533 -help | --help | --hel | --he | --h)
3534 echo "\$ac_cs_usage"; exit 0 ;;
3535 *) echo "\$ac_cs_usage"; exit 1 ;;
3536 esac
3537done
3538
3539ac_given_srcdir=$srcdir
39c3964f 3540ac_given_INSTALL="$INSTALL"
7858d8dc 3541
16a02269 3542trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
ba8e3a2e
ILT
3543EOF
3544cat >> $CONFIG_STATUS <<EOF
7858d8dc 3545
ba8e3a2e
ILT
3546# Protect against being on the right side of a sed subst in config.status.
3547sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3548 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7858d8dc
C
3549$ac_vpsub
3550$extrasub
c3de2a19 3551s%@SHELL@%$SHELL%g
7858d8dc
C
3552s%@CFLAGS@%$CFLAGS%g
3553s%@CPPFLAGS@%$CPPFLAGS%g
3554s%@CXXFLAGS@%$CXXFLAGS%g
3555s%@DEFS@%$DEFS%g
3556s%@LDFLAGS@%$LDFLAGS%g
3557s%@LIBS@%$LIBS%g
3558s%@exec_prefix@%$exec_prefix%g
3559s%@prefix@%$prefix%g
3560s%@program_transform_name@%$program_transform_name%g
ba8e3a2e
ILT
3561s%@bindir@%$bindir%g
3562s%@sbindir@%$sbindir%g
3563s%@libexecdir@%$libexecdir%g
3564s%@datadir@%$datadir%g
3565s%@sysconfdir@%$sysconfdir%g
3566s%@sharedstatedir@%$sharedstatedir%g
3567s%@localstatedir@%$localstatedir%g
3568s%@libdir@%$libdir%g
3569s%@includedir@%$includedir%g
3570s%@oldincludedir@%$oldincludedir%g
3571s%@infodir@%$infodir%g
3572s%@mandir@%$mandir%g
7858d8dc
C
3573s%@host@%$host%g
3574s%@host_alias@%$host_alias%g
3575s%@host_cpu@%$host_cpu%g
3576s%@host_vendor@%$host_vendor%g
3577s%@host_os@%$host_os%g
3578s%@target@%$target%g
3579s%@target_alias@%$target_alias%g
3580s%@target_cpu@%$target_cpu%g
3581s%@target_vendor@%$target_vendor%g
3582s%@target_os@%$target_os%g
3583s%@build@%$build%g
3584s%@build_alias@%$build_alias%g
3585s%@build_cpu@%$build_cpu%g
3586s%@build_vendor@%$build_vendor%g
3587s%@build_os@%$build_os%g
2f1fec47
ILT
3588s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3589s%@INSTALL_DATA@%$INSTALL_DATA%g
3590s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3591s%@PACKAGE@%$PACKAGE%g
3592s%@VERSION@%$VERSION%g
3593s%@ACLOCAL@%$ACLOCAL%g
3594s%@AUTOCONF@%$AUTOCONF%g
3595s%@AUTOMAKE@%$AUTOMAKE%g
3596s%@AUTOHEADER@%$AUTOHEADER%g
3597s%@MAKEINFO@%$MAKEINFO%g
3598s%@SET_MAKE@%$SET_MAKE%g
274e44ae 3599s%@RANLIB@%$RANLIB%g
fa1a1b32 3600s%@CC@%$CC%g
274e44ae 3601s%@LD@%$LD%g
fa1a1b32 3602s%@NM@%$NM%g
274e44ae
ILT
3603s%@LN_S@%$LN_S%g
3604s%@LIBTOOL@%$LIBTOOL%g
16a02269
TT
3605s%@DLLTOOL@%$DLLTOOL%g
3606s%@AS@%$AS%g
3607s%@CPP@%$CPP%g
3608s%@ALLOCA@%$ALLOCA%g
3609s%@USE_NLS@%$USE_NLS%g
3610s%@MSGFMT@%$MSGFMT%g
3611s%@GMSGFMT@%$GMSGFMT%g
3612s%@XGETTEXT@%$XGETTEXT%g
3613s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
3614s%@CATALOGS@%$CATALOGS%g
3615s%@CATOBJEXT@%$CATOBJEXT%g
3616s%@DATADIRNAME@%$DATADIRNAME%g
3617s%@GMOFILES@%$GMOFILES%g
3618s%@INSTOBJEXT@%$INSTOBJEXT%g
3619s%@INTLDEPS@%$INTLDEPS%g
3620s%@INTLLIBS@%$INTLLIBS%g
3621s%@INTLOBJS@%$INTLOBJS%g
3622s%@POFILES@%$POFILES%g
3623s%@POSUB@%$POSUB%g
3624s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
3625s%@GT_NO@%$GT_NO%g
3626s%@GT_YES@%$GT_YES%g
3627s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3628s%@l@%$l%g
2f1fec47 3629s%@MAINT@%$MAINT%g
2f1fec47 3630s%@EXEEXT@%$EXEEXT%g
7858d8dc
C
3631
3632CEOF
3633EOF
4947b15f
ILT
3634
3635cat >> $CONFIG_STATUS <<\EOF
3636
3637# Split the substitutions into bite-sized pieces for seds with
3638# small command number limits, like on Digital OSF/1 and HP-UX.
3639ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3640ac_file=1 # Number of current file.
3641ac_beg=1 # First line for current file.
3642ac_end=$ac_max_sed_cmds # Line after last line for current file.
3643ac_more_lines=:
3644ac_sed_cmds=""
3645while $ac_more_lines; do
3646 if test $ac_beg -gt 1; then
3647 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3648 else
3649 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3650 fi
3651 if test ! -s conftest.s$ac_file; then
3652 ac_more_lines=false
3653 rm -f conftest.s$ac_file
3654 else
3655 if test -z "$ac_sed_cmds"; then
3656 ac_sed_cmds="sed -f conftest.s$ac_file"
3657 else
3658 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3659 fi
3660 ac_file=`expr $ac_file + 1`
3661 ac_beg=$ac_end
3662 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3663 fi
3664done
3665if test -z "$ac_sed_cmds"; then
3666 ac_sed_cmds=cat
3667fi
3668EOF
3669
7858d8dc
C
3670cat >> $CONFIG_STATUS <<EOF
3671
16a02269 3672CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
7858d8dc
C
3673EOF
3674cat >> $CONFIG_STATUS <<\EOF
3675for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4947b15f 3676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7858d8dc 3677 case "$ac_file" in
4947b15f 3678 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7858d8dc
C
3679 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3680 *) ac_file_in="${ac_file}.in" ;;
3681 esac
3682
4947b15f 3683 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7858d8dc
C
3684
3685 # Remove last slash and all that follows it. Not all systems have dirname.
3686 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3687 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3688 # The file is in a subdirectory.
3689 test ! -d "$ac_dir" && mkdir "$ac_dir"
3690 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3691 # A "../" for each directory in $ac_dir_suffix.
3692 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3693 else
3694 ac_dir_suffix= ac_dots=
3695 fi
3696
3697 case "$ac_given_srcdir" in
3698 .) srcdir=.
3699 if test -z "$ac_dots"; then top_srcdir=.
3700 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3701 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3702 *) # Relative path.
3703 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3704 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3705 esac
3706
39c3964f
JM
3707 case "$ac_given_INSTALL" in
3708 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3709 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3710 esac
4947b15f 3711
7858d8dc
C
3712 echo creating "$ac_file"
3713 rm -f "$ac_file"
3714 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3715 case "$ac_file" in
3716 *Makefile*) ac_comsub="1i\\
3717# $configure_input" ;;
3718 *) ac_comsub= ;;
3719 esac
4947b15f
ILT
3720
3721 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7858d8dc
C
3722 sed -e "$ac_comsub
3723s%@configure_input@%$configure_input%g
3724s%@srcdir@%$srcdir%g
3725s%@top_srcdir@%$top_srcdir%g
39c3964f 3726s%@INSTALL@%$INSTALL%g
4947b15f 3727" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7858d8dc 3728fi; done
4947b15f 3729rm -f conftest.s*
7858d8dc 3730
274e44ae
ILT
3731# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3732# NAME is the cpp macro being defined and VALUE is the value it is being given.
3733#
3734# ac_d sets the value in "#define NAME VALUE" lines.
3735ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3736ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3737ac_dC='\3'
3738ac_dD='%g'
3739# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3740ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3741ac_uB='\([ ]\)%\1#\2define\3'
3742ac_uC=' '
3743ac_uD='\4%g'
3744# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3745ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3746ac_eB='$%\1#\2define\3'
3747ac_eC=' '
3748ac_eD='%g'
3749
3750if test "${CONFIG_HEADERS+set}" != set; then
4947b15f
ILT
3751EOF
3752cat >> $CONFIG_STATUS <<EOF
274e44ae
ILT
3753 CONFIG_HEADERS="gconfig.h:gconfig.in"
3754EOF
3755cat >> $CONFIG_STATUS <<\EOF
3756fi
3757for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3759 case "$ac_file" in
3760 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3761 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3762 *) ac_file_in="${ac_file}.in" ;;
3763 esac
3764
3765 echo creating $ac_file
3766
3767 rm -f conftest.frag conftest.in conftest.out
3768 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3769 cat $ac_file_inputs > conftest.in
3770
3771EOF
3772
3773# Transform confdefs.h into a sed script conftest.vals that substitutes
3774# the proper values into config.h.in to produce config.h. And first:
3775# Protect against being on the right side of a sed subst in config.status.
3776# Protect against being in an unquoted here document in config.status.
3777rm -f conftest.vals
3778cat > conftest.hdr <<\EOF
3779s/[\\&%]/\\&/g
3780s%[\\$`]%\\&%g
3781s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3782s%ac_d%ac_u%gp
3783s%ac_u%ac_e%gp
3784EOF
3785sed -n -f conftest.hdr confdefs.h > conftest.vals
3786rm -f conftest.hdr
3787
3788# This sed command replaces #undef with comments. This is necessary, for
3789# example, in the case of _POSIX_SOURCE, which is predefined and required
3790# on some systems where configure will not decide to define it.
3791cat >> conftest.vals <<\EOF
3792s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3793EOF
3794
3795# Break up conftest.vals because some shells have a limit on
3796# the size of here documents, and old seds have small limits too.
3797
3798rm -f conftest.tail
3799while :
3800do
3801 ac_lines=`grep -c . conftest.vals`
3802 # grep -c gives empty output for an empty file on some AIX systems.
3803 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3804 # Write a limited-size here document to conftest.frag.
3805 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3806 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3807 echo 'CEOF
3808 sed -f conftest.frag conftest.in > conftest.out
3809 rm -f conftest.in
3810 mv conftest.out conftest.in
3811' >> $CONFIG_STATUS
3812 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3813 rm -f conftest.vals
3814 mv conftest.tail conftest.vals
3815done
3816rm -f conftest.vals
3817
3818cat >> $CONFIG_STATUS <<\EOF
3819 rm -f conftest.frag conftest.h
3820 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3821 cat conftest.in >> conftest.h
3822 rm -f conftest.in
3823 if cmp -s $ac_file conftest.h 2>/dev/null; then
3824 echo "$ac_file is unchanged"
3825 rm -f conftest.h
3826 else
3827 # Remove last slash and all that follows it. Not all systems have dirname.
3828 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3829 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3830 # The file is in a subdirectory.
3831 test ! -d "$ac_dir" && mkdir "$ac_dir"
3832 fi
3833 rm -f $ac_file
3834 mv conftest.h $ac_file
3835 fi
3836fi; done
3837
3838EOF
3839cat >> $CONFIG_STATUS <<EOF
3840
7858d8dc 3841
4947b15f
ILT
3842EOF
3843cat >> $CONFIG_STATUS <<\EOF
274e44ae 3844test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
16a02269 3845sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
7858d8dc
C
3846exit 0
3847EOF
3848chmod +x $CONFIG_STATUS
3849rm -fr confdefs* $ac_clean_files
3850test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3851