source: branches/libc-0.6/src/binutils/gprof/configure

Last change on this file was 1853, checked in by bird, 20 years ago

regenerated (intl)

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