diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-03 11:56:48 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-03 11:58:19 +0100 |
commit | d8b5d223877ea743f35424582284c15444e78a15 (patch) | |
tree | b6d79b0c90871dfd026a41e32f124fe103853227 /postgresql/postgresql-9.1.1-autoreconf.patch | |
parent | a71c878cd0b443a0d8473d8e4eb43d66f37ce2c0 (diff) |
redo c16027de8423cdb6b33ce5f5f9e13fdc25b9dbeb cleaner
Also align our configure.in to the changes
Change source file (configure.in), not only generated file (configure)
Diffstat (limited to 'postgresql/postgresql-9.1.1-autoreconf.patch')
-rw-r--r-- | postgresql/postgresql-9.1.1-autoreconf.patch | 326 |
1 files changed, 324 insertions, 2 deletions
diff --git a/postgresql/postgresql-9.1.1-autoreconf.patch b/postgresql/postgresql-9.1.1-autoreconf.patch index 24e294a534e5..ce91c51ff53f 100644 --- a/postgresql/postgresql-9.1.1-autoreconf.patch +++ b/postgresql/postgresql-9.1.1-autoreconf.patch @@ -1,6 +1,6 @@ diff --recursive -u misc/build/postgresql-9.1.1/configure misc/build/postgresql-9.1.1.patched/configure --- misc/build/postgresql-9.1.1/configure 2011-09-22 23:57:57.000000000 +0200 -+++ misc/build/postgresql-9.1.1.patched/configure 2011-12-15 09:30:36.000000000 +0100 ++++ misc/build/postgresql-9.1.1.patched/configure 2012-02-03 11:50:07.000000000 +0100 @@ -718,6 +718,7 @@ with_selinux with_openssl @@ -68,6 +68,328 @@ diff --recursive -u misc/build/postgresql-9.1.1/configure misc/build/postgresql- # # Bonjour +@@ -8533,11 +8572,11 @@ + *** Not using spinlocks will cause poor performance." >&2;} + fi + +-if test "$with_gssapi" = yes ; then ++if test "$with_krb5" = yes ; then + if test "$PORTNAME" != "win32"; then +- { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5 +-$as_echo_n "checking for library containing gss_init_sec_context... " >&6; } +-if test "${ac_cv_search_gss_init_sec_context+set}" = set; then ++ { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5 ++$as_echo_n "checking for library containing com_err... " >&6; } ++if test "${ac_cv_search_com_err+set}" = set; then + $as_echo_n "(cached) " >&6 + else + ac_func_search_save_LIBS=$LIBS +@@ -8554,16 +8593,16 @@ + #ifdef __cplusplus + extern "C" + #endif +-char gss_init_sec_context (); ++char com_err (); + int + main () + { +-return gss_init_sec_context (); ++return com_err (); + ; + return 0; + } + _ACEOF +-for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do ++for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do + if test -z "$ac_lib"; then + ac_res="none required" + else +@@ -8591,7 +8630,7 @@ + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then +- ac_cv_search_gss_init_sec_context=$ac_res ++ ac_cv_search_com_err=$ac_res + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 +@@ -8602,40 +8641,33 @@ + rm -rf conftest.dSYM + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext +- if test "${ac_cv_search_gss_init_sec_context+set}" = set; then ++ if test "${ac_cv_search_com_err+set}" = set; then + break + fi + done +-if test "${ac_cv_search_gss_init_sec_context+set}" = set; then ++if test "${ac_cv_search_com_err+set}" = set; then + : + else +- ac_cv_search_gss_init_sec_context=no ++ ac_cv_search_com_err=no + fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi +-{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5 +-$as_echo "$ac_cv_search_gss_init_sec_context" >&6; } +-ac_res=$ac_cv_search_gss_init_sec_context ++{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5 ++$as_echo "$ac_cv_search_com_err" >&6; } ++ac_res=$ac_cv_search_com_err + if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + else +- { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5 +-$as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;} ++ { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5 ++$as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;} + { (exit 1); exit 1; }; } + fi + +- else +- LIBS="$LIBS -lgssapi32" +- fi +-fi +- +-if test "$with_krb5" = yes ; then +- if test "$PORTNAME" != "win32"; then +- { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5 +-$as_echo_n "checking for library containing com_err... " >&6; } +-if test "${ac_cv_search_com_err+set}" = set; then ++ { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5 ++$as_echo_n "checking for library containing krb5_sendauth... " >&6; } ++if test "${ac_cv_search_krb5_sendauth+set}" = set; then + $as_echo_n "(cached) " >&6 + else + ac_func_search_save_LIBS=$LIBS +@@ -8652,16 +8684,16 @@ + #ifdef __cplusplus + extern "C" + #endif +-char com_err (); ++char krb5_sendauth (); + int + main () + { +-return com_err (); ++return krb5_sendauth (); + ; + return 0; + } + _ACEOF +-for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do ++for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do + if test -z "$ac_lib"; then + ac_res="none required" + else +@@ -8689,7 +8721,7 @@ + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then +- ac_cv_search_com_err=$ac_res ++ ac_cv_search_krb5_sendauth=$ac_res + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 +@@ -8700,33 +8732,34 @@ + rm -rf conftest.dSYM + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext +- if test "${ac_cv_search_com_err+set}" = set; then ++ if test "${ac_cv_search_krb5_sendauth+set}" = set; then + break + fi + done +-if test "${ac_cv_search_com_err+set}" = set; then ++if test "${ac_cv_search_krb5_sendauth+set}" = set; then + : + else +- ac_cv_search_com_err=no ++ ac_cv_search_krb5_sendauth=no + fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi +-{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5 +-$as_echo "$ac_cv_search_com_err" >&6; } +-ac_res=$ac_cv_search_com_err ++{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5 ++$as_echo "$ac_cv_search_krb5_sendauth" >&6; } ++ac_res=$ac_cv_search_krb5_sendauth + if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + else +- { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5 +-$as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;} ++ { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5 ++$as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;} + { (exit 1); exit 1; }; } + fi + +- { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5 +-$as_echo_n "checking for library containing krb5_sendauth... " >&6; } +-if test "${ac_cv_search_krb5_sendauth+set}" = set; then ++ else ++ { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5 ++$as_echo_n "checking for library containing com_err... " >&6; } ++if test "${ac_cv_search_com_err+set}" = set; then + $as_echo_n "(cached) " >&6 + else + ac_func_search_save_LIBS=$LIBS +@@ -8743,16 +8776,16 @@ + #ifdef __cplusplus + extern "C" + #endif +-char krb5_sendauth (); ++char com_err (); + int + main () + { +-return krb5_sendauth (); ++return com_err (); + ; + return 0; + } + _ACEOF +-for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do ++for ac_lib in '' 'comerr32 -lkrb5_32'; do + if test -z "$ac_lib"; then + ac_res="none required" + else +@@ -8780,7 +8813,7 @@ + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then +- ac_cv_search_krb5_sendauth=$ac_res ++ ac_cv_search_com_err=$ac_res + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 +@@ -8791,34 +8824,38 @@ + rm -rf conftest.dSYM + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext +- if test "${ac_cv_search_krb5_sendauth+set}" = set; then ++ if test "${ac_cv_search_com_err+set}" = set; then + break + fi + done +-if test "${ac_cv_search_krb5_sendauth+set}" = set; then ++if test "${ac_cv_search_com_err+set}" = set; then + : + else +- ac_cv_search_krb5_sendauth=no ++ ac_cv_search_com_err=no + fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi +-{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5 +-$as_echo "$ac_cv_search_krb5_sendauth" >&6; } +-ac_res=$ac_cv_search_krb5_sendauth ++{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5 ++$as_echo "$ac_cv_search_com_err" >&6; } ++ac_res=$ac_cv_search_com_err + if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + else +- { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5 +-$as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;} ++ { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5 ++$as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;} + { (exit 1); exit 1; }; } + fi + +- else +- { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5 +-$as_echo_n "checking for library containing com_err... " >&6; } +-if test "${ac_cv_search_com_err+set}" = set; then ++ fi ++fi ++ ++if test "$with_gssapi" = yes ; then ++ if test "$PORTNAME" != "win32"; then ++ { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5 ++$as_echo_n "checking for library containing gss_init_sec_context... " >&6; } ++if test "${ac_cv_search_gss_init_sec_context+set}" = set; then + $as_echo_n "(cached) " >&6 + else + ac_func_search_save_LIBS=$LIBS +@@ -8835,16 +8872,16 @@ + #ifdef __cplusplus + extern "C" + #endif +-char com_err (); ++char gss_init_sec_context (); + int + main () + { +-return com_err (); ++return gss_init_sec_context (); + ; + return 0; + } + _ACEOF +-for ac_lib in '' 'comerr32 -lkrb5_32'; do ++for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do + if test -z "$ac_lib"; then + ac_res="none required" + else +@@ -8872,7 +8909,7 @@ + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then +- ac_cv_search_com_err=$ac_res ++ ac_cv_search_gss_init_sec_context=$ac_res + else + $as_echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 +@@ -8883,30 +8920,32 @@ + rm -rf conftest.dSYM + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext +- if test "${ac_cv_search_com_err+set}" = set; then ++ if test "${ac_cv_search_gss_init_sec_context+set}" = set; then + break + fi + done +-if test "${ac_cv_search_com_err+set}" = set; then ++if test "${ac_cv_search_gss_init_sec_context+set}" = set; then + : + else +- ac_cv_search_com_err=no ++ ac_cv_search_gss_init_sec_context=no + fi + rm conftest.$ac_ext + LIBS=$ac_func_search_save_LIBS + fi +-{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5 +-$as_echo "$ac_cv_search_com_err" >&6; } +-ac_res=$ac_cv_search_com_err ++{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5 ++$as_echo "$ac_cv_search_gss_init_sec_context" >&6; } ++ac_res=$ac_cv_search_gss_init_sec_context + if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + + else +- { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5 +-$as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;} ++ { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5 ++$as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;} + { (exit 1); exit 1; }; } + fi + ++ else ++ LIBS="$LIBS -lgssapi32" + fi + fi + @@ -13584,7 +13623,7 @@ fi @@ -192,7 +514,7 @@ diff --recursive -u misc/build/postgresql-9.1.1/configure misc/build/postgresql- $as_echo_n "checking for ldap_bind in -lldap... " >&6; } diff --recursive -u misc/build/postgresql-9.1.1/src/include/pg_config.h.in misc/build/postgresql-9.1.1.patched/src/include/pg_config.h.in --- misc/build/postgresql-9.1.1/src/include/pg_config.h.in 2011-09-22 23:57:57.000000000 +0200 -+++ misc/build/postgresql-9.1.1.patched/src/include/pg_config.h.in 2011-12-15 09:30:37.000000000 +0100 ++++ misc/build/postgresql-9.1.1.patched/src/include/pg_config.h.in 2012-02-03 11:50:07.000000000 +0100 @@ -785,6 +785,13 @@ (--with-libxslt) */ #undef USE_LIBXSLT |