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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`}
28 *-DOS) lt_cv_sys_path_separator=';' ;;
29 *) lt_cv_sys_path_separator=':' ;;
31 PATH_SEPARATOR=$lt_cv_sys_path_separator
35 # Check that we are running under the correct shell.
36 SHELL=${CONFIG_SHELL-/bin/sh}
40 # Remove one level of quotation (which was required for Make).
41 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
46 if test "X$1" = X--no-reexec; then
47 # Discard the --no-reexec flag, and continue.
49 elif test "X$1" = X--fallback-echo; then
50 # Avoid inline document here, it may be left over
52 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
53 # Yippee, $echo works!
56 # Restart under the correct shell.
57 exec $SHELL "$0" --no-reexec ${1+"$@"}
60 if test "X$1" = X--fallback-echo; then
61 # used as fallback echo
69 # The HP-UX ksh and POSIX shell print the target directory to stdout
71 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
73 if test -z "$ECHO"; then
74 if test "X${echo_test_string+set}" != Xset; then
75 # find a string as large as possible, as long as the shell can cope with it
76 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
77 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
78 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
79 echo_test_string="`eval $cmd`" &&
80 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
87 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
92 # The Solaris, AIX, and Digital Unix default echo programs unquote
93 # backslashes. This makes it impossible to quote backslashes using
94 # echo "$something" | sed 's/\\/\\\\/g'
96 # So, first we look for a working echo in the user's PATH.
98 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
99 for dir in $PATH /usr/ucb; do
100 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
101 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
110 if test "X$echo" = Xecho; then
111 # We didn't find a better echo, so look for alternatives.
112 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
113 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
114 test "X$echo_testing_string" = "X$echo_test_string"; then
115 # This shell has a builtin print -r that does the trick.
117 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
118 test "X$CONFIG_SHELL" != X/bin/ksh; then
119 # If we have ksh, try running configure again with it.
120 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
121 export ORIGINAL_CONFIG_SHELL
122 CONFIG_SHELL=/bin/ksh
124 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
128 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
129 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
133 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
134 test "X$echo_testing_string" = 'X\t' &&
135 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
136 test "X$echo_testing_string" = "X$echo_test_string"; then
137 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
139 SHELL="$CONFIG_SHELL"
141 echo="$CONFIG_SHELL $0 --fallback-echo"
142 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
143 test "X$echo_testing_string" = 'X\t' &&
144 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
145 test "X$echo_testing_string" = "X$echo_test_string"; then
146 echo="$CONFIG_SHELL $0 --fallback-echo"
148 # maybe with a smaller string...
151 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
152 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
159 if test "$prev" != 'sed 50q "$0"'; then
160 echo_test_string=`eval $prev`
161 export echo_test_string
162 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
164 # Oops. We lost completely, so just stick with echo.
173 # Copy echo and quote the copy suitably for passing to libtool from
174 # the Makefile, instead of quoting the original, which is used later.
176 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
177 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
182 --disable-libtool-lock avoid locking (might break parallel builds)"
184 --with-pic try to use only PIC/non-PIC objects [default=use both]"
186 --enable-strict-dependencies Fail configure on lack of module dependancy."
188 --with-logdir=DIR Directory for logfiles [LOCALSTATEDIR/log/radius] "
190 --with-radacctdir=PATH Directory for detail files [LOGDIR/radacct] "
192 --with-raddbdir=DIR Directory for config files [SYSCONFDIR/raddb] "
194 --with-dict-nocase Make dictionary case-independant (default=yes)"
196 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)"
198 --with-threads Use threads, if available. (default=yes) "
200 --with-snmp Compile in SNMP support. (default=yes)"
202 --disable-ltdl-install do not install libltdl"
204 --with-static-modules=QUOTED-MODULE-LIST"
206 --enable-developer Enables features of interest to developers."
208 --with-experimental-modules Use experimental and unstable modules. (default=no) "
210 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO"
212 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO"
214 # Initialize some variables set by options.
215 # The variables have the same names as the options, with
216 # dashes changed to underlines.
218 cache_file=./config.cache
227 program_transform_name=s,x,x,
235 bindir='${exec_prefix}/bin'
236 sbindir='${exec_prefix}/sbin'
237 libexecdir='${exec_prefix}/libexec'
238 datadir='${prefix}/share'
239 sysconfdir='${prefix}/etc'
240 sharedstatedir='${prefix}/com'
241 localstatedir='${prefix}/var'
242 libdir='${exec_prefix}/lib'
243 includedir='${prefix}/include'
244 oldincludedir='/usr/include'
245 infodir='${prefix}/info'
246 mandir='${prefix}/man'
248 # Initialize some other variables.
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Maximum number of lines to put in a shell here document.
259 # If the previous option needs an argument, assign it.
260 if test -n "$ac_prev"; then
261 eval "$ac_prev=\$ac_option"
267 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
271 # Accept the important Cygnus configure options, so we can diagnose typos.
275 -bindir | --bindir | --bindi | --bind | --bin | --bi)
277 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
278 bindir="$ac_optarg" ;;
280 -build | --build | --buil | --bui | --bu)
282 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
283 build="$ac_optarg" ;;
285 -cache-file | --cache-file | --cache-fil | --cache-fi \
286 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
287 ac_prev=cache_file ;;
288 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
289 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
290 cache_file="$ac_optarg" ;;
292 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
294 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
296 datadir="$ac_optarg" ;;
298 -disable-* | --disable-*)
299 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
300 # Reject names that are not valid shell variable names.
301 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
302 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
304 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
305 eval "enable_${ac_feature}=no" ;;
307 -enable-* | --enable-*)
308 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
309 # Reject names that are not valid shell variable names.
310 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
311 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
313 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
318 eval "enable_${ac_feature}='$ac_optarg'" ;;
320 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
321 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
322 | --exec | --exe | --ex)
323 ac_prev=exec_prefix ;;
324 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
325 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
326 | --exec=* | --exe=* | --ex=*)
327 exec_prefix="$ac_optarg" ;;
329 -gas | --gas | --ga | --g)
330 # Obsolete; use --with-gas.
333 -help | --help | --hel | --he)
334 # Omit some internal or obsolete options to make the list less imposing.
335 # This message is too long to be a string in the A/UX 3.1 sh.
337 Usage: configure [options] [host]
338 Options: [defaults in brackets after descriptions]
340 --cache-file=FILE cache test results in FILE
341 --help print this message
342 --no-create do not create output files
343 --quiet, --silent do not print \`checking...' messages
344 --version print the version of autoconf that created configure
345 Directory and file names:
346 --prefix=PREFIX install architecture-independent files in PREFIX
348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
350 --bindir=DIR user executables in DIR [EPREFIX/bin]
351 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
352 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
353 --datadir=DIR read-only architecture-independent data in DIR
355 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
356 --sharedstatedir=DIR modifiable architecture-independent data in DIR
358 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
359 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
360 --includedir=DIR C header files in DIR [PREFIX/include]
361 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
362 --infodir=DIR info documentation in DIR [PREFIX/info]
363 --mandir=DIR man documentation in DIR [PREFIX/man]
364 --srcdir=DIR find the sources in DIR [configure dir or ..]
365 --program-prefix=PREFIX prepend PREFIX to installed program names
366 --program-suffix=SUFFIX append SUFFIX to installed program names
367 --program-transform-name=PROGRAM
368 run sed PROGRAM on installed program names
372 --build=BUILD configure for building on BUILD [BUILD=HOST]
373 --host=HOST configure for HOST [guessed]
374 --target=TARGET configure for TARGET [TARGET=HOST]
375 Features and packages:
376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
380 --x-includes=DIR X include files are in DIR
381 --x-libraries=DIR X library files are in DIR
383 if test -n "$ac_help"; then
384 echo "--enable and --with options recognized:$ac_help"
388 -host | --host | --hos | --ho)
390 -host=* | --host=* | --hos=* | --ho=*)
393 -includedir | --includedir | --includedi | --included | --include \
394 | --includ | --inclu | --incl | --inc)
395 ac_prev=includedir ;;
396 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
397 | --includ=* | --inclu=* | --incl=* | --inc=*)
398 includedir="$ac_optarg" ;;
400 -infodir | --infodir | --infodi | --infod | --info | --inf)
402 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
403 infodir="$ac_optarg" ;;
405 -libdir | --libdir | --libdi | --libd)
407 -libdir=* | --libdir=* | --libdi=* | --libd=*)
408 libdir="$ac_optarg" ;;
410 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
411 | --libexe | --libex | --libe)
412 ac_prev=libexecdir ;;
413 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
414 | --libexe=* | --libex=* | --libe=*)
415 libexecdir="$ac_optarg" ;;
417 -localstatedir | --localstatedir | --localstatedi | --localstated \
418 | --localstate | --localstat | --localsta | --localst \
419 | --locals | --local | --loca | --loc | --lo)
420 ac_prev=localstatedir ;;
421 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
422 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
423 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
424 localstatedir="$ac_optarg" ;;
426 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
428 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
429 mandir="$ac_optarg" ;;
432 # Obsolete; use --without-fp.
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
443 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
444 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
445 | --oldin | --oldi | --old | --ol | --o)
446 ac_prev=oldincludedir ;;
447 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
448 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
449 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
450 oldincludedir="$ac_optarg" ;;
452 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
454 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
455 prefix="$ac_optarg" ;;
457 -program-prefix | --program-prefix | --program-prefi | --program-pref \
458 | --program-pre | --program-pr | --program-p)
459 ac_prev=program_prefix ;;
460 -program-prefix=* | --program-prefix=* | --program-prefi=* \
461 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
462 program_prefix="$ac_optarg" ;;
464 -program-suffix | --program-suffix | --program-suffi | --program-suff \
465 | --program-suf | --program-su | --program-s)
466 ac_prev=program_suffix ;;
467 -program-suffix=* | --program-suffix=* | --program-suffi=* \
468 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
469 program_suffix="$ac_optarg" ;;
471 -program-transform-name | --program-transform-name \
472 | --program-transform-nam | --program-transform-na \
473 | --program-transform-n | --program-transform- \
474 | --program-transform | --program-transfor \
475 | --program-transfo | --program-transf \
476 | --program-trans | --program-tran \
477 | --progr-tra | --program-tr | --program-t)
478 ac_prev=program_transform_name ;;
479 -program-transform-name=* | --program-transform-name=* \
480 | --program-transform-nam=* | --program-transform-na=* \
481 | --program-transform-n=* | --program-transform-=* \
482 | --program-transform=* | --program-transfor=* \
483 | --program-transfo=* | --program-transf=* \
484 | --program-trans=* | --program-tran=* \
485 | --progr-tra=* | --program-tr=* | --program-t=*)
486 program_transform_name="$ac_optarg" ;;
488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
489 | -silent | --silent | --silen | --sile | --sil)
492 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
494 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
496 sbindir="$ac_optarg" ;;
498 -sharedstatedir | --sharedstatedir | --sharedstatedi \
499 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
500 | --sharedst | --shareds | --shared | --share | --shar \
502 ac_prev=sharedstatedir ;;
503 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
504 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
505 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
507 sharedstatedir="$ac_optarg" ;;
509 -site | --site | --sit)
511 -site=* | --site=* | --sit=*)
514 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
516 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
517 srcdir="$ac_optarg" ;;
519 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
520 | --syscon | --sysco | --sysc | --sys | --sy)
521 ac_prev=sysconfdir ;;
522 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
523 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
524 sysconfdir="$ac_optarg" ;;
526 -target | --target | --targe | --targ | --tar | --ta | --t)
528 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
529 target="$ac_optarg" ;;
531 -v | -verbose | --verbose | --verbos | --verbo | --verb)
534 -version | --version | --versio | --versi | --vers)
535 echo "configure generated by autoconf version 2.13"
539 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
540 # Reject names that are not valid shell variable names.
541 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
542 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
544 ac_package=`echo $ac_package| sed 's/-/_/g'`
549 eval "with_${ac_package}='$ac_optarg'" ;;
551 -without-* | --without-*)
552 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
553 # Reject names that are not valid shell variable names.
554 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
555 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
557 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 eval "with_${ac_package}=no" ;;
561 # Obsolete; use --with-x.
564 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
565 | --x-incl | --x-inc | --x-in | --x-i)
566 ac_prev=x_includes ;;
567 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
568 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
569 x_includes="$ac_optarg" ;;
571 -x-libraries | --x-libraries | --x-librarie | --x-librari \
572 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
573 ac_prev=x_libraries ;;
574 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
575 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
576 x_libraries="$ac_optarg" ;;
578 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
582 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
583 echo "configure: warning: $ac_option: invalid host type" 1>&2
585 if test "x$nonopt" != xNONE; then
586 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
594 if test -n "$ac_prev"; then
595 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
598 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
600 # File descriptor usage:
603 # 2 errors and warnings
604 # 3 some systems may open it to /dev/tty
605 # 4 used on the Kubota Titan
606 # 6 checking for... messages and results
607 # 5 compiler messages saved in config.log
608 if test "$silent" = yes; then
616 This file contains any messages produced by compilers while
617 running configure, to aid debugging if configure makes a mistake.
620 # Strip out --no-create and --no-recursion so they do not pile up.
621 # Also quote any args containing shell metacharacters.
626 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
627 | --no-cr | --no-c) ;;
628 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
629 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
630 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
631 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
632 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
637 # Only set these to C if already set. These must not be set unconditionally
638 # because not all systems understand e.g. LANG=C (notably SCO).
639 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
640 # Non-C LC_CTYPE values break the ctype check.
641 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
642 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
643 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
644 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
647 rm -rf conftest* confdefs.h
648 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
651 # A filename unique to this package, relative to the directory that
652 # configure is in, which we can look for to find out if srcdir is correct.
653 ac_unique_file=src/main/radiusd.c
655 # Find the source files, if location was not specified.
656 if test -z "$srcdir"; then
657 ac_srcdir_defaulted=yes
658 # Try the directory containing this script, then its parent.
660 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
661 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
663 if test ! -r $srcdir/$ac_unique_file; then
667 ac_srcdir_defaulted=no
669 if test ! -r $srcdir/$ac_unique_file; then
670 if test "$ac_srcdir_defaulted" = yes; then
671 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
673 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
676 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
678 # Prefer explicitly selected file to automatically selected ones.
679 if test -z "$CONFIG_SITE"; then
680 if test "x$prefix" != xNONE; then
681 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
683 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
686 for ac_site_file in $CONFIG_SITE; do
687 if test -r "$ac_site_file"; then
688 echo "loading site script $ac_site_file"
693 if test -r "$cache_file"; then
694 echo "loading cache $cache_file"
697 echo "creating cache $cache_file"
702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
703 ac_cpp='$CPP $CPPFLAGS'
704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
706 cross_compiling=$ac_cv_prog_cc_cross
710 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
711 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
712 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
719 ac_n= ac_c='\c' ac_t=
724 # From configure.in Revision: 1.154
725 RADIUSD_MAJOR_VERSION=0
726 RADIUSD_MINOR_VERSION=6
727 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
730 # Extract the first word of "gcc", so it can be a program name with args.
731 set dummy gcc; ac_word=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 echo "configure:734: checking for $ac_word" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 if test -n "$CC"; then
738 ac_cv_prog_CC="$CC" # Let the user override the test.
740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
742 for ac_dir in $ac_dummy; do
743 test -z "$ac_dir" && ac_dir=.
744 if test -f $ac_dir/$ac_word; then
753 if test -n "$CC"; then
754 echo "$ac_t""$CC" 1>&6
756 echo "$ac_t""no" 1>&6
759 if test -z "$CC"; then
760 # Extract the first word of "cc", so it can be a program name with args.
761 set dummy cc; ac_word=$2
762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
763 echo "configure:764: checking for $ac_word" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 if test -n "$CC"; then
768 ac_cv_prog_CC="$CC" # Let the user override the test.
770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
773 for ac_dir in $ac_dummy; do
774 test -z "$ac_dir" && ac_dir=.
775 if test -f $ac_dir/$ac_word; then
776 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
785 if test $ac_prog_rejected = yes; then
786 # We found a bogon in the path, so make sure we never use it.
787 set dummy $ac_cv_prog_CC
789 if test $# -gt 0; then
790 # We chose a different compiler from the bogus one.
791 # However, it has the same basename, so the bogon will be chosen
792 # first if we set CC to just the basename; use the full file name.
794 set dummy "$ac_dir/$ac_word" "$@"
802 if test -n "$CC"; then
803 echo "$ac_t""$CC" 1>&6
805 echo "$ac_t""no" 1>&6
808 if test -z "$CC"; then
811 # Extract the first word of "cl", so it can be a program name with args.
812 set dummy cl; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 if test -n "$CC"; then
819 ac_cv_prog_CC="$CC" # Let the user override the test.
821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
834 if test -n "$CC"; then
835 echo "$ac_t""$CC" 1>&6
837 echo "$ac_t""no" 1>&6
842 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
845 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
846 echo "configure:847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
850 ac_cpp='$CPP $CPPFLAGS'
851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
853 cross_compiling=$ac_cv_prog_cc_cross
855 cat > conftest.$ac_ext << EOF
857 #line 858 "configure"
858 #include "confdefs.h"
862 if { (eval echo configure:863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
863 ac_cv_prog_cc_works=yes
864 # If we can't run a trivial program, we are probably using a cross compiler.
865 if (./conftest; exit) 2>/dev/null; then
866 ac_cv_prog_cc_cross=no
868 ac_cv_prog_cc_cross=yes
871 echo "configure: failed program was:" >&5
872 cat conftest.$ac_ext >&5
873 ac_cv_prog_cc_works=no
877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
878 ac_cpp='$CPP $CPPFLAGS'
879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
881 cross_compiling=$ac_cv_prog_cc_cross
883 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
884 if test $ac_cv_prog_cc_works = no; then
885 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
887 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
888 echo "configure:889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
889 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
890 cross_compiling=$ac_cv_prog_cc_cross
892 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
893 echo "configure:894: checking whether we are using GNU C" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 cat > conftest.c <<EOF
902 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
909 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
911 if test $ac_cv_prog_gcc = yes; then
917 ac_test_CFLAGS="${CFLAGS+set}"
918 ac_save_CFLAGS="$CFLAGS"
920 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
921 echo "configure:922: checking whether ${CC-cc} accepts -g" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 echo 'void f(){}' > conftest.c
926 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
935 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
936 if test "$ac_test_CFLAGS" = set; then
937 CFLAGS="$ac_save_CFLAGS"
938 elif test $ac_cv_prog_cc_g = yes; then
939 if test "$GCC" = yes; then
945 if test "$GCC" = yes; then
952 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
953 echo "configure:954: checking how to run the C preprocessor" >&5
954 # On Suns, sometimes $CPP names a directory.
955 if test -n "$CPP" && test -d "$CPP"; then
958 if test -z "$CPP"; then
959 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 # This must be in double quotes, not single quotes, because CPP may get
963 # substituted into the Makefile and "${CC-cc}" will confuse make.
965 # On the NeXT, cc -E runs the code through the compiler's parser,
966 # not just through cpp.
967 cat > conftest.$ac_ext <<EOF
968 #line 969 "configure"
969 #include "confdefs.h"
973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
974 { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
976 if test -z "$ac_err"; then
980 echo "configure: failed program was:" >&5
981 cat conftest.$ac_ext >&5
983 CPP="${CC-cc} -E -traditional-cpp"
984 cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
991 { (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
993 if test -z "$ac_err"; then
997 echo "configure: failed program was:" >&5
998 cat conftest.$ac_ext >&5
1000 CPP="${CC-cc} -nologo -E"
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1008 { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1010 if test -z "$ac_err"; then
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1024 ac_cv_prog_CPP="$CPP"
1026 CPP="$ac_cv_prog_CPP"
1028 ac_cv_prog_CPP="$CPP"
1030 echo "$ac_t""$CPP" 1>&6
1032 if test $ac_cv_prog_gcc = yes; then
1033 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether ${CC-cc} needs -traditional" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 ac_pattern="Autoconf.*'x'"
1039 cat > conftest.$ac_ext <<EOF
1040 #line 1041 "configure"
1041 #include "confdefs.h"
1045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1046 egrep "$ac_pattern" >/dev/null 2>&1; then
1048 ac_cv_prog_gcc_traditional=yes
1051 ac_cv_prog_gcc_traditional=no
1056 if test $ac_cv_prog_gcc_traditional = no; then
1057 cat > conftest.$ac_ext <<EOF
1058 #line 1059 "configure"
1059 #include "confdefs.h"
1063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1064 egrep "$ac_pattern" >/dev/null 2>&1; then
1066 ac_cv_prog_gcc_traditional=yes
1073 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1074 if test $ac_cv_prog_gcc_traditional = yes; then
1075 CC="$CC -traditional"
1079 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether we are using SUNPro C" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 cat > conftest.c <<EOF
1089 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1090 ac_cv_prog_suncc=yes
1096 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
1097 # Extract the first word of "ranlib", so it can be a program name with args.
1098 set dummy ranlib; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$RANLIB"; then
1105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 for ac_dir in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir=.
1111 if test -f $ac_dir/$ac_word; then
1112 ac_cv_prog_RANLIB="ranlib"
1117 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1120 RANLIB="$ac_cv_prog_RANLIB"
1121 if test -n "$RANLIB"; then
1122 echo "$ac_t""$RANLIB" 1>&6
1124 echo "$ac_t""no" 1>&6
1130 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1131 echo "configure:1132: checking for AIX" >&5
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1141 egrep "yes" >/dev/null 2>&1; then
1143 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1144 #define _ALL_SOURCE 1
1149 echo "$ac_t""no" 1>&6
1155 # Extract the first word of "gmake", so it can be a program name with args.
1156 set dummy gmake; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$GMAKE"; then
1163 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_GMAKE="yes"
1175 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
1178 GMAKE="$ac_cv_prog_GMAKE"
1179 if test -n "$GMAKE"; then
1180 echo "$ac_t""$GMAKE" 1>&6
1182 echo "$ac_t""no" 1>&6
1185 if test $GMAKE = no; then
1186 # Extract the first word of "make", so it can be a program name with args.
1187 set dummy make; ac_word=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1195 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1198 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1203 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/$ac_word; then
1206 ac_cv_path_MAKE="$ac_dir/$ac_word"
1211 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1215 MAKE="$ac_cv_path_MAKE"
1216 if test -n "$MAKE"; then
1217 echo "$ac_t""$MAKE" 1>&6
1219 echo "$ac_t""no" 1>&6
1223 # Extract the first word of "gmake", so it can be a program name with args.
1224 set dummy gmake; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1232 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1235 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1240 for ac_dir in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_path_MAKE="$ac_dir/$ac_word"
1248 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1252 MAKE="$ac_cv_path_MAKE"
1253 if test -n "$MAKE"; then
1254 echo "$ac_t""$MAKE" 1>&6
1256 echo "$ac_t""no" 1>&6
1260 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1261 if test -z "$makever"; then
1262 { echo "configure: error: GNU Make is not installed. Please download and install it
1263 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1266 echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1267 echo "configure:1268: checking for main in -lltdl" >&5
1268 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 ac_save_LIBS="$LIBS"
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1282 if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1284 eval "ac_cv_lib_$ac_lib_var=yes"
1286 echo "configure: failed program was:" >&5
1287 cat conftest.$ac_ext >&5
1289 eval "ac_cv_lib_$ac_lib_var=no"
1292 LIBS="$ac_save_LIBS"
1295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1296 echo "$ac_t""yes" 1>&6
1297 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1299 echo "$ac_t""no" 1>&6
1300 if test x"$enable_ltdl_install" = xno; then
1301 echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1303 enable_ltdl_install=yes
1308 if test x"$enable_ltdl_install" = x"yes"; then
1309 ac_configure_args="$ac_configure_args --enable-ltdl-install"
1310 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
1311 INCLTDL='-I${top_srcdir}/''libltdl'
1313 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 elif test -f $ac_dir/install.sh; then
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 if test -z "$ac_aux_dir"; then
1334 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1336 ac_config_guess=$ac_aux_dir/config.guess
1337 ac_config_sub=$ac_aux_dir/config.sub
1338 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1340 # Find the correct PATH separator. Usually this is `:', but
1341 # DJGPP uses `;' like DOS.
1342 if test "X${PATH_SEPARATOR+set}" != Xset; then
1343 UNAME=${UNAME-`uname 2>/dev/null`}
1345 *-DOS) lt_cv_sys_path_separator=';' ;;
1346 *) lt_cv_sys_path_separator=':' ;;
1348 PATH_SEPARATOR=$lt_cv_sys_path_separator
1351 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1352 echo "configure:1353: checking for Cygwin environment" >&5
1353 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1363 #define __CYGWIN__ __CYGWIN32__
1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1381 echo "$ac_t""$ac_cv_cygwin" 1>&6
1383 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1384 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1385 echo "configure:1386: checking for mingw32 environment" >&5
1386 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1397 if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1410 echo "$ac_t""$ac_cv_mingw32" 1>&6
1412 test "$ac_cv_mingw32" = yes && MINGW32=yes
1413 # Check whether --enable-shared or --disable-shared was given.
1414 if test "${enable_shared+set}" = set; then
1415 enableval="$enable_shared"
1416 p=${PACKAGE-default}
1418 yes) enable_shared=yes ;;
1419 no) enable_shared=no ;;
1422 # Look at the argument we got. We use all the common list separators.
1423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1424 for pkg in $enableval; do
1425 if test "X$pkg" = "X$p"; then
1436 # Check whether --enable-static or --disable-static was given.
1437 if test "${enable_static+set}" = set; then
1438 enableval="$enable_static"
1439 p=${PACKAGE-default}
1441 yes) enable_static=yes ;;
1442 no) enable_static=no ;;
1445 # Look at the argument we got. We use all the common list separators.
1446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1447 for pkg in $enableval; do
1448 if test "X$pkg" = "X$p"; then
1459 # Check whether --enable-fast-install or --disable-fast-install was given.
1460 if test "${enable_fast_install+set}" = set; then
1461 enableval="$enable_fast_install"
1462 p=${PACKAGE-default}
1464 yes) enable_fast_install=yes ;;
1465 no) enable_fast_install=no ;;
1467 enable_fast_install=no
1468 # Look at the argument we got. We use all the common list separators.
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1470 for pkg in $enableval; do
1471 if test "X$pkg" = "X$p"; then
1472 enable_fast_install=yes
1479 enable_fast_install=yes
1483 # Make sure we can run config.sub.
1484 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1485 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1488 echo $ac_n "checking host system type""... $ac_c" 1>&6
1489 echo "configure:1490: checking host system type" >&5
1492 case "$host_alias" in
1496 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1497 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1499 *) host_alias=$nonopt ;;
1503 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1504 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507 echo "$ac_t""$host" 1>&6
1509 echo $ac_n "checking build system type""... $ac_c" 1>&6
1510 echo "configure:1511: checking build system type" >&5
1513 case "$build_alias" in
1516 NONE) build_alias=$host_alias ;;
1517 *) build_alias=$nonopt ;;
1521 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1522 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$ac_t""$build" 1>&6
1527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1528 if test "${with_gnu_ld+set}" = set; then
1529 withval="$with_gnu_ld"
1530 test "$withval" = no || with_gnu_ld=yes
1536 if test "$GCC" = yes; then
1537 # Check if gcc -print-prog-name=ld gives a path.
1538 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1539 echo "configure:1540: checking for ld used by GCC" >&5
1542 # gcc leaves a trailing carriage return which upsets mingw
1543 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1545 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1548 # Accept absolute paths.
1549 [\\/]* | [A-Za-z]:[\\/]*)
1550 re_direlt='/[^/][^/]*/\.\./'
1551 # Canonicalize the path of ld
1552 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1553 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1554 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1556 test -z "$LD" && LD="$ac_prog"
1559 # If it fails, then pretend we aren't using GCC.
1563 # If it is relative, then search for the first ld in PATH.
1567 elif test "$with_gnu_ld" = yes; then
1568 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1569 echo "configure:1570: checking for GNU ld" >&5
1571 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1572 echo "configure:1573: checking for non-GNU ld" >&5
1574 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 if test -z "$LD"; then
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1579 for ac_dir in $PATH; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1582 lt_cv_path_LD="$ac_dir/$ac_prog"
1583 # Check to see if the program is GNU ld. I'd rather use --version,
1584 # but apparently some GNU ld's only accept -v.
1585 # Break only if it was the GNU/non-GNU ld that we prefer.
1586 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1587 test "$with_gnu_ld" != no && break
1589 test "$with_gnu_ld" != yes && break
1595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1600 if test -n "$LD"; then
1601 echo "$ac_t""$LD" 1>&6
1603 echo "$ac_t""no" 1>&6
1605 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1606 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1607 echo "configure:1608: checking if the linker ($LD) is GNU ld" >&5
1608 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1612 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1613 lt_cv_prog_gnu_ld=yes
1615 lt_cv_prog_gnu_ld=no
1619 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1620 with_gnu_ld=$lt_cv_prog_gnu_ld
1623 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $LD option to reload object files" >&5
1625 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 lt_cv_ld_reload_flag='-r'
1631 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1632 reload_flag=$lt_cv_ld_reload_flag
1633 test -n "$reload_flag" && reload_flag=" $reload_flag"
1635 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1636 echo "configure:1637: checking for BSD-compatible nm" >&5
1637 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 if test -n "$NM"; then
1641 # Let the user override the test.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1645 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1646 test -z "$ac_dir" && ac_dir=.
1647 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1648 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1649 # Check to see if the nm accepts a BSD-compat flag.
1650 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1651 # nm: unknown option "B" ignored
1652 # Tru64's nm complains that /dev/null is an invalid object file
1653 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1654 lt_cv_path_NM="$tmp_nm -B"
1656 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1657 lt_cv_path_NM="$tmp_nm -p"
1660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1661 continue # so that we can try to find one that supports BSD flags
1666 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1671 echo "$ac_t""$NM" 1>&6
1673 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether ln -s works" >&5
1675 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1679 if ln -s X conftestdata 2>/dev/null
1682 ac_cv_prog_LN_S="ln -s"
1687 LN_S="$ac_cv_prog_LN_S"
1688 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1689 echo "$ac_t""yes" 1>&6
1691 echo "$ac_t""no" 1>&6
1694 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1695 echo "configure:1696: checking how to recognise dependant libraries" >&5
1696 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 lt_cv_file_magic_cmd='$MAGIC_CMD'
1700 lt_cv_file_magic_test_file=
1701 lt_cv_deplibs_check_method='unknown'
1702 # Need to set the preceding variable on all platforms that support
1703 # interlibrary dependencies.
1704 # 'none' -- dependencies not supported.
1705 # `unknown' -- same as none, but documents that we really don't know.
1706 # 'pass_all' -- all dependencies passed with no checks.
1707 # 'test_compile' -- check by making test program.
1708 # 'file_magic [[regex]]' -- check by looking for files in library path
1709 # which responds to the $file_magic_cmd with a given egrep regex.
1710 # If you have `file' or equivalent on your system and you're not sure
1711 # whether `pass_all' will *always* work, you probably want this one.
1715 lt_cv_deplibs_check_method=pass_all
1719 lt_cv_deplibs_check_method=pass_all
1723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1724 lt_cv_file_magic_cmd='/usr/bin/file -L'
1725 lt_cv_file_magic_test_file=/shlib/libc.so
1728 cygwin* | mingw* | pw32*)
1729 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1730 lt_cv_file_magic_cmd='$OBJDUMP -f'
1733 darwin* | rhapsody*)
1734 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1735 lt_cv_file_magic_cmd='/usr/bin/file -L'
1737 rhapsody* | darwin1.[012])
1738 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1741 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1747 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1750 # Not sure whether the presence of OpenBSD here was a mistake.
1751 # Let's accept both of them until this is cleared up.
1752 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1753 lt_cv_file_magic_cmd=/usr/bin/file
1754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1758 lt_cv_deplibs_check_method=pass_all
1763 lt_cv_deplibs_check_method=pass_all
1767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1768 lt_cv_file_magic_cmd=/usr/bin/file
1769 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1775 # this will be overridden with pass_all, but let us keep it just in case
1776 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1780 *-32|*"-32 ") libmagic=32-bit;;
1781 *-n32|*"-n32 ") libmagic=N32;;
1782 *-64|*"-64 ") libmagic=64-bit;;
1783 *) libmagic=never-match;;
1785 # this will be overridden with pass_all, but let us keep it just in case
1786 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1789 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1790 lt_cv_deplibs_check_method=pass_all
1793 # This must be Linux ELF.
1796 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
1797 lt_cv_deplibs_check_method=pass_all ;;
1799 # glibc up to 2.1.1 does not perform some relocations on ARM
1800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1802 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1806 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1807 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1809 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1815 lt_cv_file_magic_cmd=/usr/bin/file
1816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1820 lt_cv_file_magic_cmd=/usr/bin/file
1821 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1825 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1829 osf3* | osf4* | osf5*)
1830 # this will be overridden with pass_all, but let us keep it just in case
1831 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1832 lt_cv_file_magic_test_file=/shlib/libc.so
1833 lt_cv_deplibs_check_method=pass_all
1837 lt_cv_deplibs_check_method=pass_all
1841 lt_cv_deplibs_check_method=pass_all
1842 lt_cv_file_magic_test_file=/lib/libc.so
1845 sysv5uw[78]* | sysv4*uw2*)
1846 lt_cv_deplibs_check_method=pass_all
1849 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1850 case $host_vendor in
1852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1856 lt_cv_deplibs_check_method=pass_all
1859 lt_cv_file_magic_cmd='/bin/file'
1860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1863 lt_cv_file_magic_cmd='/bin/file'
1864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1865 lt_cv_file_magic_test_file=/lib/libc.so
1873 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1874 file_magic_cmd=$lt_cv_file_magic_cmd
1875 deplibs_check_method=$lt_cv_deplibs_check_method
1877 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1878 echo "configure:1879: checking for object suffix" >&5
1879 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1883 echo 'int i = 1;' > conftest.$ac_ext
1884 if { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 for ac_file in conftest.*; do
1888 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1892 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1897 echo "$ac_t""$ac_cv_objext" 1>&6
1898 OBJEXT=$ac_cv_objext
1899 ac_objext=$ac_cv_objext
1903 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1904 echo "configure:1905: checking for executable suffix" >&5
1905 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1912 echo 'int main () { return 0; }' > conftest.$ac_ext
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1915 for file in conftest.*; do
1917 *.c | *.o | *.obj) ;;
1918 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1922 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1925 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1930 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1931 echo "$ac_t""${ac_cv_exeext}" 1>&6
1934 if test $host != $build; then
1935 ac_tool_prefix=${host_alias}-
1943 # Check for command to grab the raw symbol name followed by C symbol from nm.
1944 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1945 echo "configure:1946: checking command to parse $NM output" >&5
1946 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1950 # These are sane defaults that work on at least a few old systems.
1951 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1953 # Character class describing NM global symbol codes.
1954 symcode='[BCDEGRST]'
1956 # Regexp to match symbols that can be accessed directly from C.
1957 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1959 # Transform the above into a raw symbol and a C symbol.
1960 symxfrm='\1 \2\3 \3'
1962 # Transform an extracted symbol line into a proper C declaration
1963 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1965 # Transform an extracted symbol line into symbol name and symbol address
1966 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1968 # Define system-specific variables.
1973 cygwin* | mingw* | pw32*)
1974 symcode='[ABCDGISTW]'
1976 hpux*) # Its linker distinguishes data from code symbols
1977 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1978 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1981 symcode='[BCDEGRST]'
1991 # Handle CRLF in mingw tool chain
1995 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1999 # If we're using GNU nm, then use its standard symbol codes.
2000 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2001 symcode='[ABCDGISTW]'
2004 # Try without a prefix undercore, then with it.
2005 for ac_symprfx in "" "_"; do
2007 # Write the raw and C identifiers.
2008 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2010 # Check to see that the pipe works correctly.
2013 cat > conftest.$ac_ext <<EOF
2018 void nm_test_func(){}
2022 int main(){nm_test_var='a';nm_test_func();return(0);}
2025 if { (eval echo configure:2026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2026 # Now try to grab the symbols.
2028 if { (eval echo configure:2029: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2029 # Try sorting and uniquifying the output.
2030 if sort "$nlist" | uniq > "$nlist"T; then
2031 mv -f "$nlist"T "$nlist"
2036 # Make sure that we snagged all the symbols we need.
2037 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2038 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2039 cat <<EOF > conftest.$ac_ext
2045 # Now generate the symbol file.
2046 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2048 cat <<EOF >> conftest.$ac_ext
2049 #if defined (__STDC__) && __STDC__
2050 # define lt_ptr void *
2052 # define lt_ptr char *
2056 /* The mapping between symbol names and symbols. */
2061 lt_preloaded_symbols[] =
2064 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2065 cat <<\EOF >> conftest.$ac_ext
2073 # Now try linking the two files.
2074 mv conftest.$ac_objext conftstm.$ac_objext
2076 save_CFLAGS="$CFLAGS"
2077 LIBS="conftstm.$ac_objext"
2078 CFLAGS="$CFLAGS$no_builtin_flag"
2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2083 CFLAGS="$save_CFLAGS"
2085 echo "cannot find nm_test_func in $nlist" >&5
2088 echo "cannot find nm_test_var in $nlist" >&5
2091 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2094 echo "$progname: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2097 rm -f conftest* conftst*
2099 # Do not use the global_symbol_pipe unless it works.
2100 if test "$pipe_works" = yes; then
2103 lt_cv_sys_global_symbol_pipe=
2109 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2110 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2111 global_symbol_to_cdecl=
2112 global_symbol_to_c_name_address=
2114 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2115 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2117 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2119 echo "$ac_t""failed" 1>&6
2121 echo "$ac_t""ok" 1>&6
2124 for ac_hdr in dlfcn.h
2126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2128 echo "configure:2129: checking for $ac_hdr" >&5
2129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2138 { (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2140 if test -z "$ac_err"; then
2142 eval "ac_cv_header_$ac_safe=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 eval "ac_cv_header_$ac_safe=no"
2152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2155 cat >> confdefs.h <<EOF
2156 #define $ac_tr_hdr 1
2160 echo "$ac_t""no" 1>&6
2168 # Only perform the check for file, if the check method requires it
2169 case $deplibs_check_method in
2171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2172 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2173 echo "configure:2174: checking for ${ac_tool_prefix}file" >&5
2174 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2185 ac_save_MAGIC_CMD="$MAGIC_CMD"
2186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2187 ac_dummy="/usr/bin:$PATH"
2188 for ac_dir in $ac_dummy; do
2189 test -z "$ac_dir" && ac_dir=.
2190 if test -f $ac_dir/${ac_tool_prefix}file; then
2191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2192 if test -n "$file_magic_test_file"; then
2193 case $deplibs_check_method in
2195 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2198 egrep "$file_magic_regex" > /dev/null; then
2203 *** Warning: the command libtool uses to detect shared libraries,
2204 *** $file_magic_cmd, produces output that libtool cannot recognize.
2205 *** The result is that libtool may fail to recognize shared libraries
2206 *** as such. This will affect the creation of libtool libraries that
2207 *** depend on shared libraries, but programs linked with such libtool
2208 *** libraries will work regardless of this problem. Nevertheless, you
2209 *** may want to report the problem to your system manager and/or to
2210 *** bug-libtool@gnu.org
2220 MAGIC_CMD="$ac_save_MAGIC_CMD"
2225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2226 if test -n "$MAGIC_CMD"; then
2227 echo "$ac_t""$MAGIC_CMD" 1>&6
2229 echo "$ac_t""no" 1>&6
2232 if test -z "$lt_cv_path_MAGIC_CMD"; then
2233 if test -n "$ac_tool_prefix"; then
2234 echo $ac_n "checking for file""... $ac_c" 1>&6
2235 echo "configure:2236: checking for file" >&5
2236 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2247 ac_save_MAGIC_CMD="$MAGIC_CMD"
2248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2249 ac_dummy="/usr/bin:$PATH"
2250 for ac_dir in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir=.
2252 if test -f $ac_dir/file; then
2253 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2254 if test -n "$file_magic_test_file"; then
2255 case $deplibs_check_method in
2257 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2260 egrep "$file_magic_regex" > /dev/null; then
2265 *** Warning: the command libtool uses to detect shared libraries,
2266 *** $file_magic_cmd, produces output that libtool cannot recognize.
2267 *** The result is that libtool may fail to recognize shared libraries
2268 *** as such. This will affect the creation of libtool libraries that
2269 *** depend on shared libraries, but programs linked with such libtool
2270 *** libraries will work regardless of this problem. Nevertheless, you
2271 *** may want to report the problem to your system manager and/or to
2272 *** bug-libtool@gnu.org
2282 MAGIC_CMD="$ac_save_MAGIC_CMD"
2287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2288 if test -n "$MAGIC_CMD"; then
2289 echo "$ac_t""$MAGIC_CMD" 1>&6
2291 echo "$ac_t""no" 1>&6
2303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_word" >&5
2307 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 if test -n "$RANLIB"; then
2311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2315 for ac_dir in $ac_dummy; do
2316 test -z "$ac_dir" && ac_dir=.
2317 if test -f $ac_dir/$ac_word; then
2318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2325 RANLIB="$ac_cv_prog_RANLIB"
2326 if test -n "$RANLIB"; then
2327 echo "$ac_t""$RANLIB" 1>&6
2329 echo "$ac_t""no" 1>&6
2333 if test -z "$ac_cv_prog_RANLIB"; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "ranlib", so it can be a program name with args.
2336 set dummy ranlib; ac_word=$2
2337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_word" >&5
2339 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2347 for ac_dir in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir=.
2349 if test -f $ac_dir/$ac_word; then
2350 ac_cv_prog_RANLIB="ranlib"
2355 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2358 RANLIB="$ac_cv_prog_RANLIB"
2359 if test -n "$RANLIB"; then
2360 echo "$ac_t""$RANLIB" 1>&6
2362 echo "$ac_t""no" 1>&6
2370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}strip; ac_word=$2
2372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_word" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 if test -n "$STRIP"; then
2378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2382 for ac_dir in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2392 STRIP="$ac_cv_prog_STRIP"
2393 if test -n "$STRIP"; then
2394 echo "$ac_t""$STRIP" 1>&6
2396 echo "$ac_t""no" 1>&6
2400 if test -z "$ac_cv_prog_STRIP"; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "strip", so it can be a program name with args.
2403 set dummy strip; ac_word=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2414 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 if test -f $ac_dir/$ac_word; then
2417 ac_cv_prog_STRIP="strip"
2422 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2425 STRIP="$ac_cv_prog_STRIP"
2426 if test -n "$STRIP"; then
2427 echo "$ac_t""$STRIP" 1>&6
2429 echo "$ac_t""no" 1>&6
2441 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2442 if test "${enable_libtool_lock+set}" = set; then
2443 enableval="$enable_libtool_lock"
2447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2449 # Some flags need to be propagated to the compiler or linker for good
2453 # Find out which ABI we are using.
2454 echo '#line 2455 "configure"' > conftest.$ac_ext
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456 case `/usr/bin/file conftest.$ac_objext` in
2472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473 SAVE_CFLAGS="$CFLAGS"
2474 CFLAGS="$CFLAGS -belf"
2475 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 lt_cv_cc_needs_belf=yes
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 lt_cv_cc_needs_belf=no
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518 CFLAGS="$SAVE_CFLAGS"
2525 # Sed substitution that helps us do robust quoting. It backslashifies
2526 # metacharacters that are still active within double-quoted strings.
2527 Xsed='sed -e s/^X//'
2528 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2530 # Same as above, but do not quote variable references.
2531 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2533 # Sed substitution to delay expansion of an escaped shell variable in a
2534 # double_quote_subst'ed string.
2535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2541 default_ofile=libtool
2542 can_build_shared=yes
2544 # All known linkers require a `.a' archive for static linking (except M$VC,
2545 # which needs '.lib').
2547 ltmain="$ac_aux_dir/ltmain.sh"
2548 ofile="$default_ofile"
2549 with_gnu_ld="$lt_cv_prog_gnu_ld"
2550 need_locks="$enable_libtool_lock"
2553 old_CFLAGS="$CFLAGS"
2555 # Set sane defaults for various variables
2556 test -z "$AR" && AR=ar
2557 test -z "$AR_FLAGS" && AR_FLAGS=cru
2558 test -z "$AS" && AS=as
2559 test -z "$CC" && CC=cc
2560 test -z "$DLLTOOL" && DLLTOOL=dlltool
2561 test -z "$LD" && LD=ld
2562 test -z "$LN_S" && LN_S="ln -s"
2563 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2564 test -z "$NM" && NM=nm
2565 test -z "$OBJDUMP" && OBJDUMP=objdump
2566 test -z "$RANLIB" && RANLIB=:
2567 test -z "$STRIP" && STRIP=:
2568 test -z "$ac_objext" && ac_objext=o
2570 if test x"$host" != x"$build"; then
2571 ac_tool_prefix=${host_alias}-
2576 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2579 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2584 # AIX sometimes has problems with the GCC collect2 program. For some
2585 # reason, if we set the COLLECT_NAMES environment variable, the problems
2586 # vanish in a puff of smoke.
2587 if test "X${COLLECT_NAMES+set}" != Xset; then
2589 export COLLECT_NAMES
2594 # Determine commands to create old-style static archives.
2595 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2596 old_postinstall_cmds='chmod 644 $oldlib'
2597 old_postuninstall_cmds=
2599 if test -n "$RANLIB"; then
2602 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2605 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2608 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2611 # Allow CC to be a program name with arguments.
2615 ## FIXME: this should be a separate macro
2617 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2618 echo "configure:2619: checking for objdir" >&5
2619 rm -f .libs 2>/dev/null
2620 mkdir .libs 2>/dev/null
2621 if test -d .libs; then
2624 # MS-DOS does not allow filenames that begin with a dot.
2627 rmdir .libs 2>/dev/null
2628 echo "$ac_t""$objdir" 1>&6
2633 ## FIXME: this should be a separate macro
2635 # Check whether --with-pic or --without-pic was given.
2636 if test "${with_pic+set}" = set; then
2643 test -z "$pic_mode" && pic_mode=default
2645 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2646 # in isolation, and that seeing it set (from the cache) indicates that
2647 # the associated values are set (in the cache) correctly too.
2648 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $compiler option to produce PIC" >&5
2650 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2654 lt_cv_prog_cc_shlib=
2656 lt_cv_prog_cc_static=
2657 lt_cv_prog_cc_no_builtin=
2658 lt_cv_prog_cc_can_build_shared=$can_build_shared
2660 if test "$GCC" = yes; then
2661 lt_cv_prog_cc_wl='-Wl,'
2662 lt_cv_prog_cc_static='-static'
2666 # Below there is a dirty hack to force normal static linking with -ldl
2667 # The problem is because libdl dynamically linked with both libc and
2668 # libC (AIX C++ library), which obviously doesn't included in libraries
2669 # list by gcc. This cause undefined symbols with -static flags.
2670 # This hack allows C programs to be linked with "-static -ldl", but
2671 # not sure about C++ programs.
2672 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2675 # FIXME: we need at least 68020 code to build shared libraries, but
2676 # adding the `-m68020' flag to GCC prevents building anything better,
2678 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2680 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2681 # PIC is the default for these OSes.
2683 darwin* | rhapsody*)
2684 # PIC is the default on this platform
2685 # Common symbols not allowed in MH_DYLIB files
2686 lt_cv_prog_cc_pic='-fno-common'
2688 cygwin* | mingw* | pw32* | os2*)
2689 # This hack is so that the source file can tell whether it is being
2690 # built for inclusion in a dll (and should export symbols for example).
2691 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2694 if test -d /usr/nec; then
2695 lt_cv_prog_cc_pic=-Kconform_pic
2699 lt_cv_prog_cc_pic='-fPIC'
2703 # PORTME Check for PIC flags for the system compiler.
2705 aix3* | aix4* | aix5*)
2706 lt_cv_prog_cc_wl='-Wl,'
2707 # All AIX code is PIC.
2708 if test "$host_cpu" = ia64; then
2709 # AIX 5 now supports IA64 processor
2710 lt_cv_prog_cc_static='-Bstatic'
2712 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2716 hpux9* | hpux10* | hpux11*)
2717 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2718 lt_cv_prog_cc_wl='-Wl,'
2719 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2720 lt_cv_prog_cc_pic='+Z'
2724 lt_cv_prog_cc_wl='-Wl,'
2725 lt_cv_prog_cc_static='-non_shared'
2726 # PIC (with -KPIC) is the default.
2729 cygwin* | mingw* | pw32* | os2*)
2730 # This hack is so that the source file can tell whether it is being
2731 # built for inclusion in a dll (and should export symbols for example).
2732 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2736 lt_cv_prog_cc_pic='-KPIC'
2737 lt_cv_prog_cc_static='-Bstatic'
2740 osf3* | osf4* | osf5*)
2741 # All OSF/1 code is PIC.
2742 lt_cv_prog_cc_wl='-Wl,'
2743 lt_cv_prog_cc_static='-non_shared'
2747 lt_cv_prog_cc_pic='-Kpic'
2748 lt_cv_prog_cc_static='-dn'
2749 lt_cv_prog_cc_shlib='-belf'
2753 lt_cv_prog_cc_pic='-KPIC'
2754 lt_cv_prog_cc_static='-Bstatic'
2755 lt_cv_prog_cc_wl='-Wl,'
2759 lt_cv_prog_cc_pic='-PIC'
2760 lt_cv_prog_cc_static='-Bstatic'
2761 lt_cv_prog_cc_wl='-Qoption ld '
2764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2765 lt_cv_prog_cc_pic='-KPIC'
2766 lt_cv_prog_cc_static='-Bstatic'
2767 if test "x$host_vendor" = xsni; then
2768 lt_cv_prog_cc_wl='-LD'
2770 lt_cv_prog_cc_wl='-Wl,'
2775 lt_cv_prog_cc_pic='-pic'
2776 lt_cv_prog_cc_static='-Bstatic'
2780 if test -d /usr/nec ;then
2781 lt_cv_prog_cc_pic='-Kconform_pic'
2782 lt_cv_prog_cc_static='-Bstatic'
2787 lt_cv_prog_cc_can_build_shared=no
2794 if test -z "$lt_cv_prog_cc_pic"; then
2795 echo "$ac_t""none" 1>&6
2797 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2799 # Check to make sure the pic_flag actually works.
2800 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2801 echo "configure:2802: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2802 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 save_CFLAGS="$CFLAGS"
2806 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2815 if { (eval echo configure:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 hpux9* | hpux10* | hpux11*)
2819 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2820 # they create non-PIC objects. So, if there were any warnings, we
2821 # assume that PIC is not supported.
2822 if test -s conftest.err; then
2823 lt_cv_prog_cc_pic_works=no
2825 lt_cv_prog_cc_pic_works=yes
2829 lt_cv_prog_cc_pic_works=yes
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2837 lt_cv_prog_cc_pic_works=no
2841 CFLAGS="$save_CFLAGS"
2846 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2848 lt_cv_prog_cc_can_build_shared=no
2850 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2853 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2858 # Check for any special shared library compilation flags.
2859 if test -n "$lt_cv_prog_cc_shlib"; then
2860 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2861 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2863 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2864 lt_cv_prog_cc_can_build_shared=no
2868 ## FIXME: this should be a separate macro
2870 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2871 echo "configure:2872: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2872 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 lt_cv_prog_cc_static_works=no
2876 save_LDFLAGS="$LDFLAGS"
2877 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2888 lt_cv_prog_cc_static_works=yes
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2894 LDFLAGS="$save_LDFLAGS"
2899 # Belt *and* braces to stop my trousers falling down:
2900 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2901 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2903 pic_flag="$lt_cv_prog_cc_pic"
2904 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2905 wl="$lt_cv_prog_cc_wl"
2906 link_static_flag="$lt_cv_prog_cc_static"
2907 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2908 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2913 ## FIXME: this should be a separate macro
2915 # Check to see if options -o and -c are simultaneously supported by compiler
2916 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2917 echo "configure:2918: checking if $compiler supports -c -o file.$ac_objext" >&5
2918 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2922 $rm -r conftest 2>/dev/null
2925 echo "int some_variable = 0;" > conftest.$ac_ext
2927 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2928 # that will create temporary files in the current directory regardless of
2929 # the output directory. Thus, making CWD read-only will cause this test
2930 # to fail, enabling locking or at least warning the user not to do parallel
2933 save_CFLAGS="$CFLAGS"
2934 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2936 if { (eval echo configure:2937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2937 # The compiler can only warn and ignore the option if not recognized
2938 # So say no if there are warnings
2939 if test -s out/conftest.err; then
2940 lt_cv_compiler_c_o=no
2942 lt_cv_compiler_c_o=yes
2945 # Append any errors to the config.log.
2946 cat out/conftest.err 1>&5
2947 lt_cv_compiler_c_o=no
2949 CFLAGS="$save_CFLAGS"
2955 $rm -r conftest 2>/dev/null
2959 compiler_c_o=$lt_cv_compiler_c_o
2960 echo "$ac_t""$compiler_c_o" 1>&6
2962 if test x"$compiler_c_o" = x"yes"; then
2963 # Check to see if we can write to a .lo
2964 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2965 echo "configure:2966: checking if $compiler supports -c -o file.lo" >&5
2966 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2970 lt_cv_compiler_o_lo=no
2971 save_CFLAGS="$CFLAGS"
2972 CFLAGS="$CFLAGS -c -o conftest.lo"
2973 save_objext="$ac_objext"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 int some_variable = 0;
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings
2987 if test -s conftest.err; then
2988 lt_cv_compiler_o_lo=no
2990 lt_cv_compiler_o_lo=yes
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2998 ac_objext="$save_objext"
2999 CFLAGS="$save_CFLAGS"
3003 compiler_o_lo=$lt_cv_compiler_o_lo
3004 echo "$ac_t""$compiler_o_lo" 1>&6
3011 ## FIXME: this should be a separate macro
3013 # Check to see if we can do hard links to lock some files if needed
3014 hard_links="nottested"
3015 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3016 # do not overwrite the value of need_locks provided by the user
3017 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3018 echo "configure:3019: checking if we can lock with hard links" >&5
3021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3023 ln conftest.a conftest.b 2>&5 || hard_links=no
3024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3025 echo "$ac_t""$hard_links" 1>&6
3026 if test "$hard_links" = no; then
3027 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3036 ## FIXME: this should be a separate macro
3038 if test "$GCC" = yes; then
3039 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3040 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3041 echo "configure:3042: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3042 echo "int some_variable = 0;" > conftest.$ac_ext
3043 save_CFLAGS="$CFLAGS"
3044 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3045 compiler_rtti_exceptions=no
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3051 int some_variable = 0;
3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 # The compiler can only warn and ignore the option if not recognized
3057 # So say no if there are warnings
3058 if test -s conftest.err; then
3059 compiler_rtti_exceptions=no
3061 compiler_rtti_exceptions=yes
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3069 CFLAGS="$save_CFLAGS"
3070 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3072 if test "$compiler_rtti_exceptions" = "yes"; then
3073 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3075 no_builtin_flag=' -fno-builtin'
3081 ## FIXME: this should be a separate macro
3083 # See if the linker supports building shared libraries.
3084 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3085 echo "configure:3086: checking whether the linker ($LD) supports shared libraries" >&5
3087 allow_undefined_flag=
3089 need_lib_prefix=unknown
3090 need_version=unknown
3091 # when you set need_version to no, make sure it does not cause -set_version
3092 # flags to be left without arguments
3094 archive_expsym_cmds=
3095 old_archive_from_new_cmds=
3096 old_archive_from_expsyms_cmds=
3097 export_dynamic_flag_spec=
3098 whole_archive_flag_spec=
3099 thread_safe_flag_spec=
3100 hardcode_into_libs=no
3101 hardcode_libdir_flag_spec=
3102 hardcode_libdir_separator=
3105 hardcode_shlibpath_var=unsupported
3107 link_all_deplibs=unknown
3108 always_export_symbols=no
3109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3110 # include_expsyms should be a list of space-separated symbols to be *always*
3111 # included in the symbol list
3113 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3114 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3115 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3116 # as well as any symbol that contains `d'.
3117 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3118 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3119 # platforms (ab)use it in PIC code, but their linkers get confused if
3120 # the symbol is explicitly referenced. Since portable code cannot
3121 # rely on this symbol name, it's probably fine to never include it in
3122 # preloaded symbol tables.
3123 extract_expsyms_cmds=
3126 cygwin* | mingw* | pw32*)
3127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3128 # When not using gcc, we currently assume that we are using
3129 # Microsoft Visual C++.
3130 if test "$GCC" != yes; then
3140 if test "$with_gnu_ld" = yes; then
3141 # If archive_cmds runs LD, not CC, wlarc should be empty
3144 # See if GNU ld supports shared libraries.
3146 aix3* | aix4* | aix5*)
3147 # On AIX, the GNU linker is very broken
3148 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3152 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3153 *** to be unable to reliably create shared libraries on AIX.
3154 *** Therefore, libtool is disabling shared libraries support. If you
3155 *** really care for shared libraries, you may want to modify your PATH
3156 *** so that a non-GNU linker is found, and then restart.
3162 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3163 hardcode_libdir_flag_spec='-L$libdir'
3164 hardcode_minus_L=yes
3166 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3167 # that the semantics of dynamic libraries on AmigaOS, at least up
3168 # to version 4, is to share data among multiple programs linked
3169 # with the same dynamic library. Since this doesn't match the
3170 # behavior of shared libraries on other platforms, we can use
3176 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3177 allow_undefined_flag=unsupported
3178 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3179 # support --undefined. This deserves some investigation. FIXME
3180 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3186 cygwin* | mingw* | pw32*)
3187 # hardcode_libdir_flag_spec is actually meaningless, as there is
3188 # no search path for DLLs.
3189 hardcode_libdir_flag_spec='-L$libdir'
3190 allow_undefined_flag=unsupported
3191 always_export_symbols=yes
3193 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3194 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3195 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3196 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3197 else $CC -o impgen impgen.c ; fi)~
3198 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3200 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3202 # cygwin and mingw dlls have different entry points and sets of symbols
3204 # FIXME: what about values for MSVC?
3205 dll_entry=__cygwin_dll_entry@12
3206 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3210 dll_entry=_DllMainCRTStartup@12
3211 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3215 # mingw and cygwin differ, and it's simplest to just exclude the union
3216 # of the two symbol sets.
3217 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3219 # recent cygwin and mingw systems supply a stub DllMain which the user
3220 # can override, but on older systems we have to supply one (in ltdll.c)
3221 if test "x$lt_cv_need_dllmain" = "xyes"; then
3222 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3223 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
3224 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3230 # Extract the symbol export list from an `--export-all' def file,
3231 # then regenerate the def file from the symbol export list, so that
3232 # the compiled dll only exports the symbol export list.
3233 # Be careful not to strip the DATA tag left be newer dlltools.
3234 export_symbols_cmds="$ltdll_cmds"'
3235 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3236 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3238 # If the export-symbols file already is a .def file (1st line
3239 # is EXPORTS), use it as is.
3240 # If DATA tags from a recent dlltool are present, honour them!
3241 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3242 cp $export_symbols $output_objdir/$soname-def;
3244 echo EXPORTS > $output_objdir/$soname-def;
3246 cat $export_symbols | while read symbol; do
3249 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3250 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3252 _lt_hint=`expr 1 + \$_lt_hint`;
3256 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3257 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3258 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3259 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3260 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3265 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3268 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3269 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3274 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3279 *** create shared libraries on Solaris systems. Therefore, libtool
3280 *** is disabling shared libraries support. We urge you to upgrade GNU
3281 *** binutils to release 2.9.1 or newer. Another option is to modify
3282 *** your PATH or compiler configuration so that the native linker is
3283 *** used, and then restart.
3286 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3295 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3298 hardcode_shlibpath_var=no
3302 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3311 if test "$ld_shlibs" = yes; then
3312 runpath_var=LD_RUN_PATH
3313 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3314 export_dynamic_flag_spec='${wl}--export-dynamic'
3316 cygwin* | mingw* | pw32*)
3317 # dlltool doesn't understand --whole-archive et. al.
3318 whole_archive_flag_spec=
3321 # ancient GNU ld didn't support --whole-archive et. al.
3322 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3323 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3325 whole_archive_flag_spec=
3331 # PORTME fill in a description of your system's linker (not GNU ld)
3334 allow_undefined_flag=unsupported
3335 always_export_symbols=yes
3336 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3337 # Note: this linker hardcodes the directories in LIBPATH if there
3338 # are no directories specified by -L.
3339 hardcode_minus_L=yes
3340 if test "$GCC" = yes && test -z "$link_static_flag"; then
3341 # Neither direct hardcoding nor static linking is supported with a
3343 hardcode_direct=unsupported
3348 if test "$host_cpu" = ia64; then
3349 # On IA64, the linker does run time linking by default, so we don't
3350 # have to do anything special.
3351 aix_use_runtimelinking=no
3352 exp_sym_flag='-Bexport'
3355 aix_use_runtimelinking=no
3357 # Test if we are trying to use run time linking or normal
3358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3359 # need to do runtime linking.
3360 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3361 for ld_flag in $LDFLAGS; do
3362 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3363 aix_use_runtimelinking=yes
3369 exp_sym_flag='-bexport'
3370 no_entry_flag='-bnoentry'
3373 # When large executables or shared objects are built, AIX ld can
3374 # have problems creating the table of contents. If linking a library
3375 # or program results in "error TOC overflow" add -mminimal-toc to
3376 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3377 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3381 hardcode_libdir_separator=':'
3382 if test "$GCC" = yes; then
3383 case $host_os in aix4.[012]|aix4.[012].*)
3384 collect2name=`${CC} -print-prog-name=collect2`
3385 if test -f "$collect2name" && \
3386 strings "$collect2name" | grep resolve_lib_name >/dev/null
3388 # We have reworked collect2
3391 # We have old collect2
3392 hardcode_direct=unsupported
3393 # It fails to find uninstalled libraries when the uninstalled
3394 # path is not listed in the libpath. Setting hardcode_minus_L
3395 # to unsupported forces relinking
3396 hardcode_minus_L=yes
3397 hardcode_libdir_flag_spec='-L$libdir'
3398 hardcode_libdir_separator=
3402 shared_flag='-shared'
3405 if test "$host_cpu" = ia64; then
3406 shared_flag='${wl}-G'
3408 if test "$aix_use_runtimelinking" = yes; then
3409 shared_flag='${wl}-G'
3411 shared_flag='${wl}-bM:SRE'
3416 # It seems that -bexpall can do strange things, so it is better to
3417 # generate a list of symbols to export.
3418 always_export_symbols=yes
3419 if test "$aix_use_runtimelinking" = yes; then
3420 # Warning - without using the other runtime loading flags (-brtl),
3421 # -berok will link without error, but may produce a broken library.
3422 allow_undefined_flag='-berok'
3423 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3424 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3426 if test "$host_cpu" = ia64; then
3427 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3428 allow_undefined_flag="-z nodefs"
3429 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3431 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3432 # Warning - without using the other run time loading flags,
3433 # -berok will link without error, but may produce a broken library.
3434 allow_undefined_flag='${wl}-berok'
3435 # This is a bit strange, but is similar to how AIX traditionally builds
3436 # it's shared libraries.
3437 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3443 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3444 hardcode_libdir_flag_spec='-L$libdir'
3445 hardcode_minus_L=yes
3446 # see comment about different semantics on the GNU ld section
3450 cygwin* | mingw* | pw32*)
3451 # When not using gcc, we currently assume that we are using
3452 # Microsoft Visual C++.
3453 # hardcode_libdir_flag_spec is actually meaningless, as there is
3454 # no search path for DLLs.
3455 hardcode_libdir_flag_spec=' '
3456 allow_undefined_flag=unsupported
3457 # Tell ltmain to make .lib files, not .a files.
3459 # FIXME: Setting linknames here is a bad hack.
3460 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3461 # The linker will automatically build a .lib file if we build a DLL.
3462 old_archive_from_new_cmds='true'
3463 # FIXME: Should let the user specify the lib program.
3464 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3465 fix_srcfile_path='`cygpath -w "$srcfile"`'
3468 darwin* | rhapsody*)
3470 rhapsody* | darwin1.[012])
3471 allow_undefined_flag='-undefined suppress'
3474 allow_undefined_flag='-flat_namespace -undefined suppress'
3477 # FIXME: Relying on posixy $() will cause problems for
3478 # cross-compilation, but unfortunately the echo tests do not
3479 # yet detect zsh echo's removal of \ escapes.
3480 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3481 # We need to add '_' to the symbols in $export_symbols first
3482 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3484 hardcode_shlibpath_var=no
3485 whole_archive_flag_spec='-all_load $convenience'
3492 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3493 # support. Future versions do this automatically, but an explicit c++rt0.o
3494 # does not break anything, and helps significantly (at the cost of a little
3497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3498 hardcode_libdir_flag_spec='-R$libdir'
3500 hardcode_shlibpath_var=no
3503 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3507 hardcode_minus_L=yes
3508 hardcode_shlibpath_var=no
3511 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3513 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3514 hardcode_libdir_flag_spec='-R$libdir'
3516 hardcode_shlibpath_var=no
3519 hpux9* | hpux10* | hpux11*)
3521 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
3522 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3525 hardcode_libdir_separator=:
3527 hardcode_minus_L=yes # Not in the search PATH, but as the default
3528 # location of the library.
3529 export_dynamic_flag_spec='${wl}-E'
3533 if test "$GCC" = yes; then
3534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3536 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3539 hardcode_libdir_separator=:
3540 link_all_deplibs=yes
3544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3547 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3549 hardcode_libdir_flag_spec='-R$libdir'
3551 hardcode_shlibpath_var=no
3555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3558 hardcode_libdir_separator=:
3559 hardcode_shlibpath_var=no
3564 hardcode_shlibpath_var=no
3565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3568 export_dynamic_flag_spec='${wl}-E'
3571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3573 hardcode_libdir_flag_spec='-R$libdir'
3576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3584 hardcode_libdir_flag_spec='-L$libdir'
3585 hardcode_minus_L=yes
3586 allow_undefined_flag=unsupported
3587 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
3588 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3592 if test "$GCC" = yes; then
3593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3594 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3596 allow_undefined_flag=' -expect_unresolved \*'
3597 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3600 hardcode_libdir_separator=:
3603 osf4* | osf5*) # as osf3* with the addition of -msym flag
3604 if test "$GCC" = yes; then
3605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3606 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3609 allow_undefined_flag=' -expect_unresolved \*'
3610 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3611 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3612 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3614 #Both c and cxx compiler support -rpath directly
3615 hardcode_libdir_flag_spec='-rpath $libdir'
3617 hardcode_libdir_separator=:
3621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3622 hardcode_shlibpath_var=no
3623 runpath_var=LD_RUN_PATH
3624 hardcode_runpath_var=yes
3625 export_dynamic_flag_spec='${wl}-Bexport'
3629 # gcc --version < 3.0 without binutils cannot create self contained
3630 # shared libraries reliably, requiring libgcc.a to resolve some of
3631 # the object symbols generated in some cases. Libraries that use
3632 # assert need libgcc.a to resolve __eprintf, for example. Linking
3633 # a copy of libgcc.a into every shared library to guarantee resolving
3634 # such symbols causes other problems: According to Tim Van Holder
3635 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3636 # (to the application) exception stack for one thing.
3637 no_undefined_flag=' -z defs'
3638 if test "$GCC" = yes; then
3639 case `$CC --version 2>/dev/null` in
3643 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3644 *** create self contained shared libraries on Solaris systems, without
3645 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3646 *** -no-undefined support, which will at least allow you to build shared
3647 *** libraries. However, you may find that when you link such libraries
3648 *** into an application without using GCC, you have to manually add
3649 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3650 *** upgrade to a newer version of GCC. Another option is to rebuild your
3651 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3658 # $CC -shared without GNU ld will not create a library from C++
3659 # object files and a static libstdc++, better avoid it by now
3660 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3661 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3662 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3663 hardcode_libdir_flag_spec='-R$libdir'
3664 hardcode_shlibpath_var=no
3666 solaris2.[0-5] | solaris2.[0-5].*) ;;
3667 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3670 link_all_deplibs=yes
3674 if test "x$host_vendor" = xsequent; then
3675 # Use $CC to link under sequent, because it throws in some extra .o
3676 # files that make .init and .fini sections work.
3677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3681 hardcode_libdir_flag_spec='-L$libdir'
3683 hardcode_minus_L=yes
3684 hardcode_shlibpath_var=no
3688 if test "x$host_vendor" = xsno; then
3689 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3690 hardcode_direct=yes # is this really true???
3692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3693 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3695 runpath_var='LD_RUN_PATH'
3696 hardcode_shlibpath_var=no
3700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3701 hardcode_shlibpath_var=no
3702 export_dynamic_flag_spec='-Bexport'
3706 no_undefined_flag=' -z text'
3707 # $CC -shared without GNU ld will not create a library from C++
3708 # object files and a static libstdc++, better avoid it by now
3709 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3710 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3712 hardcode_libdir_flag_spec=
3713 hardcode_shlibpath_var=no
3714 runpath_var='LD_RUN_PATH'
3718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3719 hardcode_libdir_flag_spec='-L$libdir'
3720 hardcode_shlibpath_var=no
3724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3725 hardcode_libdir_flag_spec='-L$libdir'
3726 hardcode_shlibpath_var=no
3730 if test -d /usr/nec; then
3731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3732 hardcode_shlibpath_var=no
3733 runpath_var=LD_RUN_PATH
3734 hardcode_runpath_var=yes
3740 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3743 hardcode_shlibpath_var=no
3744 hardcode_runpath_var=yes
3745 runpath_var=LD_RUN_PATH
3748 sysv5uw7* | unixware7*)
3749 no_undefined_flag='${wl}-z ${wl}text'
3750 if test "$GCC" = yes; then
3751 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3753 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3755 runpath_var='LD_RUN_PATH'
3756 hardcode_shlibpath_var=no
3764 echo "$ac_t""$ld_shlibs" 1>&6
3765 test "$ld_shlibs" = no && can_build_shared=no
3769 ## FIXME: this should be a separate macro
3771 # Check hardcoding attributes.
3772 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3773 echo "configure:3774: checking how to hardcode library paths into programs" >&5
3775 if test -n "$hardcode_libdir_flag_spec" || \
3776 test -n "$runpath_var"; then
3778 # We can hardcode non-existant directories.
3779 if test "$hardcode_direct" != no &&
3780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3781 # have to relink, otherwise we might link with an installed library
3782 # when we should be linking with a yet-to-be-installed one
3783 ## test "$hardcode_shlibpath_var" != no &&
3784 test "$hardcode_minus_L" != no; then
3785 # Linking always hardcodes the temporary library directory.
3786 hardcode_action=relink
3788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3789 hardcode_action=immediate
3792 # We cannot hardcode anything, or else we can only hardcode existing
3794 hardcode_action=unsupported
3796 echo "$ac_t""$hardcode_action" 1>&6
3800 ## FIXME: this should be a separate macro
3804 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3805 echo "configure:3806: checking whether stripping libraries is possible" >&5
3806 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3807 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3808 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3809 echo "$ac_t""yes" 1>&6
3811 echo "$ac_t""no" 1>&6
3816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3817 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3819 ## FIXME: this should be a separate macro
3821 # PORTME Fill in your ld.so characteristics
3822 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3823 echo "configure:3824: checking dynamic linker characteristics" >&5
3825 libname_spec='lib$name'
3832 shlibpath_overrides_runpath=unknown
3834 dynamic_linker="$host_os ld.so"
3835 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3841 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3842 shlibpath_var=LIBPATH
3844 # AIX has no versioning support, so we append a major version to the name.
3845 soname_spec='${libname}${release}.so$major'
3850 if test "$host_cpu" = ia64; then
3851 # AIX 5 supports IA64
3852 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3853 shlibpath_var=LD_LIBRARY_PATH
3855 # With GCC up to 2.95.x, collect2 would create an import file
3856 # for dependence libraries. The import file would start with
3857 # the line `#! .'. This would cause the generated library to
3858 # depend on `.', always an invalid library. This was fixed in
3859 # development snapshots of GCC prior to 3.0.
3861 aix4 | aix4.[01] | aix4.[01].*)
3862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3871 # AIX (on Power*) has no versioning support, so currently we can
3872 # not hardcode correct soname into executable. Probably we can
3873 # add versioning support to collect2, so additional links can
3874 # be useful in future.
3875 if test "$aix_use_runtimelinking" = yes; then
3876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3877 # instead of lib<name>.a to let people know that these are not
3878 # typical AIX shared libraries.
3879 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3881 # We preserve .a as extension for shared libraries through AIX4.2
3882 # and later when we are not doing run time linking.
3883 library_names_spec='${libname}${release}.a $libname.a'
3884 soname_spec='${libname}${release}.so$major'
3886 shlibpath_var=LIBPATH
3891 library_names_spec='$libname.ixlibrary $libname.a'
3892 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3893 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
3897 library_names_spec='${libname}.so'
3898 dynamic_linker="$host_os ld.so"
3899 shlibpath_var=LIBRARY_PATH
3905 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3906 soname_spec='${libname}${release}.so$major'
3907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3908 shlibpath_var=LD_LIBRARY_PATH
3909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3911 export_dynamic_flag_spec=-rdynamic
3912 # the default ld.so.conf also contains /usr/contrib/lib and
3913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3914 # libtool to hard-code these into programs
3917 cygwin* | mingw* | pw32*)
3918 version_type=windows
3921 case $GCC,$host_os in
3923 library_names_spec='$libname.dll.a'
3924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3925 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3926 dldir=$destdir/`dirname \$dlpath`~
3927 test -d \$dldir || mkdir -p \$dldir~
3928 $install_prog .libs/$dlname \$dldir/$dlname'
3929 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3930 dlpath=$dir/\$dldll~
3934 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3941 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3944 dynamic_linker='Win32 ld.exe'
3945 # FIXME: first we should search . and the directory the executable is in
3949 darwin* | rhapsody*)
3950 dynamic_linker="$host_os dyld"
3954 # FIXME: Relying on posixy $() will cause problems for
3955 # cross-compilation, but unfortunately the echo tests do not
3956 # yet detect zsh echo's removal of \ escapes.
3957 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3958 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3959 shlibpath_overrides_runpath=yes
3960 shlibpath_var=DYLD_LIBRARY_PATH
3968 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3969 version_type=freebsd-$objformat
3970 case $version_type in
3972 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3977 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3981 shlibpath_var=LD_LIBRARY_PATH
3984 shlibpath_overrides_runpath=yes
3987 shlibpath_overrides_runpath=no
3988 hardcode_into_libs=yes
3997 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3998 soname_spec='${libname}${release}.so$major'
3999 shlibpath_var=LD_LIBRARY_PATH
4000 hardcode_into_libs=yes
4003 hpux9* | hpux10* | hpux11*)
4004 # Give a soname corresponding to the major version so that dld.sl refuses to
4005 # link against other versions.
4006 dynamic_linker="$host_os dld.sl"
4010 shlibpath_var=SHLIB_PATH
4011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4012 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4013 soname_spec='${libname}${release}.sl$major'
4014 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4015 postinstall_cmds='chmod 555 $lib'
4022 soname_spec='${libname}${release}.so$major'
4023 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4029 case $LD in # libtool.m4 will add one of these switches to LD
4030 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4031 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4032 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4033 *) libsuff= shlibsuff= libmagic=never-match;;
4037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4038 shlibpath_overrides_runpath=no
4039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4043 # No shared lib support for Linux oldld, aout, or coff.
4044 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4048 # This must be Linux ELF.
4053 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4054 soname_spec='${libname}${release}.so$major'
4055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4056 shlibpath_var=LD_LIBRARY_PATH
4057 shlibpath_overrides_runpath=no
4058 # This implies no fast_install, which is unacceptable.
4059 # Some rework will be needed to allow for fast_install
4060 # before this can be enabled.
4061 hardcode_into_libs=yes
4063 # We used to test for /lib/ld.so.1 and disable shared libraries on
4064 # powerpc, because MkLinux only supported shared libraries with the
4065 # GNU dynamic linker. Since this was broken with cross compilers,
4066 # most powerpc-linux boxes support dynamic linking these days and
4067 # people can always --disable-shared, the test was removed, and we
4068 # assume the GNU/Linux dynamic linker is in use.
4069 dynamic_linker='GNU/Linux ld.so'
4076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4077 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4079 dynamic_linker='NetBSD (a.out) ld.so'
4081 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4082 soname_spec='${libname}${release}.so$major'
4083 dynamic_linker='NetBSD ld.elf_so'
4085 shlibpath_var=LD_LIBRARY_PATH
4086 shlibpath_overrides_runpath=yes
4087 hardcode_into_libs=yes
4092 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4093 shlibpath_var=LD_LIBRARY_PATH
4094 shlibpath_overrides_runpath=yes
4101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4103 openbsd2.[89] | openbsd2.[89].*)
4104 shlibpath_overrides_runpath=no
4107 shlibpath_overrides_runpath=yes
4111 shlibpath_overrides_runpath=yes
4113 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4115 shlibpath_var=LD_LIBRARY_PATH
4119 libname_spec='$name'
4121 library_names_spec='$libname.dll $libname.a'
4122 dynamic_linker='OS/2 ld.exe'
4123 shlibpath_var=LIBPATH
4126 osf3* | osf4* | osf5*)
4129 soname_spec='${libname}${release}.so'
4130 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4131 shlibpath_var=LD_LIBRARY_PATH
4132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4138 soname_spec='${libname}${release}.so$major'
4139 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4140 shlibpath_var=LD_LIBRARY_PATH
4147 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4148 soname_spec='${libname}${release}.so$major'
4149 shlibpath_var=LD_LIBRARY_PATH
4150 shlibpath_overrides_runpath=yes
4151 hardcode_into_libs=yes
4152 # ldd complains unless libraries are executable
4153 postinstall_cmds='chmod +x $lib'
4158 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4160 shlibpath_var=LD_LIBRARY_PATH
4161 shlibpath_overrides_runpath=yes
4162 if test "$with_gnu_ld" = yes; then
4168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4171 soname_spec='${libname}${release}.so$major'
4172 shlibpath_var=LD_LIBRARY_PATH
4173 case $host_vendor in
4175 shlibpath_overrides_runpath=no
4180 shlibpath_overrides_runpath=no
4181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4188 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4189 soname_spec='${libname}${release}.so$major'
4190 shlibpath_var=LD_LIBRARY_PATH
4197 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4198 soname_spec='${libname}${release}.so$major'
4199 shlibpath_var=LD_LIBRARY_PATH
4203 if test -d /usr/nec ;then
4205 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4206 soname_spec='$libname.so.$major'
4207 shlibpath_var=LD_LIBRARY_PATH
4215 echo "$ac_t""$dynamic_linker" 1>&6
4216 test "$dynamic_linker" = no && can_build_shared=no
4220 ## FIXME: this should be a separate macro
4222 # Report the final consequences.
4223 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4224 echo "configure:4225: checking if libtool supports shared libraries" >&5
4225 echo "$ac_t""$can_build_shared" 1>&6
4229 ## FIXME: this should be a separate macro
4231 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4232 echo "configure:4233: checking whether to build shared libraries" >&5
4233 test "$can_build_shared" = "no" && enable_shared=no
4235 # On AIX, shared libraries and static libraries use the same namespace, and
4236 # are all built from PIC.
4239 test "$enable_shared" = yes && enable_static=no
4240 if test -n "$RANLIB"; then
4241 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4242 postinstall_cmds='$RANLIB $lib'
4247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4248 test "$enable_shared" = yes && enable_static=no
4252 echo "$ac_t""$enable_shared" 1>&6
4256 ## FIXME: this should be a separate macro
4258 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4259 echo "configure:4260: checking whether to build static libraries" >&5
4260 # Make sure either enable_shared or enable_static is yes.
4261 test "$enable_shared" = yes || enable_static=yes
4262 echo "$ac_t""$enable_static" 1>&6
4266 if test "$hardcode_action" = relink; then
4267 # Fast installation is not supported
4268 enable_fast_install=no
4269 elif test "$shlibpath_overrides_runpath" = yes ||
4270 test "$enable_shared" = no; then
4271 # Fast installation is not necessary
4272 enable_fast_install=needless
4275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4276 if test "$GCC" = yes; then
4277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4280 if test "x$enable_dlopen" != xyes; then
4281 enable_dlopen=unknown
4282 enable_dlopen_self=unknown
4283 enable_dlopen_self_static=unknown
4290 lt_cv_dlopen="load_add_on"
4292 lt_cv_dlopen_self=yes
4295 cygwin* | mingw* | pw32*)
4296 lt_cv_dlopen="LoadLibrary"
4301 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4302 echo "configure:4303: checking for shl_load" >&5
4303 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* System header to define __stub macros and hopefully few prototypes,
4310 which can conflict with char shl_load(); below. */
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4319 /* The GNU C library defines this for functions which it implements
4320 to always fail with ENOSYS. Some functions are actually named
4321 something starting with __ and the normal name is an alias. */
4322 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332 eval "ac_cv_func_shl_load=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_func_shl_load=no"
4342 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4343 echo "$ac_t""yes" 1>&6
4344 lt_cv_dlopen="shl_load"
4346 echo "$ac_t""no" 1>&6
4347 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4348 echo "configure:4349: checking for shl_load in -ldld" >&5
4349 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 ac_save_LIBS="$LIBS"
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4369 eval "ac_cv_lib_$ac_lib_var=yes"
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4374 eval "ac_cv_lib_$ac_lib_var=no"
4377 LIBS="$ac_save_LIBS"
4380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
4384 echo "$ac_t""no" 1>&6
4385 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4386 echo "configure:4387: checking for dlopen" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char dlopen(); below. */
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 eval "ac_cv_func_dlopen=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 eval "ac_cv_func_dlopen=no"
4426 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 lt_cv_dlopen="dlopen"
4430 echo "$ac_t""no" 1>&6
4431 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4432 echo "configure:4433: checking for dlopen in -ldl" >&5
4433 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 ac_save_LIBS="$LIBS"
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4442 /* Override any gcc2 internal prototype to avoid an error. */
4443 /* We use char because int might match the return type of a gcc2
4444 builtin and then its argument prototype would still apply. */
4451 if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4453 eval "ac_cv_lib_$ac_lib_var=yes"
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4458 eval "ac_cv_lib_$ac_lib_var=no"
4461 LIBS="$ac_save_LIBS"
4464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4465 echo "$ac_t""yes" 1>&6
4466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4468 echo "$ac_t""no" 1>&6
4469 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4470 echo "configure:4471: checking for dlopen in -lsvld" >&5
4471 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 ac_save_LIBS="$LIBS"
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 eval "ac_cv_lib_$ac_lib_var=no"
4499 LIBS="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4506 echo "$ac_t""no" 1>&6
4507 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4508 echo "configure:4509: checking for dld_link in -ldld" >&5
4509 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 ac_save_LIBS="$LIBS"
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 /* Override any gcc2 internal prototype to avoid an error. */
4519 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4529 eval "ac_cv_lib_$ac_lib_var=yes"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 eval "ac_cv_lib_$ac_lib_var=no"
4537 LIBS="$ac_save_LIBS"
4540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4544 echo "$ac_t""no" 1>&6
4565 if test "x$lt_cv_dlopen" != xno; then
4571 case $lt_cv_dlopen in
4573 save_CPPFLAGS="$CPPFLAGS"
4574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4576 save_LDFLAGS="$LDFLAGS"
4577 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4580 LIBS="$lt_cv_dlopen_libs $LIBS"
4582 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4583 echo "configure:4584: checking whether a program can dlopen itself" >&5
4584 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 if test "$cross_compiling" = yes; then :
4588 lt_cv_dlopen_self=cross
4590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4591 lt_status=$lt_dlunknown
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4603 # define LT_DLGLOBAL RTLD_GLOBAL
4606 # define LT_DLGLOBAL DL_GLOBAL
4608 # define LT_DLGLOBAL 0
4612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4613 find out it does not work in some platform. */
4614 #ifndef LT_DLLAZY_OR_NOW
4616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4619 # define LT_DLLAZY_OR_NOW DL_LAZY
4622 # define LT_DLLAZY_OR_NOW RTLD_NOW
4625 # define LT_DLLAZY_OR_NOW DL_NOW
4627 # define LT_DLLAZY_OR_NOW 0
4635 extern "C" void exit (int);
4638 void fnord() { int i=42;}
4641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4642 int status = $lt_dlunknown;
4646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4648 /* dlclose (self); */
4654 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4655 (./conftest; exit; ) 2>/dev/null
4658 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4659 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4660 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4663 # compilation failed
4664 lt_cv_dlopen_self=no
4672 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4674 if test "x$lt_cv_dlopen_self" = xyes; then
4675 LDFLAGS="$LDFLAGS $link_static_flag"
4676 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4677 echo "configure:4678: checking whether a statically linked program can dlopen itself" >&5
4678 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4681 if test "$cross_compiling" = yes; then :
4682 lt_cv_dlopen_self_static=cross
4684 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4685 lt_status=$lt_dlunknown
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4697 # define LT_DLGLOBAL RTLD_GLOBAL
4700 # define LT_DLGLOBAL DL_GLOBAL
4702 # define LT_DLGLOBAL 0
4706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4707 find out it does not work in some platform. */
4708 #ifndef LT_DLLAZY_OR_NOW
4710 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4713 # define LT_DLLAZY_OR_NOW DL_LAZY
4716 # define LT_DLLAZY_OR_NOW RTLD_NOW
4719 # define LT_DLLAZY_OR_NOW DL_NOW
4721 # define LT_DLLAZY_OR_NOW 0
4729 extern "C" void exit (int);
4732 void fnord() { int i=42;}
4735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4736 int status = $lt_dlunknown;
4740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4741 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4742 /* dlclose (self); */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4749 (./conftest; exit; ) 2>/dev/null
4752 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4753 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4754 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4757 # compilation failed
4758 lt_cv_dlopen_self_static=no
4766 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4769 CPPFLAGS="$save_CPPFLAGS"
4770 LDFLAGS="$save_LDFLAGS"
4775 case $lt_cv_dlopen_self in
4776 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4777 *) enable_dlopen_self=unknown ;;
4780 case $lt_cv_dlopen_self_static in
4781 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4782 *) enable_dlopen_self_static=unknown ;;
4787 ## FIXME: this should be a separate macro
4789 if test "$enable_shared" = yes && test "$GCC" = yes; then
4790 case $archive_cmds in
4792 # FIXME: we may have to deal with multi-command sequences.
4795 # Test whether the compiler implicitly links with -lc since on some
4796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4797 # to ld, don't add -lc before -lgcc.
4798 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4799 echo "configure:4800: checking whether -lc should be explicitly linked in" >&5
4800 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4801 echo $ac_n "(cached) $ac_c" 1>&6
4804 echo 'static int dummy;' > conftest.$ac_ext
4806 if { (eval echo configure:4807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4809 libobjs=conftest.$ac_objext
4811 wl=$lt_cv_prog_cc_wl
4817 save_allow_undefined_flag=$allow_undefined_flag
4818 allow_undefined_flag=
4819 if { (eval echo configure:4820: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4821 lt_cv_archive_cmds_need_lc=no
4823 lt_cv_archive_cmds_need_lc=yes
4825 allow_undefined_flag=$save_allow_undefined_flag
4827 cat conftest.err 1>&5
4831 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4835 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4839 ## FIXME: this should be a separate macro
4841 # The second clause should only fire when bootstrapping the
4842 # libtool distribution, otherwise you forgot to ship ltmain.sh
4843 # with your package, and you will get complaints that there are
4844 # no rules to generate ltmain.sh.
4845 if test -f "$ltmain"; then
4848 # If there is no Makefile yet, we rely on a make rule to execute
4849 # `config.status --recheck' to rerun these tests and create the
4850 # libtool script then.
4851 test -f Makefile && make "$ltmain"
4854 if test -f "$ltmain"; then
4855 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4858 echo creating $ofile
4860 # Now quote all the things that may contain metacharacters while being
4861 # careful not to overquote the AC_SUBSTed values. We take copies of the
4862 # variables and quote the copies for generation of the libtool script.
4863 for var in echo old_CC old_CFLAGS \
4864 AR AR_FLAGS CC LD LN_S NM SHELL \
4865 reload_flag reload_cmds wl \
4866 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4867 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4868 library_names_spec soname_spec \
4869 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4870 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4871 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4872 old_striplib striplib file_magic_cmd export_symbols_cmds \
4873 deplibs_check_method allow_undefined_flag no_undefined_flag \
4874 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4875 global_symbol_to_c_name_address \
4876 hardcode_libdir_flag_spec hardcode_libdir_separator \
4877 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4878 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4881 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4882 old_postinstall_cmds | old_postuninstall_cmds | \
4883 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4884 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4885 postinstall_cmds | postuninstall_cmds | \
4886 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4887 # Double-quote double-evaled strings.
4888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4896 cat <<__EOF__ > "${ofile}T"
4899 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4900 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4903 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4904 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4906 # This program is free software; you can redistribute it and/or modify
4907 # it under the terms of the GNU General Public License as published by
4908 # the Free Software Foundation; either version 2 of the License, or
4909 # (at your option) any later version.
4911 # This program is distributed in the hope that it will be useful, but
4912 # WITHOUT ANY WARRANTY; without even the implied warranty of
4913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4914 # General Public License for more details.
4916 # You should have received a copy of the GNU General Public License
4917 # along with this program; if not, write to the Free Software
4918 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4920 # As a special exception to the GNU General Public License, if you
4921 # distribute this file as part of a program that contains a
4922 # configuration script generated by Autoconf, you may include it under
4923 # the same distribution terms that you use for the rest of that program.
4925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4926 Xsed="sed -e s/^X//"
4928 # The HP-UX ksh and POSIX shell print the target directory to stdout
4930 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4932 # ### BEGIN LIBTOOL CONFIG
4934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4936 # Shell to use when invoking shell scripts.
4939 # Whether or not to build shared libraries.
4940 build_libtool_libs=$enable_shared
4942 # Whether or not to build static libraries.
4943 build_old_libs=$enable_static
4945 # Whether or not to add -lc for building shared libraries.
4946 build_libtool_need_lc=$need_lc
4948 # Whether or not to optimize for fast installation.
4949 fast_install=$enable_fast_install
4952 host_alias=$host_alias
4955 # An echo program that does not interpret backslashes.
4960 AR_FLAGS=$lt_AR_FLAGS
4962 # The default C compiler.
4965 # Is the compiler the GNU C compiler?
4968 # The linker used to build libraries.
4971 # Whether we need hard or soft links.
4974 # A BSD-compatible nm program.
4977 # A symbol stripping program
4980 # Used to examine libraries when file_magic_cmd begins "file"
4981 MAGIC_CMD=$MAGIC_CMD
4983 # Used on cygwin: DLL creation program.
4986 # Used on cygwin: object dumper.
4989 # Used on cygwin: assembler.
4992 # The name of the directory that contains temporary libtool files.
4995 # How to create reloadable object files.
4996 reload_flag=$lt_reload_flag
4997 reload_cmds=$lt_reload_cmds
4999 # How to pass a linker flag through the compiler.
5002 # Object file suffix (normally "o").
5005 # Old archive suffix (normally "a").
5008 # Executable file suffix (normally "").
5011 # Additional compiler flags for building library objects.
5012 pic_flag=$lt_pic_flag
5015 # Does compiler simultaneously support -c and -o options?
5016 compiler_c_o=$lt_compiler_c_o
5018 # Can we write directly to a .lo ?
5019 compiler_o_lo=$lt_compiler_o_lo
5021 # Must we lock files when doing compilation ?
5022 need_locks=$lt_need_locks
5024 # Do we need the lib prefix for modules?
5025 need_lib_prefix=$need_lib_prefix
5027 # Do we need a version for libraries?
5028 need_version=$need_version
5030 # Whether dlopen is supported.
5031 dlopen_support=$enable_dlopen
5033 # Whether dlopen of programs is supported.
5034 dlopen_self=$enable_dlopen_self
5036 # Whether dlopen of statically linked programs is supported.
5037 dlopen_self_static=$enable_dlopen_self_static
5039 # Compiler flag to prevent dynamic linking.
5040 link_static_flag=$lt_link_static_flag
5042 # Compiler flag to turn off builtin functions.
5043 no_builtin_flag=$lt_no_builtin_flag
5045 # Compiler flag to allow reflexive dlopens.
5046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5048 # Compiler flag to generate shared objects directly from archives.
5049 whole_archive_flag_spec=$lt_whole_archive_flag_spec
5051 # Compiler flag to generate thread-safe objects.
5052 thread_safe_flag_spec=$lt_thread_safe_flag_spec
5054 # Library versioning type.
5055 version_type=$version_type
5057 # Format of library name prefix.
5058 libname_spec=$lt_libname_spec
5060 # List of archive names. First name is the real one, the rest are links.
5061 # The last name is the one that the linker finds with -lNAME.
5062 library_names_spec=$lt_library_names_spec
5064 # The coded name of the library, if different from the real name.
5065 soname_spec=$lt_soname_spec
5067 # Commands used to build and install an old-style archive.
5069 old_archive_cmds=$lt_old_archive_cmds
5070 old_postinstall_cmds=$lt_old_postinstall_cmds
5071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5073 # Create an old-style archive from a shared archive.
5074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5076 # Create a temporary old-style archive to link instead of a shared archive.
5077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5079 # Commands used to build and install a shared archive.
5080 archive_cmds=$lt_archive_cmds
5081 archive_expsym_cmds=$lt_archive_expsym_cmds
5082 postinstall_cmds=$lt_postinstall_cmds
5083 postuninstall_cmds=$lt_postuninstall_cmds
5085 # Commands to strip libraries.
5086 old_striplib=$lt_old_striplib
5087 striplib=$lt_striplib
5089 # Method to check whether dependent libraries are shared objects.
5090 deplibs_check_method=$lt_deplibs_check_method
5092 # Command to use when deplibs_check_method == file_magic.
5093 file_magic_cmd=$lt_file_magic_cmd
5095 # Flag that allows shared libraries with undefined symbols to be built.
5096 allow_undefined_flag=$lt_allow_undefined_flag
5098 # Flag that forces no undefined symbols.
5099 no_undefined_flag=$lt_no_undefined_flag
5101 # Commands used to finish a libtool library installation in a directory.
5102 finish_cmds=$lt_finish_cmds
5104 # Same as above, but a single script fragment to be evaled but not shown.
5105 finish_eval=$lt_finish_eval
5107 # Take the output of nm and produce a listing of raw symbols and C names.
5108 global_symbol_pipe=$lt_global_symbol_pipe
5110 # Transform the output of nm in a proper C declaration
5111 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5113 # Transform the output of nm in a C name address pair
5114 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
5116 # This is the shared library runtime path variable.
5117 runpath_var=$runpath_var
5119 # This is the shared library path variable.
5120 shlibpath_var=$shlibpath_var
5122 # Is shlibpath searched before the hard-coded library search path?
5123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5125 # How to hardcode a shared library path into an executable.
5126 hardcode_action=$hardcode_action
5128 # Whether we should hardcode library paths into libraries.
5129 hardcode_into_libs=$hardcode_into_libs
5131 # Flag to hardcode \$libdir into a binary during linking.
5132 # This must work even if \$libdir does not exist.
5133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5135 # Whether we need a single -rpath flag with a separated argument.
5136 hardcode_libdir_separator=$lt_hardcode_libdir_separator
5138 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5140 hardcode_direct=$hardcode_direct
5142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5144 hardcode_minus_L=$hardcode_minus_L
5146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5147 # the resulting binary.
5148 hardcode_shlibpath_var=$hardcode_shlibpath_var
5150 # Variables whose values should be saved in libtool wrapper scripts and
5151 # restored at relink time.
5152 variables_saved_for_relink="$variables_saved_for_relink"
5154 # Whether libtool must link a program against all its dependency libraries.
5155 link_all_deplibs=$link_all_deplibs
5157 # Compile-time system search path for libraries
5158 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5160 # Run-time system search path for libraries
5161 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5163 # Fix the shell variable \$srcfile for the compiler.
5164 fix_srcfile_path="$fix_srcfile_path"
5166 # Set to yes if exported symbols are required.
5167 always_export_symbols=$always_export_symbols
5169 # The commands to list exported symbols.
5170 export_symbols_cmds=$lt_export_symbols_cmds
5172 # The commands to extract the exported symbol list from a shared archive.
5173 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5175 # Symbols that should not be listed in the preloaded symbols.
5176 exclude_expsyms=$lt_exclude_expsyms
5178 # Symbols that must always be exported.
5179 include_expsyms=$lt_include_expsyms
5181 # ### END LIBTOOL CONFIG
5187 cat <<\EOF >> "${ofile}T"
5189 # AIX sometimes has problems with the GCC collect2 program. For some
5190 # reason, if we set the COLLECT_NAMES environment variable, the problems
5191 # vanish in a puff of smoke.
5192 if test "X${COLLECT_NAMES+set}" != Xset; then
5194 export COLLECT_NAMES
5201 cygwin* | mingw* | pw32* | os2*)
5202 cat <<'EOF' >> "${ofile}T"
5203 # This is a source program that is used to create dlls on Windows
5204 # Don't remove nor modify the starting and closing comments
5205 # /* ltdll.c starts here */
5206 # #define WIN32_LEAN_AND_MEAN
5207 # #include <windows.h>
5208 # #undef WIN32_LEAN_AND_MEAN
5209 # #include <stdio.h>
5211 # #ifndef __CYGWIN__
5212 # # ifdef __CYGWIN32__
5213 # # define __CYGWIN__ __CYGWIN32__
5217 # #ifdef __cplusplus
5220 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5221 # #ifdef __cplusplus
5226 # #include <cygwin/cygwin_dll.h>
5227 # DECLARE_CYGWIN_DLL( DllMain );
5229 # HINSTANCE __hDllInstance_base;
5232 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5234 # __hDllInstance_base = hInst;
5237 # /* ltdll.c ends here */
5238 # This is a source program that is used to create import libraries
5239 # on Windows for dlls which lack them. Don't remove nor modify the
5240 # starting and closing comments
5241 # /* impgen.c starts here */
5242 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5244 # This file is part of GNU libtool.
5246 # This program is free software; you can redistribute it and/or modify
5247 # it under the terms of the GNU General Public License as published by
5248 # the Free Software Foundation; either version 2 of the License, or
5249 # (at your option) any later version.
5251 # This program is distributed in the hope that it will be useful,
5252 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5253 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5254 # GNU General Public License for more details.
5256 # You should have received a copy of the GNU General Public License
5257 # along with this program; if not, write to the Free Software
5258 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5261 # #include <stdio.h> /* for printf() */
5262 # #include <unistd.h> /* for open(), lseek(), read() */
5263 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5264 # #include <string.h> /* for strdup() */
5266 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5268 # #define O_BINARY 0
5271 # static unsigned int
5272 # pe_get16 (fd, offset)
5276 # unsigned char b[2];
5277 # lseek (fd, offset, SEEK_SET);
5279 # return b[0] + (b[1]<<8);
5282 # static unsigned int
5283 # pe_get32 (fd, offset)
5287 # unsigned char b[4];
5288 # lseek (fd, offset, SEEK_SET);
5290 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5293 # static unsigned int
5297 # unsigned char *b = ptr;
5298 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5307 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5308 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5309 # unsigned long name_rvas, nexp;
5310 # unsigned char *expdata, *erva;
5311 # char *filename, *dll_name;
5313 # filename = argv[1];
5315 # dll = open(filename, O_RDONLY|O_BINARY);
5319 # dll_name = filename;
5321 # for (i=0; filename[i]; i++)
5322 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5323 # dll_name = filename + i +1;
5325 # pe_header_offset = pe_get32 (dll, 0x3c);
5326 # opthdr_ofs = pe_header_offset + 4 + 20;
5327 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5329 # if (num_entries < 1) /* no exports */
5332 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5333 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5334 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5335 # secptr = (pe_header_offset + 4 + 20 +
5336 # pe_get16 (dll, pe_header_offset + 4 + 16));
5339 # for (i = 0; i < nsections; i++)
5342 # unsigned long secptr1 = secptr + 40 * i;
5343 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5344 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5345 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5346 # lseek(dll, secptr1, SEEK_SET);
5347 # read(dll, sname, 8);
5348 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5350 # expptr = fptr + (export_rva - vaddr);
5351 # if (export_rva + export_size > vaddr + vsize)
5352 # export_size = vsize - (export_rva - vaddr);
5357 # expdata = (unsigned char*)malloc(export_size);
5358 # lseek (dll, expptr, SEEK_SET);
5359 # read (dll, expdata, export_size);
5360 # erva = expdata - export_rva;
5362 # nexp = pe_as32 (expdata+24);
5363 # name_rvas = pe_as32 (expdata+32);
5365 # printf ("EXPORTS\n");
5366 # for (i = 0; i<nexp; i++)
5368 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5369 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5374 # /* impgen.c ends here */
5380 # We use sed instead of cat because bash on DJGPP gets confused if
5381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5382 # text mode, it properly converts lines to CR/LF. This bash problem
5383 # is reportedly fixed, but why not run on old versions too?
5384 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5386 mv -f "${ofile}T" "$ofile" || \
5387 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5397 # This can be used to rebuild libtool when needed
5398 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5400 # Always use our own libtool.
5401 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5403 # Prevent multiple expansion
5408 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
5409 if test "${enable_strict_dependencies+set}" = set; then
5410 enableval="$enable_strict_dependencies"
5415 logdir='${localstatedir}/log/radius'
5416 echo $ac_n "checking logdir""... $ac_c" 1>&6
5417 echo "configure:5418: checking logdir" >&5
5418 # Check whether --with-logdir or --without-logdir was given.
5419 if test "${with_logdir+set}" = set; then
5420 withval="$with_logdir"
5423 { echo "configure: error: Need logdir" 1>&2; exit 1; }
5435 echo "$ac_t""$logdir" 1>&6
5437 radacctdir='${logdir}/radacct'
5438 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
5439 echo "configure:5440: checking radacctdir" >&5
5440 # Check whether --with-radacctdir or --without-radacctdir was given.
5441 if test "${with_radacctdir+set}" = set; then
5442 withval="$with_radacctdir"
5445 { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
5450 radacctdir="$withval"
5457 echo "$ac_t""$radacctdir" 1>&6
5459 raddbdir='${sysconfdir}/raddb'
5460 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
5461 echo "configure:5462: checking raddbdir" >&5
5462 # Check whether --with-raddbdir or --without-raddbdir was given.
5463 if test "${with_raddbdir+set}" = set; then
5464 withval="$with_raddbdir"
5467 { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
5479 echo "$ac_t""$raddbdir" 1>&6
5481 WITH_DICT_NOCASE=yes
5482 # Check whether --with-dict-nocase or --without-dict-nocase was given.
5483 if test "${with_dict_nocase+set}" = set; then
5484 withval="$with_dict_nocase"
5494 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
5495 cat >> confdefs.h <<\EOF
5496 #define WITH_DICT_NOCASE 1
5502 # Check whether --with-ascend-binary or --without-ascend-binary was given.
5503 if test "${with_ascend_binary+set}" = set; then
5504 withval="$with_ascend_binary"
5514 if test "X$ASCEND_BINARY" = "Xyes"; then
5515 cat >> confdefs.h <<\EOF
5516 #define ASCEND_BINARY 1
5522 WITH_THREAD_POOL=yes
5523 # Check whether --with-threads or --without-threads was given.
5524 if test "${with_threads+set}" = set; then
5525 withval="$with_threads"
5538 # Check whether --with-snmp or --without-snmp was given.
5539 if test "${with_snmp+set}" = set; then
5540 withval="$with_snmp"
5551 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
5552 if test "${enable_ltdl_install+set}" = set; then
5553 enableval="$enable_ltdl_install"
5557 if test x"${enable_ltdl_install+set}" != xset; then
5558 enable_ltdl_install=yes
5559 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5565 # Check whether --with-static_modules or --without-static_modules was given.
5566 if test "${with_static_modules+set}" = set; then
5567 withval="$with_static_modules"
5569 for i in $withval; do
5570 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
5576 # Check whether --enable-developer or --disable-developer was given.
5577 if test "${enable_developer+set}" = set; then
5578 enableval="$enable_developer"
5590 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
5595 # Check whether --with-experimental-modules or --without-experimental-modules was given.
5596 if test "${with_experimental_modules+set}" = set; then
5597 withval="$with_experimental_modules"
5609 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
5610 if test "${with_rlm_FOO_lib_dir+set}" = set; then
5611 withval="$with_rlm_FOO_lib_dir"
5620 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
5621 if test "${with_rlm_FOO_include_dir+set}" = set; then
5622 withval="$with_rlm_FOO_include_dir"
5633 CHECKRAD=checkrad.pl
5634 # Extract the first word of "perl", so it can be a program name with args.
5635 set dummy perl; ac_word=$2
5636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5637 echo "configure:5638: checking for $ac_word" >&5
5638 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5643 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5646 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
5649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5651 for ac_dir in $ac_dummy; do
5652 test -z "$ac_dir" && ac_dir=.
5653 if test -f $ac_dir/$ac_word; then
5654 ac_cv_path_PERL="$ac_dir/$ac_word"
5659 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
5663 PERL="$ac_cv_path_PERL"
5664 if test -n "$PERL"; then
5665 echo "$ac_t""$PERL" 1>&6
5667 echo "$ac_t""no" 1>&6
5670 if test "x$ac_cv_path_PERL" = "x"; then
5671 echo "configure: warning: perl not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5673 # Extract the first word of "snmpget", so it can be a program name with args.
5674 set dummy snmpget; ac_word=$2
5675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5676 echo "configure:5677: checking for $ac_word" >&5
5677 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5682 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
5685 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
5688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5690 for ac_dir in $ac_dummy; do
5691 test -z "$ac_dir" && ac_dir=.
5692 if test -f $ac_dir/$ac_word; then
5693 ac_cv_path_SNMPGET="$ac_dir/$ac_word"
5701 SNMPGET="$ac_cv_path_SNMPGET"
5702 if test -n "$SNMPGET"; then
5703 echo "$ac_t""$SNMPGET" 1>&6
5705 echo "$ac_t""no" 1>&6
5708 if test "x$ac_cv_path_SNMPGET" = "x"; then
5709 echo "configure: warning: snmpget not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5712 # Extract the first word of "snmpwalk", so it can be a program name with args.
5713 set dummy snmpwalk; ac_word=$2
5714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_word" >&5
5716 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5721 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
5724 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
5727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5729 for ac_dir in $ac_dummy; do
5730 test -z "$ac_dir" && ac_dir=.
5731 if test -f $ac_dir/$ac_word; then
5732 ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
5740 SNMPWALK="$ac_cv_path_SNMPWALK"
5741 if test -n "$SNMPWALK"; then
5742 echo "$ac_t""$SNMPWALK" 1>&6
5744 echo "$ac_t""no" 1>&6
5747 if test "x$ac_cv_path_SNMPWALK" = "x"; then
5748 echo "configure: warning: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" 1>&2
5751 # Extract the first word of "rusers", so it can be a program name with args.
5752 set dummy rusers; ac_word=$2
5753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5754 echo "configure:5755: checking for $ac_word" >&5
5755 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5760 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
5763 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
5766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5768 for ac_dir in $ac_dummy; do
5769 test -z "$ac_dir" && ac_dir=.
5770 if test -f $ac_dir/$ac_word; then
5771 ac_cv_path_RUSERS="$ac_dir/$ac_word"
5776 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
5780 RUSERS="$ac_cv_path_RUSERS"
5781 if test -n "$RUSERS"; then
5782 echo "$ac_t""$RUSERS" 1>&6
5784 echo "$ac_t""no" 1>&6
5788 missing_dir=`cd $ac_aux_dir && pwd`
5789 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
5790 echo "configure:5791: checking for working aclocal" >&5
5791 # Run test in a subshell; some versions of sh will print an error if
5792 # an executable is not found, even if stderr is redirected.
5793 # Redirect stdin to placate older versions of autoconf. Sigh.
5794 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
5796 echo "$ac_t""found" 1>&6
5798 ACLOCAL="$missing_dir/missing aclocal"
5799 echo "$ac_t""missing" 1>&6
5802 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
5803 echo "configure:5804: checking for working autoconf" >&5
5804 # Run test in a subshell; some versions of sh will print an error if
5805 # an executable is not found, even if stderr is redirected.
5806 # Redirect stdin to placate older versions of autoconf. Sigh.
5807 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
5809 echo "$ac_t""found" 1>&6
5811 AUTOCONF="$missing_dir/missing autoconf"
5812 echo "$ac_t""missing" 1>&6
5815 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
5816 echo "configure:5817: checking for working autoheader" >&5
5817 # Run test in a subshell; some versions of sh will print an error if
5818 # an executable is not found, even if stderr is redirected.
5819 # Redirect stdin to placate older versions of autoconf. Sigh.
5820 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
5821 AUTOHEADER=autoheader
5822 echo "$ac_t""found" 1>&6
5824 AUTOHEADER="$missing_dir/missing autoheader"
5825 echo "$ac_t""missing" 1>&6
5829 # Extract the first word of "locate", so it can be a program name with args.
5830 set dummy locate; ac_word=$2
5831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5832 echo "configure:5833: checking for $ac_word" >&5
5833 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5838 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
5841 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5846 for ac_dir in $ac_dummy; do
5847 test -z "$ac_dir" && ac_dir=.
5848 if test -f $ac_dir/$ac_word; then
5849 ac_cv_path_LOCATE="$ac_dir/$ac_word"
5857 LOCATE="$ac_cv_path_LOCATE"
5858 if test -n "$LOCATE"; then
5859 echo "$ac_t""$LOCATE" 1>&6
5861 echo "$ac_t""no" 1>&6
5864 # Extract the first word of "dirname", so it can be a program name with args.
5865 set dummy dirname; ac_word=$2
5866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_word" >&5
5868 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5873 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5876 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
5879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5881 for ac_dir in $ac_dummy; do
5882 test -z "$ac_dir" && ac_dir=.
5883 if test -f $ac_dir/$ac_word; then
5884 ac_cv_path_DIRNAME="$ac_dir/$ac_word"
5892 DIRNAME="$ac_cv_path_DIRNAME"
5893 if test -n "$DIRNAME"; then
5894 echo "$ac_t""$DIRNAME" 1>&6
5896 echo "$ac_t""no" 1>&6
5899 # Extract the first word of "grep", so it can be a program name with args.
5900 set dummy grep; ac_word=$2
5901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5902 echo "configure:5903: checking for $ac_word" >&5
5903 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5908 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5911 ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
5914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5916 for ac_dir in $ac_dummy; do
5917 test -z "$ac_dir" && ac_dir=.
5918 if test -f $ac_dir/$ac_word; then
5919 ac_cv_path_GREP="$ac_dir/$ac_word"
5927 GREP="$ac_cv_path_GREP"
5928 if test -n "$GREP"; then
5929 echo "$ac_t""$GREP" 1>&6
5931 echo "$ac_t""no" 1>&6
5937 if test "$WITH_THREADS" = "yes"; then
5938 if test $ac_cv_prog_suncc = "yes"; then
5939 CFLAGS="$CFLAGS -mt"
5942 for ac_hdr in pthread.h
5944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5946 echo "configure:5947: checking for $ac_hdr" >&5
5947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5958 if test -z "$ac_err"; then
5960 eval "ac_cv_header_$ac_safe=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_header_$ac_safe=no"
5970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5973 cat >> confdefs.h <<EOF
5974 #define $ac_tr_hdr 1
5978 echo "$ac_t""no" 1>&6
5983 if test "X$ac_cv_header_pthread_h" = "X"; then
5984 { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
5987 echo $ac_n "checking for pthread_join""... $ac_c" 1>&6
5988 echo "configure:5989: checking for pthread_join" >&5
5989 if eval "test \"`echo '$''{'ac_cv_func_pthread_join'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 /* System header to define __stub macros and hopefully few prototypes,
5996 which can conflict with char pthread_join(); below. */
5998 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6001 char pthread_join();
6005 /* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008 #if defined (__stub_pthread_join) || defined (__stub___pthread_join)
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018 eval "ac_cv_func_pthread_join=yes"
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 eval "ac_cv_func_pthread_join=no"
6028 if eval "test \"`echo '$ac_cv_func_'pthread_join`\" = yes"; then
6029 echo "$ac_t""yes" 1>&6
6032 echo "$ac_t""no" 1>&6
6036 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
6037 echo "configure:6038: checking for pthread_join in -lpthread" >&5
6038 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
6039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6040 echo $ac_n "(cached) $ac_c" 1>&6
6042 ac_save_LIBS="$LIBS"
6043 LIBS="-lpthread $LIBS"
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 /* Override any gcc2 internal prototype to avoid an error. */
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6050 char pthread_join();
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 eval "ac_cv_lib_$ac_lib_var=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6063 eval "ac_cv_lib_$ac_lib_var=no"
6066 LIBS="$ac_save_LIBS"
6069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 PTHREADLIB="-lpthread"
6074 echo "$ac_t""no" 1>&6
6080 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
6081 echo "configure:6082: checking for library containing sem_init" >&5
6082 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6085 ac_func_search_save_LIBS="$LIBS"
6086 ac_cv_search_sem_init="no"
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6101 ac_cv_search_sem_init="none required"
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6107 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
6108 LIBS="-l$i "-lpthread"
6109 $ac_func_search_save_LIBS"
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6124 ac_cv_search_sem_init="-l$i"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6132 LIBS="$ac_func_search_save_LIBS"
6135 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
6136 if test "$ac_cv_search_sem_init" != "no"; then
6137 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
6144 if test "X$PTHREADLIB" = "X"; then
6145 SAVED_CFLAGS=$CFLAGS
6146 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
6147 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6148 echo "configure:6149: checking for pthread_create in -lc_r" >&5
6149 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6153 ac_save_LIBS="$LIBS"
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* Override any gcc2 internal prototype to avoid an error. */
6159 /* We use char because int might match the return type of a gcc2
6160 builtin and then its argument prototype would still apply. */
6161 char pthread_create();
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 eval "ac_cv_lib_$ac_lib_var=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_lib_$ac_lib_var=no"
6177 LIBS="$ac_save_LIBS"
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6190 if test "x$PTHREADLIB" != "x"; then
6191 LIBS="$LIBS $PTHREADLIB"
6192 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
6196 if test "x$PTHREADLIB" = "x"; then
6197 CFLAGS=$SAVED_CFLAGS
6198 ac_cv_header_pthread_h="no"
6203 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
6204 echo "configure:6205: checking for getsockname in -lsocket" >&5
6205 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
6206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 ac_save_LIBS="$LIBS"
6210 LIBS="-lsocket $LIBS"
6211 cat > conftest.$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225 eval "ac_cv_lib_$ac_lib_var=yes"
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6230 eval "ac_cv_lib_$ac_lib_var=no"
6233 LIBS="$ac_save_LIBS"
6236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_lib 1
6244 LIBS="-lsocket $LIBS"
6247 echo "$ac_t""no" 1>&6
6251 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
6252 echo "configure:6253: checking for inet_aton in -lresolv" >&5
6253 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
6254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6257 ac_save_LIBS="$LIBS"
6258 LIBS="-lresolv $LIBS"
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 eval "ac_cv_lib_$ac_lib_var=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 eval "ac_cv_lib_$ac_lib_var=no"
6281 LIBS="$ac_save_LIBS"
6284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6286 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6288 cat >> confdefs.h <<EOF
6289 #define $ac_tr_lib 1
6292 LIBS="-lresolv $LIBS"
6295 echo "$ac_t""no" 1>&6
6299 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
6300 echo "configure:6301: checking for inet_ntoa in -lnsl" >&5
6301 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
6302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6305 ac_save_LIBS="$LIBS"
6307 cat > conftest.$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321 eval "ac_cv_lib_$ac_lib_var=yes"
6323 echo "configure: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6326 eval "ac_cv_lib_$ac_lib_var=no"
6329 LIBS="$ac_save_LIBS"
6332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6336 cat >> confdefs.h <<EOF
6337 #define $ac_tr_lib 1
6343 echo "$ac_t""no" 1>&6
6349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6352 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6353 echo "configure:6354: checking for $ac_hdr that defines DIR" >&5
6354 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 #include <sys/types.h>
6366 if { (eval echo configure:6367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6368 eval "ac_cv_header_dirent_$ac_safe=yes"
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 eval "ac_cv_header_dirent_$ac_safe=no"
6377 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6378 echo "$ac_t""yes" 1>&6
6379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6380 cat >> confdefs.h <<EOF
6381 #define $ac_tr_hdr 1
6383 ac_header_dirent=$ac_hdr; break
6385 echo "$ac_t""no" 1>&6
6388 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6389 if test $ac_header_dirent = dirent.h; then
6390 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6391 echo "configure:6392: checking for opendir in -ldir" >&5
6392 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6396 ac_save_LIBS="$LIBS"
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6412 eval "ac_cv_lib_$ac_lib_var=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 eval "ac_cv_lib_$ac_lib_var=no"
6420 LIBS="$ac_save_LIBS"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6431 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6432 echo "configure:6433: checking for opendir in -lx" >&5
6433 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 ac_save_LIBS="$LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_lib_$ac_lib_var=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_lib_$ac_lib_var=no"
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6468 echo "$ac_t""no" 1>&6
6473 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6474 echo "configure:6475: checking for ANSI C header files" >&5
6475 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6476 echo $ac_n "(cached) $ac_c" 1>&6
6478 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6487 { (eval echo configure:6488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6489 if test -z "$ac_err"; then
6491 ac_cv_header_stdc=yes
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 ac_cv_header_stdc=no
6501 if test $ac_cv_header_stdc = yes; then
6502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509 egrep "memchr" >/dev/null 2>&1; then
6513 ac_cv_header_stdc=no
6519 if test $ac_cv_header_stdc = yes; then
6520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6521 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 egrep "free" >/dev/null 2>&1; then
6531 ac_cv_header_stdc=no
6537 if test $ac_cv_header_stdc = yes; then
6538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6539 if test "$cross_compiling" = yes; then
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6546 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6547 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6549 int main () { int i; for (i = 0; i < 256; i++)
6550 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6558 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6561 ac_cv_header_stdc=no
6569 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6570 if test $ac_cv_header_stdc = yes; then
6571 cat >> confdefs.h <<\EOF
6572 #define STDC_HEADERS 1
6577 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6578 echo "configure:6579: checking whether time.h and sys/time.h may both be included" >&5
6579 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 #include <sys/types.h>
6586 #include <sys/time.h>
6592 if { (eval echo configure:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6594 ac_cv_header_time=yes
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 ac_cv_header_time=no
6604 echo "$ac_t""$ac_cv_header_time" 1>&6
6605 if test $ac_cv_header_time = yes; then
6606 cat >> confdefs.h <<\EOF
6607 #define TIME_WITH_SYS_TIME 1
6612 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6613 echo "configure:6614: checking for sys/wait.h that is POSIX.1 compatible" >&5
6614 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 #include <sys/types.h>
6621 #include <sys/wait.h>
6623 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6626 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6631 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6634 if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6636 ac_cv_header_sys_wait_h=yes
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6641 ac_cv_header_sys_wait_h=no
6646 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6647 if test $ac_cv_header_sys_wait_h = yes; then
6648 cat >> confdefs.h <<\EOF
6649 #define HAVE_SYS_WAIT_H 1
6684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_hdr" >&5
6687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6696 { (eval echo configure:6697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6698 if test -z "$ac_err"; then
6700 eval "ac_cv_header_$ac_safe=yes"
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 eval "ac_cv_header_$ac_safe=no"
6710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6713 cat >> confdefs.h <<EOF
6714 #define $ac_tr_hdr 1
6718 echo "$ac_t""no" 1>&6
6724 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
6725 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
6726 echo "configure:6727: checking for regex.h" >&5
6727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6738 if test -z "$ac_err"; then
6740 eval "ac_cv_header_$ac_safe=yes"
6743 echo "configure: failed program was:" >&5
6744 cat conftest.$ac_ext >&5
6746 eval "ac_cv_header_$ac_safe=no"
6750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6751 echo "$ac_t""yes" 1>&6
6752 cat >> confdefs.h <<\EOF
6753 #define HAVE_REGEX_H 1
6757 echo "$ac_t""no" 1>&6
6760 if test "x$ac_cv_header_regex_h" = "xyes"; then
6763 cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure"
6765 #include "confdefs.h"
6772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6773 egrep "yes" >/dev/null 2>&1; then
6775 cat >> confdefs.h <<\EOF
6776 #define HAVE_REG_EXTENDED 1
6786 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
6788 cat >> confdefs.h <<\EOF
6794 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
6796 cat >> confdefs.h <<\EOF
6804 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6805 echo "configure:6806: checking for off_t" >&5
6806 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 #include <sys/types.h>
6818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6819 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6821 ac_cv_type_off_t=yes
6829 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6830 if test $ac_cv_type_off_t = no; then
6831 cat >> confdefs.h <<\EOF
6837 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6838 echo "configure:6839: checking for pid_t" >&5
6839 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 #include <sys/types.h>
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6854 ac_cv_type_pid_t=yes
6862 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6863 if test $ac_cv_type_pid_t = no; then
6864 cat >> confdefs.h <<\EOF
6870 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6871 echo "configure:6872: checking for size_t" >&5
6872 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6873 echo $ac_n "(cached) $ac_c" 1>&6
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 #include <sys/types.h>
6884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6885 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6887 ac_cv_type_size_t=yes
6890 ac_cv_type_size_t=no
6895 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6896 if test $ac_cv_type_size_t = no; then
6897 cat >> confdefs.h <<\EOF
6898 #define size_t unsigned
6903 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6904 echo "configure:6905: checking for uid_t in sys/types.h" >&5
6905 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6906 echo $ac_n "(cached) $ac_c" 1>&6
6908 cat > conftest.$ac_ext <<EOF
6909 #line 6910 "configure"
6910 #include "confdefs.h"
6911 #include <sys/types.h>
6913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 egrep "uid_t" >/dev/null 2>&1; then
6916 ac_cv_type_uid_t=yes
6925 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6926 if test $ac_cv_type_uid_t = no; then
6927 cat >> confdefs.h <<\EOF
6931 cat >> confdefs.h <<\EOF
6939 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6940 echo "configure:6941: checking for socklen_t" >&5
6941 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6944 ac_cv_type_socklen_t=no
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6948 #ifdef HAVE_SYS_TYPES_H
6949 #include <sys/types.h>
6951 #ifdef HAVE_SYS_SOCKET_H
6952 #include <sys/socket.h>
6959 if { (eval echo configure:6960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6961 ac_cv_type_socklen_t=yes
6963 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6971 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
6973 if test "$ac_cv_type_socklen_t" != "yes"; then
6974 cat >> confdefs.h <<\EOF
6975 #define socklen_t int
6982 echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
6983 echo "configure:6984: checking for uint8_t" >&5
6984 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
6985 echo $ac_n "(cached) $ac_c" 1>&6
6987 ac_cv_type_uint8_t=no
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 #ifdef HAVE_INTTYPES_H
6992 #include <inttypes.h>
6994 #ifdef HAVE_STDINT_H
7002 if { (eval echo configure:7003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7004 ac_cv_type_uint8_t=yes
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7014 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
7016 if test "$ac_cv_type_uint8_t" != "yes"; then
7017 cat >> confdefs.h <<\EOF
7018 #define uint8_t unsigned char
7025 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7026 echo "configure:7027: checking for uint16_t" >&5
7027 if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 ac_cv_type_uint16_t=no
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 #ifdef HAVE_INTTYPES_H
7035 #include <inttypes.h>
7037 #ifdef HAVE_STDINT_H
7045 if { (eval echo configure:7046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7047 ac_cv_type_uint16_t=yes
7049 echo "configure: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7057 echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
7059 if test "$ac_cv_type_uint16_t" != "yes"; then
7060 cat >> confdefs.h <<\EOF
7061 #define uint16_t unsigned short
7068 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
7069 echo "configure:7070: checking for uint32_t" >&5
7070 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 ac_cv_type_uint32_t=no
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 #ifdef HAVE_INTTYPES_H
7078 #include <inttypes.h>
7080 #ifdef HAVE_STDINT_H
7088 if { (eval echo configure:7089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7090 ac_cv_type_uint32_t=yes
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7100 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
7102 if test "$ac_cv_type_uint32_t" != "yes"; then
7103 cat >> confdefs.h <<\EOF
7104 #define uint32_t unsigned int
7134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_func" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 /* System header to define __stub macros and hopefully few prototypes,
7143 which can conflict with char $ac_func(); below. */
7145 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 eval "ac_cv_func_$ac_func=yes"
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7170 eval "ac_cv_func_$ac_func=no"
7175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7178 cat >> confdefs.h <<EOF
7179 #define $ac_tr_func 1
7183 echo "$ac_t""no" 1>&6
7198 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
7199 echo "configure:7200: checking whether $ac_func must be declared" >&5
7200 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7209 #ifdef HAVE_UNISTD_H
7218 #ifdef HAVE_RESOURCE_H
7219 #include <resource.h>
7221 #ifdef HAVE_GETOPT_H
7224 #ifdef HAVE_MALLOC_H
7233 #ifdef HAVE_SYS_SELECT_H
7234 #include <sys/select.h>
7242 #ifdef HAVE_SYSLOG_H
7245 #ifdef HAVE_INTTYPES_H
7246 #include <inttypes.h>
7248 #ifdef HAVE_STDINT_H
7251 #ifdef HAVE_ARPA_INET_H
7252 #include <arpa/inet.h>
7256 char *(*pfn) = (char *(*)) $ac_func
7259 if { (eval echo configure:7260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7261 eval "radius_cv_decl_needed_$ac_func=no"
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 eval "radius_cv_decl_needed_$ac_func=yes"
7271 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
7272 echo "$ac_t""yes" 1>&6
7273 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7274 cat >> confdefs.h <<EOF
7275 #define $radius_tr_decl 1
7279 echo "$ac_t""no" 1>&6
7285 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7286 echo "configure:7287: checking return type of signal handlers" >&5
7287 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 #include <sys/types.h>
7299 extern "C" void (*signal (int, void (*)(int)))(int);
7301 void (*signal ()) ();
7308 if { (eval echo configure:7309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7310 ac_cv_type_signal=void
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7315 ac_cv_type_signal=int
7320 echo "$ac_t""$ac_cv_type_signal" 1>&6
7321 cat >> confdefs.h <<EOF
7322 #define RETSIGTYPE $ac_cv_type_signal
7327 if test "x$ac_cv_header_utmpx_h" = "xyes"
7330 echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
7331 echo "configure:7332: checking for ut_xtime in struct utmpx" >&5
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7340 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
7344 int foo = offsetof(struct utmpx, ut_xtime)
7347 if { (eval echo configure:7348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7351 echo "configure: failed program was:" >&5
7352 cat conftest.$ac_ext >&5
7358 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
7359 if test "x$has_element" != "x"; then
7360 echo "$ac_t""yes" 1>&6
7361 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
7363 echo "$ac_t""no" 1>&6
7364 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
7367 if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
7369 cat >> confdefs.h <<\EOF
7370 #define ut_xtime ut_tv.tv_sec
7377 echo $ac_n "checking for working const""... $ac_c" 1>&6
7378 echo "configure:7379: checking for working const" >&5
7379 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7380 echo $ac_n "(cached) $ac_c" 1>&6
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7388 /* Ultrix mips cc rejects this. */
7389 typedef int charset[2]; const charset x;
7390 /* SunOS 4.1.1 cc rejects this. */
7391 char const *const *ccp;
7393 /* NEC SVR4.0.2 mips cc rejects this. */
7394 struct point {int x, y;};
7395 static struct point const zero = {0,0};
7396 /* AIX XL C 1.02.0.0 rejects this.
7397 It does not let you subtract one const X* pointer from another in an arm
7398 of an if-expression whose if-part is not a constant expression */
7399 const char *g = "string";
7400 ccp = &g + (g ? g-g : 0);
7401 /* HPUX 7.0 cc rejects these. */
7404 ccp = (char const *const *) p;
7405 { /* SCO 3.2v4 cc rejects this. */
7407 char const *s = 0 ? (char *) 0 : (char const *) 0;
7411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7413 const int *foo = &x[0];
7416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7417 typedef const int *iptr;
7421 { /* AIX XL C 1.02.0.0 rejects this saying
7422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7423 struct s { int j; const int *ap[3]; };
7424 struct s *b; b->j = 5;
7426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7432 if { (eval echo configure:7433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7444 echo "$ac_t""$ac_cv_c_const" 1>&6
7445 if test $ac_cv_c_const = no; then
7446 cat >> confdefs.h <<\EOF
7453 echo $ac_n "checking type of OS""... $ac_c" 1>&6
7454 echo "configure:7455: checking type of OS" >&5
7456 echo "$ac_t""$OS" 1>&6
7457 if test "$OS" = "OS/2"; then
7464 if test "x$GCC" = "xyes"; then
7465 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
7468 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
7469 echo "configure:7470: checking for developer gcc flags" >&5
7470 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
7471 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
7472 CFLAGS="$CFLAGS $devflags"
7474 echo "$ac_t""yes. Using $devflags" 1>&6
7477 CFLAGS="$CFLAGS -DNDEBUG"
7479 echo "$ac_t""no." 1>&6
7483 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7484 echo "configure:7485: checking for crypt in -lcrypt" >&5
7485 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 ac_save_LIBS="$LIBS"
7490 LIBS="-lcrypt $LIBS"
7491 cat > conftest.$ac_ext <<EOF
7492 #line 7493 "configure"
7493 #include "confdefs.h"
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7503 if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7505 eval "ac_cv_lib_$ac_lib_var=yes"
7507 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7510 eval "ac_cv_lib_$ac_lib_var=no"
7513 LIBS="$ac_save_LIBS"
7516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7517 echo "$ac_t""yes" 1>&6
7521 echo "$ac_t""no" 1>&6
7524 if test "$CRYPTLIB" != ""; then
7525 cat >> confdefs.h <<\EOF
7526 #define HAVE_CRYPT 1
7530 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7531 echo "configure:7532: checking for crypt" >&5
7532 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538 /* System header to define __stub macros and hopefully few prototypes,
7539 which can conflict with char crypt(); below. */
7541 /* Override any gcc2 internal prototype to avoid an error. */
7542 /* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */
7548 /* The GNU C library defines this for functions which it implements
7549 to always fail with ENOSYS. Some functions are actually named
7550 something starting with __ and the normal name is an alias. */
7551 #if defined (__stub_crypt) || defined (__stub___crypt)
7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7561 eval "ac_cv_func_crypt=yes"
7563 echo "configure: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7566 eval "ac_cv_func_crypt=no"
7571 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7572 echo "$ac_t""yes" 1>&6
7573 cat >> confdefs.h <<\EOF
7574 #define HAVE_CRYPT 1
7578 echo "$ac_t""no" 1>&6
7583 echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
7584 echo "configure:7585: checking for setkey in -lcipher" >&5
7585 ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
7586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7589 ac_save_LIBS="$LIBS"
7590 LIBS="-lcipher $LIBS"
7591 cat > conftest.$ac_ext <<EOF
7592 #line 7593 "configure"
7593 #include "confdefs.h"
7594 /* Override any gcc2 internal prototype to avoid an error. */
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7603 if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7605 eval "ac_cv_lib_$ac_lib_var=yes"
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7610 eval "ac_cv_lib_$ac_lib_var=no"
7613 LIBS="$ac_save_LIBS"
7616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618 CRYPTLIB="${CRYPTLIB} -lcipher"
7621 echo "$ac_t""no" 1>&6
7626 if test "x$WITH_SNMP" = "xyes"; then
7631 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
7632 echo "configure:7633: checking for asn1.h" >&5
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7638 #ifdef HAVE_SYS_TYPES_H
7639 #include <sys/types.h>
7641 #ifdef HAVE_STDINT_H
7650 #ifdef HAVE_UNISTD_H
7658 if { (eval echo configure:7659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7662 echo "configure: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7669 if test "x$SNMP_INCLUDE" = "x"; then
7670 old_CFLAGS="$CFLAGS"
7671 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
7672 CFLAGS="$old_CFLAGS -I$try"
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7677 #ifdef HAVE_SYS_TYPES_H
7678 #include <sys/types.h>
7680 #ifdef HAVE_STDINT_H
7689 #ifdef HAVE_UNISTD_H
7697 if { (eval echo configure:7698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7699 SNMP_INCLUDE="-I$try"
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7707 if test "x$SNMP_INCLUDE" != "x"; then
7711 CFLAGS="$old_CFLAGS"
7714 if test "x$SNMP_INCLUDE" = "x"; then
7715 echo "$ac_t""no" 1>&6
7717 echo "$ac_t""yes" 1>&6
7718 cat >> confdefs.h <<\EOF
7719 #define HAVE_ASN1_H 1
7723 old_CFLAGS="$CFLAGS"
7724 CFLAGS="$CFLAGS $SNMP_INCLUDE"
7726 echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
7727 echo "configure:7728: checking for snmp.h" >&5
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7732 #ifdef HAVE_SYS_TYPES_H
7733 #include <sys/types.h>
7735 #ifdef HAVE_STDINT_H
7744 #ifdef HAVE_UNISTD_H
7755 if { (eval echo configure:7756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7757 cat >> confdefs.h <<\EOF
7758 #define HAVE_SNMP_H 1
7760 ac_cv_header_snmp_h=yes
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7766 if test "x$ac_cv_header_snmp_h" = "xyes"; then
7767 echo "$ac_t""yes" 1>&6
7769 echo "$ac_t""no" 1>&6
7772 echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
7773 echo "configure:7774: checking for snmp_impl.h" >&5
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7778 #ifdef HAVE_SYS_TYPES_H
7779 #include <sys/types.h>
7781 #ifdef HAVE_STDINT_H
7790 #ifdef HAVE_UNISTD_H
7799 #include <snmp_impl.h>
7804 if { (eval echo configure:7805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7806 cat >> confdefs.h <<\EOF
7807 #define HAVE_SNMP_IMPL_H 1
7809 ac_cv_header_snmp_impl_h=yes
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7815 if test "x$ac_cv_header_snmp_h" = "xyes"; then
7816 echo "$ac_t""yes" 1>&6
7818 echo "$ac_t""no" 1>&6
7821 echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
7822 echo "configure:7823: checking for snmp_build_var_op in -lsnmp" >&5
7825 LIBS="$old_LIBS -lsnmp"
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 extern char snmp_build_var_op();
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7845 if test "x$SNMP_LIBS" = "x"; then
7846 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
7847 LIBS="$old_LIBS -L$try -lsnmp"
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 extern char snmp_build_var_op();
7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7858 SNMP_LIBS="-L$try -lsnmp"
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7866 if test "x$SNMP_LIBS" != "x"; then
7869 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 extern char snmp_build_var_op();
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7880 SNMP_LIBS="-L$try -lsnmp -lcrypto"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7888 if test "x$SNMP_LIBS" != "x"; then
7895 CFLAGS="$old_CFLAGS"
7896 if test "x$SNMP_LIBS" = "x"; then
7897 echo "$ac_t""no" 1>&6
7900 echo "$ac_t""yes" 1>&6
7901 cat >> confdefs.h <<\EOF
7905 cat >> confdefs.h <<\EOF
7906 #define HAVE_LIBSNMP 1
7914 if test "X$ac_cv_func_sem_init" = "Xno"; then
7916 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
7917 echo "configure:7918: checking for sem_init in -lposix4" >&5
7918 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
7919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7922 ac_save_LIBS="$LIBS"
7923 LIBS="-lposix4 $LIBS"
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938 eval "ac_cv_lib_$ac_lib_var=yes"
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7943 eval "ac_cv_lib_$ac_lib_var=no"
7946 LIBS="$ac_save_LIBS"
7949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7950 echo "$ac_t""yes" 1>&6
7951 ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7953 cat >> confdefs.h <<EOF
7954 #define $ac_tr_lib 1
7957 LIBS="-lposix4 $LIBS"
7960 echo "$ac_t""no" 1>&6
7964 if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
7965 if test "$WITH_THREAD_POOL" = "yes"; then
7966 echo "configure: warning: You do not have posix semaphores. Disabling thread pools" 1>&2
7973 gethostbyaddrrstyle=""
7974 echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6
7975 echo "configure:7976: checking gethostbyaddr_r() syntax" >&5
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7981 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
7984 if { (eval echo configure:7985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7987 cat >> confdefs.h <<\EOF
7988 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
7991 gethostbyaddrrstyle=SYSV
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8003 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
8006 if { (eval echo configure:8007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8009 cat >> confdefs.h <<\EOF
8010 #define GETHOSTBYADDRRSTYLE GNUSTYLE
8013 gethostbyaddrrstyle=GNU
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8021 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8026 gethostbyaddr(NULL, 0, 0)
8029 if { (eval echo configure:8030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8032 cat >> confdefs.h <<\EOF
8033 #define GETHOSTBYADDRRSTYLE BSDSTYLE
8036 gethostbyaddrrstyle=BSD
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8044 if test "x$gethostbyaddrrstyle" = "x"; then
8045 echo "$ac_t""none! It must not exist, here." 1>&6
8047 echo "$ac_t""${gethostbyaddrrstyle}-style" 1>&6
8052 LIBTOOL="`pwd`/libtool"
8059 if test "x$INCLTDL" != "x";then
8060 INCLTDL='-I${top_builddir}/''libltdl'
8064 if test "$WITH_THREAD_POOL" = "yes"; then
8065 if test "$WITH_THREADS" != "yes"; then
8066 { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
8069 if test "X$PTHREADLIB" = "X"; then
8070 { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
8077 if test "x$EXPERIMENTAL" = "xyes"; then
8078 for foo in `find src/modules -name configure -print`; do
8079 bar=`echo $foo | sed 's%/configure$%%g'`
8080 mysubdirs="$mysubdirs $bar"
8083 for foo in `find \`cat src/modules/stable | sed 's%rlm%src/modules/rlm%g'\` -name configure -print`; do
8084 bar=`echo $foo | sed 's%/configure$%%g'`
8085 mysubdirs="$mysubdirs $bar"
8090 if test "x$EXPERIMENTAL" = "xyes"; then
8091 for foo in `ls src/modules | grep rlm_`; do
8092 MODULES="$MODULES $foo"
8095 for foo in `cat src/modules/stable`; do
8096 MODULES="$MODULES $foo"
8100 subdirs="libltdl $mysubdirs"
8108 USE_SHARED_LIBS=$enable_shared
8110 USE_STATIC_LIBS=$enable_static
8119 cat > confcache <<\EOF
8120 # This file is a shell script that caches the results of configure
8121 # tests run on this system so they can be shared between configure
8122 # scripts and configure runs. It is not useful on other systems.
8123 # If it contains results you don't want to keep, you may remove or edit it.
8125 # By default, configure uses ./config.cache as the cache file,
8126 # creating it if it does not exist already. You can give configure
8127 # the --cache-file=FILE option to use a different cache file; that is
8128 # what configure does when it calls configure scripts in
8129 # subdirectories, so they share the cache.
8130 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8131 # config.status only pays attention to the cache file if you give it the
8132 # --recheck option to rerun configure.
8135 # The following way of writing the cache mishandles newlines in values,
8136 # but we know of no workaround that is simple, portable, and efficient.
8137 # So, don't put newlines in cache variables' values.
8138 # Ultrix sh set writes to stderr and can't be redirected directly,
8139 # and sets the high bit in the cache file unless we assign to the vars.
8141 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8143 # `set' does not quote correctly, so add quotes (double-quote substitution
8144 # turns \\\\ into \\, and sed turns \\ into \).
8146 -e "s/'/'\\\\''/g" \
8147 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8150 # `set' quotes correctly as required by POSIX, so do not add quotes.
8151 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8154 if cmp -s $cache_file confcache; then
8157 if test -w $cache_file; then
8158 echo "updating cache $cache_file"
8159 cat confcache > $cache_file
8161 echo "not updating unwritable cache $cache_file"
8166 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8169 # Let make expand exec_prefix.
8170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8172 # Any assignment to VPATH causes Sun make to only execute
8173 # the first set of double-colon rules, so remove it if not needed.
8174 # If there is a colon in the path, we need to keep it.
8175 if test "x$srcdir" = x.; then
8176 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8179 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8181 DEFS=-DHAVE_CONFIG_H
8183 # Without the "./", some shells look in PATH for config.status.
8184 : ${CONFIG_STATUS=./config.status}
8186 echo creating $CONFIG_STATUS
8187 rm -f $CONFIG_STATUS
8188 cat > $CONFIG_STATUS <<EOF
8190 # Generated automatically by configure.
8191 # Run this file to recreate the current configuration.
8192 # This directory was configured as follows,
8193 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8195 # $0 $ac_configure_args
8197 # Compiler output produced by configure, useful for debugging
8198 # configure, is in ./config.log if it exists.
8200 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8203 case "\$ac_option" in
8204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8205 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8206 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8207 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8208 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8210 -help | --help | --hel | --he | --h)
8211 echo "\$ac_cs_usage"; exit 0 ;;
8212 *) echo "\$ac_cs_usage"; exit 1 ;;
8216 ac_given_srcdir=$srcdir
8218 trap 'rm -fr `echo "\
8220 ./src/include/build-radpaths-h \
8221 ./src/main/checkrad.pl \
8222 ./src/main/radlast \
8223 ./src/main/radtest \
8224 ./scripts/rc.radiusd \
8225 ./scripts/radwatch \
8226 ./scripts/check-radiusd-config \
8227 ./scripts/radiusd.cron.daily \
8228 ./scripts/radiusd.cron.monthly \
8229 ./scripts/cryptpasswd \
8230 ./raddb/radiusd.conf
8231 src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8233 cat >> $CONFIG_STATUS <<EOF
8235 # Protect against being on the right side of a sed subst in config.status.
8236 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8237 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8241 s%@CFLAGS@%$CFLAGS%g
8242 s%@CPPFLAGS@%$CPPFLAGS%g
8243 s%@CXXFLAGS@%$CXXFLAGS%g
8244 s%@FFLAGS@%$FFLAGS%g
8246 s%@LDFLAGS@%$LDFLAGS%g
8248 s%@exec_prefix@%$exec_prefix%g
8249 s%@prefix@%$prefix%g
8250 s%@program_transform_name@%$program_transform_name%g
8251 s%@bindir@%$bindir%g
8252 s%@sbindir@%$sbindir%g
8253 s%@libexecdir@%$libexecdir%g
8254 s%@datadir@%$datadir%g
8255 s%@sysconfdir@%$sysconfdir%g
8256 s%@sharedstatedir@%$sharedstatedir%g
8257 s%@localstatedir@%$localstatedir%g
8258 s%@libdir@%$libdir%g
8259 s%@includedir@%$includedir%g
8260 s%@oldincludedir@%$oldincludedir%g
8261 s%@infodir@%$infodir%g
8262 s%@mandir@%$mandir%g
8265 s%@RANLIB@%$RANLIB%g
8269 s%@host_alias@%$host_alias%g
8270 s%@host_cpu@%$host_cpu%g
8271 s%@host_vendor@%$host_vendor%g
8272 s%@host_os@%$host_os%g
8274 s%@build_alias@%$build_alias%g
8275 s%@build_cpu@%$build_cpu%g
8276 s%@build_vendor@%$build_vendor%g
8277 s%@build_os@%$build_os%g
8279 s%@OBJEXT@%$OBJEXT%g
8280 s%@EXEEXT@%$EXEEXT%g
8283 s%@LIBTOOL@%$LIBTOOL%g
8284 s%@logdir@%$logdir%g
8285 s%@radacctdir@%$radacctdir%g
8286 s%@raddbdir@%$raddbdir%g
8287 s%@subdirs@%$subdirs%g
8289 s%@SNMPGET@%$SNMPGET%g
8290 s%@SNMPWALK@%$SNMPWALK%g
8291 s%@RUSERS@%$RUSERS%g
8292 s%@ACLOCAL@%$ACLOCAL%g
8293 s%@AUTOCONF@%$AUTOCONF%g
8294 s%@AUTOHEADER@%$AUTOHEADER%g
8295 s%@LOCATE@%$LOCATE%g
8296 s%@DIRNAME@%$DIRNAME%g
8299 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
8300 s%@LIBPREFIX@%$LIBPREFIX%g
8301 s%@CRYPTLIB@%$CRYPTLIB%g
8302 s%@SNMP_LIBS@%$SNMP_LIBS%g
8303 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
8304 s%@LIBLTDL@%$LIBLTDL%g
8305 s%@INCLTDL@%$INCLTDL%g
8306 s%@top_builddir@%$top_builddir%g
8307 s%@MODULES@%$MODULES%g
8308 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
8309 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
8310 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
8311 s%@STATIC_MODULES@%$STATIC_MODULES%g
8312 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
8313 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
8314 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
8319 cat >> $CONFIG_STATUS <<\EOF
8321 # Split the substitutions into bite-sized pieces for seds with
8322 # small command number limits, like on Digital OSF/1 and HP-UX.
8323 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8324 ac_file=1 # Number of current file.
8325 ac_beg=1 # First line for current file.
8326 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8329 while $ac_more_lines; do
8330 if test $ac_beg -gt 1; then
8331 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8333 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8335 if test ! -s conftest.s$ac_file; then
8337 rm -f conftest.s$ac_file
8339 if test -z "$ac_sed_cmds"; then
8340 ac_sed_cmds="sed -f conftest.s$ac_file"
8342 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8344 ac_file=`expr $ac_file + 1`
8346 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8349 if test -z "$ac_sed_cmds"; then
8354 cat >> $CONFIG_STATUS <<EOF
8356 CONFIG_FILES=\${CONFIG_FILES-"\
8358 ./src/include/build-radpaths-h \
8359 ./src/main/checkrad.pl \
8360 ./src/main/radlast \
8361 ./src/main/radtest \
8362 ./scripts/rc.radiusd \
8363 ./scripts/radwatch \
8364 ./scripts/check-radiusd-config \
8365 ./scripts/radiusd.cron.daily \
8366 ./scripts/radiusd.cron.monthly \
8367 ./scripts/cryptpasswd \
8368 ./raddb/radiusd.conf
8371 cat >> $CONFIG_STATUS <<\EOF
8372 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8375 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8376 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8377 *) ac_file_in="${ac_file}.in" ;;
8380 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8382 # Remove last slash and all that follows it. Not all systems have dirname.
8383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8385 # The file is in a subdirectory.
8386 test ! -d "$ac_dir" && mkdir "$ac_dir"
8387 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8388 # A "../" for each directory in $ac_dir_suffix.
8389 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8391 ac_dir_suffix= ac_dots=
8394 case "$ac_given_srcdir" in
8396 if test -z "$ac_dots"; then top_srcdir=.
8397 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8398 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8400 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8401 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8405 echo creating "$ac_file"
8407 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8409 *Makefile*) ac_comsub="1i\\
8410 # $configure_input" ;;
8414 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8416 s%@configure_input@%$configure_input%g
8417 s%@srcdir@%$srcdir%g
8418 s%@top_srcdir@%$top_srcdir%g
8419 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8426 # ac_d sets the value in "#define NAME VALUE" lines.
8427 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8428 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8431 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8432 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8433 ac_uB='\([ ]\)%\1#\2define\3'
8436 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8437 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8438 ac_eB='$%\1#\2define\3'
8442 if test "${CONFIG_HEADERS+set}" != set; then
8444 cat >> $CONFIG_STATUS <<EOF
8445 CONFIG_HEADERS="src/include/autoconf.h"
8447 cat >> $CONFIG_STATUS <<\EOF
8449 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8450 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8452 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8453 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8454 *) ac_file_in="${ac_file}.in" ;;
8457 echo creating $ac_file
8459 rm -f conftest.frag conftest.in conftest.out
8460 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8461 cat $ac_file_inputs > conftest.in
8465 # Transform confdefs.h into a sed script conftest.vals that substitutes
8466 # the proper values into config.h.in to produce config.h. And first:
8467 # Protect against being on the right side of a sed subst in config.status.
8468 # Protect against being in an unquoted here document in config.status.
8470 cat > conftest.hdr <<\EOF
8473 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8477 sed -n -f conftest.hdr confdefs.h > conftest.vals
8480 # This sed command replaces #undef with comments. This is necessary, for
8481 # example, in the case of _POSIX_SOURCE, which is predefined and required
8482 # on some systems where configure will not decide to define it.
8483 cat >> conftest.vals <<\EOF
8484 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8487 # Break up conftest.vals because some shells have a limit on
8488 # the size of here documents, and old seds have small limits too.
8493 ac_lines=`grep -c . conftest.vals`
8494 # grep -c gives empty output for an empty file on some AIX systems.
8495 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8496 # Write a limited-size here document to conftest.frag.
8497 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8498 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8500 sed -f conftest.frag conftest.in > conftest.out
8502 mv conftest.out conftest.in
8504 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8506 mv conftest.tail conftest.vals
8510 cat >> $CONFIG_STATUS <<\EOF
8511 rm -f conftest.frag conftest.h
8512 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8513 cat conftest.in >> conftest.h
8515 if cmp -s $ac_file conftest.h 2>/dev/null; then
8516 echo "$ac_file is unchanged"
8519 # Remove last slash and all that follows it. Not all systems have dirname.
8520 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8521 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8522 # The file is in a subdirectory.
8523 test ! -d "$ac_dir" && mkdir "$ac_dir"
8526 mv conftest.h $ac_file
8531 cat >> $CONFIG_STATUS <<EOF
8534 cat >> $CONFIG_STATUS <<\EOF
8538 chmod +x $CONFIG_STATUS
8539 rm -fr confdefs* $ac_clean_files
8540 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8542 if test "$no_recursion" != yes; then
8544 # Remove --cache-file and --srcdir arguments so they do not pile up.
8545 ac_sub_configure_args=
8547 for ac_arg in $ac_configure_args; do
8548 if test -n "$ac_prev"; then
8553 -cache-file | --cache-file | --cache-fil | --cache-fi \
8554 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8555 ac_prev=cache_file ;;
8556 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8557 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8563 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8567 for ac_config_dir in libltdl $mysubdirs; do
8569 # Do not complain, so a configure script can configure whichever
8570 # parts of a large source tree are present.
8571 if test ! -d $srcdir/$ac_config_dir; then
8575 echo configuring in $ac_config_dir
8580 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8582 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8590 # A "../" for each directory in /$ac_config_dir.
8591 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8594 .) # No --srcdir option. We are building in place.
8595 ac_sub_srcdir=$srcdir ;;
8596 /*) # Absolute path.
8597 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8599 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8602 # Check for guested configure; otherwise get Cygnus style configure.
8603 if test -f $ac_sub_srcdir/configure; then
8604 ac_sub_configure=$ac_sub_srcdir/configure
8605 elif test -f $ac_sub_srcdir/configure.in; then
8606 ac_sub_configure=$ac_configure
8608 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8612 # The recursion is here.
8613 if test -n "$ac_sub_configure"; then
8615 # Make the cache file name correct relative to the subdirectory.
8616 case "$cache_file" in
8617 /*) ac_sub_cache_file=$cache_file ;;
8619 ac_sub_cache_file="$ac_dots$cache_file" ;;
8622 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8623 # The eval makes quoting arguments work.
8624 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8627 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8641 echo timestamp > src/include/stamp-h
8642 (cd ./src/include && /bin/sh ./build-radpaths-h)
8643 (cd ./src/main && chmod +x checkrad.pl radlast radtest)
8644 (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
8646 cat >> src/include/autoconf.h <<EOF
8648 #define HOSTINFO "$host"
8649 #define RADIUSD_VERSION "$RADIUSD_VERSION"