X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=configure.in.pre;h=13f401053a3bd984604449756f1f53d8bb300036;hb=4dce60bf36bb0f2533d1c750d6ca96078f335aa3;hp=db51c3c74f77ca85013fa1051bcdf935093829dd;hpb=14c2c4a4749270c317120ca3d255f1cde054085f;p=crypto.git diff --git a/configure.in.pre b/configure.in.pre index db51c3c7..13f40105 100644 --- a/configure.in.pre +++ b/configure.in.pre @@ -352,6 +352,7 @@ AC_ARG_WITH(gmp, AC_CHECK_HEADER(gmp.h, AC_CHECK_LIB(gmp, __gmpz_init, AM_CONDITIONAL(SILC_BUILD_GMP, test x$withval = yes) + LIBS="$LIBS -L/usr/lib -L/usr/local/lib -lgmp" AC_MSG_RESULT(GMP will not be compiled), AM_CONDITIONAL(SILC_BUILD_GMP, test x$withval != yes) AC_MSG_RESULT(GMP will be compiled) @@ -365,6 +366,7 @@ esac ], [ AC_CHECK_LIB(gmp, __gmpz_init, build_gmp=false AM_CONDITIONAL(SILC_BUILD_GMP, test x$build_gmp = xtrue) + LIBS="$LIBS -L/usr/lib -L/usr/local/lib -lgmp" AC_MSG_RESULT(GMP will not be compiled), build_gmp=true AM_CONDITIONAL(SILC_BUILD_GMP, test x$build_gmp = xtrue) @@ -392,8 +394,14 @@ AC_CONFIG_SUBDIRS(lib/silcmath/gmp) AC_CONFIG_SUBDIRS(lib/trq) #AC_CONFIG_SUBDIRS(lib/zlib) +# Some final substitutions +SILC_TOP_SRCDIR=`pwd` +AC_SUBST(SILC_TOP_SRCDIR) +AC_SUBST(LIBS) + AC_OUTPUT( \ Makefile +Makefile.defines doc/Makefile includes/Makefile lib/Makefile @@ -408,3 +416,4 @@ lib/silcske/Makefile lib/silcutil/Makefile silc/Makefile silcd/Makefile) +