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