- Timestamp:
- 04/20/11 17:52:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/ax_pbs.m4
r12 r14 22 22 # 23 23 # Written by Åukasz CieÅnik <lukasz.ciesnik@gmail.com> 24 # and placed under Public Domain 24 # and placed under Public Domain. 25 # 26 # Further contribution: Mariusz Mamonski <mamonski@man.poznan.pl> 25 27 # 26 28 … … 28 30 AC_ARG_WITH([pbs], [AC_HELP_STRING([--with-pbs=<pbs-prefix>], 29 31 [Path to existing PBS installation root])]) 32 AC_ARG_ENABLE([disable-pbs-log], [AC_HELP_STRING([--disable-pbs-log], 33 [Do not use liblog while linking with PBS Professional])]) 34 30 35 AC_SUBST(PBS_INCLUDES) 31 36 AC_SUBST(PBS_LIBS) … … 41 46 PBS_HOME=`dirname $T2` 42 47 PBS_INCLUDES="-I${PBS_HOME}/include " 43 48 PBS_LDFLAGS="-L${PBS_HOME}/lib " 44 49 fi 45 50 fi … … 53 58 54 59 AH_TEMPLATE([PBS_PROFESSIONAL], [compiling against PBS Professional]) 60 AH_TEMPLATE([PBS_PROFESSIONAL_NO_LOG], [Do not use liblog while linking with PBS Professional]) 61 62 AS_IF([test "x$enable_foo" != "xno"], [ 63 dnl Do the stuff needed for enabling the feature 64 ]) 65 66 if test x"$enable-pbs-log" != "xno"; then 67 ax_pbs_lib_log=" -llog" 68 else 69 ax_pbs_lib_log="" 70 AC_DEFINE(PBS_PROFESSIONAL_NO_LOG,[1]) 71 fi 55 72 56 73 if test x"$ax_pbs_ok" = xno; then … … 59 76 AC_CHECK_LIB([log], [pbse_to_txt], [:], [ax_pbs_ok="no"]) 60 77 if test x"$ax_pbs_ok" = xyes; then 61 ax_pbs_libs="-lpbs -llog"78 ax_pbs_libs="-lpbs $ax_pbs_lib_log" 62 79 fi 63 80 fi … … 71 88 AC_CHECK_LIB([log], [pbse_to_txt], [:], [ax_pbs_ok="no"], [-lssl -lcrypto] ) 72 89 if test x"$ax_pbs_ok" = xyes; then 73 ax_pbs_libs="-lpbs -llog -lssl -lcrypto"90 ax_pbs_libs="-lpbs $ax_pbs_lib_log -lssl -lcrypto" 74 91 fi 75 92 fi
Note: See TracChangeset
for help on using the changeset viewer.