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