X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure;h=1897f27e7bfa8c45da24e1e109fea61eb09e135c;hb=9309eb4b34306030e549f28472c01caaadac5c53;hp=16ddc76eeb55376e0da1b4f19272f95482508a3a;hpb=97a68957a1f5935a09301f2b3095167ae804073d;p=openldap diff --git a/configure b/configure index 16ddc76eeb..1897f27e7b 100755 --- a/configure +++ b/configure @@ -1,9 +1,9 @@ #! /bin/sh -# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.679 2009/01/16 23:09:26 kurt Exp . +# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.693 2009/01/26 08:41:31 hyc Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # -# Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved. +# Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved. # Restrictions apply, see COPYRIGHT and LICENSE files. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1715,7 +1715,7 @@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. -Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved. +Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved. Restrictions apply, see COPYRIGHT and LICENSE files. _ACEOF exit @@ -2074,6 +2074,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + @@ -6460,7 +6462,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 6463 "configure"' > conftest.$ac_ext + echo '#line 6465 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8529,11 +8531,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8532: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8534: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8536: \$? = $ac_status" >&5 + echo "$as_me:8538: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8791,11 +8793,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8794: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8796: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8798: \$? = $ac_status" >&5 + echo "$as_me:8800: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8853,11 +8855,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8856: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8858: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8860: \$? = $ac_status" >&5 + echo "$as_me:8862: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11064,7 +11066,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5 +echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; } +if test "${ol_cv_msvc+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#ifndef _MSC_VER +#include <__FOO__/generate_error.h> +#endif + +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ol_cv_msvc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ol_cv_msvc=no +fi + +rm -f conftest.err conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5 +echo "${ECHO_T}$ol_cv_msvc" >&6; } case $host_os in *mingw32* ) ac_cv_mingw32=yes ;; *cygwin* ) ac_cv_cygwin=yes ;; + *interix* ) ac_cv_interix=yes ;; esac @@ -14782,7 +14830,10 @@ fi done -if test "$ac_cv_mingw32" = yes -o \( "$ac_cv_cygwin" = yes -a "$GCC" = no \) ; then +if test "$ac_cv_mingw32" = yes \ + -o "$ac_cv_interix" = yes \ + -o "$ol_cv_msvc" = yes +then for ac_header in winsock.h winsock2.h @@ -15287,19 +15338,23 @@ fi fi +if test $ol_cv_msvc ; then + ol_cv_winsock=yes +fi + if test "$ac_cv_header_winsock_h" = yes; then -{ echo "$as_me:$LINENO: checking for winsock" >&5 + { echo "$as_me:$LINENO: checking for winsock" >&5 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; } if test "${ol_cv_winsock+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else -save_LIBS="$LIBS" -for curlib in none ws2_32 wsock32; do - if test curlib != none ; then - LIBS="$save_LIBS -l$curlib" - fi - cat >conftest.$ac_ext <<_ACEOF + save_LIBS="$LIBS" + for curlib in none ws2_32 wsock32; do + if test curlib != none ; then + LIBS="$save_LIBS -l$curlib" + fi + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -15349,35 +15404,37 @@ fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext - test $ol_cv_winsock != no && break; -done -LIBS="$save_LIBS" + test "$ol_cv_winsock" != no && break + done + LIBS="$save_LIBS" fi { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5 echo "${ECHO_T}$ol_cv_winsock" >&6; } -if test $ol_cv_winsock != no ; then + + if test $ol_cv_winsock != no ; then cat >>confdefs.h <<\_ACEOF #define HAVE_WINSOCK 1 _ACEOF - ac_cv_func_socket=yes - ac_cv_func_select=yes - ac_cv_func_closesocket=yes - ac_cv_func_gethostname=yes + ac_cv_func_socket=yes + ac_cv_func_select=yes + ac_cv_func_closesocket=yes + ac_cv_func_gethostname=yes - if test $ol_cv_winsock != none ; then - LIBS="$LIBS -l$ol_cv_winsock" - fi + if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then + LIBS="$LIBS -l$ol_cv_winsock" + fi - if test $ol_cv_winsock = ws2_32 ; then + if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_WINSOCK2 1 _ACEOF - fi + fi + fi fi @@ -16851,7 +16908,6 @@ fi fi -# strerror checks { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; } if test "${ol_cv_dcl_sys_errlist+set}" = set; then @@ -17812,9 +17868,94 @@ else : fi + { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5 +echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; } +if test "${ac_cv_search_uuid_create+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char uuid_create (); +int +main () +{ +return uuid_create (); + ; + return 0; +} +_ACEOF +for ac_lib in '' uuid; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_search_uuid_create=$ac_res +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_uuid_create+set}" = set; then + break +fi +done +if test "${ac_cv_search_uuid_create+set}" = set; then + : +else + ac_cv_search_uuid_create=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5 +echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; } +ac_res=$ac_cv_search_uuid_create +if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + : +else + have_uuid=no +fi + LIBS="$save_LIBS" - if test have_uuid = yes ; then + if test $have_uuid = yes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_UUID_TO_STR 1 @@ -18059,9 +18200,94 @@ else : fi + { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5 +echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; } +if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char uuid_unparse_lower (); +int +main () +{ +return uuid_unparse_lower (); + ; + return 0; +} +_ACEOF +for ac_lib in '' uuid; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_search_uuid_unparse_lower=$ac_res +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then + break +fi +done +if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then + : +else + ac_cv_search_uuid_unparse_lower=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5 +echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; } +ac_res=$ac_cv_search_uuid_unparse_lower +if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + : +else + have_uuid=no +fi + LIBS="$save_LIBS" - if test have_uuid = yes ; then + if test $have_uuid = yes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_UUID_GENERATE 1 @@ -19482,6 +19708,75 @@ else ol_link_gssapi=no fi + fi + if test $ol_link_gssapi != yes ; then + { echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5 +echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6; } +if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lgss $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gss_wrap (); +int +main () +{ +return gss_wrap (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_gss_gss_wrap=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_gss_gss_wrap=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5 +echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6; } +if test $ac_cv_lib_gss_gss_wrap = yes; then + ol_link_gssapi=yes;GSSAPI_LIBS="-lgss" +else + ol_link_gssapi=no +fi + fi fi @@ -31156,7 +31451,9 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +#ifdef HAVE_SYS_PARAM_H #include +#endif #include #include int @@ -38907,7 +39204,7 @@ fi -if test "$ac_cv_mingw32" = yes ; then +if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then PLAT=NT SLAPD_MODULES_LDFLAGS= else @@ -40436,7 +40733,7 @@ rm -f $BACKENDSC cat > $BACKENDSC << ENDX /* This work is part of OpenLDAP Software . * - * Copyright 1998-2008 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -40487,7 +40784,7 @@ rm -f $OVERLAYSC cat > $OVERLAYSC << ENDX /* This work is part of OpenLDAP Software . * - * Copyright 1998-2008 The OpenLDAP Foundation. + * Copyright 1998-2009 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without