Commit dddd95a8 authored by Peter Eisentraut's avatar Peter Eisentraut

Check both -lrt and -lposix4 for fdatasync, to cover all Solaris versions.

parent 21a7fa8a
...@@ -4407,7 +4407,7 @@ else ...@@ -4407,7 +4407,7 @@ else
cat conftest.$ac_ext >&5 cat conftest.$ac_ext >&5
fi fi
rm -f conftest* rm -f conftest*
test "$ac_cv_search_fdatasync" = "no" && for i in rt; do test "$ac_cv_search_fdatasync" = "no" && for i in rt posix4; do
LIBS="-l$i $ac_func_search_save_LIBS" LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4414 "configure" #line 4414 "configure"
...@@ -8051,7 +8051,7 @@ EOF ...@@ -8051,7 +8051,7 @@ EOF
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
{ echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; } { echo "configure: error: neither atexit() nor on_exit() found" 1>&2; exit 1; }
fi fi
done done
......
...@@ -751,7 +751,7 @@ AC_EGREP_HEADER(z_streamp, zlib.h, [ ...@@ -751,7 +751,7 @@ AC_EGREP_HEADER(z_streamp, zlib.h, [
AC_CHECK_LIB(z, inflate) AC_CHECK_LIB(z, inflate)
]) ])
# Solaris: # Solaris:
AC_SEARCH_LIBS(fdatasync, rt) AC_SEARCH_LIBS(fdatasync, [rt posix4])
if test "$with_krb4" = yes ; then if test "$with_krb4" = yes ; then
AC_CHECK_LIB(des, [des_encrypt], [], [AC_MSG_ERROR([library 'des' is required for Kerberos 4])]) AC_CHECK_LIB(des, [des_encrypt], [], [AC_MSG_ERROR([library 'des' is required for Kerberos 4])])
...@@ -1161,7 +1161,7 @@ AC_CHECK_FUNC(atexit, ...@@ -1161,7 +1161,7 @@ AC_CHECK_FUNC(atexit,
[AC_DEFINE(HAVE_ATEXIT)], [AC_DEFINE(HAVE_ATEXIT)],
[AC_CHECK_FUNCS(on_exit, [AC_CHECK_FUNCS(on_exit,
[AC_DEFINE(HAVE_ON_EXIT)], [AC_DEFINE(HAVE_ON_EXIT)],
[AC_MSG_ERROR([atexi() nor on_exit() found])])]) [AC_MSG_ERROR([neither atexit() nor on_exit() found])])])
dnl Need a #define for the size of Datum (unsigned long) dnl Need a #define for the size of Datum (unsigned long)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment