]> andersk Git - gssapi-openssh.git/commitdiff
- fix usage message on --with-mechglue
authorjbasney <jbasney>
Fri, 20 Sep 2002 14:26:13 +0000 (14:26 +0000)
committerjbasney <jbasney>
Fri, 20 Sep 2002 14:26:13 +0000 (14:26 +0000)
- list full path to mechglue libgssapi.a on link line rather than using
  -L${mechglue_path} because we don't want to pick up some other libgssapi.so
  which some linkers will give precendence to
- pass in /bin/true as then case of AC_CHECK_LIB because the default
  appends the library to the linker path which isn't what we want

openssh/configure.ac

index a2c1734299e2134f12c9dc705835a61bbeebfba1..0ba79663b500ea813725979dc86cb073125c5aad 100644 (file)
@@ -479,35 +479,37 @@ int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
 
 # Check whether the user wants GSSAPI mechglue support
 AC_ARG_WITH(mechglue,
-       [  --with-mechglue=PATH    Enable GSI/Globus authentication support],
+       [  --with-mechglue=PATH    Build with GSSAPI mechglue library],
        [
                AC_MSG_CHECKING(for mechglue library)
-               mechglue_path=${withval}
-               CPPFLAGS="$CPPFLAGS -I${mechglue_path}"
-               LDFLAGS="$LDFLAGS -L${mechglue_path}"
-               if test ! -z "$need_dash_r" ; then
-                   LDFLAGS="$LDFLAGS -R${KRB5ROOT}"
+
+               if test -e ${withval}/libgssapi.a ; then
+                   mechglue_lib=${withval}/libgssapi.a
+               elif test -e ${withval}/lib/libgssapi.a ; then
+                   mechglue_lib=${withval}/lib/libgssapi.a
+               else
+                   AC_MSG_ERROR("Can't find libgssapi in ${withval}");
                fi
+               LIBS="$LIBS ${mechglue_lib}"
+               AC_MSG_RESULT(${mechglue_lib})
+
+#              if test -e ${withval}/gssapi.h ; then
+#                  CPPFLAGS="$CPPFLAGS -I${withval}"
+#              elif test -e ${withval}/include/gssapi.h ; then
+#                  CPPFLAGS="$CPPFLAGS -I${withval}/include"
+#              else
+#                  AC_MSG_ERROR("Can't find gssapi.h in ${withval}");
+#              fi
+               
                AC_CHECK_LIB(dl, dlopen, , )
                if test $ac_cv_lib_dl_dlopen = yes; then
-                  LDFLAGS="$LDFLAGS -ldl"
-               fi
-               if test ! -z "$blibpath" ; then
-                   blibpath="$blibpath:${KRB5ROOT}"
+                  LDFLAGS="$LDFLAGS -ldl -Wl,-Bsymbolic"
                fi
+
                AC_DEFINE(GSSAPI)
                AC_DEFINE(MECHGLUE)
-               LIBS="$LIBS -lgssapi"
                GSSAPI="mechglue"
 
-               AC_CHECK_LIB(gssapi,gss_init_sec_context)
-               if test "$ac_cv_lib_gssapi_gss_init_sec_context" != yes; then
-                   AC_MSG_ERROR("Can't find libgssapi")
-               fi
-               AC_CHECK_HEADER(gssapi.h)
-               if test "$ac_cv_header_gssapi_h" != yes; then
-                   AC_MSG_ERROR(Can't find gssapi.h)
-               fi
        ]
 )
 
@@ -1922,9 +1924,9 @@ AC_ARG_WITH(kerberos5,
                                ]
                        )
 
-                       AC_CHECK_LIB(gssapi, gss_krb5_copy_ccache, ,
+                       AC_CHECK_LIB(gssapi, gss_krb5_copy_ccache, /bin/true,
                                [ K5LIBS="-lgssapi_krb5 $K5LIBS"
-                                 AC_CHECK_LIB(gssapi_krb5, gss_krb5_copy_ccache, ,
+                                 AC_CHECK_LIB(gssapi_krb5, gss_krb5_copy_ccache, /bin/true,
                                        AC_MSG_WARN([Cannot find gss_krb5_copy_ccache -- build may fail]),
                                        $K5LIBS)
                                ],
This page took 0.04875 seconds and 5 git commands to generate.