2004-02-19 Joel Brobecker <brobecker@gnat.com>
[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=
093872ec 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
093872ec 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
093872ec
NC
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.
093872ec
NC
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
093872ec
NC
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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 594#line 595 "configure"
ac48eca1
AO
595#include "confdefs.h"
596
597int main() {
598return __MINGW32__;
599; return 0; }
600EOF
093872ec 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
093872ec 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
093872ec 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
093872ec 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
66477e87 727
093872ec
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
66477e87
AM
732 echo $ac_n "(cached) $ac_c" 1>&6
733else
093872ec
NC
734 ac_save_LIBS="$LIBS"
735LIBS="-lcposix $LIBS"
736cat > conftest.$ac_ext <<EOF
737#line 738 "configure"
5d64ca4e 738#include "confdefs.h"
093872ec
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
093872ec
NC
744int main() {
745strerror()
746; return 0; }
5d64ca4e 747EOF
093872ec
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
093872ec
NC
754 rm -rf conftest*
755 eval "ac_cv_lib_$ac_lib_var=no"
5d64ca4e
L
756fi
757rm -f conftest*
093872ec 758LIBS="$ac_save_LIBS"
5d64ca4e
L
759
760fi
093872ec 761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5d64ca4e 762 echo "$ac_t""yes" 1>&6
093872ec 763 LIBS="$LIBS -lcposix"
5d64ca4e
L
764else
765 echo "$ac_t""no" 1>&6
5d64ca4e
L
766fi
767
093872ec
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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec
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
093872ec 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
093872ec 1339echo "configure:1340: checking for GNU ld" >&5
252b5132
RH
1340else
1341 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 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
093872ec 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 1536hpux10.20*|hpux11*)
4867be41
DJ
1537 case $host_cpu in
1538 hppa*)
1539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1540 lt_cv_file_magic_cmd=/usr/bin/file
1541 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1542 ;;
1543 ia64*)
1544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1545 lt_cv_file_magic_cmd=/usr/bin/file
1546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1547 ;;
1548 esac
ac48eca1
AO
1549 ;;
1550
1551irix5* | irix6*)
6be7c12c 1552 case $host_os in
ac48eca1
AO
1553 irix5*)
1554 # this will be overridden with pass_all, but let us keep it just in case
1555 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1556 ;;
1557 *)
6be7c12c 1558 case $LD in
ac48eca1
AO
1559 *-32|*"-32 ") libmagic=32-bit;;
1560 *-n32|*"-n32 ") libmagic=N32;;
1561 *-64|*"-64 ") libmagic=64-bit;;
1562 *) libmagic=never-match;;
1563 esac
1564 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
1565 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1566 ;;
ac48eca1
AO
1567 esac
1568 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1569 lt_cv_deplibs_check_method=pass_all
1570 ;;
1571
1572# This must be Linux ELF.
17a94bb6 1573linux-gnu*)
6be7c12c 1574 case $host_cpu in
093872ec 1575 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
1576 lt_cv_deplibs_check_method=pass_all ;;
1577 *)
1578 # glibc up to 2.1.1 does not perform some relocations on ARM
6be7c12c
AO
1579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1580 esac
ac48eca1
AO
1581 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1582 ;;
1583
1584netbsd*)
6be7c12c
AO
1585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 1587 else
6be7c12c 1588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
1589 fi
1590 ;;
1591
6be7c12c
AO
1592newsos6)
1593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1594 lt_cv_file_magic_cmd=/usr/bin/file
1595 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1596 ;;
1597
ac48eca1
AO
1598osf3* | osf4* | osf5*)
1599 # this will be overridden with pass_all, but let us keep it just in case
1600 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1601 lt_cv_file_magic_test_file=/shlib/libc.so
1602 lt_cv_deplibs_check_method=pass_all
1603 ;;
1604
1605sco3.2v5*)
1606 lt_cv_deplibs_check_method=pass_all
1607 ;;
1608
1609solaris*)
1610 lt_cv_deplibs_check_method=pass_all
1611 lt_cv_file_magic_test_file=/lib/libc.so
1612 ;;
1613
6be7c12c
AO
1614sysv5uw[78]* | sysv4*uw2*)
1615 lt_cv_deplibs_check_method=pass_all
1616 ;;
1617
ac48eca1 1618sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 1619 case $host_vendor in
ac48eca1
AO
1620 ncr)
1621 lt_cv_deplibs_check_method=pass_all
1622 ;;
1623 motorola)
6be7c12c
AO
1624 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]'
1625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
1626 ;;
1627 esac
1628 ;;
1629esac
1630
1631fi
1632
1633echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1634file_magic_cmd=$lt_cv_file_magic_cmd
1635deplibs_check_method=$lt_cv_deplibs_check_method
1636
1637echo $ac_n "checking for object suffix""... $ac_c" 1>&6
093872ec 1638echo "configure:1639: checking for object suffix" >&5
ac48eca1
AO
1639if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642 rm -f conftest*
1643echo 'int i = 1;' > conftest.$ac_ext
093872ec 1644if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ac48eca1
AO
1645 for ac_file in conftest.*; do
1646 case $ac_file in
1647 *.c) ;;
1648 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1649 esac
1650 done
1651else
1652 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1653fi
1654rm -f conftest*
1655fi
1656
1657echo "$ac_t""$ac_cv_objext" 1>&6
1658OBJEXT=$ac_cv_objext
1659ac_objext=$ac_cv_objext
1660
1661
1662
1663echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
093872ec 1664echo "configure:1665: checking for executable suffix" >&5
ac48eca1
AO
1665if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1667else
1668 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1669 ac_cv_exeext=.exe
1670else
1671 rm -f conftest*
1672 echo 'int main () { return 0; }' > conftest.$ac_ext
1673 ac_cv_exeext=
093872ec 1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
ac48eca1
AO
1675 for file in conftest.*; do
1676 case $file in
093872ec 1677 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
ac48eca1
AO
1678 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1679 esac
1680 done
1681 else
1682 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1683 fi
1684 rm -f conftest*
1685 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1686fi
1687fi
1688
1689EXEEXT=""
1690test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1691echo "$ac_t""${ac_cv_exeext}" 1>&6
1692ac_exeext=$EXEEXT
1693
1694if test $host != $build; then
1695 ac_tool_prefix=${host_alias}-
1696else
1697 ac_tool_prefix=
1698fi
1699
1700# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1701
1702# Only perform the check for file, if the check method requires it
6be7c12c 1703case $deplibs_check_method in
ac48eca1 1704file_magic*)
d64552c5 1705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ac48eca1 1706 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
093872ec 1707echo "configure:1708: checking for ${ac_tool_prefix}file" >&5
d64552c5 1708if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
ac48eca1
AO
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710else
6be7c12c 1711 case $MAGIC_CMD in
ac48eca1 1712 /*)
d64552c5 1713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1714 ;;
1715 ?:/*)
d64552c5 1716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1717 ;;
1718 *)
d64552c5 1719 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1721 ac_dummy="/usr/bin:$PATH"
1722 for ac_dir in $ac_dummy; do
1723 test -z "$ac_dir" && ac_dir=.
1724 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 1725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 1726 if test -n "$file_magic_test_file"; then
6be7c12c 1727 case $deplibs_check_method in
ac48eca1
AO
1728 "file_magic "*)
1729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1732 egrep "$file_magic_regex" > /dev/null; then
1733 :
1734 else
1735 cat <<EOF 1>&2
1736
1737*** Warning: the command libtool uses to detect shared libraries,
1738*** $file_magic_cmd, produces output that libtool cannot recognize.
1739*** The result is that libtool may fail to recognize shared libraries
1740*** as such. This will affect the creation of libtool libraries that
1741*** depend on shared libraries, but programs linked with such libtool
1742*** libraries will work regardless of this problem. Nevertheless, you
1743*** may want to report the problem to your system manager and/or to
1744*** bug-libtool@gnu.org
1745
1746EOF
1747 fi ;;
1748 esac
1749 fi
1750 break
1751 fi
1752 done
1753 IFS="$ac_save_ifs"
d64552c5 1754 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1755 ;;
1756esac
1757fi
1758
d64552c5
AO
1759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1760if test -n "$MAGIC_CMD"; then
1761 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1
AO
1762else
1763 echo "$ac_t""no" 1>&6
1764fi
1765
d64552c5 1766if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1
AO
1767 if test -n "$ac_tool_prefix"; then
1768 echo $ac_n "checking for file""... $ac_c" 1>&6
093872ec 1769echo "configure:1770: checking for file" >&5
d64552c5 1770if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
ac48eca1
AO
1771 echo $ac_n "(cached) $ac_c" 1>&6
1772else
6be7c12c 1773 case $MAGIC_CMD in
ac48eca1 1774 /*)
d64552c5 1775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1776 ;;
1777 ?:/*)
d64552c5 1778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1779 ;;
1780 *)
d64552c5 1781 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1783 ac_dummy="/usr/bin:$PATH"
1784 for ac_dir in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir=.
1786 if test -f $ac_dir/file; then
d64552c5 1787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 1788 if test -n "$file_magic_test_file"; then
6be7c12c 1789 case $deplibs_check_method in
ac48eca1
AO
1790 "file_magic "*)
1791 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1794 egrep "$file_magic_regex" > /dev/null; then
1795 :
1796 else
1797 cat <<EOF 1>&2
1798
1799*** Warning: the command libtool uses to detect shared libraries,
1800*** $file_magic_cmd, produces output that libtool cannot recognize.
1801*** The result is that libtool may fail to recognize shared libraries
1802*** as such. This will affect the creation of libtool libraries that
1803*** depend on shared libraries, but programs linked with such libtool
1804*** libraries will work regardless of this problem. Nevertheless, you
1805*** may want to report the problem to your system manager and/or to
1806*** bug-libtool@gnu.org
1807
1808EOF
1809 fi ;;
1810 esac
1811 fi
1812 break
1813 fi
1814 done
1815 IFS="$ac_save_ifs"
d64552c5 1816 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1817 ;;
1818esac
1819fi
1820
d64552c5
AO
1821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1822if test -n "$MAGIC_CMD"; then
1823 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1
AO
1824else
1825 echo "$ac_t""no" 1>&6
1826fi
1827
1828 else
d64552c5 1829 MAGIC_CMD=:
ac48eca1
AO
1830 fi
1831fi
252b5132 1832
ac48eca1
AO
1833 fi
1834 ;;
5af11cab 1835esac
252b5132 1836
ac48eca1
AO
1837# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 1840echo "configure:1841: checking for $ac_word" >&5
ac48eca1
AO
1841if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843else
1844 if test -n "$RANLIB"; then
1845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1846else
1847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1848 ac_dummy="$PATH"
1849 for ac_dir in $ac_dummy; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1853 break
1854 fi
1855 done
1856 IFS="$ac_save_ifs"
1857fi
1858fi
1859RANLIB="$ac_cv_prog_RANLIB"
1860if test -n "$RANLIB"; then
1861 echo "$ac_t""$RANLIB" 1>&6
1862else
1863 echo "$ac_t""no" 1>&6
1864fi
1865
1866
1867if test -z "$ac_cv_prog_RANLIB"; then
1868if test -n "$ac_tool_prefix"; then
1869 # Extract the first word of "ranlib", so it can be a program name with args.
1870set dummy ranlib; ac_word=$2
1871echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 1872echo "configure:1873: checking for $ac_word" >&5
ac48eca1
AO
1873if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875else
1876 if test -n "$RANLIB"; then
1877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1878else
1879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1880 ac_dummy="$PATH"
1881 for ac_dir in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f $ac_dir/$ac_word; then
1884 ac_cv_prog_RANLIB="ranlib"
1885 break
1886 fi
1887 done
1888 IFS="$ac_save_ifs"
1889 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1890fi
1891fi
1892RANLIB="$ac_cv_prog_RANLIB"
1893if test -n "$RANLIB"; then
1894 echo "$ac_t""$RANLIB" 1>&6
1895else
1896 echo "$ac_t""no" 1>&6
1897fi
1898
1899else
1900 RANLIB=":"
1901fi
1902fi
1903
1904# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1905set dummy ${ac_tool_prefix}strip; ac_word=$2
1906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 1907echo "configure:1908: checking for $ac_word" >&5
ac48eca1
AO
1908if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1910else
1911 if test -n "$STRIP"; then
1912 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1913else
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1915 ac_dummy="$PATH"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1920 break
1921 fi
1922 done
1923 IFS="$ac_save_ifs"
1924fi
1925fi
1926STRIP="$ac_cv_prog_STRIP"
1927if test -n "$STRIP"; then
1928 echo "$ac_t""$STRIP" 1>&6
1929else
1930 echo "$ac_t""no" 1>&6
1931fi
1932
1933
1934if test -z "$ac_cv_prog_STRIP"; then
1935if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "strip", so it can be a program name with args.
1937set dummy strip; ac_word=$2
1938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 1939echo "configure:1940: checking for $ac_word" >&5
ac48eca1
AO
1940if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942else
1943 if test -n "$STRIP"; then
1944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945else
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 ac_dummy="$PATH"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_STRIP="strip"
1952 break
1953 fi
1954 done
1955 IFS="$ac_save_ifs"
1956 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1957fi
1958fi
1959STRIP="$ac_cv_prog_STRIP"
1960if test -n "$STRIP"; then
1961 echo "$ac_t""$STRIP" 1>&6
1962else
1963 echo "$ac_t""no" 1>&6
1964fi
1965
1966else
1967 STRIP=":"
1968fi
1969fi
1970
1971
252b5132
RH
1972# Check for any special flags to pass to ltconfig.
1973libtool_flags="--cache-file=$cache_file"
1974test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1975test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1976test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
1977test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1978test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 1979
5af11cab
AM
1980
1981# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1982if test "${enable_libtool_lock+set}" = set; then
1983 enableval="$enable_libtool_lock"
1984 :
1985fi
1986
1987test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1988test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1989
ac48eca1
AO
1990# Check whether --with-pic or --without-pic was given.
1991if test "${with_pic+set}" = set; then
1992 withval="$with_pic"
1993 pic_mode="$withval"
1994else
1995 pic_mode=default
1996fi
1997
1998test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1999test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2000
252b5132
RH
2001# Some flags need to be propagated to the compiler or linker for good
2002# libtool support.
6be7c12c 2003case $host in
252b5132
RH
2004*-*-irix6*)
2005 # Find out which ABI we are using.
093872ec
NC
2006 echo '#line 2007 "configure"' > conftest.$ac_ext
2007 if { (eval echo configure:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2008 if test "$lt_cv_prog_gnu_ld" = yes; then
2009 case `/usr/bin/file conftest.$ac_objext` in
2010 *32-bit*)
2011 LD="${LD-ld} -melf32bsmip"
2012 ;;
2013 *N32*)
2014 LD="${LD-ld} -melf32bmipn32"
2015 ;;
2016 *64-bit*)
2017 LD="${LD-ld} -melf64bmip"
2018 ;;
2019 esac
2020 else
6be7c12c 2021 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
2022 *32-bit*)
2023 LD="${LD-ld} -32"
2024 ;;
2025 *N32*)
2026 LD="${LD-ld} -n32"
2027 ;;
2028 *64-bit*)
2029 LD="${LD-ld} -64"
2030 ;;
2031 esac
093872ec 2032 fi
252b5132
RH
2033 fi
2034 rm -rf conftest*
2035 ;;
2036
4867be41
DJ
2037ia64-*-hpux*)
2038 # Find out which ABI we are using.
2039 echo 'int i;' > conftest.$ac_ext
093872ec 2040 if { (eval echo configure:2041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4867be41
DJ
2041 case "`/usr/bin/file conftest.o`" in
2042 *ELF-32*)
2043 HPUX_IA64_MODE="32"
2044 ;;
2045 *ELF-64*)
2046 HPUX_IA64_MODE="64"
2047 ;;
2048 esac
2049 fi
2050 rm -rf conftest*
2051 ;;
2052
252b5132
RH
2053*-*-sco3.2v5*)
2054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2055 SAVE_CFLAGS="$CFLAGS"
2056 CFLAGS="$CFLAGS -belf"
2057 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
093872ec 2058echo "configure:2059: checking whether the C compiler needs -belf" >&5
252b5132
RH
2059if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061else
ac48eca1
AO
2062
2063 ac_ext=c
2064# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2065ac_cpp='$CPP $CPPFLAGS'
2066ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2067ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2068cross_compiling=$ac_cv_prog_cc_cross
2069
2070 cat > conftest.$ac_ext <<EOF
093872ec 2071#line 2072 "configure"
252b5132
RH
2072#include "confdefs.h"
2073
2074int main() {
2075
2076; return 0; }
2077EOF
093872ec 2078if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2079 rm -rf conftest*
2080 lt_cv_cc_needs_belf=yes
2081else
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -rf conftest*
2085 lt_cv_cc_needs_belf=no
2086fi
2087rm -f conftest*
ac48eca1
AO
2088 ac_ext=c
2089# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2090ac_cpp='$CPP $CPPFLAGS'
2091ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2092ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2093cross_compiling=$ac_cv_prog_cc_cross
2094
252b5132
RH
2095fi
2096
2097echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2098 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2099 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2100 CFLAGS="$SAVE_CFLAGS"
2101 fi
2102 ;;
2103
252b5132
RH
2104
2105esac
2106
252b5132
RH
2107
2108# Save cache, so that ltconfig can load it
2109cat > confcache <<\EOF
2110# This file is a shell script that caches the results of configure
2111# tests run on this system so they can be shared between configure
2112# scripts and configure runs. It is not useful on other systems.
2113# If it contains results you don't want to keep, you may remove or edit it.
2114#
2115# By default, configure uses ./config.cache as the cache file,
2116# creating it if it does not exist already. You can give configure
2117# the --cache-file=FILE option to use a different cache file; that is
2118# what configure does when it calls configure scripts in
2119# subdirectories, so they share the cache.
2120# Giving --cache-file=/dev/null disables caching, for debugging configure.
2121# config.status only pays attention to the cache file if you give it the
2122# --recheck option to rerun configure.
2123#
2124EOF
2125# The following way of writing the cache mishandles newlines in values,
2126# but we know of no workaround that is simple, portable, and efficient.
2127# So, don't put newlines in cache variables' values.
2128# Ultrix sh set writes to stderr and can't be redirected directly,
2129# and sets the high bit in the cache file unless we assign to the vars.
2130(set) 2>&1 |
2131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2132 *ac_space=\ *)
2133 # `set' does not quote correctly, so add quotes (double-quote substitution
2134 # turns \\\\ into \\, and sed turns \\ into \).
2135 sed -n \
2136 -e "s/'/'\\\\''/g" \
2137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2138 ;;
2139 *)
2140 # `set' quotes correctly as required by POSIX, so do not add quotes.
2141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2142 ;;
2143 esac >> confcache
2144if cmp -s $cache_file confcache; then
2145 :
2146else
2147 if test -w $cache_file; then
2148 echo "updating cache $cache_file"
2149 cat confcache > $cache_file
2150 else
2151 echo "not updating unwritable cache $cache_file"
2152 fi
2153fi
2154rm -f confcache
2155
2156
2157# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 2158AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 2159MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
2160LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2161AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2162objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2163deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 2164${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 2165$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
252b5132
RH
2166|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2167
2168# Reload cache, that may have been modified by ltconfig
2169if test -r "$cache_file"; then
2170 echo "loading cache $cache_file"
2171 . $cache_file
2172else
2173 echo "creating cache $cache_file"
2174 > $cache_file
2175fi
2176
2177
2178# This can be used to rebuild libtool when needed
ac48eca1 2179LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
2180
2181# Always use our own libtool.
2182LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2183
2184# Redirect the config.log output again, so that the ltconfig log is not
2185# clobbered by the next message.
2186exec 5>>./config.log
2187
ac48eca1
AO
2188
2189
2190
2191
d64552c5 2192
ac48eca1 2193
252b5132
RH
2194
2195
2196
2197
2198# Extract the first word of "gcc", so it can be a program name with args.
2199set dummy gcc; ac_word=$2
2200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 2201echo "configure:2202: checking for $ac_word" >&5
252b5132
RH
2202if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204else
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2207else
2208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2209 ac_dummy="$PATH"
2210 for ac_dir in $ac_dummy; do
2211 test -z "$ac_dir" && ac_dir=.
2212 if test -f $ac_dir/$ac_word; then
2213 ac_cv_prog_CC="gcc"
2214 break
2215 fi
2216 done
2217 IFS="$ac_save_ifs"
2218fi
2219fi
2220CC="$ac_cv_prog_CC"
2221if test -n "$CC"; then
2222 echo "$ac_t""$CC" 1>&6
2223else
2224 echo "$ac_t""no" 1>&6
2225fi
2226
2227if test -z "$CC"; then
2228 # Extract the first word of "cc", so it can be a program name with args.
2229set dummy cc; ac_word=$2
2230echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 2231echo "configure:2232: checking for $ac_word" >&5
252b5132
RH
2232if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2239 ac_prog_rejected=no
2240 ac_dummy="$PATH"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word; then
2244 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2245 ac_prog_rejected=yes
2246 continue
2247 fi
2248 ac_cv_prog_CC="cc"
2249 break
2250 fi
2251 done
2252 IFS="$ac_save_ifs"
2253if test $ac_prog_rejected = yes; then
2254 # We found a bogon in the path, so make sure we never use it.
2255 set dummy $ac_cv_prog_CC
2256 shift
2257 if test $# -gt 0; then
2258 # We chose a different compiler from the bogus one.
2259 # However, it has the same basename, so the bogon will be chosen
2260 # first if we set CC to just the basename; use the full file name.
2261 shift
2262 set dummy "$ac_dir/$ac_word" "$@"
2263 shift
2264 ac_cv_prog_CC="$@"
2265 fi
2266fi
2267fi
2268fi
2269CC="$ac_cv_prog_CC"
2270if test -n "$CC"; then
2271 echo "$ac_t""$CC" 1>&6
2272else
2273 echo "$ac_t""no" 1>&6
2274fi
2275
2276 if test -z "$CC"; then
2277 case "`uname -s`" in
2278 *win32* | *WIN32*)
2279 # Extract the first word of "cl", so it can be a program name with args.
2280set dummy cl; ac_word=$2
2281echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 2282echo "configure:2283: checking for $ac_word" >&5
252b5132
RH
2283if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2285else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288else
2289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2290 ac_dummy="$PATH"
2291 for ac_dir in $ac_dummy; do
2292 test -z "$ac_dir" && ac_dir=.
2293 if test -f $ac_dir/$ac_word; then
2294 ac_cv_prog_CC="cl"
2295 break
2296 fi
2297 done
2298 IFS="$ac_save_ifs"
2299fi
2300fi
2301CC="$ac_cv_prog_CC"
2302if test -n "$CC"; then
2303 echo "$ac_t""$CC" 1>&6
2304else
2305 echo "$ac_t""no" 1>&6
2306fi
2307 ;;
2308 esac
2309 fi
2310 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2311fi
2312
2313echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
093872ec 2314echo "configure:2315: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
252b5132
RH
2315
2316ac_ext=c
2317# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2320ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2321cross_compiling=$ac_cv_prog_cc_cross
2322
2323cat > conftest.$ac_ext << EOF
2324
093872ec 2325#line 2326 "configure"
252b5132
RH
2326#include "confdefs.h"
2327
2328main(){return(0);}
2329EOF
093872ec 2330if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2331 ac_cv_prog_cc_works=yes
2332 # If we can't run a trivial program, we are probably using a cross compiler.
2333 if (./conftest; exit) 2>/dev/null; then
2334 ac_cv_prog_cc_cross=no
2335 else
2336 ac_cv_prog_cc_cross=yes
2337 fi
2338else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 ac_cv_prog_cc_works=no
2342fi
2343rm -fr conftest*
2344ac_ext=c
2345# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2346ac_cpp='$CPP $CPPFLAGS'
2347ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2348ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2349cross_compiling=$ac_cv_prog_cc_cross
2350
2351echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2352if test $ac_cv_prog_cc_works = no; then
2353 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2354fi
2355echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
093872ec 2356echo "configure:2357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
252b5132
RH
2357echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2358cross_compiling=$ac_cv_prog_cc_cross
2359
2360echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
093872ec 2361echo "configure:2362: checking whether we are using GNU C" >&5
252b5132
RH
2362if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364else
2365 cat > conftest.c <<EOF
2366#ifdef __GNUC__
2367 yes;
2368#endif
2369EOF
093872ec 2370if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
252b5132
RH
2371 ac_cv_prog_gcc=yes
2372else
2373 ac_cv_prog_gcc=no
2374fi
2375fi
2376
2377echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2378
2379if test $ac_cv_prog_gcc = yes; then
2380 GCC=yes
2381else
2382 GCC=
2383fi
2384
2385ac_test_CFLAGS="${CFLAGS+set}"
2386ac_save_CFLAGS="$CFLAGS"
2387CFLAGS=
2388echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
093872ec 2389echo "configure:2390: checking whether ${CC-cc} accepts -g" >&5
252b5132
RH
2390if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392else
2393 echo 'void f(){}' > conftest.c
2394if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2395 ac_cv_prog_cc_g=yes
2396else
2397 ac_cv_prog_cc_g=no
2398fi
2399rm -f conftest*
2400
2401fi
2402
2403echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2404if test "$ac_test_CFLAGS" = set; then
2405 CFLAGS="$ac_save_CFLAGS"
2406elif test $ac_cv_prog_cc_g = yes; then
2407 if test "$GCC" = yes; then
2408 CFLAGS="-g -O2"
2409 else
2410 CFLAGS="-g"
2411 fi
2412else
2413 if test "$GCC" = yes; then
2414 CFLAGS="-O2"
2415 else
2416 CFLAGS=
2417 fi
2418fi
2419
2420# Find a good install program. We prefer a C program (faster),
2421# so one script is as good as another. But avoid the broken or
2422# incompatible versions:
2423# SysV /etc/install, /usr/sbin/install
2424# SunOS /usr/etc/install
2425# IRIX /sbin/install
2426# AIX /bin/install
2427# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2428# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2429# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2430# ./install, which can be erroneously created by make from ./install.sh.
2431echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
093872ec 2432echo "configure:2433: checking for a BSD compatible install" >&5
252b5132
RH
2433if test -z "$INSTALL"; then
2434if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436else
2437 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2438 for ac_dir in $PATH; do
2439 # Account for people who put trailing slashes in PATH elements.
2440 case "$ac_dir/" in
2441 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2442 *)
2443 # OSF1 and SCO ODT 3.0 have their own names for install.
2444 # Don't use installbsd from OSF since it installs stuff as root
2445 # by default.
2446 for ac_prog in ginstall scoinst install; do
2447 if test -f $ac_dir/$ac_prog; then
2448 if test $ac_prog = install &&
2449 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2450 # AIX install. It has an incompatible calling convention.
2451 :
2452 else
2453 ac_cv_path_install="$ac_dir/$ac_prog -c"
2454 break 2
2455 fi
2456 fi
2457 done
2458 ;;
2459 esac
2460 done
2461 IFS="$ac_save_IFS"
2462
2463fi
2464 if test "${ac_cv_path_install+set}" = set; then
2465 INSTALL="$ac_cv_path_install"
2466 else
2467 # As a last resort, use the slow shell script. We don't cache a
2468 # path for INSTALL within a source directory, because that will
2469 # break other packages using the cache if that directory is
2470 # removed, or if the path is relative.
2471 INSTALL="$ac_install_sh"
2472 fi
2473fi
2474echo "$ac_t""$INSTALL" 1>&6
2475
2476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477# It thinks the first close brace ends the variable substitution.
2478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479
2480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2481
2482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483
2484
5af11cab
AM
2485for ac_func in setmode
2486do
2487echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
093872ec 2488echo "configure:2489: checking for $ac_func" >&5
5af11cab
AM
2489if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491else
2492 cat > conftest.$ac_ext <<EOF
093872ec 2493#line 2494 "configure"
5af11cab
AM
2494#include "confdefs.h"
2495/* System header to define __stub macros and hopefully few prototypes,
2496 which can conflict with char $ac_func(); below. */
2497#include <assert.h>
2498/* Override any gcc2 internal prototype to avoid an error. */
2499/* We use char because int might match the return type of a gcc2
2500 builtin and then its argument prototype would still apply. */
2501char $ac_func();
2502
2503int main() {
2504
2505/* The GNU C library defines this for functions which it implements
2506 to always fail with ENOSYS. Some functions are actually named
2507 something starting with __ and the normal name is an alias. */
2508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2509choke me
2510#else
2511$ac_func();
2512#endif
2513
2514; return 0; }
2515EOF
093872ec 2516if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5af11cab
AM
2517 rm -rf conftest*
2518 eval "ac_cv_func_$ac_func=yes"
2519else
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 eval "ac_cv_func_$ac_func=no"
2524fi
2525rm -f conftest*
2526fi
2527
2528if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2531 cat >> confdefs.h <<EOF
2532#define $ac_tr_func 1
2533EOF
2534
2535else
2536 echo "$ac_t""no" 1>&6
2537fi
2538done
2539
252b5132 2540
093872ec 2541ALL_LINGUAS="fr tr sv es id da pt_BR de"
252b5132 2542echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
093872ec 2543echo "configure:2544: checking how to run the C preprocessor" >&5
252b5132
RH
2544# On Suns, sometimes $CPP names a directory.
2545if test -n "$CPP" && test -d "$CPP"; then
2546 CPP=
2547fi
2548if test -z "$CPP"; then
2549if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551else
2552 # This must be in double quotes, not single quotes, because CPP may get
2553 # substituted into the Makefile and "${CC-cc}" will confuse make.
2554 CPP="${CC-cc} -E"
2555 # On the NeXT, cc -E runs the code through the compiler's parser,
2556 # not just through cpp.
2557 cat > conftest.$ac_ext <<EOF
093872ec 2558#line 2559 "configure"
252b5132
RH
2559#include "confdefs.h"
2560#include <assert.h>
2561Syntax Error
2562EOF
2563ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 2564{ (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2565ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2566if test -z "$ac_err"; then
2567 :
2568else
2569 echo "$ac_err" >&5
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 rm -rf conftest*
2573 CPP="${CC-cc} -E -traditional-cpp"
2574 cat > conftest.$ac_ext <<EOF
093872ec 2575#line 2576 "configure"
252b5132
RH
2576#include "confdefs.h"
2577#include <assert.h>
2578Syntax Error
2579EOF
2580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 2581{ (eval echo configure:2582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2583if test -z "$ac_err"; then
2584 :
2585else
2586 echo "$ac_err" >&5
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 rm -rf conftest*
2590 CPP="${CC-cc} -nologo -E"
2591 cat > conftest.$ac_ext <<EOF
093872ec 2592#line 2593 "configure"
252b5132
RH
2593#include "confdefs.h"
2594#include <assert.h>
2595Syntax Error
2596EOF
2597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 2598{ (eval echo configure:2599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2600if test -z "$ac_err"; then
2601 :
2602else
2603 echo "$ac_err" >&5
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2606 rm -rf conftest*
2607 CPP=/lib/cpp
2608fi
2609rm -f conftest*
2610fi
2611rm -f conftest*
2612fi
2613rm -f conftest*
2614 ac_cv_prog_CPP="$CPP"
2615fi
2616 CPP="$ac_cv_prog_CPP"
2617else
2618 ac_cv_prog_CPP="$CPP"
2619fi
2620echo "$ac_t""$CPP" 1>&6
2621
ac48eca1
AO
2622# Extract the first word of "ranlib", so it can be a program name with args.
2623set dummy ranlib; ac_word=$2
2624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 2625echo "configure:2626: checking for $ac_word" >&5
ac48eca1
AO
2626if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2628else
2629 if test -n "$RANLIB"; then
2630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2631else
2632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2633 ac_dummy="$PATH"
2634 for ac_dir in $ac_dummy; do
2635 test -z "$ac_dir" && ac_dir=.
2636 if test -f $ac_dir/$ac_word; then
2637 ac_cv_prog_RANLIB="ranlib"
2638 break
2639 fi
2640 done
2641 IFS="$ac_save_ifs"
2642 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2643fi
2644fi
2645RANLIB="$ac_cv_prog_RANLIB"
2646if test -n "$RANLIB"; then
2647 echo "$ac_t""$RANLIB" 1>&6
2648else
2649 echo "$ac_t""no" 1>&6
2650fi
2651
252b5132 2652echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
093872ec 2653echo "configure:2654: checking for ANSI C header files" >&5
252b5132
RH
2654if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656else
2657 cat > conftest.$ac_ext <<EOF
093872ec 2658#line 2659 "configure"
252b5132
RH
2659#include "confdefs.h"
2660#include <stdlib.h>
2661#include <stdarg.h>
2662#include <string.h>
2663#include <float.h>
2664EOF
2665ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 2666{ (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2667ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2668if test -z "$ac_err"; then
2669 rm -rf conftest*
2670 ac_cv_header_stdc=yes
2671else
2672 echo "$ac_err" >&5
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 rm -rf conftest*
2676 ac_cv_header_stdc=no
2677fi
2678rm -f conftest*
2679
2680if test $ac_cv_header_stdc = yes; then
2681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2682cat > conftest.$ac_ext <<EOF
093872ec 2683#line 2684 "configure"
252b5132
RH
2684#include "confdefs.h"
2685#include <string.h>
2686EOF
2687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2688 egrep "memchr" >/dev/null 2>&1; then
2689 :
2690else
2691 rm -rf conftest*
2692 ac_cv_header_stdc=no
2693fi
2694rm -f conftest*
2695
2696fi
2697
2698if test $ac_cv_header_stdc = yes; then
2699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2700cat > conftest.$ac_ext <<EOF
093872ec 2701#line 2702 "configure"
252b5132
RH
2702#include "confdefs.h"
2703#include <stdlib.h>
2704EOF
2705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2706 egrep "free" >/dev/null 2>&1; then
2707 :
2708else
2709 rm -rf conftest*
2710 ac_cv_header_stdc=no
2711fi
2712rm -f conftest*
2713
2714fi
2715
2716if test $ac_cv_header_stdc = yes; then
2717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2718if test "$cross_compiling" = yes; then
2719 :
2720else
2721 cat > conftest.$ac_ext <<EOF
093872ec 2722#line 2723 "configure"
252b5132
RH
2723#include "confdefs.h"
2724#include <ctype.h>
2725#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2726#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2728int main () { int i; for (i = 0; i < 256; i++)
2729if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2730exit (0); }
2731
2732EOF
093872ec 2733if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
2734then
2735 :
2736else
2737 echo "configure: failed program was:" >&5
2738 cat conftest.$ac_ext >&5
2739 rm -fr conftest*
2740 ac_cv_header_stdc=no
2741fi
2742rm -fr conftest*
2743fi
2744
2745fi
2746fi
2747
2748echo "$ac_t""$ac_cv_header_stdc" 1>&6
2749if test $ac_cv_header_stdc = yes; then
2750 cat >> confdefs.h <<\EOF
2751#define STDC_HEADERS 1
2752EOF
2753
2754fi
2755
2756echo $ac_n "checking for working const""... $ac_c" 1>&6
093872ec 2757echo "configure:2758: checking for working const" >&5
252b5132
RH
2758if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2760else
2761 cat > conftest.$ac_ext <<EOF
093872ec 2762#line 2763 "configure"
252b5132
RH
2763#include "confdefs.h"
2764
2765int main() {
2766
2767/* Ultrix mips cc rejects this. */
2768typedef int charset[2]; const charset x;
2769/* SunOS 4.1.1 cc rejects this. */
2770char const *const *ccp;
2771char **p;
2772/* NEC SVR4.0.2 mips cc rejects this. */
2773struct point {int x, y;};
2774static struct point const zero = {0,0};
2775/* AIX XL C 1.02.0.0 rejects this.
2776 It does not let you subtract one const X* pointer from another in an arm
2777 of an if-expression whose if-part is not a constant expression */
2778const char *g = "string";
2779ccp = &g + (g ? g-g : 0);
2780/* HPUX 7.0 cc rejects these. */
2781++ccp;
2782p = (char**) ccp;
2783ccp = (char const *const *) p;
2784{ /* SCO 3.2v4 cc rejects this. */
2785 char *t;
2786 char const *s = 0 ? (char *) 0 : (char const *) 0;
2787
2788 *t++ = 0;
2789}
2790{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2791 int x[] = {25, 17};
2792 const int *foo = &x[0];
2793 ++foo;
2794}
2795{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2796 typedef const int *iptr;
2797 iptr p = 0;
2798 ++p;
2799}
2800{ /* AIX XL C 1.02.0.0 rejects this saying
2801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2802 struct s { int j; const int *ap[3]; };
2803 struct s *b; b->j = 5;
2804}
2805{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2806 const int foo = 10;
2807}
2808
2809; return 0; }
2810EOF
093872ec 2811if { (eval echo configure:2812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
2812 rm -rf conftest*
2813 ac_cv_c_const=yes
2814else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 rm -rf conftest*
2818 ac_cv_c_const=no
2819fi
2820rm -f conftest*
2821fi
2822
2823echo "$ac_t""$ac_cv_c_const" 1>&6
2824if test $ac_cv_c_const = no; then
2825 cat >> confdefs.h <<\EOF
2826#define const
2827EOF
2828
2829fi
2830
2831echo $ac_n "checking for inline""... $ac_c" 1>&6
093872ec 2832echo "configure:2833: checking for inline" >&5
252b5132
RH
2833if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2835else
2836 ac_cv_c_inline=no
2837for ac_kw in inline __inline__ __inline; do
2838 cat > conftest.$ac_ext <<EOF
093872ec 2839#line 2840 "configure"
252b5132
RH
2840#include "confdefs.h"
2841
2842int main() {
2843} $ac_kw foo() {
2844; return 0; }
2845EOF
093872ec 2846if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
2847 rm -rf conftest*
2848 ac_cv_c_inline=$ac_kw; break
2849else
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2852fi
2853rm -f conftest*
2854done
2855
2856fi
2857
2858echo "$ac_t""$ac_cv_c_inline" 1>&6
2859case "$ac_cv_c_inline" in
2860 inline | yes) ;;
2861 no) cat >> confdefs.h <<\EOF
2862#define inline
2863EOF
2864 ;;
2865 *) cat >> confdefs.h <<EOF
2866#define inline $ac_cv_c_inline
2867EOF
2868 ;;
2869esac
2870
2871echo $ac_n "checking for off_t""... $ac_c" 1>&6
093872ec 2872echo "configure:2873: checking for off_t" >&5
252b5132
RH
2873if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2875else
2876 cat > conftest.$ac_ext <<EOF
093872ec 2877#line 2878 "configure"
252b5132
RH
2878#include "confdefs.h"
2879#include <sys/types.h>
2880#if STDC_HEADERS
2881#include <stdlib.h>
2882#include <stddef.h>
2883#endif
2884EOF
2885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2886 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2887 rm -rf conftest*
2888 ac_cv_type_off_t=yes
2889else
2890 rm -rf conftest*
2891 ac_cv_type_off_t=no
2892fi
2893rm -f conftest*
2894
2895fi
2896echo "$ac_t""$ac_cv_type_off_t" 1>&6
2897if test $ac_cv_type_off_t = no; then
2898 cat >> confdefs.h <<\EOF
2899#define off_t long
2900EOF
2901
2902fi
2903
2904echo $ac_n "checking for size_t""... $ac_c" 1>&6
093872ec 2905echo "configure:2906: checking for size_t" >&5
252b5132
RH
2906if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2908else
2909 cat > conftest.$ac_ext <<EOF
093872ec 2910#line 2911 "configure"
252b5132
RH
2911#include "confdefs.h"
2912#include <sys/types.h>
2913#if STDC_HEADERS
2914#include <stdlib.h>
2915#include <stddef.h>
2916#endif
2917EOF
2918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2920 rm -rf conftest*
2921 ac_cv_type_size_t=yes
2922else
2923 rm -rf conftest*
2924 ac_cv_type_size_t=no
2925fi
2926rm -f conftest*
2927
2928fi
2929echo "$ac_t""$ac_cv_type_size_t" 1>&6
2930if test $ac_cv_type_size_t = no; then
2931 cat >> confdefs.h <<\EOF
2932#define size_t unsigned
2933EOF
2934
2935fi
2936
2937# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2938# for constant arguments. Useless!
2939echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
093872ec 2940echo "configure:2941: checking for working alloca.h" >&5
252b5132
RH
2941if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2943else
2944 cat > conftest.$ac_ext <<EOF
093872ec 2945#line 2946 "configure"
252b5132
RH
2946#include "confdefs.h"
2947#include <alloca.h>
2948int main() {
2949char *p = alloca(2 * sizeof(int));
2950; return 0; }
2951EOF
093872ec 2952if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2953 rm -rf conftest*
2954 ac_cv_header_alloca_h=yes
2955else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -rf conftest*
2959 ac_cv_header_alloca_h=no
2960fi
2961rm -f conftest*
2962fi
2963
2964echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2965if test $ac_cv_header_alloca_h = yes; then
2966 cat >> confdefs.h <<\EOF
2967#define HAVE_ALLOCA_H 1
2968EOF
2969
2970fi
2971
2972echo $ac_n "checking for alloca""... $ac_c" 1>&6
093872ec 2973echo "configure:2974: checking for alloca" >&5
252b5132
RH
2974if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2976else
2977 cat > conftest.$ac_ext <<EOF
093872ec 2978#line 2979 "configure"
252b5132
RH
2979#include "confdefs.h"
2980
2981#ifdef __GNUC__
2982# define alloca __builtin_alloca
2983#else
2984# ifdef _MSC_VER
2985# include <malloc.h>
2986# define alloca _alloca
2987# else
2988# if HAVE_ALLOCA_H
2989# include <alloca.h>
2990# else
2991# ifdef _AIX
2992 #pragma alloca
2993# else
2994# ifndef alloca /* predefined by HP cc +Olibcalls */
2995char *alloca ();
2996# endif
2997# endif
2998# endif
2999# endif
3000#endif
3001
3002int main() {
3003char *p = (char *) alloca(1);
3004; return 0; }
3005EOF
093872ec 3006if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3007 rm -rf conftest*
3008 ac_cv_func_alloca_works=yes
3009else
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 rm -rf conftest*
3013 ac_cv_func_alloca_works=no
3014fi
3015rm -f conftest*
3016fi
3017
3018echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3019if test $ac_cv_func_alloca_works = yes; then
3020 cat >> confdefs.h <<\EOF
3021#define HAVE_ALLOCA 1
3022EOF
3023
3024fi
3025
3026if test $ac_cv_func_alloca_works = no; then
3027 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3028 # that cause trouble. Some versions do not even contain alloca or
3029 # contain a buggy version. If you still want to use their alloca,
3030 # use ar to extract alloca.o from them instead of compiling alloca.c.
3031 ALLOCA=alloca.${ac_objext}
3032 cat >> confdefs.h <<\EOF
3033#define C_ALLOCA 1
3034EOF
3035
3036
3037echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
093872ec 3038echo "configure:3039: checking whether alloca needs Cray hooks" >&5
252b5132
RH
3039if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3041else
3042 cat > conftest.$ac_ext <<EOF
093872ec 3043#line 3044 "configure"
252b5132
RH
3044#include "confdefs.h"
3045#if defined(CRAY) && ! defined(CRAY2)
3046webecray
3047#else
3048wenotbecray
3049#endif
3050
3051EOF
3052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053 egrep "webecray" >/dev/null 2>&1; then
3054 rm -rf conftest*
3055 ac_cv_os_cray=yes
3056else
3057 rm -rf conftest*
3058 ac_cv_os_cray=no
3059fi
3060rm -f conftest*
3061
3062fi
3063
3064echo "$ac_t""$ac_cv_os_cray" 1>&6
3065if test $ac_cv_os_cray = yes; then
3066for ac_func in _getb67 GETB67 getb67; do
3067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
093872ec 3068echo "configure:3069: checking for $ac_func" >&5
252b5132
RH
3069if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3071else
3072 cat > conftest.$ac_ext <<EOF
093872ec 3073#line 3074 "configure"
252b5132
RH
3074#include "confdefs.h"
3075/* System header to define __stub macros and hopefully few prototypes,
3076 which can conflict with char $ac_func(); below. */
3077#include <assert.h>
3078/* Override any gcc2 internal prototype to avoid an error. */
3079/* We use char because int might match the return type of a gcc2
3080 builtin and then its argument prototype would still apply. */
3081char $ac_func();
3082
3083int main() {
3084
3085/* The GNU C library defines this for functions which it implements
3086 to always fail with ENOSYS. Some functions are actually named
3087 something starting with __ and the normal name is an alias. */
3088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3089choke me
3090#else
3091$ac_func();
3092#endif
3093
3094; return 0; }
3095EOF
093872ec 3096if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3097 rm -rf conftest*
3098 eval "ac_cv_func_$ac_func=yes"
3099else
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3102 rm -rf conftest*
3103 eval "ac_cv_func_$ac_func=no"
3104fi
3105rm -f conftest*
3106fi
3107
3108if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3109 echo "$ac_t""yes" 1>&6
3110 cat >> confdefs.h <<EOF
3111#define CRAY_STACKSEG_END $ac_func
3112EOF
3113
3114 break
3115else
3116 echo "$ac_t""no" 1>&6
3117fi
3118
3119done
3120fi
3121
3122echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
093872ec 3123echo "configure:3124: checking stack direction for C alloca" >&5
252b5132
RH
3124if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3126else
3127 if test "$cross_compiling" = yes; then
3128 ac_cv_c_stack_direction=0
3129else
3130 cat > conftest.$ac_ext <<EOF
093872ec 3131#line 3132 "configure"
252b5132
RH
3132#include "confdefs.h"
3133find_stack_direction ()
3134{
3135 static char *addr = 0;
3136 auto char dummy;
3137 if (addr == 0)
3138 {
3139 addr = &dummy;
3140 return find_stack_direction ();
3141 }
3142 else
3143 return (&dummy > addr) ? 1 : -1;
3144}
3145main ()
3146{
3147 exit (find_stack_direction() < 0);
3148}
3149EOF
093872ec 3150if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3151then
3152 ac_cv_c_stack_direction=1
3153else
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3156 rm -fr conftest*
3157 ac_cv_c_stack_direction=-1
3158fi
3159rm -fr conftest*
3160fi
3161
3162fi
3163
3164echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3165cat >> confdefs.h <<EOF
3166#define STACK_DIRECTION $ac_cv_c_stack_direction
3167EOF
3168
3169fi
3170
093872ec 3171for ac_hdr in unistd.h
252b5132
RH
3172do
3173ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3174echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
093872ec 3175echo "configure:3176: checking for $ac_hdr" >&5
252b5132
RH
3176if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3178else
3179 cat > conftest.$ac_ext <<EOF
093872ec 3180#line 3181 "configure"
252b5132
RH
3181#include "confdefs.h"
3182#include <$ac_hdr>
3183EOF
3184ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 3185{ (eval echo configure:3186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3186ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3187if test -z "$ac_err"; then
3188 rm -rf conftest*
3189 eval "ac_cv_header_$ac_safe=yes"
3190else
3191 echo "$ac_err" >&5
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194 rm -rf conftest*
3195 eval "ac_cv_header_$ac_safe=no"
3196fi
3197rm -f conftest*
3198fi
3199if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3202 cat >> confdefs.h <<EOF
3203#define $ac_tr_hdr 1
3204EOF
3205
3206else
3207 echo "$ac_t""no" 1>&6
3208fi
3209done
3210
3211for ac_func in getpagesize
3212do
3213echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
093872ec 3214echo "configure:3215: checking for $ac_func" >&5
252b5132
RH
3215if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3217else
3218 cat > conftest.$ac_ext <<EOF
093872ec 3219#line 3220 "configure"
252b5132
RH
3220#include "confdefs.h"
3221/* System header to define __stub macros and hopefully few prototypes,
3222 which can conflict with char $ac_func(); below. */
3223#include <assert.h>
3224/* Override any gcc2 internal prototype to avoid an error. */
3225/* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227char $ac_func();
3228
3229int main() {
3230
3231/* The GNU C library defines this for functions which it implements
3232 to always fail with ENOSYS. Some functions are actually named
3233 something starting with __ and the normal name is an alias. */
3234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3235choke me
3236#else
3237$ac_func();
3238#endif
3239
3240; return 0; }
3241EOF
093872ec 3242if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3243 rm -rf conftest*
3244 eval "ac_cv_func_$ac_func=yes"
3245else
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 rm -rf conftest*
3249 eval "ac_cv_func_$ac_func=no"
3250fi
3251rm -f conftest*
3252fi
3253
3254if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3257 cat >> confdefs.h <<EOF
3258#define $ac_tr_func 1
3259EOF
3260
3261else
3262 echo "$ac_t""no" 1>&6
3263fi
3264done
3265
3266echo $ac_n "checking for working mmap""... $ac_c" 1>&6
093872ec 3267echo "configure:3268: checking for working mmap" >&5
252b5132
RH
3268if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3270else
3271 if test "$cross_compiling" = yes; then
3272 ac_cv_func_mmap_fixed_mapped=no
3273else
3274 cat > conftest.$ac_ext <<EOF
093872ec 3275#line 3276 "configure"
252b5132
RH
3276#include "confdefs.h"
3277
3278/* Thanks to Mike Haertel and Jim Avera for this test.
3279 Here is a matrix of mmap possibilities:
3280 mmap private not fixed
3281 mmap private fixed at somewhere currently unmapped
3282 mmap private fixed at somewhere already mapped
3283 mmap shared not fixed
3284 mmap shared fixed at somewhere currently unmapped
3285 mmap shared fixed at somewhere already mapped
3286 For private mappings, we should verify that changes cannot be read()
3287 back from the file, nor mmap's back from the file at a different
3288 address. (There have been systems where private was not correctly
3289 implemented like the infamous i386 svr4.0, and systems where the
3290 VM page cache was not coherent with the filesystem buffer cache
3291 like early versions of FreeBSD and possibly contemporary NetBSD.)
3292 For shared mappings, we should conversely verify that changes get
3293 propogated back to all the places they're supposed to be.
3294
3295 Grep wants private fixed already mapped.
3296 The main things grep needs to know about mmap are:
3297 * does it exist and is it safe to write into the mmap'd area
3298 * how to use it (BSD variants) */
3299#include <sys/types.h>
3300#include <fcntl.h>
3301#include <sys/mman.h>
3302
3303/* This mess was copied from the GNU getpagesize.h. */
3304#ifndef HAVE_GETPAGESIZE
093872ec
NC
3305# ifdef HAVE_UNISTD_H
3306# include <unistd.h>
3307# endif
252b5132
RH
3308
3309/* Assume that all systems that can run configure have sys/param.h. */
3310# ifndef HAVE_SYS_PARAM_H
3311# define HAVE_SYS_PARAM_H 1
3312# endif
3313
3314# ifdef _SC_PAGESIZE
3315# define getpagesize() sysconf(_SC_PAGESIZE)
3316# else /* no _SC_PAGESIZE */
3317# ifdef HAVE_SYS_PARAM_H
3318# include <sys/param.h>
3319# ifdef EXEC_PAGESIZE
3320# define getpagesize() EXEC_PAGESIZE
3321# else /* no EXEC_PAGESIZE */
3322# ifdef NBPG
3323# define getpagesize() NBPG * CLSIZE
3324# ifndef CLSIZE
3325# define CLSIZE 1
3326# endif /* no CLSIZE */
3327# else /* no NBPG */
3328# ifdef NBPC
3329# define getpagesize() NBPC
3330# else /* no NBPC */
3331# ifdef PAGESIZE
3332# define getpagesize() PAGESIZE
3333# endif /* PAGESIZE */
3334# endif /* no NBPC */
3335# endif /* no NBPG */
3336# endif /* no EXEC_PAGESIZE */
3337# else /* no HAVE_SYS_PARAM_H */
3338# define getpagesize() 8192 /* punt totally */
3339# endif /* no HAVE_SYS_PARAM_H */
3340# endif /* no _SC_PAGESIZE */
3341
3342#endif /* no HAVE_GETPAGESIZE */
3343
3344#ifdef __cplusplus
3345extern "C" { void *malloc(unsigned); }
3346#else
3347char *malloc();
3348#endif
3349
3350int
3351main()
3352{
3353 char *data, *data2, *data3;
3354 int i, pagesize;
3355 int fd;
3356
3357 pagesize = getpagesize();
3358
3359 /*
3360 * First, make a file with some known garbage in it.
3361 */
3362 data = malloc(pagesize);
3363 if (!data)
3364 exit(1);
3365 for (i = 0; i < pagesize; ++i)
3366 *(data + i) = rand();
3367 umask(0);
3368 fd = creat("conftestmmap", 0600);
3369 if (fd < 0)
3370 exit(1);
3371 if (write(fd, data, pagesize) != pagesize)
3372 exit(1);
3373 close(fd);
3374
3375 /*
3376 * Next, try to mmap the file at a fixed address which
3377 * already has something else allocated at it. If we can,
3378 * also make sure that we see the same garbage.
3379 */
3380 fd = open("conftestmmap", O_RDWR);
3381 if (fd < 0)
3382 exit(1);
3383 data2 = malloc(2 * pagesize);
3384 if (!data2)
3385 exit(1);
3386 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3387 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3388 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3389 exit(1);
3390 for (i = 0; i < pagesize; ++i)
3391 if (*(data + i) != *(data2 + i))
3392 exit(1);
3393
3394 /*
3395 * Finally, make sure that changes to the mapped area
3396 * do not percolate back to the file as seen by read().
3397 * (This is a bug on some variants of i386 svr4.0.)
3398 */
3399 for (i = 0; i < pagesize; ++i)
3400 *(data2 + i) = *(data2 + i) + 1;
3401 data3 = malloc(pagesize);
3402 if (!data3)
3403 exit(1);
3404 if (read(fd, data3, pagesize) != pagesize)
3405 exit(1);
3406 for (i = 0; i < pagesize; ++i)
3407 if (*(data + i) != *(data3 + i))
3408 exit(1);
3409 close(fd);
3410 unlink("conftestmmap");
3411 exit(0);
3412}
3413
3414EOF
093872ec 3415if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3416then
3417 ac_cv_func_mmap_fixed_mapped=yes
3418else
3419 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3421 rm -fr conftest*
3422 ac_cv_func_mmap_fixed_mapped=no
3423fi
3424rm -fr conftest*
3425fi
3426
3427fi
3428
3429echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3430if test $ac_cv_func_mmap_fixed_mapped = yes; then
3431 cat >> confdefs.h <<\EOF
3432#define HAVE_MMAP 1
3433EOF
3434
3435fi
3436
3437
3438 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3439unistd.h values.h sys/param.h
3440do
3441ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3442echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
093872ec 3443echo "configure:3444: checking for $ac_hdr" >&5
252b5132
RH
3444if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3446else
3447 cat > conftest.$ac_ext <<EOF
093872ec 3448#line 3449 "configure"
252b5132
RH
3449#include "confdefs.h"
3450#include <$ac_hdr>
3451EOF
3452ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 3453{ (eval echo configure:3454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3454ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3455if test -z "$ac_err"; then
3456 rm -rf conftest*
3457 eval "ac_cv_header_$ac_safe=yes"
3458else
3459 echo "$ac_err" >&5
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 rm -rf conftest*
3463 eval "ac_cv_header_$ac_safe=no"
3464fi
3465rm -f conftest*
3466fi
3467if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3470 cat >> confdefs.h <<EOF
3471#define $ac_tr_hdr 1
3472EOF
3473
3474else
3475 echo "$ac_t""no" 1>&6
3476fi
3477done
3478
3479 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3480__argz_count __argz_stringify __argz_next
3481do
3482echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
093872ec 3483echo "configure:3484: checking for $ac_func" >&5
252b5132
RH
3484if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3486else
3487 cat > conftest.$ac_ext <<EOF
093872ec 3488#line 3489 "configure"
252b5132
RH
3489#include "confdefs.h"
3490/* System header to define __stub macros and hopefully few prototypes,
3491 which can conflict with char $ac_func(); below. */
3492#include <assert.h>
3493/* Override any gcc2 internal prototype to avoid an error. */
3494/* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3496char $ac_func();
3497
3498int main() {
3499
3500/* The GNU C library defines this for functions which it implements
3501 to always fail with ENOSYS. Some functions are actually named
3502 something starting with __ and the normal name is an alias. */
3503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3504choke me
3505#else
3506$ac_func();
3507#endif
3508
3509; return 0; }
3510EOF
093872ec 3511if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3512 rm -rf conftest*
3513 eval "ac_cv_func_$ac_func=yes"
3514else
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 rm -rf conftest*
3518 eval "ac_cv_func_$ac_func=no"
3519fi
3520rm -f conftest*
3521fi
3522
3523if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3526 cat >> confdefs.h <<EOF
3527#define $ac_tr_func 1
3528EOF
3529
3530else
3531 echo "$ac_t""no" 1>&6
3532fi
3533done
3534
3535
3536 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3537 for ac_func in stpcpy
3538do
3539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
093872ec 3540echo "configure:3541: checking for $ac_func" >&5
252b5132
RH
3541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3543else
3544 cat > conftest.$ac_ext <<EOF
093872ec 3545#line 3546 "configure"
252b5132
RH
3546#include "confdefs.h"
3547/* System header to define __stub macros and hopefully few prototypes,
3548 which can conflict with char $ac_func(); below. */
3549#include <assert.h>
3550/* Override any gcc2 internal prototype to avoid an error. */
3551/* We use char because int might match the return type of a gcc2
3552 builtin and then its argument prototype would still apply. */
3553char $ac_func();
3554
3555int main() {
3556
3557/* The GNU C library defines this for functions which it implements
3558 to always fail with ENOSYS. Some functions are actually named
3559 something starting with __ and the normal name is an alias. */
3560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3561choke me
3562#else
3563$ac_func();
3564#endif
3565
3566; return 0; }
3567EOF
093872ec 3568if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3569 rm -rf conftest*
3570 eval "ac_cv_func_$ac_func=yes"
3571else
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 rm -rf conftest*
3575 eval "ac_cv_func_$ac_func=no"
3576fi
3577rm -f conftest*
3578fi
3579
3580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3583 cat >> confdefs.h <<EOF
3584#define $ac_tr_func 1
3585EOF
3586
3587else
3588 echo "$ac_t""no" 1>&6
3589fi
3590done
3591
3592 fi
3593 if test "${ac_cv_func_stpcpy}" = "yes"; then
3594 cat >> confdefs.h <<\EOF
3595#define HAVE_STPCPY 1
3596EOF
3597
3598 fi
3599
3600 if test $ac_cv_header_locale_h = yes; then
3601 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
093872ec 3602echo "configure:3603: checking for LC_MESSAGES" >&5
252b5132
RH
3603if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3605else
3606 cat > conftest.$ac_ext <<EOF
093872ec 3607#line 3608 "configure"
252b5132
RH
3608#include "confdefs.h"
3609#include <locale.h>
3610int main() {
3611return LC_MESSAGES
3612; return 0; }
3613EOF
093872ec 3614if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3615 rm -rf conftest*
3616 am_cv_val_LC_MESSAGES=yes
3617else
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 rm -rf conftest*
3621 am_cv_val_LC_MESSAGES=no
3622fi
3623rm -f conftest*
3624fi
3625
3626echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3627 if test $am_cv_val_LC_MESSAGES = yes; then
3628 cat >> confdefs.h <<\EOF
3629#define HAVE_LC_MESSAGES 1
3630EOF
3631
3632 fi
3633 fi
3634 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
093872ec 3635echo "configure:3636: checking whether NLS is requested" >&5
252b5132
RH
3636 # Check whether --enable-nls or --disable-nls was given.
3637if test "${enable_nls+set}" = set; then
3638 enableval="$enable_nls"
3639 USE_NLS=$enableval
3640else
3641 USE_NLS=yes
3642fi
3643
3644 echo "$ac_t""$USE_NLS" 1>&6
3645
3646
3647 USE_INCLUDED_LIBINTL=no
3648
3649 if test "$USE_NLS" = "yes"; then
3650 cat >> confdefs.h <<\EOF
3651#define ENABLE_NLS 1
3652EOF
3653
3654 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
093872ec 3655echo "configure:3656: checking whether included gettext is requested" >&5
252b5132
RH
3656 # Check whether --with-included-gettext or --without-included-gettext was given.
3657if test "${with_included_gettext+set}" = set; then
3658 withval="$with_included_gettext"
3659 nls_cv_force_use_gnu_gettext=$withval
3660else
3661 nls_cv_force_use_gnu_gettext=no
3662fi
3663
3664 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3665
3666 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3667 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3668 nls_cv_header_intl=
3669 nls_cv_header_libgt=
3670 CATOBJEXT=NONE
3671
3672 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3673echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
093872ec 3674echo "configure:3675: checking for libintl.h" >&5
252b5132
RH
3675if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3677else
3678 cat > conftest.$ac_ext <<EOF
093872ec 3679#line 3680 "configure"
252b5132
RH
3680#include "confdefs.h"
3681#include <libintl.h>
3682EOF
3683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 3684{ (eval echo configure:3685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3686if test -z "$ac_err"; then
3687 rm -rf conftest*
3688 eval "ac_cv_header_$ac_safe=yes"
3689else
3690 echo "$ac_err" >&5
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 rm -rf conftest*
3694 eval "ac_cv_header_$ac_safe=no"
3695fi
3696rm -f conftest*
3697fi
3698if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
093872ec 3701echo "configure:3702: checking for gettext in libc" >&5
252b5132
RH
3702if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704else
3705 cat > conftest.$ac_ext <<EOF
093872ec 3706#line 3707 "configure"
252b5132
RH
3707#include "confdefs.h"
3708#include <libintl.h>
3709int main() {
3710return (int) gettext ("")
3711; return 0; }
3712EOF
093872ec 3713if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3714 rm -rf conftest*
3715 gt_cv_func_gettext_libc=yes
3716else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 gt_cv_func_gettext_libc=no
3721fi
3722rm -f conftest*
3723fi
3724
3725echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3726
3727 if test "$gt_cv_func_gettext_libc" != "yes"; then
3728 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
093872ec 3729echo "configure:3730: checking for bindtextdomain in -lintl" >&5
252b5132
RH
3730ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3733else
3734 ac_save_LIBS="$LIBS"
3735LIBS="-lintl $LIBS"
3736cat > conftest.$ac_ext <<EOF
093872ec 3737#line 3738 "configure"
252b5132
RH
3738#include "confdefs.h"
3739/* Override any gcc2 internal prototype to avoid an error. */
3740/* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3742char bindtextdomain();
3743
3744int main() {
3745bindtextdomain()
3746; return 0; }
3747EOF
093872ec 3748if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3749 rm -rf conftest*
3750 eval "ac_cv_lib_$ac_lib_var=yes"
3751else
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 eval "ac_cv_lib_$ac_lib_var=no"
3756fi
3757rm -f conftest*
3758LIBS="$ac_save_LIBS"
3759
3760fi
3761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3762 echo "$ac_t""yes" 1>&6
3763 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
093872ec 3764echo "configure:3765: checking for gettext in libintl" >&5
252b5132
RH
3765if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3767else
3768 cat > conftest.$ac_ext <<EOF
093872ec 3769#line 3770 "configure"
252b5132
RH
3770#include "confdefs.h"
3771
3772int main() {
3773return (int) gettext ("")
3774; return 0; }
3775EOF
093872ec 3776if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3777 rm -rf conftest*
3778 gt_cv_func_gettext_libintl=yes
3779else
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 rm -rf conftest*
3783 gt_cv_func_gettext_libintl=no
3784fi
3785rm -f conftest*
3786fi
3787
3788echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3789else
3790 echo "$ac_t""no" 1>&6
3791fi
3792
3793 fi
3794
3795 if test "$gt_cv_func_gettext_libc" = "yes" \
3796 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3797 cat >> confdefs.h <<\EOF
3798#define HAVE_GETTEXT 1
3799EOF
3800
3801 # Extract the first word of "msgfmt", so it can be a program name with args.
3802set dummy msgfmt; ac_word=$2
3803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 3804echo "configure:3805: checking for $ac_word" >&5
252b5132
RH
3805if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3807else
3808 case "$MSGFMT" in
3809 /*)
3810 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3811 ;;
3812 *)
3813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3814 for ac_dir in $PATH; do
3815 test -z "$ac_dir" && ac_dir=.
3816 if test -f $ac_dir/$ac_word; then
3817 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3818 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3819 break
3820 fi
3821 fi
3822 done
3823 IFS="$ac_save_ifs"
3824 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3825 ;;
3826esac
3827fi
3828MSGFMT="$ac_cv_path_MSGFMT"
3829if test -n "$MSGFMT"; then
3830 echo "$ac_t""$MSGFMT" 1>&6
3831else
3832 echo "$ac_t""no" 1>&6
3833fi
3834 if test "$MSGFMT" != "no"; then
3835 for ac_func in dcgettext
3836do
3837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
093872ec 3838echo "configure:3839: checking for $ac_func" >&5
252b5132
RH
3839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3841else
3842 cat > conftest.$ac_ext <<EOF
093872ec 3843#line 3844 "configure"
252b5132
RH
3844#include "confdefs.h"
3845/* System header to define __stub macros and hopefully few prototypes,
3846 which can conflict with char $ac_func(); below. */
3847#include <assert.h>
3848/* Override any gcc2 internal prototype to avoid an error. */
3849/* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3851char $ac_func();
3852
3853int main() {
3854
3855/* The GNU C library defines this for functions which it implements
3856 to always fail with ENOSYS. Some functions are actually named
3857 something starting with __ and the normal name is an alias. */
3858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3859choke me
3860#else
3861$ac_func();
3862#endif
3863
3864; return 0; }
3865EOF
093872ec 3866if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3867 rm -rf conftest*
3868 eval "ac_cv_func_$ac_func=yes"
3869else
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 rm -rf conftest*
3873 eval "ac_cv_func_$ac_func=no"
3874fi
3875rm -f conftest*
3876fi
3877
3878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3881 cat >> confdefs.h <<EOF
3882#define $ac_tr_func 1
3883EOF
3884
3885else
3886 echo "$ac_t""no" 1>&6
3887fi
3888done
3889
3890 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3891set dummy gmsgfmt; ac_word=$2
3892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 3893echo "configure:3894: checking for $ac_word" >&5
252b5132
RH
3894if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3896else
3897 case "$GMSGFMT" in
3898 /*)
3899 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3900 ;;
3901 ?:/*)
3902 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3903 ;;
3904 *)
3905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3906 ac_dummy="$PATH"
3907 for ac_dir in $ac_dummy; do
3908 test -z "$ac_dir" && ac_dir=.
3909 if test -f $ac_dir/$ac_word; then
3910 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3911 break
3912 fi
3913 done
3914 IFS="$ac_save_ifs"
3915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3916 ;;
3917esac
3918fi
3919GMSGFMT="$ac_cv_path_GMSGFMT"
3920if test -n "$GMSGFMT"; then
3921 echo "$ac_t""$GMSGFMT" 1>&6
3922else
3923 echo "$ac_t""no" 1>&6
3924fi
3925
3926 # Extract the first word of "xgettext", so it can be a program name with args.
3927set dummy xgettext; ac_word=$2
3928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 3929echo "configure:3930: checking for $ac_word" >&5
252b5132
RH
3930if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3932else
3933 case "$XGETTEXT" in
3934 /*)
3935 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3936 ;;
3937 *)
3938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3939 for ac_dir in $PATH; do
3940 test -z "$ac_dir" && ac_dir=.
3941 if test -f $ac_dir/$ac_word; then
3942 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3943 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3944 break
3945 fi
3946 fi
3947 done
3948 IFS="$ac_save_ifs"
3949 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3950 ;;
3951esac
3952fi
3953XGETTEXT="$ac_cv_path_XGETTEXT"
3954if test -n "$XGETTEXT"; then
3955 echo "$ac_t""$XGETTEXT" 1>&6
3956else
3957 echo "$ac_t""no" 1>&6
3958fi
3959
3960 cat > conftest.$ac_ext <<EOF
093872ec 3961#line 3962 "configure"
252b5132
RH
3962#include "confdefs.h"
3963
3964int main() {
3965extern int _nl_msg_cat_cntr;
3966 return _nl_msg_cat_cntr
3967; return 0; }
3968EOF
093872ec 3969if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3970 rm -rf conftest*
3971 CATOBJEXT=.gmo
3972 DATADIRNAME=share
3973else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 CATOBJEXT=.mo
3978 DATADIRNAME=lib
3979fi
3980rm -f conftest*
3981 INSTOBJEXT=.mo
3982 fi
3983 fi
3984
3985else
3986 echo "$ac_t""no" 1>&6
3987fi
3988
3989
3990
3991 if test "$CATOBJEXT" = "NONE"; then
3992 nls_cv_use_gnu_gettext=yes
3993 fi
3994 fi
3995
3996 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3997 INTLOBJS="\$(GETTOBJS)"
3998 # Extract the first word of "msgfmt", so it can be a program name with args.
3999set dummy msgfmt; ac_word=$2
4000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 4001echo "configure:4002: checking for $ac_word" >&5
252b5132
RH
4002if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004else
4005 case "$MSGFMT" in
4006 /*)
4007 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4008 ;;
4009 *)
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4011 for ac_dir in $PATH; do
4012 test -z "$ac_dir" && ac_dir=.
4013 if test -f $ac_dir/$ac_word; then
4014 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4015 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4016 break
4017 fi
4018 fi
4019 done
4020 IFS="$ac_save_ifs"
4021 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4022 ;;
4023esac
4024fi
4025MSGFMT="$ac_cv_path_MSGFMT"
4026if test -n "$MSGFMT"; then
4027 echo "$ac_t""$MSGFMT" 1>&6
4028else
4029 echo "$ac_t""no" 1>&6
4030fi
4031
4032 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4033set dummy gmsgfmt; ac_word=$2
4034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 4035echo "configure:4036: checking for $ac_word" >&5
252b5132
RH
4036if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038else
4039 case "$GMSGFMT" in
4040 /*)
4041 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4042 ;;
4043 ?:/*)
4044 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4045 ;;
4046 *)
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4048 ac_dummy="$PATH"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4053 break
4054 fi
4055 done
4056 IFS="$ac_save_ifs"
4057 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4058 ;;
4059esac
4060fi
4061GMSGFMT="$ac_cv_path_GMSGFMT"
4062if test -n "$GMSGFMT"; then
4063 echo "$ac_t""$GMSGFMT" 1>&6
4064else
4065 echo "$ac_t""no" 1>&6
4066fi
4067
4068 # Extract the first word of "xgettext", so it can be a program name with args.
4069set dummy xgettext; ac_word=$2
4070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
093872ec 4071echo "configure:4072: checking for $ac_word" >&5
252b5132
RH
4072if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074else
4075 case "$XGETTEXT" in
4076 /*)
4077 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4078 ;;
4079 *)
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4081 for ac_dir in $PATH; do
4082 test -z "$ac_dir" && ac_dir=.
4083 if test -f $ac_dir/$ac_word; then
4084 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4085 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4086 break
4087 fi
4088 fi
4089 done
4090 IFS="$ac_save_ifs"
4091 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4092 ;;
4093esac
4094fi
4095XGETTEXT="$ac_cv_path_XGETTEXT"
4096if test -n "$XGETTEXT"; then
4097 echo "$ac_t""$XGETTEXT" 1>&6
4098else
4099 echo "$ac_t""no" 1>&6
4100fi
4101
4102
4103 USE_INCLUDED_LIBINTL=yes
4104 CATOBJEXT=.gmo
4105 INSTOBJEXT=.mo
4106 DATADIRNAME=share
4107 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4108 INTLLIBS=$INTLDEPS
4109 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4110 nls_cv_header_intl=libintl.h
4111 nls_cv_header_libgt=libgettext.h
4112 fi
4113
4114 if test "$XGETTEXT" != ":"; then
4115 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4116 : ;
4117 else
4118 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4119 XGETTEXT=":"
4120 fi
4121 fi
4122
4123 # We need to process the po/ directory.
4124 POSUB=po
4125 else
4126 DATADIRNAME=share
4127 nls_cv_header_intl=libintl.h
4128 nls_cv_header_libgt=libgettext.h
4129 fi
4130
4131 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4132 # because some of the sources are only built for this goal.
4133 if test "$PACKAGE" = gettext; then
4134 USE_NLS=yes
4135 USE_INCLUDED_LIBINTL=yes
4136 fi
4137
4138 for lang in $ALL_LINGUAS; do
4139 GMOFILES="$GMOFILES $lang.gmo"
4140 POFILES="$POFILES $lang.po"
4141 done
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156 if test "x$CATOBJEXT" != "x"; then
4157 if test "x$ALL_LINGUAS" = "x"; then
4158 LINGUAS=
4159 else
4160 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
093872ec 4161echo "configure:4162: checking for catalogs to be installed" >&5
252b5132
RH
4162 NEW_LINGUAS=
4163 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4164 case "$ALL_LINGUAS" in
4165 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4166 esac
4167 done
4168 LINGUAS=$NEW_LINGUAS
4169 echo "$ac_t""$LINGUAS" 1>&6
4170 fi
4171
4172 if test -n "$LINGUAS"; then
4173 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4174 fi
4175 fi
4176
4177 if test $ac_cv_header_locale_h = yes; then
4178 INCLUDE_LOCALE_H="#include <locale.h>"
4179 else
4180 INCLUDE_LOCALE_H="\
4181/* The system does not provide the header <locale.h>. Take care yourself. */"
4182 fi
4183
4184
4185 if test -f $srcdir/po2tbl.sed.in; then
4186 if test "$CATOBJEXT" = ".cat"; then
4187 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4188echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
093872ec 4189echo "configure:4190: checking for linux/version.h" >&5
252b5132
RH
4190if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193 cat > conftest.$ac_ext <<EOF
093872ec 4194#line 4195 "configure"
252b5132
RH
4195#include "confdefs.h"
4196#include <linux/version.h>
4197EOF
4198ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 4199{ (eval echo configure:4200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4200ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4201if test -z "$ac_err"; then
4202 rm -rf conftest*
4203 eval "ac_cv_header_$ac_safe=yes"
4204else
4205 echo "$ac_err" >&5
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 rm -rf conftest*
4209 eval "ac_cv_header_$ac_safe=no"
4210fi
4211rm -f conftest*
4212fi
4213if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 msgformat=linux
4216else
4217 echo "$ac_t""no" 1>&6
4218msgformat=xopen
4219fi
4220
4221
4222 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4223 fi
4224 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4225 $srcdir/po2tbl.sed.in > po2tbl.sed
4226 fi
4227
4228 if test "$PACKAGE" = "gettext"; then
4229 GT_NO="#NO#"
4230 GT_YES=
4231 else
4232 GT_NO=
4233 GT_YES="#YES#"
4234 fi
4235
4236
4237
4238 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4239
4240
4241 l=
4242
4243
fcd8210c 4244 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
4245 test -d po || mkdir po
4246 if test "x$srcdir" != "x."; then
4247 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4248 posrcprefix="$srcdir/"
4249 else
4250 posrcprefix="../$srcdir/"
4251 fi
4252 else
4253 posrcprefix="../"
4254 fi
4255 rm -f po/POTFILES
4256 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4257 < $srcdir/po/POTFILES.in > po/POTFILES
4258 fi
4259
4260
4261echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
093872ec 4262echo "configure:4263: checking whether to enable maintainer-specific portions of Makefiles" >&5
252b5132
RH
4263 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4264if test "${enable_maintainer_mode+set}" = set; then
4265 enableval="$enable_maintainer_mode"
4266 USE_MAINTAINER_MODE=$enableval
4267else
4268 USE_MAINTAINER_MODE=no
4269fi
4270
4271 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4272
4273
4274if test $USE_MAINTAINER_MODE = yes; then
4275 MAINTAINER_MODE_TRUE=
4276 MAINTAINER_MODE_FALSE='#'
4277else
4278 MAINTAINER_MODE_TRUE='#'
4279 MAINTAINER_MODE_FALSE=
4280fi
4281 MAINT=$MAINTAINER_MODE_TRUE
4282
4283
252b5132
RH
4284
4285
4286echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
093872ec 4287echo "configure:4288: checking for executable suffix" >&5
252b5132
RH
4288if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290else
4291 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4292 ac_cv_exeext=.exe
4293else
4294 rm -f conftest*
4295 echo 'int main () { return 0; }' > conftest.$ac_ext
4296 ac_cv_exeext=
093872ec 4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
252b5132
RH
4298 for file in conftest.*; do
4299 case $file in
093872ec 4300 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
252b5132
RH
4301 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4302 esac
4303 done
4304 else
4305 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4306 fi
4307 rm -f conftest*
4308 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4309fi
4310fi
4311
4312EXEEXT=""
4313test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4314echo "$ac_t""${ac_cv_exeext}" 1>&6
4315ac_exeext=$EXEEXT
4316
4317
0eee5820
AM
4318for ac_hdr in sys/gmon_out.h
4319do
4320ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4321echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
093872ec 4322echo "configure:4323: checking for $ac_hdr" >&5
0eee5820
AM
4323if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4325else
4326 cat > conftest.$ac_ext <<EOF
093872ec 4327#line 4328 "configure"
0eee5820
AM
4328#include "confdefs.h"
4329#include <$ac_hdr>
4330EOF
4331ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
093872ec 4332{ (eval echo configure:4333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0eee5820
AM
4333ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4334if test -z "$ac_err"; then
4335 rm -rf conftest*
4336 eval "ac_cv_header_$ac_safe=yes"
4337else
4338 echo "$ac_err" >&5
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4341 rm -rf conftest*
4342 eval "ac_cv_header_$ac_safe=no"
4343fi
4344rm -f conftest*
4345fi
4346if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4349 cat >> confdefs.h <<EOF
4350#define $ac_tr_hdr 1
4351EOF
4352
4353else
4354 echo "$ac_t""no" 1>&6
4355fi
4356done
4357
4358
66477e87 4359build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
4360# Check whether --enable-build-warnings or --disable-build-warnings was given.
4361if test "${enable_build_warnings+set}" = set; then
4362 enableval="$enable_build_warnings"
4363 case "${enableval}" in
4364 yes) ;;
4365 no) build_warnings="-w";;
4366 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4367 build_warnings="${build_warnings} ${t}";;
4368 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4369 build_warnings="${t} ${build_warnings}";;
4370 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4371esac
4372if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4373 echo "Setting warning flags = $build_warnings" 6>&1
4374fi
4375fi
4376WARN_CFLAGS=""
4377if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4378 WARN_CFLAGS="${build_warnings}"
4379fi
4380
4381
252b5132
RH
4382trap '' 1 2 15
4383cat > confcache <<\EOF
4384# This file is a shell script that caches the results of configure
4385# tests run on this system so they can be shared between configure
4386# scripts and configure runs. It is not useful on other systems.
4387# If it contains results you don't want to keep, you may remove or edit it.
4388#
4389# By default, configure uses ./config.cache as the cache file,
4390# creating it if it does not exist already. You can give configure
4391# the --cache-file=FILE option to use a different cache file; that is
4392# what configure does when it calls configure scripts in
4393# subdirectories, so they share the cache.
4394# Giving --cache-file=/dev/null disables caching, for debugging configure.
4395# config.status only pays attention to the cache file if you give it the
4396# --recheck option to rerun configure.
4397#
4398EOF
4399# The following way of writing the cache mishandles newlines in values,
4400# but we know of no workaround that is simple, portable, and efficient.
4401# So, don't put newlines in cache variables' values.
4402# Ultrix sh set writes to stderr and can't be redirected directly,
4403# and sets the high bit in the cache file unless we assign to the vars.
4404(set) 2>&1 |
4405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4406 *ac_space=\ *)
4407 # `set' does not quote correctly, so add quotes (double-quote substitution
4408 # turns \\\\ into \\, and sed turns \\ into \).
4409 sed -n \
4410 -e "s/'/'\\\\''/g" \
4411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4412 ;;
4413 *)
4414 # `set' quotes correctly as required by POSIX, so do not add quotes.
4415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4416 ;;
4417 esac >> confcache
4418if cmp -s $cache_file confcache; then
4419 :
4420else
4421 if test -w $cache_file; then
4422 echo "updating cache $cache_file"
4423 cat confcache > $cache_file
4424 else
4425 echo "not updating unwritable cache $cache_file"
4426 fi
4427fi
4428rm -f confcache
4429
4430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4431
4432test "x$prefix" = xNONE && prefix=$ac_default_prefix
4433# Let make expand exec_prefix.
4434test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4435
4436# Any assignment to VPATH causes Sun make to only execute
4437# the first set of double-colon rules, so remove it if not needed.
4438# If there is a colon in the path, we need to keep it.
4439if test "x$srcdir" = x.; then
4440 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4441fi
4442
4443trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4444
4445DEFS=-DHAVE_CONFIG_H
4446
4447# Without the "./", some shells look in PATH for config.status.
4448: ${CONFIG_STATUS=./config.status}
4449
4450echo creating $CONFIG_STATUS
4451rm -f $CONFIG_STATUS
4452cat > $CONFIG_STATUS <<EOF
4453#! /bin/sh
4454# Generated automatically by configure.
4455# Run this file to recreate the current configuration.
4456# This directory was configured as follows,
4457# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4458#
4459# $0 $ac_configure_args
4460#
4461# Compiler output produced by configure, useful for debugging
4462# configure, is in ./config.log if it exists.
4463
4464ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4465for ac_option
4466do
4467 case "\$ac_option" in
4468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4469 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4470 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4471 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4472 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4473 exit 0 ;;
4474 -help | --help | --hel | --he | --h)
4475 echo "\$ac_cs_usage"; exit 0 ;;
4476 *) echo "\$ac_cs_usage"; exit 1 ;;
4477 esac
4478done
4479
4480ac_given_srcdir=$srcdir
4481ac_given_INSTALL="$INSTALL"
4482
4483trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4484EOF
4485cat >> $CONFIG_STATUS <<EOF
4486
4487# Protect against being on the right side of a sed subst in config.status.
4488sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4489 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4490$ac_vpsub
4491$extrasub
4492s%@SHELL@%$SHELL%g
4493s%@CFLAGS@%$CFLAGS%g
4494s%@CPPFLAGS@%$CPPFLAGS%g
4495s%@CXXFLAGS@%$CXXFLAGS%g
4496s%@FFLAGS@%$FFLAGS%g
4497s%@DEFS@%$DEFS%g
4498s%@LDFLAGS@%$LDFLAGS%g
4499s%@LIBS@%$LIBS%g
4500s%@exec_prefix@%$exec_prefix%g
4501s%@prefix@%$prefix%g
4502s%@program_transform_name@%$program_transform_name%g
4503s%@bindir@%$bindir%g
4504s%@sbindir@%$sbindir%g
4505s%@libexecdir@%$libexecdir%g
4506s%@datadir@%$datadir%g
4507s%@sysconfdir@%$sysconfdir%g
4508s%@sharedstatedir@%$sharedstatedir%g
4509s%@localstatedir@%$localstatedir%g
4510s%@libdir@%$libdir%g
4511s%@includedir@%$includedir%g
4512s%@oldincludedir@%$oldincludedir%g
4513s%@infodir@%$infodir%g
4514s%@mandir@%$mandir%g
4515s%@host@%$host%g
4516s%@host_alias@%$host_alias%g
4517s%@host_cpu@%$host_cpu%g
4518s%@host_vendor@%$host_vendor%g
4519s%@host_os@%$host_os%g
4520s%@target@%$target%g
4521s%@target_alias@%$target_alias%g
4522s%@target_cpu@%$target_cpu%g
4523s%@target_vendor@%$target_vendor%g
4524s%@target_os@%$target_os%g
4525s%@build@%$build%g
4526s%@build_alias@%$build_alias%g
4527s%@build_cpu@%$build_cpu%g
4528s%@build_vendor@%$build_vendor%g
4529s%@build_os@%$build_os%g
4530s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4531s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4532s%@INSTALL_DATA@%$INSTALL_DATA%g
4533s%@PACKAGE@%$PACKAGE%g
4534s%@VERSION@%$VERSION%g
4535s%@ACLOCAL@%$ACLOCAL%g
4536s%@AUTOCONF@%$AUTOCONF%g
4537s%@AUTOMAKE@%$AUTOMAKE%g
4538s%@AUTOHEADER@%$AUTOHEADER%g
4539s%@MAKEINFO@%$MAKEINFO%g
4540s%@SET_MAKE@%$SET_MAKE%g
093872ec 4541s%@CC@%$CC%g
252b5132 4542s%@LN_S@%$LN_S%g
ac48eca1
AO
4543s%@OBJEXT@%$OBJEXT%g
4544s%@EXEEXT@%$EXEEXT%g
4545s%@RANLIB@%$RANLIB%g
4546s%@STRIP@%$STRIP%g
252b5132
RH
4547s%@LIBTOOL@%$LIBTOOL%g
4548s%@CPP@%$CPP%g
4549s%@ALLOCA@%$ALLOCA%g
4550s%@USE_NLS@%$USE_NLS%g
4551s%@MSGFMT@%$MSGFMT%g
4552s%@GMSGFMT@%$GMSGFMT%g
4553s%@XGETTEXT@%$XGETTEXT%g
4554s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4555s%@CATALOGS@%$CATALOGS%g
4556s%@CATOBJEXT@%$CATOBJEXT%g
4557s%@DATADIRNAME@%$DATADIRNAME%g
4558s%@GMOFILES@%$GMOFILES%g
4559s%@INSTOBJEXT@%$INSTOBJEXT%g
4560s%@INTLDEPS@%$INTLDEPS%g
4561s%@INTLLIBS@%$INTLLIBS%g
4562s%@INTLOBJS@%$INTLOBJS%g
4563s%@POFILES@%$POFILES%g
4564s%@POSUB@%$POSUB%g
4565s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4566s%@GT_NO@%$GT_NO%g
4567s%@GT_YES@%$GT_YES%g
4568s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4569s%@l@%$l%g
4570s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4571s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4572s%@MAINT@%$MAINT%g
a2d91340 4573s%@WARN_CFLAGS@%$WARN_CFLAGS%g
252b5132
RH
4574
4575CEOF
4576EOF
4577
4578cat >> $CONFIG_STATUS <<\EOF
4579
4580# Split the substitutions into bite-sized pieces for seds with
4581# small command number limits, like on Digital OSF/1 and HP-UX.
4582ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4583ac_file=1 # Number of current file.
4584ac_beg=1 # First line for current file.
4585ac_end=$ac_max_sed_cmds # Line after last line for current file.
4586ac_more_lines=:
4587ac_sed_cmds=""
4588while $ac_more_lines; do
4589 if test $ac_beg -gt 1; then
4590 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4591 else
4592 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4593 fi
4594 if test ! -s conftest.s$ac_file; then
4595 ac_more_lines=false
4596 rm -f conftest.s$ac_file
4597 else
4598 if test -z "$ac_sed_cmds"; then
4599 ac_sed_cmds="sed -f conftest.s$ac_file"
4600 else
4601 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4602 fi
4603 ac_file=`expr $ac_file + 1`
4604 ac_beg=$ac_end
4605 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4606 fi
4607done
4608if test -z "$ac_sed_cmds"; then
4609 ac_sed_cmds=cat
4610fi
4611EOF
4612
4613cat >> $CONFIG_STATUS <<EOF
4614
4615CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4616EOF
4617cat >> $CONFIG_STATUS <<\EOF
4618for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4620 case "$ac_file" in
4621 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4622 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4623 *) ac_file_in="${ac_file}.in" ;;
4624 esac
4625
4626 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4627
4628 # Remove last slash and all that follows it. Not all systems have dirname.
4629 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4630 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4631 # The file is in a subdirectory.
4632 test ! -d "$ac_dir" && mkdir "$ac_dir"
4633 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4634 # A "../" for each directory in $ac_dir_suffix.
4635 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4636 else
4637 ac_dir_suffix= ac_dots=
4638 fi
4639
4640 case "$ac_given_srcdir" in
4641 .) srcdir=.
4642 if test -z "$ac_dots"; then top_srcdir=.
4643 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4644 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4645 *) # Relative path.
4646 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4647 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4648 esac
4649
4650 case "$ac_given_INSTALL" in
4651 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4652 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4653 esac
4654
4655 echo creating "$ac_file"
4656 rm -f "$ac_file"
4657 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4658 case "$ac_file" in
4659 *Makefile*) ac_comsub="1i\\
4660# $configure_input" ;;
4661 *) ac_comsub= ;;
4662 esac
4663
4664 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4665 sed -e "$ac_comsub
4666s%@configure_input@%$configure_input%g
4667s%@srcdir@%$srcdir%g
4668s%@top_srcdir@%$top_srcdir%g
4669s%@INSTALL@%$INSTALL%g
4670" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4671fi; done
4672rm -f conftest.s*
4673
4674# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4675# NAME is the cpp macro being defined and VALUE is the value it is being given.
4676#
4677# ac_d sets the value in "#define NAME VALUE" lines.
4678ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4679ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4680ac_dC='\3'
4681ac_dD='%g'
4682# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4683ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4684ac_uB='\([ ]\)%\1#\2define\3'
4685ac_uC=' '
4686ac_uD='\4%g'
4687# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4688ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4689ac_eB='$%\1#\2define\3'
4690ac_eC=' '
4691ac_eD='%g'
4692
4693if test "${CONFIG_HEADERS+set}" != set; then
4694EOF
4695cat >> $CONFIG_STATUS <<EOF
4696 CONFIG_HEADERS="gconfig.h:gconfig.in"
4697EOF
4698cat >> $CONFIG_STATUS <<\EOF
4699fi
4700for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4702 case "$ac_file" in
4703 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4704 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4705 *) ac_file_in="${ac_file}.in" ;;
4706 esac
4707
4708 echo creating $ac_file
4709
4710 rm -f conftest.frag conftest.in conftest.out
4711 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4712 cat $ac_file_inputs > conftest.in
4713
4714EOF
4715
4716# Transform confdefs.h into a sed script conftest.vals that substitutes
4717# the proper values into config.h.in to produce config.h. And first:
4718# Protect against being on the right side of a sed subst in config.status.
4719# Protect against being in an unquoted here document in config.status.
4720rm -f conftest.vals
4721cat > conftest.hdr <<\EOF
4722s/[\\&%]/\\&/g
4723s%[\\$`]%\\&%g
4724s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4725s%ac_d%ac_u%gp
4726s%ac_u%ac_e%gp
4727EOF
4728sed -n -f conftest.hdr confdefs.h > conftest.vals
4729rm -f conftest.hdr
4730
4731# This sed command replaces #undef with comments. This is necessary, for
4732# example, in the case of _POSIX_SOURCE, which is predefined and required
4733# on some systems where configure will not decide to define it.
4734cat >> conftest.vals <<\EOF
4735s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4736EOF
4737
4738# Break up conftest.vals because some shells have a limit on
4739# the size of here documents, and old seds have small limits too.
4740
4741rm -f conftest.tail
4742while :
4743do
4744 ac_lines=`grep -c . conftest.vals`
4745 # grep -c gives empty output for an empty file on some AIX systems.
4746 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4747 # Write a limited-size here document to conftest.frag.
4748 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4749 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4750 echo 'CEOF
4751 sed -f conftest.frag conftest.in > conftest.out
4752 rm -f conftest.in
4753 mv conftest.out conftest.in
4754' >> $CONFIG_STATUS
4755 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4756 rm -f conftest.vals
4757 mv conftest.tail conftest.vals
4758done
4759rm -f conftest.vals
4760
4761cat >> $CONFIG_STATUS <<\EOF
4762 rm -f conftest.frag conftest.h
4763 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4764 cat conftest.in >> conftest.h
4765 rm -f conftest.in
4766 if cmp -s $ac_file conftest.h 2>/dev/null; then
4767 echo "$ac_file is unchanged"
4768 rm -f conftest.h
4769 else
4770 # Remove last slash and all that follows it. Not all systems have dirname.
4771 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4772 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4773 # The file is in a subdirectory.
4774 test ! -d "$ac_dir" && mkdir "$ac_dir"
4775 fi
4776 rm -f $ac_file
4777 mv conftest.h $ac_file
4778 fi
4779fi; done
4780
4781EOF
4782cat >> $CONFIG_STATUS <<EOF
4783
4784
4785EOF
4786cat >> $CONFIG_STATUS <<\EOF
4787test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4788sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4789exit 0
4790EOF
4791chmod +x $CONFIG_STATUS
4792rm -fr confdefs* $ac_clean_files
4793test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4794
This page took 0.414589 seconds and 4 git commands to generate.