Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62f09e9

Browse files
committed
Renable threading build for Solaris 2.5, per report from Andrew Chernow
1 parent08585dc commit62f09e9

File tree

2 files changed

+95
-1
lines changed

2 files changed

+95
-1
lines changed

‎configure

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7743,6 +7743,94 @@ if test "$ac_res" != no; then
77437743

77447744
fi
77457745

7746+
# Required for thread_test.c on Solaris 2.5:
7747+
case $host_os in
7748+
solaris*)
7749+
{ echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7750+
echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7751+
if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7752+
echo $ECHO_N "(cached) $ECHO_C" >&6
7753+
else
7754+
ac_func_search_save_LIBS=$LIBS
7755+
cat >conftest.$ac_ext <<_ACEOF
7756+
/* confdefs.h. */
7757+
_ACEOF
7758+
cat confdefs.h >>conftest.$ac_ext
7759+
cat >>conftest.$ac_ext <<_ACEOF
7760+
/* end confdefs.h. */
7761+
7762+
/* Override any GCC internal prototype to avoid an error.
7763+
Use char because int might match the return type of a GCC
7764+
builtin and then its argument prototype would still apply. */
7765+
#ifdef __cplusplus
7766+
extern "C"
7767+
#endif
7768+
char gethostbyname_r ();
7769+
int
7770+
main ()
7771+
{
7772+
return gethostbyname_r ();
7773+
;
7774+
return 0;
7775+
}
7776+
_ACEOF
7777+
for ac_lib in '' nsl; do
7778+
if test -z "$ac_lib"; then
7779+
ac_res="none required"
7780+
else
7781+
ac_res=-l$ac_lib
7782+
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7783+
fi
7784+
rm -f conftest.$ac_objext conftest$ac_exeext
7785+
if { (ac_try="$ac_link"
7786+
case "(($ac_try" in
7787+
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788+
*) ac_try_echo=$ac_try;;
7789+
esac
7790+
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791+
(eval "$ac_link") 2>conftest.er1
7792+
ac_status=$?
7793+
grep -v '^ *+' conftest.er1 >conftest.err
7794+
rm -f conftest.er1
7795+
cat conftest.err >&5
7796+
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797+
(exit $ac_status); } && {
7798+
test -z "$ac_c_werror_flag" ||
7799+
test ! -s conftest.err
7800+
} && test -s conftest$ac_exeext &&
7801+
$as_test_x conftest$ac_exeext; then
7802+
ac_cv_search_gethostbyname_r=$ac_res
7803+
else
7804+
echo "$as_me: failed program was:" >&5
7805+
sed 's/^/| /' conftest.$ac_ext >&5
7806+
7807+
7808+
fi
7809+
7810+
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7811+
conftest$ac_exeext
7812+
if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7813+
break
7814+
fi
7815+
done
7816+
if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7817+
:
7818+
else
7819+
ac_cv_search_gethostbyname_r=no
7820+
fi
7821+
rm conftest.$ac_ext
7822+
LIBS=$ac_func_search_save_LIBS
7823+
fi
7824+
{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7825+
echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7826+
ac_res=$ac_cv_search_gethostbyname_r
7827+
if test "$ac_res" != no; then
7828+
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7829+
7830+
fi
7831+
7832+
;;
7833+
esac
77467834
# Cygwin:
77477835
{ echo "$as_me:$LINENO: checking for library containing shmget" >&5
77487836
echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }

‎configure.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.585 2009/01/11 18:02:17 tgl Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.586 2009/01/14 16:39:58 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -870,6 +870,12 @@ AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
870870
AC_SEARCH_LIBS(crypt, crypt)
871871
# Solaris:
872872
AC_SEARCH_LIBS(fdatasync, [rt posix4])
873+
# Required for thread_test.c on Solaris 2.5:
874+
case $host_os in
875+
solaris*)
876+
AC_SEARCH_LIBS(gethostbyname_r, nsl)
877+
;;
878+
esac
873879
# Cygwin:
874880
AC_SEARCH_LIBS(shmget, cygipc)
875881

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp