source: trunk/third/gdbm/configure @ 15372

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