this should pretty much clean up the i386_solaris port, with regression

tests running "as expected"...
This commit is contained in:
Marc G. Fournier 1998-01-13 20:13:19 +00:00
parent 8adc838ff6
commit d8972c62b4
4 changed files with 2859 additions and 62 deletions

View File

@ -12,7 +12,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/initlocation,v 1.3 1997/12/20 00:10:51 scrappy Exp $
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/initlocation,v 1.4 1998/01/13 20:13:14 scrappy Exp $
#
#-------------------------------------------------------------------------

108
src/configure vendored
View File

@ -3617,13 +3617,14 @@ else
ISINF='isinf.o'
fi
echo $ac_n "checking for getrusage""... $ac_c" 1>&6
echo "configure:3622: checking for getrusage" >&5
echo "configure:3623: checking for getrusage" >&5
if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3627 "configure"
#line 3628 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getrusage(); below. */
@ -3646,7 +3647,7 @@ getrusage();
; return 0; }
EOF
if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_getrusage=yes"
else
@ -3669,13 +3670,14 @@ else
GETRUSAGE='getrusage.o'
fi
echo $ac_n "checking for srandom""... $ac_c" 1>&6
echo "configure:3674: checking for srandom" >&5
echo "configure:3676: checking for srandom" >&5
if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3679 "configure"
#line 3681 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char srandom(); below. */
@ -3698,7 +3700,7 @@ srandom();
; return 0; }
EOF
if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_srandom=yes"
else
@ -3721,13 +3723,14 @@ else
SRANDOM='srandom.o'
fi
echo $ac_n "checking for gethostname""... $ac_c" 1>&6
echo "configure:3726: checking for gethostname" >&5
echo "configure:3729: checking for gethostname" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3731 "configure"
#line 3734 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostname(); below. */
@ -3750,7 +3753,7 @@ gethostname();
; return 0; }
EOF
if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_gethostname=yes"
else
@ -3773,13 +3776,14 @@ else
GETHOSTNAME='gethostname.o'
fi
echo $ac_n "checking for random""... $ac_c" 1>&6
echo "configure:3778: checking for random" >&5
echo "configure:3782: checking for random" >&5
if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3783 "configure"
#line 3787 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char random(); below. */
@ -3802,7 +3806,7 @@ random();
; return 0; }
EOF
if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_random=yes"
else
@ -3825,13 +3829,14 @@ else
MISSING_RANDOM='random.o'
fi
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
echo "configure:3830: checking for inet_aton" >&5
echo "configure:3835: checking for inet_aton" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3835 "configure"
#line 3840 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
@ -3854,7 +3859,7 @@ inet_aton();
; return 0; }
EOF
if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_inet_aton=yes"
else
@ -3877,13 +3882,14 @@ else
INET_ATON='inet_aton.o'
fi
echo $ac_n "checking for strerror""... $ac_c" 1>&6
echo "configure:3882: checking for strerror" >&5
echo "configure:3888: checking for strerror" >&5
if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3887 "configure"
#line 3893 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
@ -3906,7 +3912,7 @@ strerror();
; return 0; }
EOF
if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_strerror=yes"
else
@ -3929,13 +3935,15 @@ else
STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
fi
echo $ac_n "checking for strdup""... $ac_c" 1>&6
echo "configure:3934: checking for strdup" >&5
echo "configure:3942: checking for strdup" >&5
if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3939 "configure"
#line 3947 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strdup(); below. */
@ -3958,7 +3966,7 @@ strdup();
; return 0; }
EOF
if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_strdup=yes"
else
@ -3981,13 +3989,14 @@ else
STRDUP='../../utils/strdup.o'
fi
echo $ac_n "checking for strtol""... $ac_c" 1>&6
echo "configure:3986: checking for strtol" >&5
echo "configure:3995: checking for strtol" >&5
if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 3991 "configure"
#line 4000 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strtol(); below. */
@ -4010,7 +4019,7 @@ strtol();
; return 0; }
EOF
if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_strtol=yes"
else
@ -4034,12 +4043,12 @@ STRDUP='strtol.o'
fi
echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
echo "configure:4038: checking for strcasecmp" >&5
echo "configure:4047: checking for strcasecmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4043 "configure"
#line 4052 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strcasecmp(); below. */
@ -4062,7 +4071,7 @@ strcasecmp();
; return 0; }
EOF
if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_strcasecmp=yes"
else
@ -4086,21 +4095,13 @@ STRCASECMP='strcasecmp.o'
fi
echo $ac_n "checking for cbrt""... $ac_c" 1>&6
echo "configure:4099: checking for cbrt" >&5
echo "configure:4100: checking for cbrt" >&5
if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4104 "configure"
#line 4105 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char cbrt(); below. */
@ -4123,7 +4124,7 @@ cbrt();
; return 0; }
EOF
if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_cbrt=yes"
else
@ -4144,7 +4145,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
echo "configure:4148: checking for cbrt in -lm" >&5
echo "configure:4149: checking for cbrt in -lm" >&5
ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -4152,7 +4153,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4156 "configure"
#line 4157 "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
@ -4163,7 +4164,7 @@ int main() {
cbrt()
; return 0; }
EOF
if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -4189,12 +4190,12 @@ fi
fi
echo $ac_n "checking for rint""... $ac_c" 1>&6
echo "configure:4193: checking for rint" >&5
echo "configure:4194: checking for rint" >&5
if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4198 "configure"
#line 4199 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char rint(); below. */
@ -4217,7 +4218,7 @@ rint();
; return 0; }
EOF
if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_rint=yes"
else
@ -4238,7 +4239,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
echo "configure:4242: checking for rint in -lm" >&5
echo "configure:4243: checking for rint in -lm" >&5
ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -4246,7 +4247,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4250 "configure"
#line 4251 "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
@ -4257,7 +4258,7 @@ int main() {
rint()
; return 0; }
EOF
if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -4284,7 +4285,7 @@ fi
echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
echo "configure:4288: checking setting USE_LOCALE" >&5
echo "configure:4289: checking setting USE_LOCALE" >&5
if test "$USE_LOCALE" = "yes"
then
echo "$ac_t""enabled" 1>&6
@ -4296,14 +4297,14 @@ else
echo "$ac_t""disabled" 1>&6
fi
echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
echo "configure:4300: checking setting DEF_PGPORT" >&5
echo "configure:4301: checking setting DEF_PGPORT" >&5
cat >> confdefs.h <<EOF
#define DEF_PGPORT "${DEF_PGPORT}"
EOF
echo "$ac_t""$DEF_PGPORT" 1>&6
echo $ac_n "checking setting HBA""... $ac_c" 1>&6
echo "configure:4307: checking setting HBA" >&5
echo "configure:4308: checking setting HBA" >&5
if test "$NOHBA" = "no"
then
echo "$ac_t""enabled" 1>&6
@ -4487,15 +4488,16 @@ s%@YFLAGS@%$YFLAGS%g
s%@yacc@%$yacc%g
s%@bison@%$bison%g
s%@LIBOBJS@%$LIBOBJS%g
s%@ISINF@%$ISINF%g
s%@GETRUSAGE@%$GETRUSAGE%g
s%@GETHOSTNAME@%$GETHOSTNAME%g
s%@SRANDOM@%$SRANDOM%g
s%@GETHOSTNAME@%$GETHOSTNAME%g
s%@MISSING_RANDOM@%$MISSING_RANDOM%g
s%@STRDUP@%$STRDUP%g
s%@STRCASECMP@%$STRCASECMP%g
s%@INET_ATON@%$INET_ATON%g
s%@STRERROR@%$STRERROR%g
s%@STRERROR2@%$STRERROR2%g
s%@STRDUP@%$STRDUP%g
s%@STRCASECMP@%$STRCASECMP%g
CEOF
EOF

View File

@ -466,42 +466,43 @@ AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt)
AC_CHECK_FUNC(isinf,
AC_DEFINE(HAVE_ISINF),
ISINF='isinf.o')
AC_SUBST(ISINF)
AC_CHECK_FUNC(getrusage,
AC_DEFINE(HAVE_GETRUSAGE),
GETRUSAGE='getrusage.o')
AC_SUBST(GETRUSAGE)
AC_CHECK_FUNC(srandom,
AC_DEFINE(HAVE_SRANDOM),
SRANDOM='srandom.o')
AC_SUBST(SRANDOM)
AC_CHECK_FUNC(gethostname,
AC_DEFINE(HAVE_GETHOSTNAME),
GETHOSTNAME='gethostname.o')
AC_SUBST(GETHOSTNAME)
AC_CHECK_FUNC(random,
AC_DEFINE(HAVE_RANDOM),
MISSING_RANDOM='random.o')
AC_SUBST(MISSING_RANDOM)
AC_CHECK_FUNC(inet_aton,
AC_DEFINE(HAVE_INET_ATON),
INET_ATON='inet_aton.o')
AC_SUBST(INET_ATON)
AC_CHECK_FUNC(strerror,
AC_DEFINE(HAVE_STRERROR),
[STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'])
AC_SUBST(STRERROR)
AC_SUBST(STRERROR2)
AC_CHECK_FUNC(strdup,
AC_DEFINE(HAVE_STRDUP),
STRDUP='../../utils/strdup.o')
AC_SUBST(STRDUP)
AC_CHECK_FUNC(strtol,
AC_DEFINE(HAVE_STRTOL),
STRDUP='strtol.o')
AC_CHECK_FUNC(strcasecmp,
AC_DEFINE(HAVE_STRCASECMP),
STRCASECMP='strcasecmp.o')
AC_SUBST(GETRUSAGE)
AC_SUBST(GETHOSTNAME)
AC_SUBST(SRANDOM)
AC_SUBST(MISSING_RANDOM)
AC_SUBST(STRDUP)
AC_SUBST(STRCASECMP)
AC_SUBST(INET_ATON)
AC_SUBST(STRERROR)
AC_SUBST(STRERROR2)
AC_CHECK_FUNC(cbrt,
AC_DEFINE(HAVE_CBRT),
AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))

File diff suppressed because it is too large Load Diff