| verzia 1.11, 2002/07/16 22:27:25 |
verzia 1.12, 2002/10/01 18:32:14 |
|
|
| #! /bin/sh |
#! /bin/sh |
| |
|
| # Guess values for system-dependent variables and create Makefiles. |
# Guess values for system-dependent variables and create Makefiles. |
| # Generated automatically using autoconf version 2.13 (modified by rajo) |
# Generated automatically using autoconf version 2.13 |
| # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| # |
# |
| # This configure script is free software; the Free Software Foundation |
# This configure script is free software; the Free Software Foundation |
| # gives unlimited permission to copy, distribute and modify it. |
# gives unlimited permission to copy, distribute and modify it. |
| |
|
| # $Id$ |
# Defaults: |
| |
|
| # Defaults: {{{ |
|
| ac_help= |
ac_help= |
| ac_default_prefix=/usr/local |
ac_default_prefix=/usr/local |
| # Any additions from configure.in: |
# Any additions from configure.in: |
| ac_help="$ac_help |
|
| --enable-debug=N Turn on debuging." |
|
| ac_help="$ac_help |
|
| --enable-html Include html dir to library." |
|
| ac_help="$ac_help |
|
| --enable-str[=mmx] Include str dir to library." |
|
| ac_help="$ac_help |
|
| --enable-telnet Include telnet dir to library." |
|
| ac_help="$ac_help |
|
| --enable-utils Include utils dir to library." |
|
| |
|
| libplaton_DIRS="" |
|
| libplaton_SOURCES="" |
|
| libplaton_HEADERS="" |
|
| |
|
| libplaton_SOURCES_html="html/read.c html/tag.cpp" |
|
| libplaton_HEADERS_html="html/read.h html/tag.h" |
|
| libplaton_OBJECTS_html="html/read.o html/tag.o" |
|
| |
|
| libplaton_SOURCES_str="str/strctype.c str/strdyn.c str/strplus.c \ |
|
| str/charsets.c str/strconv.c str/dynfgets.c str/strmmx.c" |
|
| libplaton_HEADERS_str="str/strctype.h str/strdyn.h str/strplus.h \ |
|
| str/charsets.h str/strconv.h str/dynfgets.h str/strmmx.h" |
|
| libplaton_OBJECTS_str="str/strctype.o str/strdyn.o str/strplus.o \ |
|
| str/charsets.o str/strconv.o str/dynfgets.o str/strmmx.o" |
|
| |
|
| libplaton_SOURCES_telnet="telnet/atlantis.c telnet/colors.c \ |
|
| telnet/discolor.c telnet/tn_noobj.c \ |
|
| telnet/atlantis_cc.cpp telnet/telnet.cpp" |
|
| libplaton_HEADERS_telnet="telnet/atlantis.h telnet/colors.h \ |
|
| telnet/discolor.h telnet/tn_noobj.h telnet/telnet.h" |
|
| libplaton_OBJECTS_telnet="telnet/atlantis.o telnet/colors.o \ |
|
| telnet/discolor.o telnet/tn_noobj.o \ |
|
| telnet/atlantis_cc.o telnet/telnet.o" |
|
| |
|
| libplaton_SOURCES_utils="utils/fileplus.c utils/kbhit.c \ |
|
| utils/luhnchk.c utils/week.c utils/bogomips.c utils/x86cpuid.c \ |
|
| utils/rdtsc.c" |
|
| libplaton_HEADERS_utils="utils/fileplus.h utils/kbhit.h \ |
|
| utils/luhnchk.h utils/week.h utils/bogomips.h utils/x86cpuid.h \ |
|
| utils/rdtsc.h" |
|
| libplaton_OBJECTS_utils="utils/fileplus.o utils/kbhit.o \ |
|
| utils/luhnchk.o utils/week.o utils/bogomips.o utils/x86cpuid.o \ |
|
| utils/rdtsc.o" |
|
| |
|
| # }}} |
|
| |
|
| # Initialize some variables set by options. {{{ |
|
| # Initialize some variables set by options. |
# Initialize some variables set by options. |
| # The variables have the same names as the options, with |
# The variables have the same names as the options, with |
| # dashes changed to underlines. |
# dashes changed to underlines. |
| Riadok 77 program_suffix=NONE |
|
| Riadok 28 program_suffix=NONE |
|
| program_transform_name=s,x,x, |
program_transform_name=s,x,x, |
| silent= |
silent= |
| site= |
site= |
| srcdir=. |
srcdir= |
| target=NONE |
target=NONE |
| verbose= |
verbose= |
| x_includes=NONE |
x_includes=NONE |
| Riadok 101 MFLAGS= MAKEFLAGS= |
|
| Riadok 52 MFLAGS= MAKEFLAGS= |
|
| SHELL=${CONFIG_SHELL-/bin/sh} |
SHELL=${CONFIG_SHELL-/bin/sh} |
| # Maximum number of lines to put in a shell here document. |
# Maximum number of lines to put in a shell here document. |
| ac_max_here_lines=12 |
ac_max_here_lines=12 |
| # }}} |
|
| # Cmdline parsing {{{ |
|
| ac_prev= |
ac_prev= |
| for ac_option |
for ac_option |
| do |
do |
| Riadok 217 Directory and file names: |
|
| Riadok 167 Directory and file names: |
|
| --program-suffix=SUFFIX append SUFFIX to installed program names |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| --program-transform-name=PROGRAM |
--program-transform-name=PROGRAM |
| run sed PROGRAM on installed program names |
run sed PROGRAM on installed program names |
| |
EOF |
| |
cat << EOF |
| Host type: |
Host type: |
| --build=BUILD configure for building on BUILD [BUILD=HOST] |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
| --host=HOST configure for HOST [guessed] |
--host=HOST configure for HOST [guessed] |
|
|
| if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
| { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| fi |
fi |
| # }}} |
|
| |
|
| trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| |
|
| # File descriptor usage: {{{ |
# File descriptor usage: |
| # 0 standard input |
# 0 standard input |
| # 1 file creation |
# 1 file creation |
| # 2 errors and warnings |
# 2 errors and warnings |
| # 3 some systems may open it to /dev/tty |
# 3 some systems may open it to /dev/tty |
| # 4 used on the Kubota Titan |
# 4 used on the Kubota Titan |
| # 5 compiler messages saved in config.log |
|
| # 6 checking for... messages and results |
# 6 checking for... messages and results |
| |
# 5 compiler messages saved in config.log |
| if test "$silent" = yes; then |
if test "$silent" = yes; then |
| exec 6>/dev/null |
exec 6>/dev/null |
| else |
else |
|
|
| This file contains any messages produced by compilers while |
This file contains any messages produced by compilers while |
| running configure, to aid debugging if configure makes a mistake. |
running configure, to aid debugging if configure makes a mistake. |
| " 1>&5 |
" 1>&5 |
| # }}} |
|
| # Strip out --no-create and --no-recursion so they do not pile up. {{{ |
# Strip out --no-create and --no-recursion so they do not pile up. |
| # Also quote any args containing shell metacharacters. |
# Also quote any args containing shell metacharacters. |
| ac_configure_args= |
ac_configure_args= |
| for ac_arg |
for ac_arg |
|
|
| *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| esac |
esac |
| done |
done |
| # }}} |
|
| # NLS nuisances. {{{ |
# NLS nuisances. |
| # Only set these to C if already set. These must not be set unconditionally |
# Only set these to C if already set. These must not be set unconditionally |
| # because not all systems understand e.g. LANG=C (notably SCO). |
# because not all systems understand e.g. LANG=C (notably SCO). |
| # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| # Non-C LC_CTYPE values break the ctype check. |
# Non-C LC_CTYPE values break the ctype check. |
| if test "${LANG+set}" = set; then |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| LANG=C; export LANG; |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| fi |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| if test "${LC_ALL+set}" = set; then |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| LC_ALL=C; export LC_ALL; |
|
| fi |
|
| if test "${LC_MESSAGES+set}" = set; then |
|
| LC_MESSAGES=C; export LC_MESSAGES; fi |
|
| if test "${LC_CTYPE+set}" = set; then |
|
| LC_CTYPE=C; export LC_CTYPE; |
|
| fi |
|
| # }}} |
|
| |
|
| # confdefs.h avoids OS command line length limits that DEFS can exceed. |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| rm -rf conftest* confdefs.h |
rm -rf conftest* confdefs.h |
| # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| echo > confdefs.h |
echo > confdefs.h |
| |
|
| |
# A filename unique to this package, relative to the directory that |
| |
# configure is in, which we can look for to find out if srcdir is correct. |
| |
ac_unique_file=platon/macros.h |
| |
|
| |
# Find the source files, if location was not specified. |
| |
if test -z "$srcdir"; then |
| |
ac_srcdir_defaulted=yes |
| |
# Try the directory containing this script, then its parent. |
| |
ac_prog=$0 |
| |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| |
srcdir=$ac_confdir |
| |
if test ! -r $srcdir/$ac_unique_file; then |
| |
srcdir=.. |
| |
fi |
| |
else |
| |
ac_srcdir_defaulted=no |
| |
fi |
| |
if test ! -r $srcdir/$ac_unique_file; then |
| |
if test "$ac_srcdir_defaulted" = yes; then |
| |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| |
else |
| |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| |
fi |
| |
fi |
| srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| |
|
| # Prefer explicitly selected file to automatically selected ones. {{{ |
# Prefer explicitly selected file to automatically selected ones. |
| if test -z "$CONFIG_SITE"; then |
if test -z "$CONFIG_SITE"; then |
| if test "x$prefix" != xNONE; then |
if test "x$prefix" != xNONE; then |
| CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
|
|
| echo "creating cache $cache_file" |
echo "creating cache $cache_file" |
| > $cache_file |
> $cache_file |
| fi |
fi |
| # }}} |
|
| # Setting of ac_cpp, ac_compile, ac_link {{{ |
|
| ac_ext=c |
ac_ext=c |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
| Riadok 552 if (echo "testing\c"; echo 1,2,3) | grep |
|
| Riadok 519 if (echo "testing\c"; echo 1,2,3) | grep |
|
| else |
else |
| ac_n= ac_c='\c' ac_t= |
ac_n= ac_c='\c' ac_t= |
| fi |
fi |
| # }}} |
|
| # Check for install-sh install.sh {{{ |
|
| ac_aux_dir= |
|
| for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
|
| if test -f $ac_dir/install-sh; then |
|
| ac_aux_dir=$ac_dir |
|
| ac_install_sh="$ac_aux_dir/install-sh -c" |
|
| break |
|
| elif test -f $ac_dir/install.sh; then |
|
| ac_aux_dir=$ac_dir |
|
| ac_install_sh="$ac_aux_dir/install.sh -c" |
|
| break |
|
| fi |
|
| done |
|
| if test -z "$ac_aux_dir"; then |
|
| { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
|
| fi |
|
| ac_config_guess=$ac_aux_dir/config.guess |
|
| ac_config_sub=$ac_aux_dir/config.sub |
|
| ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
|
| |
|
| # Find a good install program. We prefer a C program (faster), |
|
| # so one script is as good as another. But avoid the broken or |
|
| # incompatible versions: |
|
| # SysV /etc/install, /usr/sbin/install |
|
| # SunOS /usr/etc/install |
|
| # IRIX /sbin/install |
|
| # AIX /bin/install |
|
| # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
| # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
| # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
| # ./install, which can be erroneously created by make from ./install.sh. |
|
| # checking for a BSD compatible install {{{ |
|
| echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
|
| echo "configure:558: checking for a BSD compatible install" >&5 |
|
| if test -z "$INSTALL"; then |
|
| if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
|
| echo $ac_n "(cached) $ac_c" 1>&6 |
|
| else |
|
| IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
|
| for ac_dir in $PATH; do |
|
| # Account for people who put trailing slashes in PATH elements. |
|
| case "$ac_dir/" in |
|
| /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
|
| *) |
|
| # OSF1 and SCO ODT 3.0 have their own names for install. |
|
| # Don't use installbsd from OSF since it installs stuff as root |
|
| # by default. |
|
| for ac_prog in ginstall scoinst install; do |
|
| if test -f $ac_dir/$ac_prog; then |
|
| if test $ac_prog = install && |
|
| grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
|
| # AIX install. It has an incompatible calling convention. |
|
| : |
|
| else |
|
| ac_cv_path_install="$ac_dir/$ac_prog -c" |
|
| break 2 |
|
| fi |
|
| fi |
|
| done |
|
| ;; |
|
| esac |
|
| done |
|
| IFS="$ac_save_IFS" |
|
| fi |
|
| if test "${ac_cv_path_install+set}" = set; then |
|
| INSTALL="$ac_cv_path_install" |
|
| else |
|
| # 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. |
|
| INSTALL="$ac_install_sh" |
|
| fi |
|
| fi |
|
| echo "$ac_t""$INSTALL" 1>&6 |
|
| |
|
| # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
| # It thinks the first close brace ends the variable substitution. |
|
| test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
| |
|
| test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
PACKAGE="libplaton" |
| |
VERSION="0.1" |
| |
DATE="`date '+%e %B %Y' || echo '2002-??-??'`" |
| |
MANVOLNUM=3 |
| |
|
| test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
| # }}} |
|
| # }}} |
|
| # checking whether build environment is sane {{{ |
|
| echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
|
| echo "configure:611: checking whether build environment is sane" >&5 |
|
| # Just in case |
|
| sleep 1 |
|
| echo timestamp > conftestfile |
|
| # Do `set' in a subshell so we don't clobber the current shell's |
|
| # arguments. Must try -L first in case configure is actually a |
|
| # symlink; some systems play weird games with the mod time of symlinks |
|
| # (eg FreeBSD returns the mod time of the symlink's containing |
|
| # directory). |
|
| if ( |
|
| set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
|
| if test "$*" = "X"; then |
|
| # -L didn't work. |
|
| set X `ls -t $srcdir/configure conftestfile` |
|
| fi |
|
| if test "$*" != "X $srcdir/configure conftestfile" \ |
|
| && test "$*" != "X conftestfile $srcdir/configure"; then |
|
| |
|
| # If neither matched, then we have a broken ls. This can happen |
|
| # if, for instance, CONFIG_SHELL is bash and it inherits a |
|
| # broken ls alias from the environment. This has actually |
|
| # happened. Such a system could not be considered "sane". |
|
| { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
|
| alias in your environment" 1>&2; exit 1; } |
|
| fi |
|
| |
|
| test "$2" = conftestfile |
# AC_CONFIG_HEADER {{{ |
| ) |
|
| then |
# }}} AC_CONFIG_HEADER |
| # Ok. |
|
| : |
# Checks for programs. {{{ |
| else |
for ac_prog in mawk gawk nawk awk |
| { echo "configure: error: newly created file is older than distributed files! |
do |
| Check your system clock" 1>&2; exit 1; } |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| fi |
set dummy $ac_prog; ac_word=$2 |
| rm -f conftest* |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "$ac_t""yes" 1>&6 |
echo "configure:542: checking for $ac_word" >&5 |
| if test "$program_transform_name" = s,x,x,; then |
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| program_transform_name= |
|
| else |
|
| # Double any \ or $. echo might interpret backslashes. |
|
| cat <<\EOF_SED > conftestsed |
|
| s,\\,\\\\,g; s,\$,$$,g |
|
| EOF_SED |
|
| program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
|
| rm -f conftestsed |
|
| fi |
|
| test "$program_prefix" != NONE && |
|
| program_transform_name="s,^,${program_prefix},; $program_transform_name" |
|
| # Use a double $ so make ignores it. |
|
| test "$program_suffix" != NONE && |
|
| program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
|
| |
|
| # sed with no file args requires a program. |
|
| test "$program_transform_name" = "" && program_transform_name="s,x,x," |
|
| # }}} |
|
| # checking whether ${MAKE-make} sets \${MAKE} {{{ |
|
| echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
|
| echo "configure:668: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
|
| set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
|
| if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
|
| echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
else |
| cat > conftestmake <<\EOF |
if test -n "$AWK"; then |
| all: |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| @echo 'ac_maketemp="${MAKE}"' |
|
| EOF |
|
| # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
| eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
|
| if test -n "$ac_maketemp"; then |
|
| eval ac_cv_prog_make_${ac_make}_set=yes |
|
| else |
|
| eval ac_cv_prog_make_${ac_make}_set=no |
|
| fi |
|
| rm -f conftestmake |
|
| fi |
|
| if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
|
| echo "$ac_t""yes" 1>&6 |
|
| SET_MAKE= |
|
| else |
else |
| echo "$ac_t""no" 1>&6 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| SET_MAKE="MAKE=${MAKE-make}" |
ac_dummy="$PATH" |
| fi |
for ac_dir in $ac_dummy; do |
| # }}} |
test -z "$ac_dir" && ac_dir=. |
| # configure: error: source directory already configured; run ... {{{ |
if test -f $ac_dir/$ac_word; then |
| if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
ac_cv_prog_AWK="$ac_prog" |
| { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
break |
| |
fi |
| |
done |
| |
IFS="$ac_save_ifs" |
| fi |
fi |
| # }}} |
|
| # checking whether ln -s works {{{ |
|
| echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
|
| echo "configure:1006: checking whether ln -s works" >&5 |
|
| if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
|
| echo $ac_n "(cached) $ac_c" 1>&6 |
|
| else |
|
| rm -f conftestdata |
|
| if ln -s X conftestdata 2>/dev/null |
|
| then |
|
| rm -f conftestdata |
|
| ac_cv_prog_LN_S="ln -s" |
|
| else |
|
| ac_cv_prog_LN_S=ln |
|
| fi |
|
| fi |
fi |
| LN_S="$ac_cv_prog_LN_S" |
AWK="$ac_cv_prog_AWK" |
| if test "$ac_cv_prog_LN_S" = "ln -s"; then |
if test -n "$AWK"; then |
| echo "$ac_t""yes" 1>&6 |
echo "$ac_t""$AWK" 1>&6 |
| else |
else |
| echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
| fi |
fi |
| # }}} checking whether ln -s works |
|
| # Find a good install program. We prefer a C program (faster), {{{ |
|
| # so one script is as good as another. But avoid the broken or |
|
| # incompatible versions: |
|
| # SysV /etc/install, /usr/sbin/install |
|
| # SunOS /usr/etc/install |
|
| # IRIX /sbin/install |
|
| # AIX /bin/install |
|
| # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
| # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
| # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
| # ./install, which can be erroneously created by make from ./install.sh. |
|
| echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
|
| echo "configure:1038: checking for a BSD compatible install" >&5 |
|
| if test -z "$INSTALL"; then |
|
| if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
|
| echo $ac_n "(cached) $ac_c" 1>&6 |
|
| else |
|
| IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
|
| for ac_dir in $PATH; do |
|
| # Account for people who put trailing slashes in PATH elements. |
|
| case "$ac_dir/" in |
|
| /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
|
| *) |
|
| # OSF1 and SCO ODT 3.0 have their own names for install. |
|
| # Don't use installbsd from OSF since it installs stuff as root |
|
| # by default. |
|
| for ac_prog in ginstall scoinst install; do |
|
| if test -f $ac_dir/$ac_prog; then |
|
| if test $ac_prog = install && |
|
| grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
|
| # AIX install. It has an incompatible calling convention. |
|
| : |
|
| else |
|
| ac_cv_path_install="$ac_dir/$ac_prog -c" |
|
| break 2 |
|
| fi |
|
| fi |
|
| done |
|
| ;; |
|
| esac |
|
| done |
|
| IFS="$ac_save_IFS" |
|
| fi |
|
| |
|
| if test "${ac_cv_path_install+set}" = set; then |
|
| INSTALL="$ac_cv_path_install" |
|
| else |
|
| # 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. |
|
| INSTALL="$ac_install_sh" |
|
| fi |
|
| fi |
|
| echo "$ac_t""$INSTALL" 1>&6 |
|
| |
|
| # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
| # It thinks the first close brace ends the variable substitution. |
|
| test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
| |
|
| test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
|
| |
|
| test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
test -n "$AWK" && break |
| # }}} Find a good install program. We prefer a C program (faster) |
|
| # checking for gawk, mawk, nawk, awk {{{ |
|
| for ac_prog in gawk mawk nawk awk ; do |
|
| # Extract the first word of "$ac_prog", |
|
| # so it can be a program name with args. |
|
| set dummy $ac_prog; ac_word=$2 |
|
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
| echo "configure:1095: checking for $ac_word" >&5 |
|
| if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
|
| echo $ac_n "(cached) $ac_c" 1>&6 |
|
| else |
|
| if test -n "$AWK"; then |
|
| ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
| else |
|
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
| ac_dummy="$PATH" |
|
| for ac_dir in $ac_dummy; do |
|
| test -z "$ac_dir" && ac_dir=. |
|
| if test -f $ac_dir/$ac_word; then |
|
| ac_cv_prog_AWK="$ac_prog" |
|
| break |
|
| fi |
|
| done |
|
| IFS="$ac_save_ifs" |
|
| fi |
|
| fi |
|
| AWK="$ac_cv_prog_AWK" |
|
| if test -n "$AWK"; then |
|
| echo "$ac_t""$AWK" 1>&6 |
|
| else |
|
| echo "$ac_t""no" 1>&6 |
|
| fi |
|
| |
|
| test -n "$AWK" && break |
|
| done |
done |
| # }}} checking for gawk, mawk, nawk, awk |
|
| # checking for strip {{{ |
|
| # Extract the first word of "strip", so it can be a program name with args. |
|
| set dummy strip; ac_word=$2 |
|
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
| echo "configure:1127: checking for $ac_word" >&5 |
|
| if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
|
| echo $ac_n "(cached) $ac_c" 1>&6 |
|
| else |
|
| if test -n "$STRIP"; then |
|
| ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
| else |
|
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
| ac_dummy="$PATH" |
|
| for ac_dir in $ac_dummy; do |
|
| test -z "$ac_dir" && ac_dir=. |
|
| if test -f $ac_dir/$ac_word; then |
|
| ac_cv_prog_STRIP="strip" |
|
| break |
|
| fi |
|
| done |
|
| IFS="$ac_save_ifs" |
|
| test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
|
| fi |
|
| fi |
|
| STRIP="$ac_cv_prog_STRIP" |
|
| if test -n "$STRIP"; then |
|
| echo "$ac_t""$STRIP" 1>&6 |
|
| else |
|
| echo "$ac_t""no" 1>&6 |
|
| fi |
|
| # }}} checking for strip |
|
| # checking for gcc 1{{{ |
|
| # Extract the first word of "gcc", so it can be a program name with args. |
# Extract the first word of "gcc", so it can be a program name with args. |
| set dummy gcc; ac_word=$2 |
set dummy gcc; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:786: checking for $ac_word" >&5 |
echo "configure:574: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
else |
| if test -n "$CC"; then |
if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| ac_dummy="$PATH" |
ac_dummy="$PATH" |
| for ac_dir in $ac_dummy; do |
for ac_dir in $ac_dummy; do |
| test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
| if test -f $ac_dir/$ac_word; then |
if test -f $ac_dir/$ac_word; then |
| ac_cv_prog_CC="gcc" |
ac_cv_prog_CC="gcc" |
| break |
break |
| fi |
fi |
| done |
done |
| IFS="$ac_save_ifs" |
IFS="$ac_save_ifs" |
| fi |
fi |
| fi |
fi |
| CC="$ac_cv_prog_CC" |
CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
if test -n "$CC"; then |
| Riadok 910 if test -n "$CC"; then |
|
| Riadok 595 if test -n "$CC"; then |
|
| else |
else |
| echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
| fi |
fi |
| # }}} checking for gcc 1 |
|
| # checking for gcc 2{{{ |
if test -z "$CC"; then |
| # checking for cc {{{ |
# Extract the first word of "cc", so it can be a program name with args. |
| # Extract the first word of "cc", so it can be a program name with args. |
|
| set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo "configure:816: checking for $ac_word" >&5 |
echo "configure:604: checking for $ac_word" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
else |
| if test -n "$CC"; then |
if test -n "$CC"; then |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| else |
else |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
| if test -f $ac_dir/$ac_word; then |
if test -f $ac_dir/$ac_word; then |
| if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| ac_prog_rejected=yes |
ac_prog_rejected=yes |
| continue |
continue |
| fi |
fi |
| ac_cv_prog_CC="cc" |
ac_cv_prog_CC="cc" |
| break |
break |
| fi |
fi |
| done |
done |
| IFS="$ac_save_ifs" |
IFS="$ac_save_ifs" |
| if test $ac_prog_rejected = yes; then |
if test $ac_prog_rejected = yes; then |
| # We found a bogon in the path, so make sure we never use it. |
# We found a bogon in the path, so make sure we never use it. |
| set dummy $ac_cv_prog_CC |
set dummy $ac_cv_prog_CC |
| |
shift |
| |
if test $# -gt 0; then |
| |
# 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. |
| shift |
shift |
| if test $# -gt 0; then |
set dummy "$ac_dir/$ac_word" "$@" |
| # We chose a different compiler from the bogus one. |
shift |
| # However, it has the same basename, so the bogon will be chosen |
ac_cv_prog_CC="$@" |
| # first if we set CC to just the basename; use the full file name. |
|
| shift |
|
| set dummy "$ac_dir/$ac_word" "$@" |
|
| shift |
|
| ac_cv_prog_CC="$@" |
|
| fi |
|
| fi |
fi |
| fi |
fi |
| # }}} checking for cc |
fi |
| fi |
fi |
| CC="$ac_cv_prog_CC" |
CC="$ac_cv_prog_CC" |
| if test -n "$CC"; then |
if test -n "$CC"; then |
| echo "$ac_t""$CC" 1>&6 |
echo "$ac_t""$CC" 1>&6 |
| else |
else |
| echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
| fi |
fi |
| |
|
| if test -z "$CC"; then |
if test -z "$CC"; then |
| # checking for cl {{{ |
case "`uname -s`" in |
| case "`uname -s`" in |
*win32* | *WIN32*) |
| *win32* | *WIN32*) |
# Extract the first word of "cl", so it can be a program name with args. |
| # Extract the first word of "cl", so it can be a program name with args. |
set dummy cl; ac_word=$2 |
| set dummy cl; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:655: checking for $ac_word" >&5 |
| echo "configure:867: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
| echo $ac_n "(cached) $ac_c" 1>&6 |
else |
| else |
if test -n "$CC"; then |
| if test -n "$CC"; then |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| ac_cv_prog_CC="$CC" # Let the user override the test. |
else |
| else |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
ac_dummy="$PATH" |
| ac_dummy="$PATH" |
for ac_dir in $ac_dummy; do |
| for ac_dir in $ac_dummy; do |
test -z "$ac_dir" && ac_dir=. |
| test -z "$ac_dir" && ac_dir=. |
if test -f $ac_dir/$ac_word; then |
| if test -f $ac_dir/$ac_word; then |
ac_cv_prog_CC="cl" |
| ac_cv_prog_CC="cl" |
break |
| break |
|
| fi |
|
| done |
|
| IFS="$ac_save_ifs" |
|
| fi |
|
| fi |
|
| CC="$ac_cv_prog_CC" |
|
| if test -n "$CC"; then |
|
| echo "$ac_t""$CC" 1>&6 |
|
| else |
|
| echo "$ac_t""no" 1>&6 |
|
| fi |
|
| ;; |
|
| esac |
|
| # }}} checking for cl |
|
| fi |
fi |
| test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
done |
| |
IFS="$ac_save_ifs" |
| |
fi |
| |
fi |
| |
CC="$ac_cv_prog_CC" |
| |
if test -n "$CC"; then |
| |
echo "$ac_t""$CC" 1>&6 |
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
fi |
| |
;; |
| |
esac |
| |
fi |
| |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| |
fi |
| |
|
| |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| |
echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| |
|
| # checking whether the C compiler (gcc) works {{{ |
ac_ext=c |
| echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| ac_ext=c |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
cross_compiling=$ac_cv_prog_cc_cross |
| ac_cpp='$CPP $CPPFLAGS' |
|
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
| cross_compiling=$ac_cv_prog_cc_cross |
|
| |
|
| cat > conftest.$ac_ext << EOF |
cat > conftest.$ac_ext << EOF |
| |
|
| #line 910 "configure" |
#line 698 "configure" |
| #include "confdefs.h" |
#include "confdefs.h" |
| |
|
| main(){return(0);} |
main(){return(0);} |
| EOF |
EOF |
| if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| ac_cv_prog_cc_works=yes |
ac_cv_prog_cc_works=yes |
| # If we can't run a trivial program, we are probably using a cross compiler. |
# If we can't run a trivial program, we are probably using a cross compiler. |
| if (./conftest; exit) 2>/dev/null; then |
if (./conftest; exit) 2>/dev/null; then |
| ac_cv_prog_cc_cross=no |
ac_cv_prog_cc_cross=no |
| else |
|
| ac_cv_prog_cc_cross=yes |
|
| fi |
|
| else |
else |
| echo "configure: failed program was:" >&5 |
ac_cv_prog_cc_cross=yes |
| cat conftest.$ac_ext >&5 |
|
| ac_cv_prog_cc_works=no |
|
| fi |
fi |
| rm -fr conftest* |
else |
| ac_ext=c |
echo "configure: failed program was:" >&5 |
| # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
cat conftest.$ac_ext >&5 |
| ac_cpp='$CPP $CPPFLAGS' |
ac_cv_prog_cc_works=no |
| ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
fi |
| ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
rm -fr conftest* |
| cross_compiling=$ac_cv_prog_cc_cross |
ac_ext=c |
| |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
ac_cpp='$CPP $CPPFLAGS' |
| if test $ac_cv_prog_cc_works = no; then |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| fi |
cross_compiling=$ac_cv_prog_cc_cross |
| # }}} checking whether the C compiler (gcc) works |
|
| # checking whether the C compiler (gcc) is a cross-compiler {{{ |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
if test $ac_cv_prog_cc_works = no; then |
| echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| |
fi |
| echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| cross_compiling=$ac_cv_prog_cc_cross |
echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| #}}} |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| # checking whether we are using GNU C {{{ |
cross_compiling=$ac_cv_prog_cc_cross |
| echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
|
| echo "configure:946: checking whether we are using GNU C" >&5 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
echo "configure:734: checking whether we are using GNU C" >&5 |
| echo $ac_n "(cached) $ac_c" 1>&6 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| else |
echo $ac_n "(cached) $ac_c" 1>&6 |
| cat > conftest.c <<EOF |
else |
| |
cat > conftest.c <<EOF |
| #ifdef __GNUC__ |
#ifdef __GNUC__ |
| yes; |
yes; |
| #endif |
#endif |
| EOF |
EOF |
| if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| ac_cv_prog_gcc=yes |
ac_cv_prog_gcc=yes |
| else |
else |
| ac_cv_prog_gcc=no |
ac_cv_prog_gcc=no |
| fi |
fi |
| # }}} checking whether we are using GNU C |
|
| fi |
fi |
| |
|
| echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|
|
| ac_test_CFLAGS="${CFLAGS+set}" |
ac_test_CFLAGS="${CFLAGS+set}" |
| ac_save_CFLAGS="$CFLAGS" |
ac_save_CFLAGS="$CFLAGS" |
| CFLAGS= |
CFLAGS= |
| # checking whether ${CC-cc} accepts -g {{{ |
|
| echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| echo "configure:974: checking whether ${CC-cc} accepts -g" >&5 |
echo "configure:762: checking whether ${CC-cc} accepts -g" >&5 |
| if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
else |
|
|
| ac_cv_prog_cc_g=no |
ac_cv_prog_cc_g=no |
| fi |
fi |
| rm -f conftest* |
rm -f conftest* |
| # }}} checking whether ${CC-cc} accepts -g |
|
| |
|
| fi |
fi |
| |
|
|
|
| CFLAGS= |
CFLAGS= |
| fi |
fi |
| fi |
fi |
| # }}} checking for gcc 2 |
|
| # checking how to run the C preprocessor {{{ |
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| |
do |
| |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| |
set dummy $ac_prog; ac_word=$2 |
| |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| |
echo "configure:798: checking for $ac_word" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
if test -n "$CXX"; then |
| |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| |
else |
| |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f $ac_dir/$ac_word; then |
| |
ac_cv_prog_CXX="$ac_prog" |
| |
break |
| |
fi |
| |
done |
| |
IFS="$ac_save_ifs" |
| |
fi |
| |
fi |
| |
CXX="$ac_cv_prog_CXX" |
| |
if test -n "$CXX"; then |
| |
echo "$ac_t""$CXX" 1>&6 |
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
fi |
| |
|
| |
test -n "$CXX" && break |
| |
done |
| |
test -n "$CXX" || CXX="gcc" |
| |
|
| |
|
| |
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| |
echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
| |
|
| |
ac_ext=C |
| |
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| |
ac_cpp='$CXXCPP $CPPFLAGS' |
| |
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| |
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| |
cross_compiling=$ac_cv_prog_cxx_cross |
| |
|
| |
cat > conftest.$ac_ext << EOF |
| |
|
| |
#line 841 "configure" |
| |
#include "confdefs.h" |
| |
|
| |
int main(){return(0);} |
| |
EOF |
| |
if { (eval echo configure:846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| |
ac_cv_prog_cxx_works=yes |
| |
# If we can't run a trivial program, we are probably using a cross compiler. |
| |
if (./conftest; exit) 2>/dev/null; then |
| |
ac_cv_prog_cxx_cross=no |
| |
else |
| |
ac_cv_prog_cxx_cross=yes |
| |
fi |
| |
else |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
ac_cv_prog_cxx_works=no |
| |
fi |
| |
rm -fr conftest* |
| |
ac_ext=c |
| |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| |
ac_cpp='$CPP $CPPFLAGS' |
| |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| |
cross_compiling=$ac_cv_prog_cc_cross |
| |
|
| |
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| |
if test $ac_cv_prog_cxx_works = no; then |
| |
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| |
fi |
| |
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| |
echo "configure:872: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| |
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| |
cross_compiling=$ac_cv_prog_cxx_cross |
| |
|
| |
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
| |
echo "configure:877: checking whether we are using GNU C++" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
cat > conftest.C <<EOF |
| |
#ifdef __GNUC__ |
| |
yes; |
| |
#endif |
| |
EOF |
| |
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| |
ac_cv_prog_gxx=yes |
| |
else |
| |
ac_cv_prog_gxx=no |
| |
fi |
| |
fi |
| |
|
| |
echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
| |
|
| |
if test $ac_cv_prog_gxx = yes; then |
| |
GXX=yes |
| |
else |
| |
GXX= |
| |
fi |
| |
|
| |
ac_test_CXXFLAGS="${CXXFLAGS+set}" |
| |
ac_save_CXXFLAGS="$CXXFLAGS" |
| |
CXXFLAGS= |
| |
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
| |
echo "configure:905: checking whether ${CXX-g++} accepts -g" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
echo 'void f(){}' > conftest.cc |
| |
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
| |
ac_cv_prog_cxx_g=yes |
| |
else |
| |
ac_cv_prog_cxx_g=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
|
| |
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
| |
if test "$ac_test_CXXFLAGS" = set; then |
| |
CXXFLAGS="$ac_save_CXXFLAGS" |
| |
elif test $ac_cv_prog_cxx_g = yes; then |
| |
if test "$GXX" = yes; then |
| |
CXXFLAGS="-g -O2" |
| |
else |
| |
CXXFLAGS="-g" |
| |
fi |
| |
else |
| |
if test "$GXX" = yes; then |
| |
CXXFLAGS="-O2" |
| |
else |
| |
CXXFLAGS= |
| |
fi |
| |
fi |
| |
|
| echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| echo "configure:1157: checking how to run the C preprocessor" >&5 |
echo "configure:937: checking how to run the C preprocessor" >&5 |
| # On Suns, sometimes $CPP names a directory. |
# On Suns, sometimes $CPP names a directory. |
| if test -n "$CPP" && test -d "$CPP"; then |
if test -n "$CPP" && test -d "$CPP"; then |
| CPP= |
CPP= |
| fi |
fi |
| if test -z "$CPP"; then |
if test -z "$CPP"; then |
| if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
else |
| # This must be in double quotes, not single quotes, because CPP may get |
# This must be in double quotes, not single quotes, because CPP may get |
| # substituted into the Makefile and "${CC-cc}" will confuse make. |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
| CPP="${CC-cc} -E" |
CPP="${CC-cc} -E" |
| # On the NeXT, cc -E runs the code through the compiler's parser, |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| # not just through cpp. |
# not just through cpp. |
| cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| #line 1172 "configure" |
#line 952 "configure" |
| #include "confdefs.h" |
#include "confdefs.h" |
| #include <assert.h> |
#include <assert.h> |
| Syntax Error |
Syntax Error |
| EOF |
EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
| : |
: |
| else |
else |
| echo "$ac_err" >&5 |
echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
rm -rf conftest* |
| CPP="${CC-cc} -E -traditional-cpp" |
CPP="${CC-cc} -E -traditional-cpp" |
| cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| #line 1189 "configure" |
#line 969 "configure" |
| #include "confdefs.h" |
#include "confdefs.h" |
| #include <assert.h> |
#include <assert.h> |
| Syntax Error |
Syntax Error |
| EOF |
EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
| : |
: |
| else |
else |
| echo "$ac_err" >&5 |
echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
rm -rf conftest* |
| CPP="${CC-cc} -nologo -E" |
CPP="${CC-cc} -nologo -E" |
| cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| #line 1206 "configure" |
#line 986 "configure" |
| #include "confdefs.h" |
#include "confdefs.h" |
| #include <assert.h> |
#include <assert.h> |
| Syntax Error |
Syntax Error |
| EOF |
EOF |
| ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
| : |
: |
| else |
else |
| echo "$ac_err" >&5 |
echo "$ac_err" >&5 |
| echo "configure: failed program was:" >&5 |
echo "configure: failed program was:" >&5 |
| cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
| rm -rf conftest* |
rm -rf conftest* |
| CPP=/lib/cpp |
CPP=/lib/cpp |
| fi |
fi |
| rm -f conftest* |
rm -f conftest* |
| fi |
fi |
| rm -f conftest* |
rm -f conftest* |
| fi |
fi |
| rm -f conftest* |
rm -f conftest* |
| ac_cv_prog_CPP="$CPP" |
ac_cv_prog_CPP="$CPP" |
| fi |
fi |
| CPP="$ac_cv_prog_CPP" |
CPP="$ac_cv_prog_CPP" |
| else |
else |
| ac_cv_prog_CPP="$CPP" |
ac_cv_prog_CPP="$CPP" |
| fi |
fi |
| echo "$ac_t""$CPP" 1>&6 |
echo "$ac_t""$CPP" 1>&6 |
| # }}} checking how to run the C preprocessor |
|
| |
|
| # checking --enable-debug argument {{{ |
|
| echo $ac_n "checking --enable-debug argument""... $ac_c" 1>&6 |
# AC_GCC_TRADITIONAL {{{ |
| echo "configure:1544: checking --enable-debug argument" >&5 |
if test $ac_cv_prog_gcc = yes; then |
| # Check whether --enable-debug or --disable-debug was given. |
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
| if test "${enable_debug+set}" = set; then |
echo "configure:1020: checking whether ${CC-cc} needs -traditional" >&5 |
| enableval="$enable_debug" |
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
| debug="${enableval}"; DEBUG="-Wshadow -g -ggdb -DDEBUG=$debug"; |
echo $ac_n "(cached) $ac_c" 1>&6 |
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| else |
|
| debug="no"; echo "$ac_t""no" 1>&6 |
|
| fi |
|
| |
|
| if test "$debug" = "yes"; then |
|
| DEBUG="-Wshadow -g -ggdb -DDEBUG=1" |
|
| fi |
|
| # }}} checking --enable-debug argument |
|
| # checking --enable-html argument {{{ |
|
| echo $ac_n "checking --enable-html argument""... $ac_c" 1>&6 |
|
| echo "configure:1544: checking --enable-html argument" >&5 |
|
| # Check whether --enable-html or --disable-html was given. |
|
| if test "${enable_html+set}" = set; then |
|
| enableval="$enable_html" |
|
| if test "${enableval}" = yes; then |
|
| libplaton_DIRS="html" |
|
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_html" |
|
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_html" |
|
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_html" |
|
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| else |
|
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| fi |
|
| else |
else |
| libplaton_DIRS="$libplaton_DIRS html" |
ac_pattern="Autoconf.*'x'" |
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_html" |
cat > conftest.$ac_ext <<EOF |
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_html" |
#line 1026 "configure" |
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_html" |
#include "confdefs.h" |
| echo "$ac_t""yes (default)" 1>&6 |
#include <sgtty.h> |
| fi |
Autoconf TIOCGETP |
| |
EOF |
| # }}} checking --enable-html argument |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| # checking --enable-str argument {{{ |
egrep "$ac_pattern" >/dev/null 2>&1; then |
| echo $ac_n "checking --enable-str argument""... $ac_c" 1>&6 |
rm -rf conftest* |
| echo "configure:1544: checking --enable-str argument" >&5 |
ac_cv_prog_gcc_traditional=yes |
| # Check whether --enable-str or --disable-str was given. |
|
| if test "${enable_str+set}" = set; then |
|
| enableval="$enable_str" |
|
| if test "${enableval}" = mmx; then |
|
| libplaton_DIRS="$libplaton_DIRS str" |
|
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_str $SRCDIR str/strmmx.c" |
|
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_str $HDRDIR str/strmmx.h" |
|
| |
|
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_str $OBJDIR str/strmmx.o" |
|
| touch mmx |
|
| fi |
|
| if test "${enableval}" = yes; then |
|
| libplaton_DIRS="$libplaton_DIRS str" |
|
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_str $SRCDIR" |
|
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_str $HDRDIR" |
|
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_str $OBJDIR" |
|
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| else |
|
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| fi |
|
| else |
else |
| libplaton_DIRS="$libplaton_DIRS str" |
rm -rf conftest* |
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_str" |
ac_cv_prog_gcc_traditional=no |
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_str" |
fi |
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_str" |
rm -f conftest* |
| echo "$ac_t""yes (default)" 1>&6 |
|
| fi |
|
| |
if test $ac_cv_prog_gcc_traditional = no; then |
| # }}} checking --enable-str argument |
cat > conftest.$ac_ext <<EOF |
| # checking --enable-telnet argument {{{ |
#line 1044 "configure" |
| echo $ac_n "checking --enable-telnet argument""... $ac_c" 1>&6 |
#include "confdefs.h" |
| echo "configure:1544: checking --enable-telnet argument" >&5 |
#include <termio.h> |
| # Check whether --enable-telnet or --disable-telnet was given. |
Autoconf TCGETA |
| if test "${enable_telnet+set}" = set; then |
EOF |
| enableval="$enable_telnet" |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| if test "${enableval}" = yes; then |
egrep "$ac_pattern" >/dev/null 2>&1; then |
| libplaton_DIRS="$libplaton_DIRS telnet" |
rm -rf conftest* |
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_telnet" |
ac_cv_prog_gcc_traditional=yes |
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_telnet" |
fi |
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_telnet" |
rm -f conftest* |
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| else |
fi |
| echo "$ac_t""${enableval}" 1>&6 ; |
fi |
| fi |
|
| |
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
| |
if test $ac_cv_prog_gcc_traditional = yes; then |
| |
CC="$CC -traditional" |
| |
fi |
| |
fi |
| |
|
| |
# }}} AC_GCC_TRADITIONAL |
| |
if test "X$CC" = "Xgcc"; then |
| |
CFLAGS="-Wall $CFLAGS" |
| |
fi |
| |
|
| |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| |
echo "configure:1071: checking whether ln -s works" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
rm -f conftestdata |
| |
if ln -s X conftestdata 2>/dev/null |
| |
then |
| |
rm -f conftestdata |
| |
ac_cv_prog_LN_S="ln -s" |
| |
else |
| |
ac_cv_prog_LN_S=ln |
| |
fi |
| |
fi |
| |
LN_S="$ac_cv_prog_LN_S" |
| |
if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| |
echo "$ac_t""yes" 1>&6 |
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
fi |
| |
|
| |
LN_S="$LN_S -f" # adds '-f' parameter to 'ln' |
| |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| |
echo "configure:1093: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
cat > conftestmake <<\EOF |
| |
all: |
| |
@echo 'ac_maketemp="${MAKE}"' |
| |
EOF |
| |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| |
if test -n "$ac_maketemp"; then |
| |
eval ac_cv_prog_make_${ac_make}_set=yes |
| |
else |
| |
eval ac_cv_prog_make_${ac_make}_set=no |
| |
fi |
| |
rm -f conftestmake |
| |
fi |
| |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| |
echo "$ac_t""yes" 1>&6 |
| |
SET_MAKE= |
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
SET_MAKE="MAKE=${MAKE-make}" |
| |
fi |
| |
|
| |
ac_aux_dir= |
| |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| |
if test -f $ac_dir/install-sh; then |
| |
ac_aux_dir=$ac_dir |
| |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| |
break |
| |
elif test -f $ac_dir/install.sh; then |
| |
ac_aux_dir=$ac_dir |
| |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| |
break |
| |
fi |
| |
done |
| |
if test -z "$ac_aux_dir"; then |
| |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| |
fi |
| |
ac_config_guess=$ac_aux_dir/config.guess |
| |
ac_config_sub=$ac_aux_dir/config.sub |
| |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| |
|
| |
# Find a good install program. We prefer a C program (faster), |
| |
# so one script is as good as another. But avoid the broken or |
| |
# incompatible versions: |
| |
# SysV /etc/install, /usr/sbin/install |
| |
# SunOS /usr/etc/install |
| |
# IRIX /sbin/install |
| |
# AIX /bin/install |
| |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| |
# ./install, which can be erroneously created by make from ./install.sh. |
| |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| |
echo "configure:1150: checking for a BSD compatible install" >&5 |
| |
if test -z "$INSTALL"; then |
| |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| else |
else |
| libplaton_DIRS="$libplaton_DIRS telnet" |
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_telnet" |
for ac_dir in $PATH; do |
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_telnet" |
# Account for people who put trailing slashes in PATH elements. |
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_telnet" |
case "$ac_dir/" in |
| echo "$ac_t""yes (default)" 1>&6 |
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| fi |
*) |
| |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| # }}} checking --enable-telnet argument |
# Don't use installbsd from OSF since it installs stuff as root |
| # checking --enable-utils argument {{{ |
# by default. |
| echo $ac_n "checking --enable-utils argument""... $ac_c" 1>&6 |
for ac_prog in ginstall scoinst install; do |
| echo "configure:1544: checking --enable-utils argument" >&5 |
if test -f $ac_dir/$ac_prog; then |
| # Check whether --enable-utils or --disable-utils was given. |
if test $ac_prog = install && |
| if test "${enable_utils+set}" = set; then |
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| enableval="$enable_utils" |
# AIX install. It has an incompatible calling convention. |
| if test "${enableval}" = yes; then |
: |
| libplaton_DIRS="$libplaton_DIRS utils" |
else |
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_utils" |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_utils" |
break 2 |
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_utils" |
fi |
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| else |
|
| echo "$ac_t""${enableval}" 1>&6 ; |
|
| fi |
fi |
| |
done |
| |
;; |
| |
esac |
| |
done |
| |
IFS="$ac_save_IFS" |
| |
|
| |
fi |
| |
if test "${ac_cv_path_install+set}" = set; then |
| |
INSTALL="$ac_cv_path_install" |
| |
else |
| |
# 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. |
| |
INSTALL="$ac_install_sh" |
| |
fi |
| |
fi |
| |
echo "$ac_t""$INSTALL" 1>&6 |
| |
|
| |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| |
# It thinks the first close brace ends the variable substitution. |
| |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| |
|
| |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| |
|
| |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| |
|
| |
# Extract the first word of "ranlib", so it can be a program name with args. |
| |
set dummy ranlib; ac_word=$2 |
| |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| |
echo "configure:1205: checking for $ac_word" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
if test -n "$RANLIB"; then |
| |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| |
else |
| |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f $ac_dir/$ac_word; then |
| |
ac_cv_prog_RANLIB="ranlib" |
| |
break |
| |
fi |
| |
done |
| |
IFS="$ac_save_ifs" |
| |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| |
fi |
| |
fi |
| |
RANLIB="$ac_cv_prog_RANLIB" |
| |
if test -n "$RANLIB"; then |
| |
echo "$ac_t""$RANLIB" 1>&6 |
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
fi |
| |
|
| |
|
| |
# AC_CHECK_PROG STRIP {{{ |
| |
# Don't strip if we don't have it |
| |
# Extract the first word of "strip", so it can be a program name with args. |
| |
set dummy strip; ac_word=$2 |
| |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| |
echo "configure:1238: checking for $ac_word" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
if test -n "$STRIP"; then |
| |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| |
else |
| |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f $ac_dir/$ac_word; then |
| |
ac_cv_prog_STRIP="strip" |
| |
break |
| |
fi |
| |
done |
| |
IFS="$ac_save_ifs" |
| |
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| |
fi |
| |
fi |
| |
STRIP="$ac_cv_prog_STRIP" |
| |
if test -n "$STRIP"; then |
| |
echo "$ac_t""$STRIP" 1>&6 |
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
fi |
| |
|
| |
# }}} AC_CHECK_PROG STRIP |
| |
|
| |
#AC_CHECK_PROG(JADEWRAP, jw, jw, :) |
| |
# Extract the first word of "doxygen", so it can be a program name with args. |
| |
set dummy doxygen; ac_word=$2 |
| |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| |
echo "configure:1271: checking for $ac_word" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_prog_DOXYGEN'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
if test -n "$DOXYGEN"; then |
| |
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. |
| |
else |
| |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| |
ac_dummy="$PATH" |
| |
for ac_dir in $ac_dummy; do |
| |
test -z "$ac_dir" && ac_dir=. |
| |
if test -f $ac_dir/$ac_word; then |
| |
ac_cv_prog_DOXYGEN="doxygen" |
| |
break |
| |
fi |
| |
done |
| |
IFS="$ac_save_ifs" |
| |
test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN=":" |
| |
fi |
| |
fi |
| |
DOXYGEN="$ac_cv_prog_DOXYGEN" |
| |
if test -n "$DOXYGEN"; then |
| |
echo "$ac_t""$DOXYGEN" 1>&6 |
| else |
else |
| libplaton_DIRS="$libplaton_DIRS utils" |
echo "$ac_t""no" 1>&6 |
| libplaton_SOURCES="$libplaton_SOURCES $libplaton_SOURCES_utils" |
|
| libplaton_HEADERS="$libplaton_HEADERS $libplaton_HEADERS_utils" |
|
| libplaton_OBJECTS="$libplaton_OBJECTS $libplaton_OBJECTS_utils" |
|
| echo "$ac_t""yes (default)" 1>&6 |
|
| fi |
fi |
| |
|
| # }}} checking --enable-utils argument |
#AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, :) |
| |
#AC_CHECK_PROG(DOCBOOK2MAN, docbook2man, docbook2man, :) |
| # libplaton_SOURCES & libplaton_OBJECTS {{{ |
#AC_CHECK_PROG(DB_HTML2MAN, db-html2man, `which db-html2man`, :) |
| libplaton_DIRS=`echo "$libplaton_DIRS" | sed 's/^\( *\)$//g'` |
#AC_CHECK_PROG(DB_GET_ID, db-get-id, `which db-get-id`, :) |
| test -z "$libplaton_DIRS" && { echo "configure: error: No targets to building. Are you OK? :-)" 1>&2; exit 1; } |
|
| # }}} libplaton_SOURCES & libplaton_OBJECTS |
# }}} Checks for programs. |
| |
|
| |
# AC_CHECK_HEADERS {{{ |
| |
# Checks for header files. |
| |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| |
echo "configure:1308: checking for ANSI C header files" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 1313 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
#include <stdarg.h> |
| |
#include <string.h> |
| |
#include <float.h> |
| |
EOF |
| |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| |
{ (eval echo configure:1321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| |
if test -z "$ac_err"; then |
| |
rm -rf conftest* |
| |
ac_cv_header_stdc=yes |
| |
else |
| |
echo "$ac_err" >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
rm -rf conftest* |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
if test $ac_cv_header_stdc = yes; then |
| |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 1338 "configure" |
| |
#include "confdefs.h" |
| |
#include <string.h> |
| |
EOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "memchr" >/dev/null 2>&1; then |
| |
: |
| |
else |
| |
rm -rf conftest* |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
|
| |
if test $ac_cv_header_stdc = yes; then |
| |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 1356 "configure" |
| |
#include "confdefs.h" |
| |
#include <stdlib.h> |
| |
EOF |
| |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| |
egrep "free" >/dev/null 2>&1; then |
| |
: |
| |
else |
| |
rm -rf conftest* |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -f conftest* |
| |
|
| |
fi |
| |
|
| |
if test $ac_cv_header_stdc = yes; then |
| |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| |
if test "$cross_compiling" = yes; then |
| |
: |
| |
else |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 1377 "configure" |
| |
#include "confdefs.h" |
| |
#include <ctype.h> |
| |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| |
int main () { int i; for (i = 0; i < 256; i++) |
| |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| |
exit (0); } |
| |
|
| |
EOF |
| |
if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| |
then |
| |
: |
| |
else |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
rm -fr conftest* |
| |
ac_cv_header_stdc=no |
| |
fi |
| |
rm -fr conftest* |
| |
fi |
| |
|
| |
fi |
| |
fi |
| |
|
| |
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| |
if test $ac_cv_header_stdc = yes; then |
| |
cat >> confdefs.h <<\EOF |
| |
#define STDC_HEADERS 1 |
| |
EOF |
| |
|
| |
fi |
| |
|
| |
for ac_hdr in ctype.h errno.h float.h limits.h math.h stdarg.h stdio.h stdlib.h string.h strings.h unistd.h |
| |
do |
| |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| |
echo "configure:1415: checking for $ac_hdr" >&5 |
| |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| |
echo $ac_n "(cached) $ac_c" 1>&6 |
| |
else |
| |
cat > conftest.$ac_ext <<EOF |
| |
#line 1420 "configure" |
| |
#include "confdefs.h" |
| |
#include <$ac_hdr> |
| |
EOF |
| |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| |
{ (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| |
if test -z "$ac_err"; then |
| |
rm -rf conftest* |
| |
eval "ac_cv_header_$ac_safe=yes" |
| |
else |
| |
echo "$ac_err" >&5 |
| |
echo "configure: failed program was:" >&5 |
| |
cat conftest.$ac_ext >&5 |
| |
rm -rf conftest* |
| |
eval "ac_cv_header_$ac_safe=no" |
| |
fi |
| |
rm -f conftest* |
| |
fi |
| |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| |
echo "$ac_t""yes" 1>&6 |
| |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| |
cat >> confdefs.h <<EOF |
| |
#define $ac_tr_hdr 1 |
| |
EOF |
| |
|
| |
else |
| |
echo "$ac_t""no" 1>&6 |
| |
fi |
| |
done |
| |
|
| |
# }}} AC_CHECK_HEADERS |
| |
|
| |
# AC_CHECK_FUNCS {{{ |
| |
# }}} AC_CHECK_FUNCS |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
# {{{ AC_OUTPUT |
| trap '' 1 2 15 |
trap '' 1 2 15 |
| # confcache {{{ |
cat > confcache <<\EOF |
| cat > confcache <<EOF |
|
| # This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
| # tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
| # scripts and configure runs. It is not useful on other systems. |
# scripts and configure runs. It is not useful on other systems. |
|
|
| fi |
fi |
| fi |
fi |
| rm -f confcache |
rm -f confcache |
| # }}} confcache |
|
| |
|
| trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| |
|
| # $prefix, $exec_prefix $ac_vpsub {{{ |
|
| test "x$prefix" = xNONE && prefix=$ac_default_prefix |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| # Let make expand exec_prefix. |
# Let make expand exec_prefix. |
| test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| Riadok 1386 test "x$exec_prefix" = xNONE && exec_pre |
|
| Riadok 1518 test "x$exec_prefix" = xNONE && exec_pre |
|
| if test "x$srcdir" = x.; then |
if test "x$srcdir" = x.; then |
| ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| fi |
fi |
| # }}} $prefix, $exec_prefix $ac_vpsub |
|
| |
|
| trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| |
|
| # echo creating $CONFIG_STATUS {{{ |
DEFS=-DHAVE_CONFIG_H |
| |
|
| # Without the "./", some shells look in PATH for config.status. |
# Without the "./", some shells look in PATH for config.status. |
| : ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
| |
|
|
|
| ac_given_srcdir=$srcdir |
ac_given_srcdir=$srcdir |
| ac_given_INSTALL="$INSTALL" |
ac_given_INSTALL="$INSTALL" |
| |
|
| trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
trap 'rm -fr `echo "Makefile \ |
| |
doc/Makefile \ |
| |
platon/html/Makefile \ |
| |
platon/misc/Makefile \ |
| |
platon/net/atlantis/Makefile \ |
| |
platon/net/smtp/Makefile \ |
| |
platon/net/Makefile \ |
| |
platon/str/Makefile \ |
| |
platon/Makefile \ |
| |
utils/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| |
EOF |
| |
cat >> $CONFIG_STATUS <<EOF |
| |
|
| # Protect against being on the right side of a sed subst in config.status. |
# Protect against being on the right side of a sed subst in config.status. |
| sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| Riadok 1439 s%@CFLAGS@%$CFLAGS%g |
|
| Riadok 1582 s%@CFLAGS@%$CFLAGS%g |
|
| s%@CPPFLAGS@%$CPPFLAGS%g |
s%@CPPFLAGS@%$CPPFLAGS%g |
| s%@CXXFLAGS@%$CXXFLAGS%g |
s%@CXXFLAGS@%$CXXFLAGS%g |
| s%@FFLAGS@%$FFLAGS%g |
s%@FFLAGS@%$FFLAGS%g |
| |
s%@DEFS@%$DEFS%g |
| s%@LDFLAGS@%$LDFLAGS%g |
s%@LDFLAGS@%$LDFLAGS%g |
| s%@LIBS@%$LIBS%g |
s%@LIBS@%$LIBS%g |
| s%@exec_prefix@%$exec_prefix%g |
s%@exec_prefix@%$exec_prefix%g |
| Riadok 1456 s%@includedir@%$includedir%g |
|
| Riadok 1600 s%@includedir@%$includedir%g |
|
| s%@oldincludedir@%$oldincludedir%g |
s%@oldincludedir@%$oldincludedir%g |
| s%@infodir@%$infodir%g |
s%@infodir@%$infodir%g |
| s%@mandir@%$mandir%g |
s%@mandir@%$mandir%g |
| |
s%@AWK@%$AWK%g |
| |
s%@CC@%$CC%g |
| |
s%@CXX@%$CXX%g |
| |
s%@CPP@%$CPP%g |
| |
s%@LN_S@%$LN_S%g |
| |
s%@SET_MAKE@%$SET_MAKE%g |
| s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| s%@INSTALL_DATA@%$INSTALL_DATA%g |
s%@INSTALL_DATA@%$INSTALL_DATA%g |
| s%@SET_MAKE@%$SET_MAKE%g |
s%@RANLIB@%$RANLIB%g |
| s%@CC@%$CC%g |
|
| s%@LN_S@%$LN_S%g |
|
| s%@AWK@%$AWK%g |
|
| s%@STRIP@%$STRIP%g |
s%@STRIP@%$STRIP%g |
| s%@CPP@%$CPP%g |
s%@DOXYGEN@%$DOXYGEN%g |
| s%@DEBUG@%$DEBUG%g |
s%@PACKAGE@%$PACKAGE%g |
| s%@libplaton_DIRS@%$libplaton_DIRS%g |
s%@VERSION@%$VERSION%g |
| s%@libplaton_SOURCES@%$libplaton_SOURCES%g |
s%@DATE@%$DATE%g |
| s%@libplaton_HEADERS@%$libplaton_HEADERS%g |
s%@MANVOLNUM@%$MANVOLNUM%g |
| s%@libplaton_OBJECTS@%$libplaton_OBJECTS%g |
|
| s%@libplaton_SOURCES_html@%$libplaton_SOURCES_html%g |
|
| s%@libplaton_HEADERS_html@%$libplaton_HEADERS_html%g |
|
| s%@libplaton_OBJECTS_html@%$libplaton_OBJECTS_html%g |
|
| s%@libplaton_SOURCES_str@%$libplaton_SOURCES_str%g |
|
| s%@libplaton_HEADERS_str@%$libplaton_HEADERS_str%g |
|
| s%@libplaton_OBJECTS_str@%$libplaton_OBJECTS_str%g |
|
| s%@libplaton_SOURCES_telnet@%$libplaton_SOURCES_telnet%g |
|
| s%@libplaton_HEADERS_telnet@%$libplaton_HEADERS_telnet%g |
|
| s%@libplaton_OBJECTS_telnet@%$libplaton_OBJECTS_telnet%g |
|
| s%@libplaton_SOURCES_utils@%$libplaton_SOURCES_utils%g |
|
| s%@libplaton_HEADERS_utils@%$libplaton_HEADERS_utils%g |
|
| s%@libplaton_OBJECTS_utils@%$libplaton_OBJECTS_utils%g |
|
| |
|
| CEOF |
CEOF |
| EOF |
EOF |
|
|
| |
|
| cat >> $CONFIG_STATUS <<EOF |
cat >> $CONFIG_STATUS <<EOF |
| |
|
| CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| |
doc/Makefile \ |
| |
platon/html/Makefile \ |
| |
platon/misc/Makefile \ |
| |
platon/net/atlantis/Makefile \ |
| |
platon/net/smtp/Makefile \ |
| |
platon/net/Makefile \ |
| |
platon/str/Makefile \ |
| |
platon/Makefile \ |
| |
utils/Makefile"} |
| EOF |
EOF |
| |
|
| cat >> $CONFIG_STATUS <<\EOF |
cat >> $CONFIG_STATUS <<\EOF |
| for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| Riadok 1583 s%@INSTALL@%$INSTALL%g |
|
| Riadok 1725 s%@INSTALL@%$INSTALL%g |
|
| fi; done |
fi; done |
| rm -f conftest.s* |
rm -f conftest.s* |
| |
|
| |
# 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_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| |
ac_dC='\3' |
| |
ac_dD='%g' |
| |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| |
ac_uB='\([ ]\)%\1#\2define\3' |
| |
ac_uC=' ' |
| |
ac_uD='\4%g' |
| |
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| |
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| |
ac_eB='$%\1#\2define\3' |
| |
ac_eC=' ' |
| |
ac_eD='%g' |
| |
|
| |
if test "${CONFIG_HEADERS+set}" != set; then |
| |
EOF |
| |
cat >> $CONFIG_STATUS <<EOF |
| |
CONFIG_HEADERS="config.h" |
| EOF |
EOF |
| # }}} echo creating $CONFIG_STATUS |
cat >> $CONFIG_STATUS <<\EOF |
| |
fi |
| |
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| |
case "$ac_file" in |
| |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| |
*) ac_file_in="${ac_file}.in" ;; |
| |
esac |
| |
|
| |
echo creating $ac_file |
| |
|
| |
rm -f conftest.frag conftest.in conftest.out |
| |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| |
cat $ac_file_inputs > conftest.in |
| |
|
| |
EOF |
| |
|
| |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
| |
# the proper values into config.h.in to produce config.h. And first: |
| |
# Protect against being on the right side of a sed subst in config.status. |
| |
# Protect against being in an unquoted here document in config.status. |
| |
rm -f conftest.vals |
| |
cat > conftest.hdr <<\EOF |
| |
s/[\\&%]/\\&/g |
| |
s%[\\$`]%\\&%g |
| |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| |
s%ac_d%ac_u%gp |
| |
s%ac_u%ac_e%gp |
| |
EOF |
| |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
| |
rm -f conftest.hdr |
| |
|
| |
# 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. |
| |
cat >> conftest.vals <<\EOF |
| |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| |
EOF |
| |
|
| |
# Break up conftest.vals because some shells have a limit on |
| |
# the size of here documents, and old seds have small limits too. |
| |
|
| |
rm -f conftest.tail |
| |
while : |
| |
do |
| |
ac_lines=`grep -c . conftest.vals` |
| |
# grep -c gives empty output for an empty file on some AIX systems. |
| |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| |
# Write a limited-size here document to conftest.frag. |
| |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| |
echo 'CEOF |
| |
sed -f conftest.frag conftest.in > conftest.out |
| |
rm -f conftest.in |
| |
mv conftest.out conftest.in |
| |
' >> $CONFIG_STATUS |
| |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| |
rm -f conftest.vals |
| |
mv conftest.tail conftest.vals |
| |
done |
| |
rm -f conftest.vals |
| |
|
| |
cat >> $CONFIG_STATUS <<\EOF |
| |
rm -f conftest.frag conftest.h |
| |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| |
cat conftest.in >> conftest.h |
| |
rm -f conftest.in |
| |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
| |
echo "$ac_file is unchanged" |
| |
rm -f conftest.h |
| |
else |
| |
# Remove last slash and all that follows it. Not all systems have dirname. |
| |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| |
# The file is in a subdirectory. |
| |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
| |
fi |
| |
rm -f $ac_file |
| |
mv conftest.h $ac_file |
| |
fi |
| |
fi; done |
| |
|
| |
EOF |
| |
cat >> $CONFIG_STATUS <<EOF |
| |
|
| |
EOF |
| |
cat >> $CONFIG_STATUS <<\EOF |
| |
|
| |
exit 0 |
| |
EOF |
| chmod +x $CONFIG_STATUS |
chmod +x $CONFIG_STATUS |
| rm -fr confdefs* $ac_clean_files |
rm -fr confdefs* $ac_clean_files |
| test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| |
|
| |
# }}} AC_OUTPUT |
| |
|
| |
# vim600: fdm=marker fdc=3 |
| |
|
| # vim:set ts=4: |
|
| # vim600:fdm=marker fdl=0 fdc=3: |
|