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