]> andersk Git - gssapi-openssh.git/commitdiff
move AC_TRY_LINK to later GSI section to avoid forcing the compiler
authorbasney <basney>
Tue, 23 Sep 2008 19:47:57 +0000 (19:47 +0000)
committerbasney <basney>
Tue, 23 Sep 2008 19:47:57 +0000 (19:47 +0000)
options to be set too early

openssh/configure.ac

index 2b343f0d1ec05d25ba8796affaff09c3e9349493..6125936e606c2ec1d516ded24d91507ac0ead695 100644 (file)
@@ -122,21 +122,10 @@ if test "x$gsi_path" != "xno" ; then
     LD="$GLOBUS_LD"
        LDFLAGS="$LDFLAGS $GLOBUS_LDFLAGS"
 
-       # test that we got the libraries OK
-       AC_TRY_LINK(
-               [],
-               [],
-               [],
-               [
-                       AC_MSG_ERROR(link with Globus libraries failed)
-               ]
-       )
-    AC_CHECK_FUNCS(globus_gss_assist_map_and_authorize)
        INSTALL_GSISSH="yes"
 else
        INSTALL_GSISSH=""
 fi
-AC_SUBST(INSTALL_GSISSH)
 # End Globus/GSI section
 
 AC_PROG_CC
@@ -3460,7 +3449,18 @@ if test "x$gsi_path" != "xno" ; then
        if test ! -z "$blibpath" ; then
                blibpath="$blibpath:${gsi_path}/lib"
        fi
+       # test that we got the libraries OK
+       AC_TRY_LINK(
+               [],
+               [],
+               [],
+               [
+                       AC_MSG_ERROR(link with Globus libraries failed)
+               ]
+       )
+    AC_CHECK_FUNCS(globus_gss_assist_map_and_authorize)
 fi
+AC_SUBST(INSTALL_GSISSH)
 
 # Check whether the user wants GSSAPI mechglue support
 AC_ARG_WITH(mechglue,
This page took 0.0505100000000001 seconds and 5 git commands to generate.