Hopefully finally ODBC pass. Things working cleanly on cygwin

This commit is contained in:
bdc 2001-02-25 22:52:25 +00:00
parent 99ddaa2744
commit beaaa677d3
3 changed files with 187 additions and 179 deletions

View File

@ -3,15 +3,12 @@
# Documentation in files INSTALL and doc/install.txt
ODBCDIR =/cygdrive/c/Program Files/Microsoft Platform SDK
ODBCLDFLAGS ="-L$(ODBCDIR)/Lib/"
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
DEFS = @DEFS@
EXEEXT = @EXEEXT@
LIBS = @LIBS@
LIBS = @LIBS@ @SCSHODBCLIBS@
#DBOPEN = @DBOPEN@
CFLAGS = @CFLAGS@
CPPFLAGS= @CPPFLAGS@ -I$(srcdir)/cig -I$(srcdir)/scsh/regexp
@ -19,7 +16,7 @@ INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -c
INSTALL_DATA = @INSTALL_DATA@ -c
LDFLAGS = -g @LDFLAGS@ $(ODBCLDFLAGS)
LDFLAGS = -g @LDFLAGS@
LDFLAGS_AIX= @LDFLAGS_AIX@
RM = rm -f

350
configure vendored
View File

@ -1018,16 +1018,111 @@ EOF
fi
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:1023: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1028 "configure"
#include "confdefs.h"
int main() {
#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
EOF
if { (eval echo configure:1039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_cygwin=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_cygwin=no
fi
rm -f conftest*
rm -f conftest*
fi
echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:1056: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1061 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
EOF
if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_mingw32=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_mingw32=no
fi
rm -f conftest*
rm -f conftest*
fi
echo "$ac_t""$ac_cv_mingw32" 1>&6
MINGW32=
test "$ac_cv_mingw32" = yes && MINGW32=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:1087: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
ac_cv_exeext=.exe
else
rm -f conftest*
echo 'int main () { return 0; }' > conftest.$ac_ext
ac_cv_exeext=
if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
for file in conftest.*; do
case $file in
*.c | *.o | *.obj) ;;
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
esac
done
else
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
fi
rm -f conftest*
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
fi
fi
EXEEXT=""
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:1024: checking whether byte ordering is bigendian" >&5
echo "configure:1119: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 1031 "configure"
#line 1126 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
@ -1038,11 +1133,11 @@ int main() {
#endif
; return 0; }
EOF
if { (eval echo configure:1042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 1046 "configure"
#line 1141 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
@ -1053,7 +1148,7 @@ int main() {
#endif
; return 0; }
EOF
if { (eval echo configure:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_bigendian=yes
else
@ -1073,7 +1168,7 @@ if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1077 "configure"
#line 1172 "configure"
#include "confdefs.h"
main () {
/* Are we little or big endian? From Harbison&Steele. */
@ -1086,7 +1181,7 @@ main () {
exit (u.c[sizeof (long) - 1] == 1);
}
EOF
if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_bigendian=no
else
@ -1177,7 +1272,7 @@ EOF
LIBS=-lc
echo $ac_n "checking for ELF""... $ac_c" 1>&6
echo "configure:1181: checking for ELF" >&5
echo "configure:1276: checking for ELF" >&5
if eval "test \"`echo '$''{'scsh_cv_elf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -1203,7 +1298,7 @@ fi
dir=bsd
echo $ac_n "checking for ELF""... $ac_c" 1>&6
echo "configure:1207: checking for ELF" >&5
echo "configure:1302: checking for ELF" >&5
if eval "test \"`echo '$''{'scsh_cv_elf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -1239,7 +1334,7 @@ EOF
dir=irix
echo $ac_n "checking ${CC} for -cckr""... $ac_c" 1>&6
echo "configure:1243: checking ${CC} for -cckr" >&5
echo "configure:1338: checking ${CC} for -cckr" >&5
if eval "test \"`echo '$''{'s48_cv_cflag_ckr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -1283,7 +1378,6 @@ EOF
## NT - cygwin32
*-*-cygwin32* )
dir=cygwin32
EXEEXT=".exe"
;;
## Generic Configuration
@ -1300,7 +1394,7 @@ rm -f $srcdir/scsh/machine
ln -s $srcdir/$dir $srcdir/scsh/machine
echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
echo "configure:1304: checking for sqrt in -lm" >&5
echo "configure:1398: checking for sqrt in -lm" >&5
ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1308,7 +1402,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1312 "configure"
#line 1406 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1319,7 +1413,7 @@ int main() {
sqrt()
; return 0; }
EOF
if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1347,7 +1441,7 @@ else
fi
echo $ac_n "checking for pathfind in -lgen""... $ac_c" 1>&6
echo "configure:1351: checking for pathfind in -lgen" >&5
echo "configure:1445: checking for pathfind in -lgen" >&5
ac_lib_var=`echo gen'_'pathfind | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1355,7 +1449,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgen $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1359 "configure"
#line 1453 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1366,7 +1460,7 @@ int main() {
pathfind()
; return 0; }
EOF
if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1394,7 +1488,7 @@ else
fi
echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6
echo "configure:1398: checking for gethostbyaddr in -lnsl" >&5
echo "configure:1492: checking for gethostbyaddr in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1402,7 +1496,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1406 "configure"
#line 1500 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1413,7 +1507,7 @@ int main() {
gethostbyaddr()
; return 0; }
EOF
if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1441,7 +1535,7 @@ else
fi
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:1445: checking for socket in -lsocket" >&5
echo "configure:1539: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1449,7 +1543,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1453 "configure"
#line 1547 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1460,7 +1554,7 @@ int main() {
socket()
; return 0; }
EOF
if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1488,7 +1582,7 @@ else
fi
echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
echo "configure:1492: checking for nlist in -lelf" >&5
echo "configure:1586: checking for nlist in -lelf" >&5
ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1496,7 +1590,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lelf $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1500 "configure"
#line 1594 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1507,7 +1601,7 @@ int main() {
nlist()
; return 0; }
EOF
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1535,7 +1629,7 @@ else
fi
echo $ac_n "checking for ldopen in -lld""... $ac_c" 1>&6
echo "configure:1539: checking for ldopen in -lld" >&5
echo "configure:1633: checking for ldopen in -lld" >&5
ac_lib_var=`echo ld'_'ldopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1543,7 +1637,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lld $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1547 "configure"
#line 1641 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1554,7 +1648,7 @@ int main() {
ldopen()
; return 0; }
EOF
if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1582,7 +1676,7 @@ else
fi
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:1586: checking for dlopen in -ldl" >&5
echo "configure:1680: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1590,7 +1684,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1594 "configure"
#line 1688 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1601,7 +1695,7 @@ int main() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1629,7 +1723,7 @@ else
fi
echo $ac_n "checking for shl_findsym in -ldld""... $ac_c" 1>&6
echo "configure:1633: checking for shl_findsym in -ldld" >&5
echo "configure:1727: checking for shl_findsym in -ldld" >&5
ac_lib_var=`echo dld'_'shl_findsym | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1637,7 +1731,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldld $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1641 "configure"
#line 1735 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1648,7 +1742,7 @@ int main() {
shl_findsym()
; return 0; }
EOF
if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1675,61 +1769,14 @@ else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking for SQLAllocConnect in -lodbc32""... $ac_c" 1>&6
echo "configure:1680: checking for SQLAllocConnect in -lodbc32" >&5
ac_lib_var=`echo odbc32'_'SQLAllocConnect | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-lodbc32 $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1688 "configure"
#include "confdefs.h"
/* 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 SQLAllocConnect();
int main() {
SQLAllocConnect()
; return 0; }
EOF
if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_tr_lib=HAVE_LIB`echo odbc32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
LIBS="-lodbc32 $LIBS"
else
echo "$ac_t""no" 1>&6
fi
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:1728: checking return type of signal handlers" >&5
echo "configure:1775: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1733 "configure"
#line 1780 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
@ -1746,7 +1793,7 @@ int main() {
int i;
; return 0; }
EOF
if { (eval echo configure:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
@ -1765,7 +1812,7 @@ EOF
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1769: checking how to run the C preprocessor" >&5
echo "configure:1816: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@ -1780,13 +1827,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1784 "configure"
#line 1831 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1837: \"$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
:
@ -1797,13 +1844,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1801 "configure"
#line 1848 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1854: \"$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
:
@ -1814,13 +1861,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1818 "configure"
#line 1865 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1871: \"$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
:
@ -1848,17 +1895,17 @@ for ac_hdr in libgen.h sys/timeb.h posix/time.h sys/select.h nlist.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1852: checking for $ac_hdr" >&5
echo "configure:1899: 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 1857 "configure"
#line 1904 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1909: \"$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*
@ -1888,57 +1935,17 @@ for ac_hdr in sys/un.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1892: checking for $ac_hdr" >&5
echo "configure:1939: 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 1897 "configure"
#line 1944 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1902: \"$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
for ac_hdr in windows.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1932: 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 1937 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1949: \"$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*
@ -1967,12 +1974,12 @@ done
for ac_func in strerror
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1971: checking for $ac_func" >&5
echo "configure:1978: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1976 "configure"
#line 1983 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -1995,7 +2002,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@ -2022,12 +2029,12 @@ done
for ac_func in dlopen gettimeofday ftime nlist select setitimer sigaction
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2026: checking for $ac_func" >&5
echo "configure:2033: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2031 "configure"
#line 2038 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -2050,7 +2057,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@ -2077,12 +2084,12 @@ done
for ac_func in socket chroot
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2081: checking for $ac_func" >&5
echo "configure:2088: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2086 "configure"
#line 2093 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -2105,7 +2112,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@ -2132,7 +2139,7 @@ done
echo $ac_n "checking for RISC/OS POSIX library lossage""... $ac_c" 1>&6
echo "configure:2136: checking for RISC/OS POSIX library lossage" >&5
echo "configure:2143: checking for RISC/OS POSIX library lossage" >&5
if eval "test \"`echo '$''{'s48_cv_posix_libc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2151,7 +2158,7 @@ fi
echo $ac_n "checking whether we can use -O2""... $ac_c" 1>&6
echo "configure:2155: checking whether we can use -O2" >&5
echo "configure:2162: checking whether we can use -O2" >&5
if eval "test \"`echo '$''{'s48_cv_cflag_o2'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2179,7 +2186,7 @@ fi
echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
echo "configure:2183: checking for underscore before symbols" >&5
echo "configure:2190: checking for underscore before symbols" >&5
if eval "test \"`echo '$''{'s48_cv_uscore'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2205,7 +2212,7 @@ EOF
if test $ac_cv_func_dlopen = yes ; then
echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
echo "configure:2209: checking whether dlsym always adds an underscore for us" >&5
echo "configure:2216: checking whether dlsym always adds an underscore for us" >&5
if eval "test \"`echo '$''{'s48_cv_dlsym_adds_uscore'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2213,7 +2220,7 @@ else
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2217 "configure"
#line 2224 "configure"
#include "confdefs.h"
#include <dlfcn.h>
@ -2224,7 +2231,7 @@ main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
if(ptr1 && !ptr2) exit(0); } exit(1); }
EOF
if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
s48_cv_dlsym_adds_uscore=yes
cat >> confdefs.h <<\EOF
@ -2249,13 +2256,13 @@ fi
echo $ac_n "checking for n_name""... $ac_c" 1>&6
echo "configure:2253: checking for n_name" >&5
echo "configure:2260: checking for n_name" >&5
if eval "test \"`echo '$''{'s48_cv_nlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2259 "configure"
#line 2266 "configure"
#include "confdefs.h"
#include <nlist.h>
int main() {
@ -2263,7 +2270,7 @@ struct nlist name_list;
name_list.n_name = "foo";
; return 0; }
EOF
if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
s48_cv_nlist=yes
else
@ -2285,20 +2292,20 @@ EOF
echo $ac_n "checking for _cnt""... $ac_c" 1>&6
echo "configure:2289: checking for _cnt" >&5
echo "configure:2296: checking for _cnt" >&5
if eval "test \"`echo '$''{'s48_cv__cnt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2295 "configure"
#line 2302 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
return stdin->_cnt;
; return 0; }
EOF
if { (eval echo configure:2302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
s48_cv__cnt=yes
else
@ -2321,20 +2328,20 @@ EOF
echo $ac_n "checking for tzname""... $ac_c" 1>&6
echo "configure:2325: checking for tzname" >&5
echo "configure:2332: checking for tzname" >&5
if eval "test \"`echo '$''{'scsh_cv_tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2331 "configure"
#line 2338 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
return (int) tzname;
; return 0; }
EOF
if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
scsh_cv_tzname=yes
else
@ -2356,13 +2363,13 @@ EOF
echo $ac_n "checking for gmtoff""... $ac_c" 1>&6
echo "configure:2360: checking for gmtoff" >&5
echo "configure:2367: checking for gmtoff" >&5
if eval "test \"`echo '$''{'scsh_cv_gmtoff'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2366 "configure"
#line 2373 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
@ -2370,7 +2377,7 @@ struct tm time;
return time.tm_gmtoff;
; return 0; }
EOF
if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
scsh_cv_gmtoff=yes
else
@ -2392,13 +2399,13 @@ EOF
echo $ac_n "checking for const sys_errlist""... $ac_c" 1>&6
echo "configure:2396: checking for const sys_errlist" >&5
echo "configure:2403: checking for const sys_errlist" >&5
if eval "test \"`echo '$''{'scsh_cv_const_sys_errlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2402 "configure"
#line 2409 "configure"
#include "confdefs.h"
#include <errno.h>
#include <unistd.h>
@ -2406,7 +2413,7 @@ int main() {
const extern char *sys_errlist[];
; return 0; }
EOF
if { (eval echo configure:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
scsh_cv_const_sys_errlist=yes
else
@ -2429,7 +2436,8 @@ EOF
CFLAGS1=${CFLAGS}
if grep -c HAVE_WINDOWS_H confdefs.h > /dev/null; then
if test "$CYGWIN" = yes; then
SCSHODBCLIBS=-lodbc32
SCSHODBCOBJS="\$(ODBCOBJS)"
fi
@ -2446,6 +2454,7 @@ fi
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
@ -2589,13 +2598,14 @@ s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@EXEEXT@%$EXEEXT%g
s%@CPP@%$CPP%g
s%@AIX_P@%$AIX_P%g
s%@AR@%$AR%g
s%@CFLAGS1@%$CFLAGS1%g
s%@EXEEXT@%$EXEEXT%g
s%@ENDIAN@%$ENDIAN%g
s%@LDFLAGS_AIX@%$LDFLAGS_AIX%g
s%@SCSHODBCLIBS@%$SCSHODBCLIBS%g
s%@SCSHODBCOBJS@%$SCSHODBCOBJS%g
s%@TMPDIR@%$TMPDIR%g

View File

@ -227,6 +227,8 @@ SCSH_LINUX_STATIC_DEBUG
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_C_CONST
AC_CYGWIN
AC_EXEEXT
AC_C_BIGENDIAN
if test $ac_cv_c_bigendian = no ; then
@ -323,7 +325,6 @@ case "$host" in
## NT - cygwin32
*-*-cygwin32* )
dir=cygwin32
EXEEXT=".exe"
;;
## Generic Configuration
@ -349,12 +350,10 @@ AC_CHECK_LIB(ld, ldopen)
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(dld, shl_findsym)
dnl AC_CHECK_LIB(mld, main)
AC_CHECK_LIB(odbc32, SQLAllocConnect)
AC_RETSIGTYPE
AC_HAVE_HEADERS(libgen.h sys/timeb.h posix/time.h sys/select.h nlist.h)
AC_HAVE_HEADERS(sys/un.h)
AC_HAVE_HEADERS(windows.h)
AC_HAVE_FUNCS(strerror)
AC_HAVE_FUNCS(dlopen gettimeofday ftime nlist select setitimer sigaction)
AC_HAVE_FUNCS(socket chroot)
@ -371,7 +370,8 @@ SCSH_CONST_SYS_ERRLIST
CFLAGS1=${CFLAGS}
if grep -c HAVE_WINDOWS_H confdefs.h > /dev/null; then
if test "$CYGWIN" = yes; then
SCSHODBCLIBS=-lodbc32
SCSHODBCOBJS="\$(ODBCOBJS)"
fi
@ -385,6 +385,7 @@ AC_SUBST(ENDIAN)
AC_SUBST(LDFLAGS)
AC_SUBST(LDFLAGS_AIX)
AC_SUBST(LIBS)
AC_SUBST(SCSHODBCLIBS)
AC_SUBST(SCSHODBCOBJS)
AC_SUBST(TMPDIR)