OSDN Git Service

Improvements to the configure system from Miles Bader (miles@lsi.nec.co.jp).
[uclinux-h8/elf2flt.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15  --with-libbfd=<file>  path to libbfd.a library to use "
16 ac_help="$ac_help
17  --with-libiberty=<file>  path to libiberty.a library to use "
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64   # If the previous option needs an argument, assign it.
65   if test -n "$ac_prev"; then
66     eval "$ac_prev=\$ac_option"
67     ac_prev=
68     continue
69   fi
70
71   case "$ac_option" in
72   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73   *) ac_optarg= ;;
74   esac
75
76   # Accept the important Cygnus configure options, so we can diagnose typos.
77
78   case "$ac_option" in
79
80   -bindir | --bindir | --bindi | --bind | --bin | --bi)
81     ac_prev=bindir ;;
82   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83     bindir="$ac_optarg" ;;
84
85   -build | --build | --buil | --bui | --bu)
86     ac_prev=build ;;
87   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88     build="$ac_optarg" ;;
89
90   -cache-file | --cache-file | --cache-fil | --cache-fi \
91   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92     ac_prev=cache_file ;;
93   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95     cache_file="$ac_optarg" ;;
96
97   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98     ac_prev=datadir ;;
99   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100   | --da=*)
101     datadir="$ac_optarg" ;;
102
103   -disable-* | --disable-*)
104     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105     # Reject names that are not valid shell variable names.
106     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108     fi
109     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110     eval "enable_${ac_feature}=no" ;;
111
112   -enable-* | --enable-*)
113     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114     # Reject names that are not valid shell variable names.
115     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117     fi
118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119     case "$ac_option" in
120       *=*) ;;
121       *) ac_optarg=yes ;;
122     esac
123     eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127   | --exec | --exe | --ex)
128     ac_prev=exec_prefix ;;
129   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131   | --exec=* | --exe=* | --ex=*)
132     exec_prefix="$ac_optarg" ;;
133
134   -gas | --gas | --ga | --g)
135     # Obsolete; use --with-gas.
136     with_gas=yes ;;
137
138   -help | --help | --hel | --he)
139     # Omit some internal or obsolete options to make the list less imposing.
140     # This message is too long to be a string in the A/UX 3.1 sh.
141     cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145   --cache-file=FILE       cache test results in FILE
146   --help                  print this message
147   --no-create             do not create output files
148   --quiet, --silent       do not print \`checking...' messages
149   --version               print the version of autoconf that created configure
150 Directory and file names:
151   --prefix=PREFIX         install architecture-independent files in PREFIX
152                           [$ac_default_prefix]
153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154                           [same as prefix]
155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158   --datadir=DIR           read-only architecture-independent data in DIR
159                           [PREFIX/share]
160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162                           [PREFIX/com]
163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165   --includedir=DIR        C header files in DIR [PREFIX/include]
166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167   --infodir=DIR           info documentation in DIR [PREFIX/info]
168   --mandir=DIR            man documentation in DIR [PREFIX/man]
169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
170   --program-prefix=PREFIX prepend PREFIX to installed program names
171   --program-suffix=SUFFIX append SUFFIX to installed program names
172   --program-transform-name=PROGRAM
173                           run sed PROGRAM on installed program names
174 EOF
175     cat << EOF
176 Host type:
177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
178   --host=HOST             configure for HOST [guessed]
179   --target=TARGET         configure for TARGET [TARGET=HOST]
180 Features and packages:
181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185   --x-includes=DIR        X include files are in DIR
186   --x-libraries=DIR       X library files are in DIR
187 EOF
188     if test -n "$ac_help"; then
189       echo "--enable and --with options recognized:$ac_help"
190     fi
191     exit 0 ;;
192
193   -host | --host | --hos | --ho)
194     ac_prev=host ;;
195   -host=* | --host=* | --hos=* | --ho=*)
196     host="$ac_optarg" ;;
197
198   -includedir | --includedir | --includedi | --included | --include \
199   | --includ | --inclu | --incl | --inc)
200     ac_prev=includedir ;;
201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202   | --includ=* | --inclu=* | --incl=* | --inc=*)
203     includedir="$ac_optarg" ;;
204
205   -infodir | --infodir | --infodi | --infod | --info | --inf)
206     ac_prev=infodir ;;
207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208     infodir="$ac_optarg" ;;
209
210   -libdir | --libdir | --libdi | --libd)
211     ac_prev=libdir ;;
212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
213     libdir="$ac_optarg" ;;
214
215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216   | --libexe | --libex | --libe)
217     ac_prev=libexecdir ;;
218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219   | --libexe=* | --libex=* | --libe=*)
220     libexecdir="$ac_optarg" ;;
221
222   -localstatedir | --localstatedir | --localstatedi | --localstated \
223   | --localstate | --localstat | --localsta | --localst \
224   | --locals | --local | --loca | --loc | --lo)
225     ac_prev=localstatedir ;;
226   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229     localstatedir="$ac_optarg" ;;
230
231   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232     ac_prev=mandir ;;
233   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234     mandir="$ac_optarg" ;;
235
236   -nfp | --nfp | --nf)
237     # Obsolete; use --without-fp.
238     with_fp=no ;;
239
240   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241   | --no-cr | --no-c)
242     no_create=yes ;;
243
244   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246     no_recursion=yes ;;
247
248   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250   | --oldin | --oldi | --old | --ol | --o)
251     ac_prev=oldincludedir ;;
252   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255     oldincludedir="$ac_optarg" ;;
256
257   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258     ac_prev=prefix ;;
259   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260     prefix="$ac_optarg" ;;
261
262   -program-prefix | --program-prefix | --program-prefi | --program-pref \
263   | --program-pre | --program-pr | --program-p)
264     ac_prev=program_prefix ;;
265   -program-prefix=* | --program-prefix=* | --program-prefi=* \
266   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267     program_prefix="$ac_optarg" ;;
268
269   -program-suffix | --program-suffix | --program-suffi | --program-suff \
270   | --program-suf | --program-su | --program-s)
271     ac_prev=program_suffix ;;
272   -program-suffix=* | --program-suffix=* | --program-suffi=* \
273   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274     program_suffix="$ac_optarg" ;;
275
276   -program-transform-name | --program-transform-name \
277   | --program-transform-nam | --program-transform-na \
278   | --program-transform-n | --program-transform- \
279   | --program-transform | --program-transfor \
280   | --program-transfo | --program-transf \
281   | --program-trans | --program-tran \
282   | --progr-tra | --program-tr | --program-t)
283     ac_prev=program_transform_name ;;
284   -program-transform-name=* | --program-transform-name=* \
285   | --program-transform-nam=* | --program-transform-na=* \
286   | --program-transform-n=* | --program-transform-=* \
287   | --program-transform=* | --program-transfor=* \
288   | --program-transfo=* | --program-transf=* \
289   | --program-trans=* | --program-tran=* \
290   | --progr-tra=* | --program-tr=* | --program-t=*)
291     program_transform_name="$ac_optarg" ;;
292
293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294   | -silent | --silent | --silen | --sile | --sil)
295     silent=yes ;;
296
297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298     ac_prev=sbindir ;;
299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300   | --sbi=* | --sb=*)
301     sbindir="$ac_optarg" ;;
302
303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305   | --sharedst | --shareds | --shared | --share | --shar \
306   | --sha | --sh)
307     ac_prev=sharedstatedir ;;
308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311   | --sha=* | --sh=*)
312     sharedstatedir="$ac_optarg" ;;
313
314   -site | --site | --sit)
315     ac_prev=site ;;
316   -site=* | --site=* | --sit=*)
317     site="$ac_optarg" ;;
318
319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320     ac_prev=srcdir ;;
321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322     srcdir="$ac_optarg" ;;
323
324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325   | --syscon | --sysco | --sysc | --sys | --sy)
326     ac_prev=sysconfdir ;;
327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329     sysconfdir="$ac_optarg" ;;
330
331   -target | --target | --targe | --targ | --tar | --ta | --t)
332     ac_prev=target ;;
333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334     target="$ac_optarg" ;;
335
336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
337     verbose=yes ;;
338
339   -version | --version | --versio | --versi | --vers)
340     echo "configure generated by autoconf version 2.13"
341     exit 0 ;;
342
343   -with-* | --with-*)
344     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345     # Reject names that are not valid shell variable names.
346     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348     fi
349     ac_package=`echo $ac_package| sed 's/-/_/g'`
350     case "$ac_option" in
351       *=*) ;;
352       *) ac_optarg=yes ;;
353     esac
354     eval "with_${ac_package}='$ac_optarg'" ;;
355
356   -without-* | --without-*)
357     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358     # Reject names that are not valid shell variable names.
359     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361     fi
362     ac_package=`echo $ac_package| sed 's/-/_/g'`
363     eval "with_${ac_package}=no" ;;
364
365   --x)
366     # Obsolete; use --with-x.
367     with_x=yes ;;
368
369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370   | --x-incl | --x-inc | --x-in | --x-i)
371     ac_prev=x_includes ;;
372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374     x_includes="$ac_optarg" ;;
375
376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378     ac_prev=x_libraries ;;
379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381     x_libraries="$ac_optarg" ;;
382
383   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384     ;;
385
386   *)
387     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388       echo "configure: warning: $ac_option: invalid host type" 1>&2
389     fi
390     if test "x$nonopt" != xNONE; then
391       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392     fi
393     nonopt="$ac_option"
394     ;;
395
396   esac
397 done
398
399 if test -n "$ac_prev"; then
400   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414   exec 6>/dev/null
415 else
416   exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430   case "$ac_arg" in
431   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432   | --no-cr | --no-c) ;;
433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438   esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set.  These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=elf2flt.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462   ac_srcdir_defaulted=yes
463   # Try the directory containing this script, then its parent.
464   ac_prog=$0
465   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467   srcdir=$ac_confdir
468   if test ! -r $srcdir/$ac_unique_file; then
469     srcdir=..
470   fi
471 else
472   ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475   if test "$ac_srcdir_defaulted" = yes; then
476     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477   else
478     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479   fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485   if test "x$prefix" != xNONE; then
486     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487   else
488     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489   fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492   if test -r "$ac_site_file"; then
493     echo "loading site script $ac_site_file"
494     . "$ac_site_file"
495   fi
496 done
497
498 if test -r "$cache_file"; then
499   echo "loading cache $cache_file"
500   . $cache_file
501 else
502   echo "creating cache $cache_file"
503   > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518     ac_n= ac_c='
519 ' ac_t='        '
520   else
521     ac_n=-n ac_c= ac_t=
522   fi
523 else
524   ac_n= ac_c='\c' ac_t=
525 fi
526
527
528
529 # Check whether --with-libbfd or --without-libbfd was given.
530 if test "${with_libbfd+set}" = set; then
531   withval="$with_libbfd"
532    ac_libbfd=$withval 
533 else
534    ac_libbfd=NONE 
535
536 fi
537
538
539 # Check whether --with-libiberty or --without-libiberty was given.
540 if test "${with_libiberty+set}" = set; then
541   withval="$with_libiberty"
542    ac_libiberty=$withval 
543 else
544    ac_libiberty=NONE 
545
546 fi
547
548
549 ac_aux_dir=
550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
551   if test -f $ac_dir/install-sh; then
552     ac_aux_dir=$ac_dir
553     ac_install_sh="$ac_aux_dir/install-sh -c"
554     break
555   elif test -f $ac_dir/install.sh; then
556     ac_aux_dir=$ac_dir
557     ac_install_sh="$ac_aux_dir/install.sh -c"
558     break
559   fi
560 done
561 if test -z "$ac_aux_dir"; then
562   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 fi
564 ac_config_guess=$ac_aux_dir/config.guess
565 ac_config_sub=$ac_aux_dir/config.sub
566 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567
568
569 # Make sure we can run config.sub.
570 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
571 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
572 fi
573
574 echo $ac_n "checking host system type""... $ac_c" 1>&6
575 echo "configure:576: checking host system type" >&5
576
577 host_alias=$host
578 case "$host_alias" in
579 NONE)
580   case $nonopt in
581   NONE)
582     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
583     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
584     fi ;;
585   *) host_alias=$nonopt ;;
586   esac ;;
587 esac
588
589 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
590 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
591 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
592 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
593 echo "$ac_t""$host" 1>&6
594
595 echo $ac_n "checking target system type""... $ac_c" 1>&6
596 echo "configure:597: checking target system type" >&5
597
598 target_alias=$target
599 case "$target_alias" in
600 NONE)
601   case $nonopt in
602   NONE) target_alias=$host_alias ;;
603   *) target_alias=$nonopt ;;
604   esac ;;
605 esac
606
607 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
608 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
609 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
610 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
611 echo "$ac_t""$target" 1>&6
612
613
614 # Extract the first word of "gcc", so it can be a program name with args.
615 set dummy gcc; ac_word=$2
616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617 echo "configure:618: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619   echo $ac_n "(cached) $ac_c" 1>&6
620 else
621   if test -n "$CC"; then
622   ac_cv_prog_CC="$CC" # Let the user override the test.
623 else
624   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
625   ac_dummy="$PATH"
626   for ac_dir in $ac_dummy; do
627     test -z "$ac_dir" && ac_dir=.
628     if test -f $ac_dir/$ac_word; then
629       ac_cv_prog_CC="gcc"
630       break
631     fi
632   done
633   IFS="$ac_save_ifs"
634 fi
635 fi
636 CC="$ac_cv_prog_CC"
637 if test -n "$CC"; then
638   echo "$ac_t""$CC" 1>&6
639 else
640   echo "$ac_t""no" 1>&6
641 fi
642
643 if test -z "$CC"; then
644   # Extract the first word of "cc", so it can be a program name with args.
645 set dummy cc; ac_word=$2
646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647 echo "configure:648: checking for $ac_word" >&5
648 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649   echo $ac_n "(cached) $ac_c" 1>&6
650 else
651   if test -n "$CC"; then
652   ac_cv_prog_CC="$CC" # Let the user override the test.
653 else
654   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
655   ac_prog_rejected=no
656   ac_dummy="$PATH"
657   for ac_dir in $ac_dummy; do
658     test -z "$ac_dir" && ac_dir=.
659     if test -f $ac_dir/$ac_word; then
660       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
661         ac_prog_rejected=yes
662         continue
663       fi
664       ac_cv_prog_CC="cc"
665       break
666     fi
667   done
668   IFS="$ac_save_ifs"
669 if test $ac_prog_rejected = yes; then
670   # We found a bogon in the path, so make sure we never use it.
671   set dummy $ac_cv_prog_CC
672   shift
673   if test $# -gt 0; then
674     # We chose a different compiler from the bogus one.
675     # However, it has the same basename, so the bogon will be chosen
676     # first if we set CC to just the basename; use the full file name.
677     shift
678     set dummy "$ac_dir/$ac_word" "$@"
679     shift
680     ac_cv_prog_CC="$@"
681   fi
682 fi
683 fi
684 fi
685 CC="$ac_cv_prog_CC"
686 if test -n "$CC"; then
687   echo "$ac_t""$CC" 1>&6
688 else
689   echo "$ac_t""no" 1>&6
690 fi
691
692   if test -z "$CC"; then
693     case "`uname -s`" in
694     *win32* | *WIN32*)
695       # Extract the first word of "cl", so it can be a program name with args.
696 set dummy cl; ac_word=$2
697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
698 echo "configure:699: checking for $ac_word" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
700   echo $ac_n "(cached) $ac_c" 1>&6
701 else
702   if test -n "$CC"; then
703   ac_cv_prog_CC="$CC" # Let the user override the test.
704 else
705   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
706   ac_dummy="$PATH"
707   for ac_dir in $ac_dummy; do
708     test -z "$ac_dir" && ac_dir=.
709     if test -f $ac_dir/$ac_word; then
710       ac_cv_prog_CC="cl"
711       break
712     fi
713   done
714   IFS="$ac_save_ifs"
715 fi
716 fi
717 CC="$ac_cv_prog_CC"
718 if test -n "$CC"; then
719   echo "$ac_t""$CC" 1>&6
720 else
721   echo "$ac_t""no" 1>&6
722 fi
723  ;;
724     esac
725   fi
726   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
727 fi
728
729 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
730 echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
731
732 ac_ext=c
733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
734 ac_cpp='$CPP $CPPFLAGS'
735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
737 cross_compiling=$ac_cv_prog_cc_cross
738
739 cat > conftest.$ac_ext << EOF
740
741 #line 742 "configure"
742 #include "confdefs.h"
743
744 main(){return(0);}
745 EOF
746 if { (eval echo configure:747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
747   ac_cv_prog_cc_works=yes
748   # If we can't run a trivial program, we are probably using a cross compiler.
749   if (./conftest; exit) 2>/dev/null; then
750     ac_cv_prog_cc_cross=no
751   else
752     ac_cv_prog_cc_cross=yes
753   fi
754 else
755   echo "configure: failed program was:" >&5
756   cat conftest.$ac_ext >&5
757   ac_cv_prog_cc_works=no
758 fi
759 rm -fr conftest*
760 ac_ext=c
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp='$CPP $CPPFLAGS'
763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling=$ac_cv_prog_cc_cross
766
767 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
768 if test $ac_cv_prog_cc_works = no; then
769   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 fi
771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
772 echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
773 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
774 cross_compiling=$ac_cv_prog_cc_cross
775
776 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
777 echo "configure:778: checking whether we are using GNU C" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
779   echo $ac_n "(cached) $ac_c" 1>&6
780 else
781   cat > conftest.c <<EOF
782 #ifdef __GNUC__
783   yes;
784 #endif
785 EOF
786 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
787   ac_cv_prog_gcc=yes
788 else
789   ac_cv_prog_gcc=no
790 fi
791 fi
792
793 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794
795 if test $ac_cv_prog_gcc = yes; then
796   GCC=yes
797 else
798   GCC=
799 fi
800
801 ac_test_CFLAGS="${CFLAGS+set}"
802 ac_save_CFLAGS="$CFLAGS"
803 CFLAGS=
804 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
805 echo "configure:806: checking whether ${CC-cc} accepts -g" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
807   echo $ac_n "(cached) $ac_c" 1>&6
808 else
809   echo 'void f(){}' > conftest.c
810 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
811   ac_cv_prog_cc_g=yes
812 else
813   ac_cv_prog_cc_g=no
814 fi
815 rm -f conftest*
816
817 fi
818
819 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
820 if test "$ac_test_CFLAGS" = set; then
821   CFLAGS="$ac_save_CFLAGS"
822 elif test $ac_cv_prog_cc_g = yes; then
823   if test "$GCC" = yes; then
824     CFLAGS="-g -O2"
825   else
826     CFLAGS="-g"
827   fi
828 else
829   if test "$GCC" = yes; then
830     CFLAGS="-O2"
831   else
832     CFLAGS=
833   fi
834 fi
835
836 # Find a good install program.  We prefer a C program (faster),
837 # so one script is as good as another.  But avoid the broken or
838 # incompatible versions:
839 # SysV /etc/install, /usr/sbin/install
840 # SunOS /usr/etc/install
841 # IRIX /sbin/install
842 # AIX /bin/install
843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
846 # ./install, which can be erroneously created by make from ./install.sh.
847 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
848 echo "configure:849: checking for a BSD compatible install" >&5
849 if test -z "$INSTALL"; then
850 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
851   echo $ac_n "(cached) $ac_c" 1>&6
852 else
853     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
854   for ac_dir in $PATH; do
855     # Account for people who put trailing slashes in PATH elements.
856     case "$ac_dir/" in
857     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858     *)
859       # OSF1 and SCO ODT 3.0 have their own names for install.
860       # Don't use installbsd from OSF since it installs stuff as root
861       # by default.
862       for ac_prog in ginstall scoinst install; do
863         if test -f $ac_dir/$ac_prog; then
864           if test $ac_prog = install &&
865             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
866             # AIX install.  It has an incompatible calling convention.
867             :
868           else
869             ac_cv_path_install="$ac_dir/$ac_prog -c"
870             break 2
871           fi
872         fi
873       done
874       ;;
875     esac
876   done
877   IFS="$ac_save_IFS"
878
879 fi
880   if test "${ac_cv_path_install+set}" = set; then
881     INSTALL="$ac_cv_path_install"
882   else
883     # As a last resort, use the slow shell script.  We don't cache a
884     # path for INSTALL within a source directory, because that will
885     # break other packages using the cache if that directory is
886     # removed, or if the path is relative.
887     INSTALL="$ac_install_sh"
888   fi
889 fi
890 echo "$ac_t""$INSTALL" 1>&6
891
892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
893 # It thinks the first close brace ends the variable substitution.
894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895
896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
897
898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899
900
901 if test "$ac_libiberty" = "NONE"; then
902   echo $ac_n "checking for objalloc_create in -liberty""... $ac_c" 1>&6
903 echo "configure:904: checking for objalloc_create in -liberty" >&5
904 ac_lib_var=`echo iberty'_'objalloc_create | sed 'y%./+-%__p_%'`
905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
906   echo $ac_n "(cached) $ac_c" 1>&6
907 else
908   ac_save_LIBS="$LIBS"
909 LIBS="-liberty  $LIBS"
910 cat > conftest.$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
913 /* Override any gcc2 internal prototype to avoid an error.  */
914 /* We use char because int might match the return type of a gcc2
915     builtin and then its argument prototype would still apply.  */
916 char objalloc_create();
917
918 int main() {
919 objalloc_create()
920 ; return 0; }
921 EOF
922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
923   rm -rf conftest*
924   eval "ac_cv_lib_$ac_lib_var=yes"
925 else
926   echo "configure: failed program was:" >&5
927   cat conftest.$ac_ext >&5
928   rm -rf conftest*
929   eval "ac_cv_lib_$ac_lib_var=no"
930 fi
931 rm -f conftest*
932 LIBS="$ac_save_LIBS"
933
934 fi
935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
936   echo "$ac_t""yes" 1>&6
937     ac_tr_lib=HAVE_LIB`echo iberty | sed -e 's/[^a-zA-Z0-9_]/_/g' \
938     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
939   cat >> confdefs.h <<EOF
940 #define $ac_tr_lib 1
941 EOF
942
943   LIBS="-liberty $LIBS"
944
945 else
946   echo "$ac_t""no" 1>&6
947 fi
948
949   ac_libiberty=auto
950 else
951   LIBS="$ac_libiberty $LIBS"
952 fi
953 if test "$ac_libbfd" = "NONE"; then
954   echo $ac_n "checking for bfd_openr in -lbfd""... $ac_c" 1>&6
955 echo "configure:956: checking for bfd_openr in -lbfd" >&5
956 ac_lib_var=`echo bfd'_'bfd_openr | sed 'y%./+-%__p_%'`
957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
958   echo $ac_n "(cached) $ac_c" 1>&6
959 else
960   ac_save_LIBS="$LIBS"
961 LIBS="-lbfd  $LIBS"
962 cat > conftest.$ac_ext <<EOF
963 #line 964 "configure"
964 #include "confdefs.h"
965 /* Override any gcc2 internal prototype to avoid an error.  */
966 /* We use char because int might match the return type of a gcc2
967     builtin and then its argument prototype would still apply.  */
968 char bfd_openr();
969
970 int main() {
971 bfd_openr()
972 ; return 0; }
973 EOF
974 if { (eval echo configure:975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
975   rm -rf conftest*
976   eval "ac_cv_lib_$ac_lib_var=yes"
977 else
978   echo "configure: failed program was:" >&5
979   cat conftest.$ac_ext >&5
980   rm -rf conftest*
981   eval "ac_cv_lib_$ac_lib_var=no"
982 fi
983 rm -f conftest*
984 LIBS="$ac_save_LIBS"
985
986 fi
987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
988   echo "$ac_t""yes" 1>&6
989     ac_tr_lib=HAVE_LIB`echo bfd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
990     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
991   cat >> confdefs.h <<EOF
992 #define $ac_tr_lib 1
993 EOF
994
995   LIBS="-lbfd $LIBS"
996
997 else
998   echo "$ac_t""no" 1>&6
999 fi
1000
1001   ac_libbfd=auto
1002 else
1003   LIBS="$ac_libbfd $LIBS"
1004 fi
1005
1006 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
1007         echo
1008         echo "You need to specify the location of the libfd.a and libiberty.a"
1009         echo "host libraries from the binutils package."
1010         echo
1011         echo "Run configure again specifying these options:"
1012         echo
1013         echo "  ./configure --target=<ARCH> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
1014         echo
1015         exit 1
1016 fi
1017
1018 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1019 echo "configure:1020: checking how to run the C preprocessor" >&5
1020 # On Suns, sometimes $CPP names a directory.
1021 if test -n "$CPP" && test -d "$CPP"; then
1022   CPP=
1023 fi
1024 if test -z "$CPP"; then
1025 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1026   echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028     # This must be in double quotes, not single quotes, because CPP may get
1029   # substituted into the Makefile and "${CC-cc}" will confuse make.
1030   CPP="${CC-cc} -E"
1031   # On the NeXT, cc -E runs the code through the compiler's parser,
1032   # not just through cpp.
1033   cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1036 #include <assert.h>
1037 Syntax Error
1038 EOF
1039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1043   :
1044 else
1045   echo "$ac_err" >&5
1046   echo "configure: failed program was:" >&5
1047   cat conftest.$ac_ext >&5
1048   rm -rf conftest*
1049   CPP="${CC-cc} -E -traditional-cpp"
1050   cat > conftest.$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1053 #include <assert.h>
1054 Syntax Error
1055 EOF
1056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1057 { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059 if test -z "$ac_err"; then
1060   :
1061 else
1062   echo "$ac_err" >&5
1063   echo "configure: failed program was:" >&5
1064   cat conftest.$ac_ext >&5
1065   rm -rf conftest*
1066   CPP="${CC-cc} -nologo -E"
1067   cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070 #include <assert.h>
1071 Syntax Error
1072 EOF
1073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074 { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076 if test -z "$ac_err"; then
1077   :
1078 else
1079   echo "$ac_err" >&5
1080   echo "configure: failed program was:" >&5
1081   cat conftest.$ac_ext >&5
1082   rm -rf conftest*
1083   CPP=/lib/cpp
1084 fi
1085 rm -f conftest*
1086 fi
1087 rm -f conftest*
1088 fi
1089 rm -f conftest*
1090   ac_cv_prog_CPP="$CPP"
1091 fi
1092   CPP="$ac_cv_prog_CPP"
1093 else
1094   ac_cv_prog_CPP="$CPP"
1095 fi
1096 echo "$ac_t""$CPP" 1>&6
1097
1098 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1099 echo "configure:1100: checking for ANSI C header files" >&5
1100 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1101   echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103   cat > conftest.$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1106 #include <stdlib.h>
1107 #include <stdarg.h>
1108 #include <string.h>
1109 #include <float.h>
1110 EOF
1111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1112 { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1114 if test -z "$ac_err"; then
1115   rm -rf conftest*
1116   ac_cv_header_stdc=yes
1117 else
1118   echo "$ac_err" >&5
1119   echo "configure: failed program was:" >&5
1120   cat conftest.$ac_ext >&5
1121   rm -rf conftest*
1122   ac_cv_header_stdc=no
1123 fi
1124 rm -f conftest*
1125
1126 if test $ac_cv_header_stdc = yes; then
1127   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1131 #include <string.h>
1132 EOF
1133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1134   egrep "memchr" >/dev/null 2>&1; then
1135   :
1136 else
1137   rm -rf conftest*
1138   ac_cv_header_stdc=no
1139 fi
1140 rm -f conftest*
1141
1142 fi
1143
1144 if test $ac_cv_header_stdc = yes; then
1145   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 #include <stdlib.h>
1150 EOF
1151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1152   egrep "free" >/dev/null 2>&1; then
1153   :
1154 else
1155   rm -rf conftest*
1156   ac_cv_header_stdc=no
1157 fi
1158 rm -f conftest*
1159
1160 fi
1161
1162 if test $ac_cv_header_stdc = yes; then
1163   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1164 if test "$cross_compiling" = yes; then
1165   :
1166 else
1167   cat > conftest.$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1170 #include <ctype.h>
1171 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1172 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1174 int main () { int i; for (i = 0; i < 256; i++)
1175 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1176 exit (0); }
1177
1178 EOF
1179 if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1180 then
1181   :
1182 else
1183   echo "configure: failed program was:" >&5
1184   cat conftest.$ac_ext >&5
1185   rm -fr conftest*
1186   ac_cv_header_stdc=no
1187 fi
1188 rm -fr conftest*
1189 fi
1190
1191 fi
1192 fi
1193
1194 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1195 if test $ac_cv_header_stdc = yes; then
1196   cat >> confdefs.h <<\EOF
1197 #define STDC_HEADERS 1
1198 EOF
1199
1200 fi
1201
1202 for ac_hdr in fcntl.h unistd.h
1203 do
1204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_hdr" >&5
1207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1213 #include <$ac_hdr>
1214 EOF
1215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216 { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1218 if test -z "$ac_err"; then
1219   rm -rf conftest*
1220   eval "ac_cv_header_$ac_safe=yes"
1221 else
1222   echo "$ac_err" >&5
1223   echo "configure: failed program was:" >&5
1224   cat conftest.$ac_ext >&5
1225   rm -rf conftest*
1226   eval "ac_cv_header_$ac_safe=no"
1227 fi
1228 rm -f conftest*
1229 fi
1230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1231   echo "$ac_t""yes" 1>&6
1232     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1233   cat >> confdefs.h <<EOF
1234 #define $ac_tr_hdr 1
1235 EOF
1236  
1237 else
1238   echo "$ac_t""no" 1>&6
1239 fi
1240 done
1241
1242
1243 echo $ac_n "checking for working const""... $ac_c" 1>&6
1244 echo "configure:1245: checking for working const" >&5
1245 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1246   echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248   cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1251
1252 int main() {
1253
1254 /* Ultrix mips cc rejects this.  */
1255 typedef int charset[2]; const charset x;
1256 /* SunOS 4.1.1 cc rejects this.  */
1257 char const *const *ccp;
1258 char **p;
1259 /* NEC SVR4.0.2 mips cc rejects this.  */
1260 struct point {int x, y;};
1261 static struct point const zero = {0,0};
1262 /* AIX XL C 1.02.0.0 rejects this.
1263    It does not let you subtract one const X* pointer from another in an arm
1264    of an if-expression whose if-part is not a constant expression */
1265 const char *g = "string";
1266 ccp = &g + (g ? g-g : 0);
1267 /* HPUX 7.0 cc rejects these. */
1268 ++ccp;
1269 p = (char**) ccp;
1270 ccp = (char const *const *) p;
1271 { /* SCO 3.2v4 cc rejects this.  */
1272   char *t;
1273   char const *s = 0 ? (char *) 0 : (char const *) 0;
1274
1275   *t++ = 0;
1276 }
1277 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1278   int x[] = {25, 17};
1279   const int *foo = &x[0];
1280   ++foo;
1281 }
1282 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1283   typedef const int *iptr;
1284   iptr p = 0;
1285   ++p;
1286 }
1287 { /* AIX XL C 1.02.0.0 rejects this saying
1288      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1289   struct s { int j; const int *ap[3]; };
1290   struct s *b; b->j = 5;
1291 }
1292 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1293   const int foo = 10;
1294 }
1295
1296 ; return 0; }
1297 EOF
1298 if { (eval echo configure:1299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1299   rm -rf conftest*
1300   ac_cv_c_const=yes
1301 else
1302   echo "configure: failed program was:" >&5
1303   cat conftest.$ac_ext >&5
1304   rm -rf conftest*
1305   ac_cv_c_const=no
1306 fi
1307 rm -f conftest*
1308 fi
1309
1310 echo "$ac_t""$ac_cv_c_const" 1>&6
1311 if test $ac_cv_c_const = no; then
1312   cat >> confdefs.h <<\EOF
1313 #define const 
1314 EOF
1315
1316 fi
1317
1318
1319 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1320 echo "configure:1321: checking for vprintf" >&5
1321 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1322   echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324   cat > conftest.$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1327 /* System header to define __stub macros and hopefully few prototypes,
1328     which can conflict with char vprintf(); below.  */
1329 #include <assert.h>
1330 /* Override any gcc2 internal prototype to avoid an error.  */
1331 /* We use char because int might match the return type of a gcc2
1332     builtin and then its argument prototype would still apply.  */
1333 char vprintf();
1334
1335 int main() {
1336
1337 /* The GNU C library defines this for functions which it implements
1338     to always fail with ENOSYS.  Some functions are actually named
1339     something starting with __ and the normal name is an alias.  */
1340 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1341 choke me
1342 #else
1343 vprintf();
1344 #endif
1345
1346 ; return 0; }
1347 EOF
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349   rm -rf conftest*
1350   eval "ac_cv_func_vprintf=yes"
1351 else
1352   echo "configure: failed program was:" >&5
1353   cat conftest.$ac_ext >&5
1354   rm -rf conftest*
1355   eval "ac_cv_func_vprintf=no"
1356 fi
1357 rm -f conftest*
1358 fi
1359
1360 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1361   echo "$ac_t""yes" 1>&6
1362   cat >> confdefs.h <<\EOF
1363 #define HAVE_VPRINTF 1
1364 EOF
1365
1366 else
1367   echo "$ac_t""no" 1>&6
1368 fi
1369
1370 if test "$ac_cv_func_vprintf" != yes; then
1371 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1372 echo "configure:1373: checking for _doprnt" >&5
1373 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1374   echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376   cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 /* System header to define __stub macros and hopefully few prototypes,
1380     which can conflict with char _doprnt(); below.  */
1381 #include <assert.h>
1382 /* Override any gcc2 internal prototype to avoid an error.  */
1383 /* We use char because int might match the return type of a gcc2
1384     builtin and then its argument prototype would still apply.  */
1385 char _doprnt();
1386
1387 int main() {
1388
1389 /* The GNU C library defines this for functions which it implements
1390     to always fail with ENOSYS.  Some functions are actually named
1391     something starting with __ and the normal name is an alias.  */
1392 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1393 choke me
1394 #else
1395 _doprnt();
1396 #endif
1397
1398 ; return 0; }
1399 EOF
1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1401   rm -rf conftest*
1402   eval "ac_cv_func__doprnt=yes"
1403 else
1404   echo "configure: failed program was:" >&5
1405   cat conftest.$ac_ext >&5
1406   rm -rf conftest*
1407   eval "ac_cv_func__doprnt=no"
1408 fi
1409 rm -f conftest*
1410 fi
1411
1412 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1413   echo "$ac_t""yes" 1>&6
1414   cat >> confdefs.h <<\EOF
1415 #define HAVE_DOPRNT 1
1416 EOF
1417
1418 else
1419   echo "$ac_t""no" 1>&6
1420 fi
1421
1422 fi
1423
1424
1425
1426
1427
1428
1429
1430
1431 trap '' 1 2 15
1432 cat > confcache <<\EOF
1433 # This file is a shell script that caches the results of configure
1434 # tests run on this system so they can be shared between configure
1435 # scripts and configure runs.  It is not useful on other systems.
1436 # If it contains results you don't want to keep, you may remove or edit it.
1437 #
1438 # By default, configure uses ./config.cache as the cache file,
1439 # creating it if it does not exist already.  You can give configure
1440 # the --cache-file=FILE option to use a different cache file; that is
1441 # what configure does when it calls configure scripts in
1442 # subdirectories, so they share the cache.
1443 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1444 # config.status only pays attention to the cache file if you give it the
1445 # --recheck option to rerun configure.
1446 #
1447 EOF
1448 # The following way of writing the cache mishandles newlines in values,
1449 # but we know of no workaround that is simple, portable, and efficient.
1450 # So, don't put newlines in cache variables' values.
1451 # Ultrix sh set writes to stderr and can't be redirected directly,
1452 # and sets the high bit in the cache file unless we assign to the vars.
1453 (set) 2>&1 |
1454   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1455   *ac_space=\ *)
1456     # `set' does not quote correctly, so add quotes (double-quote substitution
1457     # turns \\\\ into \\, and sed turns \\ into \).
1458     sed -n \
1459       -e "s/'/'\\\\''/g" \
1460       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1461     ;;
1462   *)
1463     # `set' quotes correctly as required by POSIX, so do not add quotes.
1464     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1465     ;;
1466   esac >> confcache
1467 if cmp -s $cache_file confcache; then
1468   :
1469 else
1470   if test -w $cache_file; then
1471     echo "updating cache $cache_file"
1472     cat confcache > $cache_file
1473   else
1474     echo "not updating unwritable cache $cache_file"
1475   fi
1476 fi
1477 rm -f confcache
1478
1479 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1480
1481 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1482 # Let make expand exec_prefix.
1483 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1484
1485 # Any assignment to VPATH causes Sun make to only execute
1486 # the first set of double-colon rules, so remove it if not needed.
1487 # If there is a colon in the path, we need to keep it.
1488 if test "x$srcdir" = x.; then
1489   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1490 fi
1491
1492 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1493
1494 # Transform confdefs.h into DEFS.
1495 # Protect against shell expansion while executing Makefile rules.
1496 # Protect against Makefile macro expansion.
1497 cat > conftest.defs <<\EOF
1498 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1499 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1500 s%\[%\\&%g
1501 s%\]%\\&%g
1502 s%\$%$$%g
1503 EOF
1504 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1505 rm -f conftest.defs
1506
1507
1508 # Without the "./", some shells look in PATH for config.status.
1509 : ${CONFIG_STATUS=./config.status}
1510
1511 echo creating $CONFIG_STATUS
1512 rm -f $CONFIG_STATUS
1513 cat > $CONFIG_STATUS <<EOF
1514 #! /bin/sh
1515 # Generated automatically by configure.
1516 # Run this file to recreate the current configuration.
1517 # This directory was configured as follows,
1518 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1519 #
1520 # $0 $ac_configure_args
1521 #
1522 # Compiler output produced by configure, useful for debugging
1523 # configure, is in ./config.log if it exists.
1524
1525 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1526 for ac_option
1527 do
1528   case "\$ac_option" in
1529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1530     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1531     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1532   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1533     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1534     exit 0 ;;
1535   -help | --help | --hel | --he | --h)
1536     echo "\$ac_cs_usage"; exit 0 ;;
1537   *) echo "\$ac_cs_usage"; exit 1 ;;
1538   esac
1539 done
1540
1541 ac_given_srcdir=$srcdir
1542 ac_given_INSTALL="$INSTALL"
1543
1544 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1545 EOF
1546 cat >> $CONFIG_STATUS <<EOF
1547
1548 # Protect against being on the right side of a sed subst in config.status.
1549 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1550  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1551 $ac_vpsub
1552 $extrasub
1553 s%@SHELL@%$SHELL%g
1554 s%@CFLAGS@%$CFLAGS%g
1555 s%@CPPFLAGS@%$CPPFLAGS%g
1556 s%@CXXFLAGS@%$CXXFLAGS%g
1557 s%@FFLAGS@%$FFLAGS%g
1558 s%@DEFS@%$DEFS%g
1559 s%@LDFLAGS@%$LDFLAGS%g
1560 s%@LIBS@%$LIBS%g
1561 s%@exec_prefix@%$exec_prefix%g
1562 s%@prefix@%$prefix%g
1563 s%@program_transform_name@%$program_transform_name%g
1564 s%@bindir@%$bindir%g
1565 s%@sbindir@%$sbindir%g
1566 s%@libexecdir@%$libexecdir%g
1567 s%@datadir@%$datadir%g
1568 s%@sysconfdir@%$sysconfdir%g
1569 s%@sharedstatedir@%$sharedstatedir%g
1570 s%@localstatedir@%$localstatedir%g
1571 s%@libdir@%$libdir%g
1572 s%@includedir@%$includedir%g
1573 s%@oldincludedir@%$oldincludedir%g
1574 s%@infodir@%$infodir%g
1575 s%@mandir@%$mandir%g
1576 s%@host@%$host%g
1577 s%@host_alias@%$host_alias%g
1578 s%@host_cpu@%$host_cpu%g
1579 s%@host_vendor@%$host_vendor%g
1580 s%@host_os@%$host_os%g
1581 s%@target@%$target%g
1582 s%@target_alias@%$target_alias%g
1583 s%@target_cpu@%$target_cpu%g
1584 s%@target_vendor@%$target_vendor%g
1585 s%@target_os@%$target_os%g
1586 s%@CC@%$CC%g
1587 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1588 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1589 s%@INSTALL_DATA@%$INSTALL_DATA%g
1590 s%@CPP@%$CPP%g
1591
1592 CEOF
1593 EOF
1594
1595 cat >> $CONFIG_STATUS <<\EOF
1596
1597 # Split the substitutions into bite-sized pieces for seds with
1598 # small command number limits, like on Digital OSF/1 and HP-UX.
1599 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1600 ac_file=1 # Number of current file.
1601 ac_beg=1 # First line for current file.
1602 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1603 ac_more_lines=:
1604 ac_sed_cmds=""
1605 while $ac_more_lines; do
1606   if test $ac_beg -gt 1; then
1607     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1608   else
1609     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1610   fi
1611   if test ! -s conftest.s$ac_file; then
1612     ac_more_lines=false
1613     rm -f conftest.s$ac_file
1614   else
1615     if test -z "$ac_sed_cmds"; then
1616       ac_sed_cmds="sed -f conftest.s$ac_file"
1617     else
1618       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1619     fi
1620     ac_file=`expr $ac_file + 1`
1621     ac_beg=$ac_end
1622     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1623   fi
1624 done
1625 if test -z "$ac_sed_cmds"; then
1626   ac_sed_cmds=cat
1627 fi
1628 EOF
1629
1630 cat >> $CONFIG_STATUS <<EOF
1631
1632 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1633 EOF
1634 cat >> $CONFIG_STATUS <<\EOF
1635 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1636   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1637   case "$ac_file" in
1638   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1639        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1640   *) ac_file_in="${ac_file}.in" ;;
1641   esac
1642
1643   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1644
1645   # Remove last slash and all that follows it.  Not all systems have dirname.
1646   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1647   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1648     # The file is in a subdirectory.
1649     test ! -d "$ac_dir" && mkdir "$ac_dir"
1650     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1651     # A "../" for each directory in $ac_dir_suffix.
1652     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1653   else
1654     ac_dir_suffix= ac_dots=
1655   fi
1656
1657   case "$ac_given_srcdir" in
1658   .)  srcdir=.
1659       if test -z "$ac_dots"; then top_srcdir=.
1660       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1661   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1662   *) # Relative path.
1663     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1664     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1665   esac
1666
1667   case "$ac_given_INSTALL" in
1668   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1669   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1670   esac
1671
1672   echo creating "$ac_file"
1673   rm -f "$ac_file"
1674   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1675   case "$ac_file" in
1676   *Makefile*) ac_comsub="1i\\
1677 # $configure_input" ;;
1678   *) ac_comsub= ;;
1679   esac
1680
1681   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1682   sed -e "$ac_comsub
1683 s%@configure_input@%$configure_input%g
1684 s%@srcdir@%$srcdir%g
1685 s%@top_srcdir@%$top_srcdir%g
1686 s%@INSTALL@%$INSTALL%g
1687 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1688 fi; done
1689 rm -f conftest.s*
1690
1691 EOF
1692 cat >> $CONFIG_STATUS <<EOF
1693
1694 EOF
1695 cat >> $CONFIG_STATUS <<\EOF
1696
1697 exit 0
1698 EOF
1699 chmod +x $CONFIG_STATUS
1700 rm -fr confdefs* $ac_clean_files
1701 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1702
1703