[GIT] ppl/ppl(master): Use `libtool' to test linking with GMP only if the option `--with-gmp-build' was given.

Module: ppl/ppl Branch: master Commit: 8e8ea55b9bf4cbcf3c06216f83cf8e2021eef523 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=8e8ea55b9bf4c...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Sun Feb 26 13:05:34 2012 +0100
Use `libtool' to test linking with GMP only if the option `--with-gmp-build' was given.
---
m4/ac_check_gmp.m4 | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/m4/ac_check_gmp.m4 b/m4/ac_check_gmp.m4 index 3fbd6a3..2d5fd65 100644 --- a/m4/ac_check_gmp.m4 +++ b/m4/ac_check_gmp.m4 @@ -71,8 +71,12 @@ AC_ARG_WITH(gmp-build,
gmp_library_options="$gmp_library_options $gmp_libs"
-ac_save_CXX="$CXX" -CXX="libtool --mode=link --tag=CXX $CXX" +if test -n "$with_gmp_build" +then + ac_save_CXX="$CXX" + CXX="libtool --mode=link --tag=CXX $CXX" +fi + ac_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $gmp_include_options" ac_save_LIBS="$LIBS" @@ -223,5 +227,9 @@ AC_LANG_POP(C++) eval $shared_library_path_env_var="$ac_save_shared_library_path" LIBS="$ac_save_LIBS" CPPFLAGS="$ac_save_CPPFLAGS" -CXX="$ac_save_CXX" + +if test -n "$with_gmp_build" +then + CXX="$ac_save_CXX" +fi ])
participants (1)
-
Roberto Bagnara