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