42ba4bc76f1506e22acab81447fc1c99677e1291
[freeradius.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-shared[=PKGS]  build shared libraries [default=yes]"
16 ac_help="$ac_help
17   --enable-static[=PKGS]  build static libraries [default=yes]"
18 ac_help="$ac_help
19   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23   --disable-libtool-lock  avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25   --enable-strict-dependencies  Fail configure on lack of module dependancy."
26 ac_help="$ac_help
27   --with-FOO-include-dir=DIR   Dir for includes for FOO, module dependancy."
28 ac_help="$ac_help
29   --with-FOO-lib-dir=DIR  Dir for libraries for FOO, module dependancy."
30 ac_help="$ac_help
31   --with-logdir=DIR       Directory for logfiles [LOCALSTATEDIR/log/radius] "
32 ac_help="$ac_help
33   --with-radacctdir=PATH  Directory for detail files [LOGDIR/radacct] "
34 ac_help="$ac_help
35   --with-raddbdir=DIR     Directory for config files [SYSCONFDIR/raddb] "
36 ac_help="$ac_help
37   --with-dict-nocase      Make dictionary case-independant (default=yes)"
38 ac_help="$ac_help
39   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)"
40 ac_help="$ac_help
41   --with-threads          Use threads, if available.  (default=yes) "
42 ac_help="$ac_help
43   --with-snmp             Compile in SNMP support. (default=yes)"
44 ac_help="$ac_help
45   --disable-ltdl-install  do not install libltdl"
46 ac_help="$ac_help
47   --with-static-modules=QUOTED-MODULE-LIST"
48 ac_help="$ac_help
49   --enable-developer      Turns on flags of interest to developers."
50 ac_help="$ac_help
51   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO"
52 ac_help="$ac_help
53   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO"
54
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
58 build=NONE
59 cache_file=./config.cache
60 exec_prefix=NONE
61 host=NONE
62 no_create=
63 nonopt=NONE
64 no_recursion=
65 prefix=NONE
66 program_prefix=NONE
67 program_suffix=NONE
68 program_transform_name=s,x,x,
69 silent=
70 site=
71 srcdir=
72 target=NONE
73 verbose=
74 x_includes=NONE
75 x_libraries=NONE
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
88
89 # Initialize some other variables.
90 subdirs=
91 MFLAGS= MAKEFLAGS=
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
94 ac_max_here_lines=12
95
96 ac_prev=
97 for ac_option
98 do
99
100   # If the previous option needs an argument, assign it.
101   if test -n "$ac_prev"; then
102     eval "$ac_prev=\$ac_option"
103     ac_prev=
104     continue
105   fi
106
107   case "$ac_option" in
108   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109   *) ac_optarg= ;;
110   esac
111
112   # Accept the important Cygnus configure options, so we can diagnose typos.
113
114   case "$ac_option" in
115
116   -bindir | --bindir | --bindi | --bind | --bin | --bi)
117     ac_prev=bindir ;;
118   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119     bindir="$ac_optarg" ;;
120
121   -build | --build | --buil | --bui | --bu)
122     ac_prev=build ;;
123   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124     build="$ac_optarg" ;;
125
126   -cache-file | --cache-file | --cache-fil | --cache-fi \
127   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128     ac_prev=cache_file ;;
129   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131     cache_file="$ac_optarg" ;;
132
133   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134     ac_prev=datadir ;;
135   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136   | --da=*)
137     datadir="$ac_optarg" ;;
138
139   -disable-* | --disable-*)
140     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141     # Reject names that are not valid shell variable names.
142     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144     fi
145     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146     eval "enable_${ac_feature}=no" ;;
147
148   -enable-* | --enable-*)
149     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150     # Reject names that are not valid shell variable names.
151     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153     fi
154     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155     case "$ac_option" in
156       *=*) ;;
157       *) ac_optarg=yes ;;
158     esac
159     eval "enable_${ac_feature}='$ac_optarg'" ;;
160
161   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163   | --exec | --exe | --ex)
164     ac_prev=exec_prefix ;;
165   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167   | --exec=* | --exe=* | --ex=*)
168     exec_prefix="$ac_optarg" ;;
169
170   -gas | --gas | --ga | --g)
171     # Obsolete; use --with-gas.
172     with_gas=yes ;;
173
174   -help | --help | --hel | --he)
175     # Omit some internal or obsolete options to make the list less imposing.
176     # This message is too long to be a string in the A/UX 3.1 sh.
177     cat << EOF
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
180 Configuration:
181   --cache-file=FILE       cache test results in FILE
182   --help                  print this message
183   --no-create             do not create output files
184   --quiet, --silent       do not print \`checking...' messages
185   --version               print the version of autoconf that created configure
186 Directory and file names:
187   --prefix=PREFIX         install architecture-independent files in PREFIX
188                           [$ac_default_prefix]
189   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
190                           [same as prefix]
191   --bindir=DIR            user executables in DIR [EPREFIX/bin]
192   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
193   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
194   --datadir=DIR           read-only architecture-independent data in DIR
195                           [PREFIX/share]
196   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
197   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
198                           [PREFIX/com]
199   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
200   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
201   --includedir=DIR        C header files in DIR [PREFIX/include]
202   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
203   --infodir=DIR           info documentation in DIR [PREFIX/info]
204   --mandir=DIR            man documentation in DIR [PREFIX/man]
205   --srcdir=DIR            find the sources in DIR [configure dir or ..]
206   --program-prefix=PREFIX prepend PREFIX to installed program names
207   --program-suffix=SUFFIX append SUFFIX to installed program names
208   --program-transform-name=PROGRAM
209                           run sed PROGRAM on installed program names
210 EOF
211     cat << EOF
212 Host type:
213   --build=BUILD           configure for building on BUILD [BUILD=HOST]
214   --host=HOST             configure for HOST [guessed]
215   --target=TARGET         configure for TARGET [TARGET=HOST]
216 Features and packages:
217   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
218   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
219   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
220   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
221   --x-includes=DIR        X include files are in DIR
222   --x-libraries=DIR       X library files are in DIR
223 EOF
224     if test -n "$ac_help"; then
225       echo "--enable and --with options recognized:$ac_help"
226     fi
227     exit 0 ;;
228
229   -host | --host | --hos | --ho)
230     ac_prev=host ;;
231   -host=* | --host=* | --hos=* | --ho=*)
232     host="$ac_optarg" ;;
233
234   -includedir | --includedir | --includedi | --included | --include \
235   | --includ | --inclu | --incl | --inc)
236     ac_prev=includedir ;;
237   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238   | --includ=* | --inclu=* | --incl=* | --inc=*)
239     includedir="$ac_optarg" ;;
240
241   -infodir | --infodir | --infodi | --infod | --info | --inf)
242     ac_prev=infodir ;;
243   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244     infodir="$ac_optarg" ;;
245
246   -libdir | --libdir | --libdi | --libd)
247     ac_prev=libdir ;;
248   -libdir=* | --libdir=* | --libdi=* | --libd=*)
249     libdir="$ac_optarg" ;;
250
251   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252   | --libexe | --libex | --libe)
253     ac_prev=libexecdir ;;
254   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255   | --libexe=* | --libex=* | --libe=*)
256     libexecdir="$ac_optarg" ;;
257
258   -localstatedir | --localstatedir | --localstatedi | --localstated \
259   | --localstate | --localstat | --localsta | --localst \
260   | --locals | --local | --loca | --loc | --lo)
261     ac_prev=localstatedir ;;
262   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265     localstatedir="$ac_optarg" ;;
266
267   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268     ac_prev=mandir ;;
269   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270     mandir="$ac_optarg" ;;
271
272   -nfp | --nfp | --nf)
273     # Obsolete; use --without-fp.
274     with_fp=no ;;
275
276   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277   | --no-cr | --no-c)
278     no_create=yes ;;
279
280   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282     no_recursion=yes ;;
283
284   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286   | --oldin | --oldi | --old | --ol | --o)
287     ac_prev=oldincludedir ;;
288   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291     oldincludedir="$ac_optarg" ;;
292
293   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294     ac_prev=prefix ;;
295   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296     prefix="$ac_optarg" ;;
297
298   -program-prefix | --program-prefix | --program-prefi | --program-pref \
299   | --program-pre | --program-pr | --program-p)
300     ac_prev=program_prefix ;;
301   -program-prefix=* | --program-prefix=* | --program-prefi=* \
302   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303     program_prefix="$ac_optarg" ;;
304
305   -program-suffix | --program-suffix | --program-suffi | --program-suff \
306   | --program-suf | --program-su | --program-s)
307     ac_prev=program_suffix ;;
308   -program-suffix=* | --program-suffix=* | --program-suffi=* \
309   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310     program_suffix="$ac_optarg" ;;
311
312   -program-transform-name | --program-transform-name \
313   | --program-transform-nam | --program-transform-na \
314   | --program-transform-n | --program-transform- \
315   | --program-transform | --program-transfor \
316   | --program-transfo | --program-transf \
317   | --program-trans | --program-tran \
318   | --progr-tra | --program-tr | --program-t)
319     ac_prev=program_transform_name ;;
320   -program-transform-name=* | --program-transform-name=* \
321   | --program-transform-nam=* | --program-transform-na=* \
322   | --program-transform-n=* | --program-transform-=* \
323   | --program-transform=* | --program-transfor=* \
324   | --program-transfo=* | --program-transf=* \
325   | --program-trans=* | --program-tran=* \
326   | --progr-tra=* | --program-tr=* | --program-t=*)
327     program_transform_name="$ac_optarg" ;;
328
329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330   | -silent | --silent | --silen | --sile | --sil)
331     silent=yes ;;
332
333   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334     ac_prev=sbindir ;;
335   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336   | --sbi=* | --sb=*)
337     sbindir="$ac_optarg" ;;
338
339   -sharedstatedir | --sharedstatedir | --sharedstatedi \
340   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341   | --sharedst | --shareds | --shared | --share | --shar \
342   | --sha | --sh)
343     ac_prev=sharedstatedir ;;
344   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347   | --sha=* | --sh=*)
348     sharedstatedir="$ac_optarg" ;;
349
350   -site | --site | --sit)
351     ac_prev=site ;;
352   -site=* | --site=* | --sit=*)
353     site="$ac_optarg" ;;
354
355   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356     ac_prev=srcdir ;;
357   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358     srcdir="$ac_optarg" ;;
359
360   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361   | --syscon | --sysco | --sysc | --sys | --sy)
362     ac_prev=sysconfdir ;;
363   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365     sysconfdir="$ac_optarg" ;;
366
367   -target | --target | --targe | --targ | --tar | --ta | --t)
368     ac_prev=target ;;
369   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370     target="$ac_optarg" ;;
371
372   -v | -verbose | --verbose | --verbos | --verbo | --verb)
373     verbose=yes ;;
374
375   -version | --version | --versio | --versi | --vers)
376     echo "configure generated by autoconf version 2.13"
377     exit 0 ;;
378
379   -with-* | --with-*)
380     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381     # Reject names that are not valid shell variable names.
382     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384     fi
385     ac_package=`echo $ac_package| sed 's/-/_/g'`
386     case "$ac_option" in
387       *=*) ;;
388       *) ac_optarg=yes ;;
389     esac
390     eval "with_${ac_package}='$ac_optarg'" ;;
391
392   -without-* | --without-*)
393     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394     # Reject names that are not valid shell variable names.
395     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397     fi
398     ac_package=`echo $ac_package| sed 's/-/_/g'`
399     eval "with_${ac_package}=no" ;;
400
401   --x)
402     # Obsolete; use --with-x.
403     with_x=yes ;;
404
405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406   | --x-incl | --x-inc | --x-in | --x-i)
407     ac_prev=x_includes ;;
408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410     x_includes="$ac_optarg" ;;
411
412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414     ac_prev=x_libraries ;;
415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417     x_libraries="$ac_optarg" ;;
418
419   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420     ;;
421
422   *)
423     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424       echo "configure: warning: $ac_option: invalid host type" 1>&2
425     fi
426     if test "x$nonopt" != xNONE; then
427       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428     fi
429     nonopt="$ac_option"
430     ;;
431
432   esac
433 done
434
435 if test -n "$ac_prev"; then
436   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 fi
438
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440
441 # File descriptor usage:
442 # 0 standard input
443 # 1 file creation
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
450   exec 6>/dev/null
451 else
452   exec 6>&1
453 fi
454 exec 5>./config.log
455
456 echo "\
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
459 " 1>&5
460
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
463 ac_configure_args=
464 for ac_arg
465 do
466   case "$ac_arg" in
467   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468   | --no-cr | --no-c) ;;
469   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474   esac
475 done
476
477 # NLS nuisances.
478 # Only set these to C if already set.  These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
486
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 echo > confdefs.h
491
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=src/main/radiusd.c
495
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498   ac_srcdir_defaulted=yes
499   # Try the directory containing this script, then its parent.
500   ac_prog=$0
501   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
503   srcdir=$ac_confdir
504   if test ! -r $srcdir/$ac_unique_file; then
505     srcdir=..
506   fi
507 else
508   ac_srcdir_defaulted=no
509 fi
510 if test ! -r $srcdir/$ac_unique_file; then
511   if test "$ac_srcdir_defaulted" = yes; then
512     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513   else
514     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515   fi
516 fi
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521   if test "x$prefix" != xNONE; then
522     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523   else
524     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525   fi
526 fi
527 for ac_site_file in $CONFIG_SITE; do
528   if test -r "$ac_site_file"; then
529     echo "loading site script $ac_site_file"
530     . "$ac_site_file"
531   fi
532 done
533
534 if test -r "$cache_file"; then
535   echo "loading cache $cache_file"
536   . $cache_file
537 else
538   echo "creating cache $cache_file"
539   > $cache_file
540 fi
541
542 ac_ext=c
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
548
549 ac_exeext=
550 ac_objext=o
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554     ac_n= ac_c='
555 ' ac_t='        '
556   else
557     ac_n=-n ac_c= ac_t=
558   fi
559 else
560   ac_n= ac_c='\c' ac_t=
561 fi
562
563
564
565 # From configure.in Revision: 1.133 
566 RADIUSD_MAJOR_VERSION=0
567 RADIUSD_MINOR_VERSION=5
568 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
569
570
571 # Extract the first word of "gcc", so it can be a program name with args.
572 set dummy gcc; ac_word=$2
573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574 echo "configure:575: checking for $ac_word" >&5
575 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576   echo $ac_n "(cached) $ac_c" 1>&6
577 else
578   if test -n "$CC"; then
579   ac_cv_prog_CC="$CC" # Let the user override the test.
580 else
581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
582   ac_dummy="$PATH"
583   for ac_dir in $ac_dummy; do
584     test -z "$ac_dir" && ac_dir=.
585     if test -f $ac_dir/$ac_word; then
586       ac_cv_prog_CC="gcc"
587       break
588     fi
589   done
590   IFS="$ac_save_ifs"
591 fi
592 fi
593 CC="$ac_cv_prog_CC"
594 if test -n "$CC"; then
595   echo "$ac_t""$CC" 1>&6
596 else
597   echo "$ac_t""no" 1>&6
598 fi
599
600 if test -z "$CC"; then
601   # Extract the first word of "cc", so it can be a program name with args.
602 set dummy cc; ac_word=$2
603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
604 echo "configure:605: checking for $ac_word" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
606   echo $ac_n "(cached) $ac_c" 1>&6
607 else
608   if test -n "$CC"; then
609   ac_cv_prog_CC="$CC" # Let the user override the test.
610 else
611   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
612   ac_prog_rejected=no
613   ac_dummy="$PATH"
614   for ac_dir in $ac_dummy; do
615     test -z "$ac_dir" && ac_dir=.
616     if test -f $ac_dir/$ac_word; then
617       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
618         ac_prog_rejected=yes
619         continue
620       fi
621       ac_cv_prog_CC="cc"
622       break
623     fi
624   done
625   IFS="$ac_save_ifs"
626 if test $ac_prog_rejected = yes; then
627   # We found a bogon in the path, so make sure we never use it.
628   set dummy $ac_cv_prog_CC
629   shift
630   if test $# -gt 0; then
631     # We chose a different compiler from the bogus one.
632     # However, it has the same basename, so the bogon will be chosen
633     # first if we set CC to just the basename; use the full file name.
634     shift
635     set dummy "$ac_dir/$ac_word" "$@"
636     shift
637     ac_cv_prog_CC="$@"
638   fi
639 fi
640 fi
641 fi
642 CC="$ac_cv_prog_CC"
643 if test -n "$CC"; then
644   echo "$ac_t""$CC" 1>&6
645 else
646   echo "$ac_t""no" 1>&6
647 fi
648
649   if test -z "$CC"; then
650     case "`uname -s`" in
651     *win32* | *WIN32*)
652       # Extract the first word of "cl", so it can be a program name with args.
653 set dummy cl; ac_word=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657   echo $ac_n "(cached) $ac_c" 1>&6
658 else
659   if test -n "$CC"; then
660   ac_cv_prog_CC="$CC" # Let the user override the test.
661 else
662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
663   ac_dummy="$PATH"
664   for ac_dir in $ac_dummy; do
665     test -z "$ac_dir" && ac_dir=.
666     if test -f $ac_dir/$ac_word; then
667       ac_cv_prog_CC="cl"
668       break
669     fi
670   done
671   IFS="$ac_save_ifs"
672 fi
673 fi
674 CC="$ac_cv_prog_CC"
675 if test -n "$CC"; then
676   echo "$ac_t""$CC" 1>&6
677 else
678   echo "$ac_t""no" 1>&6
679 fi
680  ;;
681     esac
682   fi
683   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
684 fi
685
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
688
689 ac_ext=c
690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
691 ac_cpp='$CPP $CPPFLAGS'
692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
694 cross_compiling=$ac_cv_prog_cc_cross
695
696 cat > conftest.$ac_ext << EOF
697
698 #line 699 "configure"
699 #include "confdefs.h"
700
701 main(){return(0);}
702 EOF
703 if { (eval echo configure:704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
704   ac_cv_prog_cc_works=yes
705   # If we can't run a trivial program, we are probably using a cross compiler.
706   if (./conftest; exit) 2>/dev/null; then
707     ac_cv_prog_cc_cross=no
708   else
709     ac_cv_prog_cc_cross=yes
710   fi
711 else
712   echo "configure: failed program was:" >&5
713   cat conftest.$ac_ext >&5
714   ac_cv_prog_cc_works=no
715 fi
716 rm -fr conftest*
717 ac_ext=c
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
723
724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
725 if test $ac_cv_prog_cc_works = no; then
726   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
727 fi
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
731 cross_compiling=$ac_cv_prog_cc_cross
732
733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
734 echo "configure:735: checking whether we are using GNU C" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
736   echo $ac_n "(cached) $ac_c" 1>&6
737 else
738   cat > conftest.c <<EOF
739 #ifdef __GNUC__
740   yes;
741 #endif
742 EOF
743 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
744   ac_cv_prog_gcc=yes
745 else
746   ac_cv_prog_gcc=no
747 fi
748 fi
749
750 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
751
752 if test $ac_cv_prog_gcc = yes; then
753   GCC=yes
754 else
755   GCC=
756 fi
757
758 ac_test_CFLAGS="${CFLAGS+set}"
759 ac_save_CFLAGS="$CFLAGS"
760 CFLAGS=
761 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${CC-cc} accepts -g" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
764   echo $ac_n "(cached) $ac_c" 1>&6
765 else
766   echo 'void f(){}' > conftest.c
767 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
768   ac_cv_prog_cc_g=yes
769 else
770   ac_cv_prog_cc_g=no
771 fi
772 rm -f conftest*
773
774 fi
775
776 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
777 if test "$ac_test_CFLAGS" = set; then
778   CFLAGS="$ac_save_CFLAGS"
779 elif test $ac_cv_prog_cc_g = yes; then
780   if test "$GCC" = yes; then
781     CFLAGS="-g -O2"
782   else
783     CFLAGS="-g"
784   fi
785 else
786   if test "$GCC" = yes; then
787     CFLAGS="-O2"
788   else
789     CFLAGS=
790   fi
791 fi
792
793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794 echo "configure:795: checking how to run the C preprocessor" >&5
795 # On Suns, sometimes $CPP names a directory.
796 if test -n "$CPP" && test -d "$CPP"; then
797   CPP=
798 fi
799 if test -z "$CPP"; then
800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801   echo $ac_n "(cached) $ac_c" 1>&6
802 else
803     # This must be in double quotes, not single quotes, because CPP may get
804   # substituted into the Makefile and "${CC-cc}" will confuse make.
805   CPP="${CC-cc} -E"
806   # On the NeXT, cc -E runs the code through the compiler's parser,
807   # not just through cpp.
808   cat > conftest.$ac_ext <<EOF
809 #line 810 "configure"
810 #include "confdefs.h"
811 #include <assert.h>
812 Syntax Error
813 EOF
814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 if test -z "$ac_err"; then
818   :
819 else
820   echo "$ac_err" >&5
821   echo "configure: failed program was:" >&5
822   cat conftest.$ac_ext >&5
823   rm -rf conftest*
824   CPP="${CC-cc} -E -traditional-cpp"
825   cat > conftest.$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
828 #include <assert.h>
829 Syntax Error
830 EOF
831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
832 { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
834 if test -z "$ac_err"; then
835   :
836 else
837   echo "$ac_err" >&5
838   echo "configure: failed program was:" >&5
839   cat conftest.$ac_ext >&5
840   rm -rf conftest*
841   CPP="${CC-cc} -nologo -E"
842   cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
845 #include <assert.h>
846 Syntax Error
847 EOF
848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849 { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851 if test -z "$ac_err"; then
852   :
853 else
854   echo "$ac_err" >&5
855   echo "configure: failed program was:" >&5
856   cat conftest.$ac_ext >&5
857   rm -rf conftest*
858   CPP=/lib/cpp
859 fi
860 rm -f conftest*
861 fi
862 rm -f conftest*
863 fi
864 rm -f conftest*
865   ac_cv_prog_CPP="$CPP"
866 fi
867   CPP="$ac_cv_prog_CPP"
868 else
869   ac_cv_prog_CPP="$CPP"
870 fi
871 echo "$ac_t""$CPP" 1>&6
872
873 if test $ac_cv_prog_gcc = yes; then
874     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
875 echo "configure:876: checking whether ${CC-cc} needs -traditional" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
877   echo $ac_n "(cached) $ac_c" 1>&6
878 else
879     ac_pattern="Autoconf.*'x'"
880   cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
883 #include <sgtty.h>
884 Autoconf TIOCGETP
885 EOF
886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
887   egrep "$ac_pattern" >/dev/null 2>&1; then
888   rm -rf conftest*
889   ac_cv_prog_gcc_traditional=yes
890 else
891   rm -rf conftest*
892   ac_cv_prog_gcc_traditional=no
893 fi
894 rm -f conftest*
895
896
897   if test $ac_cv_prog_gcc_traditional = no; then
898     cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
901 #include <termio.h>
902 Autoconf TCGETA
903 EOF
904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
905   egrep "$ac_pattern" >/dev/null 2>&1; then
906   rm -rf conftest*
907   ac_cv_prog_gcc_traditional=yes
908 fi
909 rm -f conftest*
910
911   fi
912 fi
913
914 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
915   if test $ac_cv_prog_gcc_traditional = yes; then
916     CC="$CC -traditional"
917   fi
918 fi
919
920 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
921 echo "configure:922: checking whether we are using SUNPro C" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
923   echo $ac_n "(cached) $ac_c" 1>&6
924 else
925   cat > conftest.c <<EOF
926 #ifdef __SUNPRO_C
927   yes;
928 #endif
929 EOF
930 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
931   ac_cv_prog_suncc=yes
932 else
933   ac_cv_prog_suncc=no
934 fi
935 fi
936
937 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
938 # Extract the first word of "ranlib", so it can be a program name with args.
939 set dummy ranlib; ac_word=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943   echo $ac_n "(cached) $ac_c" 1>&6
944 else
945   if test -n "$RANLIB"; then
946   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
947 else
948   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
949   ac_dummy="$PATH"
950   for ac_dir in $ac_dummy; do
951     test -z "$ac_dir" && ac_dir=.
952     if test -f $ac_dir/$ac_word; then
953       ac_cv_prog_RANLIB="ranlib"
954       break
955     fi
956   done
957   IFS="$ac_save_ifs"
958   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
959 fi
960 fi
961 RANLIB="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963   echo "$ac_t""$RANLIB" 1>&6
964 else
965   echo "$ac_t""no" 1>&6
966 fi
967
968
969 PACKAGE=freeradius
970
971 # Extract the first word of "gmake", so it can be a program name with args.
972 set dummy gmake; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
976   echo $ac_n "(cached) $ac_c" 1>&6
977 else
978   if test -n "$GMAKE"; then
979   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
980 else
981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
982   ac_dummy="$PATH"
983   for ac_dir in $ac_dummy; do
984     test -z "$ac_dir" && ac_dir=.
985     if test -f $ac_dir/$ac_word; then
986       ac_cv_prog_GMAKE="yes"
987       break
988     fi
989   done
990   IFS="$ac_save_ifs"
991   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
992 fi
993 fi
994 GMAKE="$ac_cv_prog_GMAKE"
995 if test -n "$GMAKE"; then
996   echo "$ac_t""$GMAKE" 1>&6
997 else
998   echo "$ac_t""no" 1>&6
999 fi
1000
1001 if test $GMAKE = no; then
1002   # Extract the first word of "make", so it can be a program name with args.
1003 set dummy make; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1007   echo $ac_n "(cached) $ac_c" 1>&6
1008 else
1009   case "$MAKE" in
1010   /*)
1011   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1012   ;;
1013   ?:/*)                  
1014   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1015   ;;
1016   *)
1017   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1018   ac_dummy="$PATH"
1019   for ac_dir in $ac_dummy; do 
1020     test -z "$ac_dir" && ac_dir=.
1021     if test -f $ac_dir/$ac_word; then
1022       ac_cv_path_MAKE="$ac_dir/$ac_word"
1023       break
1024     fi
1025   done
1026   IFS="$ac_save_ifs"
1027   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1028   ;;
1029 esac
1030 fi
1031 MAKE="$ac_cv_path_MAKE"
1032 if test -n "$MAKE"; then
1033   echo "$ac_t""$MAKE" 1>&6
1034 else
1035   echo "$ac_t""no" 1>&6
1036 fi
1037
1038 else
1039   # Extract the first word of "gmake", so it can be a program name with args.
1040 set dummy gmake; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   case "$MAKE" in
1047   /*)
1048   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1049   ;;
1050   ?:/*)                  
1051   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1052   ;;
1053   *)
1054   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1055   ac_dummy="$PATH"
1056   for ac_dir in $ac_dummy; do 
1057     test -z "$ac_dir" && ac_dir=.
1058     if test -f $ac_dir/$ac_word; then
1059       ac_cv_path_MAKE="$ac_dir/$ac_word"
1060       break
1061     fi
1062   done
1063   IFS="$ac_save_ifs"
1064   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1065   ;;
1066 esac
1067 fi
1068 MAKE="$ac_cv_path_MAKE"
1069 if test -n "$MAKE"; then
1070   echo "$ac_t""$MAKE" 1>&6
1071 else
1072   echo "$ac_t""no" 1>&6
1073 fi
1074
1075 fi
1076 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1077 if test -z "$makever"; then
1078   { echo "configure: error: GNU Make is not installed.  Please download and install it
1079                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1080 fi
1081
1082   echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1083 echo "configure:1084: checking for main in -lltdl" >&5
1084 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088   ac_save_LIBS="$LIBS"
1089 LIBS="-lltdl  $LIBS"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1093
1094 int main() {
1095 main()
1096 ; return 0; }
1097 EOF
1098 if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1099   rm -rf conftest*
1100   eval "ac_cv_lib_$ac_lib_var=yes"
1101 else
1102   echo "configure: failed program was:" >&5
1103   cat conftest.$ac_ext >&5
1104   rm -rf conftest*
1105   eval "ac_cv_lib_$ac_lib_var=no"
1106 fi
1107 rm -f conftest*
1108 LIBS="$ac_save_LIBS"
1109
1110 fi
1111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1112   echo "$ac_t""yes" 1>&6
1113   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1114 else
1115   echo "$ac_t""no" 1>&6
1116 if test x"$enable_ltdl_install" = xno; then
1117      echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1118    else
1119      enable_ltdl_install=yes
1120    fi
1121   
1122 fi
1123
1124   if test x"$enable_ltdl_install" = x"yes"; then
1125     ac_configure_args="$ac_configure_args --enable-ltdl-install"
1126     LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1127     INCLTDL='-I${top_builddir}/libltdl'
1128   else
1129     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1130     LIBLTDL="-lltdl"
1131     INCLTDL=
1132   fi
1133
1134
1135
1136
1137 ac_aux_dir=
1138 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1139   if test -f $ac_dir/install-sh; then
1140     ac_aux_dir=$ac_dir
1141     ac_install_sh="$ac_aux_dir/install-sh -c"
1142     break
1143   elif test -f $ac_dir/install.sh; then
1144     ac_aux_dir=$ac_dir
1145     ac_install_sh="$ac_aux_dir/install.sh -c"
1146     break
1147   fi
1148 done
1149 if test -z "$ac_aux_dir"; then
1150   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1151 fi
1152 ac_config_guess=$ac_aux_dir/config.guess
1153 ac_config_sub=$ac_aux_dir/config.sub
1154 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1155
1156 # Check whether --enable-shared or --disable-shared was given.
1157 if test "${enable_shared+set}" = set; then
1158   enableval="$enable_shared"
1159   p=${PACKAGE-default}
1160 case "$enableval" in
1161 yes) enable_shared=yes ;;
1162 no) enable_shared=no ;;
1163 *)
1164   enable_shared=no
1165   # Look at the argument we got.  We use all the common list separators.
1166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1167   for pkg in $enableval; do
1168     if test "X$pkg" = "X$p"; then
1169       enable_shared=yes
1170     fi
1171   done
1172   IFS="$ac_save_ifs"
1173   ;;
1174 esac
1175 else
1176   enable_shared=yes
1177 fi
1178
1179 # Check whether --enable-static or --disable-static was given.
1180 if test "${enable_static+set}" = set; then
1181   enableval="$enable_static"
1182   p=${PACKAGE-default}
1183 case "$enableval" in
1184 yes) enable_static=yes ;;
1185 no) enable_static=no ;;
1186 *)
1187   enable_static=no
1188   # Look at the argument we got.  We use all the common list separators.
1189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1190   for pkg in $enableval; do
1191     if test "X$pkg" = "X$p"; then
1192       enable_static=yes
1193     fi
1194   done
1195   IFS="$ac_save_ifs"
1196   ;;
1197 esac
1198 else
1199   enable_static=yes
1200 fi
1201
1202 # Check whether --enable-fast-install or --disable-fast-install was given.
1203 if test "${enable_fast_install+set}" = set; then
1204   enableval="$enable_fast_install"
1205   p=${PACKAGE-default}
1206 case "$enableval" in
1207 yes) enable_fast_install=yes ;;
1208 no) enable_fast_install=no ;;
1209 *)
1210   enable_fast_install=no
1211   # Look at the argument we got.  We use all the common list separators.
1212   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1213   for pkg in $enableval; do
1214     if test "X$pkg" = "X$p"; then
1215       enable_fast_install=yes
1216     fi
1217   done
1218   IFS="$ac_save_ifs"
1219   ;;
1220 esac
1221 else
1222   enable_fast_install=yes
1223 fi
1224
1225
1226 # Make sure we can run config.sub.
1227 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1228 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1229 fi
1230
1231 echo $ac_n "checking host system type""... $ac_c" 1>&6
1232 echo "configure:1233: checking host system type" >&5
1233
1234 host_alias=$host
1235 case "$host_alias" in
1236 NONE)
1237   case $nonopt in
1238   NONE)
1239     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1240     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1241     fi ;;
1242   *) host_alias=$nonopt ;;
1243   esac ;;
1244 esac
1245
1246 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1247 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1248 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1249 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1250 echo "$ac_t""$host" 1>&6
1251
1252 echo $ac_n "checking build system type""... $ac_c" 1>&6
1253 echo "configure:1254: checking build system type" >&5
1254
1255 build_alias=$build
1256 case "$build_alias" in
1257 NONE)
1258   case $nonopt in
1259   NONE) build_alias=$host_alias ;;
1260   *) build_alias=$nonopt ;;
1261   esac ;;
1262 esac
1263
1264 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1265 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1266 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1267 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1268 echo "$ac_t""$build" 1>&6
1269
1270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1271 if test "${with_gnu_ld+set}" = set; then
1272   withval="$with_gnu_ld"
1273   test "$withval" = no || with_gnu_ld=yes
1274 else
1275   with_gnu_ld=no
1276 fi
1277
1278 ac_prog=ld
1279 if test "$ac_cv_prog_gcc" = yes; then
1280   # Check if gcc -print-prog-name=ld gives a path.
1281   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ld used by GCC" >&5
1283   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1284   case "$ac_prog" in
1285     # Accept absolute paths.
1286     [\\/]* | [A-Za-z]:[\\/]*)
1287       re_direlt='/[^/][^/]*/\.\./'
1288       # Canonicalize the path of ld
1289       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1290       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1291         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1292       done
1293       test -z "$LD" && LD="$ac_prog"
1294       ;;
1295   "")
1296     # If it fails, then pretend we aren't using GCC.
1297     ac_prog=ld
1298     ;;
1299   *)
1300     # If it is relative, then search for the first ld in PATH.
1301     with_gnu_ld=unknown
1302     ;;
1303   esac
1304 elif test "$with_gnu_ld" = yes; then
1305   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1306 echo "configure:1307: checking for GNU ld" >&5
1307 else
1308   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1309 echo "configure:1310: checking for non-GNU ld" >&5
1310 fi
1311 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1312   echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314   if test -z "$LD"; then
1315   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1316   for ac_dir in $PATH; do
1317     test -z "$ac_dir" && ac_dir=.
1318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1319       ac_cv_path_LD="$ac_dir/$ac_prog"
1320       # Check to see if the program is GNU ld.  I'd rather use --version,
1321       # but apparently some GNU ld's only accept -v.
1322       # Break only if it was the GNU/non-GNU ld that we prefer.
1323       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1324         test "$with_gnu_ld" != no && break
1325       else
1326         test "$with_gnu_ld" != yes && break
1327       fi
1328     fi
1329   done
1330   IFS="$ac_save_ifs"
1331 else
1332   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1333 fi
1334 fi
1335
1336 LD="$ac_cv_path_LD"
1337 if test -n "$LD"; then
1338   echo "$ac_t""$LD" 1>&6
1339 else
1340   echo "$ac_t""no" 1>&6
1341 fi
1342 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1343 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1344 echo "configure:1345: checking if the linker ($LD) is GNU ld" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1350   ac_cv_prog_gnu_ld=yes
1351 else
1352   ac_cv_prog_gnu_ld=no
1353 fi
1354 fi
1355
1356 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1357
1358
1359 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1360 echo "configure:1361: checking for BSD-compatible nm" >&5
1361 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1362   echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364   if test -n "$NM"; then
1365   # Let the user override the test.
1366   ac_cv_path_NM="$NM"
1367 else
1368   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1369   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1370     test -z "$ac_dir" && ac_dir=.
1371     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1372       # Check to see if the nm accepts a BSD-compat flag.
1373       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1374       #   nm: unknown option "B" ignored
1375       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1376         ac_cv_path_NM="$ac_dir/nm -B"
1377         break
1378       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1379         ac_cv_path_NM="$ac_dir/nm -p"
1380         break
1381       else
1382         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1383         continue # so that we can try to find one that supports BSD flags
1384       fi
1385     fi
1386   done
1387   IFS="$ac_save_ifs"
1388   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1389 fi
1390 fi
1391
1392 NM="$ac_cv_path_NM"
1393 echo "$ac_t""$NM" 1>&6
1394
1395 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether ln -s works" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1398   echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400   rm -f conftestdata
1401 if ln -s X conftestdata 2>/dev/null
1402 then
1403   rm -f conftestdata
1404   ac_cv_prog_LN_S="ln -s"
1405 else
1406   ac_cv_prog_LN_S=ln
1407 fi
1408 fi
1409 LN_S="$ac_cv_prog_LN_S"
1410 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1411   echo "$ac_t""yes" 1>&6
1412 else
1413   echo "$ac_t""no" 1>&6
1414 fi
1415
1416
1417 case "$target" in
1418 NONE) lt_target="$host" ;;
1419 *) lt_target="$target" ;;
1420 esac
1421
1422 # Check for any special flags to pass to ltconfig.
1423 libtool_flags="--cache-file=$cache_file"
1424 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1425 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1426 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1427 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1428 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1429 libtool_flags="$libtool_flags --enable-dlopen"
1430
1431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1432 if test "${enable_libtool_lock+set}" = set; then
1433   enableval="$enable_libtool_lock"
1434   :
1435 fi
1436
1437 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1438 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1439
1440 # Some flags need to be propagated to the compiler or linker for good
1441 # libtool support.
1442 case "$lt_target" in
1443 *-*-irix6*)
1444   # Find out which ABI we are using.
1445   echo '#line 1446 "configure"' > conftest.$ac_ext
1446   if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1447     case "`/usr/bin/file conftest.o`" in
1448     *32-bit*)
1449       LD="${LD-ld} -32"
1450       ;;
1451     *N32*)
1452       LD="${LD-ld} -n32"
1453       ;;
1454     *64-bit*)
1455       LD="${LD-ld} -64"
1456       ;;
1457     esac
1458   fi
1459   rm -rf conftest*
1460   ;;
1461
1462 *-*-sco3.2v5*)
1463   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1464   SAVE_CFLAGS="$CFLAGS"
1465   CFLAGS="$CFLAGS -belf"
1466   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether the C compiler needs -belf" >&5
1468 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1469   echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471   cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474
1475 int main() {
1476
1477 ; return 0; }
1478 EOF
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1480   rm -rf conftest*
1481   lt_cv_cc_needs_belf=yes
1482 else
1483   echo "configure: failed program was:" >&5
1484   cat conftest.$ac_ext >&5
1485   rm -rf conftest*
1486   lt_cv_cc_needs_belf=no
1487 fi
1488 rm -f conftest*
1489 fi
1490
1491 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1492   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1493     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1494     CFLAGS="$SAVE_CFLAGS"
1495   fi
1496   ;;
1497
1498
1499 esac
1500
1501
1502 # Save cache, so that ltconfig can load it
1503 cat > confcache <<\EOF
1504 # This file is a shell script that caches the results of configure
1505 # tests run on this system so they can be shared between configure
1506 # scripts and configure runs.  It is not useful on other systems.
1507 # If it contains results you don't want to keep, you may remove or edit it.
1508 #
1509 # By default, configure uses ./config.cache as the cache file,
1510 # creating it if it does not exist already.  You can give configure
1511 # the --cache-file=FILE option to use a different cache file; that is
1512 # what configure does when it calls configure scripts in
1513 # subdirectories, so they share the cache.
1514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1515 # config.status only pays attention to the cache file if you give it the
1516 # --recheck option to rerun configure.
1517 #
1518 EOF
1519 # The following way of writing the cache mishandles newlines in values,
1520 # but we know of no workaround that is simple, portable, and efficient.
1521 # So, don't put newlines in cache variables' values.
1522 # Ultrix sh set writes to stderr and can't be redirected directly,
1523 # and sets the high bit in the cache file unless we assign to the vars.
1524 (set) 2>&1 |
1525   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1526   *ac_space=\ *)
1527     # `set' does not quote correctly, so add quotes (double-quote substitution
1528     # turns \\\\ into \\, and sed turns \\ into \).
1529     sed -n \
1530       -e "s/'/'\\\\''/g" \
1531       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1532     ;;
1533   *)
1534     # `set' quotes correctly as required by POSIX, so do not add quotes.
1535     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1536     ;;
1537   esac >> confcache
1538 if cmp -s $cache_file confcache; then
1539   :
1540 else
1541   if test -w $cache_file; then
1542     echo "updating cache $cache_file"
1543     cat confcache > $cache_file
1544   else
1545     echo "not updating unwritable cache $cache_file"
1546   fi
1547 fi
1548 rm -f confcache
1549
1550
1551 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1552 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1553 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1554 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1555 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1557 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1558 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1559
1560 # Reload cache, that may have been modified by ltconfig
1561 if test -r "$cache_file"; then
1562   echo "loading cache $cache_file"
1563   . $cache_file
1564 else
1565   echo "creating cache $cache_file"
1566   > $cache_file
1567 fi
1568
1569
1570 # This can be used to rebuild libtool when needed
1571 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1572
1573 # Always use our own libtool.
1574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1575
1576 # Redirect the config.log output again, so that the ltconfig log is not
1577 # clobbered by the next message.
1578 exec 5>>./config.log
1579
1580
1581
1582 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1583 if test "${enable_strict_dependencies+set}" = set; then
1584   enableval="$enable_strict_dependencies"
1585   :
1586 fi
1587
1588
1589 # Check whether --with-fooincludedir or --without-fooincludedir was given.
1590 if test "${with_fooincludedir+set}" = set; then
1591   withval="$with_fooincludedir"
1592   :
1593 fi
1594
1595
1596 # Check whether --with-foolibdir or --without-foolibdir was given.
1597 if test "${with_foolibdir+set}" = set; then
1598   withval="$with_foolibdir"
1599   :
1600 fi
1601
1602
1603 logdir='${localstatedir}/log/radius'
1604 echo $ac_n "checking logdir""... $ac_c" 1>&6
1605 echo "configure:1606: checking logdir" >&5
1606 # Check whether --with-logdir or --without-logdir was given.
1607 if test "${with_logdir+set}" = set; then
1608   withval="$with_logdir"
1609    case "$withval" in
1610     no)
1611         { echo "configure: error: Need logdir" 1>&2; exit 1; }
1612         ;;
1613     yes)
1614         ;;
1615     *)
1616         logdir="$withval"
1617         ;;
1618   esac 
1619
1620 fi
1621
1622
1623 echo "$ac_t""$logdir" 1>&6
1624
1625 radacctdir='${logdir}/radacct'
1626 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1627 echo "configure:1628: checking radacctdir" >&5
1628 # Check whether --with-radacctdir or --without-radacctdir was given.
1629 if test "${with_radacctdir+set}" = set; then
1630   withval="$with_radacctdir"
1631    case "$withval" in
1632     no)
1633         { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1634         ;;
1635     yes)
1636         ;;
1637     *)
1638         radacctdir="$withval"
1639         ;;
1640   esac 
1641
1642 fi
1643
1644
1645 echo "$ac_t""$radacctdir" 1>&6
1646
1647 raddbdir='${sysconfdir}/raddb'
1648 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1649 echo "configure:1650: checking raddbdir" >&5
1650 # Check whether --with-raddbdir or --without-raddbdir was given.
1651 if test "${with_raddbdir+set}" = set; then
1652   withval="$with_raddbdir"
1653    case "$withval" in
1654     no)
1655         { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1656         ;;
1657     yes)
1658         ;;
1659     *)
1660         raddbdir="$withval"
1661         ;;
1662   esac 
1663
1664 fi
1665
1666
1667 echo "$ac_t""$raddbdir" 1>&6
1668
1669 WITH_DICT_NOCASE=yes
1670 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1671 if test "${with_dict_nocase+set}" = set; then
1672   withval="$with_dict_nocase"
1673     case "$withval" in
1674     yes)
1675         ;;
1676     *)
1677         WITH_DICT_NOCASE=""
1678   esac 
1679
1680 fi
1681
1682 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1683   cat >> confdefs.h <<\EOF
1684 #define WITH_DICT_NOCASE 1
1685 EOF
1686
1687 fi
1688
1689 ASCEND_BINARY=yes
1690 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1691 if test "${with_ascend_binary+set}" = set; then
1692   withval="$with_ascend_binary"
1693    case "$withval" in
1694     yes)
1695         ;;
1696     *)
1697         ASCEND_BINARY=""
1698   esac 
1699
1700 fi
1701
1702 if test "X$ASCEND_BINARY" = "Xyes"; then
1703   cat >> confdefs.h <<\EOF
1704 #define ASCEND_BINARY 1
1705 EOF
1706
1707 fi
1708
1709 WITH_THREADS=yes
1710 WITH_THREAD_POOL=yes
1711 # Check whether --with-threads or --without-threads was given.
1712 if test "${with_threads+set}" = set; then
1713   withval="$with_threads"
1714    case "$withval" in
1715     yes)
1716         ;;
1717     *)
1718         WITH_THREADS=""
1719         WITH_THREAD_POOL=""
1720   esac 
1721
1722 fi
1723
1724
1725 WITH_SNMP=yes
1726 # Check whether --with-snmp or --without-snmp was given.
1727 if test "${with_snmp+set}" = set; then
1728   withval="$with_snmp"
1729    case "$withval" in
1730     yes)
1731         ;;
1732     *)
1733         WITH_SNMP=no
1734   esac 
1735
1736 fi
1737
1738
1739 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1740 if test "${enable_ltdl_install+set}" = set; then
1741   enableval="$enable_ltdl_install"
1742   :
1743 fi
1744
1745 if test x"${enable_ltdl_install+set}" != xset; then
1746   enable_ltdl_install=yes
1747   ac_configure_args="$ac_configure_args --enable-ltdl-install"
1748 fi
1749 subdirs="libltdl"
1750
1751
1752 STATIC_MODULES=
1753 # Check whether --with-static_modules or --without-static_modules was given.
1754 if test "${with_static_modules+set}" = set; then
1755   withval="$with_static_modules"
1756   
1757   for i in $withval; do
1758     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1759   done
1760
1761 fi
1762
1763
1764 # Check whether --enable-developer or --disable-developer was given.
1765 if test "${enable_developer+set}" = set; then
1766   enableval="$enable_developer"
1767    case "$withval" in
1768     *)
1769         developer=no
1770         ;;
1771     yes)
1772         developer=yes
1773   esac 
1774
1775 fi
1776
1777
1778 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1779     developer="yes"
1780 fi
1781
1782
1783 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
1784 if test "${with_rlm_FOO_lib_dir+set}" = set; then
1785   withval="$with_rlm_FOO_lib_dir"
1786    case "$withval" in
1787     *)
1788         ;;
1789   esac 
1790
1791 fi
1792
1793
1794 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
1795 if test "${with_rlm_FOO_include_dir+set}" = set; then
1796   withval="$with_rlm_FOO_include_dir"
1797    case "$withval" in
1798     *)
1799         ;;
1800   esac 
1801
1802 fi
1803
1804
1805
1806
1807 # Extract the first word of "perl", so it can be a program name with args.
1808 set dummy perl; ac_word=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1812   echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814   case "$PERL" in
1815   /*)
1816   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1817   ;;
1818   ?:/*)                  
1819   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1820   ;;
1821   *)
1822   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1823   ac_dummy="$PATH"
1824   for ac_dir in $ac_dummy; do 
1825     test -z "$ac_dir" && ac_dir=.
1826     if test -f $ac_dir/$ac_word; then
1827       ac_cv_path_PERL="$ac_dir/$ac_word"
1828       break
1829     fi
1830   done
1831   IFS="$ac_save_ifs"
1832   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1833   ;;
1834 esac
1835 fi
1836 PERL="$ac_cv_path_PERL"
1837 if test -n "$PERL"; then
1838   echo "$ac_t""$PERL" 1>&6
1839 else
1840   echo "$ac_t""no" 1>&6
1841 fi
1842
1843 if test ! -x $ac_cv_path_PERL; then
1844   { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1845 fi
1846 # Extract the first word of "snmpget", so it can be a program name with args.
1847 set dummy snmpget; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1851   echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853   case "$SNMPGET" in
1854   /*)
1855   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1856   ;;
1857   ?:/*)                  
1858   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1859   ;;
1860   *)
1861   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1862   ac_dummy="$PATH"
1863   for ac_dir in $ac_dummy; do 
1864     test -z "$ac_dir" && ac_dir=.
1865     if test -f $ac_dir/$ac_word; then
1866       ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1867       break
1868     fi
1869   done
1870   IFS="$ac_save_ifs"
1871   test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1872   ;;
1873 esac
1874 fi
1875 SNMPGET="$ac_cv_path_SNMPGET"
1876 if test -n "$SNMPGET"; then
1877   echo "$ac_t""$SNMPGET" 1>&6
1878 else
1879   echo "$ac_t""no" 1>&6
1880 fi
1881
1882 # Extract the first word of "snmpwalk", so it can be a program name with args.
1883 set dummy snmpwalk; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1887   echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889   case "$SNMPWALK" in
1890   /*)
1891   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1892   ;;
1893   ?:/*)                  
1894   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1895   ;;
1896   *)
1897   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1898   ac_dummy="$PATH"
1899   for ac_dir in $ac_dummy; do 
1900     test -z "$ac_dir" && ac_dir=.
1901     if test -f $ac_dir/$ac_word; then
1902       ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1903       break
1904     fi
1905   done
1906   IFS="$ac_save_ifs"
1907   test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1908   ;;
1909 esac
1910 fi
1911 SNMPWALK="$ac_cv_path_SNMPWALK"
1912 if test -n "$SNMPWALK"; then
1913   echo "$ac_t""$SNMPWALK" 1>&6
1914 else
1915   echo "$ac_t""no" 1>&6
1916 fi
1917
1918 # Extract the first word of "rusers", so it can be a program name with args.
1919 set dummy rusers; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1922 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1923   echo $ac_n "(cached) $ac_c" 1>&6
1924 else
1925   case "$RUSERS" in
1926   /*)
1927   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1928   ;;
1929   ?:/*)                  
1930   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1931   ;;
1932   *)
1933   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1934   ac_dummy="$PATH"
1935   for ac_dir in $ac_dummy; do 
1936     test -z "$ac_dir" && ac_dir=.
1937     if test -f $ac_dir/$ac_word; then
1938       ac_cv_path_RUSERS="$ac_dir/$ac_word"
1939       break
1940     fi
1941   done
1942   IFS="$ac_save_ifs"
1943   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1944   ;;
1945 esac
1946 fi
1947 RUSERS="$ac_cv_path_RUSERS"
1948 if test -n "$RUSERS"; then
1949   echo "$ac_t""$RUSERS" 1>&6
1950 else
1951   echo "$ac_t""no" 1>&6
1952 fi
1953
1954
1955 missing_dir=`cd $ac_aux_dir && pwd`
1956 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1957 echo "configure:1958: checking for working aclocal" >&5
1958 # Run test in a subshell; some versions of sh will print an error if
1959 # an executable is not found, even if stderr is redirected.
1960 # Redirect stdin to placate older versions of autoconf.  Sigh.
1961 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1962    ACLOCAL=aclocal
1963    echo "$ac_t""found" 1>&6
1964 else
1965    ACLOCAL="$missing_dir/missing aclocal"
1966    echo "$ac_t""missing" 1>&6
1967 fi
1968
1969 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1970 echo "configure:1971: checking for working autoconf" >&5
1971 # Run test in a subshell; some versions of sh will print an error if
1972 # an executable is not found, even if stderr is redirected.
1973 # Redirect stdin to placate older versions of autoconf.  Sigh.
1974 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1975    AUTOCONF=autoconf
1976    echo "$ac_t""found" 1>&6
1977 else
1978    AUTOCONF="$missing_dir/missing autoconf"
1979    echo "$ac_t""missing" 1>&6
1980 fi
1981
1982 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1983 echo "configure:1984: checking for working autoheader" >&5
1984 # Run test in a subshell; some versions of sh will print an error if
1985 # an executable is not found, even if stderr is redirected.
1986 # Redirect stdin to placate older versions of autoconf.  Sigh.
1987 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1988    AUTOHEADER=autoheader
1989    echo "$ac_t""found" 1>&6
1990 else
1991    AUTOHEADER="$missing_dir/missing autoheader"
1992    echo "$ac_t""missing" 1>&6
1993 fi
1994
1995
1996 # Extract the first word of "locate", so it can be a program name with args.
1997 set dummy locate; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2000 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
2001   echo $ac_n "(cached) $ac_c" 1>&6
2002 else
2003   case "$LOCATE" in
2004   /*)
2005   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
2006   ;;
2007   ?:/*)                  
2008   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
2009   ;;
2010   *)
2011   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2012   ac_dummy="$PATH"
2013   for ac_dir in $ac_dummy; do 
2014     test -z "$ac_dir" && ac_dir=.
2015     if test -f $ac_dir/$ac_word; then
2016       ac_cv_path_LOCATE="$ac_dir/$ac_word"
2017       break
2018     fi
2019   done
2020   IFS="$ac_save_ifs"
2021   ;;
2022 esac
2023 fi
2024 LOCATE="$ac_cv_path_LOCATE"
2025 if test -n "$LOCATE"; then
2026   echo "$ac_t""$LOCATE" 1>&6
2027 else
2028   echo "$ac_t""no" 1>&6
2029 fi
2030
2031 # Extract the first word of "dirname", so it can be a program name with args.
2032 set dummy dirname; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2035 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2036   echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038   case "$DIRNAME" in
2039   /*)
2040   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2041   ;;
2042   ?:/*)                  
2043   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2044   ;;
2045   *)
2046   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2047   ac_dummy="$PATH"
2048   for ac_dir in $ac_dummy; do 
2049     test -z "$ac_dir" && ac_dir=.
2050     if test -f $ac_dir/$ac_word; then
2051       ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2052       break
2053     fi
2054   done
2055   IFS="$ac_save_ifs"
2056   ;;
2057 esac
2058 fi
2059 DIRNAME="$ac_cv_path_DIRNAME"
2060 if test -n "$DIRNAME"; then
2061   echo "$ac_t""$DIRNAME" 1>&6
2062 else
2063   echo "$ac_t""no" 1>&6
2064 fi
2065
2066 # Extract the first word of "grep", so it can be a program name with args.
2067 set dummy grep; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2071   echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073   case "$GREP" in
2074   /*)
2075   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2076   ;;
2077   ?:/*)                  
2078   ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2079   ;;
2080   *)
2081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2082   ac_dummy="$PATH"
2083   for ac_dir in $ac_dummy; do 
2084     test -z "$ac_dir" && ac_dir=.
2085     if test -f $ac_dir/$ac_word; then
2086       ac_cv_path_GREP="$ac_dir/$ac_word"
2087       break
2088     fi
2089   done
2090   IFS="$ac_save_ifs"
2091   ;;
2092 esac
2093 fi
2094 GREP="$ac_cv_path_GREP"
2095 if test -n "$GREP"; then
2096   echo "$ac_t""$GREP" 1>&6
2097 else
2098   echo "$ac_t""no" 1>&6
2099 fi
2100
2101
2102 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2103 echo "configure:2104: checking for AIX" >&5
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #ifdef _AIX
2108   yes
2109 #endif
2110
2111 EOF
2112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2113   egrep "yes" >/dev/null 2>&1; then
2114   rm -rf conftest*
2115   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2116 #define _ALL_SOURCE 1
2117 EOF
2118
2119 else
2120   rm -rf conftest*
2121   echo "$ac_t""no" 1>&6
2122 fi
2123 rm -f conftest*
2124
2125
2126
2127
2128 PTHREADLIB=
2129 if test "$WITH_THREADS" = "yes"; then 
2130   if test $ac_cv_prog_suncc = "yes"; then
2131     CFLAGS="$CFLAGS -mt"
2132   fi
2133
2134   for ac_hdr in pthread.h
2135 do
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2140   echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142   cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 #include <$ac_hdr>
2146 EOF
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2151   rm -rf conftest*
2152   eval "ac_cv_header_$ac_safe=yes"
2153 else
2154   echo "$ac_err" >&5
2155   echo "configure: failed program was:" >&5
2156   cat conftest.$ac_ext >&5
2157   rm -rf conftest*
2158   eval "ac_cv_header_$ac_safe=no"
2159 fi
2160 rm -f conftest*
2161 fi
2162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2163   echo "$ac_t""yes" 1>&6
2164     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165   cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2167 EOF
2168  
2169 else
2170   echo "$ac_t""no" 1>&6
2171 fi
2172 done
2173
2174
2175   if test "X$ac_cv_header_pthread_h" = "X"; then
2176     { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2177   fi
2178
2179   echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2180 echo "configure:2181: checking for pthread_join in -lpthread" >&5
2181 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183   echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185   ac_save_LIBS="$LIBS"
2186 LIBS="-lpthread  $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error.  */
2191 /* We use char because int might match the return type of a gcc2
2192     builtin and then its argument prototype would still apply.  */
2193 char pthread_join();
2194
2195 int main() {
2196 pthread_join()
2197 ; return 0; }
2198 EOF
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200   rm -rf conftest*
2201   eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203   echo "configure: failed program was:" >&5
2204   cat conftest.$ac_ext >&5
2205   rm -rf conftest*
2206   eval "ac_cv_lib_$ac_lib_var=no"
2207 fi
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2210
2211 fi
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213   echo "$ac_t""yes" 1>&6
2214   PTHREADLIB="-lpthread"
2215   
2216 else
2217   echo "$ac_t""no" 1>&6
2218 fi
2219
2220
2221
2222   
2223 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
2224 echo "configure:2225: checking for library containing sem_init" >&5
2225 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
2226   echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228   ac_func_search_save_LIBS="$LIBS"
2229 ac_cv_search_sem_init="no"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 /* Override any gcc2 internal prototype to avoid an error.  */
2234 /* We use char because int might match the return type of a gcc2
2235     builtin and then its argument prototype would still apply.  */
2236 char sem_init();
2237
2238 int main() {
2239 sem_init()
2240 ; return 0; }
2241 EOF
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2243   rm -rf conftest*
2244   ac_cv_search_sem_init="none required"
2245 else
2246   echo "configure: failed program was:" >&5
2247   cat conftest.$ac_ext >&5
2248 fi
2249 rm -f conftest*
2250 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
2251 LIBS="-l$i "-lpthread"
2252    $ac_func_search_save_LIBS"
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* Override any gcc2 internal prototype to avoid an error.  */
2257 /* We use char because int might match the return type of a gcc2
2258     builtin and then its argument prototype would still apply.  */
2259 char sem_init();
2260
2261 int main() {
2262 sem_init()
2263 ; return 0; }
2264 EOF
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2266   rm -rf conftest*
2267   ac_cv_search_sem_init="-l$i"
2268 break
2269 else
2270   echo "configure: failed program was:" >&5
2271   cat conftest.$ac_ext >&5
2272 fi
2273 rm -f conftest*
2274 done
2275 LIBS="$ac_func_search_save_LIBS"
2276 fi
2277
2278 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
2279 if test "$ac_cv_search_sem_init" != "no"; then
2280   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
2281    
2282                         PTHREADLIB="$PTHREADLIB $ac_cv_search_sem_init"
2283         
2284 else :
2285   
2286 fi
2287
2288   if test "X$PTHREADLIB" = "X"; then
2289     SAVED_CFLAGS=$CFLAGS
2290     CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2291     echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2292 echo "configure:2293: checking for pthread_create in -lc_r" >&5
2293 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295   echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297   ac_save_LIBS="$LIBS"
2298 LIBS="-lc_r  $LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* Override any gcc2 internal prototype to avoid an error.  */
2303 /* We use char because int might match the return type of a gcc2
2304     builtin and then its argument prototype would still apply.  */
2305 char pthread_create();
2306
2307 int main() {
2308 pthread_create()
2309 ; return 0; }
2310 EOF
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312   rm -rf conftest*
2313   eval "ac_cv_lib_$ac_lib_var=yes"
2314 else
2315   echo "configure: failed program was:" >&5
2316   cat conftest.$ac_ext >&5
2317   rm -rf conftest*
2318   eval "ac_cv_lib_$ac_lib_var=no"
2319 fi
2320 rm -f conftest*
2321 LIBS="$ac_save_LIBS"
2322
2323 fi
2324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2325   echo "$ac_t""yes" 1>&6
2326   PTHREADLIB="-lc_r"
2327     
2328 else
2329   echo "$ac_t""no" 1>&6
2330 fi
2331
2332   fi
2333
2334   if test "x$PTHREADLIB" != "x"; then
2335     LIBS="$LIBS $PTHREADLIB"
2336     CFLAGS="$CFLAGS -D_REENTRANT"
2337   fi
2338 fi
2339
2340 if test "x$PTHREADLIB" = "x"; then
2341   CFLAGS=$SAVED_CFLAGS
2342   ac_cv_header_pthread_h="no"
2343   WITH_THREADS=no
2344   WITH_THREAD_POOL=no
2345 fi
2346
2347 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2348 echo "configure:2349: checking for getsockname in -lsocket" >&5
2349 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   ac_save_LIBS="$LIBS"
2354 LIBS="-lsocket  $LIBS"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 /* Override any gcc2 internal prototype to avoid an error.  */
2359 /* We use char because int might match the return type of a gcc2
2360     builtin and then its argument prototype would still apply.  */
2361 char getsockname();
2362
2363 int main() {
2364 getsockname()
2365 ; return 0; }
2366 EOF
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368   rm -rf conftest*
2369   eval "ac_cv_lib_$ac_lib_var=yes"
2370 else
2371   echo "configure: failed program was:" >&5
2372   cat conftest.$ac_ext >&5
2373   rm -rf conftest*
2374   eval "ac_cv_lib_$ac_lib_var=no"
2375 fi
2376 rm -f conftest*
2377 LIBS="$ac_save_LIBS"
2378
2379 fi
2380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2381   echo "$ac_t""yes" 1>&6
2382     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2383     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2384   cat >> confdefs.h <<EOF
2385 #define $ac_tr_lib 1
2386 EOF
2387
2388   LIBS="-lsocket $LIBS"
2389
2390 else
2391   echo "$ac_t""no" 1>&6
2392 fi
2393
2394
2395 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2396 echo "configure:2397: checking for inet_aton in -lresolv" >&5
2397 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399   echo $ac_n "(cached) $ac_c" 1>&6
2400 else
2401   ac_save_LIBS="$LIBS"
2402 LIBS="-lresolv  $LIBS"
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error.  */
2407 /* We use char because int might match the return type of a gcc2
2408     builtin and then its argument prototype would still apply.  */
2409 char inet_aton();
2410
2411 int main() {
2412 inet_aton()
2413 ; return 0; }
2414 EOF
2415 if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416   rm -rf conftest*
2417   eval "ac_cv_lib_$ac_lib_var=yes"
2418 else
2419   echo "configure: failed program was:" >&5
2420   cat conftest.$ac_ext >&5
2421   rm -rf conftest*
2422   eval "ac_cv_lib_$ac_lib_var=no"
2423 fi
2424 rm -f conftest*
2425 LIBS="$ac_save_LIBS"
2426
2427 fi
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429   echo "$ac_t""yes" 1>&6
2430     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2431     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2432   cat >> confdefs.h <<EOF
2433 #define $ac_tr_lib 1
2434 EOF
2435
2436   LIBS="-lresolv $LIBS"
2437
2438 else
2439   echo "$ac_t""no" 1>&6
2440 fi
2441
2442
2443 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2444 echo "configure:2445: checking for inet_ntoa in -lnsl" >&5
2445 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2447   echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2449   ac_save_LIBS="$LIBS"
2450 LIBS="-lnsl  $LIBS"
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2454 /* Override any gcc2 internal prototype to avoid an error.  */
2455 /* We use char because int might match the return type of a gcc2
2456     builtin and then its argument prototype would still apply.  */
2457 char inet_ntoa();
2458
2459 int main() {
2460 inet_ntoa()
2461 ; return 0; }
2462 EOF
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464   rm -rf conftest*
2465   eval "ac_cv_lib_$ac_lib_var=yes"
2466 else
2467   echo "configure: failed program was:" >&5
2468   cat conftest.$ac_ext >&5
2469   rm -rf conftest*
2470   eval "ac_cv_lib_$ac_lib_var=no"
2471 fi
2472 rm -f conftest*
2473 LIBS="$ac_save_LIBS"
2474
2475 fi
2476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2477   echo "$ac_t""yes" 1>&6
2478     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2479     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2480   cat >> confdefs.h <<EOF
2481 #define $ac_tr_lib 1
2482 EOF
2483
2484   LIBS="-lnsl $LIBS"
2485
2486 else
2487   echo "$ac_t""no" 1>&6
2488 fi
2489
2490
2491
2492 ac_header_dirent=no
2493 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2494 do
2495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2496 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2497 echo "configure:2498: checking for $ac_hdr that defines DIR" >&5
2498 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2499   echo $ac_n "(cached) $ac_c" 1>&6
2500 else
2501   cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <sys/types.h>
2505 #include <$ac_hdr>
2506 int main() {
2507 DIR *dirp = 0;
2508 ; return 0; }
2509 EOF
2510 if { (eval echo configure:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2511   rm -rf conftest*
2512   eval "ac_cv_header_dirent_$ac_safe=yes"
2513 else
2514   echo "configure: failed program was:" >&5
2515   cat conftest.$ac_ext >&5
2516   rm -rf conftest*
2517   eval "ac_cv_header_dirent_$ac_safe=no"
2518 fi
2519 rm -f conftest*
2520 fi
2521 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2522   echo "$ac_t""yes" 1>&6
2523     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2524   cat >> confdefs.h <<EOF
2525 #define $ac_tr_hdr 1
2526 EOF
2527  ac_header_dirent=$ac_hdr; break
2528 else
2529   echo "$ac_t""no" 1>&6
2530 fi
2531 done
2532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2533 if test $ac_header_dirent = dirent.h; then
2534 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2535 echo "configure:2536: checking for opendir in -ldir" >&5
2536 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2538   echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540   ac_save_LIBS="$LIBS"
2541 LIBS="-ldir  $LIBS"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 /* Override any gcc2 internal prototype to avoid an error.  */
2546 /* We use char because int might match the return type of a gcc2
2547     builtin and then its argument prototype would still apply.  */
2548 char opendir();
2549
2550 int main() {
2551 opendir()
2552 ; return 0; }
2553 EOF
2554 if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555   rm -rf conftest*
2556   eval "ac_cv_lib_$ac_lib_var=yes"
2557 else
2558   echo "configure: failed program was:" >&5
2559   cat conftest.$ac_ext >&5
2560   rm -rf conftest*
2561   eval "ac_cv_lib_$ac_lib_var=no"
2562 fi
2563 rm -f conftest*
2564 LIBS="$ac_save_LIBS"
2565
2566 fi
2567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2568   echo "$ac_t""yes" 1>&6
2569   LIBS="$LIBS -ldir"
2570 else
2571   echo "$ac_t""no" 1>&6
2572 fi
2573
2574 else
2575 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2576 echo "configure:2577: checking for opendir in -lx" >&5
2577 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2579   echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2581   ac_save_LIBS="$LIBS"
2582 LIBS="-lx  $LIBS"
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* Override any gcc2 internal prototype to avoid an error.  */
2587 /* We use char because int might match the return type of a gcc2
2588     builtin and then its argument prototype would still apply.  */
2589 char opendir();
2590
2591 int main() {
2592 opendir()
2593 ; return 0; }
2594 EOF
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2596   rm -rf conftest*
2597   eval "ac_cv_lib_$ac_lib_var=yes"
2598 else
2599   echo "configure: failed program was:" >&5
2600   cat conftest.$ac_ext >&5
2601   rm -rf conftest*
2602   eval "ac_cv_lib_$ac_lib_var=no"
2603 fi
2604 rm -f conftest*
2605 LIBS="$ac_save_LIBS"
2606
2607 fi
2608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2609   echo "$ac_t""yes" 1>&6
2610   LIBS="$LIBS -lx"
2611 else
2612   echo "$ac_t""no" 1>&6
2613 fi
2614
2615 fi
2616
2617 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2618 echo "configure:2619: checking for ANSI C header files" >&5
2619 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2620   echo $ac_n "(cached) $ac_c" 1>&6
2621 else
2622   cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 #include <stdlib.h>
2626 #include <stdarg.h>
2627 #include <string.h>
2628 #include <float.h>
2629 EOF
2630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2634   rm -rf conftest*
2635   ac_cv_header_stdc=yes
2636 else
2637   echo "$ac_err" >&5
2638   echo "configure: failed program was:" >&5
2639   cat conftest.$ac_ext >&5
2640   rm -rf conftest*
2641   ac_cv_header_stdc=no
2642 fi
2643 rm -f conftest*
2644
2645 if test $ac_cv_header_stdc = yes; then
2646   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <string.h>
2651 EOF
2652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2653   egrep "memchr" >/dev/null 2>&1; then
2654   :
2655 else
2656   rm -rf conftest*
2657   ac_cv_header_stdc=no
2658 fi
2659 rm -f conftest*
2660
2661 fi
2662
2663 if test $ac_cv_header_stdc = yes; then
2664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <stdlib.h>
2669 EOF
2670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2671   egrep "free" >/dev/null 2>&1; then
2672   :
2673 else
2674   rm -rf conftest*
2675   ac_cv_header_stdc=no
2676 fi
2677 rm -f conftest*
2678
2679 fi
2680
2681 if test $ac_cv_header_stdc = yes; then
2682   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2683 if test "$cross_compiling" = yes; then
2684   :
2685 else
2686   cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 #include <ctype.h>
2690 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2691 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2693 int main () { int i; for (i = 0; i < 256; i++)
2694 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2695 exit (0); }
2696
2697 EOF
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2699 then
2700   :
2701 else
2702   echo "configure: failed program was:" >&5
2703   cat conftest.$ac_ext >&5
2704   rm -fr conftest*
2705   ac_cv_header_stdc=no
2706 fi
2707 rm -fr conftest*
2708 fi
2709
2710 fi
2711 fi
2712
2713 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2714 if test $ac_cv_header_stdc = yes; then
2715   cat >> confdefs.h <<\EOF
2716 #define STDC_HEADERS 1
2717 EOF
2718
2719 fi
2720
2721 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2722 echo "configure:2723: checking whether time.h and sys/time.h may both be included" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2724   echo $ac_n "(cached) $ac_c" 1>&6
2725 else
2726   cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <sys/types.h>
2730 #include <sys/time.h>
2731 #include <time.h>
2732 int main() {
2733 struct tm *tp;
2734 ; return 0; }
2735 EOF
2736 if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2737   rm -rf conftest*
2738   ac_cv_header_time=yes
2739 else
2740   echo "configure: failed program was:" >&5
2741   cat conftest.$ac_ext >&5
2742   rm -rf conftest*
2743   ac_cv_header_time=no
2744 fi
2745 rm -f conftest*
2746 fi
2747
2748 echo "$ac_t""$ac_cv_header_time" 1>&6
2749 if test $ac_cv_header_time = yes; then
2750   cat >> confdefs.h <<\EOF
2751 #define TIME_WITH_SYS_TIME 1
2752 EOF
2753
2754 fi
2755
2756 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2757 echo "configure:2758: checking for sys/wait.h that is POSIX.1 compatible" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2759   echo $ac_n "(cached) $ac_c" 1>&6
2760 else
2761   cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <sys/types.h>
2765 #include <sys/wait.h>
2766 #ifndef WEXITSTATUS
2767 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2768 #endif
2769 #ifndef WIFEXITED
2770 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2771 #endif
2772 int main() {
2773 int s;
2774 wait (&s);
2775 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2776 ; return 0; }
2777 EOF
2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2779   rm -rf conftest*
2780   ac_cv_header_sys_wait_h=yes
2781 else
2782   echo "configure: failed program was:" >&5
2783   cat conftest.$ac_ext >&5
2784   rm -rf conftest*
2785   ac_cv_header_sys_wait_h=no
2786 fi
2787 rm -f conftest*
2788 fi
2789
2790 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2791 if test $ac_cv_header_sys_wait_h = yes; then
2792   cat >> confdefs.h <<\EOF
2793 #define HAVE_SYS_WAIT_H 1
2794 EOF
2795
2796 fi
2797
2798
2799 for ac_hdr in \
2800         unistd.h \
2801         crypt.h \
2802         errno.h \
2803         resource.h \
2804         getopt.h \
2805         malloc.h \
2806         utmp.h \
2807         utmpx.h \
2808         signal.h \
2809         sys/select.h \
2810         syslog.h \
2811         inttypes.h \
2812         stdint.h \
2813         stdio.h \
2814         netdb.h \
2815         semaphore.h \
2816         arpa/inet.h \
2817         netinet/in.h \
2818         sys/types.h \
2819         sys/socket.h \
2820         sys/time.h \
2821         sys/security.h \
2822         prot.h \
2823         sia.h \
2824         siad.h
2825
2826 do
2827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_hdr" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831   echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833   cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <$ac_hdr>
2837 EOF
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2842   rm -rf conftest*
2843   eval "ac_cv_header_$ac_safe=yes"
2844 else
2845   echo "$ac_err" >&5
2846   echo "configure: failed program was:" >&5
2847   cat conftest.$ac_ext >&5
2848   rm -rf conftest*
2849   eval "ac_cv_header_$ac_safe=no"
2850 fi
2851 rm -f conftest*
2852 fi
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854   echo "$ac_t""yes" 1>&6
2855     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2856   cat >> confdefs.h <<EOF
2857 #define $ac_tr_hdr 1
2858 EOF
2859  
2860 else
2861   echo "$ac_t""no" 1>&6
2862 fi
2863 done
2864
2865
2866 REGEX=no
2867 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2868 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2869 echo "configure:2870: checking for regex.h" >&5
2870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2871   echo $ac_n "(cached) $ac_c" 1>&6
2872 else
2873   cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 #include <regex.h>
2877 EOF
2878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2879 { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2881 if test -z "$ac_err"; then
2882   rm -rf conftest*
2883   eval "ac_cv_header_$ac_safe=yes"
2884 else
2885   echo "$ac_err" >&5
2886   echo "configure: failed program was:" >&5
2887   cat conftest.$ac_ext >&5
2888   rm -rf conftest*
2889   eval "ac_cv_header_$ac_safe=no"
2890 fi
2891 rm -f conftest*
2892 fi
2893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2894   echo "$ac_t""yes" 1>&6
2895   cat >> confdefs.h <<\EOF
2896 #define HAVE_REGEX_H 1
2897 EOF
2898
2899 else
2900   echo "$ac_t""no" 1>&6
2901 fi
2902
2903 if test "x$ac_cv_header_regex_h" = "xyes"; then
2904   REGEX_EXTENDED=no
2905   REGEX=yes
2906   cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2909 #include <regex.h>
2910      #ifdef REG_EXTENDED
2911        yes
2912      #endif
2913      
2914 EOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916   egrep "yes" >/dev/null 2>&1; then
2917   rm -rf conftest*
2918   cat >> confdefs.h <<\EOF
2919 #define HAVE_REG_EXTENDED 1
2920 EOF
2921  REGEX_EXTENDED=yes
2922 fi
2923 rm -f conftest*
2924
2925 fi
2926
2927
2928
2929 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
2930 then
2931   cat >> confdefs.h <<\EOF
2932 #define OSFC2 1
2933 EOF
2934
2935 fi
2936
2937 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
2938 then
2939   cat >> confdefs.h <<\EOF
2940 #define OSFSIA 1
2941 EOF
2942
2943 fi
2944
2945
2946
2947 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2948 echo "configure:2949: checking for off_t" >&5
2949 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2950   echo $ac_n "(cached) $ac_c" 1>&6
2951 else
2952   cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <sys/types.h>
2956 #if STDC_HEADERS
2957 #include <stdlib.h>
2958 #include <stddef.h>
2959 #endif
2960 EOF
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2963   rm -rf conftest*
2964   ac_cv_type_off_t=yes
2965 else
2966   rm -rf conftest*
2967   ac_cv_type_off_t=no
2968 fi
2969 rm -f conftest*
2970
2971 fi
2972 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2973 if test $ac_cv_type_off_t = no; then
2974   cat >> confdefs.h <<\EOF
2975 #define off_t long
2976 EOF
2977
2978 fi
2979  
2980 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2981 echo "configure:2982: checking for pid_t" >&5
2982 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2983   echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985   cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2989 #if STDC_HEADERS
2990 #include <stdlib.h>
2991 #include <stddef.h>
2992 #endif
2993 EOF
2994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2995   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2996   rm -rf conftest*
2997   ac_cv_type_pid_t=yes
2998 else
2999   rm -rf conftest*
3000   ac_cv_type_pid_t=no
3001 fi
3002 rm -f conftest*
3003
3004 fi
3005 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3006 if test $ac_cv_type_pid_t = no; then
3007   cat >> confdefs.h <<\EOF
3008 #define pid_t int
3009 EOF
3010
3011 fi
3012
3013 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3014 echo "configure:3015: checking for size_t" >&5
3015 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3016   echo $ac_n "(cached) $ac_c" 1>&6
3017 else
3018   cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3022 #if STDC_HEADERS
3023 #include <stdlib.h>
3024 #include <stddef.h>
3025 #endif
3026 EOF
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3029   rm -rf conftest*
3030   ac_cv_type_size_t=yes
3031 else
3032   rm -rf conftest*
3033   ac_cv_type_size_t=no
3034 fi
3035 rm -f conftest*
3036
3037 fi
3038 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3039 if test $ac_cv_type_size_t = no; then
3040   cat >> confdefs.h <<\EOF
3041 #define size_t unsigned
3042 EOF
3043
3044 fi
3045
3046 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3047 echo "configure:3048: checking for uid_t in sys/types.h" >&5
3048 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3049   echo $ac_n "(cached) $ac_c" 1>&6
3050 else
3051   cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <sys/types.h>
3055 EOF
3056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3057   egrep "uid_t" >/dev/null 2>&1; then
3058   rm -rf conftest*
3059   ac_cv_type_uid_t=yes
3060 else
3061   rm -rf conftest*
3062   ac_cv_type_uid_t=no
3063 fi
3064 rm -f conftest*
3065
3066 fi
3067
3068 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3069 if test $ac_cv_type_uid_t = no; then
3070   cat >> confdefs.h <<\EOF
3071 #define uid_t int
3072 EOF
3073
3074   cat >> confdefs.h <<\EOF
3075 #define gid_t int
3076 EOF
3077
3078 fi
3079
3080
3081
3082   echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3083 echo "configure:3084: checking for socklen_t" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3085   echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087    ac_cv_type_socklen_t=no
3088       cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 #ifdef HAVE_SYS_TYPES_H
3092 #include <sys/types.h>
3093 #endif
3094 #ifdef HAVE_SYS_SOCKET_H
3095 #include <sys/socket.h>
3096 #endif
3097
3098 int main() {
3099 socklen_t foo
3100 ; return 0; }
3101 EOF
3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3103   rm -rf conftest*
3104   ac_cv_type_socklen_t=yes
3105 else
3106   echo "configure: failed program was:" >&5
3107   cat conftest.$ac_ext >&5
3108 fi
3109 rm -f conftest*
3110     
3111   
3112 fi
3113
3114 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3115
3116   if test "$ac_cv_type_socklen_t" != "yes"; then
3117          cat >> confdefs.h <<\EOF
3118 #define socklen_t int
3119 EOF
3120
3121   fi
3122
3123
3124
3125   echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3126 echo "configure:3127: checking for uint8_t" >&5
3127 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3128   echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130    ac_cv_type_uint8_t=no
3131       cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #ifdef HAVE_INTTYPES_H
3135 #include <inttypes.h>
3136 #endif
3137 #ifdef HAVE_STDINT_H
3138 #include <stdint.h>
3139 #endif
3140
3141 int main() {
3142 uint8_t foo
3143 ; return 0; }
3144 EOF
3145 if { (eval echo configure:3146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3146   rm -rf conftest*
3147   ac_cv_type_uint8_t=yes
3148 else
3149   echo "configure: failed program was:" >&5
3150   cat conftest.$ac_ext >&5
3151 fi
3152 rm -f conftest*
3153     
3154   
3155 fi
3156
3157 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3158
3159   if test "$ac_cv_type_uint8_t" != "yes"; then
3160          cat >> confdefs.h <<\EOF
3161 #define uint8_t unsigned char
3162 EOF
3163
3164   fi
3165
3166
3167
3168   echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3169 echo "configure:3170: checking for uint32_t" >&5
3170 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3171   echo $ac_n "(cached) $ac_c" 1>&6
3172 else
3173    ac_cv_type_uint32_t=no
3174       cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #ifdef HAVE_INTTYPES_H
3178 #include <inttypes.h>
3179 #endif
3180 #ifdef HAVE_STDINT_H
3181 #include <stdint.h>
3182 #endif
3183
3184 int main() {
3185 uint32_t foo
3186 ; return 0; }
3187 EOF
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189   rm -rf conftest*
3190   ac_cv_type_uint32_t=yes
3191 else
3192   echo "configure: failed program was:" >&5
3193   cat conftest.$ac_ext >&5
3194 fi
3195 rm -f conftest*
3196     
3197   
3198 fi
3199
3200 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3201
3202   if test "$ac_cv_type_uint32_t" != "yes"; then
3203          cat >> confdefs.h <<\EOF
3204 #define uint32_t unsigned int
3205 EOF
3206
3207   fi
3208
3209
3210 for ac_func in \
3211         getopt_long \
3212         lockf \
3213         strsignal \
3214         sigaction \
3215         sigprocmask \
3216         pthread_sigmask \
3217         snprintf \
3218         vsnprintf \
3219         setsid \
3220         strncasecmp \
3221         strcasecmp \
3222         strsep \
3223         inet_aton \
3224         gethostname \
3225         setlinebuf \
3226         setvbuf \
3227         sem_init \
3228         getusershell
3229
3230 do
3231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_func" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3234   echo $ac_n "(cached) $ac_c" 1>&6
3235 else
3236   cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240     which can conflict with char $ac_func(); below.  */
3241 #include <assert.h>
3242 /* Override any gcc2 internal prototype to avoid an error.  */
3243 /* We use char because int might match the return type of a gcc2
3244     builtin and then its argument prototype would still apply.  */
3245 char $ac_func();
3246
3247 int main() {
3248
3249 /* The GNU C library defines this for functions which it implements
3250     to always fail with ENOSYS.  Some functions are actually named
3251     something starting with __ and the normal name is an alias.  */
3252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3253 choke me
3254 #else
3255 $ac_func();
3256 #endif
3257
3258 ; return 0; }
3259 EOF
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261   rm -rf conftest*
3262   eval "ac_cv_func_$ac_func=yes"
3263 else
3264   echo "configure: failed program was:" >&5
3265   cat conftest.$ac_ext >&5
3266   rm -rf conftest*
3267   eval "ac_cv_func_$ac_func=no"
3268 fi
3269 rm -f conftest*
3270 fi
3271
3272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3273   echo "$ac_t""yes" 1>&6
3274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3275   cat >> confdefs.h <<EOF
3276 #define $ac_tr_func 1
3277 EOF
3278  
3279 else
3280   echo "$ac_t""no" 1>&6
3281 fi
3282 done
3283
3284 for ac_func in \
3285         crypt \
3286         strncasecmp \
3287         strcasecmp \
3288         inet_aton \
3289         gethostname \
3290         setlinebuf \
3291         getusershell \
3292         endusershell
3293
3294 do
3295 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3296 echo "configure:3297: checking whether $ac_func must be declared" >&5
3297 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3298   echo $ac_n "(cached) $ac_c" 1>&6
3299 else
3300   cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303
3304 #include <stdio.h>
3305 #include <string.h>
3306 #ifdef HAVE_UNISTD_H
3307 #include <unistd.h>
3308 #endif
3309 #ifdef HAVE_CRYPT_H
3310 #include <crypt.h>
3311 #endif
3312 #ifdef HAVE_ERRNO_H
3313 #include <errno.h>
3314 #endif
3315 #ifdef HAVE_RESOURCE_H
3316 #include <resource.h>
3317 #endif
3318 #ifdef HAVE_GETOPT_H
3319 #include <getopt.h>
3320 #endif
3321 #ifdef HAVE_MALLOC_H
3322 #include <malloc.h>
3323 #endif
3324 #ifdef HAVE_UTMP_H
3325 #include <utmp.h>
3326 #endif
3327 #ifdef HAVE_UTMPX_H
3328 #include <utmpx.h>
3329 #endif
3330 #ifdef HAVE_SYS_SELECT_H
3331 #include <sys/select.h>
3332 #endif
3333 #ifdef HAVE_DLFCN_H
3334 #include <dlfcn.h>
3335 #endif
3336 #ifdef HAVE_REGEX_H
3337 #include <regex.h>
3338 #endif
3339 #ifdef HAVE_SYSLOG_H
3340 #include <syslog.h>
3341 #endif
3342 #ifdef HAVE_INTTYPES_H
3343 #include <inttypes.h>
3344 #endif
3345 #ifdef HAVE_STDINT_H
3346 #include <stdint.h>
3347 #endif
3348 #ifdef HAVE_ARPA_INET_H
3349 #include <arpa/inet.h>
3350 #endif
3351
3352 int main() {
3353 char *(*pfn) = (char *(*)) $ac_func
3354 ; return 0; }
3355 EOF
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357   rm -rf conftest*
3358   eval "radius_cv_decl_needed_$ac_func=no"
3359 else
3360   echo "configure: failed program was:" >&5
3361   cat conftest.$ac_ext >&5
3362   rm -rf conftest*
3363   eval "radius_cv_decl_needed_$ac_func=yes"
3364 fi
3365 rm -f conftest*
3366 fi
3367
3368 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3369   echo "$ac_t""yes" 1>&6
3370   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3371   cat >> confdefs.h <<EOF
3372 #define $radius_tr_decl 1
3373 EOF
3374
3375 else
3376   echo "$ac_t""no" 1>&6
3377 fi
3378
3379 done
3380
3381
3382 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3383 echo "configure:3384: checking return type of signal handlers" >&5
3384 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3385   echo $ac_n "(cached) $ac_c" 1>&6
3386 else
3387   cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <sys/types.h>
3391 #include <signal.h>
3392 #ifdef signal
3393 #undef signal
3394 #endif
3395 #ifdef __cplusplus
3396 extern "C" void (*signal (int, void (*)(int)))(int);
3397 #else
3398 void (*signal ()) ();
3399 #endif
3400
3401 int main() {
3402 int i;
3403 ; return 0; }
3404 EOF
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3406   rm -rf conftest*
3407   ac_cv_type_signal=void
3408 else
3409   echo "configure: failed program was:" >&5
3410   cat conftest.$ac_ext >&5
3411   rm -rf conftest*
3412   ac_cv_type_signal=int
3413 fi
3414 rm -f conftest*
3415 fi
3416
3417 echo "$ac_t""$ac_cv_type_signal" 1>&6
3418 cat >> confdefs.h <<EOF
3419 #define RETSIGTYPE $ac_cv_type_signal
3420 EOF
3421
3422
3423
3424 if test "x$ac_cv_header_utmpx_h" = "xyes"
3425 then
3426  
3427   echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
3428 echo "configure:3429: checking for ut_xtime in struct utmpx" >&5
3429
3430
3431   cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434
3435 #include <utmpx.h>
3436 #ifndef offsetof
3437 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
3438 #endif
3439
3440 int main() {
3441  int foo = offsetof(struct utmpx, ut_xtime) 
3442 ; return 0; }
3443 EOF
3444 if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445   rm -rf conftest*
3446   has_element=" "
3447 else
3448   echo "configure: failed program was:" >&5
3449   cat conftest.$ac_ext >&5
3450   rm -rf conftest*
3451   has_element=
3452 fi
3453 rm -f conftest*
3454
3455   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
3456   if test "x$has_element" != "x"; then
3457     echo "$ac_t""yes" 1>&6
3458     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
3459   else
3460     echo "$ac_t""no" 1>&6 
3461     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
3462  fi
3463
3464  if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
3465  then
3466    cat >> confdefs.h <<\EOF
3467 #define ut_xtime ut_tv.tv_sec
3468 EOF
3469
3470  fi
3471 fi
3472
3473
3474 echo $ac_n "checking for working const""... $ac_c" 1>&6
3475 echo "configure:3476: checking for working const" >&5
3476 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3477   echo $ac_n "(cached) $ac_c" 1>&6
3478 else
3479   cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482
3483 int main() {
3484
3485 /* Ultrix mips cc rejects this.  */
3486 typedef int charset[2]; const charset x;
3487 /* SunOS 4.1.1 cc rejects this.  */
3488 char const *const *ccp;
3489 char **p;
3490 /* NEC SVR4.0.2 mips cc rejects this.  */
3491 struct point {int x, y;};
3492 static struct point const zero = {0,0};
3493 /* AIX XL C 1.02.0.0 rejects this.
3494    It does not let you subtract one const X* pointer from another in an arm
3495    of an if-expression whose if-part is not a constant expression */
3496 const char *g = "string";
3497 ccp = &g + (g ? g-g : 0);
3498 /* HPUX 7.0 cc rejects these. */
3499 ++ccp;
3500 p = (char**) ccp;
3501 ccp = (char const *const *) p;
3502 { /* SCO 3.2v4 cc rejects this.  */
3503   char *t;
3504   char const *s = 0 ? (char *) 0 : (char const *) 0;
3505
3506   *t++ = 0;
3507 }
3508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3509   int x[] = {25, 17};
3510   const int *foo = &x[0];
3511   ++foo;
3512 }
3513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3514   typedef const int *iptr;
3515   iptr p = 0;
3516   ++p;
3517 }
3518 { /* AIX XL C 1.02.0.0 rejects this saying
3519      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3520   struct s { int j; const int *ap[3]; };
3521   struct s *b; b->j = 5;
3522 }
3523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3524   const int foo = 10;
3525 }
3526
3527 ; return 0; }
3528 EOF
3529 if { (eval echo configure:3530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3530   rm -rf conftest*
3531   ac_cv_c_const=yes
3532 else
3533   echo "configure: failed program was:" >&5
3534   cat conftest.$ac_ext >&5
3535   rm -rf conftest*
3536   ac_cv_c_const=no
3537 fi
3538 rm -f conftest*
3539 fi
3540
3541 echo "$ac_t""$ac_cv_c_const" 1>&6
3542 if test $ac_cv_c_const = no; then
3543   cat >> confdefs.h <<\EOF
3544 #define const 
3545 EOF
3546
3547 fi
3548  
3549
3550 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3551 echo "configure:3552: checking type of OS" >&5
3552 OS=`uname -s`
3553 echo "$ac_t""$OS" 1>&6
3554 if test "$OS" = "OS/2"; then
3555         LIBPREFIX=
3556 else
3557         LIBPREFIX=lib
3558 fi
3559
3560
3561 if test "x$GCC" = "xyes"; then
3562     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3563 fi
3564
3565 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3566 echo "configure:3567: checking for developer gcc flags" >&5
3567 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3568   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3569   CFLAGS="$CFLAGS $devflags"
3570   INSTALLSTRIP=""
3571   echo "$ac_t""yes.  Using $devflags" 1>&6
3572 else
3573   devflags=""
3574   CFLAGS="$CFLAGS -DNDEBUG"
3575   INSTALLSTRIP="-s"
3576   echo "$ac_t""no." 1>&6
3577 fi
3578
3579
3580 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3581 echo "configure:3582: checking for crypt in -lcrypt" >&5
3582 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3584   echo $ac_n "(cached) $ac_c" 1>&6
3585 else
3586   ac_save_LIBS="$LIBS"
3587 LIBS="-lcrypt  $LIBS"
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* Override any gcc2 internal prototype to avoid an error.  */
3592 /* We use char because int might match the return type of a gcc2
3593     builtin and then its argument prototype would still apply.  */
3594 char crypt();
3595
3596 int main() {
3597 crypt()
3598 ; return 0; }
3599 EOF
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601   rm -rf conftest*
3602   eval "ac_cv_lib_$ac_lib_var=yes"
3603 else
3604   echo "configure: failed program was:" >&5
3605   cat conftest.$ac_ext >&5
3606   rm -rf conftest*
3607   eval "ac_cv_lib_$ac_lib_var=no"
3608 fi
3609 rm -f conftest*
3610 LIBS="$ac_save_LIBS"
3611
3612 fi
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614   echo "$ac_t""yes" 1>&6
3615   CRYPTLIB="-lcrypt"
3616
3617 else
3618   echo "$ac_t""no" 1>&6
3619 fi
3620
3621
3622 if test "$CRYPTLIB" != ""; then
3623   cat >> confdefs.h <<\EOF
3624 #define HAVE_CRYPT 1
3625 EOF
3626
3627 else
3628   echo $ac_n "checking for crypt""... $ac_c" 1>&6
3629 echo "configure:3630: checking for crypt" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3631   echo $ac_n "(cached) $ac_c" 1>&6
3632 else
3633   cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637     which can conflict with char crypt(); below.  */
3638 #include <assert.h>
3639 /* Override any gcc2 internal prototype to avoid an error.  */
3640 /* We use char because int might match the return type of a gcc2
3641     builtin and then its argument prototype would still apply.  */
3642 char crypt();
3643
3644 int main() {
3645
3646 /* The GNU C library defines this for functions which it implements
3647     to always fail with ENOSYS.  Some functions are actually named
3648     something starting with __ and the normal name is an alias.  */
3649 #if defined (__stub_crypt) || defined (__stub___crypt)
3650 choke me
3651 #else
3652 crypt();
3653 #endif
3654
3655 ; return 0; }
3656 EOF
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3658   rm -rf conftest*
3659   eval "ac_cv_func_crypt=yes"
3660 else
3661   echo "configure: failed program was:" >&5
3662   cat conftest.$ac_ext >&5
3663   rm -rf conftest*
3664   eval "ac_cv_func_crypt=no"
3665 fi
3666 rm -f conftest*
3667 fi
3668
3669 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3670   echo "$ac_t""yes" 1>&6
3671   cat >> confdefs.h <<\EOF
3672 #define HAVE_CRYPT 1
3673 EOF
3674
3675 else
3676   echo "$ac_t""no" 1>&6
3677 fi
3678
3679 fi
3680
3681 if test "x$WITH_SNMP" = "xyes"; then
3682   
3683         
3684         
3685
3686 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3687 echo "configure:3688: checking for asn1.h" >&5
3688
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692
3693 #ifdef HAVE_SYS_TYPES_H
3694 #include <sys/types.h>
3695 #endif
3696 #ifdef HAVE_STDINT_H
3697 #include <stdint.h>
3698 #endif
3699 #ifdef HAVE_STDIO_H
3700 #include <stdio.h>
3701 #endif
3702 #ifdef HAVE_NETDB_H
3703 #include <netdb.h>
3704 #endif
3705 #ifdef HAVE_UNISTD_H
3706 #include <unistd.h>
3707 #endif
3708 #include <asn1.h>
3709 int main() {
3710  int a = 1;
3711 ; return 0; }
3712 EOF
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714   rm -rf conftest*
3715   SNMP_INCLUDE=""
3716 else
3717   echo "configure: failed program was:" >&5
3718   cat conftest.$ac_ext >&5
3719   rm -rf conftest*
3720   SNMP_INCLUDE=
3721 fi
3722 rm -f conftest*
3723
3724 if test "x$SNMP_INCLUDE" = "x"; then
3725   old_CFLAGS="$CFLAGS"
3726   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3727     CFLAGS="$old_CFLAGS -I$try"
3728     cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731
3732 #ifdef HAVE_SYS_TYPES_H
3733 #include <sys/types.h>
3734 #endif
3735 #ifdef HAVE_STDINT_H
3736 #include <stdint.h>
3737 #endif
3738 #ifdef HAVE_STDIO_H
3739 #include <stdio.h>
3740 #endif
3741 #ifdef HAVE_NETDB_H
3742 #include <netdb.h>
3743 #endif
3744 #ifdef HAVE_UNISTD_H
3745 #include <unistd.h>
3746 #endif
3747 #include <asn1.h>
3748 int main() {
3749  int a = 1;
3750 ; return 0; }
3751 EOF
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753   rm -rf conftest*
3754   SNMP_INCLUDE="-I$try"
3755 else
3756   echo "configure: failed program was:" >&5
3757   cat conftest.$ac_ext >&5
3758   rm -rf conftest*
3759   SNMP_INCLUDE=
3760 fi
3761 rm -f conftest*
3762     if test "x$SNMP_INCLUDE" != "x"; then
3763       break;
3764     fi
3765   done
3766   CFLAGS="$old_CFLAGS"
3767 fi
3768
3769 if test "x$SNMP_INCLUDE" = "x"; then
3770   echo "$ac_t""no" 1>&6
3771 else
3772   echo "$ac_t""yes" 1>&6
3773   cat >> confdefs.h <<\EOF
3774 #define HAVE_ASN1_H 1
3775 EOF
3776
3777   
3778   old_CFLAGS="$CFLAGS"
3779   CFLAGS="$CFLAGS $SNMP_INCLUDE"
3780
3781   echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3782 echo "configure:3783: checking for snmp.h" >&5
3783     cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786
3787 #ifdef HAVE_SYS_TYPES_H
3788 #include <sys/types.h>
3789 #endif
3790 #ifdef HAVE_STDINT_H
3791 #include <stdint.h>
3792 #endif
3793 #ifdef HAVE_STDIO_H
3794 #include <stdio.h>
3795 #endif
3796 #ifdef HAVE_NETDB_H
3797 #include <netdb.h>
3798 #endif
3799 #ifdef HAVE_UNISTD_H
3800 #include <unistd.h>
3801 #endif
3802 #ifdef HAVE_ASN1_H
3803 #include <asn1.h>
3804 #endif
3805 #include <snmp.h>
3806 int main() {
3807  int a = 1;
3808 ; return 0; }
3809 EOF
3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3811   rm -rf conftest*
3812   cat >> confdefs.h <<\EOF
3813 #define HAVE_SNMP_H 1
3814 EOF
3815  ac_cv_header_snmp_h=yes
3816 else
3817   echo "configure: failed program was:" >&5
3818   cat conftest.$ac_ext >&5
3819 fi
3820 rm -f conftest*
3821     if test "x$ac_cv_header_snmp_h" = "xyes"; then
3822       echo "$ac_t""yes" 1>&6
3823     else
3824       echo "$ac_t""no" 1>&6
3825     fi
3826
3827     echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3828 echo "configure:3829: checking for snmp_impl.h" >&5
3829     cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832
3833 #ifdef HAVE_SYS_TYPES_H
3834 #include <sys/types.h>
3835 #endif
3836 #ifdef HAVE_STDINT_H
3837 #include <stdint.h>
3838 #endif
3839 #ifdef HAVE_STDIO_H
3840 #include <stdio.h>
3841 #endif
3842 #ifdef HAVE_NETDB_H
3843 #include <netdb.h>
3844 #endif
3845 #ifdef HAVE_UNISTD_H
3846 #include <unistd.h>
3847 #endif
3848 #ifdef HAVE_ASN1_H
3849 #include <asn1.h>
3850 #endif
3851 #ifdef HAVE_SNMP_H
3852 #include <snmp.h>
3853 #endif
3854 #include <snmp_impl.h>
3855 int main() {
3856  int a = 1;
3857 ; return 0; }
3858 EOF
3859 if { (eval echo configure:3860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3860   rm -rf conftest*
3861   cat >> confdefs.h <<\EOF
3862 #define HAVE_SNMP_IMPL_H 1
3863 EOF
3864  ac_cv_header_snmp_impl_h=yes
3865 else
3866   echo "configure: failed program was:" >&5
3867   cat conftest.$ac_ext >&5
3868 fi
3869 rm -f conftest*
3870     if test "x$ac_cv_header_snmp_h" = "xyes"; then
3871       echo "$ac_t""yes" 1>&6
3872     else
3873       echo "$ac_t""no" 1>&6
3874     fi
3875
3876   echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3877 echo "configure:3878: checking for snmp_build_var_op in -lsnmp" >&5
3878
3879   old_LIBS="$LIBS"
3880   LIBS="$old_LIBS -lsnmp"
3881   cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 extern char snmp_build_var_op();
3885 int main() {
3886  snmp_build_var_op()
3887 ; return 0; }
3888 EOF
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890   rm -rf conftest*
3891   SNMP_LIBS="-lsnmp"
3892 else
3893   echo "configure: failed program was:" >&5
3894   cat conftest.$ac_ext >&5
3895   rm -rf conftest*
3896   SNMP_LIBS=
3897 fi
3898 rm -f conftest*
3899
3900   if test "x$SNMP_LIBS" = "x"; then
3901     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3902       LIBS="$old_LIBS -L$try -lsnmp"
3903       cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 extern char snmp_build_var_op();
3907 int main() {
3908  snmp_build_var_op()
3909 ; return 0; }
3910 EOF
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912   rm -rf conftest*
3913   SNMP_LIBS="-L$try -lsnmp"
3914 else
3915   echo "configure: failed program was:" >&5
3916   cat conftest.$ac_ext >&5
3917   rm -rf conftest*
3918   SNMP_LIBS=
3919 fi
3920 rm -f conftest*
3921       if test "x$SNMP_LIBS" != "x"; then
3922         break;
3923       fi
3924       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3925       cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 extern char snmp_build_var_op();
3929 int main() {
3930  snmp_build_var_op()
3931 ; return 0; }
3932 EOF
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934   rm -rf conftest*
3935   SNMP_LIBS="-L$try -lsnmp -lcrypto"
3936 else
3937   echo "configure: failed program was:" >&5
3938   cat conftest.$ac_ext >&5
3939   rm -rf conftest*
3940   SNMP_LIBS=
3941 fi
3942 rm -f conftest*
3943       if test "x$SNMP_LIBS" != "x"; then
3944         break;
3945       fi
3946     done
3947   fi
3948   LIBS="$old_LIBS"
3949
3950           CFLAGS="$old_CFLAGS"
3951   if test "x$SNMP_LIBS" = "x"; then
3952     echo "$ac_t""no" 1>&6
3953     SNMP_INCLUDE=
3954   else
3955     echo "$ac_t""yes" 1>&6
3956     cat >> confdefs.h <<\EOF
3957 #define WITH_SNMP 1
3958 EOF
3959
3960     cat >> confdefs.h <<\EOF
3961 #define HAVE_LIBSNMP 1
3962 EOF
3963
3964   fi
3965 fi
3966
3967 fi
3968
3969 if test "X$ac_cv_func_sem_init" = "Xno"; then
3970
3971  echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
3972 echo "configure:3973: checking for sem_init in -lposix4" >&5
3973 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
3974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3975   echo $ac_n "(cached) $ac_c" 1>&6
3976 else
3977   ac_save_LIBS="$LIBS"
3978 LIBS="-lposix4  $LIBS"
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 /* Override any gcc2 internal prototype to avoid an error.  */
3983 /* We use char because int might match the return type of a gcc2
3984     builtin and then its argument prototype would still apply.  */
3985 char sem_init();
3986
3987 int main() {
3988 sem_init()
3989 ; return 0; }
3990 EOF
3991 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992   rm -rf conftest*
3993   eval "ac_cv_lib_$ac_lib_var=yes"
3994 else
3995   echo "configure: failed program was:" >&5
3996   cat conftest.$ac_ext >&5
3997   rm -rf conftest*
3998   eval "ac_cv_lib_$ac_lib_var=no"
3999 fi
4000 rm -f conftest*
4001 LIBS="$ac_save_LIBS"
4002
4003 fi
4004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4005   echo "$ac_t""yes" 1>&6
4006     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4007     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4008   cat >> confdefs.h <<EOF
4009 #define $ac_tr_lib 1
4010 EOF
4011
4012   LIBS="-lposix4 $LIBS"
4013
4014 else
4015   echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019   if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
4020     if test "$WITH_THREAD_POOL" = "yes"; then
4021       echo "configure: warning: You do not have posix semaphores.  Disabling thread pools" 1>&2
4022     fi
4023     WITH_THREAD_POOL=no
4024   fi
4025 fi
4026
4027
4028         
4029         
4030
4031 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4032 echo "configure:4033: checking for isql.h" >&5
4033
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4037 #include <isql.h>
4038 int main() {
4039  int a = 1;
4040 ; return 0; }
4041 EOF
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4043   rm -rf conftest*
4044   ODBC_INCLUDE=" "
4045 else
4046   echo "configure: failed program was:" >&5
4047   cat conftest.$ac_ext >&5
4048   rm -rf conftest*
4049   ODBC_INCLUDE=
4050 fi
4051 rm -f conftest*
4052
4053 if test "x$ODBC_INCLUDE" = "x"; then
4054   old_CFLAGS="$CFLAGS"
4055
4056   
4057
4058 if test "x$LOCATE" != "x"; then
4059         DIRS=
4060   file=isql.h
4061
4062   for x in `${LOCATE} $file 2>/dev/null`; do
4063                                         base=`echo $x | sed "s%/${file}%%"`
4064     if test "x$x" = "x$base"; then
4065       continue;
4066     fi
4067
4068     dir=`${DIRNAME} $x 2>/dev/null`
4069                 exclude=`echo ${dir} | ${GREP} /home`
4070     if test "x$exclude" != "x"; then
4071       continue
4072     fi
4073
4074                     already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4075     if test "x$already" = "x"; then
4076       DIRS="$DIRS $dir"
4077     fi
4078   done
4079 fi
4080
4081 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4082
4083
4084   for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4085     CFLAGS="$old_CFLAGS -I$try"
4086     cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 #include <isql.h>
4090 int main() {
4091  int a = 1;
4092 ; return 0; }
4093 EOF
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095   rm -rf conftest*
4096   ODBC_INCLUDE="-I$try"
4097 else
4098   echo "configure: failed program was:" >&5
4099   cat conftest.$ac_ext >&5
4100   rm -rf conftest*
4101   ODBC_INCLUDE=
4102 fi
4103 rm -f conftest*
4104     if test "x$ODBC_INCLUDE" != "x"; then
4105       break;
4106     fi
4107   done
4108   CFLAGS="$old_CFLAGS"
4109 fi
4110
4111 if test "x$ODBC_INCLUDE" = "x"; then
4112   echo "$ac_t""no" 1>&6
4113 else
4114   echo "$ac_t""yes" 1>&6
4115   
4116   echo $ac_n "checking for odbc_init in -lodbcclient""... $ac_c" 1>&6
4117 echo "configure:4118: checking for odbc_init in -lodbcclient" >&5
4118
4119   old_LIBS="$LIBS"
4120
4121   
4122
4123 if test "x$LOCATE" != "x"; then
4124         DIRS=
4125   file=libodbcclient${libltdl_cv_shlibext}
4126
4127   for x in `${LOCATE} $file 2>/dev/null`; do
4128                                         base=`echo $x | sed "s%/${file}%%"`
4129     if test "x$x" = "x$base"; then
4130       continue;
4131     fi
4132
4133     dir=`${DIRNAME} $x 2>/dev/null`
4134                 exclude=`echo ${dir} | ${GREP} /home`
4135     if test "x$exclude" != "x"; then
4136       continue
4137     fi
4138
4139                     already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4140     if test "x$already" = "x"; then
4141       DIRS="$DIRS $dir"
4142     fi
4143   done
4144 fi
4145
4146 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4147
4148   
4149
4150 if test "x$LOCATE" != "x"; then
4151         DIRS=
4152   file=libodbcclient.a
4153
4154   for x in `${LOCATE} $file 2>/dev/null`; do
4155                                         base=`echo $x | sed "s%/${file}%%"`
4156     if test "x$x" = "x$base"; then
4157       continue;
4158     fi
4159
4160     dir=`${DIRNAME} $x 2>/dev/null`
4161                 exclude=`echo ${dir} | ${GREP} /home`
4162     if test "x$exclude" != "x"; then
4163       continue
4164     fi
4165
4166                     already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4167     if test "x$already" = "x"; then
4168       DIRS="$DIRS $dir"
4169     fi
4170   done
4171 fi
4172
4173 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4174
4175
4176   for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4177     LIBS="$old_LIBS -L$try -lodbcclient"
4178     cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 extern char odbc_init();
4182 int main() {
4183  odbc_init()
4184 ; return 0; }
4185 EOF
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187   rm -rf conftest*
4188   ODBC_LIBS="-L$try -lodbcclient"
4189 else
4190   echo "configure: failed program was:" >&5
4191   cat conftest.$ac_ext >&5
4192   rm -rf conftest*
4193   ODBC_LIBS=
4194 fi
4195 rm -f conftest*
4196     if test "x$ODBC_LIBS" != "x"; then
4197       break;
4198     fi
4199   done
4200   LIBS="$old_LIBS"
4201
4202           if test "x$ODBC_LIBS" = "x"; then
4203     echo "$ac_t""no" 1>&6
4204     ODBC_INCLUDE=
4205   else
4206     echo "$ac_t""yes" 1>&6
4207     cat >> confdefs.h <<\EOF
4208 #define HAVE_ISQL_H 1
4209 EOF
4210
4211   fi
4212 fi
4213
4214
4215
4216 LIBTOOL="`pwd`/libtool"
4217
4218
4219
4220 top_builddir=`pwd`
4221
4222
4223
4224 if test "$WITH_THREAD_POOL" = "yes"; then
4225         if test "$WITH_THREADS" != "yes"; then
4226     { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4227   fi
4228
4229         if test "X$PTHREADLIB" = "X"; then
4230     { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4231   fi
4232
4233 fi
4234
4235
4236 mysubdirs=
4237 for foo in `find src/modules -name configure -print`; do
4238   bar=`echo $foo | sed 's%/configure$%%g'`
4239   mysubdirs="$mysubdirs $bar"
4240 done
4241
4242 subdirs="libltdl $mysubdirs"
4243
4244
4245
4246
4247
4248
4249 USE_SHARED_LIBS=$enable_shared
4250
4251 USE_STATIC_LIBS=$enable_static
4252
4253
4254
4255
4256
4257 export CFLAGS LIBS
4258
4259 trap '' 1 2 15
4260 cat > confcache <<\EOF
4261 # This file is a shell script that caches the results of configure
4262 # tests run on this system so they can be shared between configure
4263 # scripts and configure runs.  It is not useful on other systems.
4264 # If it contains results you don't want to keep, you may remove or edit it.
4265 #
4266 # By default, configure uses ./config.cache as the cache file,
4267 # creating it if it does not exist already.  You can give configure
4268 # the --cache-file=FILE option to use a different cache file; that is
4269 # what configure does when it calls configure scripts in
4270 # subdirectories, so they share the cache.
4271 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4272 # config.status only pays attention to the cache file if you give it the
4273 # --recheck option to rerun configure.
4274 #
4275 EOF
4276 # The following way of writing the cache mishandles newlines in values,
4277 # but we know of no workaround that is simple, portable, and efficient.
4278 # So, don't put newlines in cache variables' values.
4279 # Ultrix sh set writes to stderr and can't be redirected directly,
4280 # and sets the high bit in the cache file unless we assign to the vars.
4281 (set) 2>&1 |
4282   case `(ac_space=' '; set | grep ac_space) 2>&1` in
4283   *ac_space=\ *)
4284     # `set' does not quote correctly, so add quotes (double-quote substitution
4285     # turns \\\\ into \\, and sed turns \\ into \).
4286     sed -n \
4287       -e "s/'/'\\\\''/g" \
4288       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4289     ;;
4290   *)
4291     # `set' quotes correctly as required by POSIX, so do not add quotes.
4292     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4293     ;;
4294   esac >> confcache
4295 if cmp -s $cache_file confcache; then
4296   :
4297 else
4298   if test -w $cache_file; then
4299     echo "updating cache $cache_file"
4300     cat confcache > $cache_file
4301   else
4302     echo "not updating unwritable cache $cache_file"
4303   fi
4304 fi
4305 rm -f confcache
4306
4307 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4308
4309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4310 # Let make expand exec_prefix.
4311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4312
4313 # Any assignment to VPATH causes Sun make to only execute
4314 # the first set of double-colon rules, so remove it if not needed.
4315 # If there is a colon in the path, we need to keep it.
4316 if test "x$srcdir" = x.; then
4317   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4318 fi
4319
4320 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4321
4322 DEFS=-DHAVE_CONFIG_H
4323
4324 # Without the "./", some shells look in PATH for config.status.
4325 : ${CONFIG_STATUS=./config.status}
4326
4327 echo creating $CONFIG_STATUS
4328 rm -f $CONFIG_STATUS
4329 cat > $CONFIG_STATUS <<EOF
4330 #! /bin/sh
4331 # Generated automatically by configure.
4332 # Run this file to recreate the current configuration.
4333 # This directory was configured as follows,
4334 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4335 #
4336 # $0 $ac_configure_args
4337 #
4338 # Compiler output produced by configure, useful for debugging
4339 # configure, is in ./config.log if it exists.
4340
4341 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4342 for ac_option
4343 do
4344   case "\$ac_option" in
4345   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4346     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4347     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4348   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4349     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4350     exit 0 ;;
4351   -help | --help | --hel | --he | --h)
4352     echo "\$ac_cs_usage"; exit 0 ;;
4353   *) echo "\$ac_cs_usage"; exit 1 ;;
4354   esac
4355 done
4356
4357 ac_given_srcdir=$srcdir
4358
4359 trap 'rm -fr `echo "\
4360         ./Make.inc \
4361         ./src/include/build-radpaths-h \
4362         ./src/main/checkrad.pl \
4363         ./src/main/radlast \
4364         ./src/main/radtest \
4365         ./scripts/rc.radiusd \
4366         ./scripts/radwatch \
4367         ./scripts/check-radiusd-config \
4368         ./scripts/radiusd.cron.daily \
4369         ./scripts/radiusd.cron.monthly \
4370         ./scripts/cryptpasswd \
4371         ./raddb/radiusd.conf
4372  src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4373 EOF
4374 cat >> $CONFIG_STATUS <<EOF
4375
4376 # Protect against being on the right side of a sed subst in config.status.
4377 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4378  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4379 $ac_vpsub
4380 $extrasub
4381 s%@SHELL@%$SHELL%g
4382 s%@CFLAGS@%$CFLAGS%g
4383 s%@CPPFLAGS@%$CPPFLAGS%g
4384 s%@CXXFLAGS@%$CXXFLAGS%g
4385 s%@FFLAGS@%$FFLAGS%g
4386 s%@DEFS@%$DEFS%g
4387 s%@LDFLAGS@%$LDFLAGS%g
4388 s%@LIBS@%$LIBS%g
4389 s%@exec_prefix@%$exec_prefix%g
4390 s%@prefix@%$prefix%g
4391 s%@program_transform_name@%$program_transform_name%g
4392 s%@bindir@%$bindir%g
4393 s%@sbindir@%$sbindir%g
4394 s%@libexecdir@%$libexecdir%g
4395 s%@datadir@%$datadir%g
4396 s%@sysconfdir@%$sysconfdir%g
4397 s%@sharedstatedir@%$sharedstatedir%g
4398 s%@localstatedir@%$localstatedir%g
4399 s%@libdir@%$libdir%g
4400 s%@includedir@%$includedir%g
4401 s%@oldincludedir@%$oldincludedir%g
4402 s%@infodir@%$infodir%g
4403 s%@mandir@%$mandir%g
4404 s%@CC@%$CC%g
4405 s%@CPP@%$CPP%g
4406 s%@RANLIB@%$RANLIB%g
4407 s%@GMAKE@%$GMAKE%g
4408 s%@MAKE@%$MAKE%g
4409 s%@host@%$host%g
4410 s%@host_alias@%$host_alias%g
4411 s%@host_cpu@%$host_cpu%g
4412 s%@host_vendor@%$host_vendor%g
4413 s%@host_os@%$host_os%g
4414 s%@build@%$build%g
4415 s%@build_alias@%$build_alias%g
4416 s%@build_cpu@%$build_cpu%g
4417 s%@build_vendor@%$build_vendor%g
4418 s%@build_os@%$build_os%g
4419 s%@LN_S@%$LN_S%g
4420 s%@LIBTOOL@%$LIBTOOL%g
4421 s%@logdir@%$logdir%g
4422 s%@radacctdir@%$radacctdir%g
4423 s%@raddbdir@%$raddbdir%g
4424 s%@subdirs@%$subdirs%g
4425 s%@PERL@%$PERL%g
4426 s%@SNMPGET@%$SNMPGET%g
4427 s%@SNMPWALK@%$SNMPWALK%g
4428 s%@RUSERS@%$RUSERS%g
4429 s%@ACLOCAL@%$ACLOCAL%g
4430 s%@AUTOCONF@%$AUTOCONF%g
4431 s%@AUTOHEADER@%$AUTOHEADER%g
4432 s%@LOCATE@%$LOCATE%g
4433 s%@DIRNAME@%$DIRNAME%g
4434 s%@GREP@%$GREP%g
4435 s%@REGEX@%$REGEX%g
4436 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4437 s%@LIBPREFIX@%$LIBPREFIX%g
4438 s%@CRYPTLIB@%$CRYPTLIB%g
4439 s%@SNMP_LIBS@%$SNMP_LIBS%g
4440 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4441 s%@ODBC_LIBS@%$ODBC_LIBS%g
4442 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4443 s%@LIBLTDL@%$LIBLTDL%g
4444 s%@INCLTDL@%$INCLTDL%g
4445 s%@top_builddir@%$top_builddir%g
4446 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
4447 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4448 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4449 s%@STATIC_MODULES@%$STATIC_MODULES%g
4450 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
4451 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
4452 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4453
4454 CEOF
4455 EOF
4456
4457 cat >> $CONFIG_STATUS <<\EOF
4458
4459 # Split the substitutions into bite-sized pieces for seds with
4460 # small command number limits, like on Digital OSF/1 and HP-UX.
4461 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4462 ac_file=1 # Number of current file.
4463 ac_beg=1 # First line for current file.
4464 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4465 ac_more_lines=:
4466 ac_sed_cmds=""
4467 while $ac_more_lines; do
4468   if test $ac_beg -gt 1; then
4469     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4470   else
4471     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4472   fi
4473   if test ! -s conftest.s$ac_file; then
4474     ac_more_lines=false
4475     rm -f conftest.s$ac_file
4476   else
4477     if test -z "$ac_sed_cmds"; then
4478       ac_sed_cmds="sed -f conftest.s$ac_file"
4479     else
4480       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4481     fi
4482     ac_file=`expr $ac_file + 1`
4483     ac_beg=$ac_end
4484     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4485   fi
4486 done
4487 if test -z "$ac_sed_cmds"; then
4488   ac_sed_cmds=cat
4489 fi
4490 EOF
4491
4492 cat >> $CONFIG_STATUS <<EOF
4493
4494 CONFIG_FILES=\${CONFIG_FILES-"\
4495         ./Make.inc \
4496         ./src/include/build-radpaths-h \
4497         ./src/main/checkrad.pl \
4498         ./src/main/radlast \
4499         ./src/main/radtest \
4500         ./scripts/rc.radiusd \
4501         ./scripts/radwatch \
4502         ./scripts/check-radiusd-config \
4503         ./scripts/radiusd.cron.daily \
4504         ./scripts/radiusd.cron.monthly \
4505         ./scripts/cryptpasswd \
4506         ./raddb/radiusd.conf
4507 "}
4508 EOF
4509 cat >> $CONFIG_STATUS <<\EOF
4510 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4511   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4512   case "$ac_file" in
4513   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4514        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4515   *) ac_file_in="${ac_file}.in" ;;
4516   esac
4517
4518   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4519
4520   # Remove last slash and all that follows it.  Not all systems have dirname.
4521   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4522   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4523     # The file is in a subdirectory.
4524     test ! -d "$ac_dir" && mkdir "$ac_dir"
4525     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4526     # A "../" for each directory in $ac_dir_suffix.
4527     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4528   else
4529     ac_dir_suffix= ac_dots=
4530   fi
4531
4532   case "$ac_given_srcdir" in
4533   .)  srcdir=.
4534       if test -z "$ac_dots"; then top_srcdir=.
4535       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4536   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4537   *) # Relative path.
4538     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4539     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4540   esac
4541
4542
4543   echo creating "$ac_file"
4544   rm -f "$ac_file"
4545   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4546   case "$ac_file" in
4547   *Makefile*) ac_comsub="1i\\
4548 # $configure_input" ;;
4549   *) ac_comsub= ;;
4550   esac
4551
4552   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4553   sed -e "$ac_comsub
4554 s%@configure_input@%$configure_input%g
4555 s%@srcdir@%$srcdir%g
4556 s%@top_srcdir@%$top_srcdir%g
4557 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4558 fi; done
4559 rm -f conftest.s*
4560
4561 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4562 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4563 #
4564 # ac_d sets the value in "#define NAME VALUE" lines.
4565 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4566 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4567 ac_dC='\3'
4568 ac_dD='%g'
4569 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4570 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4571 ac_uB='\([      ]\)%\1#\2define\3'
4572 ac_uC=' '
4573 ac_uD='\4%g'
4574 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4575 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4576 ac_eB='$%\1#\2define\3'
4577 ac_eC=' '
4578 ac_eD='%g'
4579
4580 if test "${CONFIG_HEADERS+set}" != set; then
4581 EOF
4582 cat >> $CONFIG_STATUS <<EOF
4583   CONFIG_HEADERS="src/include/autoconf.h"
4584 EOF
4585 cat >> $CONFIG_STATUS <<\EOF
4586 fi
4587 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4589   case "$ac_file" in
4590   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4591        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4592   *) ac_file_in="${ac_file}.in" ;;
4593   esac
4594
4595   echo creating $ac_file
4596
4597   rm -f conftest.frag conftest.in conftest.out
4598   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4599   cat $ac_file_inputs > conftest.in
4600
4601 EOF
4602
4603 # Transform confdefs.h into a sed script conftest.vals that substitutes
4604 # the proper values into config.h.in to produce config.h.  And first:
4605 # Protect against being on the right side of a sed subst in config.status.
4606 # Protect against being in an unquoted here document in config.status.
4607 rm -f conftest.vals
4608 cat > conftest.hdr <<\EOF
4609 s/[\\&%]/\\&/g
4610 s%[\\$`]%\\&%g
4611 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4612 s%ac_d%ac_u%gp
4613 s%ac_u%ac_e%gp
4614 EOF
4615 sed -n -f conftest.hdr confdefs.h > conftest.vals
4616 rm -f conftest.hdr
4617
4618 # This sed command replaces #undef with comments.  This is necessary, for
4619 # example, in the case of _POSIX_SOURCE, which is predefined and required
4620 # on some systems where configure will not decide to define it.
4621 cat >> conftest.vals <<\EOF
4622 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4623 EOF
4624
4625 # Break up conftest.vals because some shells have a limit on
4626 # the size of here documents, and old seds have small limits too.
4627
4628 rm -f conftest.tail
4629 while :
4630 do
4631   ac_lines=`grep -c . conftest.vals`
4632   # grep -c gives empty output for an empty file on some AIX systems.
4633   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4634   # Write a limited-size here document to conftest.frag.
4635   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4636   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4637   echo 'CEOF
4638   sed -f conftest.frag conftest.in > conftest.out
4639   rm -f conftest.in
4640   mv conftest.out conftest.in
4641 ' >> $CONFIG_STATUS
4642   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4643   rm -f conftest.vals
4644   mv conftest.tail conftest.vals
4645 done
4646 rm -f conftest.vals
4647
4648 cat >> $CONFIG_STATUS <<\EOF
4649   rm -f conftest.frag conftest.h
4650   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4651   cat conftest.in >> conftest.h
4652   rm -f conftest.in
4653   if cmp -s $ac_file conftest.h 2>/dev/null; then
4654     echo "$ac_file is unchanged"
4655     rm -f conftest.h
4656   else
4657     # Remove last slash and all that follows it.  Not all systems have dirname.
4658       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4659       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4660       # The file is in a subdirectory.
4661       test ! -d "$ac_dir" && mkdir "$ac_dir"
4662     fi
4663     rm -f $ac_file
4664     mv conftest.h $ac_file
4665   fi
4666 fi; done
4667
4668 EOF
4669 cat >> $CONFIG_STATUS <<EOF
4670
4671 EOF
4672 cat >> $CONFIG_STATUS <<\EOF
4673
4674 exit 0
4675 EOF
4676 chmod +x $CONFIG_STATUS
4677 rm -fr confdefs* $ac_clean_files
4678 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4679
4680 if test "$no_recursion" != yes; then
4681
4682   # Remove --cache-file and --srcdir arguments so they do not pile up.
4683   ac_sub_configure_args=
4684   ac_prev=
4685   for ac_arg in $ac_configure_args; do
4686     if test -n "$ac_prev"; then
4687       ac_prev=
4688       continue
4689     fi
4690     case "$ac_arg" in
4691     -cache-file | --cache-file | --cache-fil | --cache-fi \
4692     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4693       ac_prev=cache_file ;;
4694     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4695     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4696       ;;
4697     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4698       ac_prev=srcdir ;;
4699     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4700       ;;
4701     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4702     esac
4703   done
4704
4705   for ac_config_dir in libltdl $mysubdirs; do
4706
4707     # Do not complain, so a configure script can configure whichever
4708     # parts of a large source tree are present.
4709     if test ! -d $srcdir/$ac_config_dir; then
4710       continue
4711     fi
4712
4713     echo configuring in $ac_config_dir
4714
4715     case "$srcdir" in
4716     .) ;;
4717     *)
4718       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4719       else
4720         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4721       fi
4722       ;;
4723     esac
4724
4725     ac_popdir=`pwd`
4726     cd $ac_config_dir
4727
4728       # A "../" for each directory in /$ac_config_dir.
4729       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4730
4731     case "$srcdir" in
4732     .) # No --srcdir option.  We are building in place.
4733       ac_sub_srcdir=$srcdir ;;
4734     /*) # Absolute path.
4735       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4736     *) # Relative path.
4737       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4738     esac
4739
4740     # Check for guested configure; otherwise get Cygnus style configure.
4741     if test -f $ac_sub_srcdir/configure; then
4742       ac_sub_configure=$ac_sub_srcdir/configure
4743     elif test -f $ac_sub_srcdir/configure.in; then
4744       ac_sub_configure=$ac_configure
4745     else
4746       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4747       ac_sub_configure=
4748     fi
4749
4750     # The recursion is here.
4751     if test -n "$ac_sub_configure"; then
4752
4753       # Make the cache file name correct relative to the subdirectory.
4754       case "$cache_file" in
4755       /*) ac_sub_cache_file=$cache_file ;;
4756       *) # Relative path.
4757         ac_sub_cache_file="$ac_dots$cache_file" ;;
4758       esac
4759
4760       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4761       # The eval makes quoting arguments work.
4762       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4763       then :
4764       else
4765         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4766       fi
4767     fi
4768
4769     cd $ac_popdir
4770   done
4771 fi
4772
4773
4774
4775
4776
4777
4778
4779 echo timestamp > src/include/stamp-h
4780 (cd ./src/include && /bin/sh ./build-radpaths-h)
4781 (cd ./src/main   && chmod +x checkrad.pl radlast radtest)
4782 (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
4783
4784 cat >> src/include/autoconf.h <<EOF
4785
4786 #define HOSTINFO        "$host"
4787 #define RADIUSD_VERSION "$RADIUSD_VERSION"
4788 EOF
4789
4790
4791
4792
4793
4794 host=$host