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