configure revision f95231835fdcd8d5f58486c9f9993602f27fe157
98N/A# Guess values for system-dependent variables and create Makefiles. 98N/A# Generated by GNU Autoconf 2.53. 98N/A# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 98N/A# Free Software Foundation, Inc. 98N/A# This configure script is free software; the Free Software Foundation 98N/A# gives unlimited permission to copy, distribute and modify it. 98N/A# Find the correct PATH separator. Usually this is `:', but 98N/A# DJGPP uses `;' like DOS. 98N/Aif test "X${PATH_SEPARATOR+set}" !=
Xset;
then 98N/A# Check that we are running under the correct shell. 98N/A # Remove one level of quotation (which was required for Make). 98N/A # Discard the --no-reexec flag, and continue. 98N/A # Avoid inline document here, it may be left over 98N/A # Yippee, $echo works! 98N/A # Restart under the correct shell. 98N/A # used as fallback echo # The HP-UX ksh and POSIX shell print the target directory to stdout if test "X${echo_test_string+set}" !=
Xset;
then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test';
do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # So, first we look for a working echo in the user's PATH. # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" =
'X\t' &&
# This shell has a builtin print -r that does the trick. # If we have ksh, try running configure again with it. # maybe with a smaller string... for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"';
do if test "$prev" !=
'sed 50q "$0"';
then # Oops. We lost completely, so just stick with echo. # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## elif test -n
"${BASH_VERSION+set}" &&
(set -o posix) >/
dev/
null 2>&
1;
then # Support unset when possible. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
# Name of the executable. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. # The user is always right. if test "${PATH_SEPARATOR+set}" !=
set;
then # Find who we are. Look in the path if we contain no path at all # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). # Exit status is that of the last command. case `echo "testing\c"; echo 1,2,3`,
`echo -n testing; echo 1,2,3` in # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). # Don't use ln at all; we don't have any links # Sed expression to map a string onto a valid CPP name. # Sed expression to map a string onto a valid variable name. # We need space, tab and new line, in precisely that order. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. # Identity of this package. # Factoring default headers for most tests. # if !STDC_HEADERS && HAVE_MEMORY_H # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # If the previous option needs an argument, assign it. # Accept the important Cygnus configure options, so we can diagnose typos. # Reject names that are not valid shell variable names. # Reject names that are not valid shell variable names. | --
exec-
pref | --
exec-
pre | --
exec-
pr | --
exec-p | --
exec- \
| --
exec-
pref=* | --
exec-
pre=* | --
exec-
pr=* | --
exec-p=* | --
exec-=* \
| --
exec=* | --
exe=* | --
ex=*)
# Obsolete; use --with-gas. # Obsolete; use --without-fp. # Reject names that are not valid shell variable names. # Reject names that are not valid shell variable names. # Obsolete; use --with-x. | --x-
incl=* | --x-
inc=* | --x-
in=* | --x-i=*)
Try \`$0 --help' for more information." >&2 # Reject names that are not valid shell variable names. # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&
2 # Be sure to have absolute paths. [\\/$]* | ?:[\\/]* |
NONE |
'' ) ;;
{ (exit 1); exit 1; }; };;
# Be sure to have absolute paths. { (exit 1); exit 1; }; };;
# There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. # FIXME: To remove some day. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&
2 # Find the source files, if location was not specified. # Try the directory containing this script, then its parent. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } # Report the --help message. # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ac_dir_suffix= ac_top_builddir= .) # No --srcdir option. We are building in place. if test -z "$ac_top_builddir"; then ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; # Check for guested configure; otherwise get Cygnus style configure. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.53. Invocation command line was hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell meta-characters. | --no-cr | --no-c | -n ) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. # Get rid of the leading space. # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. # Save into config.log some information that might help in debugging. # The following way of writing the cache mishandles newlines in values, case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; rm -f core core.* *.core && for ac_signal in 1 2 13 15; do # confdefs.h avoids OS command line length limits that DEFS can exceed. # AIX cpp loses on an empty file, so make sure it contains at least a newline. # Predefined preprocessor variables. # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. # Check that the precious variables saved in the cache have kept the same for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. if test -f $ac_dir/install-sh; then build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` @echo 'ac_maketemp="${MAKE}"' # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval ac_cv_prog_make_${ac_make}_set=yes eval ac_cv_prog_make_${ac_make}_set=no if eval "test \"`echo '$ac_cv_prog_make_'${
ac_make}
_set`\" = yes"; then set dummy ${ac_tool_prefix}ranlib; ac_word=$2 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. ac_cv_prog_ac_ct_RANLIB="ranlib" # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # AmigaOS /C/install, which installs bootblocks on floppy discs # ./install, which can be erroneously created by make from ./install.sh. # Account for people who put trailing slashes in PATH elements. # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root for ac_prog in ginstall scoinst install; do # AIX install. It has an incompatible calling convention. # program-specific install script used by HP pwplus--don't use. # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. # Extract the first word of "ar", so it can be a program name with args. ac_cv_path_AR="$AR" # Let the user override the test with a path. # The POSIX ln(1) program. Non-POSIX systems may substitute for ac_prog in etags emacs-etags # Extract the first word of "$ac_prog", so it can be a program name with args. ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of # GNU emacs etags, and it requires the -L flag. if test "X$ETAGS" != "X"; then if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then # Perl is optional; it is used only by some of the system test scripts. for ac_prog in perl5 perl # Extract the first word of "$ac_prog", so it can be a program name with args. ac_cv_path_PERL="$PERL" # Let the user override the test with a path. # Special processing of paths depending on whether --prefix, # --sysconfdir or --localstatedir arguments were given. What's # desired is some compatibility with the way previous versions # of BIND built; they defaulted to /usr/local for most parts of # So ... if none of --prefix, --sysconfdir or --localstatedir are # specified, set things up that way. If --prefix is given, use # it for sysconfdir and localstatedir the way configure normally # would. To change the prefix for everything but leave named.conf # ./configure --prefix=/somewhere --sysconfdir=/etc # ./configure --prefix=/somewhere --localstatedir=/var # set the prefix explicitly to /usr/local even though that's the default: # Make sure INSTALL uses an absolute path, else it will be wrong in all # Makefiles, since they use make/rules.in and INSTALL will be adjusted by # configure based on the location of the file where it is substituted. # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate # subdirectory of install-sh, This relative path will be wrong for all # directories more than one level down from install-sh. # Not all systems have dirname. # On these hosts, we really want to use cc, not gcc, even if it is # found. The gcc that these systems have will not correctly handle # However, if the user sets $CC to be something, let that override if test "X$CC" = "X" ; then # Use Sun's cc if it is available, but watch # out for /usr/ucb/cc; it will never be the right # If setting CC here fails, the AC_PROG_CC done # below might still find gcc. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 ac_cv_prog_CC="$CC" # Let the user override the test. # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ac_cv_prog_ac_ct_CC="gcc" # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 ac_cv_prog_CC="$CC" # Let the user override the test. # Extract the first word of "cc", so it can be a program name with args. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. # Extract the first word of "cc", so it can be a program name with args. ac_cv_prog_CC="$CC" # Let the user override the test. # We found a bogon in the path, so make sure we never use it. # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. ac_cv_prog_CC="$CC" # Let the user override the test. # Extract the first word of "$ac_prog", so it can be a program name with args. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. # Provide some information about the compiler. int F77_DUMMY_MAIN() { return 1; } # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; a.out ) # We found the default executable, but exeext='' is most # FIXME: I believe we export ac_cv_exeext for Libtool --akim. { (exit 77); exit 77; }; } # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'." >&2;} # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} if test "${ac_cv_objext+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } echo "$as_me: failed program was:" >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_prog_cc_g+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. { ac_try='test -s conftest.$ac_objext' 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' # gcc's optimiser is broken at -02 for ultrasparc # OSF 5.0: recv/send are only avaliable with -D_POSIX_PII_SOCKET or # -D_XOPEN_SOURCE_EXTENDED. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then # Double quotes because CPP needs to be expanded # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # Broken: fails on valid input. # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. #line $LINENO "configure" #include <ac_nonexistent.h> # Broken: success on invalid input. echo "$as_me: failed program was:" >&5 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # Broken: fails on valid input. # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. #line $LINENO "configure" #include <ac_nonexistent.h> # Broken: success on invalid input. echo "$as_me: failed program was:" >&5 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' if test "${ac_cv_header_stdc+set}" = set; then #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. #line $LINENO "configure" # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. #line $LINENO "configure" # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. #line $LINENO "configure" #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) echo "$as_me: failed program was:" >&5 #line $LINENO "configure" { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 # Is the header compilable? #line $LINENO "configure" { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # So? What about this header? echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 if test "${ac_cv_prog_cc_stdc+set}" = set; then #line $LINENO "configure" /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *f (char * (*g) (char **, int), char **p, ...) s = g (p, va_arg (v,int)); int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int F77_DUMMY_MAIN() { return 1; } return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 echo "${ECHO_T}none needed" >&6 ;; echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 if test "${ac_cv_c_const+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } /* FIXME: Include the comments suggested by Paul. */ /* Ultrix mips cc rejects this. */ /* SunOS 4.1.1 cc rejects this. */ /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char const *s = 0 ? (char *) 0 : (char const *) 0; { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_c_inline+set}" = set; then #line $LINENO "configure" static $ac_kw int static_foo () {return 0; } $ac_kw int foo () {return 0; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #define inline $ac_cv_c_inline if test "${ac_cv_func_sysctlbyname+set}" = set; then #line $LINENO "configure" /* Define sysctlbyname to an innocuous variant, in case <limits.h> declares sysctlbyname. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define sysctlbyname innocuous_sysctlbyname /* System header to define __stub macros and hopefully few prototypes, which can conflict with char sysctlbyname (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_sysctlbyname) || defined (__stub___sysctlbyname) char (*f) () = sysctlbyname; int F77_DUMMY_MAIN() { return 1; } return f != sysctlbyname; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_SYSCTLBYNAME 1 # UnixWare 7.1.1 with the feature supplement to the UDK compiler # is reported to not support "static inline" (RT #1212). #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } static inline int foo1() { static inline int foo2() { { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_type_size_t+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_type_ssize_t+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_header_time+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #define TIME_WITH_SYS_TIME 1 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } long long i = 0; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 # check if we have lifconf #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" #include <sys/types.h> /* Ultrix */ int F77_DUMMY_MAIN() { return 1; } fd_set read_set; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 # Find the machine's endian flavor. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 if test "${ac_cv_c_bigendian+set}" = set; then # See if sys/param.h defines the BYTE_ORDER macro. #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN { ac_try='test -s conftest.$ac_objext' # It does; now see whether it defined to BIG_ENDIAN or not. #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } #if BYTE_ORDER != BIG_ENDIAN { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5 # It does not; compile a test program. # try to guess the endianess by grep'ing values into an object file #line $LINENO "configure" short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' # finding both strings is unlikely to happen, but who knows? echo "$as_me: failed program was:" >&5 #line $LINENO "configure" /* Are we little or big endian? From Harbison&Steele. */ exit (u.c[sizeof (long) - 1] == 1); echo "$as_me: failed program was:" >&5 #define WORDS_BIGENDIAN 1 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 echo "$as_me: error: unknown endianess presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} { (exit 1); exit 1; }; } ;; # was --with-openssl specified? # Check whether --with-openssl or --without-openssl was given. if test "${with_openssl+set}" = set; then # User did not specify a path - guess it echo "${ECHO_T}not found" >&6 echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&2;} echo "$as_me:$LINENO: checking whether linking with OpenSSL works" >&5 echo $ECHO_N "checking whether linking with OpenSSL works... $ECHO_C" >&6 echo "$as_me:$LINENO: result: assuming it does work on target platform" >&5 echo "${ECHO_T}assuming it does work on target platform" >&6 #line $LINENO "configure" echo "$as_me: failed program was:" >&5 { { echo "$as_me:$LINENO: error: Could not run test program using OpenSSL from Please check the argument to --with-openssl and your shared library configuration (e.g., LD_LIBRARY_PATH)." >&5 echo "$as_me: error: Could not run test program using OpenSSL from Please check the argument to --with-openssl and your shared library configuration (e.g., LD_LIBRARY_PATH)." >&2;} echo "$as_me:$LINENO: checking whether linking with OpenSSL requires -ldl" >&5 echo $ECHO_N "checking whether linking with OpenSSL requires -ldl... $ECHO_C" >&6 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 echo "${ECHO_T}unknown" >&6 { { echo "$as_me:$LINENO: error: OpenSSL has unsupported dynamic loading" >&5 echo "$as_me: error: OpenSSL has unsupported dynamic loading" >&2;} # OpenSSLDie is new with CERT CS-2002-23. If we see it we have may # have a patched library otherwise check that we are greater than if test "${ac_cv_func_OpenSSLDie+set}" = set; then #line $LINENO "configure" /* Define OpenSSLDie to an innocuous variant, in case <limits.h> declares OpenSSLDie. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define OpenSSLDie innocuous_OpenSSLDie /* System header to define __stub macros and hopefully few prototypes, which can conflict with char OpenSSLDie (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_OpenSSLDie) || defined (__stub___OpenSSLDie) char (*f) () = OpenSSLDie; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: result: assuming target platform has compatible version" >&5 echo "${ECHO_T}assuming target platform has compatible version" >&6 #line $LINENO "configure" #include <openssl/opensslv.h> if (OPENSSL_VERSION_NUMBER >= 0x0090581fL) printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n", printf("Require OPENSSL_VERSION_NUMBER 0x0090581f or greater\n\n"); echo "$as_me: failed program was:" >&5 echo "${ECHO_T}not compatible" >&6 { { echo "$as_me:$LINENO: error: you need OpenSSL 0.9.5a or newer" >&5 echo "$as_me: error: you need OpenSSL 0.9.5a or newer" >&2;} echo "$as_me:$LINENO: result: did not find fixes for CERT CA-2002-23" >&5 echo "${ECHO_T}did not find fixes for CERT CA-2002-23" >&6 echo "$as_me:$LINENO: result: assuming target platform has compatible version" >&5 echo "${ECHO_T}assuming target platform has compatible version" >&6 #line $LINENO "configure" #include <openssl/opensslv.h> if ((OPENSSL_VERSION_NUMBER >= 0x0090605fL && OPENSSL_VERSION_NUMBER < 0x009070000L) || OPENSSL_VERSION_NUMBER >= 0x00907003L) printf("\n\nFound OPENSSL_VERSION_NUMBER %#010x\n", printf("Require OPENSSL_VERSION_NUMBER 0x0090605f or greater (0.9.6e)\n" "Require OPENSSL_VERSION_NUMBER 0x00907003 or greater (0.9.7-beta2)\n\n"); echo "$as_me: failed program was:" >&5 echo "${ECHO_T}not compatible" >&6 { { echo "$as_me:$LINENO: error: you need OpenSSL 0.9.6e/0.9.7-beta2 (or newer): CERT CA-2002-23" >&5 echo "$as_me: error: you need OpenSSL 0.9.6e/0.9.7-beta2 (or newer): CERT CA-2002-23" >&2;} # This would include the system openssl path (and linker options to use # it as needed) if it is found. # was --with-gssapi specified? #AC_MSG_CHECKING(for GSSAPI library) #[ --with-gssapi=PATH Specify path for system-supplied GSSAPI], # use_gssapi="$withval", use_gssapi="no") # AC_MSG_RESULT(not specified) # AC_MSG_ERROR([--with-gssapi must specify a path]) # Applications linking with libdns also need to link with these libraries. # was --with-randomdev specified? # Check whether --with-randomdev or --without-randomdev was given. if test "${with_randomdev+set}" = set; then { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} #define PATH_RANDOMDEV "$devrandom" { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5 echo "$as_me: error: --with-randomdev must specify a path" >&2;} echo "${ECHO_T}disabled" >&6 #define PATH_RANDOMDEV "$use_randomdev" # Do we have arc4random() ? if test "${ac_cv_func_arc4random+set}" = set; then #line $LINENO "configure" /* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define arc4random innocuous_arc4random /* System header to define __stub macros and hopefully few prototypes, which can conflict with char arc4random (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_arc4random) || defined (__stub___arc4random) char (*f) () = arc4random; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_ARC4RANDOM 1 # Begin pthreads checking. # First, decide whether to use multithreading or not. # Enable multithreading by default on systems where it is known # to work well, and where debugging of multithreaded programs echo "$as_me:$LINENO: checking whether to build with thread support" >&5 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6 # Thread signals are broken on Solaris 2.6; they are sometimes # delivered to the wrong thread. # Socket I/O optimizations introduced in 9.2 expose a # bug in unproven-pthreads; see PR #12650 # OpenBSD users have reported that named dumps core on # startup when built with threads. # Thread signals do not appear to work reliably on BSDI. # Threads are disabled on Linux by default because most # Linux kernels produce unusable core dumps from multithreaded # programs, and because of limitations in setuid(). # Check whether --enable-threads or --disable-threads was given. if test "${enable_threads+set}" = set; then # Use system-dependent default { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5 echo "$as_me: error: --enable-threads takes yes or no" >&2;} # Search for / configure pthreads in a system-dependent fashion. # NetBSD has multiple pthreads implementations. The # recommended one to use is "unproven-pthreads". The # older "mit-pthreads" may also work on some NetBSD # versions. The PTL2 thread library does not # currently work with bind9, but can be chosen with # the --with-ptl2 option for those who wish to echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6 # Check whether --with-ptl2 or --without-ptl2 was given. if test "${with_ptl2+set}" = set; then { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;} { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 echo "$as_me: error: \"could not find thread libraries\"" >&2;} lib2="-lpthread -lm -lgcc -lpthread" echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_LIBPTHREAD 1 echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __pthread_create (); int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_LIBPTHREAD 1 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __pthread_create_system (); int F77_DUMMY_MAIN() { return 1; } __pthread_create_system (); { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_LIBPTHREAD 1 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_c_pthread_create+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 echo "$as_me: error: \"could not find thread libraries\"" >&2;} # We'd like to use sigwait() too if test "${ac_cv_lib_c_sigwait+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then #line $LINENO "configure" /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize /* System header to define __stub macros and hopefully few prototypes, which can conflict with char pthread_attr_getstacksize (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #undef pthread_attr_getstacksize /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pthread_attr_getstacksize (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize) char (*f) () = pthread_attr_getstacksize; int F77_DUMMY_MAIN() { return 1; } return f != pthread_attr_getstacksize; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 # Additional OS-specific issues related to pthreads and sigwait. # One more place to look for sigwait. if test "${ac_cv_lib_c_r_sigwait+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # BSDI 3.0 through 4.0.1 needs pthread_init() to be # called before certain pthreads calls. This is deprecated #define NEED_PTHREAD_INIT 1 # LinuxThreads requires some changes to the way we #define HAVE_LINUXTHREADS 1 # Ensure the right sigwait() semantics on Solaris and make # sure we call pthread_setconcurrency. #define _POSIX_PTHREAD_SEMANTICS 1 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then #line $LINENO "configure" /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define pthread_setconcurrency innocuous_pthread_setconcurrency /* System header to define __stub macros and hopefully few prototypes, which can conflict with char pthread_setconcurrency (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #undef pthread_setconcurrency /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char pthread_setconcurrency (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency) char (*f) () = pthread_setconcurrency; int F77_DUMMY_MAIN() { return 1; } return f != pthread_setconcurrency; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define CALL_PTHREAD_SETCONCURRENCY 1 # UnixWare does things its own way. #define HAVE_UNIXWARE_SIGWAIT 1 # Look for sysconf to allow detection of the number of processors. if test "${ac_cv_func_sysconf+set}" = set; then #line $LINENO "configure" /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define sysconf innocuous_sysconf /* System header to define __stub macros and hopefully few prototypes, which can conflict with char sysconf (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_sysconf) || defined (__stub___sysconf) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "X$GCC" = "Xyes"; then # flockfile is usually provided by pthreads, but we may want to use it # even if compiled with --disable-threads. getc_unlocked might also not if test "${ac_cv_func_flockfile+set}" = set; then #line $LINENO "configure" /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define flockfile innocuous_flockfile /* System header to define __stub macros and hopefully few prototypes, which can conflict with char flockfile (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_flockfile) || defined (__stub___flockfile) char (*f) () = flockfile; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_getc_unlocked+set}" = set; then #line $LINENO "configure" /* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define getc_unlocked innocuous_getc_unlocked /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getc_unlocked (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getc_unlocked) || defined (__stub___getc_unlocked) char (*f) () = getc_unlocked; int F77_DUMMY_MAIN() { return 1; } return f != getc_unlocked; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_GETCUNLOCKED 1 # Indicate what the final decision was regarding threads. echo "$as_me:$LINENO: checking whether to build with threads" >&5 # Check whether --enable-largefile or --disable-largefile was given. if test "${enable_largefile+set}" = set; then # Additional compiler settings. if test "X$GCC" = "Xyes"; then # The version of the C compiler that constantly warns about # 'const' as well as alignment issues is unfortunately not # able to be discerned via the version of the operating # system, nor does cc have a version flag. case "`$CC +W 123 2>&1`" in # Turn off the pointlessly noisy warnings. # Silence more than 250 instances of # "prototyped function redeclared without prototype" # "variable ... was set but never used" if test "${ac_cv_func_catgets+set}" = set; then #line $LINENO "configure" /* Define catgets to an innocuous variant, in case <limits.h> declares catgets. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define catgets innocuous_catgets /* System header to define __stub macros and hopefully few prototypes, which can conflict with char catgets (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_catgets) || defined (__stub___catgets) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # -lxnet buys us one big porting headache... standards, gotta love 'em. # AC_CHECK_LIB(xnet, socket, , # AC_CHECK_LIB(socket, socket) # AC_CHECK_LIB(nsl, inet_ntoa) # Use this for now, instead: if test "${ac_cv_lib_socket_socket+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # Check whether --with-purify or --without-purify was given. if test "${with_purify+set}" = set; then # Extract the first word of "purify", so it can be a program name with args. if test "${ac_cv_path_purify_path+set}" = set; then Please choose the proper path with the following command: configure --with-purify=PATH Please choose the proper path with the following command: configure --with-purify=PATH # Check whether --with-libtool or --without-libtool was given. if test "${with_libtool+set}" = set; then # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then # Look at the argument we got. We use all the common list separators. if test "X$pkg" = "X$p"; then # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then # Look at the argument we got. We use all the common list separators. if test "X$pkg" = "X$p"; then # Check whether --enable-fast-install or --disable-fast-install was given. if test "${enable_fast_install+set}" = set; then # Look at the argument we got. We use all the common list separators. if test "X$pkg" = "X$p"; then # Find the correct PATH separator. Usually this is `:', but # DJGPP uses `;' like DOS. if test "X${PATH_SEPARATOR+set}" != Xset; then # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then # Check if gcc -print-prog-name=ld gives a path. # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; [\\/]* | [A-Za-z]:[\\/]*) # Canonicalize the path of ld # If it fails, then pretend we aren't using GCC. # If it is relative, then search for the first ld in PATH. if test "${lt_cv_path_LD+set}" = set; then # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} if test "${lt_cv_prog_gnu_ld+set}" = set; then # I'd rather use --version here, but apparently some GNU ld's only accept -v. if test "${lt_cv_ld_reload_flag+set}" = set; then if test "${lt_cv_path_NM+set}" = set; then # Let the user override the test. # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file continue # so that we can try to find one that supports BSD flags if test "$LN_S" = "ln -s"; then echo "${ECHO_T}no, using $LN_S" >&6 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 if test "${lt_cv_deplibs_check_method+set}" = set; then # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given egrep regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. # this will be overridden with pass_all, but let us keep it just in case # this will be overridden with pass_all, but let us keep it just in case # This must be Linux ELF. # glibc up to 2.1.1 does not perform some relocations on ARM # this will be overridden with pass_all, but let us keep it just in case # Check for command to grab the raw symbol name followed by C symbol from nm. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform the above into a raw symbol and a C symbol. # Transform an extracted symbol line into a proper C declaration # Transform an extracted symbol line into symbol name and symbol address # Define system-specific variables. hpux*) # Its linker distinguishes data from code symbols # Handle CRLF in mingw tool chain opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp # If we're using GNU nm, then use its standard symbol codes. # Try without a prefix undercore, then with it. # Write the raw and C identifiers. # Check to see that the pipe works correctly. int main(){nm_test_var='a';nm_test_func();return(0);} # Now try to grab the symbols. # Try sorting and uniquifying the output. # Make sure that we snagged all the symbols we need. cat <<EOF > conftest.$ac_ext # Now generate the symbol file. cat <<EOF >> conftest.$ac_ext #if defined (__STDC__) && __STDC__ /* The mapping between symbol names and symbols. */ # Now try linking the two files. echo "cannot find nm_test_func in $nlist" >&5 echo "cannot find nm_test_var in $nlist" >&5 # Do not use the global_symbol_pipe unless it works. echo "${ECHO_T}failed" >&6 # Is the header compilable? #line $LINENO "configure" { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # So? What about this header? echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 # Only perform the check for file, if the check method requires it if test "${lt_cv_path_MAGIC_CMD+set}" = set; then *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to if test "${lt_cv_path_MAGIC_CMD+set}" = set; then *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. if test "${ac_cv_prog_RANLIB+set}" = set; then # Extract the first word of "ranlib", so it can be a program name with args. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. if test "${ac_cv_prog_STRIP+set}" = set; then # Extract the first word of "strip", so it can be a program name with args. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then # Check whether --enable-libtool-lock or --disable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then # Some flags need to be propagated to the compiler or linker for good # Find out which ABI we are using. # On SCO OpenServer 5, we need -belf to get full-featured binaries. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 if test "${lt_cv_cc_needs_belf+set}" = set; then ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. # Same as above, but do not quote variable references. # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. # All known linkers require a `.a' archive for static linking (except M$VC, # Set sane defaults for various variables # Transform linux* to *-*-linux-gnu*, to support old configure scripts. # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then # Determine commands to create old-style static archives. # Allow CC to be a program name with arguments. ## FIXME: this should be a separate macro # MS-DOS does not allow filenames that begin with a dot. ## FIXME: this should be a separate macro # Check whether --with-pic or --without-pic was given. if test "${with_pic+set}" = set; then # We assume here that the value for lt_cv_prog_cc_pic will not be cached # in isolation, and that seeing it set (from the cache) indicates that # the associated values are set (in the cache) correctly too. if test "${lt_cv_prog_cc_pic+set}" = set; then # Below there is a dirty hack to force normal static linking with -ldl # The problem is because libdl dynamically linked with both libc and # libC (AIX C++ library), which obviously doesn't included in libraries # list by gcc. This cause undefined symbols with -static flags. # This hack allows C programs to be linked with "-static -ldl", but # not sure about C++ programs. # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # PIC is the default for these OSes. # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # PORTME Check for PIC flags for the system compiler. # AIX 5 now supports IA64 processor # Is there a better lt_cv_prog_cc_static that works with the bundled CC? # PIC (with -KPIC) is the default. # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Check to make sure the pic_flag actually works. if test "${lt_cv_prog_cc_pic_works+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' # On HP-UX, both CC and GCC only warn that PIC is supported... then # they create non-PIC objects. So, if there were any warnings, we # assume that PIC is not supported. echo "$as_me: failed program was:" >&5 # Check for any special shared library compilation flags. ## FIXME: this should be a separate macro if test "${lt_cv_prog_cc_static_works+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # Belt *and* braces to stop my trousers falling down: ## FIXME: this should be a separate macro # Check to see if options -o and -c are simultaneously supported by compiler if test "${lt_cv_compiler_c_o+set}" = set; then # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings # Check to see if we can write to a .lo if test "${lt_cv_compiler_o_lo+set}" = set; then #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings echo "$as_me: failed program was:" >&5 ## FIXME: this should be a separate macro # Check to see if we can do hard links to lock some files if needed # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} ## FIXME: this should be a separate macro # Check to see if options -fno-rtti -fno-exceptions are supported by compiler #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings echo "$as_me: failed program was:" >&5 ## FIXME: this should be a separate macro # See if the linker supports building shared libraries. echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list # exclude_expsyms can be an egrep regular expression of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # If archive_cmds runs LD, not CC, wlarc should be empty # See if GNU ld supports shared libraries. # On AIX, the GNU linker is very broken # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can use # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ # cygwin and mingw dlls have different entry points and sets of symbols # FIXME: what about values for MSVC? # mingw and cygwin differ, and it's simplest to just exclude the union # of the two symbol sets. # recent cygwin and mingw systems supply a stub DllMain which the user # can override, but on older systems we have to supply one (in ltdll.c) test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' # Extract the symbol export list from an `--export-all' def file, # then regenerate the def file from the symbol export list, so that # the compiled dll only exports the symbol export list. # Be careful not to strip the DATA tag left be newer dlltools. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! cp $export_symbols $output_objdir/$soname-def; echo EXPORTS > $output_objdir/$soname-def; cat $export_symbols | while read symbol; do 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; _lt_hint=`expr 1 + \$_lt_hint`; $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~ $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~ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' # dlltool doesn't understand --whole-archive et. al. # ancient GNU ld didn't support --whole-archive et. al. # PORTME fill in a description of your system's linker (not GNU ld) 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' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. # Neither direct hardcoding nor static linking is supported with a # On IA64, the linker does run time linking by default, so we don't # have to do anything special. # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. # We have reworked collect2 # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking # It seems that -bexpall can do strange things, so it is better to # generate a list of symbols to export. # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. # This is a bit strange, but is similar to how AIX traditionally builds # see comment about different semantics on the GNU ld section # When not using gcc, we currently assume that we are using # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. # Tell ltmain to make .lib files, not .a files. # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. # FIXME: Should let the user specify the lib program. # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. 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' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # Unfortunately, older versions of FreeBSD 2 do not have this feature. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # FreeBSD 3 and greater uses gcc -shared to do shared libraries. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 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' ;; *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; # location of the library. 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' 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' archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 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' 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' osf4* | osf5*) # as osf3* with the addition of -msym flag 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' 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' $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' #Both c and cxx compiler support -rpath directly archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' # gcc --version < 3.0 without binutils cannot create self contained # shared libraries reliably, requiring libgcc.a to resolve some of # the object symbols generated in some cases. Libraries that use # assert need libgcc.a to resolve __eprintf, for example. Linking # a copy of libgcc.a into every shared library to guarantee resolving # such symbols causes other problems: According to Tim Van Holder # <tim.van.holder@pandora.be>, C++ libraries end up with a separate # (to the application) exception stack for one thing. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably *** create self contained shared libraries on Solaris systems, without *** introducing a dependency on libgcc.a. Therefore, libtool is disabling *** -no-undefined support, which will at least allow you to build shared *** libraries. However, you may find that when you link such libraries *** into an application without using GCC, you have to manually add *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to *** upgrade to a newer version of GCC. Another option is to rebuild your *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' *) # Supported since Solaris 2.6 (maybe 2.5.1?) # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ## FIXME: this should be a separate macro # Check hardcoding attributes. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 # We can hardcode non-existant directories. # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$hardcode_shlibpath_var" != no && # Linking always hardcodes the temporary library directory. # We can link without hardcoding, and we can hardcode nonexisting dirs. # We cannot hardcode anything, or else we can only hardcode existing ## FIXME: this should be a separate macro echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 ## FIXME: this should be a separate macro # PORTME Fill in your ld.so characteristics echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 # AIX has no versioning support, so we append a major version to the name. # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' # AIX (on Power*) has no versioning support, so currently we can # not hardcode correct soname into executable. Probably we can # add versioning support to collect2, so additional links can # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. # libtool to hard-code these into programs soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog .libs/$dlname \$dldir/$dlname' # FIXME: first we should search . and the directory the executable is in # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. 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)' soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. # HP-UX runs *really* slowly unless shared libraries are mode 555. # No shared lib support for Linux oldld, aout, or coff. # This must be Linux ELF. # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' # ldd complains unless libraries are executable ## FIXME: this should be a separate macro # Report the final consequences. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 ## FIXME: this should be a separate macro echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. ## FIXME: this should be a separate macro echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. # Fast installation is not supported # Fast installation is not necessary if test "${ac_cv_func_shl_load+set}" = set; then #line $LINENO "configure" /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_dld_shl_load+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_dlopen+set}" = set; then #line $LINENO "configure" /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_dl_dlopen+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_svld_dlopen+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_dld_dld_link+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then # define LT_DLGLOBAL RTLD_GLOBAL # define LT_DLGLOBAL DL_GLOBAL /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ # define LT_DLLAZY_OR_NOW RTLD_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # define LT_DLLAZY_OR_NOW RTLD_NOW # define LT_DLLAZY_OR_NOW DL_NOW # define LT_DLLAZY_OR_NOW 0 extern "C" void exit (int); void fnord() { int i=42;} void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then # define LT_DLGLOBAL RTLD_GLOBAL # define LT_DLGLOBAL DL_GLOBAL /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ # define LT_DLLAZY_OR_NOW RTLD_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # define LT_DLLAZY_OR_NOW RTLD_NOW # define LT_DLLAZY_OR_NOW DL_NOW # define LT_DLLAZY_OR_NOW 0 extern "C" void exit (int); void fnord() { int i=42;} void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; ## FIXME: this should be a separate macro # FIXME: we may have to deal with multi-command sequences. # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then ## FIXME: this should be a separate macro # The second clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # If there is no Makefile yet, we rely on a make rule to execute trap "$rm \"${ofile}T\"; exit 1" 1 2 15 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" cat <<__EOF__ > "${ofile}T" # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Copyright (C) 1996-2000 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Sed that helps us avoid accidentally triggering echo(1) options like -n. # The HP-UX ksh and POSIX shell print the target directory to stdout if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$need_lc # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # An echo program that does not interpret backslashes. # The default C compiler. # Is the compiler the GNU C compiler? # The linker used to build libraries. # Whether we need hard or soft links. # A BSD-compatible nm program. # A symbol stripping program # Used to examine libraries when file_magic_cmd begins "file" # Used on cygwin: DLL creation program. # Used on cygwin: object dumper. # Used on cygwin: assembler. # The name of the directory that contains temporary libtool files. # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. # Object file suffix (normally "o"). # Old archive suffix (normally "a"). # Executable file suffix (normally ""). # Additional compiler flags for building library objects. # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_compiler_c_o # Can we write directly to a .lo ? compiler_o_lo=$lt_compiler_o_lo # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_link_static_flag # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address # This is the shared library runtime path variable. # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into hardcode_shlibpath_var=$hardcode_shlibpath_var # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then cat <<'EOF' >> "${ofile}T" # This is a source program that is used to create dlls on Windows # Don't remove nor modify the starting and closing comments # #define WIN32_LEAN_AND_MEAN # #undef WIN32_LEAN_AND_MEAN # # define __CYGWIN__ __CYGWIN32__ # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # DECLARE_CYGWIN_DLL( DllMain ); # HINSTANCE __hDllInstance_base; # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # __hDllInstance_base = hInst; # This is a source program that is used to create import libraries # on Windows for dlls which lack them. Don't remove nor modify the # starting and closing comments # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. # This file is part of GNU libtool. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # #include <stdio.h> /* for printf() */ # #include <unistd.h> /* for open(), lseek(), read() */ # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ # #include <string.h> /* for strdup() */ # /* O_BINARY isn't required (or even defined sometimes) under Unix */ # lseek (fd, offset, SEEK_SET); # return b[0] + (b[1]<<8); # lseek (fd, offset, SEEK_SET); # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); # unsigned char *b = ptr; # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; # unsigned long export_rva, export_size, nsections, secptr, expptr; # unsigned long name_rvas, nexp; # unsigned char *expdata, *erva; # char *filename, *dll_name; # dll = open(filename, O_RDONLY|O_BINARY); # for (i=0; filename[i]; i++) # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') # dll_name = filename + i +1; # pe_header_offset = pe_get32 (dll, 0x3c); # opthdr_ofs = pe_header_offset + 4 + 20; # num_entries = pe_get32 (dll, opthdr_ofs + 92); # if (num_entries < 1) /* no exports */ # export_rva = pe_get32 (dll, opthdr_ofs + 96); # export_size = pe_get32 (dll, opthdr_ofs + 100); # nsections = pe_get16 (dll, pe_header_offset + 4 +2); # secptr = (pe_header_offset + 4 + 20 + # pe_get16 (dll, pe_header_offset + 4 + 16)); # for (i = 0; i < nsections; i++) # unsigned long secptr1 = secptr + 40 * i; # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); # unsigned long vsize = pe_get32 (dll, secptr1 + 16); # unsigned long fptr = pe_get32 (dll, secptr1 + 20); # lseek(dll, secptr1, SEEK_SET); # if (vaddr <= export_rva && vaddr+vsize > export_rva) # expptr = fptr + (export_rva - vaddr); # if (export_rva + export_size > vaddr + vsize) # export_size = vsize - (export_rva - vaddr); # expdata = (unsigned char*)malloc(export_size); # lseek (dll, expptr, SEEK_SET); # read (dll, expdata, export_size); # erva = expdata - export_rva; # nexp = pe_as32 (expdata+24); # name_rvas = pe_as32 (expdata+32); # for (i = 0; i<nexp; i++) # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) # This can be used to rebuild libtool when needed # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion # File name extension for static archive files, for those few places # where they are treated differently from dynamic ones. # Check whether --enable-libbind or --disable-libbind was given. if test "${enable_libbind+set}" = set; then # Here begins a very long section to determine the system's networking # capabilities. The order of the tests is signficant. # Check whether --enable-ipv6 or --disable-ipv6 was given. if test "${enable_ipv6+set}" = set; then # We do the IPv6 compilation checking after libtool so that we can put # the right suffix on the files. #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct sockaddr_in6 sin6; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 # See whether IPv6 support is provided via a Kame add-on. # This is done before other IPv6 linking tests to LIBS is properly set. # Check whether --with-kame or --without-kame was given. if test "${with_kame+set}" = set; then Please choose the proper path with the following command: configure --with-kame=PATH Please choose the proper path with the following command: configure --with-kame=PATH # Including it on Kame-using platforms is very bad, though, because # Kame uses #error against direct inclusion. So include it on only # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. # This is done before the in6_pktinfo check because that's what # Now delve deeper into the suitability of the IPv6 support. #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct in6_addr in6; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]); { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); { ac_try='test -s conftest.$ac_objext' result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" echo "$as_me: failed program was:" >&5 result="#undef LWRES_HAVE_SIN6_SCOPE_ID" #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct in6_pktinfo xyzzy; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # Check for network functions that are often missing. We do this # after the libtool checking, so we can put the right suffix on # the files. It also needs to come after checking for a Kame add-on, # which provides some (all?) of the desired functions. echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5 echo $ECHO_N "checking for inet_ntop with IPv6 support... $ECHO_C" >&6 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 echo "$as_me: error: cannot run test program while cross compiling" >&2;} #line $LINENO "configure" char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);} echo "$as_me: failed program was:" >&5 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts # addresses with less than four octets, like "1.2.3". Also leading # zeros should also be rejected. echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&5 echo $ECHO_N "checking for working inet_pton with IPv6 support... $ECHO_C" >&6 echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&5 echo "${ECHO_T}assuming target platform has working inet_pton" >&6 #line $LINENO "configure" main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 : inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); } echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct in_addr in; inet_aton(0, &in); return (0); { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # Look for a 4.4BSD-style sa_len member in struct sockaddr. # Turn on 4.4BSD style sa_len support. echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct sockaddr sa; sa.sa_len = 0; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 # Look for a 4.4BSD or 4.3BSD struct msghdr #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct msghdr msg; msg.msg_flags = 0; return (0); { ac_try='test -s conftest.$ac_objext' echo "${ECHO_T}4.4BSD" >&6 echo "$as_me: failed program was:" >&5 echo "${ECHO_T}4.3BSD" >&6 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } in_port_t port = 25; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct addrinfo a; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } struct rrsetinfo r; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } int i = sethostent(0); return(0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } int i = endhostent(); return(0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: checking for getnetbyaddr(in_addr_t, ...)" >&5 echo $ECHO_N "checking for getnetbyaddr(in_addr_t, ...)... $ECHO_C" >&6 #line $LINENO "configure" struct netent *getnetbyaddr(in_addr_t, int); int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } int i = setnetent(0); return(0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } int i = endnetent(); return(0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6 #line $LINENO "configure" struct hostent *gethostbyaddr(const void *, size_t, int); int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_getipnodebyname+set}" = set; then #line $LINENO "configure" /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define getipnodebyname innocuous_getipnodebyname /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getipnodebyname (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname) char (*f) () = getipnodebyname; int F77_DUMMY_MAIN() { return 1; } return f != getipnodebyname; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_getnameinfo+set}" = set; then #line $LINENO "configure" /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define getnameinfo innocuous_getnameinfo /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getnameinfo (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo) char (*f) () = getnameinfo; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_getaddrinfo+set}" = set; then #line $LINENO "configure" /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define getaddrinfo innocuous_getaddrinfo /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getaddrinfo (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo) char (*f) () = getaddrinfo; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_GETADDRINFO 1 if test "${ac_cv_func_gai_strerror+set}" = set; then #line $LINENO "configure" /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define gai_strerror innocuous_gai_strerror /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gai_strerror (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror) char (*f) () = gai_strerror; int F77_DUMMY_MAIN() { return 1; } return f != gai_strerror; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_GAISTRERROR 1 # Check whether --enable-getifaddrs or --disable-getifaddrs was given. if test "${enable_getifaddrs+set}" = set; then # Do we have getifaddrs() ? # Some recent versions of glibc support getifaddrs() which does not # provide AF_INET6 addresses while the function provided by the USAGI # project handles the AF_INET6 case correctly. We need to avoid # using the former but prefer the latter unless overridden by # --enable-getifaddrs=glibc. if test "${ac_cv_func_getifaddrs+set}" = set; then #line $LINENO "configure" /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define getifaddrs innocuous_getifaddrs /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getifaddrs (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs) char (*f) () = getifaddrs; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_GETIFADDRS 1 if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_GETIFADDRS 1 if test "${ac_cv_func_getifaddrs+set}" = set; then #line $LINENO "configure" /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define getifaddrs innocuous_getifaddrs /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getifaddrs (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_getifaddrs) || defined (__stub___getifaddrs) char (*f) () = getifaddrs; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_GETIFADDRS 1 # Look for a sysctl call to get the list of network interfaces. #line $LINENO "configure" #define HAVE_IFLIST_SYSCTL 1 # Check for some other useful functions that are not ever-present. # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC # reportedly defines strsep() without declaring it in <string.h> when # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and # AC_CHECK_FUNC() incorrectly succeeds because it declares echo "$as_me:$LINENO: checking for correctly declared strsep()" >&5 echo $ECHO_N "checking for correctly declared strsep()... $ECHO_C" >&6 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } char *sp; char *foo = strsep(&sp, "."); { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_memmove+set}" = set; then #line $LINENO "configure" /* Define memmove to an innocuous variant, in case <limits.h> declares memmove. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define memmove innocuous_memmove /* System header to define __stub macros and hopefully few prototypes, which can conflict with char memmove (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_memmove) || defined (__stub___memmove) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_strtoul+set}" = set; then #line $LINENO "configure" /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define strtoul innocuous_strtoul /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strtoul (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strtoul) || defined (__stub___strtoul) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_strlcpy+set}" = set; then #line $LINENO "configure" /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define strlcpy innocuous_strlcpy /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlcpy (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlcpy) || defined (__stub___strlcpy) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_strlcat+set}" = set; then #line $LINENO "configure" /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define strlcat innocuous_strlcat /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlcat (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlcat) || defined (__stub___strlcat) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" int F77_DUMMY_MAIN() { return 1; } char buf[2]; return(*sprintf(buf,"x")); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_vsnprintf+set}" = set; then #line $LINENO "configure" /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define vsnprintf innocuous_vsnprintf /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vsnprintf (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) char (*f) () = vsnprintf; int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_strerror+set}" = set; then #line $LINENO "configure" /* Define strerror to an innocuous variant, in case <limits.h> declares strerror. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define strerror innocuous_strerror /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strerror (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strerror) || defined (__stub___strerror) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # Determine the printf format characters to use when printing # values of type isc_int64_t. We make the assumption that platforms # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1) # want "%ld" and everyone else can use "%lld". Win32 uses "%I64d", # but that's defined elsewhere since we don't use configure on Win32. echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6 echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5 echo "${ECHO_T}assuming target platform uses ll" >&6 #line $LINENO "configure" main() { exit(!(sizeof(long long int) == sizeof(long int))); } echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_chroot+set}" = set; then #line $LINENO "configure" /* Define chroot to an innocuous variant, in case <limits.h> declares chroot. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define chroot innocuous_chroot /* System header to define __stub macros and hopefully few prototypes, which can conflict with char chroot (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_chroot) || defined (__stub___chroot) int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # Check whether --enable-linux-caps or --disable-linux-caps was given. if test "${enable_linux_caps+set}" = set; then # Is the header compilable? #line $LINENO "configure" { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # So? What about this header? echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 # Is the header compilable? #line $LINENO "configure" { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 #line $LINENO "configure" echo "$as_me: failed program was:" >&5 # So? What about this header? echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 # BSD/OS, and perhaps some others, don't define rlim_t. #line $LINENO "configure" #include <sys/resource.h> int F77_DUMMY_MAIN() { return 1; } rlim_t rl = 19671212; return (0); { ac_try='test -s conftest.$ac_objext' echo "$as_me: failed program was:" >&5 { { echo "$as_me:$LINENO: error: cannot determine type of rlim_cur when cross compiling - define rlim_t" >&5 echo "$as_me: error: cannot determine type of rlim_cur when cross compiling - define rlim_t" >&2;} #line $LINENO "configure" #include <sys/resource.h> main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));} echo "$as_me: failed program was:" >&5 echo "$as_me: error: this cannot happen" >&2;} #line $LINENO "configure" #include <sys/resource.h> main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));} echo "${ECHO_T}long int" >&6 echo "$as_me: failed program was:" >&5 echo "$as_me: error: this cannot happen" >&2;} #line $LINENO "configure" #include <sys/resource.h> main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));} echo "${ECHO_T}long long int" >&6 echo "$as_me: failed program was:" >&5 { { echo "$as_me:$LINENO: error: unable to determine sizeof rlim_cur" >&5 echo "$as_me: error: unable to determine sizeof rlim_cur" >&2;} # Compaq TruCluster requires more code for handling cluster IP aliases echo "$as_me:$LINENO: checking for clua_getaliasaddress in -lclua" >&5 echo $ECHO_N "checking for clua_getaliasaddress in -lclua... $ECHO_C" >&6 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char clua_getaliasaddress (); int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_func_clua_getaliasaddress+set}" = set; then #line $LINENO "configure" /* Define clua_getaliasaddress to an innocuous variant, in case <limits.h> declares clua_getaliasaddress. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define clua_getaliasaddress innocuous_clua_getaliasaddress /* System header to define __stub macros and hopefully few prototypes, which can conflict with char clua_getaliasaddress (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #undef clua_getaliasaddress /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char clua_getaliasaddress (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_clua_getaliasaddress) || defined (__stub___clua_getaliasaddress) char (*f) () = clua_getaliasaddress; int F77_DUMMY_MAIN() { return 1; } return f != clua_getaliasaddress; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 #define HAVE_TRUCLUSTER 1 # Microsoft has their own way of handling shared libraries that requires # additional qualifiers on extern variables. Unix systems don't need it. # Random remaining OS-specific issues involving compiler warnings. # XXXDCL print messages to indicate some compensation is being done? # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings. # Shut up a -Wmissing-prototypes warning for sigwait(). # Shut up a -Wmissing-prototypes warning from <stdio.h>. # Shut up a -Wcast-qual warning from va_start(). #define SHUTUP_STDARG_CAST 1 # Check for if_nametoindex() for IPv6 scoped addresses support if test "${ac_cv_func_if_nametoindex+set}" = set; then #line $LINENO "configure" /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define if_nametoindex innocuous_if_nametoindex /* System header to define __stub macros and hopefully few prototypes, which can conflict with char if_nametoindex (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex) char (*f) () = if_nametoindex; int F77_DUMMY_MAIN() { return 1; } return f != if_nametoindex; { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then #line $LINENO "configure" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ int F77_DUMMY_MAIN() { return 1; } { ac_try='test -s conftest$ac_exeext' echo "$as_me: failed program was:" >&5 # The following sections deal with tools used for formatting # the documentation. They are all optional, unless you are # a developer editing the documentation source. # Directory trees where SGML files are commonly found. # Look for openjade. Plain jade is no longer supported. # Extract the first word of "$ac_prog", so it can be a program name with args. if test "${ac_cv_path_OPENJADE+set}" = set; then # Extract the first word of "$ac_prog", so it can be a program name with args. if test "${ac_cv_path_JADETEX+set}" = set; then # Extract the first word of "$ac_prog", so it can be a program name with args. if test "${ac_cv_path_PDFJADETEX+set}" = set; then # Subroutine for searching for an ordinary file (e.g., a stylesheet) # in a number of directories: # NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES) # If the file FILENAME is found in one of the DIRECTORIES, the shell # variable VARIABLE is defined to its absolute pathname. Otherwise, # it is set to FILENAME, with no directory prefix (that's not terribly # useful, but looks less confusing in substitutions than leaving it # empty). The variable VARIABLE will be substituted into output files. # Look for the SGML catalog. # Its location varies, so far we have seen: echo "${ECHO_T}\"not found\"" >&6; # formatting man pages in HTML. Its location varies, echo "${ECHO_T}\"not found\"" >&6; echo "${ECHO_T}\"not found\"" >&6; # Look for XML declarations. # Its location varies, so far we have seen: echo "${ECHO_T}\"not found\"" >&6; echo "${ECHO_T}\"not found\"" >&6; BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}" # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # `ac_cv_env_foo' variables (set or unset) will be overriden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). # `set' quotes correctly as required by POSIX, so do not add quotes. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ # Let make expand exec_prefix. # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. SHELL=\${CONFIG_SHELL-$SHELL} ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then # Support unset when possible. (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && # Name of the executable. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Find who we are. Look in the path if we contain no path at all # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). # Exit status is that of the last command. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). # Don't use ln at all; we don't have any links # Sed expression to map a string onto a valid CPP name. # Sed expression to map a string onto a valid variable name. # We need space, tab and new line, in precisely that order. # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX This file was extended by $as_me, which was generated by GNU Autoconf 2.53. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS \`$as_me' instantiates files from templates according to the Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions instantiate the configuration file FILE instantiate the configuration header FILE Report bugs to <bug-autoconf@gnu.org>." configured by $0, generated by GNU Autoconf 2.53, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. *) # This is not an option, so the user has probably given explicit # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; # Conflict between --help and --header Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; { (exit 1); exit 1; }; };; # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. # Create a temporary directory, and hook for its removal unless debugging. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 # Create a (secure) tmp directory for tmp files. echo "$me: cannot create a temporary directory in $TMPDIR" >&2 # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@subdirs@,$subdirs,;t t s,@build_cpu@,$build_cpu,;t t s,@build_vendor@,$build_vendor,;t t s,@build_os@,$build_os,;t t s,@host_cpu@,$host_cpu,;t t s,@host_vendor@,$host_vendor,;t t s,@host_os@,$host_os,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@STD_CINCLUDES@,$STD_CINCLUDES,;t t s,@STD_CDEFINES@,$STD_CDEFINES,;t t s,@STD_CWARNINGS@,$STD_CWARNINGS,;t t s,@ARFLAGS@,$ARFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@ISC_PLATFORM_HAVELONGLONG@,$ISC_PLATFORM_HAVELONGLONG,;t t s,@ISC_PLATFORM_HAVELIFCONF@,$ISC_PLATFORM_HAVELIFCONF,;t t s,@ISC_PLATFORM_NEEDSYSSELECTH@,$ISC_PLATFORM_NEEDSYSSELECTH,;t t s,@LWRES_PLATFORM_NEEDSYSSELECTH@,$LWRES_PLATFORM_NEEDSYSSELECTH,;t t s,@USE_OPENSSL@,$USE_OPENSSL,;t t s,@DST_OPENSSL_INC@,$DST_OPENSSL_INC,;t t s,@USE_GSSAPI@,$USE_GSSAPI,;t t s,@DST_GSSAPI_INC@,$DST_GSSAPI_INC,;t t s,@DNS_CRYPTO_LIBS@,$DNS_CRYPTO_LIBS,;t t s,@ALWAYS_DEFINES@,$ALWAYS_DEFINES,;t t s,@ISC_PLATFORM_USETHREADS@,$ISC_PLATFORM_USETHREADS,;t t s,@ISC_THREAD_DIR@,$ISC_THREAD_DIR,;t t s,@MKDEPCC@,$MKDEPCC,;t t s,@MKDEPCFLAGS@,$MKDEPCFLAGS,;t t s,@MKDEPPROG@,$MKDEPPROG,;t t s,@IRIX_DNSSEC_WARNINGS_HACK@,$IRIX_DNSSEC_WARNINGS_HACK,;t t s,@purify_path@,$purify_path,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@LIBTOOL@,$LIBTOOL,;t t s,@LIBTOOL_MKDEP_SED@,$LIBTOOL_MKDEP_SED,;t t s,@LIBBIND@,$LIBBIND,;t t s,@ISC_PLATFORM_HAVEIPV6@,$ISC_PLATFORM_HAVEIPV6,;t t s,@LWRES_PLATFORM_HAVEIPV6@,$LWRES_PLATFORM_HAVEIPV6,;t t s,@ISC_PLATFORM_NEEDNETINETIN6H@,$ISC_PLATFORM_NEEDNETINETIN6H,;t t s,@LWRES_PLATFORM_NEEDNETINETIN6H@,$LWRES_PLATFORM_NEEDNETINETIN6H,;t t s,@ISC_PLATFORM_NEEDNETINET6IN6H@,$ISC_PLATFORM_NEEDNETINET6IN6H,;t t s,@LWRES_PLATFORM_NEEDNETINET6IN6H@,$LWRES_PLATFORM_NEEDNETINET6IN6H,;t t s,@ISC_PLATFORM_HAVEINADDR6@,$ISC_PLATFORM_HAVEINADDR6,;t t s,@LWRES_PLATFORM_HAVEINADDR6@,$LWRES_PLATFORM_HAVEINADDR6,;t t s,@ISC_PLATFORM_NEEDIN6ADDRANY@,$ISC_PLATFORM_NEEDIN6ADDRANY,;t t s,@LWRES_PLATFORM_NEEDIN6ADDRANY@,$LWRES_PLATFORM_NEEDIN6ADDRANY,;t t s,@ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@,$ISC_PLATFORM_NEEDIN6ADDRLOOPBACK,;t t s,@LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK@,$LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK,;t t s,@ISC_PLATFORM_HAVEIN6PKTINFO@,$ISC_PLATFORM_HAVEIN6PKTINFO,;t t s,@ISC_PLATFORM_FIXIN6ISADDR@,$ISC_PLATFORM_FIXIN6ISADDR,;t t s,@ISC_IPV6_H@,$ISC_IPV6_H,;t t s,@ISC_IPV6_O@,$ISC_IPV6_O,;t t s,@ISC_ISCIPV6_O@,$ISC_ISCIPV6_O,;t t s,@ISC_IPV6_C@,$ISC_IPV6_C,;t t s,@LWRES_HAVE_SIN6_SCOPE_ID@,$LWRES_HAVE_SIN6_SCOPE_ID,;t t s,@ISC_PLATFORM_HAVESCOPEID@,$ISC_PLATFORM_HAVESCOPEID,;t t s,@ISC_PLATFORM_HAVEIF_LADDRREQ@,$ISC_PLATFORM_HAVEIF_LADDRREQ,;t t s,@ISC_PLATFORM_HAVEIF_LADDRCONF@,$ISC_PLATFORM_HAVEIF_LADDRCONF,;t t s,@ISC_PLATFORM_NEEDNTOP@,$ISC_PLATFORM_NEEDNTOP,;t t s,@ISC_PLATFORM_NEEDPTON@,$ISC_PLATFORM_NEEDPTON,;t t s,@ISC_PLATFORM_NEEDATON@,$ISC_PLATFORM_NEEDATON,;t t s,@ISC_PLATFORM_HAVESALEN@,$ISC_PLATFORM_HAVESALEN,;t t s,@LWRES_PLATFORM_HAVESALEN@,$LWRES_PLATFORM_HAVESALEN,;t t s,@ISC_PLATFORM_MSGHDRFLAVOR@,$ISC_PLATFORM_MSGHDRFLAVOR,;t t s,@ISC_PLATFORM_NEEDPORTT@,$ISC_PLATFORM_NEEDPORTT,;t t s,@ISC_LWRES_NEEDADDRINFO@,$ISC_LWRES_NEEDADDRINFO,;t t s,@ISC_LWRES_NEEDRRSETINFO@,$ISC_LWRES_NEEDRRSETINFO,;t t s,@ISC_LWRES_SETHOSTENTINT@,$ISC_LWRES_SETHOSTENTINT,;t t s,@ISC_LWRES_ENDHOSTENTINT@,$ISC_LWRES_ENDHOSTENTINT,;t t s,@ISC_LWRES_GETNETBYADDRINADDR@,$ISC_LWRES_GETNETBYADDRINADDR,;t t s,@ISC_LWRES_SETNETENTINT@,$ISC_LWRES_SETNETENTINT,;t t s,@ISC_LWRES_ENDNETENTINT@,$ISC_LWRES_ENDNETENTINT,;t t s,@ISC_LWRES_GETHOSTBYADDRVOID@,$ISC_LWRES_GETHOSTBYADDRVOID,;t t s,@ISC_LWRES_NEEDHERRNO@,$ISC_LWRES_NEEDHERRNO,;t t s,@ISC_LWRES_GETIPNODEPROTO@,$ISC_LWRES_GETIPNODEPROTO,;t t s,@ISC_LWRES_GETADDRINFOPROTO@,$ISC_LWRES_GETADDRINFOPROTO,;t t s,@ISC_LWRES_GETNAMEINFOPROTO@,$ISC_LWRES_GETNAMEINFOPROTO,;t t s,@ISC_PLATFORM_NEEDSTRSEP@,$ISC_PLATFORM_NEEDSTRSEP,;t t s,@ISC_PLATFORM_NEEDMEMMOVE@,$ISC_PLATFORM_NEEDMEMMOVE,;t t s,@ISC_PLATFORM_NEEDSTRTOUL@,$ISC_PLATFORM_NEEDSTRTOUL,;t t s,@ISC_PLATFORM_NEEDSTRLCPY@,$ISC_PLATFORM_NEEDSTRLCPY,;t t s,@ISC_PLATFORM_NEEDSTRLCAT@,$ISC_PLATFORM_NEEDSTRLCAT,;t t s,@ISC_PLATFORM_NEEDSPRINTF@,$ISC_PLATFORM_NEEDSPRINTF,;t t s,@ISC_PLATFORM_NEEDVSNPRINTF@,$ISC_PLATFORM_NEEDVSNPRINTF,;t t s,@ISC_EXTRA_OBJS@,$ISC_EXTRA_OBJS,;t t s,@ISC_EXTRA_SRCS@,$ISC_EXTRA_SRCS,;t t s,@ISC_PLATFORM_QUADFORMAT@,$ISC_PLATFORM_QUADFORMAT,;t t s,@ISC_PLATFORM_RLIMITTYPE@,$ISC_PLATFORM_RLIMITTYPE,;t t s,@ISC_PLATFORM_USEDECLSPEC@,$ISC_PLATFORM_USEDECLSPEC,;t t s,@LWRES_PLATFORM_USEDECLSPEC@,$LWRES_PLATFORM_USEDECLSPEC,;t t s,@ISC_PLATFORM_BRACEPTHREADONCEINIT@,$ISC_PLATFORM_BRACEPTHREADONCEINIT,;t t s,@ISC_PLATFORM_HAVEIFNAMETOINDEX@,$ISC_PLATFORM_HAVEIFNAMETOINDEX,;t t s,@OPENJADE@,$OPENJADE,;t t s,@JADETEX@,$JADETEX,;t t s,@PDFJADETEX@,$PDFJADETEX,;t t s,@SGMLCATALOG@,$SGMLCATALOG,;t t s,@HTMLSTYLE@,$HTMLSTYLE,;t t s,@PRINTSTYLE@,$PRINTSTYLE,;t t s,@DOCBOOK2MANSPEC@,$DOCBOOK2MANSPEC,;t t s,@BIND9_TOP_BUILDDIR@,$BIND9_TOP_BUILDDIR,;t t s,@BIND9_ISC_BUILDINCLUDE@,$BIND9_ISC_BUILDINCLUDE,;t t s,@BIND9_ISCCC_BUILDINCLUDE@,$BIND9_ISCCC_BUILDINCLUDE,;t t s,@BIND9_ISCCFG_BUILDINCLUDE@,$BIND9_ISCCFG_BUILDINCLUDE,;t t s,@BIND9_DNS_BUILDINCLUDE@,$BIND9_DNS_BUILDINCLUDE,;t t s,@BIND9_LWRES_BUILDINCLUDE@,$BIND9_LWRES_BUILDINCLUDE,;t t s,@BIND9_BIND9_BUILDINCLUDE@,$BIND9_BIND9_BUILDINCLUDE,;t t /@BIND9_MAKE_INCLUDES@/r $BIND9_MAKE_INCLUDES s,@BIND9_MAKE_INCLUDES@,,;t t /@BIND9_MAKE_RULES@/r $BIND9_MAKE_RULES s,@BIND9_MAKE_RULES@,,;t t s,@BIND9_VERSION@,$BIND9_VERSION,;t t /@LIBISC_API@/r $LIBISC_API /@LIBISCCC_API@/r $LIBISCCC_API /@LIBISCCFG_API@/r $LIBISCCFG_API /@LIBDNS_API@/r $LIBDNS_API /@LIBBIND9_API@/r $LIBBIND9_API /@LIBLWRES_API@/r $LIBLWRES_API # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_beg=1 # First line for current file. # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. fi # test -n "$CONFIG_FILES" # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - | *:- | *:-:* ) # input from stdin # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } ?:) as_incr_dir=$as_mkdir_dir ;; as_incr_dir=$as_incr_dir/$as_mkdir_dir test -d "$as_incr_dir" || { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ac_dir_suffix= ac_top_builddir= .) # No --srcdir option. We are building in place. if test -z "$ac_top_builddir"; then ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} echo "$as_me: error: cannot find input file: $f" >&2;} done` || { (exit 1); exit 1; } # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - | *:- | *:-:* ) # input from stdin # First look for the input files in the build tree, otherwise in the # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} echo "$as_me: error: cannot find input file: $f" >&2;} done` || { (exit 1); exit 1; } # Remove the trailing spaces. # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. # Work around the forget-to-reset-the-flag bug. # of here documents, and old seds have small limits too (100 cmds). # Speed up: don't consider the non `#undef' # Work around the forget-to-reset-the-flag bug. # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } ?:) as_incr_dir=$as_mkdir_dir ;; as_incr_dir=$as_incr_dir/$as_mkdir_dir test -d "$as_incr_dir" || { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} cat >>$CONFIG_STATUS <<\_ACEOF ac_clean_files=$ac_clean_files_save # Unfortunately, on DOS this fails, as config.log is still kept open # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. # CONFIG_SUBDIRS section. # Remove --cache-file and --srcdir arguments so they do not pile up. # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. ?:) as_incr_dir=$as_mkdir_dir ;; as_incr_dir=$as_incr_dir/$as_mkdir_dir test -d "$as_incr_dir" || { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ac_dir_suffix= ac_top_builddir= .) # No --srcdir option. We are building in place. if test -z "$ac_top_builddir"; then ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; # Check for guested configure; otherwise get Cygnus style configure. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} # Make the cache file name correct relative to the subdirectory. # The eval makes quoting arguments work. # Tell Emacs to edit this file in shell mode.