1999-09-11 Donn Terry <donn@interix.com>
[binutils.git] / gprof / configure
bloba47d71adbc91d48c7e729a0ecd651a37c20a7dc0
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock force libtool not to do file locking"
24 ac_help="$ac_help
25 --disable-nls do not use Native Language Support"
26 ac_help="$ac_help
27 --with-included-gettext use the GNU gettext library included here"
28 ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 sitefile=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
74 ac_prev=
75 for ac_option
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
81 ac_prev=
82 continue
85 case "$ac_option" in
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 *) ac_optarg= ;;
88 esac
90 # Accept the important Cygnus configure options, so we can diagnose typos.
92 case "$ac_option" in
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 ac_prev=bindir ;;
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
100 ac_prev=build ;;
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 ac_prev=datadir ;;
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 | --da=*)
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 case "$ac_option" in
134 *=*) ;;
135 *) ac_optarg=yes ;;
136 esac
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
150 with_gas=yes ;;
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
155 cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --site-file=FILE use FILE as the site file
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
167 [$ac_default_prefix]
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 [same as prefix]
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
174 [PREFIX/share]
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 [PREFIX/com]
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
190 cat << EOF
191 Host type:
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
206 exit 0 ;;
208 -host | --host | --hos | --ho)
209 ac_prev=host ;;
210 -host=* | --host=* | --hos=* | --ho=*)
211 host="$ac_optarg" ;;
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 ac_prev=infodir ;;
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
226 ac_prev=libdir ;;
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 ac_prev=mandir ;;
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
251 -nfp | --nfp | --nf)
252 # Obsolete; use --without-fp.
253 with_fp=no ;;
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 | --no-cr | --no-c)
257 no_create=yes ;;
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 no_recursion=yes ;;
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 ac_prev=prefix ;;
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
310 silent=yes ;;
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 ac_prev=sbindir ;;
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 | --sbi=* | --sb=*)
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
321 | --sha | --sh)
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 | --sha=* | --sh=*)
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
330 ac_prev=site ;;
331 -site=* | --site=* | --sit=*)
332 site="$ac_optarg" ;;
334 -site-file | --site-file | --site-fil | --site-fi | --site-f)
335 ac_prev=sitefile ;;
336 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
337 sitefile="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
361 exit 0 ;;
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 nonopt="$ac_option"
416 esac
417 done
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
426 # 0 standard input
427 # 1 file creation
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
434 exec 6>/dev/null
435 else
436 exec 6>&1
438 exec 5>./config.log
440 echo "\
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
443 " 1>&5
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
447 ac_configure_args=
448 for ac_arg
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459 done
461 # NLS nuisances.
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 echo > confdefs.h
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=gprof.c
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
491 else
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$sitefile"; then
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 else
513 CONFIG_SITE="$sitefile"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
518 . "$ac_site_file"
520 done
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
524 . $cache_file
525 else
526 echo "creating cache $cache_file"
527 > $cache_file
530 ac_ext=c
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
537 ac_exeext=
538 ac_objext=o
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='
543 ' ac_t=' '
544 else
545 ac_n=-n ac_c= ac_t=
547 else
548 ac_n= ac_c='\c' ac_t=
553 ac_aux_dir=
554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
555 if test -f $ac_dir/install-sh; then
556 ac_aux_dir=$ac_dir
557 ac_install_sh="$ac_aux_dir/install-sh -c"
558 break
559 elif test -f $ac_dir/install.sh; then
560 ac_aux_dir=$ac_dir
561 ac_install_sh="$ac_aux_dir/install.sh -c"
562 break
564 done
565 if test -z "$ac_aux_dir"; then
566 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
568 ac_config_guess=$ac_aux_dir/config.guess
569 ac_config_sub=$ac_aux_dir/config.sub
570 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
573 # Do some error checking and defaulting for the host and target type.
574 # The inputs are:
575 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
577 # The rules are:
578 # 1. You are not allowed to specify --host, --target, and nonopt at the
579 # same time.
580 # 2. Host defaults to nonopt.
581 # 3. If nonopt is not specified, then host defaults to the current host,
582 # as determined by config.guess.
583 # 4. Target and build default to nonopt.
584 # 5. If nonopt is not specified, then target and build default to host.
586 # The aliases save the names the user supplied, while $host etc.
587 # will get canonicalized.
588 case $host---$target---$nonopt in
589 NONE---*---* | *---NONE---* | *---*---NONE) ;;
590 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
591 esac
594 # Make sure we can run config.sub.
595 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
596 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 echo $ac_n "checking host system type""... $ac_c" 1>&6
600 echo "configure:601: checking host system type" >&5
602 host_alias=$host
603 case "$host_alias" in
604 NONE)
605 case $nonopt in
606 NONE)
607 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
608 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
609 fi ;;
610 *) host_alias=$nonopt ;;
611 esac ;;
612 esac
614 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
615 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$host" 1>&6
620 echo $ac_n "checking target system type""... $ac_c" 1>&6
621 echo "configure:622: checking target system type" >&5
623 target_alias=$target
624 case "$target_alias" in
625 NONE)
626 case $nonopt in
627 NONE) target_alias=$host_alias ;;
628 *) target_alias=$nonopt ;;
629 esac ;;
630 esac
632 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
633 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$target" 1>&6
638 echo $ac_n "checking build system type""... $ac_c" 1>&6
639 echo "configure:640: checking build system type" >&5
641 build_alias=$build
642 case "$build_alias" in
643 NONE)
644 case $nonopt in
645 NONE) build_alias=$host_alias ;;
646 *) build_alias=$nonopt ;;
647 esac ;;
648 esac
650 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
651 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$build" 1>&6
656 test "$host_alias" != "$target_alias" &&
657 test "$program_prefix$program_suffix$program_transform_name" = \
658 NONENONEs,x,x, &&
659 program_prefix=${target_alias}-
662 # Find a good install program. We prefer a C program (faster),
663 # so one script is as good as another. But avoid the broken or
664 # incompatible versions:
665 # SysV /etc/install, /usr/sbin/install
666 # SunOS /usr/etc/install
667 # IRIX /sbin/install
668 # AIX /bin/install
669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
672 # ./install, which can be erroneously created by make from ./install.sh.
673 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
674 echo "configure:675: checking for a BSD compatible install" >&5
675 if test -z "$INSTALL"; then
676 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678 else
679 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
680 for ac_dir in $PATH; do
681 # Account for people who put trailing slashes in PATH elements.
682 case "$ac_dir/" in
683 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
685 # OSF1 and SCO ODT 3.0 have their own names for install.
686 # Don't use installbsd from OSF since it installs stuff as root
687 # by default.
688 for ac_prog in ginstall scoinst install; do
689 if test -f $ac_dir/$ac_prog; then
690 if test $ac_prog = install &&
691 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
692 # AIX install. It has an incompatible calling convention.
694 else
695 ac_cv_path_install="$ac_dir/$ac_prog -c"
696 break 2
699 done
701 esac
702 done
703 IFS="$ac_save_IFS"
706 if test "${ac_cv_path_install+set}" = set; then
707 INSTALL="$ac_cv_path_install"
708 else
709 # As a last resort, use the slow shell script. We don't cache a
710 # path for INSTALL within a source directory, because that will
711 # break other packages using the cache if that directory is
712 # removed, or if the path is relative.
713 INSTALL="$ac_install_sh"
716 echo "$ac_t""$INSTALL" 1>&6
718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
719 # It thinks the first close brace ends the variable substitution.
720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
726 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
727 echo "configure:728: checking whether build environment is sane" >&5
728 # Just in case
729 sleep 1
730 echo timestamp > conftestfile
731 # Do `set' in a subshell so we don't clobber the current shell's
732 # arguments. Must try -L first in case configure is actually a
733 # symlink; some systems play weird games with the mod time of symlinks
734 # (eg FreeBSD returns the mod time of the symlink's containing
735 # directory).
736 if (
737 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
738 if test "$*" = "X"; then
739 # -L didn't work.
740 set X `ls -t $srcdir/configure conftestfile`
742 if test "$*" != "X $srcdir/configure conftestfile" \
743 && test "$*" != "X conftestfile $srcdir/configure"; then
745 # If neither matched, then we have a broken ls. This can happen
746 # if, for instance, CONFIG_SHELL is bash and it inherits a
747 # broken ls alias from the environment. This has actually
748 # happened. Such a system could not be considered "sane".
749 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
750 alias in your environment" 1>&2; exit 1; }
753 test "$2" = conftestfile
755 then
756 # Ok.
758 else
759 { echo "configure: error: newly created file is older than distributed files!
760 Check your system clock" 1>&2; exit 1; }
762 rm -f conftest*
763 echo "$ac_t""yes" 1>&6
764 if test "$program_transform_name" = s,x,x,; then
765 program_transform_name=
766 else
767 # Double any \ or $. echo might interpret backslashes.
768 cat <<\EOF_SED > conftestsed
769 s,\\,\\\\,g; s,\$,$$,g
770 EOF_SED
771 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
772 rm -f conftestsed
774 test "$program_prefix" != NONE &&
775 program_transform_name="s,^,${program_prefix},; $program_transform_name"
776 # Use a double $ so make ignores it.
777 test "$program_suffix" != NONE &&
778 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
780 # sed with no file args requires a program.
781 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
783 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${MAKE-make} sets \${MAKE}" >&5
785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
786 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788 else
789 cat > conftestmake <<\EOF
790 all:
791 @echo 'ac_maketemp="${MAKE}"'
793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
794 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795 if test -n "$ac_maketemp"; then
796 eval ac_cv_prog_make_${ac_make}_set=yes
797 else
798 eval ac_cv_prog_make_${ac_make}_set=no
800 rm -f conftestmake
802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
803 echo "$ac_t""yes" 1>&6
804 SET_MAKE=
805 else
806 echo "$ac_t""no" 1>&6
807 SET_MAKE="MAKE=${MAKE-make}"
811 PACKAGE=gprof
813 VERSION=2.9.5
815 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
816 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
818 cat >> confdefs.h <<EOF
819 #define PACKAGE "$PACKAGE"
822 cat >> confdefs.h <<EOF
823 #define VERSION "$VERSION"
828 missing_dir=`cd $ac_aux_dir && pwd`
829 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
830 echo "configure:831: checking for working aclocal" >&5
831 # Run test in a subshell; some versions of sh will print an error if
832 # an executable is not found, even if stderr is redirected.
833 # Redirect stdin to placate older versions of autoconf. Sigh.
834 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
835 ACLOCAL=aclocal
836 echo "$ac_t""found" 1>&6
837 else
838 ACLOCAL="$missing_dir/missing aclocal"
839 echo "$ac_t""missing" 1>&6
842 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
843 echo "configure:844: checking for working autoconf" >&5
844 # Run test in a subshell; some versions of sh will print an error if
845 # an executable is not found, even if stderr is redirected.
846 # Redirect stdin to placate older versions of autoconf. Sigh.
847 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
848 AUTOCONF=autoconf
849 echo "$ac_t""found" 1>&6
850 else
851 AUTOCONF="$missing_dir/missing autoconf"
852 echo "$ac_t""missing" 1>&6
855 echo $ac_n "checking for working automake""... $ac_c" 1>&6
856 echo "configure:857: checking for working automake" >&5
857 # Run test in a subshell; some versions of sh will print an error if
858 # an executable is not found, even if stderr is redirected.
859 # Redirect stdin to placate older versions of autoconf. Sigh.
860 if (automake --version) < /dev/null > /dev/null 2>&1; then
861 AUTOMAKE=automake
862 echo "$ac_t""found" 1>&6
863 else
864 AUTOMAKE="$missing_dir/missing automake"
865 echo "$ac_t""missing" 1>&6
868 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
869 echo "configure:870: checking for working autoheader" >&5
870 # Run test in a subshell; some versions of sh will print an error if
871 # an executable is not found, even if stderr is redirected.
872 # Redirect stdin to placate older versions of autoconf. Sigh.
873 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
874 AUTOHEADER=autoheader
875 echo "$ac_t""found" 1>&6
876 else
877 AUTOHEADER="$missing_dir/missing autoheader"
878 echo "$ac_t""missing" 1>&6
881 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
882 echo "configure:883: checking for working makeinfo" >&5
883 # Run test in a subshell; some versions of sh will print an error if
884 # an executable is not found, even if stderr is redirected.
885 # Redirect stdin to placate older versions of autoconf. Sigh.
886 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
887 MAKEINFO=makeinfo
888 echo "$ac_t""found" 1>&6
889 else
890 MAKEINFO="$missing_dir/missing makeinfo"
891 echo "$ac_t""missing" 1>&6
896 # Check whether --enable-shared or --disable-shared was given.
897 if test "${enable_shared+set}" = set; then
898 enableval="$enable_shared"
899 p=${PACKAGE-default}
900 case "$enableval" in
901 yes) enable_shared=yes ;;
902 no) enable_shared=no ;;
904 enable_shared=no
905 # Look at the argument we got. We use all the common list separators.
906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
907 for pkg in $enableval; do
908 if test "X$pkg" = "X$p"; then
909 enable_shared=yes
911 done
912 IFS="$ac_save_ifs"
914 esac
915 else
916 enable_shared=yes
919 # Check whether --enable-static or --disable-static was given.
920 if test "${enable_static+set}" = set; then
921 enableval="$enable_static"
922 p=${PACKAGE-default}
923 case "$enableval" in
924 yes) enable_static=yes ;;
925 no) enable_static=no ;;
927 enable_static=no
928 # Look at the argument we got. We use all the common list separators.
929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
930 for pkg in $enableval; do
931 if test "X$pkg" = "X$p"; then
932 enable_static=yes
934 done
935 IFS="$ac_save_ifs"
937 esac
938 else
939 enable_static=yes
942 # Check whether --enable-fast-install or --disable-fast-install was given.
943 if test "${enable_fast_install+set}" = set; then
944 enableval="$enable_fast_install"
945 p=${PACKAGE-default}
946 case "$enableval" in
947 yes) enable_fast_install=yes ;;
948 no) enable_fast_install=no ;;
950 enable_fast_install=no
951 # Look at the argument we got. We use all the common list separators.
952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
953 for pkg in $enableval; do
954 if test "X$pkg" = "X$p"; then
955 enable_fast_install=yes
957 done
958 IFS="$ac_save_ifs"
960 esac
961 else
962 enable_fast_install=yes
965 # Extract the first word of "ranlib", so it can be a program name with args.
966 set dummy ranlib; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
971 else
972 if test -n "$RANLIB"; then
973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
974 else
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976 ac_dummy="$PATH"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_RANLIB="ranlib"
981 break
983 done
984 IFS="$ac_save_ifs"
985 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
988 RANLIB="$ac_cv_prog_RANLIB"
989 if test -n "$RANLIB"; then
990 echo "$ac_t""$RANLIB" 1>&6
991 else
992 echo "$ac_t""no" 1>&6
995 # Extract the first word of "gcc", so it can be a program name with args.
996 set dummy gcc; ac_word=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1001 else
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC="$CC" # Let the user override the test.
1004 else
1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1006 ac_dummy="$PATH"
1007 for ac_dir in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir=.
1009 if test -f $ac_dir/$ac_word; then
1010 ac_cv_prog_CC="gcc"
1011 break
1013 done
1014 IFS="$ac_save_ifs"
1017 CC="$ac_cv_prog_CC"
1018 if test -n "$CC"; then
1019 echo "$ac_t""$CC" 1>&6
1020 else
1021 echo "$ac_t""no" 1>&6
1024 if test -z "$CC"; then
1025 # Extract the first word of "cc", so it can be a program name with args.
1026 set dummy cc; ac_word=$2
1027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1028 echo "configure:1029: checking for $ac_word" >&5
1029 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032 if test -n "$CC"; then
1033 ac_cv_prog_CC="$CC" # Let the user override the test.
1034 else
1035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1036 ac_prog_rejected=no
1037 ac_dummy="$PATH"
1038 for ac_dir in $ac_dummy; do
1039 test -z "$ac_dir" && ac_dir=.
1040 if test -f $ac_dir/$ac_word; then
1041 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1042 ac_prog_rejected=yes
1043 continue
1045 ac_cv_prog_CC="cc"
1046 break
1048 done
1049 IFS="$ac_save_ifs"
1050 if test $ac_prog_rejected = yes; then
1051 # We found a bogon in the path, so make sure we never use it.
1052 set dummy $ac_cv_prog_CC
1053 shift
1054 if test $# -gt 0; then
1055 # We chose a different compiler from the bogus one.
1056 # However, it has the same basename, so the bogon will be chosen
1057 # first if we set CC to just the basename; use the full file name.
1058 shift
1059 set dummy "$ac_dir/$ac_word" "$@"
1060 shift
1061 ac_cv_prog_CC="$@"
1066 CC="$ac_cv_prog_CC"
1067 if test -n "$CC"; then
1068 echo "$ac_t""$CC" 1>&6
1069 else
1070 echo "$ac_t""no" 1>&6
1073 if test -z "$CC"; then
1074 case "`uname -s`" in
1075 *win32* | *WIN32*)
1076 # Extract the first word of "cl", so it can be a program name with args.
1077 set dummy cl; ac_word=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1082 else
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC="$CC" # Let the user override the test.
1085 else
1086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1087 ac_dummy="$PATH"
1088 for ac_dir in $ac_dummy; do
1089 test -z "$ac_dir" && ac_dir=.
1090 if test -f $ac_dir/$ac_word; then
1091 ac_cv_prog_CC="cl"
1092 break
1094 done
1095 IFS="$ac_save_ifs"
1098 CC="$ac_cv_prog_CC"
1099 if test -n "$CC"; then
1100 echo "$ac_t""$CC" 1>&6
1101 else
1102 echo "$ac_t""no" 1>&6
1105 esac
1107 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1113 ac_ext=c
1114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1118 cross_compiling=$ac_cv_prog_cc_cross
1120 cat > conftest.$ac_ext << EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1125 main(){return(0);}
1127 if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1128 ac_cv_prog_cc_works=yes
1129 # If we can't run a trivial program, we are probably using a cross compiler.
1130 if (./conftest; exit) 2>/dev/null; then
1131 ac_cv_prog_cc_cross=no
1132 else
1133 ac_cv_prog_cc_cross=yes
1135 else
1136 echo "configure: failed program was:" >&5
1137 cat conftest.$ac_ext >&5
1138 ac_cv_prog_cc_works=no
1140 rm -fr conftest*
1141 ac_ext=c
1142 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1143 ac_cpp='$CPP $CPPFLAGS'
1144 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1145 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1146 cross_compiling=$ac_cv_prog_cc_cross
1148 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1149 if test $ac_cv_prog_cc_works = no; then
1150 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1152 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1154 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1155 cross_compiling=$ac_cv_prog_cc_cross
1157 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether we are using GNU C" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1161 else
1162 cat > conftest.c <<EOF
1163 #ifdef __GNUC__
1164 yes;
1165 #endif
1167 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1168 ac_cv_prog_gcc=yes
1169 else
1170 ac_cv_prog_gcc=no
1174 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1176 if test $ac_cv_prog_gcc = yes; then
1177 GCC=yes
1178 else
1179 GCC=
1182 ac_test_CFLAGS="${CFLAGS+set}"
1183 ac_save_CFLAGS="$CFLAGS"
1184 CFLAGS=
1185 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${CC-cc} accepts -g" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189 else
1190 echo 'void f(){}' > conftest.c
1191 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1192 ac_cv_prog_cc_g=yes
1193 else
1194 ac_cv_prog_cc_g=no
1196 rm -f conftest*
1200 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1201 if test "$ac_test_CFLAGS" = set; then
1202 CFLAGS="$ac_save_CFLAGS"
1203 elif test $ac_cv_prog_cc_g = yes; then
1204 if test "$GCC" = yes; then
1205 CFLAGS="-g -O2"
1206 else
1207 CFLAGS="-g"
1209 else
1210 if test "$GCC" = yes; then
1211 CFLAGS="-O2"
1212 else
1213 CFLAGS=
1217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1218 if test "${with_gnu_ld+set}" = set; then
1219 withval="$with_gnu_ld"
1220 test "$withval" = no || with_gnu_ld=yes
1221 else
1222 with_gnu_ld=no
1225 ac_prog=ld
1226 if test "$ac_cv_prog_gcc" = yes; then
1227 # Check if gcc -print-prog-name=ld gives a path.
1228 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1229 echo "configure:1230: checking for ld used by GCC" >&5
1230 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1231 case "$ac_prog" in
1232 # Accept absolute paths.
1233 /* | [A-Za-z]:[\\/]*)
1234 re_direlt='/[^/][^/]*/\.\./'
1235 # Canonicalize the path of ld
1236 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1238 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1239 done
1240 test -z "$LD" && LD="$ac_prog"
1243 # If it fails, then pretend we aren't using GCC.
1244 ac_prog=ld
1247 # If it is relative, then search for the first ld in PATH.
1248 with_gnu_ld=unknown
1250 esac
1251 elif test "$with_gnu_ld" = yes; then
1252 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1253 echo "configure:1254: checking for GNU ld" >&5
1254 else
1255 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1256 echo "configure:1257: checking for non-GNU ld" >&5
1258 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1261 if test -z "$LD"; then
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1263 for ac_dir in $PATH; do
1264 test -z "$ac_dir" && ac_dir=.
1265 if test -f "$ac_dir/$ac_prog"; then
1266 ac_cv_path_LD="$ac_dir/$ac_prog"
1267 # Check to see if the program is GNU ld. I'd rather use --version,
1268 # but apparently some GNU ld's only accept -v.
1269 # Break only if it was the GNU/non-GNU ld that we prefer.
1270 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1271 test "$with_gnu_ld" != no && break
1272 else
1273 test "$with_gnu_ld" != yes && break
1276 done
1277 IFS="$ac_save_ifs"
1278 else
1279 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1283 LD="$ac_cv_path_LD"
1284 if test -n "$LD"; then
1285 echo "$ac_t""$LD" 1>&6
1286 else
1287 echo "$ac_t""no" 1>&6
1289 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1291 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1292 echo "configure:1293: checking if the linker ($LD) is GNU ld" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1295 else
1296 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1297 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1298 ac_cv_prog_gnu_ld=yes
1299 else
1300 ac_cv_prog_gnu_ld=no
1304 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1307 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1308 echo "configure:1309: checking for BSD-compatible nm" >&5
1309 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312 if test -n "$NM"; then
1313 # Let the user override the test.
1314 ac_cv_path_NM="$NM"
1315 else
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1317 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/nm; then
1320 # Check to see if the nm accepts a BSD-compat flag.
1321 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1322 # nm: unknown option "B" ignored
1323 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1324 ac_cv_path_NM="$ac_dir/nm -B"
1325 break
1326 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1327 ac_cv_path_NM="$ac_dir/nm -p"
1328 break
1329 else
1330 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1331 continue # so that we can try to find one that supports BSD flags
1334 done
1335 IFS="$ac_save_ifs"
1336 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1340 NM="$ac_cv_path_NM"
1341 echo "$ac_t""$NM" 1>&6
1344 # Check for command to grab the raw symbol name followed by C symbol from nm.
1345 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1346 echo "configure:1347: checking command to parse $NM output" >&5
1347 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350 # These are sane defaults that work on at least a few old systems.
1351 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1353 # Character class describing NM global symbol codes.
1354 ac_symcode='[BCDEGRST]'
1356 # Regexp to match symbols that can be accessed directly from C.
1357 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1359 # Transform the above into a raw symbol and a C symbol.
1360 ac_symxfrm='\1 \2\3 \3'
1362 # Transform an extracted symbol line into a proper C declaration
1363 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1365 # Define system-specific variables.
1366 case "$host_os" in
1367 aix*)
1368 ac_symcode='[BCDT]'
1370 cygwin* | mingw*)
1371 ac_symcode='[ABCDGISTW]'
1373 hpux*)
1374 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1376 irix*)
1377 ac_symcode='[BCDEGRST]'
1379 solaris*)
1380 ac_symcode='[BDT]'
1382 esac
1384 # If we're using GNU nm, then use its standard symbol codes.
1385 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1386 ac_symcode='[ABCDGISTW]'
1389 # Try without a prefix undercore, then with it.
1390 for ac_symprfx in "" "_"; do
1392 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1394 # Check to see that the pipe works correctly.
1395 ac_pipe_works=no
1396 rm -f conftest.$ac_ext
1397 cat > conftest.$ac_ext <<EOF
1398 #ifdef __cplusplus
1399 extern "C" {
1400 #endif
1401 char nm_test_var;
1402 void nm_test_func(){}
1403 #ifdef __cplusplus
1405 #endif
1406 int main(){nm_test_var='a';nm_test_func;return 0;}
1409 if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1410 # Now try to grab the symbols.
1411 ac_nlist=conftest.nm
1413 if { (eval echo configure:1414: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1415 # Try sorting and uniquifying the output.
1416 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1417 mv -f "$ac_nlist"T "$ac_nlist"
1418 else
1419 rm -f "$ac_nlist"T
1422 # Make sure that we snagged all the symbols we need.
1423 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1424 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1425 cat <<EOF > conftest.c
1426 #ifdef __cplusplus
1427 extern "C" {
1428 #endif
1431 # Now generate the symbol file.
1432 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1434 cat <<EOF >> conftest.c
1435 #if defined (__STDC__) && __STDC__
1436 # define lt_ptr_t void *
1437 #else
1438 # define lt_ptr_t char *
1439 # define const
1440 #endif
1442 /* The mapping between symbol names and symbols. */
1443 const struct {
1444 const char *name;
1445 lt_ptr_t address;
1447 lt_preloaded_symbols[] =
1450 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1451 cat <<\EOF >> conftest.c
1452 {0, (lt_ptr_t) 0}
1455 #ifdef __cplusplus
1457 #endif
1459 # Now try linking the two files.
1460 mv conftest.$ac_objext conftestm.$ac_objext
1461 ac_save_LIBS="$LIBS"
1462 ac_save_CFLAGS="$CFLAGS"
1463 LIBS="conftestm.$ac_objext"
1464 CFLAGS="$CFLAGS$no_builtin_flag"
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1466 ac_pipe_works=yes
1467 else
1468 echo "configure: failed program was:" >&5
1469 cat conftest.c >&5
1471 LIBS="$ac_save_LIBS"
1472 CFLAGS="$ac_save_CFLAGS"
1473 else
1474 echo "cannot find nm_test_func in $ac_nlist" >&5
1476 else
1477 echo "cannot find nm_test_var in $ac_nlist" >&5
1479 else
1480 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1482 else
1483 echo "$progname: failed program was:" >&5
1484 cat conftest.c >&5
1486 rm -rf conftest*
1488 # Do not use the global_symbol_pipe unless it works.
1489 if test "$ac_pipe_works" = yes; then
1490 if test x"$ac_symprfx" = x"_"; then
1491 ac_cv_sys_symbol_underscore=yes
1492 else
1493 ac_cv_sys_symbol_underscore=no
1495 break
1496 else
1497 ac_cv_sys_global_symbol_pipe=
1499 done
1504 ac_result=yes
1505 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1506 ac_result=no
1508 echo "$ac_t""$ac_result" 1>&6
1510 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1511 echo "configure:1512: checking for _ prefix in compiled symbols" >&5
1512 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515 ac_cv_sys_symbol_underscore=no
1516 cat > conftest.$ac_ext <<EOF
1517 void nm_test_func(){}
1518 int main(){nm_test_func;return 0;}
1520 if { (eval echo configure:1521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1521 # Now try to grab the symbols.
1522 ac_nlist=conftest.nm
1523 if { (eval echo configure:1524: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1524 # See whether the symbols have a leading underscore.
1525 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1526 ac_cv_sys_symbol_underscore=yes
1527 else
1528 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1530 else
1531 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1534 else
1535 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1537 else
1538 echo "configure: failed program was:" >&5
1539 cat conftest.c >&5
1541 rm -rf conftest*
1545 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1546 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1548 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether ln -s works" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1552 else
1553 rm -f conftestdata
1554 if ln -s X conftestdata 2>/dev/null
1555 then
1556 rm -f conftestdata
1557 ac_cv_prog_LN_S="ln -s"
1558 else
1559 ac_cv_prog_LN_S=ln
1562 LN_S="$ac_cv_prog_LN_S"
1563 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1564 echo "$ac_t""yes" 1>&6
1565 else
1566 echo "$ac_t""no" 1>&6
1569 if test $host != $build; then
1570 ac_tool_prefix=${host_alias}-
1571 else
1572 ac_tool_prefix=
1576 # Check for any special flags to pass to ltconfig.
1577 libtool_flags="--cache-file=$cache_file"
1578 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1579 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1580 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1581 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1582 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1583 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1584 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1586 # Some flags need to be propagated to the compiler or linker for good
1587 # libtool support.
1588 case "$host" in
1589 *-*-irix6*)
1590 # Find out which ABI we are using.
1591 echo '#line 1592 "configure"' > conftest.$ac_ext
1592 if { (eval echo configure:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1593 case "`/usr/bin/file conftest.o`" in
1594 *32-bit*)
1595 LD="${LD-ld} -32"
1597 *N32*)
1598 LD="${LD-ld} -n32"
1600 *64-bit*)
1601 LD="${LD-ld} -64"
1603 esac
1605 rm -rf conftest*
1608 *-*-sco3.2v5*)
1609 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1610 SAVE_CFLAGS="$CFLAGS"
1611 CFLAGS="$CFLAGS -belf"
1612 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether the C compiler needs -belf" >&5
1614 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1621 int main() {
1623 ; return 0; }
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1626 rm -rf conftest*
1627 lt_cv_cc_needs_belf=yes
1628 else
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 rm -rf conftest*
1632 lt_cv_cc_needs_belf=no
1634 rm -f conftest*
1637 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1640 CFLAGS="$SAVE_CFLAGS"
1644 *-*-cygwin*)
1645 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1646 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5
1649 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1651 else
1652 if test -n "$DLLTOOL"; then
1653 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1654 else
1655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1656 ac_dummy="$PATH"
1657 for ac_dir in $ac_dummy; do
1658 test -z "$ac_dir" && ac_dir=.
1659 if test -f $ac_dir/$ac_word; then
1660 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1661 break
1663 done
1664 IFS="$ac_save_ifs"
1667 DLLTOOL="$ac_cv_prog_DLLTOOL"
1668 if test -n "$DLLTOOL"; then
1669 echo "$ac_t""$DLLTOOL" 1>&6
1670 else
1671 echo "$ac_t""no" 1>&6
1675 if test -z "$ac_cv_prog_DLLTOOL"; then
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "dlltool", so it can be a program name with args.
1678 set dummy dlltool; ac_word=$2
1679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_word" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 if test -n "$DLLTOOL"; then
1685 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1686 else
1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1688 ac_dummy="$PATH"
1689 for ac_dir in $ac_dummy; do
1690 test -z "$ac_dir" && ac_dir=.
1691 if test -f $ac_dir/$ac_word; then
1692 ac_cv_prog_DLLTOOL="dlltool"
1693 break
1695 done
1696 IFS="$ac_save_ifs"
1697 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1700 DLLTOOL="$ac_cv_prog_DLLTOOL"
1701 if test -n "$DLLTOOL"; then
1702 echo "$ac_t""$DLLTOOL" 1>&6
1703 else
1704 echo "$ac_t""no" 1>&6
1707 else
1708 DLLTOOL="false"
1712 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1713 set dummy ${ac_tool_prefix}as; ac_word=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5
1716 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 if test -n "$AS"; then
1720 ac_cv_prog_AS="$AS" # Let the user override the test.
1721 else
1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1723 ac_dummy="$PATH"
1724 for ac_dir in $ac_dummy; do
1725 test -z "$ac_dir" && ac_dir=.
1726 if test -f $ac_dir/$ac_word; then
1727 ac_cv_prog_AS="${ac_tool_prefix}as"
1728 break
1730 done
1731 IFS="$ac_save_ifs"
1734 AS="$ac_cv_prog_AS"
1735 if test -n "$AS"; then
1736 echo "$ac_t""$AS" 1>&6
1737 else
1738 echo "$ac_t""no" 1>&6
1742 if test -z "$ac_cv_prog_AS"; then
1743 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "as", so it can be a program name with args.
1745 set dummy as; ac_word=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 if test -n "$AS"; then
1752 ac_cv_prog_AS="$AS" # Let the user override the test.
1753 else
1754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1755 ac_dummy="$PATH"
1756 for ac_dir in $ac_dummy; do
1757 test -z "$ac_dir" && ac_dir=.
1758 if test -f $ac_dir/$ac_word; then
1759 ac_cv_prog_AS="as"
1760 break
1762 done
1763 IFS="$ac_save_ifs"
1764 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1767 AS="$ac_cv_prog_AS"
1768 if test -n "$AS"; then
1769 echo "$ac_t""$AS" 1>&6
1770 else
1771 echo "$ac_t""no" 1>&6
1774 else
1775 AS="false"
1782 esac
1784 # enable the --disable-libtool-lock switch
1786 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1787 if test "${enable_libtool_lock+set}" = set; then
1788 enableval="$enable_libtool_lock"
1789 need_locks=$enableval
1790 else
1791 need_locks=yes
1795 if test x"$need_locks" = xno; then
1796 libtool_flags="$libtool_flags --disable-lock"
1800 # Save cache, so that ltconfig can load it
1801 cat > confcache <<\EOF
1802 # This file is a shell script that caches the results of configure
1803 # tests run on this system so they can be shared between configure
1804 # scripts and configure runs. It is not useful on other systems.
1805 # If it contains results you don't want to keep, you may remove or edit it.
1807 # By default, configure uses ./config.cache as the cache file,
1808 # creating it if it does not exist already. You can give configure
1809 # the --cache-file=FILE option to use a different cache file; that is
1810 # what configure does when it calls configure scripts in
1811 # subdirectories, so they share the cache.
1812 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1813 # config.status only pays attention to the cache file if you give it the
1814 # --recheck option to rerun configure.
1817 # The following way of writing the cache mishandles newlines in values,
1818 # but we know of no workaround that is simple, portable, and efficient.
1819 # So, don't put newlines in cache variables' values.
1820 # Ultrix sh set writes to stderr and can't be redirected directly,
1821 # and sets the high bit in the cache file unless we assign to the vars.
1822 (set) 2>&1 |
1823 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1824 *ac_space=\ *)
1825 # `set' does not quote correctly, so add quotes (double-quote substitution
1826 # turns \\\\ into \\, and sed turns \\ into \).
1827 sed -n \
1828 -e "s/'/'\\\\''/g" \
1829 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1832 # `set' quotes correctly as required by POSIX, so do not add quotes.
1833 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1835 esac >> confcache
1836 if cmp -s $cache_file confcache; then
1838 else
1839 if test -w $cache_file; then
1840 echo "updating cache $cache_file"
1841 cat confcache > $cache_file
1842 else
1843 echo "not updating unwritable cache $cache_file"
1846 rm -f confcache
1849 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1850 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1851 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1852 DLLTOOL="$DLLTOOL" AS="$AS" \
1853 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1854 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1855 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1857 # Reload cache, that may have been modified by ltconfig
1858 if test -r "$cache_file"; then
1859 echo "loading cache $cache_file"
1860 . $cache_file
1861 else
1862 echo "creating cache $cache_file"
1863 > $cache_file
1867 # This can be used to rebuild libtool when needed
1868 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1870 # Always use our own libtool.
1871 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1873 # Redirect the config.log output again, so that the ltconfig log is not
1874 # clobbered by the next message.
1875 exec 5>>./config.log
1882 # Extract the first word of "gcc", so it can be a program name with args.
1883 set dummy gcc; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893 ac_dummy="$PATH"
1894 for ac_dir in $ac_dummy; do
1895 test -z "$ac_dir" && ac_dir=.
1896 if test -f $ac_dir/$ac_word; then
1897 ac_cv_prog_CC="gcc"
1898 break
1900 done
1901 IFS="$ac_save_ifs"
1904 CC="$ac_cv_prog_CC"
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1907 else
1908 echo "$ac_t""no" 1>&6
1911 if test -z "$CC"; then
1912 # Extract the first word of "cc", so it can be a program name with args.
1913 set dummy cc; ac_word=$2
1914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1915 echo "configure:1916: checking for $ac_word" >&5
1916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1923 ac_prog_rejected=no
1924 ac_dummy="$PATH"
1925 for ac_dir in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir=.
1927 if test -f $ac_dir/$ac_word; then
1928 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1929 ac_prog_rejected=yes
1930 continue
1932 ac_cv_prog_CC="cc"
1933 break
1935 done
1936 IFS="$ac_save_ifs"
1937 if test $ac_prog_rejected = yes; then
1938 # We found a bogon in the path, so make sure we never use it.
1939 set dummy $ac_cv_prog_CC
1940 shift
1941 if test $# -gt 0; then
1942 # We chose a different compiler from the bogus one.
1943 # However, it has the same basename, so the bogon will be chosen
1944 # first if we set CC to just the basename; use the full file name.
1945 shift
1946 set dummy "$ac_dir/$ac_word" "$@"
1947 shift
1948 ac_cv_prog_CC="$@"
1953 CC="$ac_cv_prog_CC"
1954 if test -n "$CC"; then
1955 echo "$ac_t""$CC" 1>&6
1956 else
1957 echo "$ac_t""no" 1>&6
1960 if test -z "$CC"; then
1961 case "`uname -s`" in
1962 *win32* | *WIN32*)
1963 # Extract the first word of "cl", so it can be a program name with args.
1964 set dummy cl; ac_word=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1974 ac_dummy="$PATH"
1975 for ac_dir in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir=.
1977 if test -f $ac_dir/$ac_word; then
1978 ac_cv_prog_CC="cl"
1979 break
1981 done
1982 IFS="$ac_save_ifs"
1985 CC="$ac_cv_prog_CC"
1986 if test -n "$CC"; then
1987 echo "$ac_t""$CC" 1>&6
1988 else
1989 echo "$ac_t""no" 1>&6
1992 esac
1994 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1997 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2000 ac_ext=c
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling=$ac_cv_prog_cc_cross
2007 cat > conftest.$ac_ext << EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2012 main(){return(0);}
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2015 ac_cv_prog_cc_works=yes
2016 # If we can't run a trivial program, we are probably using a cross compiler.
2017 if (./conftest; exit) 2>/dev/null; then
2018 ac_cv_prog_cc_cross=no
2019 else
2020 ac_cv_prog_cc_cross=yes
2022 else
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 ac_cv_prog_cc_works=no
2027 rm -fr conftest*
2028 ac_ext=c
2029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2033 cross_compiling=$ac_cv_prog_cc_cross
2035 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2036 if test $ac_cv_prog_cc_works = no; then
2037 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2039 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2040 echo "configure:2041: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2041 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2042 cross_compiling=$ac_cv_prog_cc_cross
2044 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether we are using GNU C" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 cat > conftest.c <<EOF
2050 #ifdef __GNUC__
2051 yes;
2052 #endif
2054 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2055 ac_cv_prog_gcc=yes
2056 else
2057 ac_cv_prog_gcc=no
2061 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2063 if test $ac_cv_prog_gcc = yes; then
2064 GCC=yes
2065 else
2066 GCC=
2069 ac_test_CFLAGS="${CFLAGS+set}"
2070 ac_save_CFLAGS="$CFLAGS"
2071 CFLAGS=
2072 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2073 echo "configure:2074: checking whether ${CC-cc} accepts -g" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2076 else
2077 echo 'void f(){}' > conftest.c
2078 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2079 ac_cv_prog_cc_g=yes
2080 else
2081 ac_cv_prog_cc_g=no
2083 rm -f conftest*
2087 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2088 if test "$ac_test_CFLAGS" = set; then
2089 CFLAGS="$ac_save_CFLAGS"
2090 elif test $ac_cv_prog_cc_g = yes; then
2091 if test "$GCC" = yes; then
2092 CFLAGS="-g -O2"
2093 else
2094 CFLAGS="-g"
2096 else
2097 if test "$GCC" = yes; then
2098 CFLAGS="-O2"
2099 else
2100 CFLAGS=
2104 # Find a good install program. We prefer a C program (faster),
2105 # so one script is as good as another. But avoid the broken or
2106 # incompatible versions:
2107 # SysV /etc/install, /usr/sbin/install
2108 # SunOS /usr/etc/install
2109 # IRIX /sbin/install
2110 # AIX /bin/install
2111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2114 # ./install, which can be erroneously created by make from ./install.sh.
2115 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2116 echo "configure:2117: checking for a BSD compatible install" >&5
2117 if test -z "$INSTALL"; then
2118 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2122 for ac_dir in $PATH; do
2123 # Account for people who put trailing slashes in PATH elements.
2124 case "$ac_dir/" in
2125 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2127 # OSF1 and SCO ODT 3.0 have their own names for install.
2128 # Don't use installbsd from OSF since it installs stuff as root
2129 # by default.
2130 for ac_prog in ginstall scoinst install; do
2131 if test -f $ac_dir/$ac_prog; then
2132 if test $ac_prog = install &&
2133 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2134 # AIX install. It has an incompatible calling convention.
2136 else
2137 ac_cv_path_install="$ac_dir/$ac_prog -c"
2138 break 2
2141 done
2143 esac
2144 done
2145 IFS="$ac_save_IFS"
2148 if test "${ac_cv_path_install+set}" = set; then
2149 INSTALL="$ac_cv_path_install"
2150 else
2151 # As a last resort, use the slow shell script. We don't cache a
2152 # path for INSTALL within a source directory, because that will
2153 # break other packages using the cache if that directory is
2154 # removed, or if the path is relative.
2155 INSTALL="$ac_install_sh"
2158 echo "$ac_t""$INSTALL" 1>&6
2160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2161 # It thinks the first close brace ends the variable substitution.
2162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2166 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2170 echo "configure:2171: checking for POSIXized ISC" >&5
2171 if test -d /etc/conf/kconfig.d &&
2172 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2173 then
2174 echo "$ac_t""yes" 1>&6
2175 ISC=yes # If later tests want to check for ISC.
2176 cat >> confdefs.h <<\EOF
2177 #define _POSIX_SOURCE 1
2180 if test "$GCC" = yes; then
2181 CC="$CC -posix"
2182 else
2183 CC="$CC -Xp"
2185 else
2186 echo "$ac_t""no" 1>&6
2187 ISC=
2191 ALL_LINGUAS=
2192 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2193 echo "configure:2194: checking how to run the C preprocessor" >&5
2194 # On Suns, sometimes $CPP names a directory.
2195 if test -n "$CPP" && test -d "$CPP"; then
2196 CPP=
2198 if test -z "$CPP"; then
2199 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 # This must be in double quotes, not single quotes, because CPP may get
2203 # substituted into the Makefile and "${CC-cc}" will confuse make.
2204 CPP="${CC-cc} -E"
2205 # On the NeXT, cc -E runs the code through the compiler's parser,
2206 # not just through cpp.
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 #include <assert.h>
2211 Syntax Error
2213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214 { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216 if test -z "$ac_err"; then
2218 else
2219 echo "$ac_err" >&5
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 rm -rf conftest*
2223 CPP="${CC-cc} -E -traditional-cpp"
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <assert.h>
2228 Syntax Error
2230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2231 { (eval echo configure:2232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2233 if test -z "$ac_err"; then
2235 else
2236 echo "$ac_err" >&5
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2239 rm -rf conftest*
2240 CPP="${CC-cc} -nologo -E"
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 #include <assert.h>
2245 Syntax Error
2247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2250 if test -z "$ac_err"; then
2252 else
2253 echo "$ac_err" >&5
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 rm -rf conftest*
2257 CPP=/lib/cpp
2259 rm -f conftest*
2261 rm -f conftest*
2263 rm -f conftest*
2264 ac_cv_prog_CPP="$CPP"
2266 CPP="$ac_cv_prog_CPP"
2267 else
2268 ac_cv_prog_CPP="$CPP"
2270 echo "$ac_t""$CPP" 1>&6
2272 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2273 echo "configure:2274: checking for ANSI C header files" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <stdlib.h>
2281 #include <stdarg.h>
2282 #include <string.h>
2283 #include <float.h>
2285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2289 rm -rf conftest*
2290 ac_cv_header_stdc=yes
2291 else
2292 echo "$ac_err" >&5
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2295 rm -rf conftest*
2296 ac_cv_header_stdc=no
2298 rm -f conftest*
2300 if test $ac_cv_header_stdc = yes; then
2301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 #include <string.h>
2307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2308 egrep "memchr" >/dev/null 2>&1; then
2310 else
2311 rm -rf conftest*
2312 ac_cv_header_stdc=no
2314 rm -f conftest*
2318 if test $ac_cv_header_stdc = yes; then
2319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <stdlib.h>
2325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326 egrep "free" >/dev/null 2>&1; then
2328 else
2329 rm -rf conftest*
2330 ac_cv_header_stdc=no
2332 rm -f conftest*
2336 if test $ac_cv_header_stdc = yes; then
2337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2338 if test "$cross_compiling" = yes; then
2340 else
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <ctype.h>
2345 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2346 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2348 int main () { int i; for (i = 0; i < 256; i++)
2349 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2350 exit (0); }
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2354 then
2356 else
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -fr conftest*
2360 ac_cv_header_stdc=no
2362 rm -fr conftest*
2368 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2369 if test $ac_cv_header_stdc = yes; then
2370 cat >> confdefs.h <<\EOF
2371 #define STDC_HEADERS 1
2376 echo $ac_n "checking for working const""... $ac_c" 1>&6
2377 echo "configure:2378: checking for working const" >&5
2378 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2380 else
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2385 int main() {
2387 /* Ultrix mips cc rejects this. */
2388 typedef int charset[2]; const charset x;
2389 /* SunOS 4.1.1 cc rejects this. */
2390 char const *const *ccp;
2391 char **p;
2392 /* NEC SVR4.0.2 mips cc rejects this. */
2393 struct point {int x, y;};
2394 static struct point const zero = {0,0};
2395 /* AIX XL C 1.02.0.0 rejects this.
2396 It does not let you subtract one const X* pointer from another in an arm
2397 of an if-expression whose if-part is not a constant expression */
2398 const char *g = "string";
2399 ccp = &g + (g ? g-g : 0);
2400 /* HPUX 7.0 cc rejects these. */
2401 ++ccp;
2402 p = (char**) ccp;
2403 ccp = (char const *const *) p;
2404 { /* SCO 3.2v4 cc rejects this. */
2405 char *t;
2406 char const *s = 0 ? (char *) 0 : (char const *) 0;
2408 *t++ = 0;
2410 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2411 int x[] = {25, 17};
2412 const int *foo = &x[0];
2413 ++foo;
2415 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2416 typedef const int *iptr;
2417 iptr p = 0;
2418 ++p;
2420 { /* AIX XL C 1.02.0.0 rejects this saying
2421 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2422 struct s { int j; const int *ap[3]; };
2423 struct s *b; b->j = 5;
2425 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2426 const int foo = 10;
2429 ; return 0; }
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2432 rm -rf conftest*
2433 ac_cv_c_const=yes
2434 else
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 rm -rf conftest*
2438 ac_cv_c_const=no
2440 rm -f conftest*
2443 echo "$ac_t""$ac_cv_c_const" 1>&6
2444 if test $ac_cv_c_const = no; then
2445 cat >> confdefs.h <<\EOF
2446 #define const
2451 echo $ac_n "checking for inline""... $ac_c" 1>&6
2452 echo "configure:2453: checking for inline" >&5
2453 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2455 else
2456 ac_cv_c_inline=no
2457 for ac_kw in inline __inline__ __inline; do
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2462 int main() {
2463 } $ac_kw foo() {
2464 ; return 0; }
2466 if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2467 rm -rf conftest*
2468 ac_cv_c_inline=$ac_kw; break
2469 else
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 rm -f conftest*
2474 done
2478 echo "$ac_t""$ac_cv_c_inline" 1>&6
2479 case "$ac_cv_c_inline" in
2480 inline | yes) ;;
2481 no) cat >> confdefs.h <<\EOF
2482 #define inline
2485 *) cat >> confdefs.h <<EOF
2486 #define inline $ac_cv_c_inline
2489 esac
2491 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2492 echo "configure:2493: checking for off_t" >&5
2493 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2495 else
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <sys/types.h>
2500 #if STDC_HEADERS
2501 #include <stdlib.h>
2502 #include <stddef.h>
2503 #endif
2505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2506 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2507 rm -rf conftest*
2508 ac_cv_type_off_t=yes
2509 else
2510 rm -rf conftest*
2511 ac_cv_type_off_t=no
2513 rm -f conftest*
2516 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2517 if test $ac_cv_type_off_t = no; then
2518 cat >> confdefs.h <<\EOF
2519 #define off_t long
2524 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2525 echo "configure:2526: checking for size_t" >&5
2526 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2528 else
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 #include <sys/types.h>
2533 #if STDC_HEADERS
2534 #include <stdlib.h>
2535 #include <stddef.h>
2536 #endif
2538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2540 rm -rf conftest*
2541 ac_cv_type_size_t=yes
2542 else
2543 rm -rf conftest*
2544 ac_cv_type_size_t=no
2546 rm -f conftest*
2549 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2550 if test $ac_cv_type_size_t = no; then
2551 cat >> confdefs.h <<\EOF
2552 #define size_t unsigned
2557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2558 # for constant arguments. Useless!
2559 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2560 echo "configure:2561: checking for working alloca.h" >&5
2561 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2563 else
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 #include <alloca.h>
2568 int main() {
2569 char *p = alloca(2 * sizeof(int));
2570 ; return 0; }
2572 if { (eval echo configure:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2573 rm -rf conftest*
2574 ac_cv_header_alloca_h=yes
2575 else
2576 echo "configure: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 rm -rf conftest*
2579 ac_cv_header_alloca_h=no
2581 rm -f conftest*
2584 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2585 if test $ac_cv_header_alloca_h = yes; then
2586 cat >> confdefs.h <<\EOF
2587 #define HAVE_ALLOCA_H 1
2592 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2593 echo "configure:2594: checking for alloca" >&5
2594 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2596 else
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2601 #ifdef __GNUC__
2602 # define alloca __builtin_alloca
2603 #else
2604 # ifdef _MSC_VER
2605 # include <malloc.h>
2606 # define alloca _alloca
2607 # else
2608 # if HAVE_ALLOCA_H
2609 # include <alloca.h>
2610 # else
2611 # ifdef _AIX
2612 #pragma alloca
2613 # else
2614 # ifndef alloca /* predefined by HP cc +Olibcalls */
2615 char *alloca ();
2616 # endif
2617 # endif
2618 # endif
2619 # endif
2620 #endif
2622 int main() {
2623 char *p = (char *) alloca(1);
2624 ; return 0; }
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2627 rm -rf conftest*
2628 ac_cv_func_alloca_works=yes
2629 else
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2632 rm -rf conftest*
2633 ac_cv_func_alloca_works=no
2635 rm -f conftest*
2638 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2639 if test $ac_cv_func_alloca_works = yes; then
2640 cat >> confdefs.h <<\EOF
2641 #define HAVE_ALLOCA 1
2646 if test $ac_cv_func_alloca_works = no; then
2647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2648 # that cause trouble. Some versions do not even contain alloca or
2649 # contain a buggy version. If you still want to use their alloca,
2650 # use ar to extract alloca.o from them instead of compiling alloca.c.
2651 ALLOCA=alloca.${ac_objext}
2652 cat >> confdefs.h <<\EOF
2653 #define C_ALLOCA 1
2657 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether alloca needs Cray hooks" >&5
2659 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #if defined(CRAY) && ! defined(CRAY2)
2666 webecray
2667 #else
2668 wenotbecray
2669 #endif
2672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2673 egrep "webecray" >/dev/null 2>&1; then
2674 rm -rf conftest*
2675 ac_cv_os_cray=yes
2676 else
2677 rm -rf conftest*
2678 ac_cv_os_cray=no
2680 rm -f conftest*
2684 echo "$ac_t""$ac_cv_os_cray" 1>&6
2685 if test $ac_cv_os_cray = yes; then
2686 for ac_func in _getb67 GETB67 getb67; do
2687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_func" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2691 else
2692 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696 which can conflict with char $ac_func(); below. */
2697 #include <assert.h>
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2701 char $ac_func();
2703 int main() {
2705 /* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2709 choke me
2710 #else
2711 $ac_func();
2712 #endif
2714 ; return 0; }
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2717 rm -rf conftest*
2718 eval "ac_cv_func_$ac_func=yes"
2719 else
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 rm -rf conftest*
2723 eval "ac_cv_func_$ac_func=no"
2725 rm -f conftest*
2728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 cat >> confdefs.h <<EOF
2731 #define CRAY_STACKSEG_END $ac_func
2734 break
2735 else
2736 echo "$ac_t""no" 1>&6
2739 done
2742 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2743 echo "configure:2744: checking stack direction for C alloca" >&5
2744 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747 if test "$cross_compiling" = yes; then
2748 ac_cv_c_stack_direction=0
2749 else
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 find_stack_direction ()
2755 static char *addr = 0;
2756 auto char dummy;
2757 if (addr == 0)
2759 addr = &dummy;
2760 return find_stack_direction ();
2762 else
2763 return (&dummy > addr) ? 1 : -1;
2765 main ()
2767 exit (find_stack_direction() < 0);
2770 if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2771 then
2772 ac_cv_c_stack_direction=1
2773 else
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 rm -fr conftest*
2777 ac_cv_c_stack_direction=-1
2779 rm -fr conftest*
2784 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2785 cat >> confdefs.h <<EOF
2786 #define STACK_DIRECTION $ac_cv_c_stack_direction
2791 for ac_hdr in unistd.h
2793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_hdr" >&5
2796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2798 else
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <$ac_hdr>
2804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2805 { (eval echo configure:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2807 if test -z "$ac_err"; then
2808 rm -rf conftest*
2809 eval "ac_cv_header_$ac_safe=yes"
2810 else
2811 echo "$ac_err" >&5
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 rm -rf conftest*
2815 eval "ac_cv_header_$ac_safe=no"
2817 rm -f conftest*
2819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2822 cat >> confdefs.h <<EOF
2823 #define $ac_tr_hdr 1
2826 else
2827 echo "$ac_t""no" 1>&6
2829 done
2831 for ac_func in getpagesize
2833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_func" >&5
2835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* System header to define __stub macros and hopefully few prototypes,
2842 which can conflict with char $ac_func(); below. */
2843 #include <assert.h>
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2847 char $ac_func();
2849 int main() {
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2855 choke me
2856 #else
2857 $ac_func();
2858 #endif
2860 ; return 0; }
2862 if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 rm -rf conftest*
2864 eval "ac_cv_func_$ac_func=yes"
2865 else
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 rm -rf conftest*
2869 eval "ac_cv_func_$ac_func=no"
2871 rm -f conftest*
2874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2877 cat >> confdefs.h <<EOF
2878 #define $ac_tr_func 1
2881 else
2882 echo "$ac_t""no" 1>&6
2884 done
2886 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2887 echo "configure:2888: checking for working mmap" >&5
2888 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2890 else
2891 if test "$cross_compiling" = yes; then
2892 ac_cv_func_mmap_fixed_mapped=no
2893 else
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2898 /* Thanks to Mike Haertel and Jim Avera for this test.
2899 Here is a matrix of mmap possibilities:
2900 mmap private not fixed
2901 mmap private fixed at somewhere currently unmapped
2902 mmap private fixed at somewhere already mapped
2903 mmap shared not fixed
2904 mmap shared fixed at somewhere currently unmapped
2905 mmap shared fixed at somewhere already mapped
2906 For private mappings, we should verify that changes cannot be read()
2907 back from the file, nor mmap's back from the file at a different
2908 address. (There have been systems where private was not correctly
2909 implemented like the infamous i386 svr4.0, and systems where the
2910 VM page cache was not coherent with the filesystem buffer cache
2911 like early versions of FreeBSD and possibly contemporary NetBSD.)
2912 For shared mappings, we should conversely verify that changes get
2913 propogated back to all the places they're supposed to be.
2915 Grep wants private fixed already mapped.
2916 The main things grep needs to know about mmap are:
2917 * does it exist and is it safe to write into the mmap'd area
2918 * how to use it (BSD variants) */
2919 #include <sys/types.h>
2920 #include <fcntl.h>
2921 #include <sys/mman.h>
2923 /* This mess was copied from the GNU getpagesize.h. */
2924 #ifndef HAVE_GETPAGESIZE
2925 # ifdef HAVE_UNISTD_H
2926 # include <unistd.h>
2927 # endif
2929 /* Assume that all systems that can run configure have sys/param.h. */
2930 # ifndef HAVE_SYS_PARAM_H
2931 # define HAVE_SYS_PARAM_H 1
2932 # endif
2934 # ifdef _SC_PAGESIZE
2935 # define getpagesize() sysconf(_SC_PAGESIZE)
2936 # else /* no _SC_PAGESIZE */
2937 # ifdef HAVE_SYS_PARAM_H
2938 # include <sys/param.h>
2939 # ifdef EXEC_PAGESIZE
2940 # define getpagesize() EXEC_PAGESIZE
2941 # else /* no EXEC_PAGESIZE */
2942 # ifdef NBPG
2943 # define getpagesize() NBPG * CLSIZE
2944 # ifndef CLSIZE
2945 # define CLSIZE 1
2946 # endif /* no CLSIZE */
2947 # else /* no NBPG */
2948 # ifdef NBPC
2949 # define getpagesize() NBPC
2950 # else /* no NBPC */
2951 # ifdef PAGESIZE
2952 # define getpagesize() PAGESIZE
2953 # endif /* PAGESIZE */
2954 # endif /* no NBPC */
2955 # endif /* no NBPG */
2956 # endif /* no EXEC_PAGESIZE */
2957 # else /* no HAVE_SYS_PARAM_H */
2958 # define getpagesize() 8192 /* punt totally */
2959 # endif /* no HAVE_SYS_PARAM_H */
2960 # endif /* no _SC_PAGESIZE */
2962 #endif /* no HAVE_GETPAGESIZE */
2964 #ifdef __cplusplus
2965 extern "C" { void *malloc(unsigned); }
2966 #else
2967 char *malloc();
2968 #endif
2971 main()
2973 char *data, *data2, *data3;
2974 int i, pagesize;
2975 int fd;
2977 pagesize = getpagesize();
2980 * First, make a file with some known garbage in it.
2982 data = malloc(pagesize);
2983 if (!data)
2984 exit(1);
2985 for (i = 0; i < pagesize; ++i)
2986 *(data + i) = rand();
2987 umask(0);
2988 fd = creat("conftestmmap", 0600);
2989 if (fd < 0)
2990 exit(1);
2991 if (write(fd, data, pagesize) != pagesize)
2992 exit(1);
2993 close(fd);
2996 * Next, try to mmap the file at a fixed address which
2997 * already has something else allocated at it. If we can,
2998 * also make sure that we see the same garbage.
3000 fd = open("conftestmmap", O_RDWR);
3001 if (fd < 0)
3002 exit(1);
3003 data2 = malloc(2 * pagesize);
3004 if (!data2)
3005 exit(1);
3006 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3007 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3008 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3009 exit(1);
3010 for (i = 0; i < pagesize; ++i)
3011 if (*(data + i) != *(data2 + i))
3012 exit(1);
3015 * Finally, make sure that changes to the mapped area
3016 * do not percolate back to the file as seen by read().
3017 * (This is a bug on some variants of i386 svr4.0.)
3019 for (i = 0; i < pagesize; ++i)
3020 *(data2 + i) = *(data2 + i) + 1;
3021 data3 = malloc(pagesize);
3022 if (!data3)
3023 exit(1);
3024 if (read(fd, data3, pagesize) != pagesize)
3025 exit(1);
3026 for (i = 0; i < pagesize; ++i)
3027 if (*(data + i) != *(data3 + i))
3028 exit(1);
3029 close(fd);
3030 unlink("conftestmmap");
3031 exit(0);
3035 if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3036 then
3037 ac_cv_func_mmap_fixed_mapped=yes
3038 else
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 rm -fr conftest*
3042 ac_cv_func_mmap_fixed_mapped=no
3044 rm -fr conftest*
3049 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3051 cat >> confdefs.h <<\EOF
3052 #define HAVE_MMAP 1
3058 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3059 unistd.h values.h sys/param.h
3061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_hdr" >&5
3064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 #include <$ac_hdr>
3072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3073 { (eval echo configure:3074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3075 if test -z "$ac_err"; then
3076 rm -rf conftest*
3077 eval "ac_cv_header_$ac_safe=yes"
3078 else
3079 echo "$ac_err" >&5
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 rm -rf conftest*
3083 eval "ac_cv_header_$ac_safe=no"
3085 rm -f conftest*
3087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_hdr 1
3094 else
3095 echo "$ac_t""no" 1>&6
3097 done
3099 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3100 __argz_count __argz_stringify __argz_next
3102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_func" >&5
3104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* System header to define __stub macros and hopefully few prototypes,
3111 which can conflict with char $ac_func(); below. */
3112 #include <assert.h>
3113 /* Override any gcc2 internal prototype to avoid an error. */
3114 /* We use char because int might match the return type of a gcc2
3115 builtin and then its argument prototype would still apply. */
3116 char $ac_func();
3118 int main() {
3120 /* The GNU C library defines this for functions which it implements
3121 to always fail with ENOSYS. Some functions are actually named
3122 something starting with __ and the normal name is an alias. */
3123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3124 choke me
3125 #else
3126 $ac_func();
3127 #endif
3129 ; return 0; }
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3132 rm -rf conftest*
3133 eval "ac_cv_func_$ac_func=yes"
3134 else
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 rm -rf conftest*
3138 eval "ac_cv_func_$ac_func=no"
3140 rm -f conftest*
3143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3146 cat >> confdefs.h <<EOF
3147 #define $ac_tr_func 1
3150 else
3151 echo "$ac_t""no" 1>&6
3153 done
3156 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3157 for ac_func in stpcpy
3159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_func" >&5
3161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3163 else
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 /* System header to define __stub macros and hopefully few prototypes,
3168 which can conflict with char $ac_func(); below. */
3169 #include <assert.h>
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3173 char $ac_func();
3175 int main() {
3177 /* The GNU C library defines this for functions which it implements
3178 to always fail with ENOSYS. Some functions are actually named
3179 something starting with __ and the normal name is an alias. */
3180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3181 choke me
3182 #else
3183 $ac_func();
3184 #endif
3186 ; return 0; }
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3189 rm -rf conftest*
3190 eval "ac_cv_func_$ac_func=yes"
3191 else
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194 rm -rf conftest*
3195 eval "ac_cv_func_$ac_func=no"
3197 rm -f conftest*
3200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3203 cat >> confdefs.h <<EOF
3204 #define $ac_tr_func 1
3207 else
3208 echo "$ac_t""no" 1>&6
3210 done
3213 if test "${ac_cv_func_stpcpy}" = "yes"; then
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_STPCPY 1
3220 if test $ac_cv_header_locale_h = yes; then
3221 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3222 echo "configure:3223: checking for LC_MESSAGES" >&5
3223 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3225 else
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #include <locale.h>
3230 int main() {
3231 return LC_MESSAGES
3232 ; return 0; }
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 rm -rf conftest*
3236 am_cv_val_LC_MESSAGES=yes
3237 else
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 rm -rf conftest*
3241 am_cv_val_LC_MESSAGES=no
3243 rm -f conftest*
3246 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3247 if test $am_cv_val_LC_MESSAGES = yes; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_LC_MESSAGES 1
3254 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3255 echo "configure:3256: checking whether NLS is requested" >&5
3256 # Check whether --enable-nls or --disable-nls was given.
3257 if test "${enable_nls+set}" = set; then
3258 enableval="$enable_nls"
3259 USE_NLS=$enableval
3260 else
3261 USE_NLS=yes
3264 echo "$ac_t""$USE_NLS" 1>&6
3267 USE_INCLUDED_LIBINTL=no
3269 if test "$USE_NLS" = "yes"; then
3270 cat >> confdefs.h <<\EOF
3271 #define ENABLE_NLS 1
3274 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3275 echo "configure:3276: checking whether included gettext is requested" >&5
3276 # Check whether --with-included-gettext or --without-included-gettext was given.
3277 if test "${with_included_gettext+set}" = set; then
3278 withval="$with_included_gettext"
3279 nls_cv_force_use_gnu_gettext=$withval
3280 else
3281 nls_cv_force_use_gnu_gettext=no
3284 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3286 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3287 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3288 nls_cv_header_intl=
3289 nls_cv_header_libgt=
3290 CATOBJEXT=NONE
3292 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3293 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3294 echo "configure:3295: checking for libintl.h" >&5
3295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <libintl.h>
3303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3304 { (eval echo configure:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3306 if test -z "$ac_err"; then
3307 rm -rf conftest*
3308 eval "ac_cv_header_$ac_safe=yes"
3309 else
3310 echo "$ac_err" >&5
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3313 rm -rf conftest*
3314 eval "ac_cv_header_$ac_safe=no"
3316 rm -f conftest*
3318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3321 echo "configure:3322: checking for gettext in libc" >&5
3322 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3324 else
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <libintl.h>
3329 int main() {
3330 return (int) gettext ("")
3331 ; return 0; }
3333 if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334 rm -rf conftest*
3335 gt_cv_func_gettext_libc=yes
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -rf conftest*
3340 gt_cv_func_gettext_libc=no
3342 rm -f conftest*
3345 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3347 if test "$gt_cv_func_gettext_libc" != "yes"; then
3348 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3349 echo "configure:3350: checking for bindtextdomain in -lintl" >&5
3350 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3353 else
3354 ac_save_LIBS="$LIBS"
3355 LIBS="-lintl $LIBS"
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 /* Override any gcc2 internal prototype to avoid an error. */
3360 /* We use char because int might match the return type of a gcc2
3361 builtin and then its argument prototype would still apply. */
3362 char bindtextdomain();
3364 int main() {
3365 bindtextdomain()
3366 ; return 0; }
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 rm -rf conftest*
3370 eval "ac_cv_lib_$ac_lib_var=yes"
3371 else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_lib_$ac_lib_var=no"
3377 rm -f conftest*
3378 LIBS="$ac_save_LIBS"
3381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3384 echo "configure:3385: checking for gettext in libintl" >&5
3385 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387 else
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3392 int main() {
3393 return (int) gettext ("")
3394 ; return 0; }
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3397 rm -rf conftest*
3398 gt_cv_func_gettext_libintl=yes
3399 else
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 rm -rf conftest*
3403 gt_cv_func_gettext_libintl=no
3405 rm -f conftest*
3408 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3409 else
3410 echo "$ac_t""no" 1>&6
3415 if test "$gt_cv_func_gettext_libc" = "yes" \
3416 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_GETTEXT 1
3421 # Extract the first word of "msgfmt", so it can be a program name with args.
3422 set dummy msgfmt; ac_word=$2
3423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_word" >&5
3425 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3427 else
3428 case "$MSGFMT" in
3430 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3434 for ac_dir in $PATH; do
3435 test -z "$ac_dir" && ac_dir=.
3436 if test -f $ac_dir/$ac_word; then
3437 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3438 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3439 break
3442 done
3443 IFS="$ac_save_ifs"
3444 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3446 esac
3448 MSGFMT="$ac_cv_path_MSGFMT"
3449 if test -n "$MSGFMT"; then
3450 echo "$ac_t""$MSGFMT" 1>&6
3451 else
3452 echo "$ac_t""no" 1>&6
3454 if test "$MSGFMT" != "no"; then
3455 for ac_func in dcgettext
3457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_func" >&5
3459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3467 #include <assert.h>
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char $ac_func();
3473 int main() {
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 choke me
3480 #else
3481 $ac_func();
3482 #endif
3484 ; return 0; }
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3487 rm -rf conftest*
3488 eval "ac_cv_func_$ac_func=yes"
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 eval "ac_cv_func_$ac_func=no"
3495 rm -f conftest*
3498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h <<EOF
3502 #define $ac_tr_func 1
3505 else
3506 echo "$ac_t""no" 1>&6
3508 done
3510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3511 set dummy gmsgfmt; ac_word=$2
3512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_word" >&5
3514 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3516 else
3517 case "$GMSGFMT" in
3519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3521 ?:/*)
3522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3526 ac_dummy="$PATH"
3527 for ac_dir in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3531 break
3533 done
3534 IFS="$ac_save_ifs"
3535 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3537 esac
3539 GMSGFMT="$ac_cv_path_GMSGFMT"
3540 if test -n "$GMSGFMT"; then
3541 echo "$ac_t""$GMSGFMT" 1>&6
3542 else
3543 echo "$ac_t""no" 1>&6
3546 # Extract the first word of "xgettext", so it can be a program name with args.
3547 set dummy xgettext; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553 case "$XGETTEXT" in
3555 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3559 for ac_dir in $PATH; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/$ac_word; then
3562 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3563 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3564 break
3567 done
3568 IFS="$ac_save_ifs"
3569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3571 esac
3573 XGETTEXT="$ac_cv_path_XGETTEXT"
3574 if test -n "$XGETTEXT"; then
3575 echo "$ac_t""$XGETTEXT" 1>&6
3576 else
3577 echo "$ac_t""no" 1>&6
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3584 int main() {
3585 extern int _nl_msg_cat_cntr;
3586 return _nl_msg_cat_cntr
3587 ; return 0; }
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3590 rm -rf conftest*
3591 CATOBJEXT=.gmo
3592 DATADIRNAME=share
3593 else
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 CATOBJEXT=.mo
3598 DATADIRNAME=lib
3600 rm -f conftest*
3601 INSTOBJEXT=.mo
3605 else
3606 echo "$ac_t""no" 1>&6
3611 if test "$CATOBJEXT" = "NONE"; then
3612 nls_cv_use_gnu_gettext=yes
3616 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3617 INTLOBJS="\$(GETTOBJS)"
3618 # Extract the first word of "msgfmt", so it can be a program name with args.
3619 set dummy msgfmt; ac_word=$2
3620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_word" >&5
3622 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625 case "$MSGFMT" in
3627 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3631 for ac_dir in $PATH; do
3632 test -z "$ac_dir" && ac_dir=.
3633 if test -f $ac_dir/$ac_word; then
3634 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3635 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3636 break
3639 done
3640 IFS="$ac_save_ifs"
3641 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3643 esac
3645 MSGFMT="$ac_cv_path_MSGFMT"
3646 if test -n "$MSGFMT"; then
3647 echo "$ac_t""$MSGFMT" 1>&6
3648 else
3649 echo "$ac_t""no" 1>&6
3652 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3653 set dummy gmsgfmt; ac_word=$2
3654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658 else
3659 case "$GMSGFMT" in
3661 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3663 ?:/*)
3664 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 ac_dummy="$PATH"
3669 for ac_dir in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir=.
3671 if test -f $ac_dir/$ac_word; then
3672 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3673 break
3675 done
3676 IFS="$ac_save_ifs"
3677 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3679 esac
3681 GMSGFMT="$ac_cv_path_GMSGFMT"
3682 if test -n "$GMSGFMT"; then
3683 echo "$ac_t""$GMSGFMT" 1>&6
3684 else
3685 echo "$ac_t""no" 1>&6
3688 # Extract the first word of "xgettext", so it can be a program name with args.
3689 set dummy xgettext; ac_word=$2
3690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3691 echo "configure:3692: checking for $ac_word" >&5
3692 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3694 else
3695 case "$XGETTEXT" in
3697 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3701 for ac_dir in $PATH; do
3702 test -z "$ac_dir" && ac_dir=.
3703 if test -f $ac_dir/$ac_word; then
3704 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3705 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3706 break
3709 done
3710 IFS="$ac_save_ifs"
3711 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3713 esac
3715 XGETTEXT="$ac_cv_path_XGETTEXT"
3716 if test -n "$XGETTEXT"; then
3717 echo "$ac_t""$XGETTEXT" 1>&6
3718 else
3719 echo "$ac_t""no" 1>&6
3723 USE_INCLUDED_LIBINTL=yes
3724 CATOBJEXT=.gmo
3725 INSTOBJEXT=.mo
3726 DATADIRNAME=share
3727 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3728 INTLLIBS=$INTLDEPS
3729 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3730 nls_cv_header_intl=libintl.h
3731 nls_cv_header_libgt=libgettext.h
3734 if test "$XGETTEXT" != ":"; then
3735 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3737 else
3738 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3739 XGETTEXT=":"
3743 # We need to process the po/ directory.
3744 POSUB=po
3745 else
3746 DATADIRNAME=share
3747 nls_cv_header_intl=libintl.h
3748 nls_cv_header_libgt=libgettext.h
3751 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3752 # because some of the sources are only built for this goal.
3753 if test "$PACKAGE" = gettext; then
3754 USE_NLS=yes
3755 USE_INCLUDED_LIBINTL=yes
3758 for lang in $ALL_LINGUAS; do
3759 GMOFILES="$GMOFILES $lang.gmo"
3760 POFILES="$POFILES $lang.po"
3761 done
3776 if test "x$CATOBJEXT" != "x"; then
3777 if test "x$ALL_LINGUAS" = "x"; then
3778 LINGUAS=
3779 else
3780 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3781 echo "configure:3782: checking for catalogs to be installed" >&5
3782 NEW_LINGUAS=
3783 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3784 case "$ALL_LINGUAS" in
3785 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3786 esac
3787 done
3788 LINGUAS=$NEW_LINGUAS
3789 echo "$ac_t""$LINGUAS" 1>&6
3792 if test -n "$LINGUAS"; then
3793 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3797 if test $ac_cv_header_locale_h = yes; then
3798 INCLUDE_LOCALE_H="#include <locale.h>"
3799 else
3800 INCLUDE_LOCALE_H="\
3801 /* The system does not provide the header <locale.h>. Take care yourself. */"
3805 if test -f $srcdir/po2tbl.sed.in; then
3806 if test "$CATOBJEXT" = ".cat"; then
3807 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3808 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3809 echo "configure:3810: checking for linux/version.h" >&5
3810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3812 else
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <linux/version.h>
3818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3819 { (eval echo configure:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821 if test -z "$ac_err"; then
3822 rm -rf conftest*
3823 eval "ac_cv_header_$ac_safe=yes"
3824 else
3825 echo "$ac_err" >&5
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 rm -rf conftest*
3829 eval "ac_cv_header_$ac_safe=no"
3831 rm -f conftest*
3833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 msgformat=linux
3836 else
3837 echo "$ac_t""no" 1>&6
3838 msgformat=xopen
3842 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3844 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3845 $srcdir/po2tbl.sed.in > po2tbl.sed
3848 if test "$PACKAGE" = "gettext"; then
3849 GT_NO="#NO#"
3850 GT_YES=
3851 else
3852 GT_NO=
3853 GT_YES="#YES#"
3858 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3864 if test -d $srcdir/po; then
3865 test -d po || mkdir po
3866 if test "x$srcdir" != "x."; then
3867 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3868 posrcprefix="$srcdir/"
3869 else
3870 posrcprefix="../$srcdir/"
3872 else
3873 posrcprefix="../"
3875 rm -f po/POTFILES
3876 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3877 < $srcdir/po/POTFILES.in > po/POTFILES
3881 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3882 echo "configure:3883: checking whether to enable maintainer-specific portions of Makefiles" >&5
3883 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3884 if test "${enable_maintainer_mode+set}" = set; then
3885 enableval="$enable_maintainer_mode"
3886 USE_MAINTAINER_MODE=$enableval
3887 else
3888 USE_MAINTAINER_MODE=no
3891 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3894 if test $USE_MAINTAINER_MODE = yes; then
3895 MAINTAINER_MODE_TRUE=
3896 MAINTAINER_MODE_FALSE='#'
3897 else
3898 MAINTAINER_MODE_TRUE='#'
3899 MAINTAINER_MODE_FALSE=
3901 MAINT=$MAINTAINER_MODE_TRUE
3904 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3905 echo "configure:3906: checking for Cygwin environment" >&5
3906 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3908 else
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3913 int main() {
3915 #ifndef __CYGWIN__
3916 #define __CYGWIN__ __CYGWIN32__
3917 #endif
3918 return __CYGWIN__;
3919 ; return 0; }
3921 if { (eval echo configure:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3922 rm -rf conftest*
3923 ac_cv_cygwin=yes
3924 else
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 ac_cv_cygwin=no
3930 rm -f conftest*
3931 rm -f conftest*
3934 echo "$ac_t""$ac_cv_cygwin" 1>&6
3935 CYGWIN=
3936 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3937 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3938 echo "configure:3939: checking for mingw32 environment" >&5
3939 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3941 else
3942 cat > conftest.$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3946 int main() {
3947 return __MINGW32__;
3948 ; return 0; }
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 rm -rf conftest*
3952 ac_cv_mingw32=yes
3953 else
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 rm -rf conftest*
3957 ac_cv_mingw32=no
3959 rm -f conftest*
3960 rm -f conftest*
3963 echo "$ac_t""$ac_cv_mingw32" 1>&6
3964 MINGW32=
3965 test "$ac_cv_mingw32" = yes && MINGW32=yes
3968 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3969 echo "configure:3970: checking for executable suffix" >&5
3970 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3972 else
3973 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3974 ac_cv_exeext=.exe
3975 else
3976 rm -f conftest*
3977 echo 'int main () { return 0; }' > conftest.$ac_ext
3978 ac_cv_exeext=
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3980 for file in conftest.*; do
3981 case $file in
3982 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
3983 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3984 esac
3985 done
3986 else
3987 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3989 rm -f conftest*
3990 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3994 EXEEXT=""
3995 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3996 echo "$ac_t""${ac_cv_exeext}" 1>&6
3997 ac_exeext=$EXEEXT
4000 trap '' 1 2 15
4001 cat > confcache <<\EOF
4002 # This file is a shell script that caches the results of configure
4003 # tests run on this system so they can be shared between configure
4004 # scripts and configure runs. It is not useful on other systems.
4005 # If it contains results you don't want to keep, you may remove or edit it.
4007 # By default, configure uses ./config.cache as the cache file,
4008 # creating it if it does not exist already. You can give configure
4009 # the --cache-file=FILE option to use a different cache file; that is
4010 # what configure does when it calls configure scripts in
4011 # subdirectories, so they share the cache.
4012 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4013 # config.status only pays attention to the cache file if you give it the
4014 # --recheck option to rerun configure.
4017 # The following way of writing the cache mishandles newlines in values,
4018 # but we know of no workaround that is simple, portable, and efficient.
4019 # So, don't put newlines in cache variables' values.
4020 # Ultrix sh set writes to stderr and can't be redirected directly,
4021 # and sets the high bit in the cache file unless we assign to the vars.
4022 (set) 2>&1 |
4023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4024 *ac_space=\ *)
4025 # `set' does not quote correctly, so add quotes (double-quote substitution
4026 # turns \\\\ into \\, and sed turns \\ into \).
4027 sed -n \
4028 -e "s/'/'\\\\''/g" \
4029 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4032 # `set' quotes correctly as required by POSIX, so do not add quotes.
4033 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4035 esac >> confcache
4036 if cmp -s $cache_file confcache; then
4038 else
4039 if test -w $cache_file; then
4040 echo "updating cache $cache_file"
4041 cat confcache > $cache_file
4042 else
4043 echo "not updating unwritable cache $cache_file"
4046 rm -f confcache
4048 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4051 # Let make expand exec_prefix.
4052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4054 # Any assignment to VPATH causes Sun make to only execute
4055 # the first set of double-colon rules, so remove it if not needed.
4056 # If there is a colon in the path, we need to keep it.
4057 if test "x$srcdir" = x.; then
4058 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4061 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4063 DEFS=-DHAVE_CONFIG_H
4065 # Without the "./", some shells look in PATH for config.status.
4066 : ${CONFIG_STATUS=./config.status}
4068 echo creating $CONFIG_STATUS
4069 rm -f $CONFIG_STATUS
4070 cat > $CONFIG_STATUS <<EOF
4071 #! /bin/sh
4072 # Generated automatically by configure.
4073 # Run this file to recreate the current configuration.
4074 # This directory was configured as follows,
4075 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4077 # $0 $ac_configure_args
4079 # Compiler output produced by configure, useful for debugging
4080 # configure, is in ./config.log if it exists.
4082 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4083 for ac_option
4085 case "\$ac_option" in
4086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4087 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4088 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4089 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4090 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4091 exit 0 ;;
4092 -help | --help | --hel | --he | --h)
4093 echo "\$ac_cs_usage"; exit 0 ;;
4094 *) echo "\$ac_cs_usage"; exit 1 ;;
4095 esac
4096 done
4098 ac_given_srcdir=$srcdir
4099 ac_given_INSTALL="$INSTALL"
4101 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4103 cat >> $CONFIG_STATUS <<EOF
4105 # Protect against being on the right side of a sed subst in config.status.
4106 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4107 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4108 $ac_vpsub
4109 $extrasub
4110 s%@SHELL@%$SHELL%g
4111 s%@CFLAGS@%$CFLAGS%g
4112 s%@CPPFLAGS@%$CPPFLAGS%g
4113 s%@CXXFLAGS@%$CXXFLAGS%g
4114 s%@FFLAGS@%$FFLAGS%g
4115 s%@DEFS@%$DEFS%g
4116 s%@LDFLAGS@%$LDFLAGS%g
4117 s%@LIBS@%$LIBS%g
4118 s%@exec_prefix@%$exec_prefix%g
4119 s%@prefix@%$prefix%g
4120 s%@program_transform_name@%$program_transform_name%g
4121 s%@bindir@%$bindir%g
4122 s%@sbindir@%$sbindir%g
4123 s%@libexecdir@%$libexecdir%g
4124 s%@datadir@%$datadir%g
4125 s%@sysconfdir@%$sysconfdir%g
4126 s%@sharedstatedir@%$sharedstatedir%g
4127 s%@localstatedir@%$localstatedir%g
4128 s%@libdir@%$libdir%g
4129 s%@includedir@%$includedir%g
4130 s%@oldincludedir@%$oldincludedir%g
4131 s%@infodir@%$infodir%g
4132 s%@mandir@%$mandir%g
4133 s%@host@%$host%g
4134 s%@host_alias@%$host_alias%g
4135 s%@host_cpu@%$host_cpu%g
4136 s%@host_vendor@%$host_vendor%g
4137 s%@host_os@%$host_os%g
4138 s%@target@%$target%g
4139 s%@target_alias@%$target_alias%g
4140 s%@target_cpu@%$target_cpu%g
4141 s%@target_vendor@%$target_vendor%g
4142 s%@target_os@%$target_os%g
4143 s%@build@%$build%g
4144 s%@build_alias@%$build_alias%g
4145 s%@build_cpu@%$build_cpu%g
4146 s%@build_vendor@%$build_vendor%g
4147 s%@build_os@%$build_os%g
4148 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4149 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4150 s%@INSTALL_DATA@%$INSTALL_DATA%g
4151 s%@PACKAGE@%$PACKAGE%g
4152 s%@VERSION@%$VERSION%g
4153 s%@ACLOCAL@%$ACLOCAL%g
4154 s%@AUTOCONF@%$AUTOCONF%g
4155 s%@AUTOMAKE@%$AUTOMAKE%g
4156 s%@AUTOHEADER@%$AUTOHEADER%g
4157 s%@MAKEINFO@%$MAKEINFO%g
4158 s%@SET_MAKE@%$SET_MAKE%g
4159 s%@RANLIB@%$RANLIB%g
4160 s%@CC@%$CC%g
4161 s%@LD@%$LD%g
4162 s%@NM@%$NM%g
4163 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
4164 s%@LN_S@%$LN_S%g
4165 s%@DLLTOOL@%$DLLTOOL%g
4166 s%@AS@%$AS%g
4167 s%@LIBTOOL@%$LIBTOOL%g
4168 s%@CPP@%$CPP%g
4169 s%@ALLOCA@%$ALLOCA%g
4170 s%@USE_NLS@%$USE_NLS%g
4171 s%@MSGFMT@%$MSGFMT%g
4172 s%@GMSGFMT@%$GMSGFMT%g
4173 s%@XGETTEXT@%$XGETTEXT%g
4174 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4175 s%@CATALOGS@%$CATALOGS%g
4176 s%@CATOBJEXT@%$CATOBJEXT%g
4177 s%@DATADIRNAME@%$DATADIRNAME%g
4178 s%@GMOFILES@%$GMOFILES%g
4179 s%@INSTOBJEXT@%$INSTOBJEXT%g
4180 s%@INTLDEPS@%$INTLDEPS%g
4181 s%@INTLLIBS@%$INTLLIBS%g
4182 s%@INTLOBJS@%$INTLOBJS%g
4183 s%@POFILES@%$POFILES%g
4184 s%@POSUB@%$POSUB%g
4185 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4186 s%@GT_NO@%$GT_NO%g
4187 s%@GT_YES@%$GT_YES%g
4188 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4189 s%@l@%$l%g
4190 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4191 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4192 s%@MAINT@%$MAINT%g
4193 s%@EXEEXT@%$EXEEXT%g
4195 CEOF
4198 cat >> $CONFIG_STATUS <<\EOF
4200 # Split the substitutions into bite-sized pieces for seds with
4201 # small command number limits, like on Digital OSF/1 and HP-UX.
4202 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4203 ac_file=1 # Number of current file.
4204 ac_beg=1 # First line for current file.
4205 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4206 ac_more_lines=:
4207 ac_sed_cmds=""
4208 while $ac_more_lines; do
4209 if test $ac_beg -gt 1; then
4210 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4211 else
4212 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4214 if test ! -s conftest.s$ac_file; then
4215 ac_more_lines=false
4216 rm -f conftest.s$ac_file
4217 else
4218 if test -z "$ac_sed_cmds"; then
4219 ac_sed_cmds="sed -f conftest.s$ac_file"
4220 else
4221 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4223 ac_file=`expr $ac_file + 1`
4224 ac_beg=$ac_end
4225 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4227 done
4228 if test -z "$ac_sed_cmds"; then
4229 ac_sed_cmds=cat
4233 cat >> $CONFIG_STATUS <<EOF
4235 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4237 cat >> $CONFIG_STATUS <<\EOF
4238 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4239 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4240 case "$ac_file" in
4241 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4242 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4243 *) ac_file_in="${ac_file}.in" ;;
4244 esac
4246 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4248 # Remove last slash and all that follows it. Not all systems have dirname.
4249 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4251 # The file is in a subdirectory.
4252 test ! -d "$ac_dir" && mkdir "$ac_dir"
4253 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4254 # A "../" for each directory in $ac_dir_suffix.
4255 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4256 else
4257 ac_dir_suffix= ac_dots=
4260 case "$ac_given_srcdir" in
4261 .) srcdir=.
4262 if test -z "$ac_dots"; then top_srcdir=.
4263 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4264 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4265 *) # Relative path.
4266 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4267 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4268 esac
4270 case "$ac_given_INSTALL" in
4271 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4272 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4273 esac
4275 echo creating "$ac_file"
4276 rm -f "$ac_file"
4277 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4278 case "$ac_file" in
4279 *Makefile*) ac_comsub="1i\\
4280 # $configure_input" ;;
4281 *) ac_comsub= ;;
4282 esac
4284 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4285 sed -e "$ac_comsub
4286 s%@configure_input@%$configure_input%g
4287 s%@srcdir@%$srcdir%g
4288 s%@top_srcdir@%$top_srcdir%g
4289 s%@INSTALL@%$INSTALL%g
4290 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4291 fi; done
4292 rm -f conftest.s*
4294 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4295 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4297 # ac_d sets the value in "#define NAME VALUE" lines.
4298 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4299 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4300 ac_dC='\3'
4301 ac_dD='%g'
4302 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4303 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4304 ac_uB='\([ ]\)%\1#\2define\3'
4305 ac_uC=' '
4306 ac_uD='\4%g'
4307 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4308 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4309 ac_eB='$%\1#\2define\3'
4310 ac_eC=' '
4311 ac_eD='%g'
4313 if test "${CONFIG_HEADERS+set}" != set; then
4315 cat >> $CONFIG_STATUS <<EOF
4316 CONFIG_HEADERS="gconfig.h:gconfig.in"
4318 cat >> $CONFIG_STATUS <<\EOF
4320 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4322 case "$ac_file" in
4323 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4324 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4325 *) ac_file_in="${ac_file}.in" ;;
4326 esac
4328 echo creating $ac_file
4330 rm -f conftest.frag conftest.in conftest.out
4331 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4332 cat $ac_file_inputs > conftest.in
4336 # Transform confdefs.h into a sed script conftest.vals that substitutes
4337 # the proper values into config.h.in to produce config.h. And first:
4338 # Protect against being on the right side of a sed subst in config.status.
4339 # Protect against being in an unquoted here document in config.status.
4340 rm -f conftest.vals
4341 cat > conftest.hdr <<\EOF
4342 s/[\\&%]/\\&/g
4343 s%[\\$`]%\\&%g
4344 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4345 s%ac_d%ac_u%gp
4346 s%ac_u%ac_e%gp
4348 sed -n -f conftest.hdr confdefs.h > conftest.vals
4349 rm -f conftest.hdr
4351 # This sed command replaces #undef with comments. This is necessary, for
4352 # example, in the case of _POSIX_SOURCE, which is predefined and required
4353 # on some systems where configure will not decide to define it.
4354 cat >> conftest.vals <<\EOF
4355 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4358 # Break up conftest.vals because some shells have a limit on
4359 # the size of here documents, and old seds have small limits too.
4361 rm -f conftest.tail
4362 while :
4364 ac_lines=`grep -c . conftest.vals`
4365 # grep -c gives empty output for an empty file on some AIX systems.
4366 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4367 # Write a limited-size here document to conftest.frag.
4368 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4369 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4370 echo 'CEOF
4371 sed -f conftest.frag conftest.in > conftest.out
4372 rm -f conftest.in
4373 mv conftest.out conftest.in
4374 ' >> $CONFIG_STATUS
4375 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4376 rm -f conftest.vals
4377 mv conftest.tail conftest.vals
4378 done
4379 rm -f conftest.vals
4381 cat >> $CONFIG_STATUS <<\EOF
4382 rm -f conftest.frag conftest.h
4383 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4384 cat conftest.in >> conftest.h
4385 rm -f conftest.in
4386 if cmp -s $ac_file conftest.h 2>/dev/null; then
4387 echo "$ac_file is unchanged"
4388 rm -f conftest.h
4389 else
4390 # Remove last slash and all that follows it. Not all systems have dirname.
4391 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4392 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4393 # The file is in a subdirectory.
4394 test ! -d "$ac_dir" && mkdir "$ac_dir"
4396 rm -f $ac_file
4397 mv conftest.h $ac_file
4399 fi; done
4402 cat >> $CONFIG_STATUS <<EOF
4406 cat >> $CONFIG_STATUS <<\EOF
4407 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4408 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4409 exit 0
4411 chmod +x $CONFIG_STATUS
4412 rm -fr confdefs* $ac_clean_files
4413 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1