Commit 7bfe5f9930f16204d593e06d2820868a13b174de

Authored by Jürgen Knödlseder
1 parent 54877db3

Add GAMMALIB variable that points towards the GammaLib installation.

Showing 1 changed file with 3 additions and 0 deletions
configure.ac
... ... @@ -649,6 +649,7 @@ if test "x$has_gammalib" = "xno"; then
649 649 for i in "$ctools_prefix" "$GAMMALIB" /opt/local /usr/local /usr ; do
650 650 if test -f $i/lib64/libgamma.so -o -f $i/lib64/libgamma.dylib; then
651 651 if test -d $i/include/gammalib; then
  652 + GAMMALIB=$i
652 653 LIBDIR_GAMMALIB=$i/lib64
653 654 INCDIR_GAMMALIB=$i/include/gammalib
654 655 break
... ... @@ -656,6 +657,7 @@ if test "x$has_gammalib" = "xno"; then
656 657 fi
657 658 if test -f $i/lib/libgamma.so -o -f $i/lib/libgamma.dylib; then
658 659 if test -d $i/include/gammalib; then
  660 + GAMMALIB=$i
659 661 LIBDIR_GAMMALIB=$i/lib
660 662 INCDIR_GAMMALIB=$i/include/gammalib
661 663 break
... ... @@ -676,6 +678,7 @@ if test "x$has_gammalib" = "xyes"; then
676 678 LIBS="${LIBS} ${LIBS_GAMMALIB}"
677 679 AC_DEFINE([HAVE_LIBGAMMA], [1], [Define if gammalib is available])
678 680 AC_SUBST(LIBS_GAMMALIB)
  681 + AC_SUBST(GAMMALIB)
679 682 AC_SUBST(LIBDIR_GAMMALIB)
680 683 AC_SUBST(INCDIR_GAMMALIB)
681 684 else
... ...